Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Miosa-osa/BusinessOS
/ functions
Functions
12,109 in github.com/Miosa-osa/BusinessOS
⨍
Functions
12,109
◇
Types & classes
4,149
↓ 26 callers
Function
newConvContext
newContext returns a minimal ConversationContext for a given conversation.
desktop/backend-go/internal/services/context_tracker_test.go:44
↓ 26 callers
Function
newDashboardHandler
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 callers
Method
post
( path: string, body?: unknown, opts?: Omit<RequestOptions, "method" | "body">, )
optimal-engine/sdks/typescript/src/http.ts:56
↓ 26 callers
Method
send
(data: any)
frontend/src/test/setup.ts:231
↓ 26 callers
Function
tableUUIDToString
tableUUIDToString converts a pgtype.UUID to string
desktop/backend-go/internal/handlers/tables_helpers.go:28
↓ 26 callers
Function
writeSSEEvent
writeSSEEvent writes a streaming event in SSE format
desktop/backend-go/internal/handlers/chat_streaming_sse.go:43
↓ 25 callers
Method
Get
Get retrieves cached user data for a session token
desktop/backend-go/internal/middleware/redis_auth.go:130
↓ 25 callers
Function
NewOSAPromptBuilder
NewOSAPromptBuilder creates a new prompt builder instance
desktop/backend-go/internal/services/osa_prompt_builder.go:74
↓ 25 callers
Method
Register
Register registers a collection point with this metric.
desktop/backend-go/internal/signal/metrics.go:24
↓ 25 callers
Method
WriteFile
(ctx context.Context, input json.RawMessage)
desktop/backend-go/internal/tools/code_tools_file_ops.go:115
↓ 25 callers
Function
cleanup
Call in onDestroy to guarantee all resources are released.
frontend/src/lib/hooks/useVoiceRecorder.svelte.ts:317
↓ 25 callers
Function
createIntTestWorkspace
createIntTestWorkspace creates a workspace for integration tests
desktop/backend-go/internal/handlers/integrations_test_helpers.go:35
↓ 25 callers
Function
newTestContextTracker
--------------------------------------------------------------------------- Helpers ------------------------------------------------------------------
desktop/backend-go/internal/services/context_tracker_test.go:19
↓ 25 callers
Method
post
Send a POST and return the decoded JSON body.
optimal-engine/sdks/python/src/optimal_engine/_client.py:158
↓ 25 callers
Function
validateAgentForm
( agent: Partial<CustomAgent>, )
frontend/src/lib/utils/agentValidation.ts:61
↓ 24 callers
Method
Create
(ctx context.Context, input CreateInput)
desktop/backend-go/internal/services/notification_service.go:78
↓ 24 callers
Method
GetToken
(ctx context.Context, userID string)
desktop/backend-go/internal/integrations/types.go:30
↓ 24 callers
Method
RegisterSkill
RegisterSkill adds a skill to the registry.
desktop/backend-go/internal/sorx/engine.go:70
↓ 24 callers
Method
State
State returns the current circuit breaker state
desktop/backend-go/internal/integrations/osa/resilience.go:238
↓ 24 callers
Method
String
()
desktop/backend-go/internal/streaming/sse_reliability_test.go:432
↓ 24 callers
Function
createTestApp
createTestApp creates a test generated app in the database
desktop/backend-go/internal/handlers/osa_test_helpers.go:62
↓ 24 callers
Function
detectLanguage
(filepath: string)
frontend/src/lib/editor/utils/language-detection.ts:84
↓ 24 callers
Function
getMainWindow
()
desktop/src/main/window.ts:16
↓ 24 callers
Function
getPoolFromContext
getPoolFromContext extracts pgxpool.Pool from execution context.
desktop/backend-go/internal/sorx/actions.go:115
↓ 24 callers
Method
request
(endpoint: string, options: RequestInit = {})
frontend/src/lib/api/embeddings.ts:68
↓ 24 callers
Function
setupOSARouter
setupOSARouter creates a test router with auth for OSA API tests
desktop/backend-go/internal/handlers/osa_api_test_helpers.go:143
↓ 23 callers
Function
MobileRespondError
============================================================================= ERROR RESPONSE HELPERS =================================================
desktop/backend-go/internal/handlers/mobile_errors.go:91
↓ 23 callers
Function
buildHeaders
(includeContentType = false)
frontend/src/lib/stores/optimal.ts:148
↓ 23 callers
Method
close
Abort the stream.
optimal-engine/sdks/typescript/src/surface.ts:34
↓ 23 callers
Function
setupDashboardRouter
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 callers
Method
Error
()
desktop/backend-go/internal/middleware/internal_auth.go:47
↓ 21 callers
Function
NewSmartChunkingService
NewSmartChunkingService creates a new smart chunking service
desktop/backend-go/internal/services/smart_chunking_service.go:45
↓ 21 callers
Function
crmJsonBody
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 callers
Function
fatalf
(format string, a ...interface{})
desktop/backend-go/cmd/businessos-cli/main.go:436
↓ 21 callers
Function
matchesPattern
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 callers
Method
updateBlock
Update block props
frontend/src/lib/modules/knowledge-base/entities/block.ts:562
↓ 20 callers
Method
Execute
(ctx context.Context, task Task)
desktop/backend-go/internal/appgen/types.go:88
↓ 20 callers
Method
GetEmbedding
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 callers
Method
Name
()
desktop/backend-go/internal/tools/tools_registry.go:15
↓ 20 callers
Function
NewBuildEventBus
NewBuildEventBus creates a new build event bus
desktop/backend-go/internal/services/build_event_bus.go:81
↓ 20 callers
Function
ParsePagination
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 callers
Method
Unsubscribe
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 callers
Function
crmTestUser
============================================================================ TEST HELPERS ============================================================
desktop/backend-go/internal/handlers/crm_deals_test.go:26
↓ 20 callers
Function
newProjectHandler
─── shared test helpers ──────────────────────────────────────────────────── newProjectHandler returns a handler with nil dependencies — safe for requ
desktop/backend-go/internal/handlers/projects_test.go:34
↓ 20 callers
Function
newTestCRMHandler
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 callers
Function
pgtypeUUIDToStringRequired
(u pgtype.UUID)
desktop/backend-go/internal/handlers/response_misc.go:20
↓ 20 callers
Function
request
(path: string, init?: RequestInit)
optimal-engine/desktop/src/lib/api.ts:18
↓ 20 callers
Function
seedContext
seedContext injects a ConversationContext directly into the in-memory cache.
desktop/backend-go/internal/services/context_tracker_test.go:37
↓ 20 callers
Function
setTestUser
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 callers
Method
Allow
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 callers
Method
Close
Close cleans up session resources
desktop/backend-go/internal/terminal/session.go:156
↓ 19 callers
Method
GenerateEmbedding
(ctx context.Context, text string)
desktop/backend-go/internal/tools/tools_registry.go:32
↓ 19 callers
Method
GetActiveProvider
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 callers
Function
NewPromptComposer
NewPromptComposer creates a new prompt composer with core layers
desktop/backend-go/internal/prompts/composer.go:28
↓ 19 callers
Method
Pool
Pool returns the database pool.
desktop/backend-go/internal/integrations/microsoft/provider.go:206
↓ 19 callers
Method
Reset
Reset resets the detector state
desktop/backend-go/internal/streaming/artifact_detector.go:278
↓ 19 callers
Method
Write
(p []byte)
desktop/backend-go/internal/services/template_loader_service.go:200
↓ 19 callers
Function
newAuthRouter
── helpers ──────────────────────────────────────────────────────────────── newAuthRouter returns a gin.Engine that injects a valid *middleware.Better
desktop/backend-go/internal/handlers/osa_apps_management_test.go:32
↓ 19 callers
Function
pgtypeUUIDToString
Helper functions for converting pgtype values to JSON-friendly formats
desktop/backend-go/internal/handlers/response_misc.go:12
↓ 19 callers
Method
resolve
* Resolve a conflict between local and server records
desktop/src/main/sync/conflict.ts:53
↓ 18 callers
Function
DefaultConfig
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 callers
Method
GetCustomTable
(ctx context.Context, arg GetCustomTableParams)
desktop/backend-go/internal/database/sqlc/flexible_tables.sql.go:430
↓ 18 callers
Function
NewPaginatedResponse
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 callers
Function
NewTemplateLoaderService
NewTemplateLoaderService creates a new template loader service
desktop/backend-go/internal/services/template_loader_service.go:23
↓ 18 callers
Method
SetEmbedding
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 callers
Method
create
(opts?: { cols?: number; rows?: number; cwd?: string; shell?: string; })
frontend/src/lib/services/electron-terminal.service.ts:12
↓ 18 callers
Function
createTestFile
Helper to create OsaModuleFile for testing
desktop/backend-go/internal/services/snapshot_diff_test.go:37
↓ 18 callers
Method
get
Render a wiki page for a specific audience.
optimal-engine/sdks/python/src/optimal_engine/profile.py:45
↓ 18 callers
Function
getAppTemplates
( params?: ListTemplatesParams )
frontend/src/lib/api/templates/templates.ts:15
↓ 18 callers
Function
setupCSRFTestContext
setupCSRFTestContext creates a Gin test context for CSRF middleware testing
desktop/backend-go/internal/middleware/csrf_test.go:14
↓ 17 callers
Method
Create
Create stores a new session
desktop/backend-go/internal/redis/session.go:141
↓ 17 callers
Method
GetNode
GetNode returns a single node
desktop/backend-go/internal/handlers/nodes.go:186
↓ 17 callers
Method
LoadTemplate
LoadTemplate loads and parses a YAML template by name
desktop/backend-go/internal/services/template_loader_service.go:32
↓ 17 callers
Function
MobileRespondUnauthorized
MobileRespondUnauthorized returns a 401 for auth failures
desktop/backend-go/internal/handlers/mobile_errors.go:138
↓ 17 callers
Function
NewSSEWriter
NewSSEWriter creates a new SSE writer
desktop/backend-go/internal/streaming/sse_writer.go:17
↓ 17 callers
Function
TransformNode
(n sqlc.Node)
desktop/backend-go/internal/handlers/response_workspace.go:325
↓ 17 callers
Function
generateBlockId
()
frontend/src/lib/modules/knowledge-base/entities/block.ts:597
↓ 17 callers
Function
makeRequest
makeRequest helper for making authenticated requests
desktop/backend-go/internal/handlers/app_templates_test.go:109
↓ 17 callers
Function
makeTransition
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 callers
Function
newTestServer
---- test helpers -----------------------------------------------------------
desktop/backend-go/internal/sandbox/e2b/e2b_test.go:20
↓ 17 callers
Method
query
* Run a raw query
desktop/src/main/database/sqlite.ts:252
↓ 17 callers
Method
record
(success bool)
desktop/backend-go/internal/subconscious/metrics_impl.go:33
↓ 17 callers
Method
run
* Run a raw statement
desktop/src/main/database/sqlite.ts:259
↓ 17 callers
Function
setupSandboxTestRouter
setupSandboxTestRouter creates a test router with sandbox handler
desktop/backend-go/internal/handlers/sandbox_test.go:80
↓ 17 callers
Function
strPtr
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 callers
Method
Count
Count returns the number of registered skills
desktop/backend-go/internal/services/skills/registry.go:127
↓ 16 callers
Method
Count
Count returns the number of registered agents.
desktop/backend-go/internal/agents/registry.go:133
↓ 16 callers
Method
Error
Error logs at error level
desktop/backend-go/internal/logging/sanitizer.go:277
↓ 16 callers
Method
Error
()
desktop/backend-go/tests/security/sensitive_data_test.go:424
↓ 16 callers
Function
NewClient
NewClient creates a new OSA client for a local/runtime endpoint.
desktop/backend-go/internal/integrations/osa/client.go:27
↓ 16 callers
Function
NewContainerMetrics
NewContainerMetrics creates a new metrics instance
desktop/backend-go/internal/container/monitor.go:90
↓ 16 callers
Function
NewCustomModuleService
(pool *pgxpool.Pool, logger *slog.Logger)
desktop/backend-go/internal/services/custom_module_service.go:130
↓ 16 callers
Method
Submit
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 callers
Method
WriteEvent
WriteEvent writes a StreamEvent as an SSE event
desktop/backend-go/internal/streaming/sse_writer.go:26
↓ 16 callers
Function
createIntTestMemory
createIntTestMemory creates a memory for integration tests
desktop/backend-go/internal/handlers/integrations_test_helpers.go:59
↓ 16 callers
Function
getTestUser
(type: keyof typeof testUsers)
frontend/tests/e2e/fixtures/testUsers.ts:48
↓ 16 callers
Function
handleApiCall
( apiCall: () => Promise<T>, options: { showErrorToast?: boolean; showSuccessToast?: boolean; successM
frontend/src/lib/utils/api-handler.ts:41
↓ 16 callers
Function
lastFetchCall
()
optimal-engine/sdks/typescript/test/client.test.ts:27
↓ 16 callers
Function
mockFetch
( status: number, body: unknown, headers: Record<string, string> = {}, )
optimal-engine/sdks/typescript/test/client.test.ts:10
↓ 16 callers
Method
newBaseData
(subject string)
desktop/backend-go/internal/services/templates/email_template_service.go:100
← previous
next →
101–200 of 12,109, ranked by callers