@mono-agent/agent-app 0.12.0 → 0.13.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 +33 -7
- package/dist/adapter-send-tools.d.ts.map +1 -1
- package/dist/adapter-send-tools.js +126 -34
- package/dist/adapter-send-tools.js.map +1 -1
- package/dist/app-controller-lifecycle.d.ts.map +1 -1
- package/dist/app-controller-lifecycle.js +2 -6
- package/dist/app-controller-lifecycle.js.map +1 -1
- package/dist/app-controller-maintenance.d.ts.map +1 -1
- package/dist/app-controller-maintenance.js +2 -1
- package/dist/app-controller-maintenance.js.map +1 -1
- package/dist/app-controller-memory-health.d.ts +1 -1
- package/dist/app-controller-memory-health.d.ts.map +1 -1
- package/dist/app-controller-memory-health.js +5 -1
- package/dist/app-controller-memory-health.js.map +1 -1
- package/dist/app-controller-responder.d.ts.map +1 -1
- package/dist/app-controller-responder.js +8 -3
- package/dist/app-controller-responder.js.map +1 -1
- package/dist/app-controller-traceability.d.ts.map +1 -1
- package/dist/app-controller-traceability.js +15 -1
- package/dist/app-controller-traceability.js.map +1 -1
- package/dist/app-controller.d.ts +14 -1
- package/dist/app-controller.d.ts.map +1 -1
- package/dist/app-controller.js +61 -9
- package/dist/app-controller.js.map +1 -1
- package/dist/audit-runs.d.ts.map +1 -1
- package/dist/audit-runs.js +12 -2
- package/dist/audit-runs.js.map +1 -1
- package/dist/background-runtime.d.ts +26 -0
- package/dist/background-runtime.d.ts.map +1 -1
- package/dist/background-runtime.js +874 -46
- package/dist/background-runtime.js.map +1 -1
- package/dist/background.d.ts +10 -2
- package/dist/background.d.ts.map +1 -1
- package/dist/background.js +193 -38
- package/dist/background.js.map +1 -1
- package/dist/channel-drivers/live.d.ts +3 -2
- package/dist/channel-drivers/live.d.ts.map +1 -1
- package/dist/channel-drivers/live.js +3 -2
- package/dist/channel-drivers/live.js.map +1 -1
- package/dist/channel-drivers/slack.d.ts.map +1 -1
- package/dist/channel-drivers/slack.js +6 -0
- package/dist/channel-drivers/slack.js.map +1 -1
- package/dist/channel-drivers/telegram.d.ts.map +1 -1
- package/dist/channel-drivers/telegram.js +20 -4
- package/dist/channel-drivers/telegram.js.map +1 -1
- package/dist/channel-runtime-controls.d.ts +23 -0
- package/dist/channel-runtime-controls.d.ts.map +1 -0
- package/dist/channel-runtime-controls.js +63 -0
- package/dist/channel-runtime-controls.js.map +1 -0
- package/dist/channel-status-display.d.ts +15 -0
- package/dist/channel-status-display.d.ts.map +1 -0
- package/dist/channel-status-display.js +48 -0
- package/dist/channel-status-display.js.map +1 -0
- package/dist/cli-args.d.ts +17 -22
- package/dist/cli-args.d.ts.map +1 -1
- package/dist/cli-args.js +107 -75
- package/dist/cli-args.js.map +1 -1
- package/dist/cli-background-command.d.ts +1 -0
- package/dist/cli-background-command.d.ts.map +1 -1
- package/dist/cli-background-command.js +72 -16
- package/dist/cli-background-command.js.map +1 -1
- package/dist/cli-commands.d.ts +2 -2
- package/dist/cli-commands.d.ts.map +1 -1
- package/dist/cli-commands.js +35 -53
- package/dist/cli-commands.js.map +1 -1
- package/dist/cli-help.d.ts +19 -1
- package/dist/cli-help.d.ts.map +1 -1
- package/dist/cli-help.js +209 -67
- package/dist/cli-help.js.map +1 -1
- package/dist/cli-init-command.d.ts.map +1 -1
- package/dist/cli-init-command.js +4 -18
- package/dist/cli-init-command.js.map +1 -1
- package/dist/cli-install-skill-command.d.ts.map +1 -1
- package/dist/cli-install-skill-command.js +32 -3
- package/dist/cli-install-skill-command.js.map +1 -1
- package/dist/cli-runs-command.d.ts +13 -0
- package/dist/cli-runs-command.d.ts.map +1 -0
- package/dist/cli-runs-command.js +70 -0
- package/dist/cli-runs-command.js.map +1 -0
- package/dist/cli-sandbox-command.d.ts +1 -1
- package/dist/cli-sandbox-command.d.ts.map +1 -1
- package/dist/cli-sandbox-command.js +14 -2
- package/dist/cli-sandbox-command.js.map +1 -1
- package/dist/cli-validate-config-command.d.ts +24 -5
- package/dist/cli-validate-config-command.d.ts.map +1 -1
- package/dist/cli-validate-config-command.js +120 -41
- package/dist/cli-validate-config-command.js.map +1 -1
- package/dist/config-reference.js +1 -1
- package/dist/docs-mcp-pairing.d.ts +35 -0
- package/dist/docs-mcp-pairing.d.ts.map +1 -0
- package/dist/docs-mcp-pairing.js +311 -0
- package/dist/docs-mcp-pairing.js.map +1 -0
- package/dist/doctor.d.ts +6 -0
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +3 -3
- package/dist/doctor.js.map +1 -1
- package/dist/install-skill.d.ts +2 -0
- package/dist/install-skill.d.ts.map +1 -1
- package/dist/install-skill.js +10 -4
- package/dist/install-skill.js.map +1 -1
- package/dist/interaction-bridge.d.ts +2 -0
- package/dist/interaction-bridge.d.ts.map +1 -1
- package/dist/interaction-bridge.js +46 -1
- package/dist/interaction-bridge.js.map +1 -1
- package/dist/launchd.d.ts +2 -0
- package/dist/launchd.d.ts.map +1 -1
- package/dist/launchd.js +2 -0
- package/dist/launchd.js.map +1 -1
- package/dist/managed-runtime-publication.d.ts +22 -0
- package/dist/managed-runtime-publication.d.ts.map +1 -0
- package/dist/managed-runtime-publication.js +91 -0
- package/dist/managed-runtime-publication.js.map +1 -0
- package/dist/managed-startup.d.ts +8 -0
- package/dist/managed-startup.d.ts.map +1 -0
- package/dist/managed-startup.js +12 -0
- package/dist/managed-startup.js.map +1 -0
- package/dist/memory-retrieval.d.ts.map +1 -1
- package/dist/memory-retrieval.js +31 -18
- package/dist/memory-retrieval.js.map +1 -1
- package/dist/metrics.d.ts.map +1 -1
- package/dist/metrics.js +12 -2
- package/dist/metrics.js.map +1 -1
- package/dist/posted-reply-history.d.ts.map +1 -1
- package/dist/posted-reply-history.js +7 -0
- package/dist/posted-reply-history.js.map +1 -1
- package/dist/request-model-override.d.ts +2 -2
- package/dist/request-model-override.js +8 -4
- package/dist/request-model-override.js.map +1 -1
- package/dist/run-history.d.ts.map +1 -1
- package/dist/run-history.js +35 -22
- package/dist/run-history.js.map +1 -1
- package/dist/runtime-provenance.d.ts.map +1 -1
- package/dist/runtime-provenance.js +10 -5
- package/dist/runtime-provenance.js.map +1 -1
- package/dist/tui-command.d.ts.map +1 -1
- package/dist/tui-command.js +2 -1
- package/dist/tui-command.js.map +1 -1
- package/dist/wizard/from-flags.d.ts +0 -1
- package/dist/wizard/from-flags.d.ts.map +1 -1
- package/dist/wizard/from-flags.js +1 -8
- package/dist/wizard/from-flags.js.map +1 -1
- package/dist/wizard/index.d.ts +1 -1
- package/dist/wizard/index.d.ts.map +1 -1
- package/dist/wizard/index.js +1 -1
- package/dist/wizard/index.js.map +1 -1
- package/dist/wizard/presets.d.ts +3 -12
- package/dist/wizard/presets.d.ts.map +1 -1
- package/dist/wizard/presets.js +3 -15
- package/dist/wizard/presets.js.map +1 -1
- package/package.json +15 -16
- package/schema/mono-agent.config.schema.json +2 -2
- package/skills/mono-agent-composer/SKILL.md +13 -5
- package/skills/mono-agent-composer/agents/openai.yaml +1 -1
- package/skills/mono-agent-composer/references/config-blueprint.md +17 -9
- package/skills/mono-agent-composer/references/discovery-questions.md +8 -5
- package/skills/mono-agent-composer/references/feature-coverage.md +9 -8
- package/skills/mono-agent-composer/references/package-map.md +10 -4
- package/skills/mono-agent-composer/references/playbooks.md +5 -5
- package/skills/mono-agent-composer/references/validation.md +4 -2
package/dist/cli-help.d.ts
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Build the default grouped help summary: one scannable line per command under
|
|
3
|
+
* its group heading, with `[--json]` markers on the PR3 JSON surfaces. Also used
|
|
4
|
+
* by the error paths (unknown command / parse failure) so those stay short.
|
|
5
|
+
*/
|
|
2
6
|
export declare function renderHelp(): string;
|
|
7
|
+
/** The outcome of resolving a `help <topic>` request. */
|
|
8
|
+
export type HelpTopicResult = {
|
|
9
|
+
readonly ok: true;
|
|
10
|
+
readonly text: string;
|
|
11
|
+
} | {
|
|
12
|
+
readonly ok: false;
|
|
13
|
+
readonly message: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Resolve a `help <topic>` request: `notes` prints the notes block, a command
|
|
17
|
+
* (or its alias) prints that command's detail view, a removed command prints its
|
|
18
|
+
* replacement pointer, and anything else is a usage error listing valid topics.
|
|
19
|
+
*/
|
|
20
|
+
export declare function renderHelpTopic(topic: string): HelpTopicResult;
|
|
3
21
|
/**
|
|
4
22
|
* The published CLI version, read from this package's own package.json at
|
|
5
23
|
* runtime. `../package.json` resolves the same from both `src/cli.ts` (tests) and
|
package/dist/cli-help.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-help.d.ts","sourceRoot":"","sources":["../src/cli-help.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli-help.d.ts","sourceRoot":"","sources":["../src/cli-help.ts"],"names":[],"mappings":"AA4WA;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAmBnC;AAED,yDAAyD;AACzD,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC5C;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAe9D;AAwBD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAOzC"}
|
package/dist/cli-help.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { EFFORT_LEVELS } from "@mono-agent/config";
|
|
3
|
+
import { REMOVED_COMMANDS } from "./cli-args.js";
|
|
3
4
|
import { readinessProbeTimeoutDescription } from "./readiness-probe.js";
|
|
4
5
|
import * as ui from "./ui.js";
|
|
5
6
|
const HELP_COMMANDS = [
|
|
6
7
|
{
|
|
8
|
+
command: "init",
|
|
9
|
+
group: "Setup",
|
|
10
|
+
short: "init",
|
|
11
|
+
summary: "Scaffold a new agent (guided path runs live probes; --preset/--yes skip).",
|
|
7
12
|
signature: "mono-agent init [--preset <id>] [--with <csv>] [--yes] [--auth] [--dry-run]\n" +
|
|
8
13
|
" [--name <display-name>] [--model <ref>] [--effort <level>]\n" +
|
|
9
14
|
" [--fallback <ref> [--fallback-effort <provider-default|level>]]...\n" +
|
|
10
|
-
" [--
|
|
15
|
+
" [--route-safety uniform|per-route-native]\n" +
|
|
11
16
|
" [--codex-auth browser|device] [--memory lite|journal|bujo]",
|
|
12
17
|
lines: [
|
|
13
18
|
"Fast scaffold-only path: flags or non-TTY input; without explicit --auth,",
|
|
@@ -16,7 +21,6 @@ const HELP_COMMANDS = [
|
|
|
16
21
|
`with timeouts of ${readinessProbeTimeoutDescription()}.`,
|
|
17
22
|
"--preset seeds a blueprint; --with adds channels.",
|
|
18
23
|
`Effort levels: ${EFFORT_LEVELS.join(", ")}; an omitted fallback effort uses that provider's default.`,
|
|
19
|
-
"--fallback-models is deprecated and will be removed in v2.0.0; repeat --fallback for new scripts.",
|
|
20
24
|
"Reasoning-capable pi:* maps ultra to LOW; Pi without reasoning uses OFF; direct codex:* forwards ultra unchanged.",
|
|
21
25
|
"Mono-agent rejects ultra on its Claude SDK route because the pinned SDK public contract ends at max (the SDK JavaScript itself forwards the value).",
|
|
22
26
|
"The Claude CLI route passes --effort ultra, but both tested Claude Code binaries (SDK-bundled 2.1.206 and local 2.1.210) warn that it is unknown, ignore it, and use default effort.",
|
|
@@ -27,26 +31,23 @@ const HELP_COMMANDS = [
|
|
|
27
31
|
],
|
|
28
32
|
},
|
|
29
33
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
command: "presets",
|
|
35
|
+
group: "Setup",
|
|
36
|
+
short: "presets list|show <id>",
|
|
37
|
+
summary: "List the built-in setup presets, or show one's config.",
|
|
38
|
+
json: true,
|
|
39
|
+
signature: "mono-agent presets list | show <id> [--json]",
|
|
35
40
|
lines: [
|
|
36
41
|
"List the built-in setup presets, or show one's generated config,",
|
|
37
42
|
".env.example, and follow-up checklist.",
|
|
43
|
+
"Both `list` and `show` accept --json for the machine-readable form.",
|
|
38
44
|
],
|
|
39
45
|
},
|
|
40
46
|
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"With --preset, also report whether the preset's capabilities are live.",
|
|
46
|
-
"`mono-agent doctor` is an alias for this command.",
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
{
|
|
47
|
+
command: "auth",
|
|
48
|
+
group: "Setup",
|
|
49
|
+
short: "auth login <provider>",
|
|
50
|
+
summary: "Log in to a bundled Pi provider, or direct Codex.",
|
|
50
51
|
signature: "mono-agent auth login <provider|codex> [--pi-auth-path <path>] [--api-key-stdin]\n" +
|
|
51
52
|
" [--codex-auth browser|device] [--config <path>]",
|
|
52
53
|
lines: [
|
|
@@ -58,50 +59,120 @@ const HELP_COMMANDS = [
|
|
|
58
59
|
],
|
|
59
60
|
},
|
|
60
61
|
{
|
|
62
|
+
command: "sandbox",
|
|
63
|
+
group: "Setup",
|
|
64
|
+
short: "sandbox status|setup|check",
|
|
65
|
+
summary: "Inspect, install, or prove the pinned SRT sandbox.",
|
|
66
|
+
json: true,
|
|
61
67
|
signature: "mono-agent sandbox status | setup | check",
|
|
62
68
|
lines: [
|
|
63
69
|
"Inspect, install, or functionally prove the pinned SRT sandbox runtime.",
|
|
64
70
|
"Managed setup is macOS-only and installs into the user's cache; it never changes PATH,",
|
|
65
71
|
"global npm packages, system packages, or another user's files.",
|
|
72
|
+
"Only the read-only `sandbox status` accepts --json.",
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
command: "install-skill",
|
|
77
|
+
group: "Setup",
|
|
78
|
+
short: "install-skill",
|
|
79
|
+
summary: "Install or refresh the composer skill and docs MCP.",
|
|
80
|
+
json: true,
|
|
81
|
+
signature: "mono-agent install-skill [--target claude|codex|both] [--force] [--no-docs-mcp]\n" +
|
|
82
|
+
" --project (--check|--update)",
|
|
83
|
+
lines: [
|
|
84
|
+
"Copy the bundled mono-agent-composer skill into ~/.claude/skills and",
|
|
85
|
+
"~/.agents/skills (default: both). Refuses to overwrite without --force.",
|
|
86
|
+
"By default, pair exact-version mono-agent-docs with every available target",
|
|
87
|
+
"CLI. --no-docs-mcp stays file-only; --force never replaces an unmanaged MCP.",
|
|
88
|
+
"Project mode checks or safely updates the two managed skills generated",
|
|
89
|
+
"by init; modified copies are never overwritten, updates retain backups,",
|
|
90
|
+
"and user-level MCP configuration is not changed.",
|
|
91
|
+
"Only the read-only `install-skill --project --check` accepts --json.",
|
|
66
92
|
],
|
|
67
93
|
},
|
|
68
94
|
{
|
|
69
|
-
|
|
95
|
+
command: "validate",
|
|
96
|
+
group: "Check",
|
|
97
|
+
short: "validate",
|
|
98
|
+
summary: "Load every config section; report what runs, waits, or fails.",
|
|
99
|
+
json: true,
|
|
100
|
+
signature: "mono-agent validate [--preset <id>] [--consumer <path>] [--config <path>] [--env-file <path>] [--json]",
|
|
101
|
+
lines: [
|
|
102
|
+
"Load every config section and report what would run, wait, or fail.",
|
|
103
|
+
"--consumer validates another agent folder read-only, including its .env.",
|
|
104
|
+
"With --preset, also report whether the preset's capabilities are live.",
|
|
105
|
+
"`mono-agent doctor` is an alias for this command.",
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
command: "config",
|
|
110
|
+
group: "Check",
|
|
111
|
+
short: "config",
|
|
112
|
+
summary: "Print the resolved config field-by-field with provenance.",
|
|
113
|
+
json: true,
|
|
114
|
+
signature: "mono-agent config [--config <path>] [--env-file <path>] [--json]",
|
|
70
115
|
lines: [
|
|
71
116
|
"Print the resolved config field-by-field, tagging each value with where",
|
|
72
117
|
"it came from (env / json / default), plus the channel summary. Read-only.",
|
|
73
118
|
],
|
|
74
119
|
},
|
|
75
120
|
{
|
|
76
|
-
|
|
121
|
+
command: "start",
|
|
122
|
+
group: "Run",
|
|
123
|
+
short: "start",
|
|
124
|
+
summary: "Start the agent as a background launchd service.",
|
|
125
|
+
signature: "mono-agent start [--config <path>] [--env-file <path>] [--foreground]",
|
|
77
126
|
lines: [
|
|
78
127
|
"Start the agent as a background macOS service (launchd), print its",
|
|
79
128
|
"instance info, and return. Re-running restarts the running instance.",
|
|
80
129
|
"Refuses to start without a valid mono-agent.config.json in the folder.",
|
|
81
|
-
"Use --foreground
|
|
130
|
+
"Use --foreground to run in the blocking foreground instead.",
|
|
82
131
|
],
|
|
83
132
|
},
|
|
84
133
|
{
|
|
85
|
-
|
|
134
|
+
command: "restart",
|
|
135
|
+
group: "Run",
|
|
136
|
+
short: "restart",
|
|
137
|
+
summary: "Restart this config's instance (starts it if stopped).",
|
|
138
|
+
signature: "mono-agent restart [--config <path>] [--clear-sessions]",
|
|
86
139
|
lines: [
|
|
87
140
|
"Restart the background instance for this config (starts it if stopped).",
|
|
88
|
-
"--
|
|
89
|
-
"the agent starts fresh. Durable memory and run artifacts are untouched.",
|
|
141
|
+
"--clear-sessions clears persisted pi sessions and active conversation history",
|
|
142
|
+
"so the agent starts fresh. Durable memory and run artifacts are untouched.",
|
|
143
|
+
"--force is a deprecated alias of --clear-sessions.",
|
|
90
144
|
],
|
|
91
145
|
},
|
|
92
146
|
{
|
|
147
|
+
command: "stop",
|
|
148
|
+
group: "Run",
|
|
149
|
+
short: "stop",
|
|
150
|
+
summary: "Stop the instance and remove its LaunchAgent.",
|
|
93
151
|
signature: "mono-agent stop [--config <path>]",
|
|
94
152
|
lines: ["Stop the background instance and remove its LaunchAgent."],
|
|
95
153
|
},
|
|
96
154
|
{
|
|
97
|
-
|
|
155
|
+
command: "status",
|
|
156
|
+
group: "Run",
|
|
157
|
+
short: "status",
|
|
158
|
+
summary: "Show this config's instance plus other running instances.",
|
|
159
|
+
json: true,
|
|
160
|
+
signature: "mono-agent status [--config <path>] [--json]",
|
|
98
161
|
lines: ["Show this config's instance plus any other running instances."],
|
|
99
162
|
},
|
|
100
163
|
{
|
|
164
|
+
command: "logs",
|
|
165
|
+
group: "Run",
|
|
166
|
+
short: "logs",
|
|
167
|
+
summary: "Print (and optionally follow) the background log files.",
|
|
101
168
|
signature: "mono-agent logs [--config <path>] [--follow|-f] [--lines <n>]",
|
|
102
169
|
lines: ["Print (and optionally follow) the background instance's log files."],
|
|
103
170
|
},
|
|
104
171
|
{
|
|
172
|
+
command: "tui",
|
|
173
|
+
group: "Console",
|
|
174
|
+
short: "tui",
|
|
175
|
+
summary: "Operator console: live chat, recorded-run replay, config view.",
|
|
105
176
|
signature: "mono-agent tui [--agent <label|sourceId>] [--conversation <id>]\n" +
|
|
106
177
|
" [--configure | --local]",
|
|
107
178
|
lines: [
|
|
@@ -114,6 +185,10 @@ const HELP_COMMANDS = [
|
|
|
114
185
|
],
|
|
115
186
|
},
|
|
116
187
|
{
|
|
188
|
+
command: "web",
|
|
189
|
+
group: "Console",
|
|
190
|
+
short: "web [start|stop|status|...]",
|
|
191
|
+
summary: "Always-on assistant-ui console for every local agent.",
|
|
117
192
|
signature: "mono-agent web [start|stop|restart|status|logs|run] [--host <addr>|--loopback] [--port <n>]\n" +
|
|
118
193
|
" web reset --all --yes",
|
|
119
194
|
lines: [
|
|
@@ -126,25 +201,29 @@ const HELP_COMMANDS = [
|
|
|
126
201
|
],
|
|
127
202
|
},
|
|
128
203
|
{
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
{
|
|
138
|
-
signature: "mono-agent install-skill [--target claude|codex|both] [--force]\n" +
|
|
139
|
-
" --project (--check|--update)",
|
|
204
|
+
command: "runs",
|
|
205
|
+
group: "Observe",
|
|
206
|
+
short: "runs [report|audit]",
|
|
207
|
+
summary: "Read-only reporting over local agent-run artifacts.",
|
|
208
|
+
json: true,
|
|
209
|
+
signature: "mono-agent runs [report|audit] [--artifacts <path> | --consumer <path>]\n" +
|
|
210
|
+
" [--since <iso>] [--until <iso>] [--by model|channel|failureKind]\n" +
|
|
211
|
+
" [--stale-after-ms <n>] [--include-memory] [--json] [--config <path>] [--env-file <path>]",
|
|
140
212
|
lines: [
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
213
|
+
"Read-only, offline reporting over local agent-run summary artifacts.",
|
|
214
|
+
"report (default): status/failure-kind rates, duration percentiles, and",
|
|
215
|
+
"total/per-run cost, optionally windowed (--since/--until) and grouped (--by).",
|
|
216
|
+
"audit: artifact integrity — parse failures, status/failure-kind histograms,",
|
|
217
|
+
"stale running summaries (never rewritten), and per-failure-kind rates.",
|
|
218
|
+
"--include-memory adds memory-run artifacts. Legacy `audit-runs` and `metrics`",
|
|
219
|
+
"still forward here (deprecated: `runs audit` / `runs`).",
|
|
145
220
|
],
|
|
146
221
|
},
|
|
147
222
|
{
|
|
223
|
+
command: "backfill",
|
|
224
|
+
group: "Observe",
|
|
225
|
+
short: "backfill",
|
|
226
|
+
summary: "Export recorded run artifacts to the Phoenix exporter.",
|
|
148
227
|
signature: "mono-agent backfill (--run <id> | --all) [--since <iso>] [--until <iso>]\n" +
|
|
149
228
|
" [--include-memory] [--dry-run] [--config <path>] [--env-file <path>]",
|
|
150
229
|
lines: [
|
|
@@ -156,24 +235,11 @@ const HELP_COMMANDS = [
|
|
|
156
235
|
],
|
|
157
236
|
},
|
|
158
237
|
{
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"and per-failure-kind rates. --include-memory includes memory-run artifacts.",
|
|
165
|
-
],
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
signature: "mono-agent metrics [--artifacts <path>] [--since <iso>] [--until <iso>]\n" +
|
|
169
|
-
" [--include-memory] [--by model|channel|failureKind] [--json] [--config <path>] [--env-file <path>]",
|
|
170
|
-
lines: [
|
|
171
|
-
"Aggregate local agent-run summaries into status rates, failure-kind rates,",
|
|
172
|
-
"duration percentiles, and total/per-run cost. Read-only and offline.",
|
|
173
|
-
"--include-memory includes memory-run artifacts.",
|
|
174
|
-
],
|
|
175
|
-
},
|
|
176
|
-
{
|
|
238
|
+
command: "memory",
|
|
239
|
+
group: "Maintain",
|
|
240
|
+
short: "memory <subcommand>",
|
|
241
|
+
summary: "Preview and operate the configured memory store.",
|
|
242
|
+
json: true,
|
|
177
243
|
signature: "mono-agent memory [stats|today|show <date>|search <query>|top|audit|inspect [id]|retry [id]|resolve <id> <reason>|rebuild|rollback|adopt-replay]\n" +
|
|
178
244
|
"mono-agent memory forget prepare --ids-file <file> --reason <slug> --plan <file>\n" +
|
|
179
245
|
"mono-agent memory forget apply --plan <file> | forget restore --backup <dir>\n" +
|
|
@@ -190,6 +256,11 @@ const HELP_COMMANDS = [
|
|
|
190
256
|
],
|
|
191
257
|
},
|
|
192
258
|
{
|
|
259
|
+
command: "continuations",
|
|
260
|
+
group: "Maintain",
|
|
261
|
+
short: "continuations <subcommand>",
|
|
262
|
+
summary: "Inspect and operate the durable-continuation service.",
|
|
263
|
+
json: true,
|
|
193
264
|
signature: "mono-agent continuations [list [--limit <n>] [--cursor <opaque>]|health|retry <id>|cancel <id>|resolve <id> delivered|not-delivered|dead-lettered [delivery-id]] [--json]",
|
|
194
265
|
lines: [
|
|
195
266
|
"Inspect and operate the authenticated durable-continuation service.",
|
|
@@ -198,6 +269,25 @@ const HELP_COMMANDS = [
|
|
|
198
269
|
],
|
|
199
270
|
},
|
|
200
271
|
];
|
|
272
|
+
const HELP_COMMANDS_BY_KEY = new Map(HELP_COMMANDS.map((entry) => [entry.command, entry]));
|
|
273
|
+
/** Display order of the summary-screen groups, with optional heading notes. */
|
|
274
|
+
const HELP_GROUPS = [
|
|
275
|
+
{ id: "Setup" },
|
|
276
|
+
{ id: "Check" },
|
|
277
|
+
{ id: "Run", note: "(background lifecycle is macOS/launchd; elsewhere use start --foreground)" },
|
|
278
|
+
{ id: "Console" },
|
|
279
|
+
{ id: "Observe" },
|
|
280
|
+
{ id: "Maintain" },
|
|
281
|
+
];
|
|
282
|
+
/** `help <alias>` resolves to the canonical command's detail view, noting the alias. */
|
|
283
|
+
const HELP_ALIASES = new Map([
|
|
284
|
+
["doctor", "validate"],
|
|
285
|
+
["setup", "init"],
|
|
286
|
+
// Deprecated forwarding aliases: `metrics`/`audit-runs` still run (routing to
|
|
287
|
+
// `runs report`/`runs audit`), so their help topics resolve to the runs entry.
|
|
288
|
+
["metrics", "runs"],
|
|
289
|
+
["audit-runs", "runs"],
|
|
290
|
+
]);
|
|
201
291
|
const HELP_NOTES = `Background mode runs the agent under launchd, keeping it alive across logins
|
|
202
292
|
(auto-restarting only on crash) until you run stop. Secrets are read from the
|
|
203
293
|
.env file in the working directory, the same as foreground mode. The background
|
|
@@ -230,22 +320,74 @@ live input, fast mode, and native subagents instead of silently dropping them.
|
|
|
230
320
|
A .env file in the current folder is loaded automatically when present;
|
|
231
321
|
already-exported shell variables take precedence.
|
|
232
322
|
`;
|
|
233
|
-
|
|
323
|
+
const HELP_BANNER_SUBTITLE = "config-first agent host";
|
|
324
|
+
function helpBanner() {
|
|
325
|
+
return `${ui.banner("mono-agent", HELP_BANNER_SUBTITLE)}\n`;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Build the default grouped help summary: one scannable line per command under
|
|
329
|
+
* its group heading, with `[--json]` markers on the PR3 JSON surfaces. Also used
|
|
330
|
+
* by the error paths (unknown command / parse failure) so those stay short.
|
|
331
|
+
*/
|
|
234
332
|
export function renderHelp() {
|
|
235
|
-
|
|
236
|
-
out
|
|
237
|
-
for (const
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
out += ` ${ui.style.cyan(cont)}\n`;
|
|
333
|
+
const width = HELP_COMMANDS.reduce((max, entry) => Math.max(max, entry.short.length), 0);
|
|
334
|
+
let out = helpBanner();
|
|
335
|
+
for (const group of HELP_GROUPS) {
|
|
336
|
+
let heading = ui.style.bold(ui.style.cyan(group.id));
|
|
337
|
+
if (group.note !== undefined) {
|
|
338
|
+
heading += ` ${ui.style.dim(group.note)}`;
|
|
242
339
|
}
|
|
243
|
-
|
|
244
|
-
|
|
340
|
+
out += `${heading}\n`;
|
|
341
|
+
for (const entry of HELP_COMMANDS.filter((candidate) => candidate.group === group.id)) {
|
|
342
|
+
const shortColumn = ui.style.cyan(entry.short.padEnd(width));
|
|
343
|
+
const jsonMarker = entry.json === true ? ui.style.dim(" [--json]") : "";
|
|
344
|
+
out += ` ${shortColumn} ${entry.summary}${jsonMarker}\n`;
|
|
245
345
|
}
|
|
246
346
|
out += "\n";
|
|
247
347
|
}
|
|
248
|
-
out += ui.style.dim(
|
|
348
|
+
out += `${ui.style.dim("Run `mono-agent help <command>` for full flags and behavior notes.")}\n`;
|
|
349
|
+
out += `${ui.style.dim("Run `mono-agent help notes` for model references, fallback chains, and env-file rules.")}\n`;
|
|
350
|
+
return out;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Resolve a `help <topic>` request: `notes` prints the notes block, a command
|
|
354
|
+
* (or its alias) prints that command's detail view, a removed command prints its
|
|
355
|
+
* replacement pointer, and anything else is a usage error listing valid topics.
|
|
356
|
+
*/
|
|
357
|
+
export function renderHelpTopic(topic) {
|
|
358
|
+
if (topic === "notes") {
|
|
359
|
+
return { ok: true, text: `${helpBanner()}${ui.style.dim(HELP_NOTES)}` };
|
|
360
|
+
}
|
|
361
|
+
const removed = REMOVED_COMMANDS.get(topic);
|
|
362
|
+
if (removed !== undefined) {
|
|
363
|
+
return { ok: true, text: `${helpBanner()}${ui.style.dim(removed)}\n` };
|
|
364
|
+
}
|
|
365
|
+
const canonical = HELP_ALIASES.get(topic) ?? topic;
|
|
366
|
+
const entry = HELP_COMMANDS_BY_KEY.get(canonical);
|
|
367
|
+
if (entry === undefined) {
|
|
368
|
+
return { ok: false, message: unknownHelpTopicMessage(topic) };
|
|
369
|
+
}
|
|
370
|
+
const aliasNote = canonical === topic ? undefined : `\`${topic}\` is an alias of \`${canonical}\`.`;
|
|
371
|
+
return { ok: true, text: renderHelpEntryDetail(entry, aliasNote) };
|
|
372
|
+
}
|
|
373
|
+
function unknownHelpTopicMessage(topic) {
|
|
374
|
+
const topics = [...HELP_COMMANDS.map((entry) => entry.command), "notes"].join(", ");
|
|
375
|
+
return `Unknown help topic \`${topic}\`. Valid topics: ${topics}.`;
|
|
376
|
+
}
|
|
377
|
+
/** Render one command's full signature + behavior notes (the `help <command>` view). */
|
|
378
|
+
function renderHelpEntryDetail(entry, aliasNote) {
|
|
379
|
+
let out = helpBanner();
|
|
380
|
+
if (aliasNote !== undefined) {
|
|
381
|
+
out += `${ui.style.dim(aliasNote)}\n`;
|
|
382
|
+
}
|
|
383
|
+
const [first, ...rest] = entry.signature.split("\n");
|
|
384
|
+
out += ` ${ui.style.bold(ui.style.cyan(first ?? ""))}\n`;
|
|
385
|
+
for (const cont of rest) {
|
|
386
|
+
out += ` ${ui.style.cyan(cont)}\n`;
|
|
387
|
+
}
|
|
388
|
+
for (const line of entry.lines) {
|
|
389
|
+
out += ` ${ui.style.dim(line)}\n`;
|
|
390
|
+
}
|
|
249
391
|
return out;
|
|
250
392
|
}
|
|
251
393
|
/**
|
package/dist/cli-help.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-help.js","sourceRoot":"","sources":["../src/cli-help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"cli-help.js","sourceRoot":"","sources":["../src/cli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["../src/cli-init-command.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAwBnD,OAAO,KAAK,EAGV,cAAc,EACf,MAAM,0BAA0B,CAAC;AAMlC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAS3D,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,qBAAqB,CAAC;AAU7B,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"cli-init-command.d.ts","sourceRoot":"","sources":["../src/cli-init-command.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAwBnD,OAAO,KAAK,EAGV,cAAc,EACf,MAAM,0BAA0B,CAAC;AAMlC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAS3D,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,qBAAqB,CAAC;AAU7B,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAsB,OAAO,CA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AE,YAAY,GAAG,SAAS,GAAG,UAAU,CAAC;CACxD;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,SAAS,mBAAmB,EAAE,EACvC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,SAAS,yBAAyB,EAAE,CAOtC"}
|
package/dist/cli-init-command.js
CHANGED
|
@@ -18,7 +18,7 @@ import { readinessProbeTimeoutMs, runAllRouteReadinessProbe } from "./readiness-
|
|
|
18
18
|
import { setupManagedSrt } from "./sandbox-manager.js";
|
|
19
19
|
import { composeWizardPlan, referencedSetupModelRefs } from "./wizard/answers.js";
|
|
20
20
|
import { answersFromCli, isWithChannel } from "./wizard/from-flags.js";
|
|
21
|
-
import { findPreset, presetIds
|
|
21
|
+
import { findPreset, presetIds } from "./wizard/presets.js";
|
|
22
22
|
import { runInitWizard, runSetupRepairWizard } from "./wizard/run.js";
|
|
23
23
|
import * as p from "@clack/prompts";
|
|
24
24
|
import * as ui from "./ui.js";
|
|
@@ -762,7 +762,6 @@ export async function runInit(args, environment) {
|
|
|
762
762
|
const answers = answersFromCli({
|
|
763
763
|
...(args.model === undefined ? {} : { model: args.model }),
|
|
764
764
|
...(args.name === undefined ? {} : { name: args.name }),
|
|
765
|
-
...(args.fallbackModels === undefined ? {} : { fallbackModels: args.fallbackModels }),
|
|
766
765
|
...(args.fallbacks === undefined ? {} : { fallbacks: args.fallbacks }),
|
|
767
766
|
...(args.routeSafety === undefined ? {} : { routeSafety: args.routeSafety }),
|
|
768
767
|
...(args.effort === undefined ? {} : { effort: args.effort }),
|
|
@@ -1721,11 +1720,9 @@ function printProviderSetupPlan(plan) {
|
|
|
1721
1720
|
}
|
|
1722
1721
|
}
|
|
1723
1722
|
/**
|
|
1724
|
-
* Resolve the preset id for `init`: `--preset` wins
|
|
1725
|
-
*
|
|
1726
|
-
* the
|
|
1727
|
-
* `"unknown"` after emitting the
|
|
1728
|
-
* error/hint (an unknown preset, or a retired recipe with no replacement).
|
|
1723
|
+
* Resolve the preset id for `init`: `--preset` wins. Returns the preset id to
|
|
1724
|
+
* compose from, `undefined` for the default scaffold, or `"unknown"` after
|
|
1725
|
+
* emitting the error/hint for an unknown preset.
|
|
1729
1726
|
*/
|
|
1730
1727
|
function resolveInitPresetId(args) {
|
|
1731
1728
|
if (args.preset !== undefined) {
|
|
@@ -1737,17 +1734,6 @@ function resolveInitPresetId(args) {
|
|
|
1737
1734
|
}
|
|
1738
1735
|
return preset.id;
|
|
1739
1736
|
}
|
|
1740
|
-
if (args.recipe !== undefined) {
|
|
1741
|
-
const preset = RECIPE_TO_PRESET.get(args.recipe);
|
|
1742
|
-
if (preset === undefined) {
|
|
1743
|
-
process.stderr.write(ui.errorLine(`Recipe \`${args.recipe}\` was retired; the wizard composes capabilities directly.`));
|
|
1744
|
-
process.stderr.write(ui.hint(`Use \`mono-agent init --preset <id>\` (${presetIds().join(", ")}), or \`mono-agent init\` for the step-by-step wizard.`));
|
|
1745
|
-
process.stderr.write(ui.hint("See the mono-agent-composer skill and docs/playbooks for capability recipes."));
|
|
1746
|
-
return "unknown";
|
|
1747
|
-
}
|
|
1748
|
-
process.stderr.write(ui.hint(`Using replacement preset ${preset.id}. See \`mono-agent presets list\`.`));
|
|
1749
|
-
return preset.id;
|
|
1750
|
-
}
|
|
1751
1737
|
return undefined;
|
|
1752
1738
|
}
|
|
1753
1739
|
function resolveWithChannels(args) {
|