@mono-agent/agent-app 0.12.0 → 0.14.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 +190 -33
- package/dist/adapter-send-tools-main.js +0 -1
- package/dist/adapter-send-tools-main.js.map +1 -1
- package/dist/adapter-send-tools.d.ts +8 -5
- package/dist/adapter-send-tools.d.ts.map +1 -1
- package/dist/adapter-send-tools.js +195 -257
- package/dist/adapter-send-tools.js.map +1 -1
- package/dist/app-controller-channels.d.ts.map +1 -1
- package/dist/app-controller-channels.js +2 -1
- package/dist/app-controller-channels.js.map +1 -1
- package/dist/app-controller-continuation.d.ts.map +1 -1
- package/dist/app-controller-continuation.js +1 -5
- package/dist/app-controller-continuation.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 +2 -1
- package/dist/app-controller-maintenance.d.ts.map +1 -1
- package/dist/app-controller-maintenance.js +66 -2
- 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 +12 -4
- 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-utils.js +1 -1
- package/dist/app-controller-utils.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-environment.d.ts +1 -0
- package/dist/background-environment.d.ts.map +1 -1
- package/dist/background-environment.js +1 -0
- package/dist/background-environment.js.map +1 -1
- package/dist/background-runtime.d.ts +39 -2
- package/dist/background-runtime.d.ts.map +1 -1
- package/dist/background-runtime.js +901 -49
- package/dist/background-runtime.js.map +1 -1
- package/dist/background.d.ts +36 -3
- package/dist/background.d.ts.map +1 -1
- package/dist/background.js +404 -57
- package/dist/background.js.map +1 -1
- package/dist/channel-drivers/cron.js +8 -1
- package/dist/channel-drivers/cron.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/native-notify.d.ts +2 -0
- package/dist/channel-drivers/native-notify.d.ts.map +1 -1
- package/dist/channel-drivers/native-notify.js +14 -2
- package/dist/channel-drivers/native-notify.js.map +1 -1
- package/dist/channel-drivers/slack.d.ts.map +1 -1
- package/dist/channel-drivers/slack.js +55 -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 +19 -14
- package/dist/channel-drivers/telegram.js.map +1 -1
- package/dist/channel-drivers/tui.d.ts.map +1 -1
- package/dist/channel-drivers/tui.js +8 -0
- package/dist/channel-drivers/tui.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 +23 -22
- package/dist/cli-args.d.ts.map +1 -1
- package/dist/cli-args.js +136 -83
- 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 +158 -27
- 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 +27 -59
- 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 +203 -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 +10 -0
- package/dist/cli-runs-command.d.ts.map +1 -0
- package/dist/cli-runs-command.js +66 -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.d.ts.map +1 -1
- package/dist/config-reference.js +4 -5
- package/dist/config-reference.js.map +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 +4 -5
- 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 +5 -20
- package/dist/interaction-bridge.d.ts.map +1 -1
- package/dist/interaction-bridge.js +255 -100
- package/dist/interaction-bridge.js.map +1 -1
- package/dist/launchd.d.ts +35 -1
- package/dist/launchd.d.ts.map +1 -1
- package/dist/launchd.js +131 -2
- 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/modules/catalog.js +1 -1
- package/dist/modules/catalog.js.map +1 -1
- package/dist/modules/known-tools.d.ts +1 -1
- package/dist/modules/known-tools.d.ts.map +1 -1
- package/dist/modules/known-tools.js +0 -3
- package/dist/modules/known-tools.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 +6 -2
- package/dist/run-history.d.ts.map +1 -1
- package/dist/run-history.js +511 -118
- 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/ui.js +1 -1
- package/dist/ui.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/dist/wizard/prompts.d.ts.map +1 -1
- package/dist/wizard/prompts.js +3 -4
- package/dist/wizard/prompts.js.map +1 -1
- package/dist/wizard/run.js +3 -3
- package/dist/wizard/run.js.map +1 -1
- package/package.json +15 -16
- package/schema/mono-agent.config.schema.json +4 -4
- 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 +18 -10
- package/skills/mono-agent-composer/references/discovery-questions.md +8 -5
- package/skills/mono-agent-composer/references/feature-coverage.md +10 -9
- package/skills/mono-agent-composer/references/package-map.md +10 -4
- package/skills/mono-agent-composer/references/playbooks.md +6 -6
- package/skills/mono-agent-composer/references/validation.md +24 -2
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,119 @@ 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.",
|
|
90
143
|
],
|
|
91
144
|
},
|
|
92
145
|
{
|
|
146
|
+
command: "stop",
|
|
147
|
+
group: "Run",
|
|
148
|
+
short: "stop",
|
|
149
|
+
summary: "Stop the instance and remove its LaunchAgent.",
|
|
93
150
|
signature: "mono-agent stop [--config <path>]",
|
|
94
151
|
lines: ["Stop the background instance and remove its LaunchAgent."],
|
|
95
152
|
},
|
|
96
153
|
{
|
|
97
|
-
|
|
154
|
+
command: "status",
|
|
155
|
+
group: "Run",
|
|
156
|
+
short: "status",
|
|
157
|
+
summary: "Show this config's instance plus other running instances.",
|
|
158
|
+
json: true,
|
|
159
|
+
signature: "mono-agent status [--config <path>] [--json]",
|
|
98
160
|
lines: ["Show this config's instance plus any other running instances."],
|
|
99
161
|
},
|
|
100
162
|
{
|
|
163
|
+
command: "logs",
|
|
164
|
+
group: "Run",
|
|
165
|
+
short: "logs",
|
|
166
|
+
summary: "Print (and optionally follow) the background log files.",
|
|
101
167
|
signature: "mono-agent logs [--config <path>] [--follow|-f] [--lines <n>]",
|
|
102
168
|
lines: ["Print (and optionally follow) the background instance's log files."],
|
|
103
169
|
},
|
|
104
170
|
{
|
|
171
|
+
command: "tui",
|
|
172
|
+
group: "Console",
|
|
173
|
+
short: "tui",
|
|
174
|
+
summary: "Operator console: live chat, recorded-run replay, config view.",
|
|
105
175
|
signature: "mono-agent tui [--agent <label|sourceId>] [--conversation <id>]\n" +
|
|
106
176
|
" [--configure | --local]",
|
|
107
177
|
lines: [
|
|
@@ -114,6 +184,10 @@ const HELP_COMMANDS = [
|
|
|
114
184
|
],
|
|
115
185
|
},
|
|
116
186
|
{
|
|
187
|
+
command: "web",
|
|
188
|
+
group: "Console",
|
|
189
|
+
short: "web [start|stop|status|...]",
|
|
190
|
+
summary: "Always-on assistant-ui console for every local agent.",
|
|
117
191
|
signature: "mono-agent web [start|stop|restart|status|logs|run] [--host <addr>|--loopback] [--port <n>]\n" +
|
|
118
192
|
" web reset --all --yes",
|
|
119
193
|
lines: [
|
|
@@ -126,25 +200,28 @@ const HELP_COMMANDS = [
|
|
|
126
200
|
],
|
|
127
201
|
},
|
|
128
202
|
{
|
|
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)",
|
|
203
|
+
command: "runs",
|
|
204
|
+
group: "Observe",
|
|
205
|
+
short: "runs [report|audit]",
|
|
206
|
+
summary: "Read-only reporting over local agent-run artifacts.",
|
|
207
|
+
json: true,
|
|
208
|
+
signature: "mono-agent runs [report|audit] [--artifacts <path> | --consumer <path>]\n" +
|
|
209
|
+
" [--since <iso>] [--until <iso>] [--by model|channel|failureKind]\n" +
|
|
210
|
+
" [--stale-after-ms <n>] [--include-memory] [--json] [--config <path>] [--env-file <path>]",
|
|
140
211
|
lines: [
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
212
|
+
"Read-only, offline reporting over local agent-run summary artifacts.",
|
|
213
|
+
"report (default): status/failure-kind rates, duration percentiles, and",
|
|
214
|
+
"total/per-run cost, optionally windowed (--since/--until) and grouped (--by).",
|
|
215
|
+
"audit: artifact integrity — parse failures, status/failure-kind histograms,",
|
|
216
|
+
"stale running summaries (never rewritten), and per-failure-kind rates.",
|
|
217
|
+
"--include-memory adds memory-run artifacts.",
|
|
145
218
|
],
|
|
146
219
|
},
|
|
147
220
|
{
|
|
221
|
+
command: "backfill",
|
|
222
|
+
group: "Observe",
|
|
223
|
+
short: "backfill",
|
|
224
|
+
summary: "Export recorded run artifacts to the Phoenix exporter.",
|
|
148
225
|
signature: "mono-agent backfill (--run <id> | --all) [--since <iso>] [--until <iso>]\n" +
|
|
149
226
|
" [--include-memory] [--dry-run] [--config <path>] [--env-file <path>]",
|
|
150
227
|
lines: [
|
|
@@ -156,24 +233,11 @@ const HELP_COMMANDS = [
|
|
|
156
233
|
],
|
|
157
234
|
},
|
|
158
235
|
{
|
|
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
|
-
{
|
|
236
|
+
command: "memory",
|
|
237
|
+
group: "Maintain",
|
|
238
|
+
short: "memory <subcommand>",
|
|
239
|
+
summary: "Preview and operate the configured memory store.",
|
|
240
|
+
json: true,
|
|
177
241
|
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
242
|
"mono-agent memory forget prepare --ids-file <file> --reason <slug> --plan <file>\n" +
|
|
179
243
|
"mono-agent memory forget apply --plan <file> | forget restore --backup <dir>\n" +
|
|
@@ -190,6 +254,11 @@ const HELP_COMMANDS = [
|
|
|
190
254
|
],
|
|
191
255
|
},
|
|
192
256
|
{
|
|
257
|
+
command: "continuations",
|
|
258
|
+
group: "Maintain",
|
|
259
|
+
short: "continuations <subcommand>",
|
|
260
|
+
summary: "Inspect and operate the durable-continuation service.",
|
|
261
|
+
json: true,
|
|
193
262
|
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
263
|
lines: [
|
|
195
264
|
"Inspect and operate the authenticated durable-continuation service.",
|
|
@@ -198,6 +267,21 @@ const HELP_COMMANDS = [
|
|
|
198
267
|
],
|
|
199
268
|
},
|
|
200
269
|
];
|
|
270
|
+
const HELP_COMMANDS_BY_KEY = new Map(HELP_COMMANDS.map((entry) => [entry.command, entry]));
|
|
271
|
+
/** Display order of the summary-screen groups, with optional heading notes. */
|
|
272
|
+
const HELP_GROUPS = [
|
|
273
|
+
{ id: "Setup" },
|
|
274
|
+
{ id: "Check" },
|
|
275
|
+
{ id: "Run", note: "(background lifecycle is macOS/launchd; elsewhere use start --foreground)" },
|
|
276
|
+
{ id: "Console" },
|
|
277
|
+
{ id: "Observe" },
|
|
278
|
+
{ id: "Maintain" },
|
|
279
|
+
];
|
|
280
|
+
/** `help <alias>` resolves to the canonical command's detail view, noting the alias. */
|
|
281
|
+
const HELP_ALIASES = new Map([
|
|
282
|
+
["doctor", "validate"],
|
|
283
|
+
["setup", "init"],
|
|
284
|
+
]);
|
|
201
285
|
const HELP_NOTES = `Background mode runs the agent under launchd, keeping it alive across logins
|
|
202
286
|
(auto-restarting only on crash) until you run stop. Secrets are read from the
|
|
203
287
|
.env file in the working directory, the same as foreground mode. The background
|
|
@@ -230,22 +314,74 @@ live input, fast mode, and native subagents instead of silently dropping them.
|
|
|
230
314
|
A .env file in the current folder is loaded automatically when present;
|
|
231
315
|
already-exported shell variables take precedence.
|
|
232
316
|
`;
|
|
233
|
-
|
|
317
|
+
const HELP_BANNER_SUBTITLE = "config-first agent host";
|
|
318
|
+
function helpBanner() {
|
|
319
|
+
return `${ui.banner("mono-agent", HELP_BANNER_SUBTITLE)}\n`;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Build the default grouped help summary: one scannable line per command under
|
|
323
|
+
* its group heading, with `[--json]` markers on the PR3 JSON surfaces. Also used
|
|
324
|
+
* by the error paths (unknown command / parse failure) so those stay short.
|
|
325
|
+
*/
|
|
234
326
|
export function renderHelp() {
|
|
235
|
-
|
|
236
|
-
out
|
|
237
|
-
for (const
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
out += ` ${ui.style.cyan(cont)}\n`;
|
|
327
|
+
const width = HELP_COMMANDS.reduce((max, entry) => Math.max(max, entry.short.length), 0);
|
|
328
|
+
let out = helpBanner();
|
|
329
|
+
for (const group of HELP_GROUPS) {
|
|
330
|
+
let heading = ui.style.bold(ui.style.cyan(group.id));
|
|
331
|
+
if (group.note !== undefined) {
|
|
332
|
+
heading += ` ${ui.style.dim(group.note)}`;
|
|
242
333
|
}
|
|
243
|
-
|
|
244
|
-
|
|
334
|
+
out += `${heading}\n`;
|
|
335
|
+
for (const entry of HELP_COMMANDS.filter((candidate) => candidate.group === group.id)) {
|
|
336
|
+
const shortColumn = ui.style.cyan(entry.short.padEnd(width));
|
|
337
|
+
const jsonMarker = entry.json === true ? ui.style.dim(" [--json]") : "";
|
|
338
|
+
out += ` ${shortColumn} ${entry.summary}${jsonMarker}\n`;
|
|
245
339
|
}
|
|
246
340
|
out += "\n";
|
|
247
341
|
}
|
|
248
|
-
out += ui.style.dim(
|
|
342
|
+
out += `${ui.style.dim("Run `mono-agent help <command>` for full flags and behavior notes.")}\n`;
|
|
343
|
+
out += `${ui.style.dim("Run `mono-agent help notes` for model references, fallback chains, and env-file rules.")}\n`;
|
|
344
|
+
return out;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Resolve a `help <topic>` request: `notes` prints the notes block, a command
|
|
348
|
+
* (or its alias) prints that command's detail view, a removed command prints its
|
|
349
|
+
* replacement pointer, and anything else is a usage error listing valid topics.
|
|
350
|
+
*/
|
|
351
|
+
export function renderHelpTopic(topic) {
|
|
352
|
+
if (topic === "notes") {
|
|
353
|
+
return { ok: true, text: `${helpBanner()}${ui.style.dim(HELP_NOTES)}` };
|
|
354
|
+
}
|
|
355
|
+
const removed = REMOVED_COMMANDS.get(topic);
|
|
356
|
+
if (removed !== undefined) {
|
|
357
|
+
return { ok: true, text: `${helpBanner()}${ui.style.dim(removed)}\n` };
|
|
358
|
+
}
|
|
359
|
+
const canonical = HELP_ALIASES.get(topic) ?? topic;
|
|
360
|
+
const entry = HELP_COMMANDS_BY_KEY.get(canonical);
|
|
361
|
+
if (entry === undefined) {
|
|
362
|
+
return { ok: false, message: unknownHelpTopicMessage(topic) };
|
|
363
|
+
}
|
|
364
|
+
const aliasNote = canonical === topic ? undefined : `\`${topic}\` is an alias of \`${canonical}\`.`;
|
|
365
|
+
return { ok: true, text: renderHelpEntryDetail(entry, aliasNote) };
|
|
366
|
+
}
|
|
367
|
+
function unknownHelpTopicMessage(topic) {
|
|
368
|
+
const topics = [...HELP_COMMANDS.map((entry) => entry.command), "notes"].join(", ");
|
|
369
|
+
return `Unknown help topic \`${topic}\`. Valid topics: ${topics}.`;
|
|
370
|
+
}
|
|
371
|
+
/** Render one command's full signature + behavior notes (the `help <command>` view). */
|
|
372
|
+
function renderHelpEntryDetail(entry, aliasNote) {
|
|
373
|
+
let out = helpBanner();
|
|
374
|
+
if (aliasNote !== undefined) {
|
|
375
|
+
out += `${ui.style.dim(aliasNote)}\n`;
|
|
376
|
+
}
|
|
377
|
+
const [first, ...rest] = entry.signature.split("\n");
|
|
378
|
+
out += ` ${ui.style.bold(ui.style.cyan(first ?? ""))}\n`;
|
|
379
|
+
for (const cont of rest) {
|
|
380
|
+
out += ` ${ui.style.cyan(cont)}\n`;
|
|
381
|
+
}
|
|
382
|
+
for (const line of entry.lines) {
|
|
383
|
+
out += ` ${ui.style.dim(line)}\n`;
|
|
384
|
+
}
|
|
249
385
|
return out;
|
|
250
386
|
}
|
|
251
387
|
/**
|
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-help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AA0B9B,MAAM,aAAa,GAAyB;IAC1C;QACE,OAAO,EAAE,MAAM;QACf,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,2EAA2E;QACpF,SAAS,EAAE,+EAA+E;YACxF,8EAA8E;YAC9E,sFAAsF;YACtF,6DAA6D;YAC7D,4EAA4E;QAC9E,KAAK,EAAE;YACL,2EAA2E;Y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WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,cAAc,GAAG,cAAc,CAAC;IACjF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B;AAED,2EAA2E;AAC3E,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,yBAAyB,GAAG,SAAS,oBAAoB,EAAE,CAaxG;AAED,uFAAuF;AACvF,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,yBAAyB,CAAC,cAAc,CAAC,GAAG,MAAM,CAWvG;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,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) {
|