MCPcopy Create free account

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

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

↓ 9 callersMethodGetHTTPClient
GetHTTPClient returns an HTTP client with auto-refreshing tokens.
desktop/backend-go/internal/integrations/microsoft/provider_auth.go:256
↓ 9 callersMethodGetOSAModuleInstanceByIDWithAuth
(ctx context.Context, arg GetOSAModuleInstanceByIDWithAuthParams)
desktop/backend-go/internal/database/sqlc/osa.sql.go:937
↓ 9 callersFunctionGetRoleContext
GetRoleContext retrieves the role context from the request context
desktop/backend-go/internal/middleware/permission_check.go:64
↓ 9 callersMethodGetToken
GetToken retrieves OAuth tokens for a user.
desktop/backend-go/internal/integrations/clickup/provider.go:230
↓ 9 callersMethodGetTokenSource
GetTokenSource returns a TokenSource that auto-refreshes.
desktop/backend-go/internal/integrations/google/tools.go:309
↓ 9 callersMethodInstallModule
InstallModule installs a module into a workspace
desktop/backend-go/internal/services/module_installation_service.go:52
↓ 9 callersMethodList
List returns all registered agents. The order of the returned slice is non-deterministic.
desktop/backend-go/internal/agents/registry.go:74
↓ 9 callersMethodListComputers
ListComputers returns computers visible to the configured MIOSA API key.
desktop/backend-go/internal/integrations/miosa/compute_client.go:103
↓ 9 callersFunctionNew
New creates a new TaskAgent
desktop/backend-go/internal/agents/task/agent.go:18
↓ 9 callersFunctionNewBaseAgent
NewBaseAgent creates a new base agent with the given configuration
desktop/backend-go/internal/agents/base_agent.go:75
↓ 9 callersFunctionNewOSADeploymentHandler
NewOSADeploymentHandler creates a new deployment handler
desktop/backend-go/internal/handlers/osa_deployment.go:18
↓ 9 callersMethodRegisterRoutes
RegisterRoutes is the top-level route registration entry point. It sets up shared auth middleware and delegates each domain to its own register* metho
desktop/backend-go/internal/handlers/routes.go:11
↓ 9 callersMethodSaveToken
Token Management
desktop/backend-go/internal/integrations/types.go:29
↓ 9 callersFunctionabortInternalAuth
(c *gin.Context, status int, message string)
desktop/backend-go/internal/middleware/internal_auth.go:201
↓ 9 callersMethodcacheKey
cacheKey generates a cache key for a request
desktop/backend-go/internal/integrations/osa/fallback.go:254
↓ 9 callersMethodcancel
()
frontend/src/lib/stores/chat/ChatStreamManager.ts:221
↓ 9 callersMethodcheckRouteProtection
checkRouteProtection validates changes against protected routes
desktop/backend-go/internal/services/module_protection.go:202
↓ 9 callersFunctioncontains
contains checks if a string contains a substring (case-insensitive helper)
desktop/backend-go/internal/integrations/osa/resilience.go:346
↓ 9 callersFunctioncontainsLabel
(labels []string, label string)
desktop/backend-go/internal/integrations/google/gmail_helpers.go:82
↓ 9 callersFunctioncrmJsonToMap
(b []byte)
desktop/backend-go/internal/handlers/crm_helpers.go:347
↓ 9 callersFunctioncrmNumericToFloat
(n pgtype.Numeric)
desktop/backend-go/internal/handlers/crm_helpers.go:73
↓ 9 callersFunctioncrmPtrToString
(s *string)
desktop/backend-go/internal/handlers/crm_helpers.go:81
↓ 9 callersFunctioncronParser
============================================================================ Helpers =================================================================
desktop/backend-go/internal/sorx/scheduler_test.go:20
↓ 9 callersMethoddestroy
* Cleanup resources
frontend/src/lib/services/simpleGestureController.ts:330
↓ 9 callersMethodemitEvent
emitEvent publishes a build event
desktop/backend-go/internal/services/app_generation_events.go:37
↓ 9 callersMethodengineError
engineError surfaces upstream failures verbatim. We don't try to categorize 4xx vs 5xx — the engine returns its own status codes and this handler is a
desktop/backend-go/internal/handlers/optimal_engine_routes.go:433
↓ 9 callersMethodenqueue
enqueue mirrors a write into the engine. Passes through silently when the sync service isn't wired so modules don't have to nil-check.
desktop/backend-go/internal/handlers/engine_sync_mixin.go:36
↓ 9 callersFunctionextractDisplayNumber
(versionNumber: string)
frontend/src/lib/api/versions/mappers.ts:8
↓ 9 callersFunctiongetApiBase
()
frontend/src/lib/stores/notifications.ts:71
↓ 9 callersMethodgetAuthContext
Helper function to get auth context
desktop/backend-go/internal/handlers/custom_modules.go:658
↓ 9 callersFunctiongetCategoryIconName
(category: string)
frontend/src/lib/stores/deployedAppsStore.ts:86
↓ 9 callersFunctionhandleResponse
(response: Response)
frontend/src/lib/api/rag/client.ts:29
↓ 9 callersMethodisRemote
isRemote reports whether the user asked for remote mode.
desktop/backend-go/cmd/optimal-cli/options.go:59
↓ 9 callersFunctionnewTestClientHandler
newTestClientHandler returns a ClientHandler backed by a nil pool.
desktop/backend-go/internal/handlers/crm_deals_test.go:50
↓ 9 callersMethodorgRole
orgRole returns the caller's role in the org, or "" if not a member.
desktop/backend-go/internal/handlers/organizations.go:78
↓ 9 callersFunctionprintPretty
printPretty emits any value as 2-indented JSON on stdout. We use json marshaling instead of a custom table renderer so the output is always machine-re
desktop/backend-go/cmd/optimal-cli/output.go:15
↓ 9 callersMethodrequireAuthUser
requireAuthUser extracts the authenticated user or returns 401
desktop/backend-go/internal/handlers/app_profiler.go:26
↓ 9 callersMethodrequireEngine
----- helpers ---------------------------------------------------------------
desktop/backend-go/internal/handlers/optimal_engine_routes.go:418
↓ 9 callersMethodsaveContextToDB
saveContextToDB persists a context to the database
desktop/backend-go/internal/services/context_tracker_persistence.go:68
↓ 9 callersMethodsessionKey
sessionKey generates a secure Redis key for a session token using HMAC-SHA256 This prevents enumeration attacks by hashing the token before using it a
desktop/backend-go/internal/middleware/redis_auth.go:109
↓ 9 callersFunctionsetupTestIsolation
(page: Page)
frontend/tests/e2e/fixtures/helpers.ts:236
↓ 9 callersFunctionsyncRouter
--------------------------------------------------------------------------- Test helpers -------------------------------------------------------------
desktop/backend-go/internal/handlers/sync_test.go:21
↓ 9 callersFunctiontruncateText
truncateText truncates text to a maximum length
desktop/backend-go/internal/services/context_builder.go:319
↓ 9 callersFunctionvalidatePathSafety
validatePathSafety checks for path traversal attacks and other malicious patterns. Returns the absolute, cleaned path and an error if the path is unsa
desktop/backend-go/internal/handlers/filesystem_security.go:11
↓ 9 callersMethodworkspaceRole
workspaceRole returns the caller's role in a workspace, or "".
desktop/backend-go/internal/handlers/teams.go:50
↓ 8 callersMethodAddStep
AddStep adds a new step to the chain
desktop/backend-go/internal/agents/orchestration_cot.go:11
↓ 8 callersFunctionBuildSignalAnnotation
BuildSignalAnnotation produces a model-agnostic signal annotation for the system prompt. Designed to work with ANY LLM — local 7B models, Groq, Anthro
desktop/backend-go/internal/agents/genre_enricher.go:17
↓ 8 callersMethodChatComplete
(ctx context.Context, messages []ChatMessage, systemPrompt string)
desktop/backend-go/internal/services/llm.go:120
↓ 8 callersMethodChunkMarkdown
ChunkMarkdown chunks markdown content respecting structure
desktop/backend-go/internal/services/smart_chunking_markdown.go:17
↓ 8 callersMethodCreatePrivateMemory
CreatePrivateMemory creates a user's private memory
desktop/backend-go/internal/services/memory_hierarchy_service.go:199
↓ 8 callersMethodCreateTeamMember
CreateTeamMember creates a new team member.
desktop/backend-go/internal/handlers/team.go:103
↓ 8 callersMethodCreateWorkspaceMemory
CreateWorkspaceMemory creates a workspace-level memory (accessible to all members)
desktop/backend-go/internal/services/memory_hierarchy_service.go:184
↓ 8 callersFunctionDefaultHealthMonitorConfig
DefaultHealthMonitorConfig returns the default health monitor configuration.
desktop/backend-go/internal/services/sandbox_health_monitor.go:54
↓ 8 callersMethodDelete
Delete removes a session
desktop/backend-go/internal/redis/session.go:232
↓ 8 callersMethodDescription
()
desktop/backend-go/internal/agents/agent.go:32
↓ 8 callersFunctionExtractAppMetadata
ExtractAppMetadata parses package.json and infers category/icon It supports both file system paths and bundle content (bundleContent parameter)
desktop/backend-go/internal/services/metadata_extractor.go:21
↓ 8 callersMethodGetAuthURL
URL or icon identifier OAuth
desktop/backend-go/internal/integrations/types.go:20
↓ 8 callersMethodGetCacheStats
GetCacheStats returns cache statistics
desktop/backend-go/internal/services/embedding_cache_service.go:332
↓ 8 callersMethodGetCommonImages
GetCommonImages returns the list of commonly used images
desktop/backend-go/internal/services/sandbox_image_warmer.go:310
↓ 8 callersMethodGetContextRequirements
()
desktop/backend-go/internal/agents/agent.go:36
↓ 8 callersMethodGetDashboard
(ctx context.Context, arg GetDashboardParams)
desktop/backend-go/internal/database/sqlc/dashboards.sql.go:331
↓ 8 callersMethodGetGmailAPI
GetGmailAPI returns a Gmail API service for a user.
desktop/backend-go/internal/integrations/google/gmail_read.go:16
↓ 8 callersMethodGetModule
GetModule retrieves a module by ID
desktop/backend-go/internal/services/custom_module_service_crud.go:117
↓ 8 callersMethodGetSheetsAPI
GetSheetsAPI returns a Google Sheets API service for a user.
desktop/backend-go/internal/integrations/google/sheets.go:60
↓ 8 callersMethodGetTeamMember
GetTeamMember returns a single team member.
desktop/backend-go/internal/handlers/team.go:200
↓ 8 callersMethodGetWorkspaceMemories
GetWorkspaceMemories retrieves shared workspace memories
desktop/backend-go/internal/services/memory_hierarchy_service.go:40
↓ 8 callersMethodHasFeature
HasFeature checks if a specific feature is enabled.
desktop/backend-go/internal/integrations/microsoft/provider.go:125
↓ 8 callersMethodID
ID returns the tool's provider ID.
desktop/backend-go/internal/integrations/google/tools.go:179
↓ 8 callersMethodIncrementStarted
Metrics atomic operations IncrementStarted increments the total started counter
desktop/backend-go/internal/container/monitor.go:433
↓ 8 callersMethodIsConnected
IsConnected checks if a user has active connections
desktop/backend-go/internal/services/sse_broadcaster.go:259
↓ 8 callersMethodIsEnabled
IsEnabled returns whether the cache is currently enabled
desktop/backend-go/internal/services/embedding_cache_service.go:443
↓ 8 callersMethodIsLoaded
IsLoaded returns whether skills have been loaded.
desktop/backend-go/internal/services/skills_loader_agent.go:124
↓ 8 callersMethodList
List returns metadata for all registered skills
desktop/backend-go/internal/services/skills/registry.go:74
↓ 8 callersMethodListInstalledModules
ListInstalledModules lists all installed modules for a workspace
desktop/backend-go/internal/services/module_installation_service.go:399
↓ 8 callersMethodListRoles
===================================================================== ROLE MANAGEMENT ================================================================
desktop/backend-go/internal/services/workspace_service.go:524
↓ 8 callersMethodName
()
desktop/backend-go/internal/services/websearch_service.go:42
↓ 8 callersFunctionNew
New creates a new ClientAgent
desktop/backend-go/internal/agents/client/agent.go:18
↓ 8 callersFunctionNew
New creates a new ProjectAgent
desktop/backend-go/internal/agents/project/agent.go:18
↓ 8 callersFunctionNew
New creates a new AnalystAgent
desktop/backend-go/internal/agents/analyst/agent.go:18
↓ 8 callersFunctionNew
New creates a new DocumentAgent
desktop/backend-go/internal/agents/document/agent.go:18
↓ 8 callersFunctionNewCircuitBreaker
NewCircuitBreaker creates a new circuit breaker
desktop/backend-go/internal/integrations/osa/resilience.go:94
↓ 8 callersFunctionNewContainerManager
NewContainerManager creates a new container manager
desktop/backend-go/internal/container/manager.go:34
↓ 8 callersFunctionNewOSAWebhooksHandler
NewOSAWebhooksHandler creates a new webhooks handler. isProduction must be true when ENVIRONMENT=production; unsigned webhooks are then rejected uncon
desktop/backend-go/internal/handlers/osa_webhooks.go:33
↓ 8 callersFunctionNewPatternExtractor
NewPatternExtractor creates a new extractor.
desktop/backend-go/internal/subconscious/pattern_extractor.go:25
↓ 8 callersFunctionNewResilientClient
NewResilientClient creates a new resilient OSA client
desktop/backend-go/internal/integrations/osa/resilient_client.go:45
↓ 8 callersFunctionNewStreamProcessor
NewStreamProcessor creates a new stream processor
desktop/backend-go/internal/streaming/sse_writer.go:75
↓ 8 callersFunctionNewWorkspaceService
===================================================================== CONSTRUCTOR ====================================================================
desktop/backend-go/internal/services/workspace_service.go:98
↓ 8 callersMethodRegisterActions
RegisterActions registers module actions with sorx engine
desktop/backend-go/internal/services/module_installation_service.go:165
↓ 8 callersFunctionRespondBadRequestErr
RespondBadRequestErr sends a 400 with the user-facing message. msg must be safe to expose — do not pass err.Error() here.
desktop/backend-go/internal/handlers/error_middleware.go:88
↓ 8 callersMethodRunOnce
RunOnce checks for persistent failures and adjusts setpoints.
desktop/backend-go/internal/feedback/double_loop.go:77
↓ 8 callersMethodTestExecution
---- Sandbox lifecycle methods ---------------------------------------------- TestExecution runs a single sandbox execution against projectPath.
desktop/backend-go/internal/sandbox/e2b/client_sandbox.go:12
↓ 8 callersFunctionValidateAuthToken
ValidateAuthToken validates a JWT token from OSA This can be used to validate responses or callbacks from OSA
desktop/backend-go/internal/integrations/osa/auth.go:46
↓ 8 callersMethodWithError
WithError adds the error message to details
desktop/backend-go/internal/utils/errors.go:180
↓ 8 callersMethodcheckOperationProtection
checkOperationProtection validates changes against protected operations
desktop/backend-go/internal/services/module_protection.go:220
↓ 8 callersFunctioncomputeDominantMode
computeDominantMode finds the mode with the most cumulative time. DurationMs measures time spent in the *previous* mode (FromMode), not the destinatio
desktop/backend-go/internal/services/session_health.go:89
↓ 8 callersFunctioncomputeLCS
computeLCS computes the Longest Common Subsequence of two string slices
desktop/backend-go/internal/services/workspace_version_diff.go:296
↓ 8 callersFunctioncookieHeader
cookieHeader returns the value of the named cookie from an http.Response.
desktop/backend-go/internal/handlers/oauth_test.go:85
↓ 8 callersFunctioncreateOSATestWorkspace
createOSATestWorkspace creates a test workspace for OSA API tests
desktop/backend-go/internal/handlers/osa_api_test_helpers.go:40
↓ 8 callersMethodemit
* Emit sync event
desktop/src/main/sync/engine.ts:171
↓ 8 callersMethodemitProgress
(taskID, status, message string, progress int)
desktop/backend-go/internal/appgen/worker.go:205
← previousnext →401–500 of 12,109, ranked by callers