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
Method
ListSessionsInWorkspace
(ctx context.Context, workspaceID string)
main.go:55
↓ 1 callers
Method
ListSkillsByWorkspace
ListSkillsByWorkspace returns all skills installed in the given workspace.
pkg/app/skills/service.go:55
↓ 1 callers
Method
ListUserWorkspaces
ListUserWorkspaces returns all workspaces the given user belongs to.
pkg/client/client.go:186
↓ 1 callers
Function
MembershipFromDB
(m db.AppSystemWorkspaceMember)
pkg/app/system/types.go:78
↓ 1 callers
Function
New
(db DBTX)
pkg/app/chat/db/db.go:20
↓ 1 callers
Function
New
(db DBTX)
pkg/app/notes/db/db.go:20
↓ 1 callers
Function
New
(db DBTX)
pkg/app/settings/db/db.go:20
↓ 1 callers
Function
New
(db DBTX)
pkg/app/passwords/db/db.go:20
↓ 1 callers
Function
New
(db DBTX)
pkg/app/system/db/db.go:20
↓ 1 callers
Function
New
(db DBTX)
pkg/app/skills/db/db.go:20
↓ 1 callers
Function
New
(db DBTX)
pkg/app/agents/db/db.go:20
↓ 1 callers
Function
NewSecretLoader
(pwSvc *passwords.Service)
pkg/auth/keys.go:26
↓ 1 callers
Function
NewService
(pool *pgxpool.Pool)
pkg/app/notes/service.go:16
↓ 1 callers
Method
Parameters
()
pkg/tool/tool.go:9
↓ 1 callers
Method
ProvisionSystemDataKey
===================================================================== Provisioning (called once when the owning entity is created) ===================
pkg/app/passwords/service.go:285
↓ 1 callers
Method
ProvisionUserDataKey
(ctx context.Context, tx pgx.Tx, userID string)
pkg/app/system/service.go:29
↓ 1 callers
Method
ProvisionWorkspaceDataKey
(ctx context.Context, tx pgx.Tx, workspaceID string)
pkg/app/system/service.go:28
↓ 1 callers
Method
ReplyToSession
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 callers
Method
SaveMemory
(ctx context.Context, agentID, userID, content, sessionID string, messageIDs []string)
pkg/tool/memory.go:11
↓ 1 callers
Method
SaveMemoryForUser
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 callers
Method
Search
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 callers
Method
Search
(ctx context.Context, query string, count int, timeRange string)
pkg/tool/websearch/ddg.go:61
↓ 1 callers
Method
Send
(ctx context.Context, connID string, payload []byte)
pkg/cloud/wsbus/wsbus.go:32
↓ 1 callers
Method
SetReplyURL
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 callers
Method
SetToken
SetToken stores a bearer token to be attached to subsequent requests.
pkg/client/client.go:48
↓ 1 callers
Method
SetUserPassword
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 callers
Method
SoftDeleteWorkspace
(ctx context.Context, id string)
pkg/app/system/db/queries.sql.go:421
↓ 1 callers
Method
Summary
()
pkg/agent/agent.go:49
↓ 1 callers
Function
SystemSettingFromDB
(s db.AppSettingsSystem)
pkg/app/settings/types.go:27
↓ 1 callers
Method
UpdateSession
(ctx context.Context, arg UpdateSessionParams)
pkg/app/chat/db/queries.sql.go:378
↓ 1 callers
Method
UpdateWorkspaceName
(ctx context.Context, arg UpdateWorkspaceNameParams)
pkg/app/system/db/queries.sql.go:454
↓ 1 callers
Method
UpsertSystemDataKey
(ctx context.Context, encryptedDataKey []byte)
pkg/app/passwords/db/queries.sql.go:320
↓ 1 callers
Method
UpsertUserDataKey
(ctx context.Context, arg UpsertUserDataKeyParams)
pkg/app/passwords/db/queries.sql.go:366
↓ 1 callers
Method
UpsertUserPasswordHash
(ctx context.Context, arg UpsertUserPasswordHashParams)
pkg/app/system/db/queries.sql.go:471
↓ 1 callers
Method
UpsertWorkspaceDataKey
(ctx context.Context, arg UpsertWorkspaceDataKeyParams)
pkg/app/passwords/db/queries.sql.go:412
↓ 1 callers
Function
UserIDFromContext
(ctx context.Context)
pkg/auth/middleware.go:24
↓ 1 callers
Function
UserSettingFromDB
(s db.AppSettingsUser)
pkg/app/settings/types.go:60
↓ 1 callers
Method
VerifyUserPassword
(ctx context.Context, email, password string)
pkg/api/handlers.go:39
↓ 1 callers
Function
WithProvisioner
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 callers
Method
WithTx
(tx pgx.Tx)
pkg/app/agents/db/db.go:28
↓ 1 callers
Function
WorkspaceMemberFromDB
(r db.ListMembersByWorkspaceRow)
pkg/app/system/types.go:94
↓ 1 callers
Function
WorkspaceSettingFromDB
(s db.AppSettingsWorkspace)
pkg/app/settings/types.go:43
↓ 1 callers
Function
buildLambdaHandler
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 callers
Function
buildLambdaHandler
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 callers
Function
buildPrompt
(ctx context.Context, workspaceID string, agentProfile *agents.Agent, userID string, settingsSvc *settings.Ser
deploy/aws/lambda/reply/main.go:183
↓ 1 callers
Function
chatCmd
()
cmd/astroclaw/chat.go:14
↓ 1 callers
Function
connectWS
connectWS establishes a WebSocket connection to the API Gateway.
tui/ws.go:19
↓ 1 callers
Function
createSessionInWorkspace
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 callers
Method
createSessionInWorkspace
(ctx context.Context, workspaceID, userID string, agentIDs []string, title string)
tui/backend.go:81
↓ 1 callers
Function
deleteSession
deleteSession handles DELETE /workspaces/{workspaceID}/sessions/{sessionID}. It soft-deletes the session identified by sessionID.
pkg/api/handlers.go:160
↓ 1 callers
Function
errorFromResponse
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 callers
Function
extractSystem
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 callers
Function
filterColumns
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 callers
Function
filterConstraints
(cons []constraintInfo, excludeTable string)
deploy/aws/lambda/migrate/main_test.go:225
↓ 1 callers
Function
filterIndexes
(idxs []indexInfo, excludeTable string)
deploy/aws/lambda/migrate/main_test.go:215
↓ 1 callers
Function
filterSupportingFiles
filterSupportingFiles removes SKILL.md from the file list, returning only supporting files (references, templates, scripts, etc.)
pkg/tool/skills/load_skill.go:162
↓ 1 callers
Function
formatForSummary
(msgs []provider.Message)
pkg/agent/context.go:327
↓ 1 callers
Function
getAdmin
getAdmin handles GET /users/admin. It returns the platform admin user.
pkg/api/handlers.go:223
↓ 1 callers
Method
getAdminID
(ctx context.Context)
tui/backend.go:35
↓ 1 callers
Function
getMe
(svc systemService)
pkg/api/handlers.go:234
↓ 1 callers
Function
getSession
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 callers
Function
getSystemSetting
getSystemSetting handles GET /settings/{name}. It returns a deploy-wide system setting by name.
pkg/api/handlers.go:173
↓ 1 callers
Function
getWorkspaceSetting
getWorkspaceSetting handles GET /workspaces/{workspaceID}/settings/{name}. It returns a workspace-scoped setting by name.
pkg/api/handlers.go:187
↓ 1 callers
Method
getWorkspaceSetting
(ctx context.Context, workspaceID, name string)
tui/backend.go:67
↓ 1 callers
Function
isRetryableStatus
isRetryableStatus returns true for HTTP status codes that are worth retrying: 429 (rate limit) and 5xx (server errors).
pkg/provider/httputil.go:68
↓ 1 callers
Method
listFiles
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 callers
Function
listSessions
listSessions handles GET /workspaces/{workspaceID}/sessions. It returns all sessions belonging to the given workspace.
pkg/api/handlers.go:132
↓ 1 callers
Function
listUserWorkspaces
listUserWorkspaces handles GET /users/{userID}/workspaces. It returns all workspaces the given user belongs to.
pkg/api/handlers.go:253
↓ 1 callers
Method
listUserWorkspaces
(ctx context.Context, userID string)
tui/backend.go:49
↓ 1 callers
Method
load
(ctx context.Context)
pkg/auth/keys.go:47
↓ 1 callers
Function
login
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 callers
Function
loginCmd
()
cmd/astroclaw/login.go:11
↓ 1 callers
Function
mustJSON
(v any)
pkg/app/chat/utils.go:47
↓ 1 callers
Function
newBackend
(apiURL, replyURL, apiKey string)
tui/backend.go:21
↓ 1 callers
Function
newModel
(b *backend, ws *websocket.Conn, workspaceID, sessionID, ownerID, defaultAgentID string)
tui/model.go:95
↓ 1 callers
Function
newRemoteBackend
(apiURL, replyURL, apiKey string)
main.go:33
↓ 1 callers
Function
newSafeHTTPClient
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 callers
Function
parseFrontmatter
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 callers
Method
post
(ctx context.Context, path string, body []byte)
main.go:181
↓ 1 callers
Method
post
(ctx context.Context, path string, body []byte)
tui/backend.go:121
↓ 1 callers
Method
processContent
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 callers
Function
providerToChatMessages
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 callers
Function
renderLogs
(logViewportView string, searchView string, filters map[string]bool, height int, totalWidth int)
tui/model.go:551
↓ 1 callers
Function
renderSessions
(sessions []sessionInfo, selectedIdx int, collapsed map[string]bool, height int)
tui/model.go:424
↓ 1 callers
Method
replyToSession
(ctx context.Context, sessionID, agentID, text string)
tui/backend.go:106
↓ 1 callers
Function
retryDelay
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 callers
Function
safeDialContext
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 callers
Function
safeToolRun
(ctx context.Context, t tool.Tool, args string)
pkg/agent/agent.go:230
↓ 1 callers
Function
seedCredentials
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 callers
Function
seedDefaultAgent
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 callers
Function
seedDefaultSkills
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 callers
Function
seedDefaultUser
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 callers
Function
seedDefaultWorkspace
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 callers
Function
seedJWTSecret
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 callers
Function
seedSystemDataKey
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 callers
Function
serverErrorMessage
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 callers
Method
summarizeBatch
(ctx context.Context, part1, part2 []provider.Message)
pkg/agent/context.go:306
↓ 1 callers
Function
toOpenAIMessages
(msgs []Message)
pkg/provider/openai.go:129
↓ 1 callers
Function
toOpenAITools
(tools []Tool)
pkg/provider/openai.go:160
↓ 1 callers
Function
toSDKMessages
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
← previous
next →
201–300 of 765, ranked by callers