MCPcopy Create free account

hub / github.com/0xjeffro/astroclaw / functions

Functions765 in github.com/0xjeffro/astroclaw

↓ 1 callersFunctiontoSDKTools
toSDKTools converts AstroClaw Tools to Anthropic SDK ToolUnionParam slice.
pkg/provider/anthropic.go:208
↓ 1 callersFunctiontoStringSlice
toStringSlice converts an any value (expected to be []string or []any) to []string. Returns nil if conversion fails.
pkg/provider/anthropic.go:227
↓ 1 callersMethodtrack
track stores a fresh WebSocket connection under connID. Called by Handler after a successful upgrade.
pkg/cloud/wsbus/inprocess/bus.go:59
↓ 1 callersFunctiontruncateAtUTF8
truncateAtUTF8 truncates a string to at most maxBytes, backing up to avoid splitting a multi-byte UTF-8 character.
pkg/tool/readfile.go:102
↓ 1 callersFunctiontruncateAtUTF8Boundary
truncateAtUTF8Boundary truncates a string to at most maxBytes, backing up to avoid splitting a multi-byte UTF-8 character.
pkg/tool/exec.go:104
↓ 1 callersFunctiontruncateOutput
truncateOutput limits output by both line count and byte size, whichever is hit first, inspired by OpenCode's design here. When truncating at the byte
pkg/tool/exec.go:74
↓ 1 callersFunctionupdateLogViewport
updateLogViewport rebuilds the log content for the log viewport.
tui/model.go:373
↓ 1 callersFunctionuploadSkillFiles
uploadSkillFiles uploads all files in a skill directory to the bucket, preserving the directory structure under skills/{author}/{name}/{version}/.
deploy/aws/lambda/migrate/seed_skills.go:108
↓ 1 callersFunctionupsertWorkspaceSetting
upsertWorkspaceSetting handles PUT /workspaces/{workspaceID}/settings/{name}. It creates or updates a workspace-scoped setting with the provided value
pkg/api/handlers.go:202
↓ 1 callersFunctionwhoamiCmd
()
cmd/astroclaw/whoami.go:15
↓ 1 callersFunctionworkspacesCmd
()
cmd/astroclaw/workspace.go:15
↓ 1 callersFunctionworkspacesListCmd
()
cmd/astroclaw/workspace.go:24
MethodAddMembership
Workspace Members
pkg/app/system/db/queries.sql.go:26
MethodApproval
()
pkg/agent/agent_test.go:27
MethodApproval
()
pkg/tool/arithmetic.go:45
MethodApproval
()
pkg/tool/editfile.go:68
MethodApproval
()
pkg/tool/exec.go:67
MethodApproval
()
pkg/tool/time.go:24
MethodApproval
()
pkg/tool/readfile.go:97
MethodApproval
()
pkg/tool/writefile.go:62
MethodApproval
()
pkg/tool/memory.go:59
MethodApproval
()
pkg/tool/webfetch/webfetch.go:81
MethodApproval
()
pkg/tool/skills/load_skill.go:59
MethodApproval
()
pkg/tool/websearch/websearch.go:67
MethodAttachAgentToWorkspace
(ctx context.Context, arg AttachAgentToWorkspaceParams)
pkg/app/agents/db/queries.sql.go:22
MethodChatStream
(_ context.Context, msgs []provider.Message, _ []provider.Tool)
pkg/app/chat/service_test.go:84
MethodChatStream
(_ context.Context, msgs []provider.Message, _ []provider.Tool)
pkg/agent/agent_test.go:53
MethodClearHistory
()
pkg/agent/agent.go:41
MethodClearUserPassword
ClearUserPassword removes the password row for a user, disabling password login for them. Other auth methods (OAuth, API tokens) are unaffected.
pkg/app/system/service.go:164
MethodCreateSessionInWorkspace
(ctx context.Context, workspaceID, userID string, agentIDs []string, title string)
main.go:42
MethodCreateSessionInWorkspace
CreateSessionInWorkspace NewSession creates a session and writes the initial participants in one transaction. - workspaceID: the workspace this sessio
pkg/app/chat/service.go:44
MethodCreateSessionInWorkspace
(_ context.Context, workspaceID, userID string, agentIDs []string, title string)
pkg/api/handlers_test.go:42
MethodCreateUser
Users
pkg/app/system/db/queries.sql.go:67
MethodCreateWorkspace
Workspaces
pkg/app/system/db/queries.sql.go:89
MethodDecrypt
(ctx context.Context, ciphertext []byte)
pkg/cloud/kms.go:42
MethodDeleteSessionMember
(ctx context.Context, arg DeleteSessionMemberParams)
pkg/app/chat/db/queries.sql.go:148
MethodDeleteSystemCredential
(ctx context.Context, name string)
pkg/app/passwords/service.go:109
MethodDeleteSystemCredential
(ctx context.Context, name string)
pkg/app/passwords/db/queries.sql.go:17
MethodDeleteUserCredential
(ctx context.Context, userID, name string)
pkg/app/passwords/service.go:254
MethodDeleteUserCredential
(ctx context.Context, arg DeleteUserCredentialParams)
pkg/app/passwords/db/queries.sql.go:32
MethodDeleteWorkspace
(ctx context.Context, id string)
pkg/app/system/service.go:244
MethodDeleteWorkspaceCredential
(ctx context.Context, workspaceID, name string)
pkg/app/passwords/service.go:180
MethodDeleteWorkspaceCredential
(ctx context.Context, arg DeleteWorkspaceCredentialParams)
pkg/app/passwords/db/queries.sql.go:47
MethodDescription
()
pkg/agent/agent_test.go:22
MethodDescription
()
pkg/tool/arithmetic.go:14
MethodDescription
()
pkg/tool/editfile.go:14
MethodDescription
()
pkg/tool/exec.go:24
MethodDescription
()
pkg/tool/time.go:11
MethodDescription
()
pkg/tool/readfile.go:34
MethodDescription
()
pkg/tool/writefile.go:14
MethodDescription
()
pkg/tool/memory.go:25
MethodDescription
()
pkg/tool/webfetch/webfetch.go:62
MethodDescription
()
pkg/tool/skills/load_skill.go:32
MethodDescription
()
pkg/tool/websearch/websearch.go:38
MethodDetachAgentFromWorkspace
(ctx context.Context, agentID, workspaceID string)
pkg/app/agents/service.go:81
MethodDetachAgentFromWorkspace
(ctx context.Context, arg DetachAgentFromWorkspaceParams)
pkg/app/agents/db/queries.sql.go:64
MethodEncrypt
(ctx context.Context, plaintext []byte)
pkg/cloud/kms.go:38
MethodExec
(context.Context, string, ...interface{})
pkg/app/chat/db/db.go:15
MethodExec
(context.Context, string, ...interface{})
pkg/app/notes/db/db.go:15
MethodExec
(context.Context, string, ...interface{})
pkg/app/settings/db/db.go:15
MethodExec
(context.Context, string, ...interface{})
pkg/app/passwords/db/db.go:15
MethodExec
(context.Context, string, ...interface{})
pkg/app/system/db/db.go:15
MethodExec
(context.Context, string, ...interface{})
pkg/app/skills/db/db.go:15
MethodExecute
(_ context.Context, args string)
pkg/agent/agent_test.go:26
MethodExecute
(_ context.Context, args string)
pkg/tool/arithmetic.go:31
MethodExecute
(_ context.Context, args string)
pkg/tool/editfile.go:41
MethodExecute
(parentCtx context.Context, args string)
pkg/tool/exec.go:40
MethodExecute
(_ context.Context, _ string)
pkg/tool/time.go:21
MethodExecute
(_ context.Context, args string)
pkg/tool/readfile.go:49
MethodExecute
(_ context.Context, args string)
pkg/tool/writefile.go:38
MethodExecute
(ctx context.Context, args string)
pkg/tool/webfetch/webfetch.go:84
MethodExecute
(ctx context.Context, args string)
pkg/tool/skills/load_skill.go:62
FunctionFormatForPrompt
FormatForPrompt builds a compact skill index for the system prompt. Only includes name, description, and when_to_use to conserve tokens.
pkg/app/skills/types.go:50
MethodGetAdmin
(_ context.Context)
pkg/client/client_test.go:38
MethodGetAdmin
GetAdmin returns the platform admin user.
pkg/client/client.go:173
MethodGetAdmin
(ctx context.Context)
pkg/app/system/service.go:93
MethodGetAdmin
(ctx context.Context)
pkg/app/system/db/queries.sql.go:124
MethodGetAdmin
(_ context.Context)
pkg/api/handlers_test.go:112
MethodGetAgentFromWorkspace
Returns the agent only if it is attached to the given workspace.
pkg/app/agents/db/queries.sql.go:81
MethodGetByUser
(ctx context.Context, userID string)
pkg/cloud/wsbus/ws_registry.go:36
MethodGetConnectionsByUser
(ctx context.Context, userID string)
pkg/app/system/db/queries.sql.go:142
MethodGetMembership
(ctx context.Context, arg GetMembershipParams)
pkg/app/system/db/queries.sql.go:177
MethodGetMemory
(ctx context.Context, id string)
pkg/app/notes/db/queries.sql.go:63
MethodGetMemorySources
(ctx context.Context, memoryID string)
pkg/app/notes/db/queries.sql.go:81
MethodGetSession
(ctx context.Context, id string)
pkg/app/chat/db/queries.sql.go:158
MethodGetSession
(_ context.Context, id string)
pkg/api/handlers_test.go:55
MethodGetSkillFromWorkspace
(ctx context.Context, arg GetSkillFromWorkspaceParams)
pkg/app/skills/db/queries.sql.go:23
MethodGetSystemCredential
(ctx context.Context, name string)
pkg/app/passwords/db/queries.sql.go:56
MethodGetSystemSetting
System scope
pkg/app/settings/service.go:22
MethodGetSystemSetting
System scope (deploy-wide)
pkg/app/settings/db/queries.sql.go:18
MethodGetSystemSetting
(_ context.Context, name string)
pkg/api/handlers_test.go:75
MethodGetUser
(_ context.Context, _ string)
pkg/client/client_test.go:31
MethodGetUser
(ctx context.Context, id string)
pkg/app/system/service.go:101
MethodGetUser
(ctx context.Context, id string)
pkg/app/system/db/queries.sql.go:193
MethodGetUser
(ctx context.Context, _ string)
pkg/api/handlers_test.go:108
MethodGetUserByEmail
(ctx context.Context, email string)
pkg/app/system/db/queries.sql.go:211
MethodGetUserCredential
===================================================================== User scope =====================================================================
pkg/app/passwords/service.go:208
MethodGetUserCredential
(ctx context.Context, arg GetUserCredentialParams)
pkg/app/passwords/db/queries.sql.go:95
MethodGetUserSetting
User scope
pkg/app/settings/db/queries.sql.go:37
MethodGetWorkspace
(ctx context.Context, id string)
pkg/app/system/service.go:205
← previousnext →301–400 of 765, ranked by callers