MCPcopy Index your code

hub / github.com/clawfleet/ClawFleet / functions

Functions407 in github.com/clawfleet/ClawFleet

↓ 273 callersFunctiont
(key, ...args)
internal/web/static/js/i18n.js:491
↓ 155 callersFunctionwriteError
writeError writes a JSON error response.
internal/web/handlers.go:606
↓ 45 callersFunctionwriteJSON
writeJSON writes a JSON response.
internal/web/handlers.go:566
↓ 37 callersMethodGet
Get returns a copy of the instance with the given name, or nil if not found.
internal/state/store.go:114
↓ 36 callersFunctionrequest
(method, path, body)
internal/web/static/js/api.js:3
↓ 31 callersFunctiondockerExecAs
dockerExecAs runs a command inside a container as the specified user.
internal/container/configure.go:552
↓ 24 callersMethodClose
()
internal/web/handlers_image.go:270
↓ 24 callersMethodloadAssets
()
internal/web/handlers_assets.go:19
↓ 24 callersMethodloadStore
loadStore loads the state from disk. Called per-request to stay in sync with CLI.
internal/web/server.go:45
↓ 22 callersFunctionDataDir
()
internal/config/config.go:109
↓ 21 callersFunctionuseLang
()
internal/web/static/js/i18n.js:476
↓ 18 callersMethodSave
()
internal/state/store.go:85
↓ 17 callersFunctionrefresh
()
internal/web/static/js/components/snapshots.js:11
↓ 16 callersFunctionStatus
Status returns the container's status string and its StartedAt time (zero if not running).
internal/container/manager.go:136
↓ 15 callersMethodSaveAssets
SaveAssets persists the asset store to disk.
internal/state/assets.go:95
↓ 14 callersFunctionLoad
()
internal/state/store.go:61
↓ 13 callersMethodRemove
(name string)
internal/state/store.go:101
↓ 12 callersFunctionNewClient
()
internal/container/client.go:9
↓ 12 callersMethodSetStatus
SetStatus updates the status of the named instance.
internal/state/store.go:127
↓ 10 callersFunctiondashboardLogPath
dashboardLogPath returns the path to the dashboard log file.
internal/cli/daemon.go:63
↓ 9 callersMethodImageRef
()
internal/config/config.go:69
↓ 8 callersMethodIsHermes
IsHermes reports whether this instance uses the Hermes runtime.
internal/state/store.go:32
↓ 8 callersFunctionStart
(cli *docker.Client, containerID string)
internal/container/manager.go:114
↓ 7 callersMethodAdd
(inst *Instance)
internal/state/store.go:95
↓ 7 callersMethodSnapshot
Snapshot returns a copy of all instances.
internal/state/store.go:153
↓ 7 callersFunctiondockerExecOutputAs
dockerExecOutputAs runs a command as the specified user and returns its stdout.
internal/container/configure.go:584
↓ 7 callersFunctionpidFromFile
pidFromFile reads the PID from the standard PID file.
internal/cli/daemon.go:85
↓ 7 callersFunctionwriteSSE
writeSSE writes a single Server-Sent Event, handling multi-line data correctly.
internal/web/handlers_image.go:225
↓ 6 callersMethodGetChannel
GetChannel returns a channel asset by ID, or nil.
internal/state/assets.go:178
↓ 6 callersMethodGetCharacter
GetCharacter returns a character asset by ID, or nil.
internal/state/assets.go:261
↓ 6 callersMethodPublish
Publish sends an event to all subscribers (non-blocking).
internal/web/events.go:54
↓ 6 callersFunctionbuildRoster
buildRoster returns the list of teammates for the given instance, excluding itself. Only instances with a character asset are included in the roster.
internal/web/handlers_configure.go:259
↓ 6 callersFunctionchannelPolicySteps
(channel, channelCfg string)
internal/container/configure.go:61
↓ 5 callersFunctionLoadSnapshots
LoadSnapshots loads the snapshot store from disk.
internal/state/snapshots.go:33
↓ 5 callersMethodReleaseChannelByInstance
ReleaseChannelByInstance clears UsedBy for all channels assigned to the given instance.
internal/state/assets.go:237
↓ 5 callersFunctiondecodeJWTAccountID
decodeJWTAccountID extracts the ChatGPT account ID from a JWT access token. Returns empty string on failure (non-fatal).
internal/web/oauth_codex.go:268
↓ 5 callersFunctiondoValidationRequest
(req *http.Request, provider string)
internal/web/validate.go:82
↓ 5 callersMethodplistPath
()
internal/cli/daemon_launchd.go:52
↓ 5 callersFunctionwaitForGateway
waitForGateway polls the gateway health endpoint until it responds or timeout.
internal/container/configure.go:838
↓ 4 callersMethodAddCharacter
AddCharacter adds a character asset.
internal/state/assets.go:274
↓ 4 callersFunctionFindAvailable
FindAvailable returns the first available TCP port >= start that is not in used.
internal/port/allocator.go:9
↓ 4 callersFunctionImageExists
(cli *docker.Client, imageRef string)
internal/container/image.go:16
↓ 4 callersFunctionLoad
()
internal/config/config.go:90
↓ 4 callersFunctionLoadAssets
LoadAssets loads the asset store from disk.
internal/state/assets.go:65
↓ 4 callersFunctionNewServiceManager
NewServiceManager returns systemd if available, otherwise falls back to PID-based.
internal/cli/daemon_linux.go:20
↓ 4 callersFunctionRenderSoulMarkdown
RenderSoulMarkdown produces the SOUL.md content from the given parameters. Exported as a pure function for testability.
internal/container/configure.go:490
↓ 4 callersMethodSaveSnapshots
SaveSnapshots persists the snapshot store to disk.
internal/state/snapshots.go:58
↓ 4 callersMethodSetConfig
SetConfig stores the asset IDs used to configure the named instance.
internal/state/store.go:139
↓ 4 callersMethodStart
Start starts the daemon via the platform service manager.
internal/cli/daemon.go:22
↓ 4 callersFunctionStop
(cli *docker.Client, containerID string)
internal/container/manager.go:118
↓ 4 callersFunctionValidateChannelToken
ValidateChannelToken validates a channel's messaging credentials.
internal/web/validate.go:126
↓ 4 callersFunctionapplyConfigSteps
(cli *docker.Client, containerID, user string, steps []configSetStep)
internal/container/configure.go:48
↓ 4 callersFunctionclose
()
internal/web/static/js/ws.js:48
↓ 4 callersFunctionformatBytes
(bytes)
internal/web/static/js/utils.js:1
↓ 4 callersFunctiongenerateID
()
internal/web/handlers_assets.go:13
↓ 4 callersFunctiongeneratePKCE
generatePKCE creates a PKCE code verifier and its S256 challenge.
internal/web/oauth_codex.go:76
↓ 4 callersFunctioninstanceToResponse
(inst state.Instance, assets *state.AssetStore)
internal/web/handlers.go:39
↓ 4 callersMethodloadSnapshots
()
internal/web/handlers_snapshots.go:12
↓ 4 callersFunctionmaskToken
(token)
internal/web/static/js/components/channel-assets.js:6
↓ 4 callersMethodrefreshTeammateRosters
refreshTeammateRosters rewrites SOUL.md for all other running instances that have a character, so their roster reflects the latest fleet state. Errors
internal/web/handlers_configure.go:291
↓ 4 callersFunctionresolveTargets
resolveTargets returns copies of the instances matching name, or all instances if name == "all".
internal/cli/helpers.go:8
↓ 4 callersFunctionslackJSONResponse
(status int, body string)
internal/web/validate_test.go:16
↓ 4 callersFunctionwithPending
(name, action, fn)
internal/web/static/js/app.js:102
↓ 3 callersMethodGetByName
GetByName returns a snapshot by name, or nil.
internal/state/snapshots.go:93
↓ 3 callersMethodGetModel
GetModel returns a model asset by ID, or nil.
internal/state/assets.go:119
↓ 3 callersMethodHermesImageRef
()
internal/config/config.go:73
↓ 3 callersFunctionImageTag
ImageTag returns the Docker image tag corresponding to this CLI version. Only exact release tags (e.g. "v0.1.0") map to release images. Local git desc
internal/version/version.go:23
↓ 3 callersFunctionInjectSoul
InjectSoul renders the character fields into a SOUL.md file and writes it into the container. The OpenClaw gateway watches this file for changes, so n
internal/container/configure.go:537
↓ 3 callersMethodIsInstalled
IsInstalled reports whether the service definition exists.
internal/cli/daemon.go:28
↓ 3 callersMethodIsRunning
IsRunning reports whether the daemon is currently running.
internal/cli/daemon.go:30
↓ 3 callersFunctionPullImage
PullImage pulls an image from a remote registry.
internal/container/image.go:68
↓ 3 callersFunctionRemove
(cli *docker.Client, containerID string)
internal/container/manager.go:122
↓ 3 callersFunctionValidateChannelCredentials
ValidateChannelCredentials checks whether the required credentials for a channel are present before attempting live validation or configuration.
internal/web/validate.go:102
↓ 3 callersMethodWrite
(p []byte)
internal/web/handlers_image.go:246
↓ 3 callersFunctionconnectWS
(pathOrUrl, onMessage, raw = false, onStatus)
internal/web/static/js/ws.js:15
↓ 3 callersFunctionmockAssetsForRoster
(t *testing.T)
internal/web/roster_test.go:28
↓ 3 callersFunctionmockStoreForRoster
mockStoreForRoster creates an isolated Store with only the given instances. Uses a temp HOME dir so state.Load() returns an empty store.
internal/web/roster_test.go:12
↓ 3 callersFunctionparseState
parseState splits the OAuth state into nonce and dashboard origin.
internal/web/oauth_codex.go:103
↓ 3 callersFunctionsafeDirName
safeDirName converts a display name to a filesystem-safe directory name by replacing spaces with hyphens.
internal/snapshot/snapshot.go:21
↓ 3 callersMethodunitPath
()
internal/cli/daemon_linux.go:62
↓ 3 callersFunctionwithTestHTTPClient
(t *testing.T, fn roundTripperFunc)
internal/web/validate_test.go:24
↓ 2 callersMethodAddChannel
AddChannel adds a channel asset.
internal/state/assets.go:191
↓ 2 callersMethodAddModel
AddModel adds a model asset.
internal/state/assets.go:132
↓ 2 callersFunctionBuild
(cli *docker.Client, imageRef string, openclawVersion string, out io.Writer)
internal/container/image.go:31
↓ 2 callersFunctionConfigure
Configure runs openclaw CLI commands inside the container to set up the instance.
internal/container/configure.go:98
↓ 2 callersFunctionCreate
(cli *docker.Client, p CreateParams)
internal/container/manager.go:28
↓ 2 callersFunctionDefaultConfig
()
internal/config/config.go:77
↓ 2 callersFunctionDelete
Delete removes a snapshot directory from disk.
internal/snapshot/snapshot.go:149
↓ 2 callersFunctionEnsureNetwork
EnsureNetwork creates the "clawfleet-net" container network if it does not already exist.
internal/container/network.go:13
↓ 2 callersFunctionExecAs
ExecAs runs a command inside a container as the specified user (public wrapper).
internal/container/configure.go:547
↓ 2 callersMethodInstall
Install creates the service definition (systemd unit / launchd plist).
internal/cli/daemon.go:18
↓ 2 callersFunctionIsNotFound
IsNotFound returns true if the error indicates the container does not exist.
internal/container/manager.go:130
↓ 2 callersMethodList
List returns a copy of all snapshot metadata.
internal/state/snapshots.go:69
↓ 2 callersFunctionLoad
Load copies all files from a snapshot directory into an instance data directory.
internal/snapshot/snapshot.go:118
↓ 2 callersFunctionLogs
(cli *docker.Client, containerID string, follow bool, out io.Writer)
internal/container/manager.go:151
↓ 2 callersFunctionNamingPrefix
NamingPrefix returns the instance name prefix for the given runtime type. New instances are named "openclaw-N" or "hermes-N" based on runtime.
internal/config/config.go:62
↓ 2 callersMethodNextName
(prefix string)
internal/state/store.go:174
↓ 2 callersFunctionParseMemoryBytes
ParseMemoryBytes converts a human-readable string like "4g", "512m" to bytes.
internal/container/manager.go:178
↓ 2 callersFunctionSave
Save copies an instance's data directory into a named snapshot. It skips channels/ and sessions/ directories and strips the "channels" key from opencl
internal/snapshot/snapshot.go:28
↓ 2 callersMethodStatus
Status returns daemon status info.
internal/cli/daemon.go:32
next →1–100 of 407, ranked by callers