@usenaive-sdk/cli 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/commands/aeo.js +2 -2
- package/dist/commands/aeo.js.map +1 -1
- package/dist/commands/approvals.js +142 -9
- package/dist/commands/approvals.js.map +1 -1
- package/dist/commands/audio.js +1 -1
- package/dist/commands/audio.js.map +1 -1
- package/dist/commands/auth.js +27 -2
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/brain.js +57 -12
- package/dist/commands/brain.js.map +1 -1
- package/dist/commands/browser.js +1 -1
- package/dist/commands/clone.js +2 -2
- package/dist/commands/clone.js.map +1 -1
- package/dist/commands/compute.js +285 -15
- package/dist/commands/compute.js.map +1 -1
- package/dist/commands/connections.js +13 -1
- package/dist/commands/connections.js.map +1 -1
- package/dist/commands/cron-jobs.js +37 -0
- package/dist/commands/cron-jobs.js.map +1 -1
- package/dist/commands/domains.js +62 -18
- package/dist/commands/domains.js.map +1 -1
- package/dist/commands/formation.js +2 -2
- package/dist/commands/formation.js.map +1 -1
- package/dist/commands/images.js +2 -2
- package/dist/commands/images.js.map +1 -1
- package/dist/commands/init.d.ts +1 -1
- package/dist/commands/init.js +9 -51
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/llm.js +1 -1
- package/dist/commands/llm.js.map +1 -1
- package/dist/commands/logout.d.ts +7 -0
- package/dist/commands/logout.js +55 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/people.js +4 -0
- package/dist/commands/people.js.map +1 -1
- package/dist/commands/phone.js +37 -5
- package/dist/commands/phone.js.map +1 -1
- package/dist/commands/sandbox.js +334 -21
- package/dist/commands/sandbox.js.map +1 -1
- package/dist/commands/search.js +1 -1
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/social-data.js +4 -3
- package/dist/commands/social-data.js.map +1 -1
- package/dist/commands/social.js +1 -1
- package/dist/commands/social.js.map +1 -1
- package/dist/commands/support.d.ts +2 -0
- package/dist/commands/support.js +134 -0
- package/dist/commands/support.js.map +1 -0
- package/dist/commands/tasks.js +9 -0
- package/dist/commands/tasks.js.map +1 -1
- package/dist/commands/teams.d.ts +3 -3
- package/dist/commands/teams.js +5 -5
- package/dist/commands/up.js +113 -6
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/vault.js +3 -0
- package/dist/commands/vault.js.map +1 -1
- package/dist/commands/verification.js +1 -1
- package/dist/commands/verification.js.map +1 -1
- package/dist/commands/video.js +3 -3
- package/dist/commands/video.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.js +14 -0
- package/dist/config.js.map +1 -1
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/config-errors.d.ts +4 -0
- package/dist/lib/config-errors.js +13 -0
- package/dist/lib/config-errors.js.map +1 -0
- package/dist/lib/starter-config.d.ts +13 -0
- package/dist/lib/starter-config.js +71 -0
- package/dist/lib/starter-config.js.map +1 -0
- package/dist/lib/teams-catalog.js +81 -5
- package/dist/lib/teams-catalog.js.map +1 -1
- package/dist/lib/unknown-command.d.ts +18 -4
- package/dist/lib/unknown-command.js +45 -6
- package/dist/lib/unknown-command.js.map +1 -1
- package/dist/output.d.ts +28 -0
- package/dist/output.js +29 -1
- package/dist/output.js.map +1 -1
- package/package.json +1 -1
package/dist/commands/compute.js
CHANGED
|
@@ -2,6 +2,54 @@ import { Command } from "commander";
|
|
|
2
2
|
import { spawnSync } from "node:child_process";
|
|
3
3
|
import { apiRequest, handleApiError, handlePendingApproval } from "../client.js";
|
|
4
4
|
import { agentOutput } from "../output.js";
|
|
5
|
+
/**
|
|
6
|
+
* THE SUCCESS ENVELOPE.
|
|
7
|
+
*
|
|
8
|
+
* `naive --help` promises "every command returns structured JSON with result
|
|
9
|
+
* data, next steps, and contextual guidance for autonomous operation"
|
|
10
|
+
* (index.ts), /cli/overview documents the same shape, and the CLI's whole claim
|
|
11
|
+
* to be agent-native rests on it. Every `agentOutput` below therefore carries
|
|
12
|
+
* non-empty `next_steps` and `hints`; `compute` shipped with 15 of its 16
|
|
13
|
+
* success envelopes passing `next_steps: []`, so an agent that ran a workload
|
|
14
|
+
* got the data and no route onward.
|
|
15
|
+
*
|
|
16
|
+
* Both are DERIVED from the response the API just returned — the id in a
|
|
17
|
+
* suggested command is the id the API echoed, a hint restates a field it
|
|
18
|
+
* actually sent — so neither can drift from what the platform did. This is the
|
|
19
|
+
* same rule `creditCostHint` follows in output.ts. Where the API returns its own
|
|
20
|
+
* advisory `hint` (`compute logs` on a service with no running task), it is
|
|
21
|
+
* lifted into `hints` instead of being left buried inside `result`.
|
|
22
|
+
*/
|
|
23
|
+
/** The id for a suggested command: the one the API echoed, else what the caller
|
|
24
|
+
* typed, so a next step is copy-pasteable rather than a `<id>` placeholder. */
|
|
25
|
+
function wid(data, typed) {
|
|
26
|
+
const id = data?.id;
|
|
27
|
+
return typeof id === "string" && id ? id : (typed ?? "<id>");
|
|
28
|
+
}
|
|
29
|
+
/** Hints echoed off a workload the API returned — restated, never asserted. */
|
|
30
|
+
function workloadHints(data) {
|
|
31
|
+
const w = (data ?? {});
|
|
32
|
+
const out = [];
|
|
33
|
+
if (typeof w.type === "string")
|
|
34
|
+
out.push(`Type: ${w.type}`);
|
|
35
|
+
if (typeof w.status === "string")
|
|
36
|
+
out.push(`Status: ${w.status}`);
|
|
37
|
+
if (typeof w.desired_count === "number")
|
|
38
|
+
out.push(`Desired replicas: ${w.desired_count}`);
|
|
39
|
+
if (typeof w.public_url === "string" && w.public_url)
|
|
40
|
+
out.push(`Public URL: ${w.public_url}`);
|
|
41
|
+
return out;
|
|
42
|
+
}
|
|
43
|
+
/** The API's own advisory `hint`, lifted out of `result` where it sent one. */
|
|
44
|
+
function apiHint(data) {
|
|
45
|
+
const h = data?.hint;
|
|
46
|
+
return typeof h === "string" && h ? [h] : [];
|
|
47
|
+
}
|
|
48
|
+
/** `service` runs continuously (start/stop/scale); `job`/`schedule` are triggered (run). */
|
|
49
|
+
function isService(data, typed) {
|
|
50
|
+
const t = data?.type;
|
|
51
|
+
return (typeof t === "string" ? t : typed) === "service";
|
|
52
|
+
}
|
|
5
53
|
export const computeCmd = new Command("compute")
|
|
6
54
|
.description("Compute — run Docker containers, background workers & scheduled jobs on managed cloud compute (ECS/Fargate)")
|
|
7
55
|
.addHelpText("after", `
|
|
@@ -43,7 +91,27 @@ computeCmd
|
|
|
43
91
|
.action(async () => {
|
|
44
92
|
const resp = await apiRequest("GET", "/v1/compute");
|
|
45
93
|
handleApiError("compute.list", resp);
|
|
46
|
-
|
|
94
|
+
const workloads = (resp.data?.compute ?? []);
|
|
95
|
+
const first = workloads[0]?.id ?? "<id>";
|
|
96
|
+
agentOutput({
|
|
97
|
+
action: "compute.list",
|
|
98
|
+
result: resp.data,
|
|
99
|
+
next_steps: [
|
|
100
|
+
{ command: `naive compute show ${first}`, description: "Inspect a workload — type, status, replicas, public URL" },
|
|
101
|
+
{ command: `naive compute logs ${first}`, description: "Tail its logs", when: "it is not behaving as expected" },
|
|
102
|
+
{
|
|
103
|
+
command: "naive compute create --name <name> --type service --image <image>",
|
|
104
|
+
description: "Create another workload",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
hints: [
|
|
108
|
+
`${workloads.length} workload${workloads.length === 1 ? "" : "s"}.`,
|
|
109
|
+
...(workloads.length === 0
|
|
110
|
+
? ["Nothing to act on yet — create a service, job or schedule first."]
|
|
111
|
+
: [`Statuses: ${[...new Set(workloads.map((w) => w.status ?? "unknown"))].join(", ")}.`]),
|
|
112
|
+
],
|
|
113
|
+
related_commands: ["naive compute create", "naive compute show", "naive compute logs"],
|
|
114
|
+
});
|
|
47
115
|
});
|
|
48
116
|
computeCmd
|
|
49
117
|
.command("create")
|
|
@@ -86,7 +154,28 @@ computeCmd
|
|
|
86
154
|
if (handlePendingApproval("compute.create", resp))
|
|
87
155
|
return;
|
|
88
156
|
handleApiError("compute.create", resp);
|
|
89
|
-
|
|
157
|
+
const id = wid(resp.data);
|
|
158
|
+
agentOutput({
|
|
159
|
+
action: "compute.create",
|
|
160
|
+
result: resp.data,
|
|
161
|
+
next_steps: [
|
|
162
|
+
{ command: `naive compute show ${id}`, description: "Poll until status leaves provisioning" },
|
|
163
|
+
isService(resp.data, opts.type)
|
|
164
|
+
? { command: `naive compute scale ${id} 1`, description: "Set the running replica count" }
|
|
165
|
+
: { command: `naive compute run ${id}`, description: "Trigger the first run now" },
|
|
166
|
+
{ command: `naive compute logs ${id}`, description: "Tail its logs" },
|
|
167
|
+
{
|
|
168
|
+
command: `naive compute secret set ${id} <KEY> <VALUE>`,
|
|
169
|
+
description: "Set an encrypted env var",
|
|
170
|
+
when: "the container needs a credential",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
hints: [
|
|
174
|
+
...workloadHints(resp.data),
|
|
175
|
+
"Provisioning is asynchronous — `compute show` reports when it is live.",
|
|
176
|
+
],
|
|
177
|
+
related_commands: ["naive compute show", "naive compute logs", "naive compute delete"],
|
|
178
|
+
});
|
|
90
179
|
});
|
|
91
180
|
computeCmd
|
|
92
181
|
.command("show <id>")
|
|
@@ -94,7 +183,26 @@ computeCmd
|
|
|
94
183
|
.action(async (id) => {
|
|
95
184
|
const resp = await apiRequest("GET", `/v1/compute/${id}`);
|
|
96
185
|
handleApiError("compute.show", resp);
|
|
97
|
-
|
|
186
|
+
const wl = wid(resp.data, id);
|
|
187
|
+
agentOutput({
|
|
188
|
+
action: "compute.show",
|
|
189
|
+
result: resp.data,
|
|
190
|
+
next_steps: [
|
|
191
|
+
{ command: `naive compute logs ${wl}`, description: "Tail its logs" },
|
|
192
|
+
...(isService(resp.data)
|
|
193
|
+
? [
|
|
194
|
+
{ command: `naive compute scale ${wl} <count>`, description: "Change the running replica count" },
|
|
195
|
+
{ command: `naive compute stop ${wl}`, description: "Scale to zero", when: "you are done with it" },
|
|
196
|
+
]
|
|
197
|
+
: [
|
|
198
|
+
{ command: `naive compute run ${wl}`, description: "Trigger a run now" },
|
|
199
|
+
{ command: `naive compute runs ${wl}`, description: "List past runs" },
|
|
200
|
+
]),
|
|
201
|
+
{ command: `naive compute delete ${wl}`, description: "Delete the workload", when: "it is no longer needed" },
|
|
202
|
+
],
|
|
203
|
+
hints: [...workloadHints(resp.data), "`compute logs` is the fastest way to see why a status is not what you expect."],
|
|
204
|
+
related_commands: ["naive compute list", "naive compute logs", "naive compute delete"],
|
|
205
|
+
});
|
|
98
206
|
});
|
|
99
207
|
computeCmd
|
|
100
208
|
.command("delete <id>")
|
|
@@ -102,7 +210,23 @@ computeCmd
|
|
|
102
210
|
.action(async (id) => {
|
|
103
211
|
const resp = await apiRequest("DELETE", `/v1/compute/${id}`);
|
|
104
212
|
handleApiError("compute.delete", resp);
|
|
105
|
-
agentOutput({
|
|
213
|
+
agentOutput({
|
|
214
|
+
action: "compute.delete",
|
|
215
|
+
result: resp.data,
|
|
216
|
+
next_steps: [
|
|
217
|
+
{ command: "naive compute list", description: "Confirm what is left" },
|
|
218
|
+
{
|
|
219
|
+
command: "naive compute create --name <name> --type service --image <image>",
|
|
220
|
+
description: "Create a replacement",
|
|
221
|
+
when: "you deleted it to redeploy",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
hints: [
|
|
225
|
+
...workloadHints(resp.data),
|
|
226
|
+
"Deleting stops the workload's in-flight runs; its secrets go with it.",
|
|
227
|
+
],
|
|
228
|
+
related_commands: ["naive compute list", "naive compute create"],
|
|
229
|
+
});
|
|
106
230
|
});
|
|
107
231
|
for (const verb of ["start", "stop"]) {
|
|
108
232
|
computeCmd
|
|
@@ -111,7 +235,24 @@ for (const verb of ["start", "stop"]) {
|
|
|
111
235
|
.action(async (id) => {
|
|
112
236
|
const resp = await apiRequest("POST", `/v1/compute/${id}/${verb}`);
|
|
113
237
|
handleApiError(`compute.${verb}`, resp);
|
|
114
|
-
|
|
238
|
+
const wl = wid(resp.data, id);
|
|
239
|
+
agentOutput({
|
|
240
|
+
action: `compute.${verb}`,
|
|
241
|
+
result: resp.data,
|
|
242
|
+
next_steps: [
|
|
243
|
+
{ command: `naive compute show ${wl}`, description: "Confirm the new status and replica count" },
|
|
244
|
+
verb === "start"
|
|
245
|
+
? { command: `naive compute logs ${wl}`, description: "Watch it come up" }
|
|
246
|
+
: { command: `naive compute start ${wl}`, description: "Wake it again", when: "you need it back" },
|
|
247
|
+
],
|
|
248
|
+
hints: [
|
|
249
|
+
...workloadHints(resp.data),
|
|
250
|
+
verb === "start"
|
|
251
|
+
? "Start sets the desired replica count to 1; use `scale` for any other count."
|
|
252
|
+
: "Stop sets the desired replica count to 0 — the workload is kept, not deleted.",
|
|
253
|
+
],
|
|
254
|
+
related_commands: ["naive compute show", "naive compute scale", "naive compute logs"],
|
|
255
|
+
});
|
|
115
256
|
});
|
|
116
257
|
}
|
|
117
258
|
computeCmd
|
|
@@ -120,7 +261,17 @@ computeCmd
|
|
|
120
261
|
.action(async (id, count) => {
|
|
121
262
|
const resp = await apiRequest("POST", `/v1/compute/${id}/scale`, { count: Number(count) });
|
|
122
263
|
handleApiError("compute.scale", resp);
|
|
123
|
-
|
|
264
|
+
const wl = wid(resp.data, id);
|
|
265
|
+
agentOutput({
|
|
266
|
+
action: "compute.scale",
|
|
267
|
+
result: resp.data,
|
|
268
|
+
next_steps: [
|
|
269
|
+
{ command: `naive compute show ${wl}`, description: "Confirm the running replica count" },
|
|
270
|
+
{ command: `naive compute logs ${wl}`, description: "Watch the new replicas start" },
|
|
271
|
+
],
|
|
272
|
+
hints: [...workloadHints(resp.data), "Scaling to 0 is the same as `compute stop` — the workload is kept."],
|
|
273
|
+
related_commands: ["naive compute show", "naive compute start", "naive compute stop"],
|
|
274
|
+
});
|
|
124
275
|
});
|
|
125
276
|
computeCmd
|
|
126
277
|
.command("run <id>")
|
|
@@ -130,7 +281,20 @@ computeCmd
|
|
|
130
281
|
const body = opts.command ? { command: String(opts.command).split(" ") } : {};
|
|
131
282
|
const resp = await apiRequest("POST", `/v1/compute/${id}/run`, body);
|
|
132
283
|
handleApiError("compute.run", resp);
|
|
133
|
-
|
|
284
|
+
const runId = wid(resp.data);
|
|
285
|
+
agentOutput({
|
|
286
|
+
action: "compute.run",
|
|
287
|
+
result: resp.data,
|
|
288
|
+
next_steps: [
|
|
289
|
+
{ command: `naive compute logs ${id} --run ${runId}`, description: "Tail this run's logs" },
|
|
290
|
+
{ command: `naive compute runs ${id}`, description: "Poll the run's status" },
|
|
291
|
+
],
|
|
292
|
+
hints: [
|
|
293
|
+
...workloadHints(resp.data),
|
|
294
|
+
"The run is asynchronous — this returns the run id, not its result.",
|
|
295
|
+
],
|
|
296
|
+
related_commands: ["naive compute runs", "naive compute logs"],
|
|
297
|
+
});
|
|
134
298
|
});
|
|
135
299
|
computeCmd
|
|
136
300
|
.command("runs <id>")
|
|
@@ -138,7 +302,23 @@ computeCmd
|
|
|
138
302
|
.action(async (id) => {
|
|
139
303
|
const resp = await apiRequest("GET", `/v1/compute/${id}/runs`);
|
|
140
304
|
handleApiError("compute.runs", resp);
|
|
141
|
-
|
|
305
|
+
const runs = (resp.data?.runs ?? []);
|
|
306
|
+
const latest = runs[0]?.id ?? "<runId>";
|
|
307
|
+
agentOutput({
|
|
308
|
+
action: "compute.runs",
|
|
309
|
+
result: resp.data,
|
|
310
|
+
next_steps: [
|
|
311
|
+
{ command: `naive compute logs ${id} --run ${latest}`, description: "Tail a specific run's logs" },
|
|
312
|
+
{ command: `naive compute run ${id}`, description: "Trigger another run" },
|
|
313
|
+
],
|
|
314
|
+
hints: [
|
|
315
|
+
`${runs.length} run${runs.length === 1 ? "" : "s"}.`,
|
|
316
|
+
...(runs.length === 0
|
|
317
|
+
? ["No runs yet — `compute run <id>` triggers the first one."]
|
|
318
|
+
: [`Latest run status: ${runs[0]?.status ?? "unknown"}.`]),
|
|
319
|
+
],
|
|
320
|
+
related_commands: ["naive compute run", "naive compute logs"],
|
|
321
|
+
});
|
|
142
322
|
});
|
|
143
323
|
computeCmd
|
|
144
324
|
.command("logs <id>")
|
|
@@ -151,7 +331,24 @@ computeCmd
|
|
|
151
331
|
: `/v1/compute/${id}/logs?limit=${opts.limit}`;
|
|
152
332
|
const resp = await apiRequest("GET", path);
|
|
153
333
|
handleApiError("compute.logs", resp);
|
|
154
|
-
|
|
334
|
+
const events = (resp.data?.events ?? []);
|
|
335
|
+
agentOutput({
|
|
336
|
+
action: "compute.logs",
|
|
337
|
+
result: resp.data,
|
|
338
|
+
next_steps: [
|
|
339
|
+
{ command: `naive compute show ${id}`, description: "Check the workload's status" },
|
|
340
|
+
{ command: `naive compute logs ${id} --limit 1000`, description: "Widen the window", when: "you need more history" },
|
|
341
|
+
{ command: `naive compute runs ${id}`, description: "Pick a specific run to tail" },
|
|
342
|
+
],
|
|
343
|
+
hints: [
|
|
344
|
+
`${events.length} log event${events.length === 1 ? "" : "s"}.`,
|
|
345
|
+
// The API returns its own advisory when there is no stream to read
|
|
346
|
+
// ("No running tasks…", "No runs yet…"). Surface it rather than leaving
|
|
347
|
+
// an agent to find it inside `result`.
|
|
348
|
+
...apiHint(resp.data),
|
|
349
|
+
],
|
|
350
|
+
related_commands: ["naive compute show", "naive compute runs"],
|
|
351
|
+
});
|
|
155
352
|
});
|
|
156
353
|
computeCmd
|
|
157
354
|
.command("exec <id> <command>")
|
|
@@ -161,7 +358,19 @@ computeCmd
|
|
|
161
358
|
if (handlePendingApproval("compute.exec", resp))
|
|
162
359
|
return;
|
|
163
360
|
handleApiError("compute.exec", resp);
|
|
164
|
-
agentOutput({
|
|
361
|
+
agentOutput({
|
|
362
|
+
action: "compute.exec",
|
|
363
|
+
result: resp.data,
|
|
364
|
+
next_steps: [
|
|
365
|
+
{ command: `naive compute ssh ${id}`, description: "Open an interactive shell instead" },
|
|
366
|
+
{ command: `naive compute logs ${id}`, description: "Read what the command wrote to the log stream" },
|
|
367
|
+
],
|
|
368
|
+
hints: [
|
|
369
|
+
...apiHint(resp.data),
|
|
370
|
+
"exec brokers an SSM session against a RUNNING task — start/scale a service, or run a job, first.",
|
|
371
|
+
],
|
|
372
|
+
related_commands: ["naive compute ssh", "naive compute logs"],
|
|
373
|
+
});
|
|
165
374
|
});
|
|
166
375
|
computeCmd
|
|
167
376
|
.command("ssh <id>")
|
|
@@ -174,7 +383,19 @@ computeCmd
|
|
|
174
383
|
handleApiError("compute.ssh", resp);
|
|
175
384
|
const data = resp.data;
|
|
176
385
|
if (!data.session) {
|
|
177
|
-
agentOutput({
|
|
386
|
+
agentOutput({
|
|
387
|
+
action: "compute.ssh",
|
|
388
|
+
result: resp.data,
|
|
389
|
+
next_steps: [
|
|
390
|
+
{ command: `naive compute show ${id}`, description: "Check the workload has a running task to attach to" },
|
|
391
|
+
{ command: `naive compute logs ${id}`, description: "Read the logs instead" },
|
|
392
|
+
],
|
|
393
|
+
hints: [
|
|
394
|
+
...apiHint(resp.data),
|
|
395
|
+
"No SSM session was returned, so there is nothing to attach to yet.",
|
|
396
|
+
],
|
|
397
|
+
related_commands: ["naive compute show", "naive compute exec"],
|
|
398
|
+
});
|
|
178
399
|
return;
|
|
179
400
|
}
|
|
180
401
|
const region = data.region ?? "us-east-1";
|
|
@@ -191,12 +412,16 @@ computeCmd
|
|
|
191
412
|
agentOutput({
|
|
192
413
|
action: "compute.ssh",
|
|
193
414
|
result: { session: data.session, region },
|
|
194
|
-
next_steps: [
|
|
415
|
+
next_steps: [
|
|
416
|
+
{ command: `naive compute exec ${id} "<command>"`, description: "Run a one-off command without the plugin" },
|
|
417
|
+
{ command: `naive compute logs ${id}`, description: "Read the logs instead" },
|
|
418
|
+
],
|
|
195
419
|
hints: [
|
|
196
420
|
"The AWS session-manager-plugin is required for the interactive shell and was not found on PATH.",
|
|
197
421
|
"Install it: https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html",
|
|
198
422
|
"The returned session (streamUrl + tokenValue) can also be consumed by any SSM data-channel client.",
|
|
199
423
|
],
|
|
424
|
+
related_commands: ["naive compute exec", "naive compute logs"],
|
|
200
425
|
});
|
|
201
426
|
}
|
|
202
427
|
});
|
|
@@ -207,7 +432,23 @@ secret
|
|
|
207
432
|
.action(async (id, key, value) => {
|
|
208
433
|
const resp = await apiRequest("POST", `/v1/compute/${id}/secrets`, { key, value });
|
|
209
434
|
handleApiError("compute.secret.set", resp);
|
|
210
|
-
agentOutput({
|
|
435
|
+
agentOutput({
|
|
436
|
+
action: "compute.secret.set",
|
|
437
|
+
result: resp.data,
|
|
438
|
+
next_steps: [
|
|
439
|
+
{ command: `naive compute secret list ${id}`, description: "Confirm the key is set" },
|
|
440
|
+
{
|
|
441
|
+
command: `naive compute run ${id}`,
|
|
442
|
+
description: "Re-run so the container picks the value up",
|
|
443
|
+
when: "it is a job or a schedule",
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
hints: [
|
|
447
|
+
`Key \`${key}\` is stored encrypted; its value is never returned by \`secret list\`.`,
|
|
448
|
+
"A running container keeps its old environment until it is restarted or re-run.",
|
|
449
|
+
],
|
|
450
|
+
related_commands: ["naive compute secret list", "naive compute secret delete"],
|
|
451
|
+
});
|
|
211
452
|
});
|
|
212
453
|
secret
|
|
213
454
|
.command("list <id>")
|
|
@@ -215,7 +456,20 @@ secret
|
|
|
215
456
|
.action(async (id) => {
|
|
216
457
|
const resp = await apiRequest("GET", `/v1/compute/${id}/secrets`);
|
|
217
458
|
handleApiError("compute.secret.list", resp);
|
|
218
|
-
|
|
459
|
+
const secrets = (resp.data?.secrets ?? []);
|
|
460
|
+
agentOutput({
|
|
461
|
+
action: "compute.secret.list",
|
|
462
|
+
result: resp.data,
|
|
463
|
+
next_steps: [
|
|
464
|
+
{ command: `naive compute secret set ${id} <KEY> <VALUE>`, description: "Add or replace a secret" },
|
|
465
|
+
{ command: `naive compute secret delete ${id} <KEY>`, description: "Remove one", when: "it is no longer needed" },
|
|
466
|
+
],
|
|
467
|
+
hints: [
|
|
468
|
+
`${secrets.length} secret${secrets.length === 1 ? "" : "s"}.`,
|
|
469
|
+
"Keys only — values are encrypted at rest and are not returned here.",
|
|
470
|
+
],
|
|
471
|
+
related_commands: ["naive compute secret set", "naive compute secret delete"],
|
|
472
|
+
});
|
|
219
473
|
});
|
|
220
474
|
secret
|
|
221
475
|
.command("delete <id> <key>")
|
|
@@ -223,6 +477,22 @@ secret
|
|
|
223
477
|
.action(async (id, key) => {
|
|
224
478
|
const resp = await apiRequest("DELETE", `/v1/compute/${id}/secrets/${encodeURIComponent(key)}`);
|
|
225
479
|
handleApiError("compute.secret.delete", resp);
|
|
226
|
-
agentOutput({
|
|
480
|
+
agentOutput({
|
|
481
|
+
action: "compute.secret.delete",
|
|
482
|
+
result: resp.data,
|
|
483
|
+
next_steps: [
|
|
484
|
+
{ command: `naive compute secret list ${id}`, description: "Confirm what is left" },
|
|
485
|
+
{
|
|
486
|
+
command: `naive compute run ${id}`,
|
|
487
|
+
description: "Re-run so the container loses the value",
|
|
488
|
+
when: "it is a job or a schedule",
|
|
489
|
+
},
|
|
490
|
+
],
|
|
491
|
+
hints: [
|
|
492
|
+
`Key \`${key}\` is removed from the workload's environment.`,
|
|
493
|
+
"A running container keeps its old environment until it is restarted or re-run.",
|
|
494
|
+
],
|
|
495
|
+
related_commands: ["naive compute secret set", "naive compute secret list"],
|
|
496
|
+
});
|
|
227
497
|
});
|
|
228
498
|
//# sourceMappingURL=compute.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.js","sourceRoot":"","sources":["../../src/commands/compute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,OAAO,CAAC,SAAS,CAAC;KAC7C,WAAW,CAAC,6GAA6G,CAAC;KAC1H,WAA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AE,uBAAuB;QAC/B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE;YACV,EAAE,OAAO,EAAE,6BAA6B,EAAE,EAAE,EAAE,WAAW,EAAE,sBAAsB,EAAE;YACnF;gBACE,OAAO,EAAE,qBAAqB,EAAE,EAAE;gBAClC,WAAW,EAAE,yCAAyC;gBACtD,IAAI,EAAE,2BAA2B;aAClC;SACF;QACD,KAAK,EAAE;YACL,SAAS,GAAG,gDAAgD;YAC5D,gFAAgF;SACjF;QACD,gBAAgB,EAAE,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;KAC5E,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -92,8 +92,20 @@ connectionsCmd
|
|
|
92
92
|
.description("List the tools a toolkit exposes")
|
|
93
93
|
.argument("<toolkit>")
|
|
94
94
|
.option("--user <id>", "Target a specific tenant user")
|
|
95
|
+
.option("--search <text>", "Only tools whose name or description matches")
|
|
96
|
+
.option("--limit <n>", "Maximum tools to return (default 100, max 200)")
|
|
95
97
|
.action(async (toolkit, opts) => {
|
|
96
|
-
|
|
98
|
+
// --search / --limit are the two query parameters the route has always read
|
|
99
|
+
// and MCP has always accepted. Without them this command could only ask for
|
|
100
|
+
// the whole catalog, which is why the same toolkit counted 63 here and 25 on
|
|
101
|
+
// api/mcp for one credential (NV-068).
|
|
102
|
+
const qs = new URLSearchParams();
|
|
103
|
+
if (opts.search)
|
|
104
|
+
qs.set("search", opts.search);
|
|
105
|
+
if (opts.limit)
|
|
106
|
+
qs.set("limit", opts.limit);
|
|
107
|
+
const q = qs.toString();
|
|
108
|
+
const resp = await apiRequest("GET", `${userPath(opts.user)}/connections/${encodeURIComponent(toolkit)}/tools${q ? `?${q}` : ""}`, undefined, {
|
|
97
109
|
userId: opts.user,
|
|
98
110
|
});
|
|
99
111
|
handleApiError("connections.tools", resp);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../src/commands/conn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,IAAI,CAAC,gBAAgB,kBAAkB,CAAC,OAAO,CAAC,UAAU,EAAE;QACjH,IAAI;QACJ,SAAS,EAAE,IAAI;KAChB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1B,cAAc,CAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;AACpF,CAAC,CAAC,CAAC"}
|
|
@@ -7,6 +7,7 @@ export const cronCmd = new Command("cron")
|
|
|
7
7
|
Subcommands:
|
|
8
8
|
naive cron create <schedule> <prompt> Create a new cron job
|
|
9
9
|
naive cron list List all cron jobs
|
|
10
|
+
naive cron runs <id> Show a job's observed runs, including failures
|
|
10
11
|
naive cron trigger <id> Manually trigger a cron job now
|
|
11
12
|
naive cron pause <id> Pause a cron job
|
|
12
13
|
naive cron remove <id> Delete a cron job permanently
|
|
@@ -115,6 +116,42 @@ Returns cron job details:
|
|
|
115
116
|
related_commands: ["naive cron create", "naive cron trigger", "naive cron pause", "naive cron remove"],
|
|
116
117
|
});
|
|
117
118
|
});
|
|
119
|
+
cronCmd
|
|
120
|
+
.command("runs <id>")
|
|
121
|
+
.description("Show a cron job's observed runs — including the ones that FAILED")
|
|
122
|
+
.addHelpText("after", `
|
|
123
|
+
Examples:
|
|
124
|
+
$ naive cron runs cron-abc-123
|
|
125
|
+
|
|
126
|
+
Returns the runs the platform has observed for this job, newest first:
|
|
127
|
+
- status (completed, failed)
|
|
128
|
+
- error — e.g. an insufficient_credits kill is visible HERE, not only
|
|
129
|
+
inside the container
|
|
130
|
+
- started/completed timestamps
|
|
131
|
+
|
|
132
|
+
A loop that stopped producing work and a loop that never fired look identical
|
|
133
|
+
from 'naive cron list' alone — this is where the difference shows.
|
|
134
|
+
`)
|
|
135
|
+
.action(async (id) => {
|
|
136
|
+
const resp = await apiRequest("GET", `/v1/cron/${id}/executions`);
|
|
137
|
+
handleApiError("cron.runs", resp);
|
|
138
|
+
const data = resp.data;
|
|
139
|
+
const runs = data.executions ?? [];
|
|
140
|
+
const failed = runs.filter((r) => r.status === "failed");
|
|
141
|
+
agentOutput({
|
|
142
|
+
action: "cron.runs",
|
|
143
|
+
result: resp.data,
|
|
144
|
+
next_steps: [
|
|
145
|
+
{ command: `naive cron trigger ${id}`, description: "Fire the job now to test it" },
|
|
146
|
+
{ command: "naive cron list", description: "View all cron jobs" },
|
|
147
|
+
],
|
|
148
|
+
hints: [
|
|
149
|
+
`${runs.length} observed run${runs.length !== 1 ? "s" : ""}, ${failed.length} failed`,
|
|
150
|
+
...failed.slice(0, 3).map((r) => `FAILED: ${r.error ?? "no error recorded"}`),
|
|
151
|
+
],
|
|
152
|
+
related_commands: ["naive cron list", "naive cron trigger"],
|
|
153
|
+
});
|
|
154
|
+
});
|
|
118
155
|
cronCmd
|
|
119
156
|
.command("trigger <id>")
|
|
120
157
|
.description("Manually trigger a cron job immediately — useful for testing")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cron-jobs.js","sourceRoot":"","sources":["../../src/commands/cron-jobs.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,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;KACvC,WAAW,CAAC,8EAA8E,CAAC;KAC3F,WAAW,CAAC,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"cron-jobs.js","sourceRoot":"","sources":["../../src/commands/cron-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,cAAc,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