@namzu/cli 6.0.2 → 8.0.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/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +27 -3
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/drain.d.ts +59 -0
- package/dist/commands/drain.d.ts.map +1 -0
- package/dist/commands/drain.js +301 -0
- package/dist/commands/drain.js.map +1 -0
- package/dist/commands/run-stream.d.ts +37 -9
- package/dist/commands/run-stream.d.ts.map +1 -1
- package/dist/commands/run-stream.js +149 -21
- package/dist/commands/run-stream.js.map +1 -1
- package/dist/doctor/checks/chain.d.ts.map +1 -1
- package/dist/doctor/checks/chain.js +11 -1
- package/dist/doctor/checks/chain.js.map +1 -1
- package/dist/doctor/checks/providers.d.ts +6 -1
- package/dist/doctor/checks/providers.d.ts.map +1 -1
- package/dist/doctor/checks/providers.js +7 -2
- package/dist/doctor/checks/providers.js.map +1 -1
- package/dist/doctor/checks/telemetry.d.ts +35 -1
- package/dist/doctor/checks/telemetry.d.ts.map +1 -1
- package/dist/doctor/checks/telemetry.js +64 -13
- package/dist/doctor/checks/telemetry.js.map +1 -1
- package/dist/doctor/checks/vault.d.ts +10 -1
- package/dist/doctor/checks/vault.d.ts.map +1 -1
- package/dist/doctor/checks/vault.js +11 -2
- package/dist/doctor/checks/vault.js.map +1 -1
- package/dist/doctor/registry.js +25 -1
- package/dist/doctor/registry.js.map +1 -1
- package/dist/exit-codes.d.ts +18 -1
- package/dist/exit-codes.d.ts.map +1 -1
- package/dist/exit-codes.js +17 -0
- package/dist/exit-codes.js.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/App.js +224 -50
- package/dist/tui/App.js.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.js +1 -1
- package/dist/tui/PermissionOverlay.js.map +1 -1
- package/dist/tui/agent.d.ts +57 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/agent.js +72 -3
- package/dist/tui/agent.js.map +1 -1
- package/dist/user-commands/store.d.ts +14 -1
- package/dist/user-commands/store.d.ts.map +1 -1
- package/dist/user-commands/store.js +6 -1
- package/dist/user-commands/store.js.map +1 -1
- package/package.json +5 -4
|
@@ -16,18 +16,46 @@
|
|
|
16
16
|
* persisted (stateless one-shot).
|
|
17
17
|
*
|
|
18
18
|
* Status lines never hit stdout (logger silenced) so every stdout line is a
|
|
19
|
-
* valid JSON event
|
|
20
|
-
*
|
|
19
|
+
* valid JSON event, and EVERY failure is reported in band, including the ones
|
|
20
|
+
* that also carry an exit code.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
22
|
+
* ## What the exit code means
|
|
23
|
+
*
|
|
24
|
+
* It used to be explained as "a run that STARTED and failed exits 0; a refusal
|
|
25
|
+
* to start exits non-zero", and that rule did not sort the cases it was applied
|
|
26
|
+
* to. An unknown option, a missing prompt, a `--cwd` that is not there and a
|
|
27
|
+
* tool server that will not connect are all refusals to start, and all four
|
|
28
|
+
* exited 0 while an untrusted folder exited 77. Neither does the retry argument
|
|
29
|
+
* the old comment appealed to: retrying an unknown option is exactly as
|
|
30
|
+
* pointless as retrying an untrusted folder.
|
|
31
|
+
*
|
|
32
|
+
* The axis that does sort them:
|
|
33
|
+
*
|
|
34
|
+
* CAN THE CALLER REACH THE RUN IT ASKED FOR BY CHANGING WHAT IT SENDS?
|
|
35
|
+
*
|
|
36
|
+
* - **Yes → `0`.** The host reads the `error` event and fixes its own
|
|
37
|
+
* invocation. An unknown option, no prompt, a `--cwd` that does not exist, a
|
|
38
|
+
* `--permission-mode` that is not a mode, an interactive command named
|
|
39
|
+
* headlessly, a provider id that is not a provider.
|
|
40
|
+
* - **A run that started and failed → `0`.** Unchanged: that is an outcome to
|
|
41
|
+
* render, and possibly to retry.
|
|
42
|
+
* - **No → non-zero, because a person has to go and do something.** `77` when
|
|
43
|
+
* the folder is untrusted — kept to that one condition, because being
|
|
44
|
+
* unambiguous is its entire justification. `1` for everything else in this
|
|
45
|
+
* group: a conversation that cannot be opened, no provider available, a
|
|
46
|
+
* credential or driver the session needs, a declared tool server that is not
|
|
47
|
+
* there, a command file that will not parse.
|
|
48
|
+
*
|
|
49
|
+
* `1` rather than a new code because `namzu run` — the same one-shot, differing
|
|
50
|
+
* only in how it prints — already exits `1` for these conditions and `77` for
|
|
51
|
+
* trust. A host that shells to one for a script and the other for a UI must not
|
|
52
|
+
* be handed two tables for one fact.
|
|
53
|
+
*
|
|
54
|
+
* Dropping `--session` is NOT "the caller fixing it": it abandons what was
|
|
55
|
+
* asked for rather than achieving it.
|
|
28
56
|
*/
|
|
29
57
|
import { configureLogger } from '@namzu/sdk';
|
|
30
|
-
import { EXIT_UNTRUSTED } from '../exit-codes.js';
|
|
58
|
+
import { EXIT_FAIL, EXIT_OK, EXIT_UNTRUSTED } from '../exit-codes.js';
|
|
31
59
|
import { appendMessages, loadConversation, openSessions, resolveConversation, } from '../integrations/sessions/store.js';
|
|
32
60
|
import { decideHeadlessTrust } from '../permissions/headless-trust.js';
|
|
33
61
|
import { resolvePermissionMode } from '../permissions/mode.js';
|
|
@@ -90,26 +118,59 @@ export const runStreamCommand = {
|
|
|
90
118
|
'Takes the same options as `namzu run`, including --permission-mode and',
|
|
91
119
|
'the [permissions] table from the config file.',
|
|
92
120
|
'',
|
|
121
|
+
'History is bound with --session <id>. --continue and --resume are `run`',
|
|
122
|
+
'options and are refused here rather than ignored.',
|
|
123
|
+
'',
|
|
93
124
|
'The folder has to be trusted: run `namzu` here once and accept the',
|
|
94
125
|
'prompt, or pass --trust for one run. An untrusted folder emits an error',
|
|
95
|
-
'event and exits 77 without running anything
|
|
96
|
-
'command exits non-zero, because nothing started and a retry cannot help.',
|
|
126
|
+
'event and exits 77 without running anything.',
|
|
97
127
|
'',
|
|
98
128
|
'Needs a provider. Set a credential in the environment, or run namzu',
|
|
99
129
|
'once to pick one interactively.',
|
|
130
|
+
'',
|
|
131
|
+
'Every failure is an event on stdout. The exit code says whether YOU can',
|
|
132
|
+
'do anything about it: 0 when changing what you send would reach the run',
|
|
133
|
+
'(a wrong option, no prompt, a bad --cwd) and when a run started and',
|
|
134
|
+
'failed; 1 when it would not (no provider, a tool server that is not',
|
|
135
|
+
'there, a conversation that cannot be opened); 77 when the folder has not',
|
|
136
|
+
'been trusted, which only a person can change.',
|
|
100
137
|
].join('\n'),
|
|
101
138
|
handler: async ({ ctx, rawArgs }) => {
|
|
102
139
|
const write = (o) => {
|
|
103
140
|
process.stdout.write(`${JSON.stringify(o)}\n`);
|
|
104
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
* Report and stop.
|
|
144
|
+
*
|
|
145
|
+
* Always in band, always terminated with `done`, and the code says only
|
|
146
|
+
* whether the caller can reach the run by sending something else. The
|
|
147
|
+
* argument for each case is in this file's header; the two spellings exist
|
|
148
|
+
* so that every call site below has to state which side it is on rather
|
|
149
|
+
* than inheriting a default nobody re-reads.
|
|
150
|
+
*/
|
|
105
151
|
const fail = (message) => {
|
|
106
152
|
write({ kind: 'error', message });
|
|
107
153
|
write({ kind: 'done' });
|
|
108
|
-
return
|
|
154
|
+
return EXIT_OK;
|
|
155
|
+
};
|
|
156
|
+
const refuse = (message) => {
|
|
157
|
+
write({ kind: 'error', message });
|
|
158
|
+
write({ kind: 'done' });
|
|
159
|
+
return EXIT_FAIL;
|
|
109
160
|
};
|
|
110
161
|
const flags = parseRunFlags(rawArgs);
|
|
111
162
|
if (flags.unknown.length > 0)
|
|
112
163
|
return fail(unknownOptionMessage(flags.unknown));
|
|
164
|
+
// `--continue` and `--resume` parse here because the two commands share one
|
|
165
|
+
// parser, and this command reads neither. Accepting a flag and doing
|
|
166
|
+
// nothing with it is the failure mode the shared parser was introduced to
|
|
167
|
+
// end: a host that asked to reopen a conversation was given a stateless
|
|
168
|
+
// run, reported as an ordinary success, and the next turn had no history
|
|
169
|
+
// with nothing anywhere connecting the two. Refused instead, and named,
|
|
170
|
+
// because a host CAN fix this — `--session` is the flag it wanted.
|
|
171
|
+
if (flags.continueLast || flags.resume !== null) {
|
|
172
|
+
return fail('run-stream does not take --continue or --resume; they are `namzu run` options. Bind history with --session <id>, which keys a persisted conversation in this folder.');
|
|
173
|
+
}
|
|
113
174
|
const sessionKey = flags.session;
|
|
114
175
|
const prompt = flags.rest.join(' ').trim();
|
|
115
176
|
if (!prompt)
|
|
@@ -125,8 +186,13 @@ export const runStreamCommand = {
|
|
|
125
186
|
cwd,
|
|
126
187
|
builtins: SLASH_COMMANDS.map((c) => c.name),
|
|
127
188
|
});
|
|
128
|
-
|
|
129
|
-
|
|
189
|
+
// Two different refusals wear this one word. An interactive builtin named
|
|
190
|
+
// headlessly, or arguments handed to a template that takes none, are fixed
|
|
191
|
+
// by sending a different prompt. A command FILE that will not parse is not
|
|
192
|
+
// — and no prompt fixes a file.
|
|
193
|
+
if (expansion.kind === 'refused') {
|
|
194
|
+
return expansion.fixable ? fail(expansion.reason) : refuse(expansion.reason);
|
|
195
|
+
}
|
|
130
196
|
const finalPrompt = expansion.kind === 'expanded' ? expansion.prompt : prompt;
|
|
131
197
|
// Before the session store is opened, before anything is read or run in
|
|
132
198
|
// that directory.
|
|
@@ -156,8 +222,35 @@ export const runStreamCommand = {
|
|
|
156
222
|
conversationId = await resolveConversation(cli, sessionKey);
|
|
157
223
|
prior = await loadConversation(cli, conversationId);
|
|
158
224
|
}
|
|
159
|
-
catch {
|
|
160
|
-
|
|
225
|
+
catch (err) {
|
|
226
|
+
// Refused, not run stateless.
|
|
227
|
+
//
|
|
228
|
+
// This used to set `cli = null` and fall through to the branch
|
|
229
|
+
// below, which reads prior turns from STDIN — so a caller who named
|
|
230
|
+
// a conversation got a turn answered against a different history,
|
|
231
|
+
// or none, reported as an ordinary success. `run.ts` already
|
|
232
|
+
// refuses the equivalent, in those words: someone who asked for a
|
|
233
|
+
// specific conversation and got a new one that looks the same finds
|
|
234
|
+
// out several turns later, having already acted on it.
|
|
235
|
+
//
|
|
236
|
+
// It cannot be softened into a warning, because we cannot say what
|
|
237
|
+
// was lost. `resolveConversation` creates the key on first use, so
|
|
238
|
+
// a fresh key legitimately has no prior turns — and the failure is
|
|
239
|
+
// exactly what stopped us finding out which case this is. "Could
|
|
240
|
+
// not look" is not "there was nothing there."
|
|
241
|
+
//
|
|
242
|
+
// In band, like every other failure here, because that is what the
|
|
243
|
+
// host reads. No session has been built at this point in the flow,
|
|
244
|
+
// so there is nothing to close on the way out.
|
|
245
|
+
//
|
|
246
|
+
// Non-zero, which is the correction #321 is about. `resolveConversation`
|
|
247
|
+
// CREATES the key on first use, so this cannot be a key the host got
|
|
248
|
+
// wrong — the only way here is the store itself: an unwritable
|
|
249
|
+
// `.namzu`, a corrupt map file. Nothing the host sends changes that,
|
|
250
|
+
// so a host treating 0 as "render the error and move on" would loop
|
|
251
|
+
// on an environment fault it could have raised to a person. Dropping
|
|
252
|
+
// `--session` is not a fix; it abandons what was asked for.
|
|
253
|
+
return refuse(`could not open conversation "${sessionKey}": ${err instanceof Error ? err.message : String(err)}. Nothing ran, because continuing the wrong history is worse than not continuing. Drop --session to run this turn stateless.`);
|
|
161
254
|
}
|
|
162
255
|
}
|
|
163
256
|
if (!cli) {
|
|
@@ -168,7 +261,9 @@ export const runStreamCommand = {
|
|
|
168
261
|
const probe = await probeAgentSession();
|
|
169
262
|
let prefs = probe.preferences ?? defaultPrefs(probe.detected);
|
|
170
263
|
if (!prefs) {
|
|
171
|
-
|
|
264
|
+
// Nothing detected and nothing configured. `--provider` cannot conjure a
|
|
265
|
+
// credential, so no argument the host changes gets past this line.
|
|
266
|
+
return refuse('no LLM provider available — set a credential (e.g. ANTHROPIC_API_KEY) or run `namzu` to pick one');
|
|
172
267
|
}
|
|
173
268
|
// --provider/--model override the persona's configured provider+model for
|
|
174
269
|
// this run, so the Namzu tab's picks win over ~/.namzu/preferences.json.
|
|
@@ -204,7 +299,18 @@ export const runStreamCommand = {
|
|
|
204
299
|
});
|
|
205
300
|
if (!session.hasProvider) {
|
|
206
301
|
await session.close();
|
|
207
|
-
|
|
302
|
+
// The one branch here that is genuinely BOTH. `createAgentSession`
|
|
303
|
+
// refuses an id that is not a provider — which `--provider` put there,
|
|
304
|
+
// so the host fixes it — and, with the same result object, a missing
|
|
305
|
+
// credential, a driver package that would not load, a chain that
|
|
306
|
+
// contradicts itself, a client that would not construct. None of those
|
|
307
|
+
// four move for any argument.
|
|
308
|
+
//
|
|
309
|
+
// The session says which, in a field. Deciding it here by reading its
|
|
310
|
+
// `errorHint` would be the message-matching that `exit-codes.ts` exists
|
|
311
|
+
// to prevent, and would make that sentence unrewordable.
|
|
312
|
+
const message = session.errorHint ?? 'agent is not ready';
|
|
313
|
+
return session.errorKind === 'invocation' ? fail(message) : refuse(message);
|
|
208
314
|
}
|
|
209
315
|
// A configured tool server that is not here means the turn cannot do what
|
|
210
316
|
// the operator set it up to do, and this command answers a host, not a
|
|
@@ -215,7 +321,10 @@ export const runStreamCommand = {
|
|
|
215
321
|
.map((f) => `tool server "${f.name}" is not available: ${f.reason}`)
|
|
216
322
|
.join('; ');
|
|
217
323
|
await session.close();
|
|
218
|
-
|
|
324
|
+
// The servers come from `namzu.config.json`, not from the invocation, so
|
|
325
|
+
// there is no argument the host can change to bring one up. `run`
|
|
326
|
+
// already exits 1 here.
|
|
327
|
+
return refuse(said);
|
|
219
328
|
}
|
|
220
329
|
// "Printed on every launch" has to reach a host UI too, or the one caller
|
|
221
330
|
// with no human watching is the one that never hears it. Its own event
|
|
@@ -251,6 +360,22 @@ export const runStreamCommand = {
|
|
|
251
360
|
// Persist the turn so a later `history --session <key>` (and the next
|
|
252
361
|
// turn's context) sees it. Best-effort — a store failure must not lose
|
|
253
362
|
// the reply the user already saw stream.
|
|
363
|
+
//
|
|
364
|
+
// Best-effort is about not FAILING, not about staying quiet. This used to
|
|
365
|
+
// swallow the error entirely, and it is the one failure here that makes a
|
|
366
|
+
// LATER command wrong: the stream ends `done`, the process exits 0, and a
|
|
367
|
+
// host has every reason to believe the turn is stored. Then
|
|
368
|
+
// `history --session` comes back missing a turn the user watched arrive,
|
|
369
|
+
// and the next turn's context silently lacks it — with nothing, anywhere,
|
|
370
|
+
// connecting that to a write that failed minutes earlier.
|
|
371
|
+
//
|
|
372
|
+
// So it is said, on the same channel and in the same shape as the config
|
|
373
|
+
// notices forty lines above, and for the reason written there: a host UI
|
|
374
|
+
// is the caller with no human watching, and its own event kind rather
|
|
375
|
+
// than an `error` because the run did succeed and a host treating this as
|
|
376
|
+
// a failure would be wrong. The consequence is named, not just the fault,
|
|
377
|
+
// because "could not persist" alone does not tell a host that its own
|
|
378
|
+
// later reads are now incomplete.
|
|
254
379
|
if (cli && conversationId) {
|
|
255
380
|
try {
|
|
256
381
|
const assistant = {
|
|
@@ -260,8 +385,11 @@ export const runStreamCommand = {
|
|
|
260
385
|
};
|
|
261
386
|
await appendMessages(cli, conversationId, [userMessage, assistant]);
|
|
262
387
|
}
|
|
263
|
-
catch {
|
|
264
|
-
|
|
388
|
+
catch (err) {
|
|
389
|
+
write({
|
|
390
|
+
kind: 'notice',
|
|
391
|
+
message: `this turn was not saved: ${err instanceof Error ? err.message : String(err)}. The reply above is complete, but history for this session will not include it and the next turn will not have it as context.`,
|
|
392
|
+
});
|
|
265
393
|
}
|
|
266
394
|
}
|
|
267
395
|
write({ kind: 'done' });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-stream.js","sourceRoot":"","sources":["../../src/commands/run-stream.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAgB,eAAe,EAAE,MAAM,YAAY,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EACN,c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I,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;IACrC,uFAAuF;IACvF,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAsB,qBAAqB,CAC1C,OAAO,GAAE,yBAA8B,GACrC,OAAO,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/doctor/checks/chain.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAMhE,OAAO,EAAE,KAAK,eAAe,EAAqB,MAAM,0CAA0C,CAAA;AAKlG,MAAM,WAAW,yBAAyB;IACzC,wEAAwE;IACxE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;IACrC,uFAAuF;IACvF,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAsB,qBAAqB,CAC1C,OAAO,GAAE,yBAA8B,GACrC,OAAO,CAAC,iBAAiB,CAAC,CAmK5B;AAED,eAAO,MAAM,kBAAkB,EAAE,WAIhC,CAAA"}
|
|
@@ -60,8 +60,18 @@ export async function describeProviderChain(options = {}) {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
if (read.status === 'missing') {
|
|
63
|
+
// `skipped`: this check LOOKED and there is no chain here to describe.
|
|
64
|
+
// Not `inconclusive`, which now means the check could not answer — the
|
|
65
|
+
// answer was reached, and it is "there is none".
|
|
66
|
+
//
|
|
67
|
+
// Not `warn` either, which in this file means namzu is usable but
|
|
68
|
+
// degraded. A machine with no preferences file and a key in the
|
|
69
|
+
// environment is an ordinary working namzu: `run` builds a default chain
|
|
70
|
+
// from what it detects, and whether a credential exists at all is
|
|
71
|
+
// `providers.credentials`' question, answered there and not restated
|
|
72
|
+
// here.
|
|
63
73
|
return {
|
|
64
|
-
status: '
|
|
74
|
+
status: 'skipped',
|
|
65
75
|
message: `no provider chain configured (${path} does not exist)`,
|
|
66
76
|
remediation: 'Run `namzu` and pick a provider; the choice is saved to that file.',
|
|
67
77
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../src/doctor/checks/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAIjC,OAAO,EACN,4BAA4B,EAC5B,iBAAiB,GACjB,MAAM,oDAAoD,CAAA;AAC3D,OAAO,EAAwB,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAClG,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAU5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAC1C,UAAqC,EAAE;IAEvC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,EAAE,CAAA;IACtC,MAAM,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,CAAA;IAElC,IAAI,IAAwC,CAAA;IAC5C,IAAI,CAAC;QACJ,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,CAAA;IAC7B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,OAAO;YACN,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,kBAAkB,IAAI,KAAK,GAAG,YAAY,KAAK,CAAC,CAAC,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,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC;CACjF,CAAA"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { DoctorCheck } from '@namzu/sdk';
|
|
2
2
|
/**
|
|
3
|
-
* Built-in provider probe is intentionally
|
|
3
|
+
* Built-in provider probe is intentionally `skipped` in v1.
|
|
4
|
+
*
|
|
5
|
+
* `skipped` rather than `inconclusive` for the reason spelled out on
|
|
6
|
+
* `vault.registered`: there is no discovery mechanism here to fail, so this is
|
|
7
|
+
* a permanent absence of a subject rather than a question that went unanswered,
|
|
8
|
+
* and only the latter is worth an exit code.
|
|
4
9
|
*
|
|
5
10
|
* Provider auto-discovery requires walking `ProviderRegistry`, which is
|
|
6
11
|
* a module-private map populated by side-effecting calls in consumer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../src/doctor/checks/providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAqB,MAAM,YAAY,CAAA;AAEhE
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../src/doctor/checks/providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAqB,MAAM,YAAY,CAAA;AAEhE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,wBAAwB,EAAE,WAQtC,CAAA"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Built-in provider probe is intentionally
|
|
2
|
+
* Built-in provider probe is intentionally `skipped` in v1.
|
|
3
|
+
*
|
|
4
|
+
* `skipped` rather than `inconclusive` for the reason spelled out on
|
|
5
|
+
* `vault.registered`: there is no discovery mechanism here to fail, so this is
|
|
6
|
+
* a permanent absence of a subject rather than a question that went unanswered,
|
|
7
|
+
* and only the latter is worth an exit code.
|
|
3
8
|
*
|
|
4
9
|
* Provider auto-discovery requires walking `ProviderRegistry`, which is
|
|
5
10
|
* a module-private map populated by side-effecting calls in consumer
|
|
@@ -18,7 +23,7 @@ export const providersRegisteredCheck = {
|
|
|
18
23
|
id: 'providers.registered',
|
|
19
24
|
category: 'providers',
|
|
20
25
|
run: async () => ({
|
|
21
|
-
status: '
|
|
26
|
+
status: 'skipped',
|
|
22
27
|
message: 'no provider auto-discovery in v1; register a provider check via registerDoctorCheck for your specific provider configuration (call provider.doctorCheck?() per registered provider)',
|
|
23
28
|
}),
|
|
24
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/doctor/checks/providers.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/doctor/checks/providers.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAgB;IACpD,EAAE,EAAE,sBAAsB;IAC1B,QAAQ,EAAE,WAAW;IACrB,GAAG,EAAE,KAAK,IAAgC,EAAE,CAAC,CAAC;QAC7C,MAAM,EAAE,SAAS;QACjB,OAAO,EACN,qLAAqL;KACtL,CAAC;CACF,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DoctorCheck } from '@namzu/sdk';
|
|
1
|
+
import type { DoctorCheck, DoctorCheckResult } from '@namzu/sdk';
|
|
2
2
|
/**
|
|
3
3
|
* Telemetry presence probe.
|
|
4
4
|
*
|
|
@@ -7,6 +7,40 @@ import type { DoctorCheck } from '@namzu/sdk';
|
|
|
7
7
|
* (not a failure). Endpoint reachability + dry-run span export are
|
|
8
8
|
* deferred to a follow-up check that the consumer can register
|
|
9
9
|
* themselves once their telemetry config is known.
|
|
10
|
+
*
|
|
11
|
+
* ## Resolving and loading are asked separately, on purpose
|
|
12
|
+
*
|
|
13
|
+
* This used to be one `import()` in a `try`, and every rejection was reported
|
|
14
|
+
* as `not installed (optional package)`. A package that IS installed and throws
|
|
15
|
+
* on load — a broken build, a native binding that will not open, a dependency
|
|
16
|
+
* of its own that cannot resolve — was reported as absent. One word, two facts,
|
|
17
|
+
* and the reader is told the reassuring one.
|
|
18
|
+
*
|
|
19
|
+
* Splitting the question is what makes each answer honest, and a code check on
|
|
20
|
+
* the thrown error is not enough to do it: a transitive dependency that cannot
|
|
21
|
+
* resolve raises `ERR_MODULE_NOT_FOUND` exactly as a missing `@namzu/telemetry`
|
|
22
|
+
* does, so matching on the code would report a broken installation as no
|
|
23
|
+
* installation. `resolve` asks only about THIS specifier, so it separates the
|
|
24
|
+
* two by construction rather than by reading a message that may be reworded.
|
|
25
|
+
*
|
|
26
|
+
* - cannot resolve → the package is not here → `skipped`
|
|
27
|
+
* - resolves, import throws → it is here and unusable → `fail`
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Whether `specifier` is installed, and whether it loads.
|
|
31
|
+
*
|
|
32
|
+
* Exported separately from the `DoctorCheck` so all three outcomes can be
|
|
33
|
+
* driven with a specifier the test controls — there is no way to uninstall or
|
|
34
|
+
* break the real optional package from inside a test run. The check itself is
|
|
35
|
+
* still exercised through `telemetryInstalledCheck.run`, because a helper
|
|
36
|
+
* proven in isolation says nothing about whether the check reaches it. Same
|
|
37
|
+
* arrangement, and the same reason, as `describeProviderChain`.
|
|
38
|
+
*
|
|
39
|
+
* The import goes through the RESOLVED path rather than the specifier, so one
|
|
40
|
+
* code path serves a package name and a file, which is what lets the
|
|
41
|
+
* present-but-broken case be reached at all. Resolution has already applied the
|
|
42
|
+
* package's export map by that point.
|
|
10
43
|
*/
|
|
44
|
+
export declare function describeInstalledPackage(specifier: string): Promise<DoctorCheckResult>;
|
|
11
45
|
export declare const telemetryInstalledCheck: DoctorCheck;
|
|
12
46
|
//# sourceMappingURL=telemetry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../src/doctor/checks/telemetry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../src/doctor/checks/telemetry.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAIhE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA0B5F;AAED,eAAO,MAAM,uBAAuB,EAAE,WAIrC,CAAA"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
import { pathToFileURL } from 'node:url';
|
|
3
|
+
const TELEMETRY = '@namzu/telemetry';
|
|
1
4
|
/**
|
|
2
5
|
* Telemetry presence probe.
|
|
3
6
|
*
|
|
@@ -6,22 +9,70 @@
|
|
|
6
9
|
* (not a failure). Endpoint reachability + dry-run span export are
|
|
7
10
|
* deferred to a follow-up check that the consumer can register
|
|
8
11
|
* themselves once their telemetry config is known.
|
|
12
|
+
*
|
|
13
|
+
* ## Resolving and loading are asked separately, on purpose
|
|
14
|
+
*
|
|
15
|
+
* This used to be one `import()` in a `try`, and every rejection was reported
|
|
16
|
+
* as `not installed (optional package)`. A package that IS installed and throws
|
|
17
|
+
* on load — a broken build, a native binding that will not open, a dependency
|
|
18
|
+
* of its own that cannot resolve — was reported as absent. One word, two facts,
|
|
19
|
+
* and the reader is told the reassuring one.
|
|
20
|
+
*
|
|
21
|
+
* Splitting the question is what makes each answer honest, and a code check on
|
|
22
|
+
* the thrown error is not enough to do it: a transitive dependency that cannot
|
|
23
|
+
* resolve raises `ERR_MODULE_NOT_FOUND` exactly as a missing `@namzu/telemetry`
|
|
24
|
+
* does, so matching on the code would report a broken installation as no
|
|
25
|
+
* installation. `resolve` asks only about THIS specifier, so it separates the
|
|
26
|
+
* two by construction rather than by reading a message that may be reworded.
|
|
27
|
+
*
|
|
28
|
+
* - cannot resolve → the package is not here → `skipped`
|
|
29
|
+
* - resolves, import throws → it is here and unusable → `fail`
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Whether `specifier` is installed, and whether it loads.
|
|
33
|
+
*
|
|
34
|
+
* Exported separately from the `DoctorCheck` so all three outcomes can be
|
|
35
|
+
* driven with a specifier the test controls — there is no way to uninstall or
|
|
36
|
+
* break the real optional package from inside a test run. The check itself is
|
|
37
|
+
* still exercised through `telemetryInstalledCheck.run`, because a helper
|
|
38
|
+
* proven in isolation says nothing about whether the check reaches it. Same
|
|
39
|
+
* arrangement, and the same reason, as `describeProviderChain`.
|
|
40
|
+
*
|
|
41
|
+
* The import goes through the RESOLVED path rather than the specifier, so one
|
|
42
|
+
* code path serves a package name and a file, which is what lets the
|
|
43
|
+
* present-but-broken case be reached at all. Resolution has already applied the
|
|
44
|
+
* package's export map by that point.
|
|
9
45
|
*/
|
|
46
|
+
export async function describeInstalledPackage(specifier) {
|
|
47
|
+
const require = createRequire(import.meta.url);
|
|
48
|
+
let resolved;
|
|
49
|
+
try {
|
|
50
|
+
resolved = require.resolve(specifier);
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
return {
|
|
54
|
+
status: 'skipped',
|
|
55
|
+
message: `${specifier} not installed (optional package)`,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
try {
|
|
59
|
+
await import(pathToFileURL(resolved).href);
|
|
60
|
+
return { status: 'pass', message: `${specifier} is installed` };
|
|
61
|
+
}
|
|
62
|
+
catch (err) {
|
|
63
|
+
return {
|
|
64
|
+
status: 'fail',
|
|
65
|
+
// The reason is the whole value of separating these: "installed but
|
|
66
|
+
// will not load" sends the reader somewhere, and "not installed" would
|
|
67
|
+
// have sent them to install what is already there.
|
|
68
|
+
message: `${specifier} is installed but failed to load: ${err instanceof Error ? err.message : String(err)}`,
|
|
69
|
+
remediation: `Reinstall ${specifier}, or remove it if you are not using telemetry — it is optional and namzu runs without it.`,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
10
73
|
export const telemetryInstalledCheck = {
|
|
11
74
|
id: 'telemetry.installed',
|
|
12
75
|
category: 'telemetry',
|
|
13
|
-
run:
|
|
14
|
-
const specifier = '@namzu/telemetry';
|
|
15
|
-
try {
|
|
16
|
-
await import(specifier);
|
|
17
|
-
return { status: 'pass', message: '@namzu/telemetry is installed' };
|
|
18
|
-
}
|
|
19
|
-
catch {
|
|
20
|
-
return {
|
|
21
|
-
status: 'inconclusive',
|
|
22
|
-
message: '@namzu/telemetry not installed (optional package)',
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
},
|
|
76
|
+
run: () => describeInstalledPackage(TELEMETRY),
|
|
26
77
|
};
|
|
27
78
|
//# sourceMappingURL=telemetry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../src/doctor/checks/telemetry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../src/doctor/checks/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAIxC,MAAM,SAAS,GAAG,kBAAkB,CAAA;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,SAAiB;IAC/D,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC9C,IAAI,QAAgB,CAAA;IACpB,IAAI,CAAC;QACJ,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IACtC,CAAC;IAAC,MAAM,CAAC;QACR,OAAO;YACN,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,GAAG,SAAS,mCAAmC;SACxD,CAAA;IACF,CAAC;IACD,IAAI,CAAC;QACJ,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAA;QAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,eAAe,EAAE,CAAA;IAChE,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,OAAO;YACN,MAAM,EAAE,MAAM;YACd,oEAAoE;YACpE,uEAAuE;YACvE,mDAAmD;YACnD,OAAO,EAAE,GAAG,SAAS,qCACpB,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAChD,EAAE;YACF,WAAW,EAAE,aAAa,SAAS,2FAA2F;SAC9H,CAAA;IACF,CAAC;AACF,CAAC;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAgB;IACnD,EAAE,EAAE,qBAAqB;IACzB,QAAQ,EAAE,WAAW;IACrB,GAAG,EAAE,GAA+B,EAAE,CAAC,wBAAwB,CAAC,SAAS,CAAC;CAC1E,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DoctorCheck } from '@namzu/sdk';
|
|
2
2
|
/**
|
|
3
|
-
* Built-in vault probe is intentionally
|
|
3
|
+
* Built-in vault probe is intentionally `skipped`.
|
|
4
4
|
*
|
|
5
5
|
* `CredentialVault` is an interface, not a globally-discoverable
|
|
6
6
|
* registry — consumers instantiate their own (`InMemoryCredentialVault`,
|
|
@@ -8,6 +8,15 @@ import type { DoctorCheck } from '@namzu/sdk';
|
|
|
8
8
|
* vaults it doesn't know about. To get a real vault healthcheck, the
|
|
9
9
|
* consumer registers a custom check via `registerDoctorCheck` that
|
|
10
10
|
* exercises their specific vault wiring.
|
|
11
|
+
*
|
|
12
|
+
* `skipped`, not `inconclusive`, and the difference is the whole point of the
|
|
13
|
+
* split: `inconclusive` means a check tried and could not answer, which is a
|
|
14
|
+
* gap in the report and now carries a non-zero exit code. This check has no
|
|
15
|
+
* subject to answer about — there is no discovery mechanism to fail — and that
|
|
16
|
+
* is true on every machine, permanently, by design. Reporting a permanent
|
|
17
|
+
* design decision as an unanswered question would make `namzu doctor` non-zero
|
|
18
|
+
* on every healthy machine, and a diagnostic that always complains is one
|
|
19
|
+
* nobody reads.
|
|
11
20
|
*/
|
|
12
21
|
export declare const vaultRegisteredCheck: DoctorCheck;
|
|
13
22
|
//# sourceMappingURL=vault.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["../../../src/doctor/checks/vault.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAqB,MAAM,YAAY,CAAA;AAEhE
|
|
1
|
+
{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["../../../src/doctor/checks/vault.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAqB,MAAM,YAAY,CAAA;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAQlC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Built-in vault probe is intentionally
|
|
2
|
+
* Built-in vault probe is intentionally `skipped`.
|
|
3
3
|
*
|
|
4
4
|
* `CredentialVault` is an interface, not a globally-discoverable
|
|
5
5
|
* registry — consumers instantiate their own (`InMemoryCredentialVault`,
|
|
@@ -7,12 +7,21 @@
|
|
|
7
7
|
* vaults it doesn't know about. To get a real vault healthcheck, the
|
|
8
8
|
* consumer registers a custom check via `registerDoctorCheck` that
|
|
9
9
|
* exercises their specific vault wiring.
|
|
10
|
+
*
|
|
11
|
+
* `skipped`, not `inconclusive`, and the difference is the whole point of the
|
|
12
|
+
* split: `inconclusive` means a check tried and could not answer, which is a
|
|
13
|
+
* gap in the report and now carries a non-zero exit code. This check has no
|
|
14
|
+
* subject to answer about — there is no discovery mechanism to fail — and that
|
|
15
|
+
* is true on every machine, permanently, by design. Reporting a permanent
|
|
16
|
+
* design decision as an unanswered question would make `namzu doctor` non-zero
|
|
17
|
+
* on every healthy machine, and a diagnostic that always complains is one
|
|
18
|
+
* nobody reads.
|
|
10
19
|
*/
|
|
11
20
|
export const vaultRegisteredCheck = {
|
|
12
21
|
id: 'vault.registered',
|
|
13
22
|
category: 'vault',
|
|
14
23
|
run: async () => ({
|
|
15
|
-
status: '
|
|
24
|
+
status: 'skipped',
|
|
16
25
|
message: 'no vault auto-discovery in v1; register a vault check via registerDoctorCheck for your specific vault setup',
|
|
17
26
|
}),
|
|
18
27
|
};
|