MCPcopy Create free account

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

Functions765 in github.com/0xjeffro/astroclaw

↓ 1 callersMethodListSessionsInWorkspace
(ctx context.Context, workspaceID string)
main.go:55
↓ 1 callersMethodListSkillsByWorkspace
ListSkillsByWorkspace returns all skills installed in the given workspace.
pkg/app/skills/service.go:55
↓ 1 callersMethodListUserWorkspaces
ListUserWorkspaces returns all workspaces the given user belongs to.
pkg/client/client.go:186
↓ 1 callersFunctionMembershipFromDB
(m db.AppSystemWorkspaceMember)
pkg/app/system/types.go:78
↓ 1 callersFunctionNew
(db DBTX)
pkg/app/chat/db/db.go:20
↓ 1 callersFunctionNew
(db DBTX)
pkg/app/notes/db/db.go:20
↓ 1 callersFunctionNew
(db DBTX)
pkg/app/settings/db/db.go:20
↓ 1 callersFunctionNew
(db DBTX)
pkg/app/passwords/db/db.go:20
↓ 1 callersFunctionNew
(db DBTX)
pkg/app/system/db/db.go:20
↓ 1 callersFunctionNew
(db DBTX)
pkg/app/skills/db/db.go:20
↓ 1 callersFunctionNew
(db DBTX)
pkg/app/agents/db/db.go:20
↓ 1 callersFunctionNewSecretLoader
(pwSvc *passwords.Service)
pkg/auth/keys.go:26
↓ 1 callersFunctionNewService
(pool *pgxpool.Pool)
pkg/app/notes/service.go:16
↓ 1 callersMethodParameters
()
pkg/tool/tool.go:9
↓ 1 callersMethodProvisionSystemDataKey
===================================================================== Provisioning (called once when the owning entity is created) ===================
pkg/app/passwords/service.go:285
↓ 1 callersMethodProvisionUserDataKey
(ctx context.Context, tx pgx.Tx, userID string)
pkg/app/system/service.go:29
↓ 1 callersMethodProvisionWorkspaceDataKey
(ctx context.Context, tx pgx.Tx, workspaceID string)
pkg/app/system/service.go:28
↓ 1 callersMethodReplyToSession
ReplyToSession Reply TODO: implement streaming for remote mode. Currently waits for the full response before returning, so the user sees no output unt
main.go:145
↓ 1 callersMethodSaveMemory
(ctx context.Context, agentID, userID, content, sessionID string, messageIDs []string)
pkg/tool/memory.go:11
↓ 1 callersMethodSaveMemoryForUser
SaveMemoryForUser SaveMemory creates a new memory entry attributed to (agentID, userID) and links it to the source messages it was derived from.
pkg/app/notes/service.go:24
↓ 1 callersMethodSearch
Search executes a web search and returns formatted results. Count is the max number of results to return (1-10). timeRange is an optional filter: "d"
pkg/tool/websearch/websearch.go:17
↓ 1 callersMethodSearch
(ctx context.Context, query string, count int, timeRange string)
pkg/tool/websearch/ddg.go:61
↓ 1 callersMethodSend
(ctx context.Context, connID string, payload []byte)
pkg/cloud/wsbus/wsbus.go:32
↓ 1 callersMethodSetReplyURL
SetReplyURL sets the URL of the Reply Lambda Function URL. Required before calling Chat. CLIs typically read it from env ASTROCLAW_REPLY_URL.
pkg/client/client.go:54
↓ 1 callersMethodSetToken
SetToken stores a bearer token to be attached to subsequent requests.
pkg/client/client.go:48
↓ 1 callersMethodSetUserPassword
SetUserPassword hashes plaintext with Argon2id and stores the PHC-encoded result for the given user. Used both for initial password setup and for pass
pkg/app/system/service.go:120
↓ 1 callersMethodSoftDeleteWorkspace
(ctx context.Context, id string)
pkg/app/system/db/queries.sql.go:421
↓ 1 callersMethodSummary
()
pkg/agent/agent.go:49
↓ 1 callersFunctionSystemSettingFromDB
(s db.AppSettingsSystem)
pkg/app/settings/types.go:27
↓ 1 callersMethodUpdateSession
(ctx context.Context, arg UpdateSessionParams)
pkg/app/chat/db/queries.sql.go:378
↓ 1 callersMethodUpdateWorkspaceName
(ctx context.Context, arg UpdateWorkspaceNameParams)
pkg/app/system/db/queries.sql.go:454
↓ 1 callersMethodUpsertSystemDataKey
(ctx context.Context, encryptedDataKey []byte)
pkg/app/passwords/db/queries.sql.go:320
↓ 1 callersMethodUpsertUserDataKey
(ctx context.Context, arg UpsertUserDataKeyParams)
pkg/app/passwords/db/queries.sql.go:366
↓ 1 callersMethodUpsertUserPasswordHash
(ctx context.Context, arg UpsertUserPasswordHashParams)
pkg/app/system/db/queries.sql.go:471
↓ 1 callersMethodUpsertWorkspaceDataKey
(ctx context.Context, arg UpsertWorkspaceDataKeyParams)
pkg/app/passwords/db/queries.sql.go:412
↓ 1 callersFunctionUserIDFromContext
(ctx context.Context)
pkg/auth/middleware.go:24
↓ 1 callersFunctionUserSettingFromDB
(s db.AppSettingsUser)
pkg/app/settings/types.go:60
↓ 1 callersMethodVerifyUserPassword
(ctx context.Context, email, password string)
pkg/api/handlers.go:39
↓ 1 callersFunctionWithProvisioner
WithProvisioner attaches a DataKeyProvisioner. Required for any caller that creates users or workspaces because we need to create data key for them;
pkg/app/system/service.go:42
↓ 1 callersMethodWithTx
(tx pgx.Tx)
pkg/app/agents/db/db.go:28
↓ 1 callersFunctionWorkspaceMemberFromDB
(r db.ListMembersByWorkspaceRow)
pkg/app/system/types.go:94
↓ 1 callersFunctionWorkspaceSettingFromDB
(s db.AppSettingsWorkspace)
pkg/app/settings/types.go:43
↓ 1 callersFunctionbuildLambdaHandler
buildLambdaHandler wires DSQL, wsbus, storage/kms, chat.Service, and the api.ReplyHandler, then mounts POST /sessions/{sessionID}/reply on a chi route
deploy/aws/lambda/reply/main.go:38
↓ 1 callersFunctionbuildLambdaHandler
buildLambdaHandler connects to DSQL, wires the services, and returns a Lambda-compatible handler. Pulled out of init() so `go test` can import this pa
deploy/aws/lambda/api/main.go:23
↓ 1 callersFunctionbuildPrompt
(ctx context.Context, workspaceID string, agentProfile *agents.Agent, userID string, settingsSvc *settings.Ser
deploy/aws/lambda/reply/main.go:183
↓ 1 callersFunctionchatCmd
()
cmd/astroclaw/chat.go:14
↓ 1 callersFunctionconnectWS
connectWS establishes a WebSocket connection to the API Gateway.
tui/ws.go:19
↓ 1 callersFunctioncreateSessionInWorkspace
createSessionInWorkspace handles POST /workspaces/{workspaceID}/sessions. It decodes the request body and creates a new chat session in the workspace.
pkg/api/handlers.go:109
↓ 1 callersMethodcreateSessionInWorkspace
(ctx context.Context, workspaceID, userID string, agentIDs []string, title string)
tui/backend.go:81
↓ 1 callersFunctiondeleteSession
deleteSession handles DELETE /workspaces/{workspaceID}/sessions/{sessionID}. It soft-deletes the session identified by sessionID.
pkg/api/handlers.go:160
↓ 1 callersFunctionerrorFromResponse
errorFromResponse maps a non-2xx status + body to a sentinel-wrapped error so callers can use errors.Is to make decisions.
pkg/client/client.go:114
↓ 1 callersFunctionextractSystem
extractSystem pulls out system messages from the msg slice and returns the concatenated system prompt + the remaining non-system messages.
pkg/provider/anthropic.go:148
↓ 1 callersFunctionfilterColumns
filterTable removes entries belonging to a specific table (used to exclude the _migrations tracking table from Database B).
deploy/aws/lambda/migrate/main_test.go:205
↓ 1 callersFunctionfilterConstraints
(cons []constraintInfo, excludeTable string)
deploy/aws/lambda/migrate/main_test.go:225
↓ 1 callersFunctionfilterIndexes
(idxs []indexInfo, excludeTable string)
deploy/aws/lambda/migrate/main_test.go:215
↓ 1 callersFunctionfilterSupportingFiles
filterSupportingFiles removes SKILL.md from the file list, returning only supporting files (references, templates, scripts, etc.)
pkg/tool/skills/load_skill.go:162
↓ 1 callersFunctionformatForSummary
(msgs []provider.Message)
pkg/agent/context.go:327
↓ 1 callersFunctiongetAdmin
getAdmin handles GET /users/admin. It returns the platform admin user.
pkg/api/handlers.go:223
↓ 1 callersMethodgetAdminID
(ctx context.Context)
tui/backend.go:35
↓ 1 callersFunctiongetMe
(svc systemService)
pkg/api/handlers.go:234
↓ 1 callersFunctiongetSession
getSession handles GET /workspaces/{workspaceID}/sessions/{sessionID}. It returns a single session by ID, or 404 if it does not exist.
pkg/api/handlers.go:146
↓ 1 callersFunctiongetSystemSetting
getSystemSetting handles GET /settings/{name}. It returns a deploy-wide system setting by name.
pkg/api/handlers.go:173
↓ 1 callersFunctiongetWorkspaceSetting
getWorkspaceSetting handles GET /workspaces/{workspaceID}/settings/{name}. It returns a workspace-scoped setting by name.
pkg/api/handlers.go:187
↓ 1 callersMethodgetWorkspaceSetting
(ctx context.Context, workspaceID, name string)
tui/backend.go:67
↓ 1 callersFunctionisRetryableStatus
isRetryableStatus returns true for HTTP status codes that are worth retrying: 429 (rate limit) and 5xx (server errors).
pkg/provider/httputil.go:68
↓ 1 callersMethodlistFiles
listFiles lists all files under a skill's storage prefix. TODO: this only returns the first page. Fine for skills (they're small), but should iterate
pkg/tool/skills/load_skill.go:140
↓ 1 callersFunctionlistSessions
listSessions handles GET /workspaces/{workspaceID}/sessions. It returns all sessions belonging to the given workspace.
pkg/api/handlers.go:132
↓ 1 callersFunctionlistUserWorkspaces
listUserWorkspaces handles GET /users/{userID}/workspaces. It returns all workspaces the given user belongs to.
pkg/api/handlers.go:253
↓ 1 callersMethodlistUserWorkspaces
(ctx context.Context, userID string)
tui/backend.go:49
↓ 1 callersMethodload
(ctx context.Context)
pkg/auth/keys.go:47
↓ 1 callersFunctionlogin
login handles POST /login. It verifies the supplied credentials and returns a signed JWT plus the public user record. The response collapses "unknown
pkg/api/auth.go:24
↓ 1 callersFunctionloginCmd
()
cmd/astroclaw/login.go:11
↓ 1 callersFunctionmustJSON
(v any)
pkg/app/chat/utils.go:47
↓ 1 callersFunctionnewBackend
(apiURL, replyURL, apiKey string)
tui/backend.go:21
↓ 1 callersFunctionnewModel
(b *backend, ws *websocket.Conn, workspaceID, sessionID, ownerID, defaultAgentID string)
tui/model.go:95
↓ 1 callersFunctionnewRemoteBackend
(apiURL, replyURL, apiKey string)
main.go:33
↓ 1 callersFunctionnewSafeHTTPClient
newSafeHTTPClient returns an http.Client with SSRF protections: - Custom dialer that validates resolved IPs at connect time - Redirect checker that bl
pkg/tool/webfetch/ssrf.go:44
↓ 1 callersFunctionparseFrontmatter
parseFrontmatter extracts description, when_to_use, and version from SKILL.md YAML frontmatter. Missing fields are returned as empty strings.
deploy/aws/lambda/migrate/seed_skills.go:139
↓ 1 callersMethodpost
(ctx context.Context, path string, body []byte)
main.go:181
↓ 1 callersMethodpost
(ctx context.Context, path string, body []byte)
tui/backend.go:121
↓ 1 callersMethodprocessContent
processContent detects the content type and converts the body to text. Returns the extracted text and the extractor name. The extractor is a string la
pkg/tool/webfetch/webfetch.go:174
↓ 1 callersFunctionproviderToChatMessages
providerToChatMessages converts provider messages to chat messages for persisting Agent output back to the database. SessionID is set on each message;
pkg/app/chat/utils.go:33
↓ 1 callersFunctionrenderLogs
(logViewportView string, searchView string, filters map[string]bool, height int, totalWidth int)
tui/model.go:551
↓ 1 callersFunctionrenderSessions
(sessions []sessionInfo, selectedIdx int, collapsed map[string]bool, height int)
tui/model.go:424
↓ 1 callersMethodreplyToSession
(ctx context.Context, sessionID, agentID, text string)
tui/backend.go:106
↓ 1 callersFunctionretryDelay
retryDelay determines how long to wait before the next retry attempt. Priority: 1. Retry-After header as numeric seconds (e.g. "30") 2. Retry-After he
pkg/provider/httputil.go:80
↓ 1 callersFunctionsafeDialContext
safeDialContext wraps a dialer to validate resolved IPs at connect time. This prevents DNS rebinding attacks where a hostname resolves to a public IP
pkg/tool/webfetch/ssrf.go:74
↓ 1 callersFunctionsafeToolRun
(ctx context.Context, t tool.Tool, args string)
pkg/agent/agent.go:230
↓ 1 callersFunctionseedCredentials
seedCredentials writes initial system-scope credentials into the database from environment variables set by CDK parameters. The system data key must a
deploy/aws/lambda/migrate/main.go:256
↓ 1 callersFunctionseedDefaultAgent
seedDefaultAgent creates the genesis agent in the default workspace on first deploy if none exists. This is the first agent created in the system, and
deploy/aws/lambda/migrate/main.go:365
↓ 1 callersFunctionseedDefaultSkills
seedDefaultSkills reads skill directories bundled with the Lambda, uploads each file to the storage bucket under skills/{author}/{name}/{version}/...,
deploy/aws/lambda/migrate/seed_skills.go:22
↓ 1 callersFunctionseedDefaultUser
seedDefaultUser creates the admin user on the first deployment if none exists, and (re)sets the admin password whenever a fresh value is provided via
deploy/aws/lambda/migrate/main.go:306
↓ 1 callersFunctionseedDefaultWorkspace
seedDefaultWorkspace creates a default workspace and adds the admin to it as owner, unless the admin is already a member of some workspace.
deploy/aws/lambda/migrate/main.go:333
↓ 1 callersFunctionseedJWTSecret
seedJWTSecret ensures a secret used to sign session JWTs exists in the system-scope credentials. The secret never appears in any env var or log output
deploy/aws/lambda/migrate/main.go:279
↓ 1 callersFunctionseedSystemDataKey
seedSystemDataKey ensures the system-scope data key exists. Must run before any seedXxxCredential call that touches system credentials.
deploy/aws/lambda/migrate/main.go:268
↓ 1 callersFunctionserverErrorMessage
serverErrorMessage pulls the "error" field out of our handlers' standard {"error": "..."} JSON body. Falls back to the raw bytes if the body is not JS
pkg/client/client.go:131
↓ 1 callersMethodsummarizeBatch
(ctx context.Context, part1, part2 []provider.Message)
pkg/agent/context.go:306
↓ 1 callersFunctiontoOpenAIMessages
(msgs []Message)
pkg/provider/openai.go:129
↓ 1 callersFunctiontoOpenAITools
(tools []Tool)
pkg/provider/openai.go:160
↓ 1 callersFunctiontoSDKMessages
toSDKMessages converts AstroClaw Messages to Anthropic SDK MessageParam slice. Key differences from AstroClaw's format: - Content is an array of typed
pkg/provider/anthropic.go:170
← previousnext →201–300 of 765, ranked by callers