@usenaive-sdk/cli 0.11.0 → 0.12.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.
Files changed (46) hide show
  1. package/dist/client.js +1 -1
  2. package/dist/client.js.map +1 -1
  3. package/dist/commands/agent-profiles.d.ts +11 -0
  4. package/dist/commands/agent-profiles.js +120 -0
  5. package/dist/commands/agent-profiles.js.map +1 -0
  6. package/dist/commands/approvals.js +1 -1
  7. package/dist/commands/billing-client.d.ts +2 -0
  8. package/dist/commands/billing-client.js +271 -0
  9. package/dist/commands/billing-client.js.map +1 -0
  10. package/dist/commands/crm-app.d.ts +2 -0
  11. package/dist/commands/crm-app.js +306 -0
  12. package/dist/commands/crm-app.js.map +1 -0
  13. package/dist/commands/crm.d.ts +2 -0
  14. package/dist/commands/crm.js +319 -0
  15. package/dist/commands/crm.js.map +1 -0
  16. package/dist/commands/env.d.ts +7 -0
  17. package/dist/commands/env.js +48 -0
  18. package/dist/commands/env.js.map +1 -0
  19. package/dist/commands/init.d.ts +2 -0
  20. package/dist/commands/init.js +67 -0
  21. package/dist/commands/init.js.map +1 -0
  22. package/dist/commands/integrations.d.ts +2 -0
  23. package/dist/commands/integrations.js +199 -0
  24. package/dist/commands/integrations.js.map +1 -0
  25. package/dist/commands/logs.js +1 -1
  26. package/dist/commands/logs.js.map +1 -1
  27. package/dist/commands/module.d.ts +8 -0
  28. package/dist/commands/module.js +48 -0
  29. package/dist/commands/module.js.map +1 -0
  30. package/dist/commands/operators.d.ts +11 -0
  31. package/dist/commands/operators.js +120 -0
  32. package/dist/commands/operators.js.map +1 -0
  33. package/dist/commands/report.d.ts +17 -0
  34. package/dist/commands/report.js +109 -0
  35. package/dist/commands/report.js.map +1 -0
  36. package/dist/commands/up.d.ts +3 -0
  37. package/dist/commands/up.js +251 -0
  38. package/dist/commands/up.js.map +1 -0
  39. package/dist/index.js +40 -14
  40. package/dist/index.js.map +1 -1
  41. package/dist/output.js +11 -0
  42. package/dist/output.js.map +1 -1
  43. package/dist/version.d.ts +2 -0
  44. package/dist/version.js +14 -0
  45. package/dist/version.js.map +1 -0
  46. package/package.json +10 -10
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm.js","sourceRoot":"","sources":["../../src/commands/crm.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,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC;KACrC,WAAW,CAAC,oEAAoE,CAAC;KACjF,WAAW,CAAC,OAAO,EAAE;;;;;;;;;;;;;;;;;CAiBvB,CAAC,CAAC;AAEH,6EAA6E;AAE7E,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;AAErF,WAAW;KACR,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,mBAAmB,CAAC;KAChC,MAAM,CAAC,iBAAiB,EAAE,qCAAqC,CAAC;KAChE,MAAM,CAAC,oBAAoB,EAAE,kCAAkC,CAAC;KAChE,MAAM,CAAC,gBAAgB,EAAE,+BAA+B,EAAE,YAAY,CAAC;KACvE,MAAM,CAAC,aAAa,EAAE,mCAAmC,EAAE,IAAI,CAAC;KAChE,MAAM,CAAC,cAAc,EAAE,mBAAmB,EAAE,GAAG,CAAC;KAChD,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;IACrB,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAChG,IAAI,IAAI,CAAC,MAAM;QAAE,MAAM,CAA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AAE,gCAAgC,EAAE,WAAW,EAAE,gCAAgC,EAAE;SAC1J;QACD,gBAAgB,EAAE,CAAC,2BAA2B,EAAE,yBAAyB,CAAC;KAC3E,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,eAAe;KACZ,OAAO,CAAC,kBAAkB,CAAC;KAC3B,WAAW,CAAC,yBAAyB,CAAC;KACtC,MAAM,CAAC,KAAK,EAAE,SAAiB,EAAE,EAAE;IAClC,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,KAAK,EAAE,qBAAqB,SAAS,EAAE,CAAC,CAAC;IACvE,cAAc,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;IAC1C,WAAW,CAAC;QACV,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,CAAC,0BAA0B,EAAE,yBAAyB,CAAC;KAC1E,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Command } from "commander";
2
+ /**
3
+ * Environments — switch the CLI between API environments (e.g. production vs a
4
+ * staging/sandbox API), and create per-tenant preview sandboxes for testing
5
+ * agent profiles without real sends/charges.
6
+ */
7
+ export declare const envCmd: Command;
@@ -0,0 +1,48 @@
1
+ import { Command } from "commander";
2
+ import { saveConfig, loadConfig } from "../config.js";
3
+ import { agentOutput } from "../output.js";
4
+ /**
5
+ * Environments — switch the CLI between API environments (e.g. production vs a
6
+ * staging/sandbox API), and create per-tenant preview sandboxes for testing
7
+ * agent profiles without real sends/charges.
8
+ */
9
+ export const envCmd = new Command("env")
10
+ .description("Manage API environments and per-tenant preview sandboxes");
11
+ envCmd
12
+ .command("use")
13
+ .description("Point the CLI at an API base URL (e.g. staging)")
14
+ .argument("<base_url>", "API base URL, e.g. https://staging-api.usenaive.ai")
15
+ .action((baseUrl) => {
16
+ saveConfig({ base_url: baseUrl.replace(/\/+$/, "") });
17
+ agentOutput({
18
+ action: "env.use",
19
+ result: { base_url: loadConfig().base_url },
20
+ next_steps: [{ command: "naive status", description: "Verify connectivity against the new environment" }],
21
+ hints: [`CLI now targets ${baseUrl}. Override per-command with NAIVE_BASE_URL.`],
22
+ });
23
+ });
24
+ envCmd
25
+ .command("create")
26
+ .description("Create an isolated per-tenant preview sandbox (test-mode card, no real sends)")
27
+ .option("--tenant <id>", "Tenant id to create a sandbox for")
28
+ .option("--from <env>", "Environment to clone settings from (e.g. production)", "production")
29
+ .action((opts) => {
30
+ // Preview sandboxes are a managed-environment feature; this records intent and
31
+ // returns guidance. (Full per-tenant sandbox provisioning is a managed add-on.)
32
+ agentOutput({
33
+ action: "env.create",
34
+ result: {
35
+ tenant: opts.tenant ?? null,
36
+ from: opts.from ?? "production",
37
+ status: "requested",
38
+ },
39
+ next_steps: [
40
+ { command: "naive agent-profiles provision <template> --user " + (opts.tenant ?? "<tenant>"), description: "Provision a test agent profile in the sandbox" },
41
+ ],
42
+ hints: [
43
+ "Preview sandboxes isolate a tenant with a test-mode card and no real sends.",
44
+ "Hosted sandbox provisioning is a managed feature — contact support to enable it for your workspace.",
45
+ ],
46
+ });
47
+ });
48
+ //# sourceMappingURL=env.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/commands/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC;KACrC,WAAW,CAAC,0DAA0D,CAAC,CAAC;AAE3E,MAAM;KACH,OAAO,CAAC,KAAK,CAAC;KACd,WAAW,CAAC,iDAAiD,CAAC;KAC9D,QAAQ,CAAC,YAAY,EAAE,oDAAoD,CAAC;KAC5E,MAAM,CAAC,CAAC,OAAe,EAAE,EAAE;IAC1B,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;IACtD,WAAW,CAAC;QACV,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,QAAQ,EAAE;QAC3C,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,iDAAiD,EAAE,CAAC;QACzG,KAAK,EAAE,CAAC,mBAAmB,OAAO,6CAA6C,CAAC;KACjF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,MAAM;KACH,OAAO,CAAC,QAAQ,CAAC;KACjB,WAAW,CAAC,+EAA+E,CAAC;KAC5F,MAAM,CAAC,eAAe,EAAE,mCAAmC,CAAC;KAC5D,MAAM,CAAC,cAAc,EAAE,sDAAsD,EAAE,YAAY,CAAC;KAC5F,MAAM,CAAC,CAAC,IAAwC,EAAE,EAAE;IACnD,+EAA+E;IAC/E,gFAAgF;IAChF,WAAW,CAAC;QACV,MAAM,EAAE,YAAY;QACpB,MAAM,EAAE;YACN,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI;YAC3B,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,YAAY;YAC/B,MAAM,EAAE,WAAW;SACpB;QACD,UAAU,EAAE;YACV,EAAE,OAAO,EAAE,mDAAmD,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,UAAU,CAAC,EAAE,WAAW,EAAE,+CAA+C,EAAE;SAC7J;QACD,KAAK,EAAE;YACL,6EAA6E;YAC7E,qGAAqG;SACtG;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Command } from "commander";
2
+ export declare const initCmd: Command;
@@ -0,0 +1,67 @@
1
+ import { Command } from "commander";
2
+ import { existsSync, writeFileSync } from "node:fs";
3
+ import { join } from "node:path";
4
+ import { agentOutput } from "../output.js";
5
+ const STARTER_CONFIG = `import { defineConfig, cloud, agentTemplate, policy } from "@usenaive-sdk/iac";
6
+
7
+ // Naïve gives every agent its own governed real-world agent profile. This file
8
+ // declares your project's own infrastructure (Path A) and the agent profile
9
+ // template(s) each tenant gets. Run \`naive up\` to register it, then
10
+ // \`naive agent-profiles provision <name>\` (or forUser(id).provision in the
11
+ // server SDK) to instantiate one per tenant.
12
+ export default defineConfig({
13
+ project: "my-project",
14
+
15
+ // Path A — your app's own shared infrastructure, as code. Omit this to bring
16
+ // your own backend (Supabase, your VPC, etc.) and use Naïve only for the
17
+ // regulated agent profile bundle.
18
+ infrastructure: {
19
+ web: cloud.web({ framework: "nextjs", dir: "." }),
20
+ database: cloud.postgres({ name: "app-db", size: "serverless" }),
21
+ uploads: cloud.bucket({ name: "app-uploads" }),
22
+ },
23
+
24
+ // The governed agent profile each tenant gets. Each entry is an agentTemplate.
25
+ agentProfiles: {
26
+ support: agentTemplate({
27
+ identity: { kind: "business" },
28
+ wallet: { card: "virtual", limit: "$50/day" },
29
+ comms: { email: { domain: "per-tenant" } },
30
+ policy: policy({
31
+ allow: ["cards.refund", "email.send", "search"],
32
+ approvals: [{ when: "cards.refund.amount > $50", via: "slack" }],
33
+ }),
34
+ }),
35
+ },
36
+ });
37
+ `;
38
+ export const initCmd = new Command("init")
39
+ .description("Scaffold a naive.config.ts with an agent profile template")
40
+ .option("--force", "Overwrite an existing naive.config.ts")
41
+ .action((opts) => {
42
+ const path = join(process.cwd(), "naive.config.ts");
43
+ if (existsSync(path) && !opts.force) {
44
+ agentOutput({
45
+ action: "init",
46
+ result: { path, created: false },
47
+ next_steps: [
48
+ { command: "naive init --force", description: "Overwrite the existing naive.config.ts" },
49
+ { command: "naive up", description: "Register the templates declared in naive.config.ts" },
50
+ ],
51
+ hints: ["naive.config.ts already exists — not overwritten. Use --force to replace it."],
52
+ });
53
+ return;
54
+ }
55
+ writeFileSync(path, STARTER_CONFIG, "utf8");
56
+ agentOutput({
57
+ action: "init",
58
+ result: { path, created: true },
59
+ next_steps: [
60
+ { command: "pnpm add @usenaive-sdk/iac @usenaive-sdk/server", description: "Install the SDK packages" },
61
+ { command: "naive up", description: "Register the templates declared in naive.config.ts" },
62
+ { command: "naive agent-profiles provision support --user <tenant>", description: "Provision an agent profile from a template" },
63
+ ],
64
+ hints: ["Edit naive.config.ts to define your agent profile template(s): identity, wallet, comms, policy."],
65
+ });
66
+ });
67
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCtB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;KACvC,WAAW,CAAC,2DAA2D,CAAC;KACxE,MAAM,CAAC,SAAS,EAAE,uCAAuC,CAAC;KAC1D,MAAM,CAAC,CAAC,IAAyB,EAAE,EAAE;IACpC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,iBAAiB,CAAC,CAAC;IACpD,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QACpC,WAAW,CAAC;YACV,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;YAChC,UAAU,EAAE;gBACV,EAAE,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,wCAAwC,EAAE;gBACxF,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,oDAAoD,EAAE;aAC3F;YACD,KAAK,EAAE,CAAC,8EAA8E,CAAC;SACxF,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IACD,aAAa,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;IAC5C,WAAW,CAAC;QACV,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;QAC/B,UAAU,EAAE;YACV,EAAE,OAAO,EAAE,iDAAiD,EAAE,WAAW,EAAE,0BAA0B,EAAE;YACvG,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,oDAAoD,EAAE;YAC1F,EAAE,OAAO,EAAE,wDAAwD,EAAE,WAAW,EAAE,4CAA4C,EAAE;SACjI;QACD,KAAK,EAAE,CAAC,iGAAiG,CAAC;KAC3G,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Command } from "commander";
2
+ export declare const integrationsCmd: Command;
@@ -0,0 +1,199 @@
1
+ import { Command } from "commander";
2
+ import { apiRequest, handleApiError } from "../client.js";
3
+ import { agentOutput } from "../output.js";
4
+ export const integrationsCmd = new Command("integrations")
5
+ .alias("integration")
6
+ .description("3rd-party integrations — connect 250+ Composio toolkits (Gmail, GitHub, Linear, Notion, ...) and invoke their tools")
7
+ .addHelpText("after", `
8
+ Subcommands:
9
+ naive integrations list List toolkits + connection state
10
+ naive integrations connected List only connected toolkits
11
+ naive integrations connect <toolkit> Start OAuth/API-key flow → returns a redirect URL
12
+ naive integrations disconnect <toolkit> [--purge] Disable (default) or permanently delete connection
13
+ naive integrations tools <toolkit> List the tools exposed by a toolkit
14
+ naive integrations execute <toolkit> <tool> [--args] Invoke a Composio tool (costs 1 credit on success)
15
+
16
+ Common Toolkits:
17
+ gmail, googlecalendar, googledrive, github, linear, notion, slack,
18
+ airtable, hubspot, salesforce, stripe, shopify, calendly, twilio, zoom
19
+
20
+ Example:
21
+ $ naive integrations connect gmail
22
+ # Open the redirect_url, finish OAuth, then:
23
+ $ naive integrations execute gmail GMAIL_SEND_EMAIL \\
24
+ --args '{"recipient_email":"me@example.com","subject":"hi","body":"hello"}'
25
+
26
+ Cost:
27
+ - listing toolkits / tools / connecting / disconnecting: free
28
+ - executing a tool: 1 credit per successful call
29
+ `);
30
+ integrationsCmd
31
+ .command("list")
32
+ .description("List 3rd-party toolkits available via Composio (paged)")
33
+ .option("--search <q>", "Filter by name or slug substring")
34
+ .option("--cursor <c>", "Opaque cursor from previous response")
35
+ .option("--limit <n>", "Page size (max 50)")
36
+ .option("--connected", "Only show connected toolkits")
37
+ .action(async (opts) => {
38
+ const params = new URLSearchParams();
39
+ if (opts.search)
40
+ params.set("search", opts.search);
41
+ if (opts.cursor)
42
+ params.set("cursor", opts.cursor);
43
+ if (opts.limit)
44
+ params.set("limit", opts.limit);
45
+ if (opts.connected)
46
+ params.set("connected", "true");
47
+ const qs = params.toString();
48
+ const resp = await apiRequest("GET", `/v1/integrations${qs ? `?${qs}` : ""}`);
49
+ handleApiError("integrations.list", resp);
50
+ const data = resp.data;
51
+ agentOutput({
52
+ action: "integrations.list",
53
+ result: resp.data,
54
+ next_steps: [
55
+ { command: "naive integrations connect <toolkit>", description: "Connect a toolkit by slug" },
56
+ ...(data.nextCursor
57
+ ? [{ command: `naive integrations list --cursor ${data.nextCursor}`, description: "Fetch the next page" }]
58
+ : []),
59
+ ],
60
+ hints: [`${data.toolkits?.length ?? 0} toolkit(s) on this page`],
61
+ });
62
+ });
63
+ integrationsCmd
64
+ .command("connected")
65
+ .description("List only the toolkits this company has connected")
66
+ .option("--cursor <c>", "Opaque cursor from previous response")
67
+ .option("--limit <n>", "Page size (max 50)")
68
+ .action(async (opts) => {
69
+ const params = new URLSearchParams();
70
+ if (opts.cursor)
71
+ params.set("cursor", opts.cursor);
72
+ if (opts.limit)
73
+ params.set("limit", opts.limit);
74
+ const qs = params.toString();
75
+ const resp = await apiRequest("GET", `/v1/integrations/connected${qs ? `?${qs}` : ""}`);
76
+ handleApiError("integrations.connected", resp);
77
+ const data = resp.data;
78
+ agentOutput({
79
+ action: "integrations.connected",
80
+ result: resp.data,
81
+ next_steps: [
82
+ { command: "naive integrations tools <toolkit>", description: "Inspect a connected toolkit's tools" },
83
+ { command: "naive integrations execute <toolkit> <tool>", description: "Invoke a tool" },
84
+ ],
85
+ hints: [`${data.toolkits?.length ?? 0} connected toolkit(s)`],
86
+ });
87
+ });
88
+ integrationsCmd
89
+ .command("connect <toolkit>")
90
+ .description("Start an OAuth/API-key flow for a toolkit (returns a redirect URL)")
91
+ .option("--callback-url <url>", "Where Composio should send the user back after auth")
92
+ .action(async (toolkit, opts) => {
93
+ const body = { toolkit };
94
+ if (opts.callbackUrl)
95
+ body.callback_url = opts.callbackUrl;
96
+ const resp = await apiRequest("POST", "/v1/integrations/connect", body);
97
+ handleApiError("integrations.connect", resp);
98
+ const data = resp.data;
99
+ agentOutput({
100
+ action: "integrations.connect",
101
+ result: resp.data,
102
+ next_steps: [
103
+ { command: `naive integrations connected`, description: "Check connection status after finishing in-browser" },
104
+ { command: `naive integrations tools ${toolkit}`, description: "List tools once the connection is ACTIVE" },
105
+ ],
106
+ hints: [
107
+ data.redirectUrl
108
+ ? `Open this URL to finish connecting ${toolkit}:`
109
+ : `Connection initiated for ${toolkit} (no redirect needed — credentials supplied via API).`,
110
+ ...(data.redirectUrl ? [data.redirectUrl] : []),
111
+ `connected_account_id: ${data.connectedAccountId} · status: ${data.status}`,
112
+ ],
113
+ });
114
+ });
115
+ integrationsCmd
116
+ .command("disconnect <toolkit>")
117
+ .description("Disconnect a toolkit (soft-disable by default; --purge for permanent delete)")
118
+ .option("--purge", "Permanently delete the connection and revoke tokens")
119
+ .action(async (toolkit, opts) => {
120
+ const qs = opts.purge ? "?purge=true" : "";
121
+ const resp = await apiRequest("DELETE", `/v1/integrations/${encodeURIComponent(toolkit)}${qs}`);
122
+ handleApiError("integrations.disconnect", resp);
123
+ agentOutput({
124
+ action: "integrations.disconnect",
125
+ result: resp.data,
126
+ next_steps: [
127
+ { command: `naive integrations connect ${toolkit}`, description: "Reconnect this toolkit later" },
128
+ { command: "naive integrations connected", description: "List remaining connected toolkits" },
129
+ ],
130
+ hints: [opts.purge ? `Toolkit ${toolkit} permanently deleted.` : `Toolkit ${toolkit} disabled (reversible).`],
131
+ });
132
+ });
133
+ integrationsCmd
134
+ .command("tools <toolkit>")
135
+ .description("List the individual tools exposed by a toolkit")
136
+ .option("--search <q>", "Semantic search across tool descriptions")
137
+ .option("--limit <n>", "Max tools to return (default 100, max 200)")
138
+ .action(async (toolkit, opts) => {
139
+ const params = new URLSearchParams();
140
+ if (opts.search)
141
+ params.set("search", opts.search);
142
+ if (opts.limit)
143
+ params.set("limit", opts.limit);
144
+ const qs = params.toString();
145
+ const resp = await apiRequest("GET", `/v1/integrations/${encodeURIComponent(toolkit)}/tools${qs ? `?${qs}` : ""}`);
146
+ handleApiError("integrations.tools", resp);
147
+ const data = resp.data;
148
+ agentOutput({
149
+ action: "integrations.tools",
150
+ result: resp.data,
151
+ next_steps: [
152
+ { command: `naive integrations execute ${toolkit} <tool>`, description: "Invoke one of these tools" },
153
+ ],
154
+ hints: [`${data.tools?.length ?? 0} tool(s) returned for ${toolkit}`],
155
+ });
156
+ });
157
+ integrationsCmd
158
+ .command("execute <toolkit> <tool>")
159
+ .description("Invoke a Composio tool. Costs 1 credit on success.")
160
+ .option("--args <json>", "Tool arguments as JSON object", "{}")
161
+ .option("--connected-account-id <id>", "Override which connected account to use")
162
+ .action(async (toolkit, tool, opts) => {
163
+ let args = {};
164
+ try {
165
+ args = JSON.parse(opts.args ?? "{}");
166
+ }
167
+ catch (err) {
168
+ console.error(JSON.stringify({
169
+ success: false,
170
+ action: "integrations.execute",
171
+ error: { code: "invalid_input", message: `--args must be valid JSON: ${err.message}` },
172
+ recovery_steps: [
173
+ { command: `naive integrations execute ${toolkit} ${tool} --args '{"key":"value"}'`, description: "Retry with valid JSON" },
174
+ ],
175
+ }, null, 2));
176
+ process.exit(1);
177
+ }
178
+ const body = { tool, arguments: args };
179
+ if (opts.connectedAccountId)
180
+ body.connected_account_id = opts.connectedAccountId;
181
+ const resp = await apiRequest("POST", `/v1/integrations/${encodeURIComponent(toolkit)}/execute`, body);
182
+ handleApiError("integrations.execute", resp);
183
+ const data = resp.data;
184
+ const credits = typeof data.creditsRemaining === "number" ? data.creditsRemaining.toFixed(2) : "?";
185
+ agentOutput({
186
+ action: "integrations.execute",
187
+ result: resp.data,
188
+ next_steps: data.successful
189
+ ? [{ command: `naive integrations tools ${toolkit}`, description: "Discover related tools" }]
190
+ : [
191
+ { command: `naive integrations connected`, description: "Confirm the toolkit is connected" },
192
+ { command: `naive integrations connect ${toolkit}`, description: "Reconnect if the auth lapsed" },
193
+ ],
194
+ hints: data.successful
195
+ ? [`Executed ${tool} successfully. Credits remaining: ${credits}.`]
196
+ : [`Tool returned an error: ${data.error ?? "unknown"}`],
197
+ });
198
+ });
199
+ //# sourceMappingURL=integrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/commands/integrations.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,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,OAAO,CAAC,cAAc,CAAC;KACvD,KAAK,CAAC,aAAa,CAAC;KACpB,WAAW,CAAC,qHAAqH,CAAC;KAClI,WAAW,CAAC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;CAsBvB,CAAC,CAAC;AAEH,eAAe;KACZ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,wDAAwD,CAAC;KACrE,MAAM,CAAC,cAAc,EAAE,kCAAkC,CAAC;KAC1D,MAAM,CAAC,cA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,EAAE,WAAW,EAAE,8BAA8B,EAAE;aAClG;QACL,KAAK,EAAE,IAAI,CAAC,UAAU;YACpB,CAAC,CAAC,CAAC,YAAY,IAAI,qCAAqC,OAAO,GAAG,CAAC;YACnE,CAAC,CAAC,CAAC,2BAA2B,IAAI,CAAC,KAAK,IAAI,SAAS,EAAE,CAAC;KAC3D,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -22,7 +22,7 @@ logsCmd
22
22
  });
23
23
  logsCmd
24
24
  .command("all")
25
- .description("Cross-user log query (operator view)")
25
+ .description("Cross-user log query (agentProfile view)")
26
26
  .option("--action <action>", "Filter by action")
27
27
  .option("--user <id>", "Filter by user id")
28
28
  .option("--limit <n>", "Max events", "100")
@@ -1 +1 @@
1
- {"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/commands/logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;AAEjF,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,wCAAwC,CAAC;KACrD,MAAM,CAAC,aAAa,EAAE,+BAA+B,CAAC;KACtD,MAAM,CAAC,mBAAmB,EAAE,mCAAmC,CAAC;KAChE,MAAM,CAAC,aAAa,EAAE,YAAY,EAAE,IAAI,CAAC;KACzC,MAAM,CAAC,KAAK,EAAE,IAAwD,EAAE,EAAE;IACzE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,YAAY,EAAE,IAAI,SAAS,CAAC;IACtD,MAAM,EAAE,GAAG,IAAI,eAAe,EAAE,CAAC;IACjC,IAAI,IAAI,CAAC,MA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AAC,KAAK,CAAC,CAAC;IAC5C,MAAM,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;IACxB,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACpE,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Command } from "commander";
2
+ /**
3
+ * Modules — first-party (closed, regulated), open (OSS), or custom capabilities
4
+ * an agent profile can use. `module add` connects/enables a capability for the active
5
+ * subject; under the hood first-party modules are native primitives and open
6
+ * modules map to connections/toolkits.
7
+ */
8
+ export declare const moduleCmd: Command;
@@ -0,0 +1,48 @@
1
+ import { Command } from "commander";
2
+ import { apiRequest, handleApiError, activeUserId } from "../client.js";
3
+ import { agentOutput } from "../output.js";
4
+ function userPath(user) {
5
+ return `/v1/users/${user ?? activeUserId() ?? "default"}`;
6
+ }
7
+ /**
8
+ * Modules — first-party (closed, regulated), open (OSS), or custom capabilities
9
+ * an agent profile can use. `module add` connects/enables a capability for the active
10
+ * subject; under the hood first-party modules are native primitives and open
11
+ * modules map to connections/toolkits.
12
+ */
13
+ export const moduleCmd = new Command("module")
14
+ .alias("modules")
15
+ .description("Add and list modules (capabilities) available to your agent profiles");
16
+ moduleCmd
17
+ .command("list")
18
+ .description("List available modules (native primitives + connected toolkits)")
19
+ .action(async () => {
20
+ const resp = await apiRequest("GET", `/v1/toolkits`);
21
+ handleApiError("module.list", resp);
22
+ agentOutput({
23
+ action: "module.list",
24
+ result: resp.data,
25
+ next_steps: [{ command: "naive module add <name>", description: "Enable a module for your agent profile" }],
26
+ hints: ["First-party regulated modules (identity, cards, comms) are always available; open modules map to connections/toolkits."],
27
+ });
28
+ });
29
+ moduleCmd
30
+ .command("add")
31
+ .description("Add a module (open/custom capability) for the active subject")
32
+ .argument("<name>", "Module/toolkit slug to add (e.g. apollo, slack, github)")
33
+ .option("--user <id>", "Tenant id to scope the module to")
34
+ .action(async (name, opts) => {
35
+ // Open modules are Composio toolkits → use the connections flow.
36
+ const resp = await apiRequest("POST", `${userPath(opts.user)}/connections/connect`, { toolkit: name }, { userId: opts.user });
37
+ handleApiError("module.add", resp);
38
+ agentOutput({
39
+ action: "module.add",
40
+ result: resp.data,
41
+ next_steps: [
42
+ { command: "naive connections", description: "List connected modules/integrations" },
43
+ { command: "naive module list", description: "Browse available modules" },
44
+ ],
45
+ hints: [`Adding module '${name}'. Complete any OAuth in the returned URL if present.`],
46
+ });
47
+ });
48
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/commands/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,SAAS,QAAQ,CAAC,IAAa;IAC7B,OAAO,aAAa,IAAI,IAAI,YAAY,EAAE,IAAI,SAAS,EAAE,CAAC;AAC5D,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;KAC3C,KAAK,CAAC,SAAS,CAAC;KAChB,WAAW,CAAC,sEAAsE,CAAC,CAAC;AAEvF,SAAS;KACN,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,iEAAiE,CAAC;KAC9E,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IACrD,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IACpC,WAAW,CAAC;QACV,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;QAC3G,KAAK,EAAE,CAAC,wHAAwH,CAAC;KAClI,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,SAAS;KACN,OAAO,CAAC,KAAK,CAAC;KACd,WAAW,CAAC,8DAA8D,CAAC;KAC3E,QAAQ,CAAC,QAAQ,EAAE,yDAAyD,CAAC;KAC7E,MAAM,CAAC,aAAa,EAAE,kCAAkC,CAAC;KACzD,MAAM,CAAC,KAAK,EAAE,IAAY,EAAE,IAAuB,EAAE,EAAE;IACtD,iEAAiE;IACjE,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9H,cAAc,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IACnC,WAAW,CAAC;QACV,MAAM,EAAE,YAAY;QACpB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE;YACV,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,qCAAqC,EAAE;YACpF,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,0BAA0B,EAAE;SAC1E;QACD,KAAK,EAAE,CAAC,kBAAkB,IAAI,uDAAuD,CAAC;KACvF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { Command } from "commander";
2
+ /**
3
+ * Operators — the per-tenant governed real-world bundle (identity, money, comms,
4
+ * runtime), governed on every action and instantly revocable.
5
+ */
6
+ export declare const operatorsCmd: Command;
7
+ /**
8
+ * Top-level `naive revoke` sugar — revoke an operator (or, with --tenant, the
9
+ * operator for that tenant).
10
+ */
11
+ export declare const revokeCmd: Command;
@@ -0,0 +1,120 @@
1
+ import { Command } from "commander";
2
+ import { apiRequest, handleApiError, activeUserId } from "../client.js";
3
+ import { agentOutput } from "../output.js";
4
+ /**
5
+ * Operators — the per-tenant governed real-world bundle (identity, money, comms,
6
+ * runtime), governed on every action and instantly revocable.
7
+ */
8
+ export const operatorsCmd = new Command("operators")
9
+ .alias("operator")
10
+ .description("Provision & govern a real-world operator per tenant (identity, card, comms, runtime)");
11
+ operatorsCmd
12
+ .command("provision")
13
+ .description("Provision a governed operator for a tenant from a template")
14
+ .argument("<template>", "Template name (registered via naive.config.ts / naive up)")
15
+ .option("--user <id>", "Tenant id to provision the operator for (defaults to the active/default user)")
16
+ .option("--idempotency-key <key>", "Idempotency key — a retried provision resumes the same operator")
17
+ .option("--overrides <json>", "JSON overrides applied on top of the template (legalName, domain, …)")
18
+ .action(async (template, opts) => {
19
+ const user = opts.user ?? activeUserId() ?? "default";
20
+ let overrides;
21
+ if (opts.overrides) {
22
+ try {
23
+ overrides = JSON.parse(opts.overrides);
24
+ }
25
+ catch {
26
+ agentOutput({
27
+ action: "operators.provision",
28
+ result: { error: "invalid --overrides JSON" },
29
+ next_steps: [{ command: "naive operators provision <template> --overrides '{\"identity\":{\"legalName\":\"Acme\"}}'", description: "Valid JSON" }],
30
+ });
31
+ return;
32
+ }
33
+ }
34
+ const resp = await apiRequest("POST", `/v1/users/${user}/operators`, {
35
+ template,
36
+ idempotency_key: opts.idempotencyKey,
37
+ overrides,
38
+ });
39
+ handleApiError("operators.provision", resp);
40
+ const op = resp.data;
41
+ agentOutput({
42
+ action: "operators.provision",
43
+ result: resp.data,
44
+ next_steps: [
45
+ { command: `naive operators get ${op.id ?? "<id>"}`, description: "Check provisioning status" },
46
+ { command: `naive operators revoke ${op.id ?? "<id>"}`, description: "Absolute revoke (freeze card, halt sends)" },
47
+ ],
48
+ hints: [
49
+ "Pull the operator's governed tools with @usenaive/server: const tools = await op.tools().",
50
+ "Run the agent on your own runtime (Eve / AgentCore / LangGraph) — governance is constant.",
51
+ ],
52
+ });
53
+ });
54
+ operatorsCmd
55
+ .command("list")
56
+ .description("List provisioned operators")
57
+ .action(async () => {
58
+ const resp = await apiRequest("GET", `/v1/operators`);
59
+ handleApiError("operators.list", resp);
60
+ agentOutput({
61
+ action: "operators.list",
62
+ result: resp.data,
63
+ next_steps: [{ command: "naive operators get <id>", description: "Inspect one operator" }],
64
+ });
65
+ });
66
+ operatorsCmd
67
+ .command("get")
68
+ .description("Get an operator's status")
69
+ .argument("<id>", "Operator id")
70
+ .action(async (id) => {
71
+ const resp = await apiRequest("GET", `/v1/operators/${id}`);
72
+ handleApiError("operators.get", resp);
73
+ agentOutput({
74
+ action: "operators.get",
75
+ result: resp.data,
76
+ next_steps: [{ command: `naive operators revoke ${id}`, description: "Absolute revoke" }],
77
+ });
78
+ });
79
+ operatorsCmd
80
+ .command("revoke")
81
+ .description("Absolute revoke — freeze the card, halt sends, tear down runtime")
82
+ .argument("<id>", "Operator id")
83
+ .action(async (id) => {
84
+ const resp = await apiRequest("POST", `/v1/operators/${id}/revoke`);
85
+ handleApiError("operators.revoke", resp);
86
+ agentOutput({
87
+ action: "operators.revoke",
88
+ result: resp.data,
89
+ next_steps: [{ command: "naive operators list", description: "Confirm the operator is revoked" }],
90
+ hints: ["Revoke is absolute: the governance gateway denies all further tool calls for this operator."],
91
+ });
92
+ });
93
+ /**
94
+ * Top-level `naive revoke` sugar — revoke an operator (or, with --tenant, the
95
+ * operator for that tenant).
96
+ */
97
+ export const revokeCmd = new Command("revoke")
98
+ .description("Absolute revoke of an operator (sugar for `naive operators revoke`)")
99
+ .argument("[id]", "Operator id")
100
+ .option("--operator <id>", "Operator id")
101
+ .option("--tenant <id>", "Tenant id (its operator id equals the tenant id)")
102
+ .action(async (idArg, opts) => {
103
+ const id = idArg ?? opts.operator ?? opts.tenant;
104
+ if (!id) {
105
+ agentOutput({
106
+ action: "revoke",
107
+ result: { error: "missing operator id" },
108
+ next_steps: [{ command: "naive revoke <operator_id>", description: "Provide an operator id" }],
109
+ });
110
+ return;
111
+ }
112
+ const resp = await apiRequest("POST", `/v1/operators/${id}/revoke`);
113
+ handleApiError("revoke", resp);
114
+ agentOutput({
115
+ action: "revoke",
116
+ result: resp.data,
117
+ next_steps: [{ command: "naive operators list", description: "Confirm revoked" }],
118
+ });
119
+ });
120
+ //# sourceMappingURL=operators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operators.js","sourceRoot":"","sources":["../../src/commands/operators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,OAAO,CAAC,WAAW,CAAC;KACjD,KAAK,CAAC,UAAU,CAAC;KACjB,WAAW,CAAC,sFAAsF,CAAC,CAAC;AAEvG,YAAY;KACT,OAAO,CAAC,WAAW,CAAC;KACpB,WAAW,CAAC,4DAA4D,CAAC;KACzE,QAAQ,CAAC,YAAY,EAAE,2DAA2D,CAAC;KACnF,MAAM,CAAC,aAAa,EAAE,+EAA+E,CAAC;KACtG,MAAM,CAAC,yBAAyB,EAAE,iEAAiE,CAAC;KACpG,MAAM,CAAC,oBAAoB,EAAE,sEAAsE,CAAC;KACpG,MAAM,CAAC,KAAK,EAAE,QAAgB,EAAE,IAAoE,EAAE,EAAE;IACvG,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,YAAY,EAAE,IAAI,SAAS,CAAC;IACtD,IAAI,SAA8C,CAAC;IACnD,IAAI,IAAI,CAAC,SAAS,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jG,KAAK,EAAE,CAAC,6FAA6F,CAAC;KACvG,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;KAC3C,WAAW,CAAC,qEAAqE,CAAC;KAClF,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;KAC/B,MAAM,CAAC,iBAAiB,EAAE,aAAa,CAAC;KACxC,MAAM,CAAC,eAAe,EAAE,kDAAkD,CAAC;KAC3E,MAAM,CAAC,KAAK,EAAE,KAAyB,EAAE,IAA4C,EAAE,EAAE;IACxF,MAAM,EAAE,GAAG,KAAK,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC;IACjD,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,WAAW,CAAC;YACV,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE;YACxC,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;SAC/F,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,iBAAiB,EAAE,SAAS,CAAC,CAAC;IACpE,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC/B,WAAW,CAAC;QACV,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;KAClF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { Command } from "commander";
2
+ interface ReportInput {
3
+ message: string;
4
+ kind?: "error" | "feedback";
5
+ command?: string;
6
+ sessionId?: string;
7
+ stack?: string;
8
+ }
9
+ /**
10
+ * Programmatic, best-effort report. Used by the auto-report path (a Claude
11
+ * subagent, or a future top-level error boundary behind NAIVE_AUTO_REPORT).
12
+ * NEVER throws and never exits — a failed report must not mask the original
13
+ * error. Stays silent if there's no API key (can't report unauthenticated).
14
+ */
15
+ export declare function reportError(input: ReportInput): Promise<void>;
16
+ export declare const reportCmd: Command;
17
+ export {};