Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xjeffro/astroclaw
/ functions
Functions
765 in github.com/0xjeffro/astroclaw
⨍
Functions
765
◇
Types & classes
189
↓ 1 callers
Function
toSDKTools
toSDKTools converts AstroClaw Tools to Anthropic SDK ToolUnionParam slice.
pkg/provider/anthropic.go:208
↓ 1 callers
Function
toStringSlice
toStringSlice converts an any value (expected to be []string or []any) to []string. Returns nil if conversion fails.
pkg/provider/anthropic.go:227
↓ 1 callers
Method
track
track stores a fresh WebSocket connection under connID. Called by Handler after a successful upgrade.
pkg/cloud/wsbus/inprocess/bus.go:59
↓ 1 callers
Function
truncateAtUTF8
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 callers
Function
truncateAtUTF8Boundary
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 callers
Function
truncateOutput
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 callers
Function
updateLogViewport
updateLogViewport rebuilds the log content for the log viewport.
tui/model.go:373
↓ 1 callers
Function
uploadSkillFiles
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 callers
Function
upsertWorkspaceSetting
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 callers
Function
whoamiCmd
()
cmd/astroclaw/whoami.go:15
↓ 1 callers
Function
workspacesCmd
()
cmd/astroclaw/workspace.go:15
↓ 1 callers
Function
workspacesListCmd
()
cmd/astroclaw/workspace.go:24
Method
AddMembership
Workspace Members
pkg/app/system/db/queries.sql.go:26
Method
Approval
()
pkg/agent/agent_test.go:27
Method
Approval
()
pkg/tool/arithmetic.go:45
Method
Approval
()
pkg/tool/editfile.go:68
Method
Approval
()
pkg/tool/exec.go:67
Method
Approval
()
pkg/tool/time.go:24
Method
Approval
()
pkg/tool/readfile.go:97
Method
Approval
()
pkg/tool/writefile.go:62
Method
Approval
()
pkg/tool/memory.go:59
Method
Approval
()
pkg/tool/webfetch/webfetch.go:81
Method
Approval
()
pkg/tool/skills/load_skill.go:59
Method
Approval
()
pkg/tool/websearch/websearch.go:67
Method
AttachAgentToWorkspace
(ctx context.Context, arg AttachAgentToWorkspaceParams)
pkg/app/agents/db/queries.sql.go:22
Method
ChatStream
(_ context.Context, msgs []provider.Message, _ []provider.Tool)
pkg/app/chat/service_test.go:84
Method
ChatStream
(_ context.Context, msgs []provider.Message, _ []provider.Tool)
pkg/agent/agent_test.go:53
Method
ClearHistory
()
pkg/agent/agent.go:41
Method
ClearUserPassword
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
Method
CreateSessionInWorkspace
(ctx context.Context, workspaceID, userID string, agentIDs []string, title string)
main.go:42
Method
CreateSessionInWorkspace
CreateSessionInWorkspace NewSession creates a session and writes the initial participants in one transaction. - workspaceID: the workspace this sessio
pkg/app/chat/service.go:44
Method
CreateSessionInWorkspace
(_ context.Context, workspaceID, userID string, agentIDs []string, title string)
pkg/api/handlers_test.go:42
Method
CreateUser
Users
pkg/app/system/db/queries.sql.go:67
Method
CreateWorkspace
Workspaces
pkg/app/system/db/queries.sql.go:89
Method
Decrypt
(ctx context.Context, ciphertext []byte)
pkg/cloud/kms.go:42
Method
DeleteSessionMember
(ctx context.Context, arg DeleteSessionMemberParams)
pkg/app/chat/db/queries.sql.go:148
Method
DeleteSystemCredential
(ctx context.Context, name string)
pkg/app/passwords/service.go:109
Method
DeleteSystemCredential
(ctx context.Context, name string)
pkg/app/passwords/db/queries.sql.go:17
Method
DeleteUserCredential
(ctx context.Context, userID, name string)
pkg/app/passwords/service.go:254
Method
DeleteUserCredential
(ctx context.Context, arg DeleteUserCredentialParams)
pkg/app/passwords/db/queries.sql.go:32
Method
DeleteWorkspace
(ctx context.Context, id string)
pkg/app/system/service.go:244
Method
DeleteWorkspaceCredential
(ctx context.Context, workspaceID, name string)
pkg/app/passwords/service.go:180
Method
DeleteWorkspaceCredential
(ctx context.Context, arg DeleteWorkspaceCredentialParams)
pkg/app/passwords/db/queries.sql.go:47
Method
Description
()
pkg/agent/agent_test.go:22
Method
Description
()
pkg/tool/arithmetic.go:14
Method
Description
()
pkg/tool/editfile.go:14
Method
Description
()
pkg/tool/exec.go:24
Method
Description
()
pkg/tool/time.go:11
Method
Description
()
pkg/tool/readfile.go:34
Method
Description
()
pkg/tool/writefile.go:14
Method
Description
()
pkg/tool/memory.go:25
Method
Description
()
pkg/tool/webfetch/webfetch.go:62
Method
Description
()
pkg/tool/skills/load_skill.go:32
Method
Description
()
pkg/tool/websearch/websearch.go:38
Method
DetachAgentFromWorkspace
(ctx context.Context, agentID, workspaceID string)
pkg/app/agents/service.go:81
Method
DetachAgentFromWorkspace
(ctx context.Context, arg DetachAgentFromWorkspaceParams)
pkg/app/agents/db/queries.sql.go:64
Method
Encrypt
(ctx context.Context, plaintext []byte)
pkg/cloud/kms.go:38
Method
Exec
(context.Context, string, ...interface{})
pkg/app/chat/db/db.go:15
Method
Exec
(context.Context, string, ...interface{})
pkg/app/notes/db/db.go:15
Method
Exec
(context.Context, string, ...interface{})
pkg/app/settings/db/db.go:15
Method
Exec
(context.Context, string, ...interface{})
pkg/app/passwords/db/db.go:15
Method
Exec
(context.Context, string, ...interface{})
pkg/app/system/db/db.go:15
Method
Exec
(context.Context, string, ...interface{})
pkg/app/skills/db/db.go:15
Method
Execute
(_ context.Context, args string)
pkg/agent/agent_test.go:26
Method
Execute
(_ context.Context, args string)
pkg/tool/arithmetic.go:31
Method
Execute
(_ context.Context, args string)
pkg/tool/editfile.go:41
Method
Execute
(parentCtx context.Context, args string)
pkg/tool/exec.go:40
Method
Execute
(_ context.Context, _ string)
pkg/tool/time.go:21
Method
Execute
(_ context.Context, args string)
pkg/tool/readfile.go:49
Method
Execute
(_ context.Context, args string)
pkg/tool/writefile.go:38
Method
Execute
(ctx context.Context, args string)
pkg/tool/webfetch/webfetch.go:84
Method
Execute
(ctx context.Context, args string)
pkg/tool/skills/load_skill.go:62
Function
FormatForPrompt
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
Method
GetAdmin
(_ context.Context)
pkg/client/client_test.go:38
Method
GetAdmin
GetAdmin returns the platform admin user.
pkg/client/client.go:173
Method
GetAdmin
(ctx context.Context)
pkg/app/system/service.go:93
Method
GetAdmin
(ctx context.Context)
pkg/app/system/db/queries.sql.go:124
Method
GetAdmin
(_ context.Context)
pkg/api/handlers_test.go:112
Method
GetAgentFromWorkspace
Returns the agent only if it is attached to the given workspace.
pkg/app/agents/db/queries.sql.go:81
Method
GetByUser
(ctx context.Context, userID string)
pkg/cloud/wsbus/ws_registry.go:36
Method
GetConnectionsByUser
(ctx context.Context, userID string)
pkg/app/system/db/queries.sql.go:142
Method
GetMembership
(ctx context.Context, arg GetMembershipParams)
pkg/app/system/db/queries.sql.go:177
Method
GetMemory
(ctx context.Context, id string)
pkg/app/notes/db/queries.sql.go:63
Method
GetMemorySources
(ctx context.Context, memoryID string)
pkg/app/notes/db/queries.sql.go:81
Method
GetSession
(ctx context.Context, id string)
pkg/app/chat/db/queries.sql.go:158
Method
GetSession
(_ context.Context, id string)
pkg/api/handlers_test.go:55
Method
GetSkillFromWorkspace
(ctx context.Context, arg GetSkillFromWorkspaceParams)
pkg/app/skills/db/queries.sql.go:23
Method
GetSystemCredential
(ctx context.Context, name string)
pkg/app/passwords/db/queries.sql.go:56
Method
GetSystemSetting
System scope
pkg/app/settings/service.go:22
Method
GetSystemSetting
System scope (deploy-wide)
pkg/app/settings/db/queries.sql.go:18
Method
GetSystemSetting
(_ context.Context, name string)
pkg/api/handlers_test.go:75
Method
GetUser
(_ context.Context, _ string)
pkg/client/client_test.go:31
Method
GetUser
(ctx context.Context, id string)
pkg/app/system/service.go:101
Method
GetUser
(ctx context.Context, id string)
pkg/app/system/db/queries.sql.go:193
Method
GetUser
(ctx context.Context, _ string)
pkg/api/handlers_test.go:108
Method
GetUserByEmail
(ctx context.Context, email string)
pkg/app/system/db/queries.sql.go:211
Method
GetUserCredential
===================================================================== User scope =====================================================================
pkg/app/passwords/service.go:208
Method
GetUserCredential
(ctx context.Context, arg GetUserCredentialParams)
pkg/app/passwords/db/queries.sql.go:95
Method
GetUserSetting
User scope
pkg/app/settings/db/queries.sql.go:37
Method
GetWorkspace
(ctx context.Context, id string)
pkg/app/system/service.go:205
← previous
next →
301–400 of 765, ranked by callers