run402 3.7.0 → 3.7.2
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/lib/deploy-v2.mjs +10 -3
- package/lib/email.mjs +3 -2
- package/lib/functions.mjs +234 -2
- package/lib/sdk.mjs +7 -1
- package/lib/webhooks.mjs +2 -2
- package/package.json +1 -1
- package/sdk/dist/index.d.ts +5 -0
- package/sdk/dist/index.d.ts.map +1 -1
- package/sdk/dist/index.js +13 -0
- package/sdk/dist/index.js.map +1 -1
- package/sdk/dist/namespaces/deploy.js +1 -1
- package/sdk/dist/namespaces/deploy.js.map +1 -1
- package/sdk/dist/namespaces/deploy.types.d.ts +1 -1
- package/sdk/dist/namespaces/deploy.types.d.ts.map +1 -1
- package/sdk/dist/namespaces/functions.d.ts +25 -1
- package/sdk/dist/namespaces/functions.d.ts.map +1 -1
- package/sdk/dist/namespaces/functions.js +272 -2
- package/sdk/dist/namespaces/functions.js.map +1 -1
- package/sdk/dist/namespaces/functions.types.d.ts +87 -1
- package/sdk/dist/namespaces/functions.types.d.ts.map +1 -1
- package/sdk/dist/node/actions-node.d.ts.map +1 -1
- package/sdk/dist/node/actions-node.js +5 -4
- package/sdk/dist/node/actions-node.js.map +1 -1
- package/sdk/dist/scoped.d.ts +14 -1
- package/sdk/dist/scoped.d.ts.map +1 -1
- package/sdk/dist/scoped.js +31 -0
- package/sdk/dist/scoped.js.map +1 -1
package/lib/deploy-v2.mjs
CHANGED
|
@@ -148,7 +148,7 @@ const EXECUTABLE_MANIFEST_EXTENSIONS = new Set([".ts", ".mts", ".cts", ".js", ".
|
|
|
148
148
|
const RESUME_HELP = `run402 deploy resume — Resume a stuck deploy operation
|
|
149
149
|
|
|
150
150
|
Usage:
|
|
151
|
-
run402 deploy resume <operation_id> [--quiet]
|
|
151
|
+
run402 deploy resume <operation_id> [--project <id>] [--quiet]
|
|
152
152
|
|
|
153
153
|
Used when a previous \`deploy apply\` ended in \`activation_pending\` or
|
|
154
154
|
\`schema_settling\` (e.g. transient gateway failure between SQL commit and
|
|
@@ -1363,6 +1363,7 @@ async function resumeCmd(args) {
|
|
|
1363
1363
|
const parsed = parseDeploySubcommandArgs(args, {
|
|
1364
1364
|
command: "deploy resume",
|
|
1365
1365
|
help: RESUME_HELP,
|
|
1366
|
+
valueFlags: ["--project"],
|
|
1366
1367
|
booleanFlags: ["--quiet"],
|
|
1367
1368
|
});
|
|
1368
1369
|
const [operationId] = expectPositionals(parsed.positionals, {
|
|
@@ -1371,13 +1372,19 @@ async function resumeCmd(args) {
|
|
|
1371
1372
|
max: 1,
|
|
1372
1373
|
missing: "Missing <operation_id>.",
|
|
1373
1374
|
});
|
|
1374
|
-
const opts = {
|
|
1375
|
+
const opts = {
|
|
1376
|
+
operationId,
|
|
1377
|
+
project: parsed.flags["--project"] ?? null,
|
|
1378
|
+
quiet: Boolean(parsed.flags["--quiet"]),
|
|
1379
|
+
};
|
|
1380
|
+
const project = resolveProjectId(opts.project);
|
|
1375
1381
|
|
|
1376
1382
|
allowanceAuthHeaders("/apply/v1/operations");
|
|
1377
1383
|
|
|
1378
1384
|
try {
|
|
1379
|
-
const result = await getSdk()._applyEngine.resume(opts.operationId, {
|
|
1385
|
+
const result = await getSdk({ disablePaidFetch: true })._applyEngine.resume(opts.operationId, {
|
|
1380
1386
|
onEvent: makeStderrEventWriter(opts.quiet),
|
|
1387
|
+
project,
|
|
1381
1388
|
});
|
|
1382
1389
|
console.log(JSON.stringify(result, null, 2));
|
|
1383
1390
|
} catch (err) {
|
package/lib/email.mjs
CHANGED
|
@@ -289,16 +289,17 @@ Options:
|
|
|
289
289
|
get: `run402 email get — Get a message with replies
|
|
290
290
|
|
|
291
291
|
Usage:
|
|
292
|
-
run402 email get <message_id> [--project <id>]
|
|
292
|
+
run402 email get <message_id> [--mailbox <slug|id>] [--project <id>]
|
|
293
293
|
|
|
294
294
|
Arguments:
|
|
295
295
|
<message_id> Message ID to fetch
|
|
296
296
|
|
|
297
297
|
Options:
|
|
298
|
+
--mailbox <slug|id> Target mailbox. Omit to use default_outbound_mailbox_id.
|
|
298
299
|
--project <id> Project ID (defaults to the active project)
|
|
299
300
|
|
|
300
301
|
Examples:
|
|
301
|
-
run402 email get msg_abc123
|
|
302
|
+
run402 email get msg_abc123 --mailbox support
|
|
302
303
|
`,
|
|
303
304
|
};
|
|
304
305
|
|
package/lib/functions.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { reportSdkError, fail } from "./sdk-errors.mjs";
|
|
|
5
5
|
import { assertKnownFlags, hasHelp, normalizeArgv, parseIntegerFlag, validateRegularFile } from "./argparse.mjs";
|
|
6
6
|
import { cliCommandAction } from "./next-actions.mjs";
|
|
7
7
|
|
|
8
|
-
const FUNCTION_LOG_REQUEST_ID_RE = /^
|
|
8
|
+
const FUNCTION_LOG_REQUEST_ID_RE = /^(?:req|fnrun|fnatt)_[A-Za-z0-9_-]{4,128}$/;
|
|
9
9
|
const ISO_DATE_TIME_RE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,9})?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
10
10
|
const FUNCTION_LOG_TAIL_MAX = 1000;
|
|
11
11
|
|
|
@@ -25,6 +25,8 @@ Subcommands:
|
|
|
25
25
|
body → pretty-printed JSON).
|
|
26
26
|
logs <id> <name> [--tail <n>] [--since <ts>] [--request-id <req_...>] [--follow]
|
|
27
27
|
Get function logs
|
|
28
|
+
runs <action> ... Create, inspect, cancel, redrive, and
|
|
29
|
+
wait for durable function runs
|
|
28
30
|
update <id> <name> [--schedule <cron>] [--schedule-remove] [--timeout <s>] [--memory <mb>]
|
|
29
31
|
Update function schedule or config without re-deploying
|
|
30
32
|
rebuild <id> [<name>] [--all] Refresh function(s) onto the current platform
|
|
@@ -43,6 +45,8 @@ Examples:
|
|
|
43
45
|
run402 functions logs prj_abc123 stripe-webhook --since 2026-03-29T14:00:00Z
|
|
44
46
|
run402 functions logs prj_abc123 stripe-webhook --request-id req_abc123
|
|
45
47
|
run402 functions logs prj_abc123 stripe-webhook --follow
|
|
48
|
+
run402 functions runs create prj_abc123 worker --event-type reminder.send --idempotency-key reminder:123 --delay 10m
|
|
49
|
+
run402 functions runs get prj_abc123 fnrun_abc123
|
|
46
50
|
run402 functions update prj_abc123 send-reminders --schedule '0 */4 * * *'
|
|
47
51
|
run402 functions update prj_abc123 send-reminders --schedule-remove
|
|
48
52
|
run402 functions update prj_abc123 my-func --timeout 15 --memory 256
|
|
@@ -143,7 +147,7 @@ Arguments:
|
|
|
143
147
|
Options:
|
|
144
148
|
--tail <n> Number of most-recent entries (default 50, max 1000)
|
|
145
149
|
--since <ts> ISO timestamp or epoch ms; only entries after this
|
|
146
|
-
--request-id <id> Only entries correlated to this req_
|
|
150
|
+
--request-id <id> Only entries correlated to this req_, fnrun_, or fnatt_ id
|
|
147
151
|
--follow Poll every 3s and stream new entries (Ctrl-C to stop).
|
|
148
152
|
Emits NDJSON: one JSON log entry per line, no wrapping
|
|
149
153
|
"logs:" envelope (the wrapping object is only used in
|
|
@@ -154,6 +158,42 @@ Examples:
|
|
|
154
158
|
run402 functions logs prj_abc123 stripe-webhook --since 2026-03-29T14:00:00Z
|
|
155
159
|
run402 functions logs prj_abc123 stripe-webhook --request-id req_abc123
|
|
156
160
|
run402 functions logs prj_abc123 stripe-webhook --follow
|
|
161
|
+
`,
|
|
162
|
+
runs: `run402 functions runs — Manage durable function runs
|
|
163
|
+
|
|
164
|
+
Usage:
|
|
165
|
+
run402 functions runs create <project_id> <function_name> --event-type <type> --idempotency-key <key> [options]
|
|
166
|
+
run402 functions runs list <project_id> <function_name> [options]
|
|
167
|
+
run402 functions runs get <project_id> <run_id>
|
|
168
|
+
run402 functions runs logs <project_id> <run_id> [--tail <n>] [--since <ts>]
|
|
169
|
+
run402 functions runs cancel <project_id> <run_id>
|
|
170
|
+
run402 functions runs redrive <project_id> <run_id> [options]
|
|
171
|
+
|
|
172
|
+
Create options:
|
|
173
|
+
--payload-json <json> Inline JSON object payload
|
|
174
|
+
--delay <duration> Delay such as 10m, 1h, 3d
|
|
175
|
+
--run-at <iso> Absolute ISO-8601 run time
|
|
176
|
+
--expires-at <iso> Absolute ISO-8601 expiry
|
|
177
|
+
--expires-after <duration>
|
|
178
|
+
--retry-preset standard Retry preset (default standard when retry options are present)
|
|
179
|
+
--max-attempts <n> Retry max attempts
|
|
180
|
+
--wait Wait until the run is terminal
|
|
181
|
+
--timeout-ms <n> Wait timeout (default SDK timeout)
|
|
182
|
+
--poll-interval-ms <n> Wait poll interval
|
|
183
|
+
|
|
184
|
+
List options:
|
|
185
|
+
--status <status> scheduled|queued|running|retrying|blocked|succeeded|failed|cancelled|expired
|
|
186
|
+
--event-type <type>
|
|
187
|
+
--since <ts>
|
|
188
|
+
--until <ts>
|
|
189
|
+
--limit <n>
|
|
190
|
+
--cursor <cursor>
|
|
191
|
+
|
|
192
|
+
Examples:
|
|
193
|
+
run402 functions runs create prj_abc123 worker --event-type reminder.send --payload-json '{"id":"msg_1"}' --idempotency-key reminder:msg_1 --delay 10m
|
|
194
|
+
run402 functions runs list prj_abc123 worker --status failed
|
|
195
|
+
run402 functions runs logs prj_abc123 fnrun_abc123 --tail 100
|
|
196
|
+
run402 functions runs redrive prj_abc123 fnrun_abc123 --wait
|
|
157
197
|
`,
|
|
158
198
|
update: `run402 functions update — Update function config without re-deploying
|
|
159
199
|
|
|
@@ -427,6 +467,197 @@ function logEntryIdentity(entry) {
|
|
|
427
467
|
return entry.event_id || `${entry.log_stream_name || ""}:${entry.timestamp || ""}:${entry.message || ""}`;
|
|
428
468
|
}
|
|
429
469
|
|
|
470
|
+
function assertNoUnexpectedPositionals(args, valueFlags, usage) {
|
|
471
|
+
const flagsWithValues = new Set(valueFlags);
|
|
472
|
+
for (let i = 0; i < args.length; i++) {
|
|
473
|
+
const arg = args[i];
|
|
474
|
+
if (flagsWithValues.has(arg)) {
|
|
475
|
+
i += 1;
|
|
476
|
+
continue;
|
|
477
|
+
}
|
|
478
|
+
if (typeof arg === "string" && arg.startsWith("-")) continue;
|
|
479
|
+
fail({
|
|
480
|
+
code: "BAD_USAGE",
|
|
481
|
+
message: `Unexpected argument: ${arg}`,
|
|
482
|
+
hint: usage,
|
|
483
|
+
details: { argument: arg },
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
async function runs(action, args = []) {
|
|
489
|
+
if (!action || action === "--help" || action === "-h") {
|
|
490
|
+
console.log(SUB_HELP.runs);
|
|
491
|
+
process.exit(0);
|
|
492
|
+
}
|
|
493
|
+
if (action === "create") return runsCreate(args[0], args[1], args.slice(2));
|
|
494
|
+
if (action === "list") return runsList(args[0], args[1], args.slice(2));
|
|
495
|
+
if (action === "get") return runsGet(args[0], args[1], args.slice(2));
|
|
496
|
+
if (action === "logs") return runsLogs(args[0], args[1], args.slice(2));
|
|
497
|
+
if (action === "cancel") return runsCancel(args[0], args[1], args.slice(2));
|
|
498
|
+
if (action === "redrive") return runsRedrive(args[0], args[1], args.slice(2));
|
|
499
|
+
fail({
|
|
500
|
+
code: "BAD_USAGE",
|
|
501
|
+
message: `Unknown functions runs action: ${action}`,
|
|
502
|
+
hint: "run402 functions runs <create|list|get|logs|cancel|redrive> ...",
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
async function runsCreate(projectId, name, args) {
|
|
507
|
+
assertRequiredProjectAndName(projectId, name, "run402 functions runs create <project_id> <function_name> --event-type <type> --idempotency-key <key>");
|
|
508
|
+
const valueFlags = [
|
|
509
|
+
"--event-type", "--payload-json", "--idempotency-key", "--delay", "--run-at",
|
|
510
|
+
"--expires-at", "--expires-after", "--retry-preset", "--max-attempts",
|
|
511
|
+
"--timeout-ms", "--poll-interval-ms",
|
|
512
|
+
];
|
|
513
|
+
assertKnownFlags(args, [
|
|
514
|
+
"--event-type", "--payload-json", "--idempotency-key", "--delay", "--run-at",
|
|
515
|
+
"--expires-at", "--expires-after", "--retry-preset", "--max-attempts",
|
|
516
|
+
"--wait", "--timeout-ms", "--poll-interval-ms", "--help", "-h",
|
|
517
|
+
], valueFlags);
|
|
518
|
+
assertNoUnexpectedPositionals(args, valueFlags, "run402 functions runs create <project_id> <function_name> --event-type <type> --idempotency-key <key>");
|
|
519
|
+
const opts = {};
|
|
520
|
+
let wait = false;
|
|
521
|
+
const waitOpts = {};
|
|
522
|
+
for (let i = 0; i < args.length; i++) {
|
|
523
|
+
if (args[i] === "--event-type") opts.eventType = args[++i];
|
|
524
|
+
if (args[i] === "--payload-json") opts.payload = parseJsonObjectFlag("--payload-json", args[++i]);
|
|
525
|
+
if (args[i] === "--idempotency-key") opts.idempotencyKey = args[++i];
|
|
526
|
+
if (args[i] === "--delay") opts.delay = args[++i];
|
|
527
|
+
if (args[i] === "--run-at") opts.runAt = args[++i];
|
|
528
|
+
if (args[i] === "--expires-at") opts.expiresAt = args[++i];
|
|
529
|
+
if (args[i] === "--expires-after") opts.expiresAfter = args[++i];
|
|
530
|
+
if (args[i] === "--retry-preset") opts.retry = { ...(opts.retry || {}), preset: args[++i] };
|
|
531
|
+
if (args[i] === "--max-attempts") opts.retry = { ...(opts.retry || {}), maxAttempts: parseIntegerFlag("--max-attempts", args[++i], { min: 1 }) };
|
|
532
|
+
if (args[i] === "--wait") wait = true;
|
|
533
|
+
if (args[i] === "--timeout-ms") waitOpts.timeoutMs = parseIntegerFlag("--timeout-ms", args[++i], { min: 1 });
|
|
534
|
+
if (args[i] === "--poll-interval-ms") waitOpts.intervalMs = parseIntegerFlag("--poll-interval-ms", args[++i], { min: 0 });
|
|
535
|
+
}
|
|
536
|
+
if (!opts.eventType) fail({ code: "BAD_USAGE", message: "Missing --event-type <type>" });
|
|
537
|
+
if (!opts.idempotencyKey) fail({ code: "BAD_USAGE", message: "Missing --idempotency-key <key>" });
|
|
538
|
+
if (opts.retry && !opts.retry.preset) opts.retry.preset = "standard";
|
|
539
|
+
|
|
540
|
+
try {
|
|
541
|
+
const created = await getSdk().functions.runs.create(projectId, name, opts);
|
|
542
|
+
const data = wait ? await getSdk().functions.runs.wait(projectId, created.run_id, waitOpts) : created;
|
|
543
|
+
console.log(JSON.stringify(data, null, 2));
|
|
544
|
+
} catch (err) {
|
|
545
|
+
reportSdkError(err);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
async function runsList(projectId, name, args) {
|
|
550
|
+
assertRequiredProjectAndName(projectId, name, "run402 functions runs list <project_id> <function_name>");
|
|
551
|
+
const valueFlags = ["--status", "--event-type", "--since", "--until", "--limit", "--cursor"];
|
|
552
|
+
assertKnownFlags(args, ["--status", "--event-type", "--since", "--until", "--limit", "--cursor", "--help", "-h"], valueFlags);
|
|
553
|
+
assertNoUnexpectedPositionals(args, valueFlags, "run402 functions runs list <project_id> <function_name>");
|
|
554
|
+
const opts = {};
|
|
555
|
+
for (let i = 0; i < args.length; i++) {
|
|
556
|
+
if (args[i] === "--status") opts.status = args[++i];
|
|
557
|
+
if (args[i] === "--event-type") opts.eventType = args[++i];
|
|
558
|
+
if (args[i] === "--since") opts.since = args[++i];
|
|
559
|
+
if (args[i] === "--until") opts.until = args[++i];
|
|
560
|
+
if (args[i] === "--limit") opts.limit = parseIntegerFlag("--limit", args[++i], { min: 1, max: 100 });
|
|
561
|
+
if (args[i] === "--cursor") opts.cursor = args[++i];
|
|
562
|
+
}
|
|
563
|
+
try {
|
|
564
|
+
const data = await getSdk().functions.runs.list(projectId, name, opts);
|
|
565
|
+
console.log(JSON.stringify(data, null, 2));
|
|
566
|
+
} catch (err) {
|
|
567
|
+
reportSdkError(err);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
async function runsGet(projectId, runId, args) {
|
|
572
|
+
assertRequiredProject(projectId, "run402 functions runs get <project_id> <run_id>");
|
|
573
|
+
assertNoExtraPositionals(args, "run402 functions runs get <project_id> <run_id>");
|
|
574
|
+
if (!runId) fail({ code: "BAD_USAGE", message: "Missing <run_id>" });
|
|
575
|
+
try {
|
|
576
|
+
const data = await getSdk().functions.runs.get(projectId, runId);
|
|
577
|
+
console.log(JSON.stringify(data, null, 2));
|
|
578
|
+
} catch (err) {
|
|
579
|
+
reportSdkError(err);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
async function runsLogs(projectId, runId, args) {
|
|
584
|
+
assertRequiredProject(projectId, "run402 functions runs logs <project_id> <run_id>");
|
|
585
|
+
if (!runId) fail({ code: "BAD_USAGE", message: "Missing <run_id>" });
|
|
586
|
+
const valueFlags = ["--tail", "--since"];
|
|
587
|
+
assertKnownFlags(args, ["--tail", "--since", "--help", "-h"], valueFlags);
|
|
588
|
+
assertNoUnexpectedPositionals(args, valueFlags, "run402 functions runs logs <project_id> <run_id>");
|
|
589
|
+
const opts = {};
|
|
590
|
+
for (let i = 0; i < args.length; i++) {
|
|
591
|
+
if (args[i] === "--tail") opts.tail = parseIntegerFlag("--tail", args[++i], { min: 1, max: FUNCTION_LOG_TAIL_MAX });
|
|
592
|
+
if (args[i] === "--since") opts.since = args[++i];
|
|
593
|
+
}
|
|
594
|
+
try {
|
|
595
|
+
const data = await getSdk().functions.runs.logs(projectId, runId, opts);
|
|
596
|
+
console.log(JSON.stringify(data, null, 2));
|
|
597
|
+
} catch (err) {
|
|
598
|
+
reportSdkError(err);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
async function runsCancel(projectId, runId, args) {
|
|
603
|
+
assertRequiredProject(projectId, "run402 functions runs cancel <project_id> <run_id>");
|
|
604
|
+
assertNoExtraPositionals(args, "run402 functions runs cancel <project_id> <run_id>");
|
|
605
|
+
if (!runId) fail({ code: "BAD_USAGE", message: "Missing <run_id>" });
|
|
606
|
+
try {
|
|
607
|
+
const data = await getSdk().functions.runs.cancel(projectId, runId);
|
|
608
|
+
console.log(JSON.stringify(data, null, 2));
|
|
609
|
+
} catch (err) {
|
|
610
|
+
reportSdkError(err);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
async function runsRedrive(projectId, runId, args) {
|
|
615
|
+
assertRequiredProject(projectId, "run402 functions runs redrive <project_id> <run_id>");
|
|
616
|
+
if (!runId) fail({ code: "BAD_USAGE", message: "Missing <run_id>" });
|
|
617
|
+
const valueFlags = ["--retry-preset", "--max-attempts", "--timeout-ms", "--poll-interval-ms"];
|
|
618
|
+
assertKnownFlags(args, ["--retry-preset", "--max-attempts", "--wait", "--timeout-ms", "--poll-interval-ms", "--help", "-h"], valueFlags);
|
|
619
|
+
assertNoUnexpectedPositionals(args, valueFlags, "run402 functions runs redrive <project_id> <run_id>");
|
|
620
|
+
const opts = {};
|
|
621
|
+
let wait = false;
|
|
622
|
+
const waitOpts = {};
|
|
623
|
+
for (let i = 0; i < args.length; i++) {
|
|
624
|
+
if (args[i] === "--retry-preset") opts.retry = { ...(opts.retry || {}), preset: args[++i] };
|
|
625
|
+
if (args[i] === "--max-attempts") opts.retry = { ...(opts.retry || {}), maxAttempts: parseIntegerFlag("--max-attempts", args[++i], { min: 1 }) };
|
|
626
|
+
if (args[i] === "--wait") wait = true;
|
|
627
|
+
if (args[i] === "--timeout-ms") waitOpts.timeoutMs = parseIntegerFlag("--timeout-ms", args[++i], { min: 1 });
|
|
628
|
+
if (args[i] === "--poll-interval-ms") waitOpts.intervalMs = parseIntegerFlag("--poll-interval-ms", args[++i], { min: 0 });
|
|
629
|
+
}
|
|
630
|
+
if (opts.retry && !opts.retry.preset) opts.retry.preset = "standard";
|
|
631
|
+
try {
|
|
632
|
+
const redriven = await getSdk().functions.runs.redrive(projectId, runId, opts);
|
|
633
|
+
const data = wait ? await getSdk().functions.runs.wait(projectId, redriven.run_id, waitOpts) : redriven;
|
|
634
|
+
console.log(JSON.stringify(data, null, 2));
|
|
635
|
+
} catch (err) {
|
|
636
|
+
reportSdkError(err);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
function parseJsonObjectFlag(flag, value) {
|
|
641
|
+
let parsed;
|
|
642
|
+
try {
|
|
643
|
+
parsed = JSON.parse(value);
|
|
644
|
+
} catch (err) {
|
|
645
|
+
fail({
|
|
646
|
+
code: "BAD_USAGE",
|
|
647
|
+
message: `Invalid ${flag} JSON: ${err.message}`,
|
|
648
|
+
details: { flag, value },
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
652
|
+
fail({
|
|
653
|
+
code: "BAD_USAGE",
|
|
654
|
+
message: `${flag} must be a JSON object`,
|
|
655
|
+
details: { flag, value },
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
return parsed;
|
|
659
|
+
}
|
|
660
|
+
|
|
430
661
|
async function update(projectId, name, args) {
|
|
431
662
|
assertRequiredProjectAndName(projectId, name, "run402 functions update <project_id> <name> [options]");
|
|
432
663
|
assertKnownFlags(args, ["--schedule", "--schedule-remove", "--timeout", "--memory", "--help", "-h"], ["--schedule", "--timeout", "--memory"]);
|
|
@@ -586,6 +817,7 @@ export async function run(sub, args) {
|
|
|
586
817
|
case "deploy": await deploy(args[0], args[1], args.slice(2)); break;
|
|
587
818
|
case "invoke": await invoke(args[0], args[1], args.slice(2)); break;
|
|
588
819
|
case "logs": await logs(args[0], args[1], args.slice(2)); break;
|
|
820
|
+
case "runs": await runs(args[0], args.slice(1)); break;
|
|
589
821
|
case "update": await update(args[0], args[1], args.slice(2)); break;
|
|
590
822
|
case "rebuild": await rebuild(args[0], args.slice(1)); break;
|
|
591
823
|
case "list": await list(args[0], args.slice(1)); break;
|
package/lib/sdk.mjs
CHANGED
|
@@ -8,9 +8,15 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { run402 } from "#sdk/node";
|
|
11
|
+
import { allowanceFile, projectsFile } from "./config.mjs";
|
|
11
12
|
|
|
12
13
|
export function getSdk(opts = {}) {
|
|
13
14
|
// surface: "cli" opts the default credential resolution into `auto` — wallet
|
|
14
15
|
// if present, else the operator (control-plane) session + matched approval.
|
|
15
|
-
return run402({
|
|
16
|
+
return run402({
|
|
17
|
+
surface: "cli",
|
|
18
|
+
allowancePath: allowanceFile(),
|
|
19
|
+
keystorePath: projectsFile(),
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
16
22
|
}
|
package/lib/webhooks.mjs
CHANGED
|
@@ -41,12 +41,12 @@ const SUB_HELP = {
|
|
|
41
41
|
update: `run402 email webhooks update — Update an existing webhook
|
|
42
42
|
|
|
43
43
|
Usage:
|
|
44
|
-
run402 email webhooks update <webhook_id> [--url <url>] [--events <e1,e2>] [--project <id>]
|
|
44
|
+
run402 email webhooks update <webhook_id> [--url <url>] [--events <e1,e2>] [--mailbox <slug|id>] [--project <id>]
|
|
45
45
|
`,
|
|
46
46
|
register: `run402 email webhooks register — Register a new webhook
|
|
47
47
|
|
|
48
48
|
Usage:
|
|
49
|
-
run402 email webhooks register --url <url> --events <e1,e2> [--project <id>]
|
|
49
|
+
run402 email webhooks register --url <url> --events <e1,e2> [--mailbox <slug|id>] [--project <id>]
|
|
50
50
|
`,
|
|
51
51
|
};
|
|
52
52
|
|
package/package.json
CHANGED
package/sdk/dist/index.d.ts
CHANGED
|
@@ -99,6 +99,9 @@ export declare class Run402 {
|
|
|
99
99
|
* project-scoped as `r.project(id).grants`.
|
|
100
100
|
*/
|
|
101
101
|
readonly grants: Grants;
|
|
102
|
+
readonly idempotency: {
|
|
103
|
+
fromParts: typeof fromParts;
|
|
104
|
+
};
|
|
102
105
|
constructor(opts: Run402Options);
|
|
103
106
|
/**
|
|
104
107
|
* Return a project-scoped sub-client where every project-id-bearing namespace
|
|
@@ -186,6 +189,7 @@ export interface WhoAmI {
|
|
|
186
189
|
* });
|
|
187
190
|
*/
|
|
188
191
|
export declare function files(record: Record<string, ContentSource>): FileSet;
|
|
192
|
+
export declare function fromParts(...parts: Array<string | number | boolean | null | undefined>): string;
|
|
189
193
|
/**
|
|
190
194
|
* Factory wrapper equivalent to `new Run402(opts)`. Reads better in code-mode
|
|
191
195
|
* sandbox examples: `const r = run402({ ... })`.
|
|
@@ -225,6 +229,7 @@ export { Deploy } from "./namespaces/deploy.js";
|
|
|
225
229
|
export type { ByteReader } from "./namespaces/deploy.js";
|
|
226
230
|
export type * from "./namespaces/domains.js";
|
|
227
231
|
export type * from "./namespaces/email.js";
|
|
232
|
+
export { FunctionRunTerminalError, FunctionRuns } from "./namespaces/functions.js";
|
|
228
233
|
export type * from "./namespaces/functions.types.js";
|
|
229
234
|
export type * from "./namespaces/jobs.js";
|
|
230
235
|
export type * from "./namespaces/operator.js";
|
package/sdk/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EA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D,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,uBAAuB,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACnF,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,0BAA0B,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,mBAAmB,kCAAkC,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9E,mBAAmB,2BAA2B,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,mBAAmB,8BAA8B,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,+BAA+B,CAAC;AACnD,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,sBAAsB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,mBAAmB,yBAAyB,CAAC"}
|
package/sdk/dist/index.js
CHANGED
|
@@ -86,6 +86,9 @@ export class Run402 {
|
|
|
86
86
|
* project-scoped as `r.project(id).grants`.
|
|
87
87
|
*/
|
|
88
88
|
grants;
|
|
89
|
+
idempotency = {
|
|
90
|
+
fromParts,
|
|
91
|
+
};
|
|
89
92
|
#client;
|
|
90
93
|
constructor(opts) {
|
|
91
94
|
if (!opts || typeof opts !== "object") {
|
|
@@ -254,6 +257,15 @@ export class Run402 {
|
|
|
254
257
|
export function files(record) {
|
|
255
258
|
return record;
|
|
256
259
|
}
|
|
260
|
+
export function fromParts(...parts) {
|
|
261
|
+
const cleaned = parts
|
|
262
|
+
.filter((part) => part !== undefined && part !== null && String(part).trim() !== "")
|
|
263
|
+
.map((part) => encodeURIComponent(String(part)));
|
|
264
|
+
if (cleaned.length === 0) {
|
|
265
|
+
throw new LocalError("idempotency.fromParts requires at least one non-empty part", "building idempotency key");
|
|
266
|
+
}
|
|
267
|
+
return cleaned.join(":");
|
|
268
|
+
}
|
|
257
269
|
/**
|
|
258
270
|
* Factory wrapper equivalent to `new Run402(opts)`. Reads better in code-mode
|
|
259
271
|
* sandbox examples: `const r = run402({ ... })`.
|
|
@@ -272,6 +284,7 @@ export { Ci, CI_AUDIENCE, CI_BINDING_REVOKED_ERROR, CI_GITHUB_ACTIONS_ISSUER, CI
|
|
|
272
284
|
export { ScopedRun402 } from "./scoped.js";
|
|
273
285
|
export { Transfers } from "./namespaces/transfers.js";
|
|
274
286
|
export { Deploy } from "./namespaces/deploy.js";
|
|
287
|
+
export { FunctionRunTerminalError, FunctionRuns } from "./namespaces/functions.js";
|
|
275
288
|
export { OperatorSession } from "./namespaces/operator-session.js";
|
|
276
289
|
export { Orgs, ScopedOrg, OrgMembers, OrgInvites } from "./namespaces/org.js";
|
|
277
290
|
export { Grants } from "./namespaces/grants.js";
|
package/sdk/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAkC,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,M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C;AAInF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AASpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -931,7 +931,7 @@ async function planInternal(client, spec, idempotencyKey, opts = {}) {
|
|
|
931
931
|
body = inlineBody;
|
|
932
932
|
}
|
|
933
933
|
else if (isCore) {
|
|
934
|
-
throw new Run402DeployError("Core deploy planning requires an inline spec under the gateway body cap; manifest_ref is not supported by Core
|
|
934
|
+
throw new Run402DeployError("Core deploy planning requires an inline spec under the gateway body cap; manifest_ref is not supported by Run402 Core yet.", {
|
|
935
935
|
code: "DRY_RUN_REQUIRES_INLINE_SPEC",
|
|
936
936
|
phase: "validate",
|
|
937
937
|
resource: "manifest_ref",
|