@stratusagent/cli 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -44,7 +44,10 @@ stratus doctor # what a run would use right now, and why
44
44
  stratus update # stop → upgrade → migrate → repair unit → restart
45
45
  stratus agent new # create an agent (guided on a terminal)
46
46
  stratus agents # who's on the team: souls, models, memory
47
- stratus skill add owner/repo # install skills from GitHub
47
+ stratus skill add owner/repo # install skills from GitHub (validated against the Agent Skills spec) — a running daemon picks them up, no restart
48
+ stratus skill validate ./my-skill # check a skill against the spec without installing it
49
+ stratus restart # announced restart: refuse, drain, come back — what a plugin change needs
50
+ stratus credentials # stored credential names (never values)
48
51
  stratus schedules # what the fleet has scheduled, and where it reports
49
52
  stratus dashboard # web dashboard, signed in via a one-time link
50
53
  ```
@@ -70,6 +73,7 @@ Full reference with every subcommand:
70
73
  | `--no-api` | `serve`: do not serve the control API |
71
74
  | `--api-host`, `--api-port` | `serve`: control API bind (default `127.0.0.1:4123`) |
72
75
  | `--gateway <url>`, `--token` | `agents`: read the roster from a running daemon's control API |
76
+ | `--agent <id>` | `credential set`/`remove`: that agent's own key rather than the fleet's shared one |
73
77
  | `--port`, `--host`, `--no-open` | `dashboard`: where a daemon it starts should bind; skip opening the browser |
74
78
  | `--no-login` | `service install`: install without the start-at-login trigger |
75
79
  | `-f`, `-n`, `--agent`, `--session` | `logs`: follow, backlog size, and filters |
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type JsonValue, type Session, type StratusEvent } from '@stratusagent/core';
1
+ import { type ApprovalContext, type ApprovalPolicy, type JsonValue, type Session, type StratusEvent } from '@stratusagent/core';
2
2
  import { type CredentialProviderName, type RuntimeSelection, type RuntimeConfig, type StratusConfigFile, type StratusProviderName } from '@stratusagent/state';
3
3
  import { type ServiceRunner } from './service.ts';
4
4
  export { installService, launchdPlist, readServiceCommand, readServiceStatus, servicePlatform, serviceUnitPath, startService, stopService, systemdUnit, uninstallService, SERVICE_LABEL, type ServiceRunner, type ServiceStatus, } from './service.ts';
@@ -23,6 +23,22 @@ export interface CliEnvironment {
23
23
  dashboardAutoShutdownMs?: number;
24
24
  /** Shuts down `stratus serve` the way SIGTERM would (tests). */
25
25
  shutdownSignal?: AbortSignal;
26
+ /**
27
+ * Starts the fresh daemon an announced restart asks for and resolves
28
+ * with its exit code. Injected so tests never spawn a process; the
29
+ * default runs this CLI's own entrypoint with the serve arguments given.
30
+ */
31
+ serveRespawn?: (argv: string[], handoff: RestartHandoff) => Promise<RespawnResult>;
32
+ /**
33
+ * The link between a supervised daemon and its supervisor (tests): what
34
+ * the daemon sends up — the port it bound, the dashboard sessions it
35
+ * hands on — and what it receives. The default is the IPC channel a
36
+ * supervisor opens when it spawns a daemon, and does nothing where
37
+ * there is none.
38
+ */
39
+ supervisorLink?: SupervisorLink;
40
+ /** Ends the process at once (tests). Default `process.exit`. */
41
+ exitProcess?: (code: number) => void;
26
42
  /** Runs launchctl/systemctl. Injected so tests never touch the real one. */
27
43
  serviceRunner?: ServiceRunner;
28
44
  /** Service-manager platform override (tests) — which unit format and manager commands apply. */
@@ -34,6 +50,49 @@ export interface CliEnvironment {
34
50
  /** Looks up a package's latest published version. Injected so tests never ask npm. */
35
51
  packageVersionFetcher?: PackageVersionFetcher;
36
52
  }
53
+ /**
54
+ * A dashboard session as it crosses the restart hand-off: structurally the
55
+ * control API's `DashboardSession`, declared here rather than imported.
56
+ * That package is an optional peer, and a type import of it is kept in
57
+ * this package's declarations — every TypeScript consumer of the CLI would
58
+ * then need the optional package installed just to type-check.
59
+ */
60
+ export interface DashboardSession {
61
+ id: string;
62
+ /** Epoch milliseconds; a handed session keeps the expiry it was minted with. */
63
+ expiresAt: number;
64
+ /** A fingerprint of the bearer token it was minted under; the replacement adopts it only under the same one. */
65
+ vouchedBy: string;
66
+ }
67
+ /** What a daemon and its supervisor say to each other. See SupervisorLink. */
68
+ export type SupervisorMessage = {
69
+ type: 'stratusd.bound-api-port';
70
+ port: number;
71
+ } | {
72
+ type: 'stratusd.sessions';
73
+ sessions: DashboardSession[];
74
+ };
75
+ /** One end of the daemon–supervisor channel. */
76
+ export interface SupervisorLink {
77
+ send(message: SupervisorMessage): void;
78
+ receive(handler: (message: SupervisorMessage) => void): void;
79
+ }
80
+ /**
81
+ * What a supervisor hands the daemon it starts: the port its predecessor
82
+ * bound (a hint, see BOUND_API_PORT_ENV) and the dashboard sessions the
83
+ * predecessor had live when it stopped, so `stratus restart` does not log
84
+ * a browser out. In memory end to end; nothing here is written down.
85
+ */
86
+ export interface RestartHandoff {
87
+ boundApiPort?: number;
88
+ sessions: DashboardSession[];
89
+ }
90
+ /** How a daemon the supervisor started ended, and what it handed back before it did. */
91
+ export interface RespawnResult {
92
+ code: number;
93
+ boundApiPort?: number;
94
+ sessions?: DashboardSession[];
95
+ }
37
96
  export interface PackageInstallResult {
38
97
  ok: boolean;
39
98
  /** Why it failed, as a line the operator can act on. Empty on success. */
@@ -134,10 +193,49 @@ export interface ParsedSkillAddCommand {
134
193
  force?: boolean;
135
194
  /** Enable the installed skills in this agent's soul afterwards. */
136
195
  agentId?: string;
196
+ /** Tell a running daemon to reload its skills afterwards. Default true; `--no-reload` sets false. */
197
+ reload?: boolean;
198
+ }
199
+ export interface ParsedSkillValidateCommand {
200
+ command: 'skill-validate';
201
+ /** A skill directory, a directory of skills, or an installed skill's id. */
202
+ target: string;
137
203
  }
138
204
  export interface ParsedSkillsCommand {
139
205
  command: 'skills';
140
206
  }
207
+ /**
208
+ * What a credential name may be: the two conventions in use, and nothing
209
+ * that would be awkward in a soul's `credentials:` list — `search.apiKey`
210
+ * and environment-style `SLACK_TOKEN`. Leading letter required, which also
211
+ * happens to exclude `__proto__`; the store does not *rely* on that (it
212
+ * keys prototype-free maps), because a credentials file can be written by
213
+ * something other than this command.
214
+ */
215
+ export declare const CREDENTIAL_NAME_PATTERN: RegExp;
216
+ export interface ParsedCredentialCommand {
217
+ command: 'credential';
218
+ action: 'set' | 'list' | 'remove';
219
+ /** The credential name — `search.apiKey` and whatever the ecosystem asks for next. */
220
+ name?: string;
221
+ /** Store or remove this agent's own entry rather than the fleet's shared one. */
222
+ agentId?: string;
223
+ }
224
+ export interface ParsedSkillReloadCommand {
225
+ command: 'skill-reload';
226
+ /** A daemon's control API URL; default: the one `~/.stratus/gateway.json` names. */
227
+ gateway?: string;
228
+ token?: string;
229
+ }
230
+ export interface ParsedRestartCommand {
231
+ command: 'restart';
232
+ /** For the daemon's log. */
233
+ reason?: string;
234
+ /** How long the daemon lets in-flight turns finish, in milliseconds. */
235
+ drainTimeoutMs?: number;
236
+ gateway?: string;
237
+ token?: string;
238
+ }
141
239
  export interface ParsedAgentsCommand {
142
240
  command: 'agents';
143
241
  format: 'text' | 'json';
@@ -206,8 +304,8 @@ export interface ParsedServeCommand {
206
304
  export interface ParsedHelpCommand {
207
305
  command: 'help';
208
306
  }
209
- export type ParsedCommand = ParsedRunCommand | ParsedChatCommand | ParsedDashboardCommand | ParsedSetupCommand | ParsedAgentNewCommand | ParsedAgentsCommand | ParsedSkillAddCommand | ParsedSkillsCommand | ParsedSchedulesCommand | ParsedDoctorCommand | ParsedLogsCommand | ParsedUpdateCommand | ParsedServiceCommand | ParsedServeCommand | ParsedHelpCommand;
210
- export declare const CLI_VERSION = "0.10.0";
307
+ export type ParsedCommand = ParsedRunCommand | ParsedChatCommand | ParsedDashboardCommand | ParsedSetupCommand | ParsedAgentNewCommand | ParsedAgentsCommand | ParsedSkillAddCommand | ParsedSkillValidateCommand | ParsedSkillsCommand | ParsedSkillReloadCommand | ParsedCredentialCommand | ParsedRestartCommand | ParsedSchedulesCommand | ParsedDoctorCommand | ParsedLogsCommand | ParsedUpdateCommand | ParsedServiceCommand | ParsedServeCommand | ParsedHelpCommand;
308
+ export declare const CLI_VERSION = "0.11.0";
211
309
  /**
212
310
  * The range every package declares in its `engines` field. Two floors, not
213
311
  * one: `node:sqlite` was unflagged in 22.13.0 on the LTS line and in 23.4.0
@@ -267,7 +365,7 @@ export declare const withoutSqliteExperimentalWarning: (listeners: readonly ((wa
267
365
  * Called once from the binary, before anything imports the session store.
268
366
  */
269
367
  export declare const filterSqliteExperimentalWarning: (process_?: NodeJS.EventEmitter) => void;
270
- declare const HELP_TEXT = "Stratus Agent CLI\n\nUsage:\n stratus setup\n stratus chat\n stratus chat --soul ./examples/souls/ava.md\n stratus run --prompt \"Use the demo tool\"\n stratus run \"Say hello\"\n ANTHROPIC_API_KEY=... stratus run --provider anthropic \"Say hello\"\n stratus run --soul ./examples/souls/ava.md \"Say hello\"\n echo \"Use the echo tool\" | stratus run --stdin\n STRATUS_PROVIDER=openai OPENAI_API_KEY=... stratus run \"Say hello\"\n stratus run --config ./stratus.config.json --provider openai \"Say hello\"\n stratus agents\n stratus agents --gateway http://127.0.0.1:4123\n stratus skill add stratuslabs/skill-code-review\n stratus skill add ./my-skills --skill code-review --agent ava\n stratus skills\n stratus schedules\n stratus schedules cancel <id>\n stratus doctor\n stratus update\n stratus update --check\n stratus service install\n stratus service status\n stratus logs -f\n stratus logs --agent ava -n 200\n stratus dashboard\n stratus dashboard --port 4123 --host 0.0.0.0 --no-open\n\nCommands:\n setup Menu-driven onboarding: pick a provider, sign in (Claude\n subscription or API key), create your agent, connect it to\n Slack, and test it \u2014 settings go to ~/.stratus/config.json,\n sign-ins and channel tokens to ~/.stratus/credentials.json\n (0600). Save & finish offers to install any optional\n package your answers imply (the Slack channel, the control\n API and dashboard) before it starts the daemon\n chat Talk with your agent \u2014 the conversation persists across turns\n and remembered facts accumulate; /exit or Ctrl+C to leave\n run Execute one local Stratus Agent session\n serve Run stratusd, the always-on gateway: durable sessions, the\n whole roster live at once (each agent on its own provider),\n delegation, and a watchdog \u2014 Ctrl+C / SIGTERM drains cleanly\n (--idle-timeout <seconds>, --approvals <headless|remote>,\n --no-events, --no-log-file, --config <path>); everything it\n says is also written to ~/.stratus/logs, which\n \"stratus logs\" reads. With @stratusagent/control-api\n installed it also serves the HTTP + WebSocket control API\n on 127.0.0.1:4123 (--no-api, --api-host, --api-port, or\n the config file's \"api\" block)\n service Keep stratusd running under launchd (macOS) or systemd\n (Linux): install, uninstall, status, start, stop.\n Installing starts it now and at every login\n (--no-login installs without the login trigger,\n --config <path> pins the daemon to one config file)\n logs Read the daemon's log from any terminal: -f to follow,\n -n <count> for backlog, --agent / --session to filter,\n --format json for the raw records\n skill add Install skills from a GitHub repo (owner/repo or URL) or a\n local path into ~/.stratus/skills \u2014 whole directories, one\n per skill; works with skills published for other agents\n (skills.sh-style repos). Installed is not enabled: a soul\n opts in via skills:, or pass --agent <id> to enable now.\n --skill <id> picks from a multi-skill repo (repeatable),\n --force replaces an already-installed id\n skills List installed skills and which agents enable each\n (also: stratus skill list)\n schedules List every schedule the fleet has set \u2014 cadence, prompt,\n pre-authorized destination, next firing \u2014 straight from the\n daemon's database (--format json). \"stratus schedules\n cancel <id>\" stops the next firing and revokes the\n destination that was approved with it\n (also: stratus schedule list / schedule cancel <id>)\n agent new Create an agent identity (generates a human-ish name + avatar theme)\n agents List your agents: who they are, where their souls live, what\n they run on, what they remember (also: stratus agent list).\n --gateway <url> asks a running daemon instead of resolving\n locally, authenticating with ~/.stratus/gateway-token\n (override with --token or STRATUS_GATEWAY_TOKEN)\n doctor Show what a run would use right now \u2014 provider, model, soul \u2014\n and which file or environment variable decided each, then\n flag anything that would surprise you (--format json)\n update The whole upgrade dance, in the order that cannot lose\n data: stop stratusd, upgrade the package from npm, run\n pending state migrations, rewrite the service unit with\n current node/entrypoint paths, restart. --check reports\n what it would do without doing any of it (exits 1 when\n something is actionable). Works offline too \u2014 an\n unreachable npm skips the upgrade but still migrates and\n repairs the unit\n dashboard Open the web dashboard: finds a running daemon (or starts one),\n mints a single-use sign-in link, and opens your browser at it.\n Needs @stratusagent/control-api and @stratusagent/dashboard\n help Show this help message\n\nAgent options:\n --name Agent name (omit to have one generated)\n --instructions The agent's persona/instructions\n --format Output format for agent new: text, json, or soul (a ready-to-edit soul file)\n\nOptions:\n --prompt, -p Prompt to send to the local agent loop\n --stdin Read the prompt from stdin\n --provider Provider to use: anthropic, openai, codex, or demo\n --model Model name for real providers (anthropic default: claude-opus-5, openai default: gpt-4.1-mini, codex default: gpt-5.5)\n --base-url Override the provider API base URL\n --soul Run as the agent defined by a soul file (markdown + frontmatter, see examples/souls)\n --config Config file path (run: load settings from it, setup: write it)\n --format Output format: text or json (default: text)\n --no-events Hide event-by-event progress lines in text mode\n --approvals run/chat: tool approval mode \u2014 always, ask, or never (default: always)\n serve: how the daemon reaches a human \u2014 headless (refuse every\n gated call) or remote (ask in Slack). Default headless, or\n the config file's \"approvals.mode\"\n --max-turns Maximum provider turns per run (default: 8)\n --port dashboard: port for a daemon it starts (default: 4123)\n --host dashboard: host for a daemon it starts (default: 127.0.0.1)\n --no-open Do not open the browser automatically\n --gateway agents: read the roster from a running daemon's control API\n --token Bearer token for --gateway (default: ~/.stratus/gateway-token)\n --no-api serve: do not serve the control API\n --api-host serve: control API interface (default: 127.0.0.1)\n --api-port serve: control API port (default: 4123, 0 for any free port)\n --help, -h Show this help message\n\nConfig file:\n The CLI looks for ./stratus.config.json first, then a path from --config / STRATUS_CONFIG,\n then the global ~/.stratus/config.json written by `stratus setup`.\n A \"soul\" key (or STRATUS_SOUL) points at a soul file so every run uses that agent.\n\nPlugins (tools):\n Capability is optional: install a package, then list it under \"plugins\" in a\n TRUSTED config (--config, STRATUS_CONFIG, or ~/.stratus/config.json), keyed by\n package name. A plugin runs inside this process, so an auto-discovered\n project-local stratus.config.json may not enable one.\n\n \"plugins\": {\n \"@stratusagent/tool-fs\": { \"enabled\": true, \"roots\": [\"~/notes\"],\n \"agents\": { \"ava\": { \"roots\": [\"~/work/ava\"] } } },\n \"@stratusagent/tool-web\": { \"enabled\": true }\n }\n\n Available: @stratusagent/tool-fs (fs.read/list/search/write),\n @stratusagent/tool-shell (shell.run), @stratusagent/tool-web (web.fetch),\n @stratusagent/tool-browser (browser.goto/read/screenshot/act).\n Installing one grants no agent anything \u2014 each soul lists what it may call.\n\nSoul files:\n A soul file is markdown with frontmatter (name, provider, model, tools, skills, credentials)\n followed by the agent's persona in prose. See examples/souls/ava.md.\n \"tools\" takes exact names or a whole toolset: tools: [fs.read, fs.search] or\n tools: [fs.*]. Omitted means every registered tool.\n \"skills\" is the same allowlist shape over installed skills (see stratus\n skills), except omitted means none \u2014 a skill is enabled per agent, never\n by being installed.\n";
368
+ declare const HELP_TEXT = "Stratus Agent CLI\n\nUsage:\n stratus setup\n stratus chat\n stratus chat --soul ./examples/souls/ava.md\n stratus run --prompt \"Use the demo tool\"\n stratus run \"Say hello\"\n ANTHROPIC_API_KEY=... stratus run --provider anthropic \"Say hello\"\n stratus run --soul ./examples/souls/ava.md \"Say hello\"\n echo \"Use the echo tool\" | stratus run --stdin\n STRATUS_PROVIDER=openai OPENAI_API_KEY=... stratus run \"Say hello\"\n stratus run --config ./stratus.config.json --provider openai \"Say hello\"\n stratus agents\n stratus agents --gateway http://127.0.0.1:4123\n stratus skill add stratuslabs/skill-code-review\n stratus skill add ./my-skills --skill code-review --agent ava\n stratus skill validate ./my-skill\n stratus skills\n stratus skill reload\n stratus restart\n stratus schedules\n stratus schedules cancel <id>\n printf %s \"$BRAVE_KEY\" | stratus credential set search.apiKey\n stratus credentials\n stratus doctor\n stratus update\n stratus update --check\n stratus service install\n stratus service status\n stratus logs -f\n stratus logs --agent ava -n 200\n stratus dashboard\n stratus dashboard --port 4123 --host 0.0.0.0 --no-open\n\nCommands:\n setup Menu-driven onboarding: pick a provider, sign in (Claude\n subscription or API key), create your agent, connect it to\n Slack, and test it \u2014 settings go to ~/.stratus/config.json,\n sign-ins and channel tokens to ~/.stratus/credentials.json\n (0600). Save & finish offers to install any optional\n package your answers imply (the Slack channel, the control\n API and dashboard) before it starts the daemon\n chat Talk with your agent \u2014 the conversation persists across turns\n and remembered facts accumulate; /exit or Ctrl+C to leave\n run Execute one local Stratus Agent session\n serve Run stratusd, the always-on gateway: durable sessions, the\n whole roster live at once (each agent on its own provider),\n delegation, and a watchdog \u2014 one per home (it refuses to\n start over a daemon already serving ~/.stratus), and\n Ctrl+C / SIGTERM drains cleanly\n (--idle-timeout <seconds>, --approvals <headless|remote>,\n --no-events, --no-log-file, --config <path>); everything it\n says is also written to ~/.stratus/logs, which\n \"stratus logs\" reads. With @stratusagent/control-api\n installed it also serves the HTTP + WebSocket control API\n on 127.0.0.1:4123 (--no-api, --api-host, --api-port, or\n the config file's \"api\" block)\n service Keep stratusd running under launchd (macOS) or systemd\n (Linux): install, uninstall, status, start, stop.\n Installing starts it now and at every login\n (--no-login installs without the login trigger,\n --config <path> pins the daemon to one config file)\n logs Read the daemon's log from any terminal: -f to follow,\n -n <count> for backlog, --agent / --session to filter,\n --format json for the raw records\n skill add Install skills from a GitHub repo (owner/repo or URL) or a\n local path into ~/.stratus/skills \u2014 whole directories, one\n per skill; works with skills published for other agents\n (skills.sh-style repos). Installed is not enabled: a soul\n opts in via skills:, or pass --agent <id> to enable now.\n --skill <id> picks from a multi-skill repo (repeatable),\n --force replaces an already-installed id. A skill that\n does not conform to the Agent Skills spec is refused,\n naming what is wrong; one that installs with caveats\n (fields another host owns, a bundled scripts/) says so.\n A running daemon reloads its skills afterwards, no\n restart (--no-reload skips that)\n skill validate Check a skill directory, a directory of skills, or an\n installed skill id against the Agent Skills spec \u2014 the\n same check \"skill add\" runs, so what validates installs.\n Exit 1 if anything would be refused\n skills List installed skills and which agents enable each\n (also: stratus skill list)\n skill reload Ask the running daemon to re-read ~/.stratus/skills \u2014 for a\n skill edited or removed by hand. A skill that will not\n load refuses the whole reload and the previous set keeps\n serving; nothing becomes reachable to an agent whose soul\n does not list it\n restart Ask the running daemon for an announced restart \u2014 what a\n plugin change needs: it refuses new turns, lets in-flight\n ones finish for up to --drain-timeout <seconds> (default\n 30), then comes back with sessions, schedules, and\n channels intact, under the service manager or not\n credential set Store a named credential an agent can resolve \u2014 a search\n backend asks for search.apiKey. The value is read from\n stdin, never from a flag, so it stays out of your shell\n history: printf %s \"$KEY\" | stratus credential set\n search.apiKey. --agent <id> stores one agent's own key,\n which outranks the shared entry for that agent. Storing\n grants nothing: the soul still needs credentials: [name]\n credentials List stored credential names and which agents have their\n own \u2014 names only, never values (also: credential list)\n credential remove\n Forget one (--agent <id> for that agent's own entry)\n schedules List every schedule the fleet has set \u2014 cadence, prompt,\n pre-authorized destination, next firing \u2014 straight from the\n daemon's database (--format json). \"stratus schedules\n cancel <id>\" stops the next firing and revokes the\n destination that was approved with it\n (also: stratus schedule list / schedule cancel <id>)\n agent new Create an agent identity (generates a human-ish name + avatar theme)\n agents List your agents: who they are, where their souls live, what\n they run on, what they remember (also: stratus agent list).\n --gateway <url> asks a running daemon instead of resolving\n locally, authenticating with ~/.stratus/gateway-token\n (override with --token or STRATUS_GATEWAY_TOKEN)\n doctor Show what a run would use right now \u2014 provider, model, soul \u2014\n and which file or environment variable decided each, then\n flag anything that would surprise you (--format json)\n update The whole upgrade dance, in the order that cannot lose\n data: stop stratusd, upgrade the package from npm, run\n pending state migrations, rewrite the service unit with\n current node/entrypoint paths, restart. --check reports\n what it would do without doing any of it (exits 1 when\n something is actionable). Works offline too \u2014 an\n unreachable npm skips the upgrade but still migrates and\n repairs the unit\n dashboard Open the web dashboard: finds a running daemon (or starts one),\n mints a single-use sign-in link, and opens your browser at it.\n Needs @stratusagent/control-api and @stratusagent/dashboard\n help Show this help message\n\nAgent options:\n --name Agent name (omit to have one generated)\n --instructions The agent's persona/instructions\n --format Output format for agent new: text, json, or soul (a ready-to-edit soul file)\n\nOptions:\n --prompt, -p Prompt to send to the local agent loop\n --stdin Read the prompt from stdin\n --provider Provider to use: anthropic, openai, codex, or demo\n --model Model name for real providers (anthropic default: claude-opus-5, openai default: gpt-4.1-mini, codex default: gpt-5.5)\n --base-url Override the provider API base URL\n --soul Run as the agent defined by a soul file (markdown + frontmatter, see examples/souls)\n --config Config file path (run: load settings from it, setup: write it)\n --format Output format: text or json (default: text)\n --no-events Hide event-by-event progress lines in text mode\n --approvals run/chat: tool approval mode \u2014 always, ask, or never (default: always)\n serve: how the daemon reaches a human \u2014 headless (refuse every\n gated call) or remote (ask in Slack). Default headless, or\n the config file's \"approvals.mode\"\n --max-turns Maximum provider turns per run (default: 8)\n --port dashboard: port for a daemon it starts (default: 4123)\n --host dashboard: host for a daemon it starts (default: 127.0.0.1)\n --no-open Do not open the browser automatically\n --gateway agents / skill reload / restart: a running daemon's control\n API (skill reload and restart default to the daemon\n ~/.stratus/gateway.json names)\n --token Bearer token for --gateway (default: ~/.stratus/gateway-token)\n --no-reload skill add: install without reloading a running daemon\n --reason restart: why, for the daemon's log\n --drain-timeout restart: seconds the daemon lets in-flight turns finish\n before aborting them (default: 30)\n --no-api serve: do not serve the control API\n --api serve: serve it even where the config says api.enabled: false\n --api-host serve: control API interface (default: 127.0.0.1)\n --api-port serve: control API port (default: 4123, 0 for any free port)\n --help, -h Show this help message\n\nConfig file:\n The CLI looks for ./stratus.config.json first, then a path from --config / STRATUS_CONFIG,\n then the global ~/.stratus/config.json written by `stratus setup`.\n A \"soul\" key (or STRATUS_SOUL) points at a soul file so every run uses that agent.\n\nPlugins (tools):\n Capability is optional: install a package, then list it under \"plugins\" in a\n TRUSTED config (--config, STRATUS_CONFIG, or ~/.stratus/config.json), keyed by\n package name. A plugin runs inside this process, so an auto-discovered\n project-local stratus.config.json may not enable one.\n\n \"plugins\": {\n \"@stratusagent/tool-fs\": { \"enabled\": true, \"roots\": [\"~/notes\"],\n \"agents\": { \"ava\": { \"roots\": [\"~/work/ava\"] } } },\n \"@stratusagent/tool-web\": { \"enabled\": true }\n }\n\n Available: @stratusagent/tool-fs (fs.read/list/search/write),\n @stratusagent/tool-shell (shell.run), @stratusagent/tool-web (web.fetch),\n @stratusagent/tool-browser (browser.goto/read/screenshot/act).\n Installing one grants no agent anything \u2014 each soul lists what it may call.\n\nSoul files:\n A soul file is markdown with frontmatter (name, provider, model, tools, skills, credentials)\n followed by the agent's persona in prose. See examples/souls/ava.md.\n \"tools\" takes exact names or a whole toolset: tools: [fs.read, fs.search] or\n tools: [fs.*]. Omitted means every registered tool.\n \"skills\" is the same allowlist shape over installed skills (see stratus\n skills), except omitted means none \u2014 a skill is enabled per agent, never\n by being installed.\n";
271
369
  declare const stringifyValue: (value: JsonValue) => string;
272
370
  export declare const parseCommand: (argv: string[], env?: CliEnvironment) => ParsedCommand;
273
371
  export declare const formatEvent: (event: StratusEvent) => string | null;
@@ -303,6 +401,18 @@ export declare const resolveRuntimeConfig: (command: RuntimeSelection & Partial<
303
401
  * is a subscription token means the environment won.
304
402
  */
305
403
  export declare const warnOnCredentialOverride: (runtime: RuntimeConfig, streams: CliStreams, env?: CliEnvironment) => Promise<void>;
404
+ /**
405
+ * What a local prompt asks about: the tool, where it would act when that is
406
+ * a question at all, and the arguments.
407
+ *
408
+ * The origin is not in the arguments and cannot be — a `browser.act` call
409
+ * carries a CSS selector, and `#submit` is equally "load more results" and
410
+ * "confirm purchase". A prompt that showed only the selector would be
411
+ * asking someone to authorize an effect whose location it withheld, which
412
+ * is the same reason the daemon's prompt and the Slack request name it.
413
+ */
414
+ export declare const describeApprovalCall: (context: ApprovalContext) => string;
415
+ export declare const createApprovalPolicy: (mode: CliApprovalMode, streams: CliStreams, env: CliEnvironment, ask?: (prompt: string) => Promise<string>) => ApprovalPolicy;
306
416
  export declare const runSingleLoop: (prompt: string, streams: CliStreams, options: {
307
417
  events?: boolean;
308
418
  runtime: RuntimeConfig;
@@ -373,6 +483,36 @@ export declare const runSkillAdd: (command: ParsedSkillAddCommand, streams: CliS
373
483
  * here takes effect without asking it anything.
374
484
  */
375
485
  export declare const runSchedules: (command: ParsedSchedulesCommand, streams: CliStreams, env?: CliEnvironment) => Promise<number>;
486
+ /**
487
+ * `stratus credential set|list|remove`: the place a named credential goes.
488
+ *
489
+ * A credential nobody can add is a credential nobody has, which is why this
490
+ * exists at all — a search backend asks for `search.apiKey` and until now
491
+ * there was nowhere to put one. Three rules it keeps, all of them
492
+ * deliberate:
493
+ *
494
+ * The value is read from **stdin, never from a flag**. A secret in argv is
495
+ * a secret in shell history and in every `ps` on the machine.
496
+ *
497
+ * Nothing here ever prints a value back. `list` reports names and which
498
+ * agents have their own, the same posture the control API's credential read
499
+ * already keeps.
500
+ *
501
+ * And storing one grants no agent anything: the agent's soul still has to
502
+ * list the name under `credentials:`, which is the per-identity gate.
503
+ */
504
+ export declare const runCredential: (command: ParsedCredentialCommand, streams: CliStreams, env?: CliEnvironment) => Promise<number>;
505
+ /**
506
+ * `stratus skill validate <target>`: the install-time check, run without
507
+ * installing — for an author about to publish a skill, or an operator
508
+ * asking why one was refused. A local path is a skill directory or a
509
+ * directory of skills, discovered exactly as `skill add` would; a bare id
510
+ * names an installed skill under `~/.stratus/skills/`. Exit 1 when
511
+ * anything would be refused, so a publish step can gate on it.
512
+ */
513
+ export declare const runSkillValidate: (command: ParsedSkillValidateCommand, streams: CliStreams, env?: CliEnvironment) => Promise<number>;
514
+ export declare const runSkillReload: (command: ParsedSkillReloadCommand, streams: CliStreams, env?: CliEnvironment) => Promise<number>;
515
+ export declare const runRestart: (command: ParsedRestartCommand, streams: CliStreams, env?: CliEnvironment) => Promise<number>;
376
516
  export declare const runSkills: (streams: CliStreams, env?: CliEnvironment) => Promise<number>;
377
517
  /**
378
518
  * The provider/model a newly created soul pins. Frontmatter pins what a run
@@ -409,6 +549,38 @@ export type PackageResolver = (specifier: string) => boolean;
409
549
  * roster, accept dispatches, print events, and drain cleanly on SIGTERM,
410
550
  * SIGINT, or the injected shutdown signal.
411
551
  */
552
+ /**
553
+ * What a daemon exits with to ask for a fresh process. Only ever seen by the
554
+ * supervisor below, which is the only thing that starts a daemon with the
555
+ * environment marker that makes it exit this way instead of supervising.
556
+ */
557
+ export declare const RESTART_EXIT_CODE = 75;
558
+ /**
559
+ * What a daemon exits with when a restart could not drain — a turn that
560
+ * ignored its abort, a plugin or channel that did not let go. Distinct from
561
+ * the restart status on purpose: the supervisor answers this one by
562
+ * exiting with it too, so the process the service manager started ends
563
+ * and the manager restarts the whole unit — under systemd, cleaning the
564
+ * cgroup of whatever the plugin left running. A supervisor that started
565
+ * another daemon instead would keep that cgroup, and its leaks, alive.
566
+ */
567
+ export declare const UNDRAINED_RESTART_EXIT_CODE = 76;
568
+ /**
569
+ * The parsed serve command as arguments again — what the fresh daemon is
570
+ * started with. From the command, not from `process.argv`: `stratus
571
+ * dashboard` runs the daemon through `runServe` with a command it built,
572
+ * and the process's own arguments would start a second dashboard.
573
+ */
574
+ export declare const serveArgv: (command: ParsedServeCommand) => string[];
575
+ /**
576
+ * The `bin` beside the module at `moduleUrl`, with that module's own
577
+ * extension: `dist/index.js` respawns `dist/bin.js`, and a source checkout
578
+ * running `src/index.ts` under type stripping respawns `src/bin.ts` — the
579
+ * flags that made that possible travel in `process.execArgv`. Assuming
580
+ * compiled output would hand a source checkout a file that does not exist,
581
+ * and a daemon that never comes back.
582
+ */
583
+ export declare const restartEntrypoint: (moduleUrl: string) => string;
412
584
  export declare const runServe: (command: ParsedServeCommand, streams: CliStreams, env?: CliEnvironment) => Promise<number>;
413
585
  export declare const runCli: ({ argv, streams, env }: CliRunOptions) => Promise<number>;
414
586
  export { HELP_TEXT, stringifyValue };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAaL,KAAK,SAAS,EAGd,KAAK,OAAO,EACZ,KAAK,YAAY,EAClB,MAAM,oBAAoB,CAAC;AAiD5B,OAAO,EA6DL,KAAK,sBAAsB,EAI3B,KAAK,gBAAgB,EAErB,KAAK,aAAa,EAElB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAUL,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,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