MCPcopy Create free account

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

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

↓ 7 callersMethoduserSessionsKey
userSessionsKey generates a secure Redis key for user's session set using HMAC-SHA256 This prevents user ID enumeration and links session hashes to us
desktop/backend-go/internal/redis/session.go:127
↓ 7 callersFunctionvalidateContainerPath
validateContainerPath validates paths for container operations. Ensures paths stay within containerWorkspaceRoot.
desktop/backend-go/internal/handlers/filesystem_security.go:47
↓ 7 callersMethodverifyAppAccess
===================================================================== HELPER FUNCTIONS ===============================================================
desktop/backend-go/internal/handlers/app_versions.go:300
↓ 6 callersMethodAllocate
Allocate assigns the next available port
desktop/backend-go/internal/services/app_deployment.go:64
↓ 6 callersFunctionClampInt
============================================================================= HELPER FUNCTIONS =======================================================
desktop/backend-go/internal/handlers/mobile_utils.go:207
↓ 6 callersMethodCreateCRMDeal
CreateCRMDeal creates a new CRM deal
desktop/backend-go/internal/handlers/crm_deals.go:112
↓ 6 callersMethodCreateProject
CreateProject creates a new project.
desktop/backend-go/internal/handlers/projects.go:170
↓ 6 callersMethodDeployApp
NOTE: Route registration happens in handlers.go (lines 1360-1367) Routes use /deployment namespace to avoid conflicts with /apps/:id wildcard Deployme
desktop/backend-go/internal/handlers/osa_deployment.go:34
↓ 6 callersMethodEnqueue
Enqueue adds a suggestion as a pending ImprovementTask and returns the assigned task ID.
desktop/backend-go/internal/feedback/task_queue.go:60
↓ 6 callersMethodEnqueue
Enqueue is the single fire-and-forget entrypoint modules use. Errors are logged but never returned — the calling handler should not fail because the e
desktop/backend-go/internal/services/engine_sync.go:215
↓ 6 callersMethodGenerateApp
GenerateApp triggers application generation in OSA.
desktop/backend-go/internal/integrations/osa/client.go:49
↓ 6 callersMethodGet
Get retrieves a session by ID
desktop/backend-go/internal/redis/session.go:179
↓ 6 callersFunctionGetActionHandler
GetActionHandler retrieves an action handler by name.
desktop/backend-go/internal/sorx/types.go:315
↓ 6 callersMethodGetMetrics
GetMetrics returns a snapshot of worker pool metrics
desktop/backend-go/internal/redis/worker_pool.go:423
↓ 6 callersMethodGetProfile
GetProfile retrieves an application profile
desktop/backend-go/internal/handlers/app_profiler.go:74
↓ 6 callersMethodGetSandboxInfo
GetSandboxInfo retrieves information about a sandbox.
desktop/backend-go/internal/services/sandbox_deployment.go:342
↓ 6 callersMethodGetTasksAPI
GetTasksAPI returns a Google Tasks API service for a user.
desktop/backend-go/internal/integrations/google/tasks.go:63
↓ 6 callersMethodHasPermission
HasPermission checks if the user has a specific permission on a resource
desktop/backend-go/internal/services/role_context.go:291
↓ 6 callersMethodIsAtLeastLevel
IsAtLeastLevel checks if user's hierarchy level is at or above the specified level Lower numbers = higher hierarchy (e.g., 1 = owner, 2 = admin, 3 = m
desktop/backend-go/internal/services/role_context.go:315
↓ 6 callersMethodLimit
Limit returns the limit value (same as PerPage)
desktop/backend-go/internal/utils/pagination.go:65
↓ 6 callersMethodLookup
Lookup returns the competence entry for the given agent+genre, or nil if not found. Falls back to "orchestrator" competence if the specific agent has
desktop/backend-go/internal/signal/genre_competence.go:95
↓ 6 callersMethodMatch
Match finds the best matching SORX skill for the given user message. Returns nil if no skill meets the confidence threshold.
desktop/backend-go/internal/services/semantic_skill_matcher.go:65
↓ 6 callersFunctionMobileRespondValidationError
============================================================================= COMMON ERROR RESPONSES =================================================
desktop/backend-go/internal/handlers/mobile_errors.go:119
↓ 6 callersFunctionNewAlgedonicChannel
NewAlgedonicChannel creates a new AlgedonicChannel with the given handlers.
desktop/backend-go/internal/governance/algedonic.go:95
↓ 6 callersFunctionNewClientAgent
NewClientAgent creates a new client agent
desktop/backend-go/internal/agents/agent_constructors.go:114
↓ 6 callersFunctionNewCodeToolRegistry
NewCodeToolRegistry creates a new code tool registry
desktop/backend-go/internal/tools/code_tools.go:17
↓ 6 callersFunctionNewCompetenceRegistry
NewCompetenceRegistry creates a pre-populated CompetenceRegistry with defaults. Since the Orchestrator handles all traffic (self-routing), defaults ar
desktop/backend-go/internal/signal/genre_competence.go:18
↓ 6 callersFunctionNewDocumentAgent
NewDocumentAgent creates a new document agent
desktop/backend-go/internal/agents/agent_constructors.go:51
↓ 6 callersFunctionNewHealthHandler
NewHealthHandler constructs a HealthHandler. - pool — pass nil when the database is not yet available (degraded mode). - redis — pass nil when Redis
desktop/backend-go/internal/handlers/health.go:44
↓ 6 callersFunctionNewImprovementTaskQueue
NewImprovementTaskQueue constructs an ImprovementTaskQueue. engine is used to update Q-values when tasks are applied.
desktop/backend-go/internal/feedback/task_queue.go:46
↓ 6 callersFunctionNewOrchestrator
NewOrchestrator creates a new orchestrator agent
desktop/backend-go/internal/agents/agent_constructors.go:9
↓ 6 callersFunctionNewSanitizedLogger
NewSanitizedLogger creates a new sanitized logger
desktop/backend-go/internal/logging/sanitizer.go:106
↓ 6 callersFunctionNewSyncHandler
NewSyncHandler creates a new SyncHandler.
desktop/backend-go/internal/handlers/sync.go:18
↓ 6 callersFunctionNewValidationError
NewValidationError creates a non-retryable input validation error.
desktop/backend-go/internal/sandbox/e2b/errors.go:135
↓ 6 callersMethodObserve
Observe fires the full observation pipeline asynchronously. Zero latency on the hot path — launches a goroutine and returns immediately.
desktop/backend-go/internal/subconscious/observer.go:54
↓ 6 callersMethodPool
Pool returns the database pool.
desktop/backend-go/internal/integrations/slack/provider.go:508
↓ 6 callersMethodRemoveAppContainer
RemoveAppContainer removes an app container.
desktop/backend-go/internal/container/app_container.go:282
↓ 6 callersMethodSetRoleContextPrompt
For output style specific instructions
desktop/backend-go/internal/agents/agent.go:48
↓ 6 callersMethodSnapshot
Snapshot returns a point-in-time snapshot of metrics
desktop/backend-go/internal/redis/worker_pool.go:463
↓ 6 callersMethodStreamChat
(ctx context.Context, messages []ChatMessage, systemPrompt string)
desktop/backend-go/internal/services/llm.go:118
↓ 6 callersMethodSubscribe
Subscribe creates a channel for a user. Returns nil if the per-user connection limit has been reached.
desktop/backend-go/internal/services/sse_broadcaster.go:75
↓ 6 callersMethodSyncTemplates
SyncTemplates syncs all YAML templates to the database. Strategy: YAML files are the source of truth.
desktop/backend-go/internal/services/template_sync_discovery.go:15
↓ 6 callersFunctionTransformProjectRows
TransformProjectRows transforms ListProjectsRow to a clean JSON response.
desktop/backend-go/internal/handlers/projects_helpers.go:41
↓ 6 callersFunctionTransformTask
(t sqlc.Task)
desktop/backend-go/internal/handlers/response_tasks.go:26
↓ 6 callersMethodType
()
desktop/backend-go/internal/appgen/types.go:89
↓ 6 callersMethodValidateChange
ValidateChange checks if a proposed change is allowed by the module's protection rules
desktop/backend-go/internal/services/module_protection.go:73
↓ 6 callersMethodValidateVariables
ValidateVariables validates that all required variables are present and have correct types
desktop/backend-go/internal/services/template_loader_service.go:144
↓ 6 callersMethodVerify
Verify runs all three verification layers against a signal and returns a VerificationResult. The composite score is the weighted sum of layer scores.
desktop/backend-go/internal/signal/verification.go:105
↓ 6 callersFunctionapplySelectionFormat
( format: SelectionFormat, { currentSelection, blockElement, document: activeDocument = getWindowDocum
frontend/src/lib/modules/knowledge-base/views/editor/selection-formatting.ts:101
↓ 6 callersMethodask
* Ask the second brain a question. Curated wiki first, hybrid search second. * Returns an ACL-scoped, audience-shaped, bandwidth-matched envelope w
optimal-engine/sdks/typescript/src/client.ts:78
↓ 6 callersFunctionassertConstraintViolation
============================================================================= HELPER FUNCTIONS =======================================================
desktop/backend-go/internal/database/migrations/093_add_status_check_constraints_test.go:568
↓ 6 callersMethodbuildKey
============================================================================= INTERNAL HELPERS =======================================================
desktop/backend-go/internal/cache/query_cache.go:324
↓ 6 callersMethodbuildPrompt
buildPrompt constructs the generation prompt from template or config. Priority order for the base prompt: 1. Template generation_prompt (when template
desktop/backend-go/internal/services/osa_queue_worker.go:357
↓ 6 callersFunctioncheckAuthError
(response: Response)
frontend/src/lib/api/nodes/nodes.ts:131
↓ 6 callersFunctioncreateAgentAction
createAgentAction creates an action handler for a specific agent type.
desktop/backend-go/internal/sorx/agent_bridge.go:380
↓ 6 callersFunctioncreateEmptyBlock
(type: BlockType = 'paragraph')
frontend/src/lib/stores/editor.ts:65
↓ 6 callersFunctioncreateProgressEvent
createProgressEvent serialises a ProgressEvent. If JSON marshalling fails the function returns a safe minimal fallback string rather than an error, be
desktop/backend-go/internal/sandbox/e2b/events.go:45
↓ 6 callersFunctiondefaultRewardWeights
defaultRewardWeights returns conservative defaults. All types are 1.0 except LatencyOptimization which is 0.8 (deprioritised vs correctness).
desktop/backend-go/internal/feedback/self_improvement.go:272
↓ 6 callersMethoddispatchEvent
(event: Event)
frontend/src/test/setup.ts:237
↓ 6 callersMethodenqueue
* Add an operation to the sync queue
desktop/src/main/sync/queue.ts:32
↓ 6 callersMethodexecuteGraphQL
============================================================================ GraphQL Methods =========================================================
desktop/backend-go/internal/integrations/linear/graphql.go:41
↓ 6 callersFunctionfetchApps
(page?: number, pageSize?: number)
frontend/src/lib/stores/generatedAppsStore.ts:205
↓ 6 callersFunctionformatEngineResponse
formatEngineResponse extracts the human-readable text from an engine response map. Falls through several common shapes — answer, body, summary, conten
desktop/backend-go/internal/handlers/chat_engine_slash.go:183
↓ 6 callersFunctiongenerateAppFromTemplate
( templateId: string, request_body: GenerateFromTemplateRequest )
frontend/src/lib/api/templates/templates.ts:65
↓ 6 callersMethodgetById
* Get a single record by ID
desktop/src/main/database/sqlite.ts:179
↓ 6 callersFunctiongetCategoryColors
(category: string)
frontend/src/lib/stores/deployedAppsStore.ts:91
↓ 6 callersFunctiongetCustomAgents
(includeInactive = false)
frontend/src/lib/api/ai/ai.ts:106
↓ 6 callersFunctiongetSession
(serverUrl?: string)
frontend/src/lib/auth-client.ts:225
↓ 6 callersFunctiongetString
getString safely extracts a string value from a map
desktop/backend-go/internal/services/metadata_extractor.go:256
↓ 6 callersFunctiongetStringSlice
getStringSlice safely extracts a string slice from a map
desktop/backend-go/internal/services/metadata_extractor.go:264
↓ 6 callersFunctiongetTableNames
getTableNames returns all table names in the current database
desktop/backend-go/internal/database/migrations_test.go:588
↓ 6 callersFunctionhandleResponse
* Helper to handle API responses
frontend/src/lib/services/filesystem.service.ts:37
↓ 6 callersFunctionisDividerPickerOutsideTarget
( target: EventTarget | null, wrapperSelector = DIVIDER_PICKER_WRAPPER_SELECTOR )
frontend/src/lib/modules/knowledge-base/views/editor/divider-picker.ts:15
↓ 6 callersFunctionisQuotaError
Helper function to check if error wraps a specific quota error
desktop/backend-go/internal/services/sandbox_quota_test.go:637
↓ 6 callersMethodisSecureCookie
isSecureCookie determines if cookies should use the Secure flag. Returns true in production or when the request is already over HTTPS.
desktop/backend-go/internal/handlers/oauth_common.go:160
↓ 6 callersFunctionisWsManager
(role string)
desktop/backend-go/internal/handlers/teams.go:61
↓ 6 callersFunctionmaskURL
============================================================================ Helpers =================================================================
desktop/backend-go/internal/carrier/client.go:532
↓ 6 callersFunctionmustParseTime
mustParseTime is a small test helper that panics rather than returning an error so table-driven tests stay compact.
desktop/backend-go/internal/sorx/scheduler_test.go:26
↓ 6 callersFunctionnewSlidingWindow
(window time.Duration)
desktop/backend-go/internal/subconscious/metrics_impl.go:24
↓ 6 callersFunctionnewTestContext
(query string)
desktop/backend-go/internal/handlers/pagination_test.go:10
↓ 6 callersFunctionnewTestProtectionService
newTestProtectionService creates a ModuleProtectionService with a nil pool suitable for calling check* methods that do not hit the database.
desktop/backend-go/internal/services/module_protection_test.go:14
↓ 6 callersFunctionnilIfEmpty
Helper function to convert empty string to nil pointer
desktop/backend-go/internal/services/credential_vault.go:540
↓ 6 callersMethodonData
(cb: (p: { id: string; data: string }) => void)
frontend/src/lib/services/electron-terminal.service.ts:21
↓ 6 callersFunctionpgTypeUUID
pgTypeUUID converts uuid.UUID to pgtype.UUID
desktop/backend-go/internal/services/osa_sync_service.go:152
↓ 6 callersMethodrecall
(ctx context.Context, path string, params url.Values)
desktop/backend-go/internal/optimalengine/client.go:249
↓ 6 callersMethodrecordFailure
()
desktop/backend-go/internal/services/app_generation_events.go:153
↓ 6 callersFunctionremoteGet
remoteGet does an authenticated GET against the configured base URL and JSON-decodes the response into out.
desktop/backend-go/cmd/optimal-cli/remote.go:25
↓ 6 callersMethodrequest
(path: string, opts: RequestOptions = {})
optimal-engine/sdks/typescript/src/http.ts:23
↓ 6 callersFunctionrequireUserID
requireUserID ensures the user is authenticated. Returns the userID if authenticated, or sends an error response and returns empty string.
desktop/backend-go/internal/integrations/handler.go:163
↓ 6 callersMethodresolveAndValidatePath
======================================== HELPER FUNCTIONS ========================================
desktop/backend-go/internal/tools/code_tools.go:50
↓ 6 callersMethodrollback
rollback restores a Sprite from a checkpoint tag after a failed upgrade step. It logs the restoration attempt and wraps both the original error and an
desktop/backend-go/internal/integrations/sprites/provisioner.go:259
↓ 6 callersFunctionsanitizeContainerPath
sanitizeContainerPath validates and sanitizes a container path CRITICAL SECURITY FUNCTION - prevents path traversal attacks
desktop/backend-go/internal/container/filesystem.go:398
↓ 6 callersMethodsearch
* Hybrid semantic + keyword search across memory.
optimal-engine/sdks/typescript/src/client.ts:85
↓ 6 callersFunctionselectText
( element: HTMLElement, start: number, end: number, rect: Partial<DOMRect> = {} )
frontend/src/lib/modules/knowledge-base/views/editor/selection-formatting.test.ts:133
↓ 6 callersMethodsendMessage
Send a user message to the running agent's stdin
frontend/src/lib/services/agentSession.ts:45
↓ 6 callersFunctionsetupOSATemplateTestRouter
setupOSATemplateTestRouter creates a test router with auth middleware for OSA templates
desktop/backend-go/internal/handlers/osa_templates_test.go:16
↓ 6 callersFunctionstatus_to_exception
Map an HTTP status code to the appropriate exception class.
optimal-engine/sdks/python/src/optimal_engine/exceptions.py:88
↓ 6 callersFunctionuuidPtrFromPgtype
(u pgtype.UUID)
desktop/backend-go/internal/handlers/osa_apps_helpers.go:115
↓ 6 callersFunctionuuidToString
Helper function to convert pgtype.UUID to string
desktop/backend-go/internal/handlers/chat.go:418
↓ 5 callersMethodAvailable
()
desktop/backend-go/internal/services/websearch_service.go:43
← previousnext →601–700 of 12,109, ranked by callers