MCPcopy Create free account

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

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

↓ 26 callersFunctionnewConvContext
newContext returns a minimal ConversationContext for a given conversation.
desktop/backend-go/internal/services/context_tracker_test.go:44
↓ 26 callersFunctionnewDashboardHandler
newDashboardHandler builds a DashboardCRUDHandler with a nil pool (suitable for unit tests that do NOT need real DB access).
desktop/backend-go/internal/handlers/dashboard_test.go:53
↓ 26 callersMethodpost
( path: string, body?: unknown, opts?: Omit<RequestOptions, "method" | "body">, )
optimal-engine/sdks/typescript/src/http.ts:56
↓ 26 callersMethodsend
(data: any)
frontend/src/test/setup.ts:231
↓ 26 callersFunctiontableUUIDToString
tableUUIDToString converts a pgtype.UUID to string
desktop/backend-go/internal/handlers/tables_helpers.go:28
↓ 26 callersFunctionwriteSSEEvent
writeSSEEvent writes a streaming event in SSE format
desktop/backend-go/internal/handlers/chat_streaming_sse.go:43
↓ 25 callersMethodGet
Get retrieves cached user data for a session token
desktop/backend-go/internal/middleware/redis_auth.go:130
↓ 25 callersFunctionNewOSAPromptBuilder
NewOSAPromptBuilder creates a new prompt builder instance
desktop/backend-go/internal/services/osa_prompt_builder.go:74
↓ 25 callersMethodRegister
Register registers a collection point with this metric.
desktop/backend-go/internal/signal/metrics.go:24
↓ 25 callersMethodWriteFile
(ctx context.Context, input json.RawMessage)
desktop/backend-go/internal/tools/code_tools_file_ops.go:115
↓ 25 callersFunctioncleanup
Call in onDestroy to guarantee all resources are released.
frontend/src/lib/hooks/useVoiceRecorder.svelte.ts:317
↓ 25 callersFunctioncreateIntTestWorkspace
createIntTestWorkspace creates a workspace for integration tests
desktop/backend-go/internal/handlers/integrations_test_helpers.go:35
↓ 25 callersFunctionnewTestContextTracker
--------------------------------------------------------------------------- Helpers ------------------------------------------------------------------
desktop/backend-go/internal/services/context_tracker_test.go:19
↓ 25 callersMethodpost
Send a POST and return the decoded JSON body.
optimal-engine/sdks/python/src/optimal_engine/_client.py:158
↓ 25 callersFunctionvalidateAgentForm
( agent: Partial<CustomAgent>, )
frontend/src/lib/utils/agentValidation.ts:61
↓ 24 callersMethodCreate
(ctx context.Context, input CreateInput)
desktop/backend-go/internal/services/notification_service.go:78
↓ 24 callersMethodGetToken
(ctx context.Context, userID string)
desktop/backend-go/internal/integrations/types.go:30
↓ 24 callersMethodRegisterSkill
RegisterSkill adds a skill to the registry.
desktop/backend-go/internal/sorx/engine.go:70
↓ 24 callersMethodState
State returns the current circuit breaker state
desktop/backend-go/internal/integrations/osa/resilience.go:238
↓ 24 callersMethodString
()
desktop/backend-go/internal/streaming/sse_reliability_test.go:432
↓ 24 callersFunctioncreateTestApp
createTestApp creates a test generated app in the database
desktop/backend-go/internal/handlers/osa_test_helpers.go:62
↓ 24 callersFunctiondetectLanguage
(filepath: string)
frontend/src/lib/editor/utils/language-detection.ts:84
↓ 24 callersFunctiongetMainWindow
()
desktop/src/main/window.ts:16
↓ 24 callersFunctiongetPoolFromContext
getPoolFromContext extracts pgxpool.Pool from execution context.
desktop/backend-go/internal/sorx/actions.go:115
↓ 24 callersMethodrequest
(endpoint: string, options: RequestInit = {})
frontend/src/lib/api/embeddings.ts:68
↓ 24 callersFunctionsetupOSARouter
setupOSARouter creates a test router with auth for OSA API tests
desktop/backend-go/internal/handlers/osa_api_test_helpers.go:143
↓ 23 callersFunctionMobileRespondError
============================================================================= ERROR RESPONSE HELPERS =================================================
desktop/backend-go/internal/handlers/mobile_errors.go:91
↓ 23 callersFunctionbuildHeaders
(includeContentType = false)
frontend/src/lib/stores/optimal.ts:148
↓ 23 callersMethodclose
Abort the stream.
optimal-engine/sdks/typescript/src/surface.ts:34
↓ 23 callersFunctionsetupDashboardRouter
setupDashboardRouter returns a test Gin engine with an optional authenticated user injected via middleware. Pass an empty string for userID to simula
desktop/backend-go/internal/handlers/dashboard_test.go:39
↓ 21 callersMethodError
()
desktop/backend-go/internal/middleware/internal_auth.go:47
↓ 21 callersFunctionNewSmartChunkingService
NewSmartChunkingService creates a new smart chunking service
desktop/backend-go/internal/services/smart_chunking_service.go:45
↓ 21 callersFunctioncrmJsonBody
crmJsonBody marshals v to a bytes.Reader for use as an HTTP request body.
desktop/backend-go/internal/handlers/crm_deals_test.go:55
↓ 21 callersFunctionfatalf
(format string, a ...interface{})
desktop/backend-go/cmd/businessos-cli/main.go:436
↓ 21 callersFunctionmatchesPattern
matchesPattern checks if a target matches a protection pattern. Supports: - Exact match: "users" matches "users" - Prefix match with wildcard: "api/*"
desktop/backend-go/internal/services/module_protection.go:265
↓ 21 callersMethodupdateBlock
Update block props
frontend/src/lib/modules/knowledge-base/entities/block.ts:562
↓ 20 callersMethodExecute
(ctx context.Context, task Task)
desktop/backend-go/internal/appgen/types.go:88
↓ 20 callersMethodGetEmbedding
GetEmbedding retrieves a cached embedding Returns (embedding, found, error) - embedding: the cached embedding vector (nil if not found) - found: true
desktop/backend-go/internal/services/embedding_cache_service.go:125
↓ 20 callersMethodName
()
desktop/backend-go/internal/tools/tools_registry.go:15
↓ 20 callersFunctionNewBuildEventBus
NewBuildEventBus creates a new build event bus
desktop/backend-go/internal/services/build_event_bus.go:81
↓ 20 callersFunctionParsePagination
ParsePagination reads page/page_size (or legacy limit/offset) from the Gin context and returns normalised PaginationParams. It is always safe to call;
desktop/backend-go/internal/handlers/pagination.go:49
↓ 20 callersMethodUnsubscribe
Unsubscribe removes a subscriber from the bus. IMPORTANT: The Events channel is NOT closed here. Closing it while Publish may be holding a reference
desktop/backend-go/internal/services/build_event_bus.go:160
↓ 20 callersFunctioncrmTestUser
============================================================================ TEST HELPERS ============================================================
desktop/backend-go/internal/handlers/crm_deals_test.go:26
↓ 20 callersFunctionnewProjectHandler
─── shared test helpers ──────────────────────────────────────────────────── newProjectHandler returns a handler with nil dependencies — safe for requ
desktop/backend-go/internal/handlers/projects_test.go:34
↓ 20 callersFunctionnewTestCRMHandler
newTestCRMHandler returns a CRMHandler backed by a nil pool. Safe for unit tests that do NOT hit the database.
desktop/backend-go/internal/handlers/crm_deals_test.go:45
↓ 20 callersFunctionpgtypeUUIDToStringRequired
(u pgtype.UUID)
desktop/backend-go/internal/handlers/response_misc.go:20
↓ 20 callersFunctionrequest
(path: string, init?: RequestInit)
optimal-engine/desktop/src/lib/api.ts:18
↓ 20 callersFunctionseedContext
seedContext injects a ConversationContext directly into the in-memory cache.
desktop/backend-go/internal/services/context_tracker_test.go:37
↓ 20 callersFunctionsetTestUser
setTestUser injects a fake user into the gin context, replicating what AuthMiddleware does in production.
desktop/backend-go/internal/handlers/crm_deals_test.go:39
↓ 19 callersMethodAllow
Allow checks if a request should be allowed Returns true if allowed, false if rate limit exceeded
desktop/backend-go/internal/middleware/rate_limiter.go:133
↓ 19 callersMethodClose
Close cleans up session resources
desktop/backend-go/internal/terminal/session.go:156
↓ 19 callersMethodGenerateEmbedding
(ctx context.Context, text string)
desktop/backend-go/internal/tools/tools_registry.go:32
↓ 19 callersMethodGetActiveProvider
GetActiveProvider returns the currently configured AI provider. Falls back to "ollama_local" when the configured provider lacks credentials and logs a
desktop/backend-go/internal/config/config_provider.go:8
↓ 19 callersFunctionNewPromptComposer
NewPromptComposer creates a new prompt composer with core layers
desktop/backend-go/internal/prompts/composer.go:28
↓ 19 callersMethodPool
Pool returns the database pool.
desktop/backend-go/internal/integrations/microsoft/provider.go:206
↓ 19 callersMethodReset
Reset resets the detector state
desktop/backend-go/internal/streaming/artifact_detector.go:278
↓ 19 callersMethodWrite
(p []byte)
desktop/backend-go/internal/services/template_loader_service.go:200
↓ 19 callersFunctionnewAuthRouter
── helpers ──────────────────────────────────────────────────────────────── newAuthRouter returns a gin.Engine that injects a valid *middleware.Better
desktop/backend-go/internal/handlers/osa_apps_management_test.go:32
↓ 19 callersFunctionpgtypeUUIDToString
Helper functions for converting pgtype values to JSON-friendly formats
desktop/backend-go/internal/handlers/response_misc.go:12
↓ 19 callersMethodresolve
* Resolve a conflict between local and server records
desktop/src/main/sync/conflict.ts:53
↓ 18 callersFunctionDefaultConfig
DefaultConfig returns a Config populated with safe defaults. Callers should override URL and OSInstanceID for their environment.
desktop/backend-go/internal/carrier/config.go:43
↓ 18 callersMethodGetCustomTable
(ctx context.Context, arg GetCustomTableParams)
desktop/backend-go/internal/database/sqlc/flexible_tables.sql.go:430
↓ 18 callersFunctionNewPaginatedResponse
NewPaginatedResponse constructs a PaginatedResponse from a data payload, the total item count, and the pagination parameters used to fetch data.
desktop/backend-go/internal/handlers/pagination.go:96
↓ 18 callersFunctionNewTemplateLoaderService
NewTemplateLoaderService creates a new template loader service
desktop/backend-go/internal/services/template_loader_service.go:23
↓ 18 callersMethodSetEmbedding
SetEmbedding caches an embedding with specified TTL If ttl is 0, uses default TTL based on embedding type
desktop/backend-go/internal/services/embedding_cache_service.go:189
↓ 18 callersMethodcreate
(opts?: { cols?: number; rows?: number; cwd?: string; shell?: string; })
frontend/src/lib/services/electron-terminal.service.ts:12
↓ 18 callersFunctioncreateTestFile
Helper to create OsaModuleFile for testing
desktop/backend-go/internal/services/snapshot_diff_test.go:37
↓ 18 callersMethodget
Render a wiki page for a specific audience.
optimal-engine/sdks/python/src/optimal_engine/profile.py:45
↓ 18 callersFunctiongetAppTemplates
( params?: ListTemplatesParams )
frontend/src/lib/api/templates/templates.ts:15
↓ 18 callersFunctionsetupCSRFTestContext
setupCSRFTestContext creates a Gin test context for CSRF middleware testing
desktop/backend-go/internal/middleware/csrf_test.go:14
↓ 17 callersMethodCreate
Create stores a new session
desktop/backend-go/internal/redis/session.go:141
↓ 17 callersMethodGetNode
GetNode returns a single node
desktop/backend-go/internal/handlers/nodes.go:186
↓ 17 callersMethodLoadTemplate
LoadTemplate loads and parses a YAML template by name
desktop/backend-go/internal/services/template_loader_service.go:32
↓ 17 callersFunctionMobileRespondUnauthorized
MobileRespondUnauthorized returns a 401 for auth failures
desktop/backend-go/internal/handlers/mobile_errors.go:138
↓ 17 callersFunctionNewSSEWriter
NewSSEWriter creates a new SSE writer
desktop/backend-go/internal/streaming/sse_writer.go:17
↓ 17 callersFunctionTransformNode
(n sqlc.Node)
desktop/backend-go/internal/handlers/response_workspace.go:325
↓ 17 callersFunctiongenerateBlockId
()
frontend/src/lib/modules/knowledge-base/entities/block.ts:597
↓ 17 callersFunctionmakeRequest
makeRequest helper for making authenticated requests
desktop/backend-go/internal/handlers/app_templates_test.go:109
↓ 17 callersFunctionmakeTransition
makeTransition creates a transition where FromMode spent durationMs before switching to toMode. DurationMs measures time in the *previous* mode (FromM
desktop/backend-go/internal/services/session_health_test.go:28
↓ 17 callersFunctionnewTestServer
---- test helpers -----------------------------------------------------------
desktop/backend-go/internal/sandbox/e2b/e2b_test.go:20
↓ 17 callersMethodquery
* Run a raw query
desktop/src/main/database/sqlite.ts:252
↓ 17 callersMethodrecord
(success bool)
desktop/backend-go/internal/subconscious/metrics_impl.go:33
↓ 17 callersMethodrun
* Run a raw statement
desktop/src/main/database/sqlite.ts:259
↓ 17 callersFunctionsetupSandboxTestRouter
setupSandboxTestRouter creates a test router with sandbox handler
desktop/backend-go/internal/handlers/sandbox_test.go:80
↓ 17 callersFunctionstrPtr
Helper functions imported from osa_api_test_helpers.go - setupOSARouter - createOSATestUser - createOSATestWorkspace - createOSATestApp - createOSABui
desktop/backend-go/internal/handlers/osa_api_integration_test.go:817
↓ 16 callersMethodCount
Count returns the number of registered skills
desktop/backend-go/internal/services/skills/registry.go:127
↓ 16 callersMethodCount
Count returns the number of registered agents.
desktop/backend-go/internal/agents/registry.go:133
↓ 16 callersMethodError
Error logs at error level
desktop/backend-go/internal/logging/sanitizer.go:277
↓ 16 callersMethodError
()
desktop/backend-go/tests/security/sensitive_data_test.go:424
↓ 16 callersFunctionNewClient
NewClient creates a new OSA client for a local/runtime endpoint.
desktop/backend-go/internal/integrations/osa/client.go:27
↓ 16 callersFunctionNewContainerMetrics
NewContainerMetrics creates a new metrics instance
desktop/backend-go/internal/container/monitor.go:90
↓ 16 callersFunctionNewCustomModuleService
(pool *pgxpool.Pool, logger *slog.Logger)
desktop/backend-go/internal/services/custom_module_service.go:130
↓ 16 callersMethodSubmit
Submit submits a task to the worker pool Returns error if queue is full or pool is shutting down. This is non-blocking - returns immediately with err
desktop/backend-go/internal/redis/worker_pool.go:348
↓ 16 callersMethodWriteEvent
WriteEvent writes a StreamEvent as an SSE event
desktop/backend-go/internal/streaming/sse_writer.go:26
↓ 16 callersFunctioncreateIntTestMemory
createIntTestMemory creates a memory for integration tests
desktop/backend-go/internal/handlers/integrations_test_helpers.go:59
↓ 16 callersFunctiongetTestUser
(type: keyof typeof testUsers)
frontend/tests/e2e/fixtures/testUsers.ts:48
↓ 16 callersFunctionhandleApiCall
( apiCall: () => Promise<T>, options: { showErrorToast?: boolean; showSuccessToast?: boolean; successM
frontend/src/lib/utils/api-handler.ts:41
↓ 16 callersFunctionlastFetchCall
()
optimal-engine/sdks/typescript/test/client.test.ts:27
↓ 16 callersFunctionmockFetch
( status: number, body: unknown, headers: Record<string, string> = {}, )
optimal-engine/sdks/typescript/test/client.test.ts:10
↓ 16 callersMethodnewBaseData
(subject string)
desktop/backend-go/internal/services/templates/email_template_service.go:100
← previousnext →101–200 of 12,109, ranked by callers