MCPcopy Create free account

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

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

↓ 8 callersFunctionget
(path: string)
optimal-engine/extensions/browser/src/lib/client.ts:30
↓ 8 callersFunctiongetBlocks
()
frontend/src/lib/stores/editor.ts:338
↓ 8 callersFunctionisElectron
()
frontend/src/lib/utils/platform.ts:75
↓ 8 callersFunctionmapBackendToVersion
( info: BackendVersionInfo, isCurrent: boolean, )
frontend/src/lib/api/versions/mappers.ts:29
↓ 8 callersFunctionnewTestModeTransitionService
newTestModeTransitionService builds a ModeTransitionService without a DB pool. All tests that exercise in-memory logic can safely use nil as the pool;
desktop/backend-go/internal/services/mode_transition_test.go:17
↓ 8 callersFunctionnewTestRegistry
newTestRegistry creates a Registry backed by a no-op slog logger.
desktop/backend-go/internal/agents/registry_test.go:35
↓ 8 callersFunctionretryWithBackoff
retryWithBackoff executes a function with exponential backoff retry logic.
desktop/backend-go/internal/sorx/actions.go:88
↓ 8 callersFunctionsetupTestContext
setupTestContext creates a Gin test context for middleware testing
desktop/backend-go/internal/middleware/auth_test.go:14
↓ 8 callersFunctionsetupTestHandlers
setupTestHandlers creates a test AppHandler instance with database
desktop/backend-go/internal/handlers/app_templates_test.go:30
↓ 8 callersFunctionsetupTestRouter
setupTestRouter creates a Gin router with test routes
desktop/backend-go/internal/handlers/app_templates_test.go:75
↓ 8 callersFunctionsleepContext
sleepContext blocks for d or until ctx is cancelled, whichever comes first.
desktop/backend-go/internal/sandbox/e2b/client_http.go:158
↓ 8 callersMethodstart
()
frontend/src/lib/services/voiceTranscriptionService.ts:41
↓ 8 callersFunctiontestOSAConfig
testOSAConfig creates an OSA config suitable for unit tests (with mock server)
desktop/backend-go/internal/integrations/osa/client_integration_test.go:19
↓ 8 callersFunctiontoBoolPointer
(b bool)
desktop/backend-go/internal/handlers/thinking.go:522
↓ 8 callersFunctiontoNullString
Helper functions (package-level, shared within handlers package)
desktop/backend-go/internal/handlers/thinking.go:515
↓ 8 callersMethodupdateAppStatus
updateAppStatus updates the app status in the database.
desktop/backend-go/internal/services/sandbox_integration.go:326
↓ 8 callersMethodverifySignature
verifySignature verifies the HMAC signature of the webhook. Production (isProduction == true): a missing or invalid signature ALWAYS results in rejec
desktop/backend-go/internal/handlers/osa_webhooks.go:145
↓ 8 callersFunctionwaitForApiCall
( page: Page, urlPattern: string | RegExp, timeout = 10000, )
frontend/tests/e2e/fixtures/helpers.ts:91
↓ 7 callersMethodCheck
Check performs a health check with caching
desktop/backend-go/internal/integrations/osa/resilience.go:378
↓ 7 callersMethodCheckQuota
CheckQuota validates if a user can allocate the requested resources. Returns nil if quota allows the request, otherwise returns a quota error.
desktop/backend-go/internal/services/sandbox_quota.go:115
↓ 7 callersMethodChunkPlainText
ChunkPlainText chunks plain text respecting natural boundaries
desktop/backend-go/internal/services/smart_chunking_text.go:11
↓ 7 callersMethodCreateNode
CreateNode creates a new node
desktop/backend-go/internal/handlers/nodes.go:89
↓ 7 callersMethodCreateSnapshot
CreateSnapshot captures the current workspace state as a new version
desktop/backend-go/internal/services/workspace_version_service.go:30
↓ 7 callersFunctionDefaultLogConfig
DefaultLogConfig returns production-safe defaults
desktop/backend-go/internal/logging/sanitizer.go:56
↓ 7 callersFunctionDefaultSanitizerConfig
DefaultSanitizerConfig returns production-safe defaults
desktop/backend-go/internal/terminal/sanitizer.go:38
↓ 7 callersMethodDeleteByPattern
DeleteByPattern removes all cache entries matching a pattern
desktop/backend-go/internal/cache/query_cache.go:427
↓ 7 callersFunctionEstimateTokens
EstimateTokens estimates the token count for a string (approximation)
desktop/backend-go/internal/services/context_tracker_helpers.go:17
↓ 7 callersFunctionGet
Get retrieves a provider by name. Returns the provider and true if found, nil and false otherwise.
desktop/backend-go/internal/integrations/registry.go:25
↓ 7 callersMethodGetBlock
(_ context.Context, userID string, blockType BlockType)
desktop/backend-go/internal/subconscious/block_store_test.go:40
↓ 7 callersMethodGetSetpoint
GetSetpoint returns the setpoint for the named metric.
desktop/backend-go/internal/feedback/setpoint_store.go:59
↓ 7 callersFunctionGetTemplatesDirectory
GetTemplatesDirectory returns the absolute path to the OSA templates directory
desktop/backend-go/internal/services/template_helpers.go:11
↓ 7 callersMethodGetToken
GetToken retrieves OAuth tokens for a user.
desktop/backend-go/internal/integrations/airtable/provider.go:313
↓ 7 callersMethodGetUserSettings
(ctx context.Context, userID string)
desktop/backend-go/internal/database/sqlc/user_settings.sql.go:97
↓ 7 callersMethodHealthCheck
(ctx context.Context)
desktop/backend-go/internal/services/llm.go:122
↓ 7 callersMethodIncrementErrors
IncrementErrors increments the total errors counter
desktop/backend-go/internal/container/monitor.go:443
↓ 7 callersMethodIncrementStopped
IncrementStopped increments the total stopped counter
desktop/backend-go/internal/container/monitor.go:438
↓ 7 callersMethodIsConnected
IsConnected reports whether the underlying AMQP channel is ready for use.
desktop/backend-go/internal/carrier/client.go:113
↓ 7 callersMethodIsEnabled
IsEnabled returns whether the email service is configured and enabled
desktop/backend-go/internal/services/email_service.go:56
↓ 7 callersFunctionNewAnalystAgent
NewAnalystAgent creates a new analyst agent
desktop/backend-go/internal/agents/agent_constructors.go:146
↓ 7 callersFunctionNewAppGenerationOrchestrator
NewAppGenerationOrchestrator creates a production-ready orchestrator
desktop/backend-go/internal/services/app_generation_orchestrator.go:55
↓ 7 callersFunctionNewDoubleLoopController
NewDoubleLoopController creates a new DoubleLoopController.
desktop/backend-go/internal/feedback/double_loop.go:37
↓ 7 callersFunctionNewFocusService
NewFocusService creates a new focus service
desktop/backend-go/internal/services/focus.go:80
↓ 7 callersFunctionNewInMemorySetpointStore
NewInMemorySetpointStore creates a store pre-loaded with default setpoints. Default thresholds: action_completion_rate: 80% ± 10% (Shannon channel
desktop/backend-go/internal/feedback/setpoint_store.go:26
↓ 7 callersFunctionNewInputSanitizer
NewInputSanitizer creates a new sanitizer with compiled patterns
desktop/backend-go/internal/terminal/sanitizer.go:81
↓ 7 callersFunctionNewSandboxDeploymentService
NewSandboxDeploymentService creates a new sandbox deployment service.
desktop/backend-go/internal/services/sandbox_deployment.go:90
↓ 7 callersFunctionNewSessionCache
NewSessionCache creates a new Redis-backed session cache If cfg.HMACSecret is empty, generates a random secret (development mode only) CRITICAL: In pr
desktop/backend-go/internal/middleware/redis_auth.go:69
↓ 7 callersFunctionNewSubconsciousHintProvider
NewSubconsciousHintProvider creates a new provider that composes PromptActuator hints with subconscious memory blocks.
desktop/backend-go/internal/subconscious/injector.go:29
↓ 7 callersFunctionNewTemplateSyncService
NewTemplateSyncService creates a new template sync service.
desktop/backend-go/internal/services/template_sync_service.go:48
↓ 7 callersFunctionNewVerifier
NewVerifier constructs a Verifier with all three validation layers. All validators are required. Uses DefaultVerificationThreshold if threshold is 0.
desktop/backend-go/internal/signal/verification.go:71
↓ 7 callersMethodProcessChunk
ProcessChunk processes a chunk from the LLM and writes events
desktop/backend-go/internal/streaming/sse_writer.go:83
↓ 7 callersMethodPublish
Publish sends a message to a channel
desktop/backend-go/internal/redis/pubsub.go:108
↓ 7 callersMethodSetEngineSync
SetEngineSync wires the shared service. Called once from route registration right after the handler is constructed.
desktop/backend-go/internal/handlers/engine_sync_mixin.go:30
↓ 7 callersMethodSetModel
Options
desktop/backend-go/internal/agents/agent.go:43
↓ 7 callersMethodSetOptions
(opts services.LLMOptions)
desktop/backend-go/internal/agents/agent.go:44
↓ 7 callersMethodShutdown
()
desktop/backend-go/internal/appgen/types.go:82
↓ 7 callersFunctionTransformArtifact
(a sqlc.Artifact)
desktop/backend-go/internal/handlers/response_tasks.go:114
↓ 7 callersMethodUpdateOSAModuleInstanceStatus
(ctx context.Context, arg sqlc.UpdateOSAModuleInstanceStatusParams)
desktop/backend-go/internal/services/app_generation_orchestrator_test.go:21
↓ 7 callersFunctionValidateVariableType
ValidateVariableType checks if a variable value matches the expected type
desktop/backend-go/internal/services/template_helpers.go:27
↓ 7 callersMethodabort
()
frontend/src/lib/services/voiceTranscriptionService.ts:43
↓ 7 callersMethodconnect
Connect and launch the agent
frontend/src/lib/services/agentSession.ts:43
↓ 7 callersFunctioncontains_phrase
(answer: str, phrase: str)
optimal-engine/benchmarks/scripts/judge_results.py:17
↓ 7 callersMethodcopyMetadata
copyMetadata creates a copy of metadata map
desktop/backend-go/internal/services/smart_chunking_utils.go:99
↓ 7 callersFunctioncrmJSONBytes
crmJSONBytes converts an arbitrary value to JSON bytes for a JSONB column. Returns nil (SQL NULL) for empty/nil inputs so pgx doesn't send the bytes t
desktop/backend-go/internal/handlers/crm_helpers.go:29
↓ 7 callersFunctioncrmToNullString
============================================================================ HELPER FUNCTIONS (CRM-specific to avoid redeclaration) ==================
desktop/backend-go/internal/handlers/crm_helpers.go:18
↓ 7 callersMethoddeduplicateMemories
deduplicateMemories removes duplicate memories
desktop/backend-go/internal/services/memory_extractor_helpers.go:80
↓ 7 callersMethoddo
---- internal HTTP helper ---------------------------------------------------- do is the single choke-point for all HTTP calls. It serialises the requ
desktop/backend-go/internal/integrations/sprites/client.go:268
↓ 7 callersFunctionemit
emit is the internal helper that guards against nil broadcasters and empty workflow IDs before invoking the broadcaster.
desktop/backend-go/internal/sandbox/e2b/events.go:95
↓ 7 callersFunctionerrElixirRequired
(command string)
desktop/backend-go/cmd/optimal-cli/commands.go:213
↓ 7 callersMethodevictBlocks
evictBlocks removes lowest priority blocks until tokensNeeded are freed
desktop/backend-go/internal/services/context_tracker_management.go:91
↓ 7 callersFunctionextractDomain
extractDomain extracts the domain from a URL
desktop/backend-go/internal/services/websearch_service_helpers.go:22
↓ 7 callersMethodextractTags
extractTags extracts relevant tags from text
desktop/backend-go/internal/services/memory_extractor_helpers.go:9
↓ 7 callersFunctiongenerateFileID
generateFileID creates a stable, unique ID for a file path.
desktop/backend-go/internal/handlers/filesystem.go:64
↓ 7 callersFunctiongenerateHint
generateHint produces a behavioral hint string for agents based on health signals.
desktop/backend-go/internal/services/session_health.go:109
↓ 7 callersFunctiongenerateUnifiedDiff
generateUnifiedDiff creates a unified diff by delegating to the shared computeUnifiedDiff (workspace_version_service.go) and adding truncation support
desktop/backend-go/internal/services/snapshot_diff.go:239
↓ 7 callersMethodget
Fetch one memory by id.
optimal-engine/sdks/python/src/optimal_engine/memory.py:61
↓ 7 callersFunctiongetAuthBase
(serverUrl?: string)
frontend/src/lib/auth-client.ts:60
↓ 7 callersFunctiongetElectronAPI
()
frontend/src/lib/utils/platform.ts:112
↓ 7 callersFunctiongetHeaders
()
frontend/src/lib/api/multimodal-search/client.ts:36
↓ 7 callersFunctiongetHiddenSelectionToolbarState
()
frontend/src/lib/modules/knowledge-base/views/editor/selection-formatting.ts:48
↓ 7 callersFunctiongetSettings
()
optimal-engine/extensions/browser/src/lib/storage.ts:10
↓ 7 callersFunctiongetTestConfig
These tests require OSA to be running on localhost:8089 Run with: go test -tags=integration ./internal/integrations/osa/...
desktop/backend-go/internal/integrations/osa/integration_test.go:19
↓ 7 callersFunctionhandleResponse
(response: Response)
frontend/src/lib/api/multimodal-search/client.ts:44
↓ 7 callersFunctionisBrowser
()
frontend/src/lib/config/runtime.ts:13
↓ 7 callersFunctionisDuplicate
============================================================================ Helpers =================================================================
desktop/backend-go/internal/services/suggestion_service.go:398
↓ 7 callersFunctionisOrgManager
(role string)
desktop/backend-go/internal/handlers/organizations.go:89
↓ 7 callersFunctionlimitString
Shared test helper functions limitString truncates a string to a maximum length
desktop/backend-go/tests/security/main_test.go:24
↓ 7 callersFunctionmakeTestDetectorRegistry
(t *testing.T)
desktop/backend-go/internal/signal/signal_test.go:699
↓ 7 callersFunctionnullableString
nullableString converts an empty string to nil so Postgres gets a proper NULL.
desktop/backend-go/internal/sorx/scheduler.go:543
↓ 7 callersFunctionresolveWorkflowSearch
resolveWorkflowSearch returns the search arguments for queries that accept either a UUID or a workflow ID prefix.
desktop/backend-go/internal/handlers/osa_workflows_helpers.go:25
↓ 7 callersFunctionsanitizeContent
sanitizeContent replaces problematic Unicode characters with ASCII equivalents
desktop/backend-go/internal/handlers/chat_streaming_sse.go:21
↓ 7 callersFunctionsendToMainWindow
(channel: string, ...args: unknown[])
desktop/src/main/window.ts:163
↓ 7 callersMethodsessionKey
sessionKey generates a secure Redis key for a session using HMAC-SHA256 This prevents enumeration attacks by hashing the session ID before using it as
desktop/backend-go/internal/redis/session.go:120
↓ 7 callersFunctionsetupTestDB
setupTestDB creates a test database connection Uses testcontainers pattern from existing tests
desktop/backend-go/internal/services/multi_agent_integration_test.go:113
↓ 7 callersFunctionsetupTestTempWorkspace
setupTestTempWorkspace creates a temporary workspace directory for file operations
desktop/backend-go/internal/services/multi_agent_integration_test.go:136
↓ 7 callersMethodteamWorkspace
teamWorkspace returns the workspace id that owns a team.
desktop/backend-go/internal/handlers/teams.go:64
↓ 7 callersFunctiontestSandboxConfig
testSandboxConfig creates a config for tests
desktop/backend-go/internal/services/sandbox_deployment_test.go:19
↓ 7 callersFunctiontestSandboxLogger
testSandboxLogger creates a logger for tests
desktop/backend-go/internal/services/sandbox_deployment_test.go:14
↓ 7 callersFunctiontogglePopup
()
desktop/src/main/popup/chat-popup.ts:135
↓ 7 callersFunctiontruncateString
truncateString returns s truncated to maxLen characters, appending "..." when truncation occurs.
desktop/backend-go/internal/handlers/commands_context.go:367
↓ 7 callersMethodupdateSandboxStatus
updateSandboxStatus updates the sandbox status in the database.
desktop/backend-go/internal/services/sandbox_deployment.go:491
← previousnext →501–600 of 12,109, ranked by callers