MCPcopy Create free account

hub / github.com/Miosa-osa/BusinessOS / functions

Functions12,109 in github.com/Miosa-osa/BusinessOS

↓ 2,071 callersMethodJSON
JSON returns the JSON representation of the log entry
desktop/backend-go/internal/logging/logger.go:123
↓ 1,876 callersMethodScan
(src interface{})
desktop/backend-go/internal/database/sqlc/models.go:588
↓ 1,210 callersMethodInfo
Info logs at info level
desktop/backend-go/internal/logging/sanitizer.go:267
↓ 1,134 callersMethodQueryRow
(context.Context, string, ...interface{})
desktop/backend-go/internal/database/sqlc/db.go:17
↓ 1,014 callersFunctionmake
(def: AgentTool<TInput>)
optimal-engine/sdks/typescript/src/adapters/openai-agents.ts:56
↓ 952 callersMethodQuery
(context.Context, string, ...interface{})
desktop/backend-go/internal/database/sqlc/db.go:16
↓ 899 callersMethodRun
Execution - returns streaming events instead of raw strings
desktop/backend-go/internal/agents/agent.go:39
↓ 807 callersMethodClose
Close shuts down the engine gracefully.
desktop/backend-go/internal/sorx/engine.go:50
↓ 719 callersMethodExec
(context.Context, string, ...interface{})
desktop/backend-go/internal/database/sqlc/db.go:15
↓ 677 callersMethodString
String returns a human-readable representation of the signal.
desktop/backend-go/internal/signal/signal.go:132
↓ 619 callersFunctionupdate
(id: string, data: UpdateNodeData)
frontend/src/lib/stores/nodes.ts:118
↓ 519 callersMethodGetCurrentUser
GetCurrentUser returns the current user's profile information GET /api/users/me
desktop/backend-go/internal/handlers/username.go:179
↓ 481 callersMethodWarn
Warn logs at warning level
desktop/backend-go/internal/logging/sanitizer.go:272
↓ 451 callersFunctionrequest
( endpoint: string, options: RequestOptions = {}, )
frontend/src/lib/api/base.ts:247
↓ 417 callersMethodError
()
desktop/backend-go/internal/services/onboarding_validation.go:18
↓ 408 callersMethodError
()
desktop/backend-go/internal/handlers/health.go:132
↓ 373 callersMethodError
Error implements the error interface.
desktop/backend-go/internal/signal/signal.go:155
↓ 340 callersMethodString
Helper: Convert semantic version to string
desktop/backend-go/internal/services/app_version_service.go:398
↓ 333 callersMethodSet
Set stores a query result in cache
desktop/backend-go/internal/cache/query_cache.go:92
↓ 257 callersMethodlog
(...args: unknown[])
frontend/src/lib/utils/sse.ts:155
↓ 236 callersFunctionget
(endpoint: string)
frontend/src/lib/api/base.ts:378
↓ 229 callersMethodClose
Close shuts down the broadcaster and cleanup goroutine
desktop/backend-go/internal/services/sse_broadcaster.go:285
↓ 202 callersMethodDebug
Helper functions for convenience Debug logs at debug level
desktop/backend-go/internal/logging/sanitizer.go:262
↓ 196 callersMethodSet
Set stores a response in the cache
desktop/backend-go/internal/integrations/osa/fallback.go:56
↓ 189 callersMethodget
( path: string, opts?: Omit<RequestOptions, "method" | "body">, )
optimal-engine/sdks/typescript/src/http.ts:49
↓ 175 callersFunctioncancel
()
frontend/src/lib/stores/osa.ts:535
↓ 138 callersMethodDone
Done returns a channel that is closed when the subscriber is unsubscribed. SSE handlers can select on this to detect clean shutdown.
desktop/backend-go/internal/services/build_event_bus.go:58
↓ 124 callersMethodtoString
Plain text content (computed)
frontend/src/lib/modules/knowledge-base/entities/block.ts:104
↓ 121 callersMethodClose
Close releases resources held by the client.
desktop/backend-go/internal/integrations/osa/client.go:331
↓ 101 callersMethodLog
Log writes a log entry at the specified level
desktop/backend-go/internal/logging/sanitizer.go:152
↓ 90 callersMethodGet
Get handles GET /api/v1/sandbox/edit/:id Response: {"sandbox": SandboxEdit}
desktop/backend-go/internal/handlers/sandbox_edit.go:90
↓ 85 callersFunctionclose
()
optimal-engine/sdks/typescript/src/surface.ts:63
↓ 82 callersFunctionsetupGin
setupGin switches Gin to test mode and returns a recorder + context.
desktop/backend-go/internal/handlers/projects_test.go:54
↓ 79 callersFunctiongetApiBaseUrl
()
frontend/src/lib/api/base.ts:17
↓ 65 callersFunctioncn
(...inputs: ClassValue[])
src/lib/lib/utils.ts:4
↓ 64 callersFunctiongenerateTone
(frequency: number, duration: number, type: OscillatorType = 'sine')
frontend/src/lib/stores/soundStore.ts:58
↓ 60 callersMethodon
Register a handler for incoming events.
optimal-engine/sdks/typescript/src/surface.ts:30
↓ 57 callersMethodUnix
()
desktop/backend-go/internal/redis/pubsub.go:237
↓ 54 callersFunctioninjectUser
injectUser plants a BetterAuthUser into a Gin context so handlers that call middleware.GetCurrentUser() succeed without real auth middleware.
desktop/backend-go/internal/handlers/projects_test.go:45
↓ 53 callersMethodSet
Set caches user data for a session token
desktop/backend-go/internal/middleware/redis_auth.go:148
↓ 51 callersMethodPool
Pool returns the database pool.
desktop/backend-go/internal/integrations/google/provider.go:258
↓ 51 callersFunctiondelete
(endpoint: string)
frontend/src/lib/api/base.ts:413
↓ 51 callersMethodparse
* Parse a transcript into a structured VoiceCommand
frontend/src/lib/services/voiceCommandParser.ts:145
↓ 50 callersMethodClose
Close shuts down the CARRIER client gracefully. Pending synchronous Send calls will receive a FallbackError with ReasonDisconnected.
desktop/backend-go/internal/carrier/client.go:81
↓ 49 callersMethodError
Error implements the error interface so ResponseError can be used with standard Go error handling idioms.
desktop/backend-go/internal/carrier/messages.go:173
↓ 49 callersMethodReadFile
(ctx context.Context, input json.RawMessage)
desktop/backend-go/internal/tools/code_tools_file_ops.go:30
↓ 49 callersMethodinput
(id: string, data: string)
frontend/src/lib/services/electron-terminal.service.ts:18
↓ 48 callersMethodupdate
* Update a record
desktop/src/main/database/sqlite.ts:199
↓ 46 callersMethodStop
(ctx context.Context, appID uuid.UUID)
desktop/backend-go/internal/handlers/sandbox.go:21
↓ 45 callersMethodError
()
desktop/backend-go/internal/container/filesystem.go:31
↓ 44 callersMethodString
()
desktop/backend-go/internal/integrations/osa/resilience.go:47
↓ 42 callersMethodError
()
desktop/backend-go/internal/integrations/osa/types.go:171
↓ 42 callersFunctionGenerateTestID
GenerateTestID generates a unique test identifier
desktop/backend-go/internal/sorx/live_test_helpers.go:277
↓ 42 callersFunctionnewOAuthHandlerNoPool
newOAuthHandler creates a handler with no database (pool = nil). Sufficient for tests that only test the redirect/state logic and don't hit storeOAuth
desktop/backend-go/internal/handlers/oauth_test.go:62
↓ 41 callersMethodName
Name returns the unique identifier for this skill
desktop/backend-go/internal/services/skills/types.go:11
↓ 41 callersFunctionmustMarshal
─── JSON encode helpers ──────────────────────────────────────────────────────
desktop/backend-go/internal/handlers/projects_test.go:499
↓ 38 callersMethodName
()
desktop/backend-go/internal/agents/agent.go:31
↓ 38 callersMethoddelete
* Delete a record
desktop/src/main/database/sqlite.ts:212
↓ 37 callersFunctionCreateTestActionContext
CreateTestActionContext creates a minimal ActionContext for testing
desktop/backend-go/internal/sorx/live_test_helpers.go:229
↓ 37 callersMethodGet
Get retrieves a skill by name
desktop/backend-go/internal/services/skills/registry.go:61
↓ 37 callersMethodPing
(ctx context.Context)
desktop/backend-go/internal/handlers/health.go:16
↓ 37 callersFunctiongenerateContent
Helper functions
desktop/backend-go/internal/services/app_generation_orchestrator_test.go:607
↓ 37 callersFunctionnewHandlerNoPool
newHandlerNoPool creates an OSAAppsHandler with nil pool/queries — sufficient for testing paths that return before any DB call (auth + ID parse branch
desktop/backend-go/internal/handlers/osa_apps_management_test.go:55
↓ 36 callersFunctionRegisterAction
RegisterAction registers an action handler.
desktop/backend-go/internal/sorx/types.go:310
↓ 36 callersMethodhas
(name string)
desktop/backend-go/cmd/reembed/main.go:106
↓ 36 callersFunctionnewNodeHandler
─── constructor ────────────────────────────────────────────────────────────
desktop/backend-go/internal/handlers/nodes_test.go:28
↓ 36 callersFunctionoauthRouter
oauthRouter creates a Gin engine for OAuth handler tests. userID is injected into context to simulate an authenticated user.
desktop/backend-go/internal/handlers/oauth_test.go:68
↓ 36 callersFunctionrespondError
respondError sends a JSON error response. Internal error details are logged server-side but never exposed to clients.
desktop/backend-go/internal/handlers/sandbox.go:39
↓ 35 callersMethodError
Error implements the error interface.
desktop/backend-go/internal/sandbox/e2b/errors.go:71
↓ 35 callersFunctiondispatch
(name string, args []string, opts globalOpts)
desktop/backend-go/cmd/optimal-cli/dispatch.go:20
↓ 34 callersMethodWrite
(p []byte)
desktop/backend-go/internal/agents/registry_test.go:32
↓ 34 callersFunctionmatchesPattern
(text: string, patterns: string[])
frontend/src/lib/services/voiceCommandPatterns.ts:14
↓ 34 callersFunctionupdate
()
frontend/src/lib/modules/knowledge-base/views/editor/contenteditable-sync.ts:88
↓ 33 callersMethodFlush
Flush flushes the writer if it supports flushing
desktop/backend-go/internal/streaming/sse_writer.go:61
↓ 33 callersFunctionproxy
(extra: Record<string, unknown> = {})
frontend/vite.config.ts:14
↓ 33 callersFunctiontableParseUUID
============================================================================ Helper Functions (table-specific to avoid conflicts) ====================
desktop/backend-go/internal/handlers/tables_helpers.go:19
↓ 32 callersMethodClose
Close cleanups the container manager and Docker client
desktop/backend-go/internal/container/manager.go:127
↓ 32 callersMethodPublish
Publish broadcasts a build event to all subscribers for the given app. Critical events (generation_complete, error, generation_failed) use a blocking
desktop/backend-go/internal/services/build_event_bus.go:193
↓ 32 callersMethodRunActionTest
RunActionTest runs a single action test
desktop/backend-go/internal/sorx/live_test_helpers.go:71
↓ 32 callersFunctioncrmUuidToString
(u pgtype.UUID)
desktop/backend-go/internal/handlers/crm_helpers.go:323
↓ 32 callersFunctionnewEmptyResult
newEmptyResult returns a fresh ValidationResult with Allowed=true and no violations.
desktop/backend-go/internal/services/module_protection_test.go:23
↓ 32 callersFunctionsetupTestDB
setupTestDB creates a test database connection In production, this would use testcontainers, but for now we'll use a simple in-memory approach
desktop/backend-go/internal/handlers/osa_test_helpers.go:16
↓ 31 callersMethodGet
Get retrieves an agent by ID. Returns an error (not a panic) if not found.
desktop/backend-go/internal/agents/registry.go:56
↓ 31 callersMethodGetUserRole
GetUserRole gets a user's role in a workspace
desktop/backend-go/internal/services/workspace_service.go:504
↓ 30 callersMethodGet
Get retrieves a response from the cache
desktop/backend-go/internal/integrations/osa/fallback.go:69
↓ 30 callersFunctioncreateIntTestUserWithSession
createIntTestUserWithSession creates a user and session for integration tests
desktop/backend-go/internal/handlers/integrations_test_helpers.go:13
↓ 30 callersFunctionnewTeamHandler
─── constructor ────────────────────────────────────────────────────────────
desktop/backend-go/internal/handlers/team_test.go:21
↓ 30 callersFunctionredirectWithError
redirectWithError redirects back to frontend with an error message.
desktop/backend-go/internal/handlers/oauth_common.go:218
↓ 30 callersMethodtest
Trigger a synthetic surface push to all listeners of a subscription.
optimal-engine/sdks/python/src/optimal_engine/surface.py:102
↓ 29 callersMethodRespond
Respond sends the error response and logs it
desktop/backend-go/internal/utils/errors.go:194
↓ 29 callersMethodaddEventListener
(type: string, listener: EventListener)
frontend/src/test/setup.ts:235
↓ 29 callersFunctionbuildOAuthConfig
--------------------------------------------------------------------------- Test helpers -------------------------------------------------------------
desktop/backend-go/internal/handlers/oauth_test.go:25
↓ 29 callersFunctionnewGinContext
newGinContext returns a recorder + context pair wired to the given method, path, and body. Sets Content-Type: application/json.
desktop/backend-go/internal/handlers/crm_deals_test.go:64
↓ 27 callersFunctioncleanupWorkflows
cleanupWorkflows removes test workflows from database
desktop/backend-go/internal/handlers/osa_test_helpers.go:38
↓ 27 callersFunctioncreateTestWorkspace
createTestWorkspace creates a test workspace in the database
desktop/backend-go/internal/handlers/osa_test_helpers.go:47
↓ 27 callersFunctionnewBlock
newBlock creates a test ContextBlock.
desktop/backend-go/internal/services/context_tracker_test.go:60
↓ 26 callersFunctionRespondInternalErr
============================================================================ Safe response helpers ===================================================
desktop/backend-go/internal/handlers/error_middleware.go:76
↓ 26 callersMethodSubscribe
Subscribe creates a new subscription for build events for a specific app. Returns a subscriber that can receive events via the Events channel. If even
desktop/backend-go/internal/services/build_event_bus.go:96
↓ 26 callersFunctionisValidPath
isValidPath validates path parameters to prevent directory traversal attacks
desktop/backend-go/internal/handlers/osa_apps_helpers.go:132
↓ 26 callersFunctionmockMemory
(overrides?: Partial<Memory>)
frontend/src/lib/test-utils/mocks.ts:10
next →1–100 of 12,109, ranked by callers