@usenaive-sdk/cli 0.14.0 → 0.15.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 +51 -3
- package/dist/client.js +6 -1
- package/dist/client.js.map +1 -1
- package/dist/commands/agents.d.ts +2 -0
- package/dist/commands/agents.js +916 -0
- package/dist/commands/agents.js.map +1 -0
- package/dist/commands/billing.js +58 -12
- package/dist/commands/billing.js.map +1 -1
- package/dist/commands/llm.js +22 -3
- package/dist/commands/llm.js.map +1 -1
- package/dist/commands/register.js +17 -5
- package/dist/commands/register.js.map +1 -1
- package/dist/commands/sandbox.js +15 -15
- package/dist/commands/sandbox.js.map +1 -1
- package/dist/commands/status.js +34 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/teams.d.ts +1 -1
- package/dist/commands/teams.js +2 -2
- package/dist/commands/up.d.ts +398 -0
- package/dist/commands/up.js +393 -12
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/verify-email.d.ts +19 -0
- package/dist/commands/verify-email.js +130 -0
- package/dist/commands/verify-email.js.map +1 -0
- package/dist/commands/webhooks.d.ts +13 -0
- package/dist/commands/webhooks.js +119 -0
- package/dist/commands/webhooks.js.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/llm-paywall.d.ts +82 -0
- package/dist/lib/llm-paywall.js +231 -0
- package/dist/lib/llm-paywall.js.map +1 -0
- package/dist/output.d.ts +72 -0
- package/dist/output.js +127 -5
- package/dist/output.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { apiRequest, handleApiError } from "../client.js";
|
|
3
|
+
import { agentOutput } from "../output.js";
|
|
4
|
+
/**
|
|
5
|
+
* EMAIL VERIFICATION, FROM THE SURFACE THE ACCOUNT WAS CREATED ON.
|
|
6
|
+
*
|
|
7
|
+
* `naive register` creates an account with a ZERO balance; the 20 free credits
|
|
8
|
+
* are released when the email is verified. Until this command existed the only
|
|
9
|
+
* way to finish that was to leave the terminal, open a mail client, and click a
|
|
10
|
+
* link into the web app — from a tool whose whole premise is that an agent can
|
|
11
|
+
* run it unattended. An agent could create an account it could never fund.
|
|
12
|
+
*
|
|
13
|
+
* `naive verification` is a different thing entirely (Footprint KYC for company
|
|
14
|
+
* founders) and the collision is why this is `verify`, not a subcommand there.
|
|
15
|
+
*
|
|
16
|
+
* The token is the one in the emailed link. `POST /v1/auth/session/verify` takes
|
|
17
|
+
* it unauthenticated and by design — possession of a 32-byte token mailed to the
|
|
18
|
+
* address IS the proof, and requiring a session on top would put the browser
|
|
19
|
+
* back in the loop this command exists to remove.
|
|
20
|
+
*/
|
|
21
|
+
export const verifyEmailCmd = new Command("verify-email")
|
|
22
|
+
.description("Verify the account's email and release the 20 free signup credits")
|
|
23
|
+
.argument("[token]", "The token from the verification email (the ?token=... in the link)")
|
|
24
|
+
.option("--resend", "Send the verification email again to the account's own address")
|
|
25
|
+
.addHelpText("after", `
|
|
26
|
+
Examples:
|
|
27
|
+
$ naive verify-email --resend Re-send the email, then read the token out of it
|
|
28
|
+
$ naive verify-email uZMX0So46cVO... Verify and receive the 20 free credits
|
|
29
|
+
|
|
30
|
+
Where the token comes from:
|
|
31
|
+
The verification email contains a link ending in ?token=<token>. Pass that
|
|
32
|
+
value. The whole link also works — the token is extracted from it.
|
|
33
|
+
|
|
34
|
+
Why this matters:
|
|
35
|
+
A new account starts at 0 credits and every billable call is refused with
|
|
36
|
+
insufficient_credits until the email is verified. This is the step that
|
|
37
|
+
turns a registered account into a usable one.
|
|
38
|
+
|
|
39
|
+
One exception, and it does not go away on verification: the LLM router
|
|
40
|
+
('naive llm chat', /v1/llm and the provider proxies) does not accept free
|
|
41
|
+
credit at all. It needs a paid account — a credit pack or a subscription.
|
|
42
|
+
Verifying releases the 20 credits for every OTHER primitive.
|
|
43
|
+
|
|
44
|
+
Notes:
|
|
45
|
+
- The token is single-use and expires 24 hours after it is sent.
|
|
46
|
+
- --resend replaces any previous token, so use the newest email.
|
|
47
|
+
- --resend always goes to the account owner's own address; it cannot be
|
|
48
|
+
pointed at a different inbox.
|
|
49
|
+
`)
|
|
50
|
+
.action(async (token, opts) => {
|
|
51
|
+
if (opts.resend) {
|
|
52
|
+
const resp = await apiRequest("POST", "/v1/auth/resend-verification", {});
|
|
53
|
+
handleApiError("verify-email --resend", resp);
|
|
54
|
+
const data = resp.data;
|
|
55
|
+
agentOutput({
|
|
56
|
+
action: "verify-email --resend",
|
|
57
|
+
result: data,
|
|
58
|
+
next_steps: data.already_verified
|
|
59
|
+
? [{ command: "naive status", description: "Confirm the credit balance" }]
|
|
60
|
+
: [
|
|
61
|
+
{
|
|
62
|
+
command: "naive verify-email <token>",
|
|
63
|
+
description: `Open the email at ${data.email ?? "the account address"} and pass the token from the link`,
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
hints: [
|
|
67
|
+
data.already_verified
|
|
68
|
+
? "This account is already verified; the signup credits have been granted."
|
|
69
|
+
: "Check the inbox for a link ending in ?token=<token> and pass that token to 'naive verify-email'.",
|
|
70
|
+
],
|
|
71
|
+
});
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (!token) {
|
|
75
|
+
// A bare `naive verify` is the most likely way someone arrives here, so it
|
|
76
|
+
// answers with the route forward rather than a usage error.
|
|
77
|
+
agentOutput({
|
|
78
|
+
action: "verify-email",
|
|
79
|
+
result: { error: "missing_token", detail: "A verification token is required." },
|
|
80
|
+
next_steps: [
|
|
81
|
+
{ command: "naive verify-email --resend", description: "Send the verification email again" },
|
|
82
|
+
{ command: "naive verify-email <token>", description: "Verify with the token from the email link" },
|
|
83
|
+
],
|
|
84
|
+
hints: [
|
|
85
|
+
"The token is the ?token=... value in the verification email. If the email never arrived, run 'naive verify-email --resend' first.",
|
|
86
|
+
],
|
|
87
|
+
});
|
|
88
|
+
process.exitCode = 1;
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
// Accept a pasted URL as well as a bare token. People copy the link, not the
|
|
92
|
+
// query parameter, and failing them for it would be a refusal over
|
|
93
|
+
// formatting.
|
|
94
|
+
const extracted = token.includes("token=")
|
|
95
|
+
? (token.split("token=")[1] ?? "").split("&")[0] ?? token
|
|
96
|
+
: token;
|
|
97
|
+
const resp = await apiRequest("POST", "/v1/auth/session/verify", { token: extracted.trim() });
|
|
98
|
+
handleApiError("verify-email", resp);
|
|
99
|
+
const data = resp.data;
|
|
100
|
+
agentOutput({
|
|
101
|
+
action: "verify-email",
|
|
102
|
+
result: {
|
|
103
|
+
verified: data.ok === true,
|
|
104
|
+
credits_granted: data.credits_granted ?? 0,
|
|
105
|
+
message: data.message,
|
|
106
|
+
},
|
|
107
|
+
next_steps: [
|
|
108
|
+
{ command: "naive status", description: "Confirm the balance and account state" },
|
|
109
|
+
{ command: "naive billing topup", description: "Buy more credits once the free ones are spent" },
|
|
110
|
+
{
|
|
111
|
+
command: "naive billing packs",
|
|
112
|
+
description: "Needed BEFORE the LLM router will run — free credit does not buy model routing",
|
|
113
|
+
when: "You intend to use 'naive llm chat' or the provider proxies",
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
hints: [
|
|
117
|
+
// 🔴 This line used to end "…and billable calls will succeed." It is the
|
|
118
|
+
// sentence an agent reads immediately before it calls the router, and
|
|
119
|
+
// after the router stopped taking free credit it was a promise the next
|
|
120
|
+
// command breaks. An agent that believes it loops verify → chat → 402 →
|
|
121
|
+
// verify, because the only remedy it was ever told about is the one it
|
|
122
|
+
// has already done.
|
|
123
|
+
`Email verified. ${data.credits_granted ?? 20} free credits are on the account and billable calls will succeed — ` +
|
|
124
|
+
`with ONE exception: the LLM router ('naive llm chat') does not accept free credit and refuses with ` +
|
|
125
|
+
`llm_routing_requires_payment (402) until the account has paid for something. Every other primitive spends these credits normally.`,
|
|
126
|
+
],
|
|
127
|
+
help_markdown: `### Email Verified\n\n**${data.credits_granted ?? 20} free credits** have been granted.\n\nBefore this, every billable call was refused with \`insufficient_credits\` — a new account starts at 0 on purpose. Run \`naive status\` to see the balance.\n\n**The LLM router is the exception.** \`naive llm chat\`, \`/v1/llm/*\` and the provider proxies require a **paid** account: a credit pack (\`naive billing topup\`) or a subscription (\`naive billing subscribe --plan pro\`). Free and comped credit will not buy model routing, however much of it is on the balance. Everything else — email, search, images, brain, runtime — spends these 20 credits.`,
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
//# sourceMappingURL=verify-email.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-email.js","sourceRoot":"","sources":["../../src/commands/verify-email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,OAAO,CAAC,cAAc,CAAC;KACtD,WAAW,CAAC,mEAAmE,CAAC;KAChF,QAAQ,CAAC,SAAS,EAAE,oEAAoE,CAAC;KACzF,MAAM,CAAC,UAAU,EAAE,gEAAgE,CAAC;KACpF,WAAW,CAAC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;CAwBvB,CAAC;KACC,MAAM,CAAC,KAAK,EAAE,KAAyB,EAAE,IAA0B,EAAE,EAAE;IACtE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QAChB,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,8BAA8B,EAAE,EAAE,CAAC,CAAC;QAC1E,cAAc,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAwE,CAAC;QAE3F,WAAW,CAAC;YACV,MAAM,EAAE,uBAAuB;YAC/B,MAAM,EAAE,IAAI;YACZ,UAAU,E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,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9F,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;IAErC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAoE,CAAC;IAEvF,WAAW,CAAC;QACV,MAAM,EAAE,cAAc;QACtB,MAAM,EAAE;YACN,QAAQ,EAAE,IAAI,CAAC,EAAE,KAAK,IAAI;YAC1B,eAAe,EAAE,IAAI,CAAC,eAAe,IAAI,CAAC;YAC1C,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB;QACD,UAAU,EAAE;YACV,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,uCAAuC,EAAE;YACjF,EAAE,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,+CAA+C,EAAE;YAChG;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,WAAW,EAAE,gFAAgF;gBAC7F,IAAI,EAAE,4DAA4D;aACnE;SACF;QACD,KAAK,EAAE;YACL,yEAAyE;YACzE,sEAAsE;YACtE,wEAAwE;YACxE,wEAAwE;YACxE,uEAAuE;YACvE,oBAAoB;YACpB,mBAAmB,IAAI,CAAC,eAAe,IAAI,EAAE,qEAAqE;gBAChH,qGAAqG;gBACrG,mIAAmI;SACtI;QACD,aAAa,EAAE,2BAA2B,IAAI,CAAC,eAAe,IAAI,EAAE,klBAAklB;KACvpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `naive webhooks` — OUTBOUND notifications: naive POSTs to a URL you own. The
|
|
3
|
+
* other direction (someone POSTs to naive to wake an agent) is `naive agents
|
|
4
|
+
* webhook-add` — different secret, different signature string, opposite failure
|
|
5
|
+
* modes, so deliberately a different verb on a different noun.
|
|
6
|
+
*
|
|
7
|
+
* 🔴 NO HARDCODED EVENT-TYPE LIST HERE. `event-types` asks the server, which
|
|
8
|
+
* advertises exactly what its code emits. A copy here would be a fourth thing to
|
|
9
|
+
* drift, and the drift has a precedent: `call.received` was advertised for
|
|
10
|
+
* months after the routes that fired it were deleted.
|
|
11
|
+
*/
|
|
12
|
+
import { Command } from "commander";
|
|
13
|
+
export declare const webhooksCmd: Command;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `naive webhooks` — OUTBOUND notifications: naive POSTs to a URL you own. The
|
|
3
|
+
* other direction (someone POSTs to naive to wake an agent) is `naive agents
|
|
4
|
+
* webhook-add` — different secret, different signature string, opposite failure
|
|
5
|
+
* modes, so deliberately a different verb on a different noun.
|
|
6
|
+
*
|
|
7
|
+
* 🔴 NO HARDCODED EVENT-TYPE LIST HERE. `event-types` asks the server, which
|
|
8
|
+
* advertises exactly what its code emits. A copy here would be a fourth thing to
|
|
9
|
+
* drift, and the drift has a precedent: `call.received` was advertised for
|
|
10
|
+
* months after the routes that fired it were deleted.
|
|
11
|
+
*/
|
|
12
|
+
import { Command } from "commander";
|
|
13
|
+
import { apiRequest, handleApiError } from "../client.js";
|
|
14
|
+
import { agentOutput, humanMode } from "../output.js";
|
|
15
|
+
export const webhooksCmd = new Command("webhooks")
|
|
16
|
+
.description("Outbound webhooks — naive POSTs signed events to a URL you own")
|
|
17
|
+
.addHelpText("after", `
|
|
18
|
+
Verifying a delivery:
|
|
19
|
+
Body is {"event":..., "data":..., "ts": <unix ms>}. X-Naive-Signature is
|
|
20
|
+
hex(HMAC-SHA256(secret, RAW BODY)) — raw bytes, not a re-serialised parse, or
|
|
21
|
+
key order differs. The ts is INSIDE the signed body, so a captured delivery
|
|
22
|
+
cannot be replayed with a fresher one; reject a stale ts after the MAC checks.
|
|
23
|
+
|
|
24
|
+
Delivery guarantees:
|
|
25
|
+
At-least-once, bounded. Three attempts, jittered exponential backoff, ~10s
|
|
26
|
+
timeout each — one dead endpoint costs ~40s and no more. A subscription whose
|
|
27
|
+
last ten deliveries ALL failed is set inactive rather than retried forever.
|
|
28
|
+
|
|
29
|
+
Example:
|
|
30
|
+
$ naive webhooks add https://you.example/hooks agent.job_complete
|
|
31
|
+
`);
|
|
32
|
+
webhooksCmd
|
|
33
|
+
.command("list", { isDefault: true })
|
|
34
|
+
.description("Your subscriptions. Secrets are reported as secret_set, never returned.")
|
|
35
|
+
.action(async () => {
|
|
36
|
+
const resp = await apiRequest("GET", "/v1/webhooks");
|
|
37
|
+
handleApiError("webhooks.list", resp);
|
|
38
|
+
const subs = (resp.data ?? {}).subscriptions ?? [];
|
|
39
|
+
if (humanMode()) {
|
|
40
|
+
if (subs.length === 0)
|
|
41
|
+
process.stdout.write(" no subscriptions. `naive webhooks add <url> <type...>`\n");
|
|
42
|
+
// INACTIVE is printed loudly: it is what ten consecutive failed
|
|
43
|
+
// deliveries leave behind, and reading it as "fine" is why nothing arrives.
|
|
44
|
+
for (const s of subs) {
|
|
45
|
+
const state = s.active === false ? "INACTIVE" : "active";
|
|
46
|
+
process.stdout.write(` ${String(s.id ?? "")} ${String(s.url ?? "")} ${state} ${s.eventTypes?.join(",") ?? ""}\n`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
agentOutput({
|
|
50
|
+
action: "webhooks.list",
|
|
51
|
+
result: resp.data,
|
|
52
|
+
next_steps: [{ command: "naive webhooks event-types", description: "What this deployment emits" }],
|
|
53
|
+
hints: [`${subs.length} subscription${subs.length === 1 ? "" : "s"}. INACTIVE means delivery was disabled after repeated failures.`],
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
webhooksCmd
|
|
57
|
+
.command("event-types")
|
|
58
|
+
.description("What this deployment actually emits — asked of the server, never cached here.")
|
|
59
|
+
.action(async () => {
|
|
60
|
+
const resp = await apiRequest("GET", "/v1/webhooks/event-types");
|
|
61
|
+
handleApiError("webhooks.event-types", resp);
|
|
62
|
+
const types = (resp.data ?? {}).event_types ?? [];
|
|
63
|
+
if (humanMode())
|
|
64
|
+
for (const t of types)
|
|
65
|
+
process.stdout.write(` ${t}\n`);
|
|
66
|
+
agentOutput({
|
|
67
|
+
action: "webhooks.event-types",
|
|
68
|
+
result: resp.data,
|
|
69
|
+
next_steps: [{ command: `naive webhooks add <url> ${types[0] ?? "<type>"}`, description: "Subscribe" }],
|
|
70
|
+
hints: ["Every type listed is emitted by code today; a test enforces that in both directions."],
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
webhooksCmd
|
|
74
|
+
.command("add <url> <types...>")
|
|
75
|
+
.description("Subscribe. The signing secret prints ONCE.")
|
|
76
|
+
.action(async (url, types) => {
|
|
77
|
+
const resp = await apiRequest("POST", "/v1/webhooks", { url, eventTypes: types });
|
|
78
|
+
handleApiError("webhooks.add", resp);
|
|
79
|
+
const s = (resp.data ?? {});
|
|
80
|
+
if (humanMode()) {
|
|
81
|
+
process.stdout.write(` id ${s.id ?? ""}\n`);
|
|
82
|
+
process.stdout.write(` secret ${s.secret ?? ""}\n`);
|
|
83
|
+
process.stdout.write(" ⚠ the secret prints once and is never returned by list.\n");
|
|
84
|
+
}
|
|
85
|
+
agentOutput({
|
|
86
|
+
action: "webhooks.add",
|
|
87
|
+
result: resp.data,
|
|
88
|
+
next_steps: [{ command: `naive webhooks test ${s.id ?? "<id>"}`, description: "Send a delivery and check your verifier" }],
|
|
89
|
+
hints: ["Verify with hex(HMAC-SHA256(secret, RAW BODY)) against X-Naive-Signature."],
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
webhooksCmd
|
|
93
|
+
.command("test <id>")
|
|
94
|
+
.description("Send a `webhook.test` delivery through the real delivery path.")
|
|
95
|
+
.action(async (id) => {
|
|
96
|
+
const resp = await apiRequest("POST", `/v1/webhooks/${id}/test`, {});
|
|
97
|
+
handleApiError("webhooks.test", resp);
|
|
98
|
+
agentOutput({
|
|
99
|
+
action: "webhooks.test",
|
|
100
|
+
result: resp.data,
|
|
101
|
+
next_steps: [],
|
|
102
|
+
// The difference between this proving something and proving nothing.
|
|
103
|
+
hints: ["Same signer, same retry bound, same failure accounting as a real event — a failed test counts toward deactivation."],
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
webhooksCmd
|
|
107
|
+
.command("rm <id>")
|
|
108
|
+
.description("Unsubscribe. Refuses if it deleted nothing.")
|
|
109
|
+
.action(async (id) => {
|
|
110
|
+
const resp = await apiRequest("DELETE", `/v1/webhooks/${id}`);
|
|
111
|
+
handleApiError("webhooks.rm", resp);
|
|
112
|
+
agentOutput({
|
|
113
|
+
action: "webhooks.rm",
|
|
114
|
+
result: resp.data,
|
|
115
|
+
next_steps: [{ command: "naive webhooks list", description: "Confirm it is gone" }],
|
|
116
|
+
hints: ["A delete that removed nothing 404s — 'it stopped' and 'it is still firing' must not share a response."],
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
//# sourceMappingURL=webhooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/commands/webhooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,OAAO,CAAC,UAAU,CAAC;KAC/C,WAAW,CAAC,gEAAgE,CAAC;KAC7E,WAAW,CAAC,OAAO,EAAE;;;;;;;;;;;;;;CAcvB,CAAC,CAAC;AAEH,WAAW;KACR,OAAO,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;KACpC,WAAW,CAAC,yEAAyE,CAAC;KACtF,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IACrD,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;IACtC,MAAM,IAAI,GAAI,CAAC,IAAI,CAAC,I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C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { readVersion } from "./version.js";
|
|
|
5
5
|
import { agentError } from "./output.js";
|
|
6
6
|
import { buildUnknownCommandError, buildUnknownSubcommandError, findUnknownSubcommand } from "./lib/unknown-command.js";
|
|
7
7
|
import { registerCmd } from "./commands/register.js";
|
|
8
|
+
import { verifyEmailCmd } from "./commands/verify-email.js";
|
|
8
9
|
import { loginCmd } from "./commands/login.js";
|
|
9
10
|
import { logoutCmd } from "./commands/logout.js";
|
|
10
11
|
import { authCmd } from "./commands/auth.js";
|
|
@@ -54,6 +55,8 @@ import { voiceCmd } from "./commands/voice.js";
|
|
|
54
55
|
import { computeCmd } from "./commands/compute.js";
|
|
55
56
|
import { queueCmd } from "./commands/queue.js";
|
|
56
57
|
import { sandboxCmd } from "./commands/sandbox.js";
|
|
58
|
+
import { agentsCmd } from "./commands/agents.js";
|
|
59
|
+
import { webhooksCmd } from "./commands/webhooks.js";
|
|
57
60
|
import { mobileCmd } from "./commands/mobile.js";
|
|
58
61
|
import { projectsCmd } from "./commands/projects.js";
|
|
59
62
|
import { useCmd } from "./commands/use.js";
|
|
@@ -236,6 +239,7 @@ function applyOutputFlags() {
|
|
|
236
239
|
program.hook("preAction", applyOutputFlags);
|
|
237
240
|
program.addCommand(configCmd);
|
|
238
241
|
program.addCommand(registerCmd);
|
|
242
|
+
program.addCommand(verifyEmailCmd);
|
|
239
243
|
program.addCommand(loginCmd);
|
|
240
244
|
program.addCommand(logoutCmd);
|
|
241
245
|
program.addCommand(authCmd);
|
|
@@ -286,6 +290,8 @@ program.addCommand(voiceCmd);
|
|
|
286
290
|
program.addCommand(computeCmd);
|
|
287
291
|
program.addCommand(queueCmd);
|
|
288
292
|
program.addCommand(sandboxCmd);
|
|
293
|
+
program.addCommand(agentsCmd);
|
|
294
|
+
program.addCommand(webhooksCmd);
|
|
289
295
|
program.addCommand(mobileCmd);
|
|
290
296
|
program.addCommand(browserCmd);
|
|
291
297
|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C,EAAE;YAC/F,EAAE,OAAO,EAAE,gDAAgD,EAAE,WAAW,EAAE,mCAAmC,EAAE;SAChH;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type DecisionOption, type NextStep } from "../output.js";
|
|
2
|
+
/**
|
|
3
|
+
* The wire token for this refusal. It is BOTH `error.code` and
|
|
4
|
+
* `error.details.block_reason` — the API emits the same string in both places
|
|
5
|
+
* on purpose (platform/billing/src/llm-access.ts), so a consumer that switches
|
|
6
|
+
* on the reason needs no mapping from the code.
|
|
7
|
+
*
|
|
8
|
+
* Matching on either and never on the MESSAGE: prose is the thing most likely
|
|
9
|
+
* to be reworded, and a CLI that string-matches it goes silently generic the
|
|
10
|
+
* first time someone improves the sentence.
|
|
11
|
+
*
|
|
12
|
+
* The code is dedicated rather than a `billing_blocked` variant, and that
|
|
13
|
+
* distinction is the whole point: `billing_blocked` and `insufficient_credits`
|
|
14
|
+
* both mean "get more credit", which here is the one action that provably
|
|
15
|
+
* cannot work. Sharing a code would have made the two indistinguishable to
|
|
16
|
+
* exactly the population that has to distinguish them.
|
|
17
|
+
*/
|
|
18
|
+
export declare const LLM_ROUTING_ERROR_CODE = "llm_routing_requires_payment";
|
|
19
|
+
/** Alias kept because the same string is also the `details.block_reason` value. */
|
|
20
|
+
export declare const LLM_ROUTING_BLOCK_REASON = "llm_routing_requires_payment";
|
|
21
|
+
export interface LlmRoutingRefusal {
|
|
22
|
+
/** The server's canonical code, echoed rather than replaced. */
|
|
23
|
+
code?: string;
|
|
24
|
+
/** The server's own sentence, when it sent one. */
|
|
25
|
+
message?: string;
|
|
26
|
+
hint?: string;
|
|
27
|
+
docs?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The balance the API saw, in credits. Present so the CLI can say the quiet
|
|
30
|
+
* part out loud — "you have credit, and it is the wrong kind" — which is the
|
|
31
|
+
* single most confusing thing about this refusal.
|
|
32
|
+
*/
|
|
33
|
+
balance?: number;
|
|
34
|
+
/** The API's own "the balance is not the problem" sentence, when it sent one. */
|
|
35
|
+
balance_note?: string;
|
|
36
|
+
/** `"trial"` — why the credit on the account does not qualify. */
|
|
37
|
+
credit_kind?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Is this response the router's paid-account refusal? Returns the parts worth
|
|
41
|
+
* rendering, or null for every other body.
|
|
42
|
+
*
|
|
43
|
+
* `code` OR `block_reason` satisfies it, and `block_reason` is read from BOTH
|
|
44
|
+
* positions, because `NaiveError.toJSON()` emits `details` nested AND spread
|
|
45
|
+
* (platform/kernel/src/errors.ts) — a reader that picks one position is betting
|
|
46
|
+
* on which half gets retired first, and a reader that requires both is broken
|
|
47
|
+
* by whichever goes.
|
|
48
|
+
*/
|
|
49
|
+
export declare function llmRoutingRefusal(data: unknown): LlmRoutingRefusal | null;
|
|
50
|
+
/**
|
|
51
|
+
* The fallback sentence, used when the server sent no message of its own.
|
|
52
|
+
*
|
|
53
|
+
* It names what trial credit DOES buy. A refusal that only says "no" reads as a
|
|
54
|
+
* paywall on the product; this one is a control on one primitive, and a new
|
|
55
|
+
* account that has just been handed 20 credits deserves to hear that the other
|
|
56
|
+
* twenty-odd primitives still take them.
|
|
57
|
+
*/
|
|
58
|
+
export declare const LLM_PAYWALL_MESSAGE: string;
|
|
59
|
+
export declare const LLM_PAYWALL_QUESTION = "The LLM router needs paid credit on this account. Add a subscription, buy credits, or stop here?";
|
|
60
|
+
/** The ways out, in the order a first-time caller should weigh them. */
|
|
61
|
+
export declare function llmPaywallOptions(): DecisionOption[];
|
|
62
|
+
/**
|
|
63
|
+
* The `recovery_steps` array. It stays a LIST OF READS, not of purchases: the
|
|
64
|
+
* purchases live in `decision_required.options`, where the envelope is explicit
|
|
65
|
+
* that a human has to choose one. Putting `topup` in both places would let an
|
|
66
|
+
* agent that only reads `recovery_steps` — the habit every other error on this
|
|
67
|
+
* surface teaches — treat "buy something" as a step it is cleared to take.
|
|
68
|
+
*/
|
|
69
|
+
export declare function llmPaywallRecoverySteps(): NextStep[];
|
|
70
|
+
/**
|
|
71
|
+
* Intercept the router's paid-account refusal. Returns true when it handled the
|
|
72
|
+
* response, in which case the caller MUST return without calling
|
|
73
|
+
* `handleApiError` — that would emit a second envelope and exit 1 over the top
|
|
74
|
+
* of this one.
|
|
75
|
+
*
|
|
76
|
+
* Returns false for every other response, including a healthy one, so a call
|
|
77
|
+
* site reads as one line ahead of its normal error handling.
|
|
78
|
+
*/
|
|
79
|
+
export declare function handleLlmRoutingRefusal(action: string, resp: {
|
|
80
|
+
status: number;
|
|
81
|
+
data: unknown;
|
|
82
|
+
}): Promise<boolean>;
|