@usenaive-sdk/cli 0.15.1 → 1.0.1
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 +43 -402
- package/dist/index.js +51796 -502
- package/package.json +22 -18
- package/dist/client.d.ts +0 -108
- package/dist/client.js +0 -458
- package/dist/client.js.map +0 -1
- package/dist/commands/account-kits.d.ts +0 -2
- package/dist/commands/account-kits.js +0 -71
- package/dist/commands/account-kits.js.map +0 -1
- package/dist/commands/aeo.d.ts +0 -2
- package/dist/commands/aeo.js +0 -451
- package/dist/commands/aeo.js.map +0 -1
- package/dist/commands/agent-profiles.d.ts +0 -11
- package/dist/commands/agent-profiles.js +0 -120
- package/dist/commands/agent-profiles.js.map +0 -1
- package/dist/commands/agents.d.ts +0 -2
- package/dist/commands/agents.js +0 -916
- package/dist/commands/agents.js.map +0 -1
- package/dist/commands/app-data.d.ts +0 -2
- package/dist/commands/app-data.js +0 -445
- package/dist/commands/app-data.js.map +0 -1
- package/dist/commands/approvals.d.ts +0 -2
- package/dist/commands/approvals.js +0 -242
- package/dist/commands/approvals.js.map +0 -1
- package/dist/commands/apps.d.ts +0 -9
- package/dist/commands/apps.js +0 -844
- package/dist/commands/apps.js.map +0 -1
- package/dist/commands/audio.d.ts +0 -9
- package/dist/commands/audio.js +0 -391
- package/dist/commands/audio.js.map +0 -1
- package/dist/commands/auth.d.ts +0 -31
- package/dist/commands/auth.js +0 -428
- package/dist/commands/auth.js.map +0 -1
- package/dist/commands/billing.d.ts +0 -2
- package/dist/commands/billing.js +0 -250
- package/dist/commands/billing.js.map +0 -1
- package/dist/commands/brain.d.ts +0 -2
- package/dist/commands/brain.js +0 -1300
- package/dist/commands/brain.js.map +0 -1
- package/dist/commands/browser.d.ts +0 -2
- package/dist/commands/browser.js +0 -378
- package/dist/commands/browser.js.map +0 -1
- package/dist/commands/business.d.ts +0 -2
- package/dist/commands/business.js +0 -566
- package/dist/commands/business.js.map +0 -1
- package/dist/commands/cards.d.ts +0 -2
- package/dist/commands/cards.js +0 -419
- package/dist/commands/cards.js.map +0 -1
- package/dist/commands/ceo.d.ts +0 -2
- package/dist/commands/ceo.js +0 -369
- package/dist/commands/ceo.js.map +0 -1
- package/dist/commands/clone.d.ts +0 -2
- package/dist/commands/clone.js +0 -203
- package/dist/commands/clone.js.map +0 -1
- package/dist/commands/companies.d.ts +0 -10
- package/dist/commands/companies.js +0 -283
- package/dist/commands/companies.js.map +0 -1
- package/dist/commands/company-data.d.ts +0 -2
- package/dist/commands/company-data.js +0 -168
- package/dist/commands/company-data.js.map +0 -1
- package/dist/commands/compute.d.ts +0 -2
- package/dist/commands/compute.js +0 -498
- package/dist/commands/compute.js.map +0 -1
- package/dist/commands/config.d.ts +0 -2
- package/dist/commands/config.js +0 -36
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/connections.d.ts +0 -8
- package/dist/commands/connections.js +0 -137
- package/dist/commands/connections.js.map +0 -1
- package/dist/commands/cron-jobs.d.ts +0 -2
- package/dist/commands/cron-jobs.js +0 -245
- package/dist/commands/cron-jobs.js.map +0 -1
- package/dist/commands/domains.d.ts +0 -2
- package/dist/commands/domains.js +0 -474
- package/dist/commands/domains.js.map +0 -1
- package/dist/commands/ecommerce.d.ts +0 -2
- package/dist/commands/ecommerce.js +0 -277
- package/dist/commands/ecommerce.js.map +0 -1
- package/dist/commands/email.d.ts +0 -2
- package/dist/commands/email.js +0 -336
- package/dist/commands/email.js.map +0 -1
- package/dist/commands/employees.d.ts +0 -2
- package/dist/commands/employees.js +0 -190
- package/dist/commands/employees.js.map +0 -1
- package/dist/commands/env.d.ts +0 -7
- package/dist/commands/env.js +0 -112
- package/dist/commands/env.js.map +0 -1
- package/dist/commands/formation.d.ts +0 -2
- package/dist/commands/formation.js +0 -273
- package/dist/commands/formation.js.map +0 -1
- package/dist/commands/identity.d.ts +0 -2
- package/dist/commands/identity.js +0 -110
- package/dist/commands/identity.js.map +0 -1
- package/dist/commands/images.d.ts +0 -2
- package/dist/commands/images.js +0 -371
- package/dist/commands/images.js.map +0 -1
- package/dist/commands/init.d.ts +0 -5
- package/dist/commands/init.js +0 -43
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/jobs.d.ts +0 -2
- package/dist/commands/jobs.js +0 -144
- package/dist/commands/jobs.js.map +0 -1
- package/dist/commands/keys.d.ts +0 -2
- package/dist/commands/keys.js +0 -156
- package/dist/commands/keys.js.map +0 -1
- package/dist/commands/legacy-auth.d.ts +0 -27
- package/dist/commands/legacy-auth.js +0 -64
- package/dist/commands/legacy-auth.js.map +0 -1
- package/dist/commands/llm.d.ts +0 -2
- package/dist/commands/llm.js +0 -125
- package/dist/commands/llm.js.map +0 -1
- package/dist/commands/login.d.ts +0 -2
- package/dist/commands/login.js +0 -65
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/logout.d.ts +0 -7
- package/dist/commands/logout.js +0 -55
- package/dist/commands/logout.js.map +0 -1
- package/dist/commands/logs.d.ts +0 -2
- package/dist/commands/logs.js +0 -42
- package/dist/commands/logs.js.map +0 -1
- package/dist/commands/loops.d.ts +0 -2
- package/dist/commands/loops.js +0 -260
- package/dist/commands/loops.js.map +0 -1
- package/dist/commands/media.d.ts +0 -2
- package/dist/commands/media.js +0 -183
- package/dist/commands/media.js.map +0 -1
- package/dist/commands/memory.d.ts +0 -2
- package/dist/commands/memory.js +0 -151
- package/dist/commands/memory.js.map +0 -1
- package/dist/commands/mobile.d.ts +0 -4
- package/dist/commands/mobile.js +0 -382
- package/dist/commands/mobile.js.map +0 -1
- package/dist/commands/module.d.ts +0 -8
- package/dist/commands/module.js +0 -48
- package/dist/commands/module.js.map +0 -1
- package/dist/commands/objectives.d.ts +0 -2
- package/dist/commands/objectives.js +0 -243
- package/dist/commands/objectives.js.map +0 -1
- package/dist/commands/payments.d.ts +0 -2
- package/dist/commands/payments.js +0 -131
- package/dist/commands/payments.js.map +0 -1
- package/dist/commands/people.d.ts +0 -2
- package/dist/commands/people.js +0 -197
- package/dist/commands/people.js.map +0 -1
- package/dist/commands/phone.d.ts +0 -2
- package/dist/commands/phone.js +0 -289
- package/dist/commands/phone.js.map +0 -1
- package/dist/commands/projects.d.ts +0 -13
- package/dist/commands/projects.js +0 -220
- package/dist/commands/projects.js.map +0 -1
- package/dist/commands/queue.d.ts +0 -2
- package/dist/commands/queue.js +0 -121
- package/dist/commands/queue.js.map +0 -1
- package/dist/commands/register.d.ts +0 -2
- package/dist/commands/register.js +0 -88
- package/dist/commands/register.js.map +0 -1
- package/dist/commands/report.d.ts +0 -17
- package/dist/commands/report.js +0 -109
- package/dist/commands/report.js.map +0 -1
- package/dist/commands/sandbox.d.ts +0 -2
- package/dist/commands/sandbox.js +0 -558
- package/dist/commands/sandbox.js.map +0 -1
- package/dist/commands/search.d.ts +0 -2
- package/dist/commands/search.js +0 -223
- package/dist/commands/search.js.map +0 -1
- package/dist/commands/seo.d.ts +0 -2
- package/dist/commands/seo.js +0 -528
- package/dist/commands/seo.js.map +0 -1
- package/dist/commands/sessions.d.ts +0 -6
- package/dist/commands/sessions.js +0 -109
- package/dist/commands/sessions.js.map +0 -1
- package/dist/commands/social-data.d.ts +0 -2
- package/dist/commands/social-data.js +0 -245
- package/dist/commands/social-data.js.map +0 -1
- package/dist/commands/social.d.ts +0 -2
- package/dist/commands/social.js +0 -407
- package/dist/commands/social.js.map +0 -1
- package/dist/commands/status.d.ts +0 -2
- package/dist/commands/status.js +0 -79
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/support.d.ts +0 -2
- package/dist/commands/support.js +0 -134
- package/dist/commands/support.js.map +0 -1
- package/dist/commands/tasks.d.ts +0 -2
- package/dist/commands/tasks.js +0 -409
- package/dist/commands/tasks.js.map +0 -1
- package/dist/commands/teams.d.ts +0 -69
- package/dist/commands/teams.js +0 -503
- package/dist/commands/teams.js.map +0 -1
- package/dist/commands/trading.d.ts +0 -2
- package/dist/commands/trading.js +0 -333
- package/dist/commands/trading.js.map +0 -1
- package/dist/commands/up.d.ts +0 -551
- package/dist/commands/up.js +0 -1149
- package/dist/commands/up.js.map +0 -1
- package/dist/commands/usage.d.ts +0 -2
- package/dist/commands/usage.js +0 -73
- package/dist/commands/usage.js.map +0 -1
- package/dist/commands/use.d.ts +0 -12
- package/dist/commands/use.js +0 -96
- package/dist/commands/use.js.map +0 -1
- package/dist/commands/users.d.ts +0 -10
- package/dist/commands/users.js +0 -82
- package/dist/commands/users.js.map +0 -1
- package/dist/commands/vault.d.ts +0 -2
- package/dist/commands/vault.js +0 -101
- package/dist/commands/vault.js.map +0 -1
- package/dist/commands/verification.d.ts +0 -2
- package/dist/commands/verification.js +0 -152
- package/dist/commands/verification.js.map +0 -1
- package/dist/commands/verify-email.d.ts +0 -19
- package/dist/commands/verify-email.js +0 -130
- package/dist/commands/verify-email.js.map +0 -1
- package/dist/commands/video.d.ts +0 -2
- package/dist/commands/video.js +0 -417
- package/dist/commands/video.js.map +0 -1
- package/dist/commands/voice.d.ts +0 -2
- package/dist/commands/voice.js +0 -516
- package/dist/commands/voice.js.map +0 -1
- package/dist/commands/wallet.d.ts +0 -2
- package/dist/commands/wallet.js +0 -244
- package/dist/commands/wallet.js.map +0 -1
- package/dist/commands/webhooks.d.ts +0 -13
- package/dist/commands/webhooks.js +0 -119
- package/dist/commands/webhooks.js.map +0 -1
- package/dist/commands/whoami.d.ts +0 -2
- package/dist/commands/whoami.js +0 -53
- package/dist/commands/whoami.js.map +0 -1
- package/dist/config.d.ts +0 -42
- package/dist/config.js +0 -83
- package/dist/config.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js.map +0 -1
- package/dist/lib/brain-select.d.ts +0 -193
- package/dist/lib/brain-select.js +0 -403
- package/dist/lib/brain-select.js.map +0 -1
- package/dist/lib/cli-validation.d.ts +0 -12
- package/dist/lib/cli-validation.js +0 -46
- package/dist/lib/cli-validation.js.map +0 -1
- package/dist/lib/config-errors.d.ts +0 -4
- package/dist/lib/config-errors.js +0 -13
- package/dist/lib/config-errors.js.map +0 -1
- package/dist/lib/deprecation.d.ts +0 -158
- package/dist/lib/deprecation.js +0 -140
- package/dist/lib/deprecation.js.map +0 -1
- package/dist/lib/duration.d.ts +0 -8
- package/dist/lib/duration.js +0 -11
- package/dist/lib/duration.js.map +0 -1
- package/dist/lib/http-response.d.ts +0 -11
- package/dist/lib/http-response.js +0 -96
- package/dist/lib/http-response.js.map +0 -1
- package/dist/lib/llm-paywall.d.ts +0 -82
- package/dist/lib/llm-paywall.js +0 -231
- package/dist/lib/llm-paywall.js.map +0 -1
- package/dist/lib/pricing.d.ts +0 -132
- package/dist/lib/pricing.js +0 -148
- package/dist/lib/pricing.js.map +0 -1
- package/dist/lib/starter-config.d.ts +0 -13
- package/dist/lib/starter-config.js +0 -71
- package/dist/lib/starter-config.js.map +0 -1
- package/dist/lib/stream-frames.d.ts +0 -114
- package/dist/lib/stream-frames.js +0 -169
- package/dist/lib/stream-frames.js.map +0 -1
- package/dist/lib/teams-catalog.d.ts +0 -141
- package/dist/lib/teams-catalog.js +0 -841
- package/dist/lib/teams-catalog.js.map +0 -1
- package/dist/lib/unknown-command.d.ts +0 -71
- package/dist/lib/unknown-command.js +0 -132
- package/dist/lib/unknown-command.js.map +0 -1
- package/dist/lib/version-check.d.ts +0 -26
- package/dist/lib/version-check.js +0 -21
- package/dist/lib/version-check.js.map +0 -1
- package/dist/output.d.ts +0 -246
- package/dist/output.js +0 -539
- package/dist/output.js.map +0 -1
- package/dist/prompt.d.ts +0 -17
- package/dist/prompt.js +0 -70
- package/dist/prompt.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.js +0 -14
- package/dist/version.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"teams-catalog.js","sourceRoot":"","sources":["../../src/lib/teams-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAuEH,gFAAgF;AAChF,iFAAiF;AACjF,iFAAiF;AACjF,gFAAgF;AAEhF,M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Q,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { Command } from "commander";
|
|
2
|
-
import type { NextStep } from "../output.js";
|
|
3
|
-
/** Structured error emitted when commander sees a command it doesn't recognize. */
|
|
4
|
-
export interface UnknownCommandError {
|
|
5
|
-
success: false;
|
|
6
|
-
action: "unknown_command";
|
|
7
|
-
error: {
|
|
8
|
-
code: "cli_outdated" | "unknown_subcommand";
|
|
9
|
-
message: string;
|
|
10
|
-
};
|
|
11
|
-
recovery_steps: NextStep[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Build the agent-native error for an unknown command. Pure/testable: an old
|
|
15
|
-
* CLI hitting a command that only exists in a newer release (e.g. `report` on
|
|
16
|
-
* 0.11.0) gets a `cli_outdated` JSON object instead of commander's raw stderr.
|
|
17
|
-
*/
|
|
18
|
-
export declare function buildUnknownCommandError(command: string, currentVersion: string): UnknownCommandError;
|
|
19
|
-
/**
|
|
20
|
-
* Build the agent-native error for an unknown SUBcommand of a known group
|
|
21
|
-
* (e.g. `naive trading market-data`). Unlike a bare unknown top-level command,
|
|
22
|
-
* we know the valid siblings, so we list them — the most useful recovery for a
|
|
23
|
-
* mistyped/renamed subcommand. See findUnknownSubcommand for why this is needed
|
|
24
|
-
* (N10): commander's `--help` option otherwise prints the parent's help and exits
|
|
25
|
-
* 0, masking the mistake.
|
|
26
|
-
*/
|
|
27
|
-
export declare function buildUnknownSubcommandError(group: string, unknown: string, validSubs: string[], currentVersion: string): UnknownCommandError;
|
|
28
|
-
/**
|
|
29
|
-
* Pre-scan raw argv against the built command tree and return the first operand
|
|
30
|
-
* that lands on a command GROUP but is not one of its subcommands — i.e. a
|
|
31
|
-
* mistyped/unknown subcommand.
|
|
32
|
-
*
|
|
33
|
-
* WHY (N10): commander already errors on an unknown subcommand (exit 1) — EXCEPT
|
|
34
|
-
* when `--help`/`-h` is present, where its help option fires on the parent and
|
|
35
|
-
* exits 0, silently printing the wrong (parent) help. Running this before
|
|
36
|
-
* `program.parse()` lets us surface a real "unknown command" error consistently,
|
|
37
|
-
* with or without `--help`.
|
|
38
|
-
*
|
|
39
|
-
* A "group" is a NON-ROOT command that has subcommands and declares no positional
|
|
40
|
-
* args of its own (trading, images, email, …). Leaf commands that take a positional
|
|
41
|
-
* (`images generate <prompt>`) are left to commander — the first operand there is
|
|
42
|
-
* legitimate input, not a subcommand.
|
|
43
|
-
*
|
|
44
|
-
* 🔴 A VALUE-TAKING OPTION'S VALUE IS NOT A SUBCOMMAND (NV-064). This walk used
|
|
45
|
-
* to skip the token starting with `-` and then read the NEXT token as a
|
|
46
|
-
* subcommand name. The docstring claimed that was safe — "the only program-level
|
|
47
|
-
* options are booleans" and "leaf-command option values never reach the
|
|
48
|
-
* group-flagging branch" — and it is false for a command that is a group
|
|
49
|
-
* (`commands.length > 0`), declares its own `<value>` options, and registers no
|
|
50
|
-
* positional. `jobs` is exactly that shape, so on published CLI 0.13.0:
|
|
51
|
-
*
|
|
52
|
-
* naive jobs --json -> the listing
|
|
53
|
-
* naive jobs --limit 5 --json -> unknown_subcommand '5'
|
|
54
|
-
* naive jobs --status completed --json -> unknown_subcommand 'completed'
|
|
55
|
-
*
|
|
56
|
-
* Both broken forms are what `commands/jobs.ts` help text documents as the
|
|
57
|
-
* primary usage, and the failure happens before `program.parse()` — no API key,
|
|
58
|
-
* no network. `brain` has the same shape and would acquire the bug on the day it
|
|
59
|
-
* ships. So the walk now consumes an option's value, and stops at `--`.
|
|
60
|
-
*
|
|
61
|
-
* The ROOT program is deliberately excluded: an unknown TOP-LEVEL command
|
|
62
|
-
* (`naive bogus`) is handled by commander's `command:*` listener as a
|
|
63
|
-
* `cli_outdated` error (it may exist in a newer CLI) — a different, and more apt,
|
|
64
|
-
* message than "unknown subcommand". Only unrecognized children of a real group
|
|
65
|
-
* are our concern here.
|
|
66
|
-
*/
|
|
67
|
-
export declare function findUnknownSubcommand(program: Command, argv: string[]): {
|
|
68
|
-
group: string;
|
|
69
|
-
unknown: string;
|
|
70
|
-
validSubs: string[];
|
|
71
|
-
} | null;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Build the agent-native error for an unknown command. Pure/testable: an old
|
|
3
|
-
* CLI hitting a command that only exists in a newer release (e.g. `report` on
|
|
4
|
-
* 0.11.0) gets a `cli_outdated` JSON object instead of commander's raw stderr.
|
|
5
|
-
*/
|
|
6
|
-
export function buildUnknownCommandError(command, currentVersion) {
|
|
7
|
-
return {
|
|
8
|
-
success: false,
|
|
9
|
-
action: "unknown_command",
|
|
10
|
-
error: {
|
|
11
|
-
code: "cli_outdated",
|
|
12
|
-
message: `Unknown command '${command}'. Your naive CLI is v${currentVersion}; this command may exist in a newer version.`,
|
|
13
|
-
},
|
|
14
|
-
recovery_steps: [
|
|
15
|
-
{ command: "npm i -g @usenaive-sdk/cli@latest", description: "Update to the latest naive CLI" },
|
|
16
|
-
],
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Build the agent-native error for an unknown SUBcommand of a known group
|
|
21
|
-
* (e.g. `naive trading market-data`). Unlike a bare unknown top-level command,
|
|
22
|
-
* we know the valid siblings, so we list them — the most useful recovery for a
|
|
23
|
-
* mistyped/renamed subcommand. See findUnknownSubcommand for why this is needed
|
|
24
|
-
* (N10): commander's `--help` option otherwise prints the parent's help and exits
|
|
25
|
-
* 0, masking the mistake.
|
|
26
|
-
*/
|
|
27
|
-
export function buildUnknownSubcommandError(group, unknown, validSubs, currentVersion) {
|
|
28
|
-
return {
|
|
29
|
-
success: false,
|
|
30
|
-
action: "unknown_command",
|
|
31
|
-
error: {
|
|
32
|
-
code: "unknown_subcommand",
|
|
33
|
-
message: `Unknown subcommand '${unknown}' for 'naive ${group}'. ` +
|
|
34
|
-
`Valid subcommands: ${validSubs.join(", ")}. ` +
|
|
35
|
-
`(CLI v${currentVersion}; a newer subcommand may exist in a later version.)`,
|
|
36
|
-
},
|
|
37
|
-
recovery_steps: [
|
|
38
|
-
{ command: `naive ${group} --help`, description: `List all '${group}' subcommands and their flags` },
|
|
39
|
-
...(validSubs.length > 0
|
|
40
|
-
? [{ command: `naive ${group} ${validSubs[0]}`, description: "Run a valid subcommand" }]
|
|
41
|
-
: []),
|
|
42
|
-
{ command: "npm i -g @usenaive-sdk/cli@latest", description: "Update the CLI if the subcommand should exist" },
|
|
43
|
-
],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Does `tok` name an option that consumes the NEXT argv token?
|
|
48
|
-
*
|
|
49
|
-
* Asked of the command being walked and of the root program, because commander
|
|
50
|
-
* resolves a flag against both. `--opt=value` carries its own value, so it never
|
|
51
|
-
* consumes the next token.
|
|
52
|
-
*/
|
|
53
|
-
function consumesNextToken(cmd, program, tok) {
|
|
54
|
-
if (tok.includes("="))
|
|
55
|
-
return false;
|
|
56
|
-
for (const source of cmd === program ? [program] : [cmd, program]) {
|
|
57
|
-
for (const option of source.options) {
|
|
58
|
-
if (option.short === tok || option.long === tok)
|
|
59
|
-
return option.required || option.optional;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Pre-scan raw argv against the built command tree and return the first operand
|
|
66
|
-
* that lands on a command GROUP but is not one of its subcommands — i.e. a
|
|
67
|
-
* mistyped/unknown subcommand.
|
|
68
|
-
*
|
|
69
|
-
* WHY (N10): commander already errors on an unknown subcommand (exit 1) — EXCEPT
|
|
70
|
-
* when `--help`/`-h` is present, where its help option fires on the parent and
|
|
71
|
-
* exits 0, silently printing the wrong (parent) help. Running this before
|
|
72
|
-
* `program.parse()` lets us surface a real "unknown command" error consistently,
|
|
73
|
-
* with or without `--help`.
|
|
74
|
-
*
|
|
75
|
-
* A "group" is a NON-ROOT command that has subcommands and declares no positional
|
|
76
|
-
* args of its own (trading, images, email, …). Leaf commands that take a positional
|
|
77
|
-
* (`images generate <prompt>`) are left to commander — the first operand there is
|
|
78
|
-
* legitimate input, not a subcommand.
|
|
79
|
-
*
|
|
80
|
-
* 🔴 A VALUE-TAKING OPTION'S VALUE IS NOT A SUBCOMMAND (NV-064). This walk used
|
|
81
|
-
* to skip the token starting with `-` and then read the NEXT token as a
|
|
82
|
-
* subcommand name. The docstring claimed that was safe — "the only program-level
|
|
83
|
-
* options are booleans" and "leaf-command option values never reach the
|
|
84
|
-
* group-flagging branch" — and it is false for a command that is a group
|
|
85
|
-
* (`commands.length > 0`), declares its own `<value>` options, and registers no
|
|
86
|
-
* positional. `jobs` is exactly that shape, so on published CLI 0.13.0:
|
|
87
|
-
*
|
|
88
|
-
* naive jobs --json -> the listing
|
|
89
|
-
* naive jobs --limit 5 --json -> unknown_subcommand '5'
|
|
90
|
-
* naive jobs --status completed --json -> unknown_subcommand 'completed'
|
|
91
|
-
*
|
|
92
|
-
* Both broken forms are what `commands/jobs.ts` help text documents as the
|
|
93
|
-
* primary usage, and the failure happens before `program.parse()` — no API key,
|
|
94
|
-
* no network. `brain` has the same shape and would acquire the bug on the day it
|
|
95
|
-
* ships. So the walk now consumes an option's value, and stops at `--`.
|
|
96
|
-
*
|
|
97
|
-
* The ROOT program is deliberately excluded: an unknown TOP-LEVEL command
|
|
98
|
-
* (`naive bogus`) is handled by commander's `command:*` listener as a
|
|
99
|
-
* `cli_outdated` error (it may exist in a newer CLI) — a different, and more apt,
|
|
100
|
-
* message than "unknown subcommand". Only unrecognized children of a real group
|
|
101
|
-
* are our concern here.
|
|
102
|
-
*/
|
|
103
|
-
export function findUnknownSubcommand(program, argv) {
|
|
104
|
-
let cmd = program;
|
|
105
|
-
for (let i = 0; i < argv.length; i++) {
|
|
106
|
-
const tok = argv[i];
|
|
107
|
-
// Everything after `--` is an operand by definition — never a subcommand.
|
|
108
|
-
if (tok === "--")
|
|
109
|
-
return null;
|
|
110
|
-
if (tok.startsWith("-")) {
|
|
111
|
-
if (consumesNextToken(cmd, program, tok))
|
|
112
|
-
i++;
|
|
113
|
-
continue;
|
|
114
|
-
}
|
|
115
|
-
const sub = cmd.commands.find((c) => c.name() === tok || c.aliases().includes(tok));
|
|
116
|
-
if (sub) {
|
|
117
|
-
cmd = sub;
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
const isGroup = cmd !== program && cmd.commands.length > 0 && cmd.registeredArguments.length === 0;
|
|
121
|
-
if (isGroup) {
|
|
122
|
-
return {
|
|
123
|
-
group: cmd.name(),
|
|
124
|
-
unknown: tok,
|
|
125
|
-
validSubs: cmd.commands.map((c) => c.name()).filter((n) => n !== "help"),
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
return null;
|
|
129
|
-
}
|
|
130
|
-
return null;
|
|
131
|
-
}
|
|
132
|
-
//# sourceMappingURL=unknown-command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unknown-command.js","sourceRoot":"","sources":["../../src/lib/unknown-command.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACtC,OAAe,EACf,cAAsB;IAEtB,OAAO;QACL,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,iBAAiB;QACzB,KAAK,EAAE;YACL,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,oBAAoB,OAAO,yBAAyB,cAAc,8CAA8C;SAC1H;QACD,cAAc,EAAE;YACd,EAAE,OAAO,EAAE,mCAAmC,EAAE,WAAW,EAAE,gCAAgC,EAAE;SAChG;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,2BAA2B,CACzC,KAAa,EACb,OAAe,EACf,SAAmB,EACnB,cAAsB;IAEtB,OAAO;QACL,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,iBAAiB;QACzB,KAAK,EAAE;YACL,IAAI,EAAE,oBAAoB;YAC1B,OAAO,EACL,uBA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 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Outcome of comparing the running CLI version against the server-advertised
|
|
3
|
-
* minimum and latest versions.
|
|
4
|
-
* - `block` → CLI is below the minimum supported version; the command must stop.
|
|
5
|
-
* - `notice` → CLI works but a newer version exists; surface a non-fatal nudge.
|
|
6
|
-
* - `ok` → CLI is current (or versions were missing/unparseable — never block on ambiguity).
|
|
7
|
-
*/
|
|
8
|
-
export type CliVersionDecision = {
|
|
9
|
-
kind: "block";
|
|
10
|
-
current: string;
|
|
11
|
-
min: string;
|
|
12
|
-
latest?: string;
|
|
13
|
-
} | {
|
|
14
|
-
kind: "notice";
|
|
15
|
-
current: string;
|
|
16
|
-
latest: string;
|
|
17
|
-
min?: string;
|
|
18
|
-
} | {
|
|
19
|
-
kind: "ok";
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Pure decision function so the staleness policy is unit-testable without a
|
|
23
|
-
* live API. Any missing/invalid version is treated as "ok" — we never block or
|
|
24
|
-
* nag on data we can't trust.
|
|
25
|
-
*/
|
|
26
|
-
export declare function evaluateCliVersion(current: string, min?: string, latest?: string): CliVersionDecision;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import semver from "semver";
|
|
2
|
-
/**
|
|
3
|
-
* Pure decision function so the staleness policy is unit-testable without a
|
|
4
|
-
* live API. Any missing/invalid version is treated as "ok" — we never block or
|
|
5
|
-
* nag on data we can't trust.
|
|
6
|
-
*/
|
|
7
|
-
export function evaluateCliVersion(current, min, latest) {
|
|
8
|
-
const cur = semver.valid(semver.coerce(current) ?? current);
|
|
9
|
-
if (!cur)
|
|
10
|
-
return { kind: "ok" };
|
|
11
|
-
const minValid = min ? semver.valid(semver.coerce(min) ?? min) : null;
|
|
12
|
-
if (minValid && semver.lt(cur, minValid)) {
|
|
13
|
-
return { kind: "block", current: cur, min: minValid, latest: latest ?? undefined };
|
|
14
|
-
}
|
|
15
|
-
const latestValid = latest ? semver.valid(semver.coerce(latest) ?? latest) : null;
|
|
16
|
-
if (latestValid && semver.lt(cur, latestValid)) {
|
|
17
|
-
return { kind: "notice", current: cur, latest: latestValid, min: min ?? undefined };
|
|
18
|
-
}
|
|
19
|
-
return { kind: "ok" };
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=version-check.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version-check.js","sourceRoot":"","sources":["../../src/lib/version-check.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAc5B;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAe,EACf,GAAY,EACZ,MAAe;IAEf,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,CAAC;IAC5D,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAEhC,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACtE,IAAI,QAAQ,IAAI,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC;QACzC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,IAAI,SAAS,EAAE,CAAC;IACrF,CAAC;IAED,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAClF,IAAI,WAAW,IAAI,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,CAAC,EAAE,CAAC;QAC/C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,IAAI,SAAS,EAAE,CAAC;IACtF,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACxB,CAAC"}
|
package/dist/output.d.ts
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
/** Set by the global --json / --human options in index.ts, parsed before any action runs. */
|
|
2
|
-
export declare function setOutputFlags(opts: {
|
|
3
|
-
json?: boolean;
|
|
4
|
-
human?: boolean;
|
|
5
|
-
}): void;
|
|
6
|
-
/** TRUE only on an explicit opt-in; default false. Controls OUTPUT FORMAT. */
|
|
7
|
-
export declare function humanMode(): boolean;
|
|
8
|
-
/** Prompts (wizard, destructive confirm) require human mode AND a real interactive stdin — a
|
|
9
|
-
* separate predicate from output format, so a human piping stdout to `tee` still gets the confirm. */
|
|
10
|
-
export declare function isInteractive(): boolean;
|
|
11
|
-
export interface NextStep {
|
|
12
|
-
command: string;
|
|
13
|
-
description: string;
|
|
14
|
-
when?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* The SINGLE derivation point for the human-readable "Cost:" hint (N7). Reads
|
|
18
|
-
* the authoritative `credits_used` off a response/result object — the exact
|
|
19
|
-
* number the API billed and dropped from the balance — and formats it so the
|
|
20
|
-
* hint can NEVER drift from what was actually charged. Previously commands
|
|
21
|
-
* hardcoded strings like "Cost: 1 credit" while the API charged 10; deriving
|
|
22
|
-
* from the response is the only way to keep them in lockstep.
|
|
23
|
-
*
|
|
24
|
-
* Returns undefined when there is nothing (yet) to charge — the field is
|
|
25
|
-
* absent, or a job is still queued/processing/failed (credits_used is null) —
|
|
26
|
-
* so callers can spread it into a hints array and no line appears.
|
|
27
|
-
*/
|
|
28
|
-
export declare function creditCostHint(result: unknown): string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* The submit-time counterpart of creditCostHint (N6). Reads a job-submission
|
|
31
|
-
* response's `estimated_credits` — the API's pre-flight quote, derived from the
|
|
32
|
-
* SAME getFalPrice() + usdToCredits() source that settles the final charge — so
|
|
33
|
-
* a customer sees the spend before and at submit, and the echoed number tracks
|
|
34
|
-
* what will actually be billed. Returns undefined when no estimate is present.
|
|
35
|
-
*/
|
|
36
|
-
export declare function creditEstimateHint(result: unknown): string | undefined;
|
|
37
|
-
/** Non-fatal "a newer CLI is available" nudge, attached to the next agentOutput. */
|
|
38
|
-
export interface UpdateInfo {
|
|
39
|
-
current: string;
|
|
40
|
-
latest: string;
|
|
41
|
-
update_command: string;
|
|
42
|
-
note: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* The machine half of the deprecation notice (06 §1.9 / §1.10.5). The human half
|
|
46
|
-
* is a stderr banner; this rides the STDOUT envelope so stdout stays
|
|
47
|
-
* JSON.parse-able and an agent can branch on it without scraping stderr.
|
|
48
|
-
*
|
|
49
|
-
* `replacement` is a CLOSED union on purpose (R-7): a capability that is simply
|
|
50
|
-
* gone renders as `{kind:"gap", because}` and cannot be rendered as an empty
|
|
51
|
-
* string, so the reason is required by the type rather than by review.
|
|
52
|
-
*
|
|
53
|
-
* `sunset` is likewise closed — `"frozen"` or a date. There is no "removal TBD".
|
|
54
|
-
*/
|
|
55
|
-
export interface DeprecationNotice {
|
|
56
|
-
id: string;
|
|
57
|
-
subject: string;
|
|
58
|
-
status: "deprecated" | "retired";
|
|
59
|
-
replacement: {
|
|
60
|
-
kind: "use";
|
|
61
|
-
what: string;
|
|
62
|
-
} | {
|
|
63
|
-
kind: "gap";
|
|
64
|
-
because: string;
|
|
65
|
-
};
|
|
66
|
-
since: string;
|
|
67
|
-
sunset: "frozen" | {
|
|
68
|
-
on: string;
|
|
69
|
-
};
|
|
70
|
-
guide: string;
|
|
71
|
-
}
|
|
72
|
-
export interface AgentOutput {
|
|
73
|
-
success: boolean;
|
|
74
|
-
action: string;
|
|
75
|
-
result: unknown;
|
|
76
|
-
next_steps: NextStep[];
|
|
77
|
-
hints?: string[];
|
|
78
|
-
related_commands?: string[];
|
|
79
|
-
help_markdown?: string;
|
|
80
|
-
update?: UpdateInfo;
|
|
81
|
-
deprecation?: DeprecationNotice;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* EXIT 4 — "a human has to decide this, and nothing was done."
|
|
85
|
-
*
|
|
86
|
-
* The ladder so far is 0 success · 1 error · 2 success-with-a-diff · 3
|
|
87
|
-
* success-where-the-terminal-state-is-not-success (README, `naive teams`). All
|
|
88
|
-
* four answer the question "did the work happen". None of them answers "the
|
|
89
|
-
* work is BLOCKED on a choice only a person can make", and collapsing that into
|
|
90
|
-
* 1 is what makes an agent retry: a generic failure looks transient, so it runs
|
|
91
|
-
* the same command again, gets the same 402, and loops.
|
|
92
|
-
*
|
|
93
|
-
* 4 says the opposite — re-running changes nothing, and the next move belongs
|
|
94
|
-
* to a human. A harness can branch on the code alone, without parsing the body,
|
|
95
|
-
* and route the run to its operator instead of to its retry budget.
|
|
96
|
-
*/
|
|
97
|
-
export declare const EXIT_DECISION_REQUIRED = 4;
|
|
98
|
-
/** One way out of a {@link DecisionRequired}, as the exact command that takes it. */
|
|
99
|
-
export interface DecisionOption {
|
|
100
|
-
/** Stable machine id — an agent reports this back to its human, not the prose label. */
|
|
101
|
-
id: string;
|
|
102
|
-
/** The choice in the human's terms ("Subscribe to Pro — $20/mo"). */
|
|
103
|
-
label: string;
|
|
104
|
-
/** The exact command that takes this option. `#`-prefixed when it is a no-op. */
|
|
105
|
-
command: string;
|
|
106
|
-
description: string;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* A refusal that is NOT the CLI's to resolve: the way forward is known, there is
|
|
110
|
-
* more than one of them, and each spends the operator's money or changes their
|
|
111
|
-
* plan. Emitting the options and refusing to pick is the whole point — an agent
|
|
112
|
-
* that guesses here buys a subscription nobody asked for.
|
|
113
|
-
*
|
|
114
|
-
* `chosen` is `null` on every non-interactive emission and stays null in the
|
|
115
|
-
* JSON envelope: it is the field an agent reads to know that nothing was
|
|
116
|
-
* decided. It is set only when a real human picked at a real prompt.
|
|
117
|
-
*/
|
|
118
|
-
export interface DecisionRequired {
|
|
119
|
-
/** Asked of the HUMAN, verbatim — an agent can relay this string unchanged. */
|
|
120
|
-
question: string;
|
|
121
|
-
/** Why the CLI will not answer it itself. */
|
|
122
|
-
because: string;
|
|
123
|
-
options: DecisionOption[];
|
|
124
|
-
chosen: string | null;
|
|
125
|
-
}
|
|
126
|
-
export interface AgentErrorDetails {
|
|
127
|
-
code?: string;
|
|
128
|
-
message?: string;
|
|
129
|
-
hint?: string;
|
|
130
|
-
http_status?: number;
|
|
131
|
-
body_snippet?: string;
|
|
132
|
-
[key: string]: unknown;
|
|
133
|
-
}
|
|
134
|
-
/** Stash a pending update notice for the next agentOutput call (client layer → output). */
|
|
135
|
-
export declare function setPendingUpdate(info: UpdateInfo | undefined): void;
|
|
136
|
-
/** Stash a pending deprecation notice for the next agentOutput call. */
|
|
137
|
-
export declare function setPendingDeprecation(notice: DeprecationNotice | undefined): void;
|
|
138
|
-
/** Test seam: read the pending notice without emitting it. */
|
|
139
|
-
export declare function peekPendingDeprecation(): DeprecationNotice | undefined;
|
|
140
|
-
export declare function agentOutput(opts: {
|
|
141
|
-
action: string;
|
|
142
|
-
result: unknown;
|
|
143
|
-
next_steps: NextStep[];
|
|
144
|
-
hints?: string[];
|
|
145
|
-
related_commands?: string[];
|
|
146
|
-
help_markdown?: string;
|
|
147
|
-
}): void;
|
|
148
|
-
/**
|
|
149
|
-
* `agentOutput` plus an explicit process exit code — the mechanism behind the
|
|
150
|
-
* exit-code ladder of 06 §1.3. Exit 2 is "success, and a diff exists"
|
|
151
|
-
* (terraform's `-detailed-exitcode`); exit 3 is "success, and the terminal state
|
|
152
|
-
* is not success" — a CI script reading 0 as "the work is done" would otherwise
|
|
153
|
-
* count an `unverified` task as a pass.
|
|
154
|
-
*
|
|
155
|
-
* It sets `process.exitCode` rather than calling `process.exit()`: the payload it
|
|
156
|
-
* just wrote may still be buffered when stdout is a pipe, and `process.exit()`
|
|
157
|
-
* truncates it. Setting the code lets Node drain and then exit with it.
|
|
158
|
-
*/
|
|
159
|
-
export declare function agentOutputExit(opts: {
|
|
160
|
-
action: string;
|
|
161
|
-
result: unknown;
|
|
162
|
-
next_steps: NextStep[];
|
|
163
|
-
hints?: string[];
|
|
164
|
-
related_commands?: string[];
|
|
165
|
-
help_markdown?: string;
|
|
166
|
-
exitCode?: 0 | 2 | 3;
|
|
167
|
-
}): void;
|
|
168
|
-
/**
|
|
169
|
-
* THE FAILURE ENVELOPE GOES TO STDOUT, on the same channel as the success one.
|
|
170
|
-
*
|
|
171
|
-
* This used to be `console.error`, and stdout was zero bytes on every failure —
|
|
172
|
-
* so `naive <anything> --json | jq` and any agent reading stdout saw NOTHING when
|
|
173
|
-
* a command failed, including the `recovery_steps` that are its only route out.
|
|
174
|
-
*
|
|
175
|
-
* That contradicted the split the rest of this CLI is built on: stdout is THE
|
|
176
|
-
* machine document, stderr is human noise. update-notifier is stderr-only "so it
|
|
177
|
-
* never pollutes the JSON on stdout" (index.ts); the human-mode tip above is
|
|
178
|
-
* stderr "without polluting stdout (stays parseable JSON)"; a deprecation notice
|
|
179
|
-
* rides "the STDOUT envelope so stdout stays JSON.parse-able and an agent can
|
|
180
|
-
* branch on it without scraping stderr" (DeprecationNotice, above). The
|
|
181
|
-
* `unhandledRejection` net in index.ts exists in so many words because "an agent
|
|
182
|
-
* parsing stdout would get nothing it can act on" — and then emitted here, to
|
|
183
|
-
* stderr, so it did not deliver the thing it was written to deliver.
|
|
184
|
-
*
|
|
185
|
-
* Written ONCE, not to both channels: `2>&1` is the common way an agent harness
|
|
186
|
-
* merges these, and a second copy would put two JSON documents in one stream and
|
|
187
|
-
* break the single-document invariant that makes stdout `JSON.parse`-able.
|
|
188
|
-
*
|
|
189
|
-
* `success: false` is in the envelope and the exit code is still 1, so nothing
|
|
190
|
-
* downstream has to guess whether stdout is data — it must branch on `success`
|
|
191
|
-
* either way, exactly as it already does for the success envelope.
|
|
192
|
-
*
|
|
193
|
-
* HUMAN mode is unchanged: a red ✗ line is a diagnostic for a person, and those
|
|
194
|
-
* belong on stderr.
|
|
195
|
-
*/
|
|
196
|
-
export declare function agentError(opts: {
|
|
197
|
-
action: string;
|
|
198
|
-
error: AgentErrorDetails;
|
|
199
|
-
recovery_steps: NextStep[];
|
|
200
|
-
}): void;
|
|
201
|
-
/**
|
|
202
|
-
* THE REFUSAL THAT NEEDS A PERSON — `success:false`, exit {@link EXIT_DECISION_REQUIRED}.
|
|
203
|
-
*
|
|
204
|
-
* Shaped like `agentError` (same stdout channel, same `error` + `recovery_steps`
|
|
205
|
-
* keys, so nothing downstream needs a new parser) with two deliberate
|
|
206
|
-
* differences:
|
|
207
|
-
*
|
|
208
|
-
* 1. It carries `decision_required`, which names the question in the human's
|
|
209
|
-
* own words and lists the ways out as ids + exact commands. An agent
|
|
210
|
-
* relays that object to its operator; it does not pick from it.
|
|
211
|
-
* 2. It sets `process.exitCode` instead of calling `process.exit()`. The same
|
|
212
|
-
* reason as `agentOutputExit`: the payload may still be buffered when
|
|
213
|
-
* stdout is a pipe, and a hard exit truncates the very JSON the caller
|
|
214
|
-
* needs. Callers `return` after this; they must not keep working.
|
|
215
|
-
*
|
|
216
|
-
* HUMAN mode gets the same content as a readable block on stderr, including the
|
|
217
|
-
* numbered options — a person who is not at an interactive terminal (output
|
|
218
|
-
* piped to `tee`, a `--human` run in CI) still needs to see the choice rather
|
|
219
|
-
* than a bare red line.
|
|
220
|
-
*/
|
|
221
|
-
export declare function agentDecisionRequired(opts: {
|
|
222
|
-
action: string;
|
|
223
|
-
error: AgentErrorDetails;
|
|
224
|
-
decision: DecisionRequired;
|
|
225
|
-
recovery_steps: NextStep[];
|
|
226
|
-
}): void;
|
|
227
|
-
/**
|
|
228
|
-
* 06 §1.8 — when a response body carries a governance `verdict`, the DECISION
|
|
229
|
-
* POINT knows the recovery and the CLI's local `switch (code)` does not. The
|
|
230
|
-
* whole point of the denial envelope is that a model recovers instead of
|
|
231
|
-
* looping, and a hand-written table that overwrites the server's steps defeats
|
|
232
|
-
* it. So: a body with a `verdict` and a well-formed `recovery[]` renders the
|
|
233
|
-
* server's steps verbatim, and `getRecoverySteps` is not consulted.
|
|
234
|
-
*
|
|
235
|
-
* Both gates are required. `verdict` alone with no recovery falls back (the
|
|
236
|
-
* server said nothing actionable); `recovery` alone with no verdict is ignored,
|
|
237
|
-
* so this cannot become a way for any endpoint to rewrite the CLI's advice.
|
|
238
|
-
* Each step is validated field by field — an entry that is not
|
|
239
|
-
* `{command:string, description:string}` is dropped rather than printed as
|
|
240
|
-
* `undefined`.
|
|
241
|
-
*/
|
|
242
|
-
export declare function serverRecoverySteps(data: unknown): NextStep[] | undefined;
|
|
243
|
-
export declare function formatApiError(action: string, data: unknown): void;
|
|
244
|
-
/** Exported for the parity test that holds the `llm_routing_requires_payment`
|
|
245
|
-
* case equal to `llmPaywallRecoverySteps()` in lib/llm-paywall.ts. */
|
|
246
|
-
export declare function getRecoverySteps(code?: string): NextStep[];
|