internal/

directory
v0.0.0-...-efa2025 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0

Directories

Path Synopsis
Package accounts stores people (users), how they sign in (identities) and which workspaces they belong to (memberships).
Package accounts stores people (users), how they sign in (identities) and which workspaces they belong to (memberships).
Package adminapi is the core's internal admin API: the only way the admin service changes core data.
Package adminapi is the core's internal admin API: the only way the admin service changes core data.
Package agenthooks is agent-hosted webhook delivery: a conversation whose harness wakes it when a URL the agent made is POSTed to registers that URL, and Wakeshift POSTs the conversation's messages there.
Package agenthooks is agent-hosted webhook delivery: a conversation whose harness wakes it when a URL the agent made is POSTed to registers that URL, and Wakeshift POSTs the conversation's messages there.
Package agents stores agents: durable roles such as claude-code or codex-reviewer.
Package agents stores agents: durable roles such as claude-code or codex-reviewer.
Package appapi is the API apps call, under /api/apps/v1.
Package appapi is the API apps call, under /api/apps/v1.
Package appkey reads and writes app keys: the app's Ed25519 private key, as the console shows it once.
Package appkey reads and writes app keys: the app's Ed25519 private key, as the console shows it once.
Package apps is the platform's app registry: the products built on Wakeshift (Agent Chat, Sources), what each may do (its manifest), and how each proves who it is (a signed assertion).
Package apps is the platform's app registry: the products built on Wakeshift (Agent Chat, Sources), what each may do (its manifest), and how each proves who it is (a signed assertion).
Package audit is the workspace's append-only record of consents and revocations: who allowed an app to act for an agent, who signed an agent in, and what was revoked, by whom or by what.
Package audit is the workspace's append-only record of consents and revocations: who allowed an app to act for an agent, who signed an agent in, and what was revoked, by whom or by what.
Package auth signs people in to the console and keeps them signed in.
Package auth signs people in to the console and keeps them signed in.
Package beacon is the connector beacon: what a Wakeshift tool result carries for Wakeshift's hook on the user's machine, in _meta["wakeshift/connector"] (the model never sees _meta) or, for harnesses whose hooks see only the result's text, in a line of it (Text).
Package beacon is the connector beacon: what a Wakeshift tool result carries for Wakeshift's hook on the user's machine, in _meta["wakeshift/connector"] (the model never sees _meta) or, for harnesses whose hooks see only the result's text, in a line of it (Text).
Package botkeys is how a Grok Bot proves to Wakeshift that it's the bot a session recorded: the bot makes an Ed25519 key with openssl in a protected file in its own folder (~/.local/share/wakeshift/<bot id>/signing.pem), and signs challenges Wakeshift issues with it.
Package botkeys is how a Grok Bot proves to Wakeshift that it's the bot a session recorded: the bot makes an Ed25519 key with openssl in a protected file in its own folder (~/.local/share/wakeshift/<bot id>/signing.pem), and signs challenges Wakeshift issues with it.
Package codexconnector delivers one Codex thread's Wakeshift events into that thread.
Package codexconnector delivers one Codex thread's Wakeshift events into that thread.
Package config reads the server's configuration from the environment.
Package config reads the server's configuration from the environment.
Package connectcli is the wakeshift command on users' machines (built from cmd/wakeshift-connector, installed as ~/.wakeshift/bin/wakeshift by /install/<harness>.sh):
Package connectcli is the wakeshift command on users' machines (built from cmd/wakeshift-connector, installed as ~/.wakeshift/bin/wakeshift by /install/<harness>.sh):
Package connector is what runs on a user's machine to let Wakeshift messages wake an agent's conversation in a local harness (Cursor, Copilot CLI, opencode, Antigravity, Claude Code; Codex has its own runtime in internal/codexconnector but shares the trust model here).
Package connector is what runs on a user's machine to let Wakeshift messages wake an agent's conversation in a local harness (Cursor, Copilot CLI, opencode, Antigravity, Claude Code; Codex has its own runtime in internal/codexconnector but shares the trust model here).
Package connectorversion is how Wakeshift's connectors (the hooks, the connector for Codex and the plugins on users' machines) say which version they are, and how the core decides one is too old to serve.
Package connectorversion is how Wakeshift's connectors (the hooks, the connector for Codex and the plugins on users' machines) say which version they are, and how the core decides one is too old to serve.
Package console is the API behind the React console: agents and their stream links, subscriptions and the event log.
Package console is the API behind the React console: agents and their stream links, subscriptions and the event log.
Package core assembles the server: sign-in, token signing (and the refusals of Sign in with Wakeshift for apps, now turned off), the console and app APIs, delivery streams, and the background work (the pipeline runner and notification listener).
Package core assembles the server: sign-in, token signing (and the refusals of Sign in with Wakeshift for apps, now turned off), the console and app APIs, delivery streams, and the background work (the pipeline runner and notification listener).
Package coretest runs a whole Wakeshift core in a test (the same setup as the server) and acts as its users, agents and apps.
Package coretest runs a whole Wakeshift core in a test (the same setup as the server) and acts as its users, agents and apps.
Package db is Wakeshift's access to Postgres.
Package db is Wakeshift's access to Postgres.
Package dblimit counts request limits in Postgres (the rate_counts table), so a limit holds across the core's instances rather than per instance in memory.
Package dblimit counts request limits in Postgres (the rate_counts table), so a limit holds across the core's instances rather than per instance in memory.
Package dbtest gives tests their own migrated database.
Package dbtest gives tests their own migrated database.
Package deliveries is the outbox: what each agent (or session) is owed, and how far each delivery got.
Package deliveries is the outbox: what each agent (or session) is owed, and how far each delivery got.
Package downloads serves Wakeshift's connector (wakeshift) and its per-harness installers, and the plugins for harnesses that take one.
Package downloads serves Wakeshift's connector (wakeshift) and its per-harness installers, and the plugins for harnesses that take one.
Package events is the event log: append-only, per tenant, in one order.
Package events is the event log: append-only, per tenant, in one order.
Package framing is how every Wakeshift message is put in front of a model: a short plain preface saying it comes from outside the conversation and isn't the user's instruction, and how to answer, then each message in a tag
Package framing is how every Wakeshift message is put in front of a model: a short plain preface saying it comes from outside the conversation and isn't the user's instruction, and how to answer, then each message in a tag
Package grants records consents.
Package grants records consents.
Package harnesses is what Wakeshift's core knows about each agent harness: how to recognize it (the MCP clientInfo name it sends, else a _meta key or User-Agent token only it sends: Recognize), how its conversations are woken, how a tool result's beacon reaches its hook and is bound to the conversation, and what to tell its agent about installing Wakeshift's hooks (the install command and the harness's own trust step).
Package harnesses is what Wakeshift's core knows about each agent harness: how to recognize it (the MCP clientInfo name it sends, else a _meta key or User-Agent token only it sends: Recognize), how its conversations are woken, how a tool result's beacon reaches its hook and is bound to the conversation, and what to tell its agent about installing Wakeshift's hooks (the install command and the harness's own trust step).
Package hookproof is what a connector hook's own key signs for redeem by call: the core (appapi) checks it, the hook (connector) makes it.
Package hookproof is what a connector hook's own key signs for redeem by call: the core (appapi) checks it, the hook (connector) makes it.
Package httpx holds the JSON API's response and request helpers.
Package httpx holds the JSON API's response and request helpers.
iap
Package iap verifies the identity that Google's Identity-Aware Proxy puts on every request it lets through to a backend: the signed header x-goog-iap-jwt-assertion.
Package iap verifies the identity that Google's Identity-Aware Proxy puts on every request it lets through to a backend: the signed header x-goog-iap-jwt-assertion.
iaptest
Package iaptest signs IAP assertions for tests, with a key of its own that the Verifier it makes trusts in place of IAP's.
Package iaptest signs IAP assertions for tests, with a key of its own that the Verifier it makes trusts in place of IAP's.
Package jws signs and verifies compact JWS tokens with Ed25519 (EdDSA): the access tokens Wakeshift issues and the assertions apps sign.
Package jws signs and verifies compact JWS tokens with Ed25519 (EdDSA): the access tokens Wakeshift issues and the assertions apps sign.
Package mail sends the core's email: organization invites and the waitlist's invitations.
Package mail sends the core's email: organization invites and the waitlist's invitations.
Package mcpevents is Wakeshift's side of MCP Events webhook delivery: how ChatGPT (and any client of the MCP Events extension, SEP-3415) is woken.
Package mcpevents is Wakeshift's side of MCP Events webhook delivery: how ChatGPT (and any client of the MCP Events extension, SEP-3415) is woken.
clientsgen
Package clientsgen writes the copies of the MCP Events client table: sdk/typescript/test/mcp-events-clients.json is the one source; the core embeds a byte-for-byte copy (internal/mcpevents/event, which the Go SDK compiles in), and the TypeScript and Python SDKs ship it as generated constants.
Package clientsgen writes the copies of the MCP Events client table: sdk/typescript/test/mcp-events-clients.json is the one source; the core embeds a byte-for-byte copy (internal/mcpevents/event, which the Go SDK compiles in), and the TypeScript and Python SDKs ship it as generated constants.
clientsgen/gen command
Command gen writes the MCP Events client table's generated copies (package clientsgen).
Command gen writes the MCP Events client table's generated copies (package clientsgen).
event
Package event is the MCP Events contract an app's MCP server and the core share: dialects, error codes, capability keys and headers.
Package event is the MCP Events contract an app's MCP server and the core share: dialects, error codes, capability keys and headers.
Package notify fans Postgres notifications out to the goroutines waiting on them.
Package notify fans Postgres notifications out to the goroutines waiting on them.
Package npmtag finds the version an npm dist-tag points at, for the install offers that name Wakeshift's npm plugin at an exact version (internal/harnesses, Harness.Package): opencode caches a plugin by the spec in its config, so `@wakeshift/opencode@latest` would never update, and the offer pins the version `latest` (or another Wakeshift's own dist-tag) points at instead.
Package npmtag finds the version an npm dist-tag points at, for the install offers that name Wakeshift's npm plugin at an exact version (internal/harnesses, Harness.Package): opencode caches a plugin by the spec in its config, so `@wakeshift/opencode@latest` would never update, and the offer pins the version `latest` (or another Wakeshift's own dist-tag) points at instead.
Package oauth is the core's token signing: the keys every token and beacon is signed with (published at /oauth/jwks), and the tokens a headless app acts for its agents with (headless.go).
Package oauth is the core's token signing: the keys every token and beacon is signed with (published at /oauth/jwks), and the tokens a headless app acts for its agents with (headless.go).
Package orgs is organizations: who manages which platform-level app.
Package orgs is organizations: who manages which platform-level app.
Package pgtest gives a test its own empty Postgres database, for an app's own storage.
Package pgtest gives a test its own empty Postgres database, for an app's own storage.
Package pipeline turns events into deliveries.
Package pipeline turns events into deliveries.
Package pluginmark is how Wakeshift's plugin for Claude Code tells the core, on the tool call that subscribes, that it's installed: its SessionStart hook tells the model a mark to pass as the harness argument of an app's tools (harnesses.HarnessArg), so the core can leave out the install question and the Monitor, which the plugin makes unnecessary.
Package pluginmark is how Wakeshift's plugin for Claude Code tells the core, on the tool call that subscribes, that it's installed: its SessionStart hook tells the model a mark to pass as the harness argument of an app's tools (harnesses.HarnessArg), so the core can leave out the install question and the Monitor, which the plugin makes unnecessary.
Command releasegate is the published server's release gate: what its quickstart promises, end to end, against the server docker compose runs from this tree.
Command releasegate is the published server's release gate: what its quickstart promises, end to end, against the server docker compose runs from this tree.
Package server is Wakeshift's HTTP server: the JSON API under /api, health checks, and the React app for every other path.
Package server is Wakeshift's HTTP server: the JSON API under /api, health checks, and the React app for every other path.
Package sessions keeps an agent's sessions: its conversations, each a participant with a handle, its own deliveries, presence and authorship.
Package sessions keeps an agent's sessions: its conversations, each a participant with a handle, its own deliveries, presence and authorship.
Package streams delivers an agent's events over WebSocket.
Package streams delivers an agent's events over WebSocket.
Package subscriptions stores what each agent is subscribed to.
Package subscriptions stores what each agent is subscribed to.
Package telemetry exports the core's traces and logs with OpenTelemetry, when OTEL_EXPORTER_OTLP_ENDPOINT is set (with OTEL_EXPORTER_OTLP_HEADERS for the collector's key, and the other standard OTEL_* variables).
Package telemetry exports the core's traces and logs with OpenTelemetry, when OTEL_EXPORTER_OTLP_ENDPOINT is set (with OTEL_EXPORTER_OTLP_HEADERS for the collector's key, and the other standard OTEL_* variables).
Package version reports the build's version, set at link time:
Package version reports the build's version, set at link time:
Package waittask makes and opens the IDs of MCP wait tasks: Claude Code's no-install wake path.
Package waittask makes and opens the IDs of MCP wait tasks: Claude Code's no-install wake path.
Package wakegate passes on a deliverer's wakes only for workspaces that have one of its destinations.
Package wakegate passes on a deliverer's wakes only for workspaces that have one of its destinations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL