run402 4.152.1 → 4.154.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/lib/argparse.mjs +1 -3
- package/lib/assets.mjs +11 -31
- package/lib/dev.mjs +0 -1
- package/lib/email.mjs +2 -12
- package/lib/functions.mjs +56 -24
- package/lib/projects.mjs +12 -15
- package/lib/repos.mjs +9 -57
- package/lib/subscriptions.mjs +3 -6
- package/lib/up.mjs +3 -3
- package/package.json +1 -1
- package/sdk/dist/ci-credentials.js +2 -2
- package/sdk/dist/ci-credentials.js.map +1 -1
- package/sdk/dist/config.d.ts.map +1 -1
- package/sdk/dist/config.js +0 -1
- package/sdk/dist/config.js.map +1 -1
- package/sdk/dist/control-plane-credentials.d.ts +1 -1
- package/sdk/dist/control-plane-credentials.js +2 -2
- package/sdk/dist/control-plane-credentials.js.map +1 -1
- package/sdk/dist/credentials.d.ts +1 -6
- package/sdk/dist/credentials.d.ts.map +1 -1
- package/sdk/dist/index.d.ts.map +1 -1
- package/sdk/dist/index.js +1 -3
- package/sdk/dist/index.js.map +1 -1
- package/sdk/dist/kernel.d.ts +0 -2
- package/sdk/dist/kernel.d.ts.map +1 -1
- package/sdk/dist/kernel.js +4 -12
- package/sdk/dist/kernel.js.map +1 -1
- package/sdk/dist/namespaces/admin.d.ts +0 -7
- package/sdk/dist/namespaces/admin.d.ts.map +1 -1
- package/sdk/dist/namespaces/admin.js +0 -9
- package/sdk/dist/namespaces/admin.js.map +1 -1
- package/sdk/dist/namespaces/deploy.d.ts.map +1 -1
- package/sdk/dist/namespaces/deploy.js +38 -51
- package/sdk/dist/namespaces/deploy.js.map +1 -1
- package/sdk/dist/namespaces/deploy.types.d.ts +23 -8
- package/sdk/dist/namespaces/deploy.types.d.ts.map +1 -1
- package/sdk/dist/namespaces/deploy.types.js.map +1 -1
- package/sdk/dist/namespaces/functions.d.ts +29 -4
- package/sdk/dist/namespaces/functions.d.ts.map +1 -1
- package/sdk/dist/namespaces/functions.js +142 -11
- package/sdk/dist/namespaces/functions.js.map +1 -1
- package/sdk/dist/namespaces/functions.types.d.ts +56 -10
- package/sdk/dist/namespaces/functions.types.d.ts.map +1 -1
- package/sdk/dist/namespaces/projects.d.ts.map +1 -1
- package/sdk/dist/namespaces/projects.js +0 -2
- package/sdk/dist/namespaces/projects.js.map +1 -1
- package/sdk/dist/namespaces/projects.types.d.ts +5 -4
- package/sdk/dist/namespaces/projects.types.d.ts.map +1 -1
- package/sdk/dist/namespaces/repos.d.ts +0 -2
- package/sdk/dist/namespaces/repos.d.ts.map +1 -1
- package/sdk/dist/namespaces/repos.js +0 -1
- package/sdk/dist/namespaces/repos.js.map +1 -1
- package/sdk/dist/node/actions-node.d.ts.map +1 -1
- package/sdk/dist/node/actions-node.js +0 -2
- package/sdk/dist/node/actions-node.js.map +1 -1
- package/sdk/dist/node/credentials.d.ts +0 -1
- package/sdk/dist/node/credentials.d.ts.map +1 -1
- package/sdk/dist/node/credentials.js +0 -3
- package/sdk/dist/node/credentials.js.map +1 -1
- package/sdk/dist/node/deploy-manifest.d.ts.map +1 -1
- package/sdk/dist/node/deploy-manifest.js +0 -3
- package/sdk/dist/node/deploy-manifest.js.map +1 -1
- package/sdk/dist/node/index.d.ts +1 -1
- package/sdk/dist/node/index.js +1 -1
- package/sdk/dist/node/paid-fetch.d.ts.map +1 -1
- package/sdk/dist/node/paid-fetch.js +14 -1
- package/sdk/dist/node/paid-fetch.js.map +1 -1
- package/sdk/dist/scoped.d.ts +3 -1
- package/sdk/dist/scoped.d.ts.map +1 -1
- package/sdk/dist/scoped.js +6 -0
- package/sdk/dist/scoped.js.map +1 -1
- package/vault-surface.json +1 -1
package/lib/argparse.mjs
CHANGED
|
@@ -29,9 +29,7 @@ export function hasHelp(args = []) {
|
|
|
29
29
|
//
|
|
30
30
|
// No command may gate its stdout format on this flag. A command offering a
|
|
31
31
|
// human-readable view exposes it behind `--human` (see `up.mjs`, `errors.mjs`)
|
|
32
|
-
// and rejects `--human` combined with `--json`.
|
|
33
|
-
// exception to the no-op rule is `assets put --json`, a preserved deprecated
|
|
34
|
-
// alias for `--stream` that selects NDJSON progress rather than a format.
|
|
32
|
+
// and rejects `--human` combined with `--json`.
|
|
35
33
|
const ALWAYS_KNOWN_FLAGS = ["--json"];
|
|
36
34
|
|
|
37
35
|
export function assertKnownFlags(args = [], knownFlags = [], flagsWithValues = []) {
|
package/lib/assets.mjs
CHANGED
|
@@ -2,20 +2,14 @@
|
|
|
2
2
|
* run402 assets — direct-to-S3 storage CLI.
|
|
3
3
|
*
|
|
4
4
|
* Usage:
|
|
5
|
-
* run402 assets put <file> [files...] [--project <project_id>] [--key <dest>] [--content-type <mime>] [--private] [--immutable] [--
|
|
5
|
+
* run402 assets put <file> [files...] [--project <project_id>] [--key <dest>] [--content-type <mime>] [--private] [--immutable] [--stream]
|
|
6
6
|
* run402 assets get <key> --output <file> [--project <project_id>]
|
|
7
7
|
* run402 assets ls [--project <project_id>] [--prefix <p>] [--limit <n>]
|
|
8
8
|
* run402 assets rm <key> [--project <project_id>]
|
|
9
9
|
* run402 assets sign <key> [keys...] [--project <project_id>] [--ttl <seconds>] [--variant <kind>[,<kind>...]]
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* parts at 5 TiB). The gateway never carries upload bytes — PUTs go straight
|
|
14
|
-
* to S3 from the client.
|
|
15
|
-
*
|
|
16
|
-
* Resumable uploads are enabled by default. The CLI persists per-upload
|
|
17
|
-
* state to ~/.run402/uploads/<upload_id>.json so a Ctrl-C'd upload can be
|
|
18
|
-
* resumed by re-running the same command.
|
|
11
|
+
* `put` delegates to `sdk.assets.put` (unified apply); the gateway never
|
|
12
|
+
* carries upload bytes — PUTs go straight to S3 from the client.
|
|
19
13
|
*/
|
|
20
14
|
|
|
21
15
|
import {
|
|
@@ -55,7 +49,7 @@ Options:
|
|
|
55
49
|
--exif-policy keep|strip v1.50: EXIF retention policy for image uploads (default keep).
|
|
56
50
|
--stream NDJSON per-file progress events (for agent consumption).
|
|
57
51
|
Without --stream, only the final results array is
|
|
58
|
-
printed.
|
|
52
|
+
printed.
|
|
59
53
|
--prefix <p> Prefix filter (ls only)
|
|
60
54
|
--limit <n> Max results (ls only; default 100, max 1000)
|
|
61
55
|
--sort <key> v1.50 ls only: key:asc | createdAt:asc | createdAt:desc (default key:asc).
|
|
@@ -76,10 +70,8 @@ Examples:
|
|
|
76
70
|
run402 assets rm images/logo.png --project prj_abc123
|
|
77
71
|
run402 assets sign images/logo.png --project prj_abc123 --ttl 600
|
|
78
72
|
|
|
79
|
-
Note:
|
|
80
|
-
|
|
81
|
-
are still accepted for backward compatibility but are ignored; resume
|
|
82
|
-
semantics now live at the apply-plan level (24h plan TTL).
|
|
73
|
+
Note: the CLI delegates to sdk.assets.put, which routes through unified
|
|
74
|
+
apply; resume semantics live at the apply-plan level (24h plan TTL).
|
|
83
75
|
`;
|
|
84
76
|
|
|
85
77
|
const SUB_HELP = {
|
|
@@ -107,8 +99,7 @@ Options:
|
|
|
107
99
|
from the stored bytes and the image_exif response field.
|
|
108
100
|
--stream Emit NDJSON per-file progress events on stdout (for
|
|
109
101
|
agent consumption). Default: emit only the final
|
|
110
|
-
results array (also JSON).
|
|
111
|
-
alias for --stream.
|
|
102
|
+
results array (also JSON).
|
|
112
103
|
|
|
113
104
|
Examples:
|
|
114
105
|
run402 assets put ./artifact.tgz --project prj_abc123
|
|
@@ -239,7 +230,7 @@ function die(msg, exit_code = 1) {
|
|
|
239
230
|
function parseArgs(rawArgs) {
|
|
240
231
|
const args = normalizeArgv(rawArgs);
|
|
241
232
|
const valueFlags = [
|
|
242
|
-
"--project", "--key", "--content-type", "--
|
|
233
|
+
"--project", "--key", "--content-type", "--prefix",
|
|
243
234
|
"--limit", "--output", "-o", "--ttl", "--variant",
|
|
244
235
|
"--meta", "--exif-policy", "--sort", "--filter",
|
|
245
236
|
];
|
|
@@ -249,10 +240,7 @@ function parseArgs(rawArgs) {
|
|
|
249
240
|
"--content-type",
|
|
250
241
|
"--private",
|
|
251
242
|
"--immutable",
|
|
252
|
-
"--concurrency",
|
|
253
|
-
"--no-resume",
|
|
254
243
|
"--stream",
|
|
255
|
-
"--json",
|
|
256
244
|
"--prefix",
|
|
257
245
|
"--limit",
|
|
258
246
|
"--output",
|
|
@@ -267,7 +255,7 @@ function parseArgs(rawArgs) {
|
|
|
267
255
|
"-h",
|
|
268
256
|
], valueFlags);
|
|
269
257
|
const out = { positional: [], project: null, key: null, private: false, immutable: false,
|
|
270
|
-
|
|
258
|
+
stream: false, prefix: null, limit: null,
|
|
271
259
|
output: null, ttl: null, variant: null, contentType: null,
|
|
272
260
|
metadata: null, exifPolicy: null, sort: null, filter: null };
|
|
273
261
|
for (let i = 0; i < args.length; i++) {
|
|
@@ -277,13 +265,7 @@ function parseArgs(rawArgs) {
|
|
|
277
265
|
else if (a === "--content-type") out.contentType = parseContentTypeFlag("--content-type", args[++i]);
|
|
278
266
|
else if (a === "--private") out.private = true;
|
|
279
267
|
else if (a === "--immutable") out.immutable = true;
|
|
280
|
-
else if (a === "--concurrency") out.concurrency = parseIntegerFlag("--concurrency", args[++i], { min: 1 });
|
|
281
|
-
else if (a === "--no-resume") out.resume = false;
|
|
282
268
|
else if (a === "--stream") out.stream = true;
|
|
283
|
-
// `--json` and `--stream` are permanent aliases on `assets put` (both mean
|
|
284
|
-
// NDJSON progress events on stdout); elsewhere `--json` is a no-op since
|
|
285
|
-
// stdout is already JSON.
|
|
286
|
-
else if (a === "--json") { out.stream = true; }
|
|
287
269
|
else if (a === "--prefix") out.prefix = args[++i];
|
|
288
270
|
else if (a === "--limit") out.limit = parseIntegerFlag("--limit", args[++i], { min: 1, max: 1000 });
|
|
289
271
|
else if (a === "--output" || a === "-o") out.output = args[++i];
|
|
@@ -462,10 +444,8 @@ async function putOne(projectId, filePath, opts) {
|
|
|
462
444
|
|
|
463
445
|
// The CLI delegates to `sdk.assets.put`, which routes through the
|
|
464
446
|
// unified-apply hero (apply/v1/plans -> content/v1/plans -> S3 PUT ->
|
|
465
|
-
// commit). Resume semantics live at the apply-plan level (24h plan TTL)
|
|
466
|
-
//
|
|
467
|
-
// flags are accepted but ignored — the SDK upload paths handle parallelism
|
|
468
|
-
// internally.
|
|
447
|
+
// commit). Resume semantics live at the apply-plan level (24h plan TTL),
|
|
448
|
+
// and the SDK upload paths handle parallelism internally.
|
|
469
449
|
log(opts, { event: "start", key: destKey, size_bytes: stat.size });
|
|
470
450
|
const bytes = new Uint8Array(readFileSync(filePath));
|
|
471
451
|
const result = await getSdk().assets.put(projectId, destKey, { bytes }, {
|
package/lib/dev.mjs
CHANGED
|
@@ -221,7 +221,6 @@ export async function mintDevTestSession({ projectId, label, keys, sdk }) {
|
|
|
221
221
|
credentials: {
|
|
222
222
|
getAuth: async () => null,
|
|
223
223
|
getProjectCredentials: async (id) => (id === projectId ? keys : null),
|
|
224
|
-
getProject: async (id) => (id === projectId ? keys : null),
|
|
225
224
|
},
|
|
226
225
|
});
|
|
227
226
|
const bundle = await client.auth.createTestSession(projectId, { label });
|
package/lib/email.mjs
CHANGED
|
@@ -85,7 +85,6 @@ Subcommands:
|
|
|
85
85
|
[--project <project_id>]
|
|
86
86
|
Update per-mailbox settings
|
|
87
87
|
info [--project <project_id>] Show mailbox info, including footer policy
|
|
88
|
-
status [--project <project_id>] Alias for 'info' (prefer 'info')
|
|
89
88
|
send --to <email> [--bcc <email>] [mode flags] Send an email (template or raw HTML)
|
|
90
89
|
list [--limit <n>] [--after <cursor>] [--direction <inbound|outbound>] [--project <project_id>]
|
|
91
90
|
List messages (paginated). Returns BOTH
|
|
@@ -223,14 +222,6 @@ Usage:
|
|
|
223
222
|
|
|
224
223
|
Usage:
|
|
225
224
|
run402 email info [--project <project_id>]
|
|
226
|
-
`,
|
|
227
|
-
status: `run402 email status — Alias for 'run402 email info' (prefer 'info')
|
|
228
|
-
|
|
229
|
-
Usage:
|
|
230
|
-
run402 email status [--project <project_id>]
|
|
231
|
-
|
|
232
|
-
See 'run402 email info --help' for details. 'status' is kept for backward
|
|
233
|
-
compatibility; new code should use 'info'.
|
|
234
225
|
`,
|
|
235
226
|
"get-raw": `run402 email get-raw — Fetch raw RFC-822 bytes for an inbound message
|
|
236
227
|
|
|
@@ -824,7 +815,7 @@ async function deleteMailbox(args) {
|
|
|
824
815
|
}
|
|
825
816
|
}
|
|
826
817
|
|
|
827
|
-
async function
|
|
818
|
+
async function info(args) {
|
|
828
819
|
const valueFlags = ["--project", "--mailbox"];
|
|
829
820
|
validateArgs(args, valueFlags);
|
|
830
821
|
const projectId = resolveProjectId(strictFlagValue(args, "--project"));
|
|
@@ -846,8 +837,7 @@ export async function run(sub, args) {
|
|
|
846
837
|
case "mailboxes": await mailboxes(args); break;
|
|
847
838
|
case "defaults": await defaults(args); break;
|
|
848
839
|
case "update": await updateMailbox(args); break;
|
|
849
|
-
case "info":
|
|
850
|
-
case "status": await status(args); break;
|
|
840
|
+
case "info": await info(args); break;
|
|
851
841
|
case "send": await send(args); break;
|
|
852
842
|
case "list": await list(args); break;
|
|
853
843
|
case "get": await get(args); break;
|
package/lib/functions.mjs
CHANGED
|
@@ -77,7 +77,7 @@ Usage:
|
|
|
77
77
|
run402 functions <subcommand> [args...]
|
|
78
78
|
|
|
79
79
|
Subcommands:
|
|
80
|
-
deploy <name> --file <file> [--project <project_id>] [--timeout <s>] [--memory <mb>] [--deps <pkg,...>] [--schedule <cron>]
|
|
80
|
+
deploy <name> --file <file> [--project <project_id>] [--timeout <s>] [--memory <mb>] [--deps <pkg,...>] [--schedule <cron> [--timezone <iana>]]
|
|
81
81
|
Deploy a function to a project
|
|
82
82
|
invoke <name> [--project <project_id>] [--method <M>] [--body <json> | --body-file <path>] [--idempotency-key <key>] [--wait] [--timeout-ms <ms>] [--poll-interval-ms <ms>] [--raw]
|
|
83
83
|
Invoke a deployed function. Default
|
|
@@ -91,8 +91,8 @@ Subcommands:
|
|
|
91
91
|
every function)
|
|
92
92
|
runs <action> ... Create, inspect, cancel, redrive, and
|
|
93
93
|
wait for durable function runs
|
|
94
|
-
update <name> [--project <project_id>] [--schedule <cron>
|
|
95
|
-
|
|
94
|
+
update <name> [--project <project_id>] [--schedule <cron> [--timezone <iana>] | --schedule-remove] [--timeout <s>] [--memory <mb>]
|
|
95
|
+
Change a function's schedule or config without re-deploying its code
|
|
96
96
|
rebuild [<name>] [--all] [--project <project_id>]
|
|
97
97
|
Refresh function(s) onto the current platform
|
|
98
98
|
runtime (re-bundles from stored source; no
|
|
@@ -107,7 +107,7 @@ e.g. run402 functions deploy prj_abc123 stripe-webhook --file handler.ts
|
|
|
107
107
|
Examples:
|
|
108
108
|
run402 functions deploy stripe-webhook --file handler.ts --project prj_abc123
|
|
109
109
|
run402 functions deploy send-reminders --file remind.ts --schedule '*/15 * * * *'
|
|
110
|
-
run402 functions deploy send-reminders --file remind.ts --schedule ''
|
|
110
|
+
run402 functions deploy send-reminders --file remind.ts --schedule '0 9 * * 1' --timezone Asia/Jerusalem
|
|
111
111
|
run402 functions invoke stripe-webhook --project prj_abc123 --body-file request.json
|
|
112
112
|
run402 functions logs stripe-webhook --tail 100
|
|
113
113
|
run402 functions logs stripe-webhook --since 2026-03-29T14:00:00Z
|
|
@@ -129,6 +129,9 @@ Notes:
|
|
|
129
129
|
- --project defaults to the active project ('run402 projects use')
|
|
130
130
|
- Code must export a default async function: export default async (req: Request) => Response
|
|
131
131
|
- Deploy may require payment if the project lease has expired
|
|
132
|
+
- A schedule is a schedule trigger in the release: each tick is a durable
|
|
133
|
+
function run (X-Run402-Trigger: function_run), with retries and run history.
|
|
134
|
+
--schedule replaces the function's schedule; its other triggers stay.
|
|
132
135
|
- 'rebuild' is opt-in and never changes your source: it re-bundles the stored
|
|
133
136
|
source against the current platform runtime so a gateway-side wrapper fix
|
|
134
137
|
reaches an already-deployed function. 'run402 doctor' flags stale functions.
|
|
@@ -160,7 +163,10 @@ Options:
|
|
|
160
163
|
rejected. Max 30 entries, max 200 chars per spec.
|
|
161
164
|
Native binary modules (sharp, canvas, native bcrypt)
|
|
162
165
|
are rejected.
|
|
163
|
-
--schedule <cron>
|
|
166
|
+
--schedule <cron> The function's schedule (a 5-field cron), declared as a
|
|
167
|
+
schedule trigger; '' removes it. Omitted, the function
|
|
168
|
+
keeps the triggers it has.
|
|
169
|
+
--timezone <iana> Time zone the --schedule cron is read in (default UTC)
|
|
164
170
|
|
|
165
171
|
Notes:
|
|
166
172
|
Code must export a default async function:
|
|
@@ -179,6 +185,7 @@ Examples:
|
|
|
179
185
|
run402 functions deploy prj_abc123 send-reminders --file remind.ts \\
|
|
180
186
|
--schedule '*/15 * * * *'
|
|
181
187
|
run402 functions deploy prj_abc123 send-reminders --file remind.ts --schedule ''
|
|
188
|
+
run402 functions deploy prj_abc123 digest --file digest.ts --schedule '0 9 * * 1' --timezone Asia/Jerusalem
|
|
182
189
|
`,
|
|
183
190
|
invoke: `run402 functions invoke — Invoke a deployed function
|
|
184
191
|
|
|
@@ -313,7 +320,7 @@ Examples:
|
|
|
313
320
|
run402 functions runs logs prj_abc123 fnrun_abc123 --tail 100
|
|
314
321
|
run402 functions runs redrive prj_abc123 fnrun_abc123 --wait
|
|
315
322
|
`,
|
|
316
|
-
update: `run402 functions update —
|
|
323
|
+
update: `run402 functions update — Change a function's schedule or config without re-deploying
|
|
317
324
|
|
|
318
325
|
Usage:
|
|
319
326
|
run402 functions update <name> [--project <project_id>] [options]
|
|
@@ -326,17 +333,23 @@ Arguments:
|
|
|
326
333
|
|
|
327
334
|
Options:
|
|
328
335
|
--project <project_id> Target project ID (defaults to the active project)
|
|
329
|
-
--schedule <cron>
|
|
330
|
-
|
|
336
|
+
--schedule <cron> Schedule the function (a 5-field cron): replaces its
|
|
337
|
+
schedule trigger and keeps its code and other triggers
|
|
338
|
+
(pass '' to remove)
|
|
339
|
+
--timezone <iana> Time zone the --schedule cron is read in (default UTC)
|
|
340
|
+
--schedule-remove Remove the function's schedule
|
|
331
341
|
--timeout <s> Runtime timeout in seconds
|
|
332
342
|
--memory <mb> Memory in MB
|
|
333
343
|
|
|
334
344
|
Notes:
|
|
335
|
-
Must provide at least one of the options above.
|
|
345
|
+
Must provide at least one of the options above. A schedule change is a
|
|
346
|
+
release (r.functions.schedule / unschedule in the SDK); each tick creates a
|
|
347
|
+
durable function run. The result lists the stored schedule_triggers.
|
|
336
348
|
|
|
337
349
|
Examples:
|
|
338
350
|
run402 functions update prj_abc123 send-reminders --schedule '0 */4 * * *'
|
|
339
351
|
run402 functions update prj_abc123 send-reminders --schedule-remove
|
|
352
|
+
run402 functions update prj_abc123 digest --schedule '0 9 * * 1' --timezone Asia/Jerusalem
|
|
340
353
|
run402 functions update prj_abc123 my-func --timeout 15 --memory 256
|
|
341
354
|
`,
|
|
342
355
|
rebuild: `run402 functions rebuild — Refresh function(s) onto the current platform runtime
|
|
@@ -417,14 +430,15 @@ Examples:
|
|
|
417
430
|
|
|
418
431
|
async function deploy(projectId, name, args) {
|
|
419
432
|
assertRequiredProjectAndName(projectId, name, "run402 functions deploy <project_id> <name> --file <file>");
|
|
420
|
-
assertKnownFlags(args, ["--file", "--timeout", "--memory", "--deps", "--schedule", "--help", "-h"], ["--file", "--timeout", "--memory", "--deps", "--schedule"]);
|
|
421
|
-
const opts = { file: null, timeout: undefined, memory: undefined, deps: undefined, schedule: undefined };
|
|
433
|
+
assertKnownFlags(args, ["--file", "--timeout", "--memory", "--deps", "--schedule", "--timezone", "--help", "-h"], ["--file", "--timeout", "--memory", "--deps", "--schedule", "--timezone"]);
|
|
434
|
+
const opts = { file: null, timeout: undefined, memory: undefined, deps: undefined, schedule: undefined, timezone: undefined };
|
|
422
435
|
for (let i = 0; i < args.length; i++) {
|
|
423
436
|
if (args[i] === "--file" && args[i + 1]) opts.file = args[++i];
|
|
424
437
|
if (args[i] === "--timeout") opts.timeout = parseIntegerFlag("--timeout", args[++i], { min: 1 });
|
|
425
438
|
if (args[i] === "--memory") opts.memory = parseIntegerFlag("--memory", args[++i], { min: 1 });
|
|
426
439
|
if (args[i] === "--deps" && args[i + 1]) opts.deps = parseDepsFlag(args[++i]);
|
|
427
440
|
if (args[i] === "--schedule" && i + 1 < args.length) opts.schedule = args[++i];
|
|
441
|
+
if (args[i] === "--timezone" && args[i + 1]) opts.timezone = args[++i];
|
|
428
442
|
}
|
|
429
443
|
if (!opts.file) {
|
|
430
444
|
fail({ code: "BAD_USAGE", message: "Missing --file <file>" });
|
|
@@ -440,6 +454,7 @@ async function deploy(projectId, name, args) {
|
|
|
440
454
|
}
|
|
441
455
|
if (opts.deps !== undefined) deployOpts.deps = opts.deps;
|
|
442
456
|
if (opts.schedule !== undefined) deployOpts.schedule = opts.schedule === "" ? null : opts.schedule;
|
|
457
|
+
if (opts.timezone !== undefined) deployOpts.timezone = opts.timezone;
|
|
443
458
|
|
|
444
459
|
try {
|
|
445
460
|
const data = await getSdk().functions.deploy(projectId, deployOpts);
|
|
@@ -889,13 +904,19 @@ function parseJsonObjectFlag(flag, value) {
|
|
|
889
904
|
|
|
890
905
|
async function update(projectId, name, args) {
|
|
891
906
|
assertRequiredProjectAndName(projectId, name, "run402 functions update <project_id> <name> [options]");
|
|
892
|
-
assertKnownFlags(
|
|
907
|
+
assertKnownFlags(
|
|
908
|
+
args,
|
|
909
|
+
["--schedule", "--timezone", "--schedule-remove", "--timeout", "--memory", "--help", "-h"],
|
|
910
|
+
["--schedule", "--timezone", "--timeout", "--memory"],
|
|
911
|
+
);
|
|
893
912
|
let schedule = undefined;
|
|
913
|
+
let timezone = undefined;
|
|
894
914
|
let scheduleRemove = false;
|
|
895
915
|
let timeout = undefined;
|
|
896
916
|
let memory = undefined;
|
|
897
917
|
for (let i = 0; i < args.length; i++) {
|
|
898
918
|
if (args[i] === "--schedule" && i + 1 < args.length) schedule = args[++i];
|
|
919
|
+
if (args[i] === "--timezone" && args[i + 1]) timezone = args[++i];
|
|
899
920
|
if (args[i] === "--schedule-remove") scheduleRemove = true;
|
|
900
921
|
if (args[i] === "--timeout") timeout = parseIntegerFlag("--timeout", args[++i], { min: 1 });
|
|
901
922
|
if (args[i] === "--memory") memory = parseIntegerFlag("--memory", args[++i], { min: 1 });
|
|
@@ -907,17 +928,20 @@ async function update(projectId, name, args) {
|
|
|
907
928
|
details: { flags: ["--schedule", "--schedule-remove"] },
|
|
908
929
|
});
|
|
909
930
|
}
|
|
910
|
-
|
|
911
|
-
const
|
|
912
|
-
if (
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
931
|
+
const removeSchedule = scheduleRemove || schedule === "";
|
|
932
|
+
const setSchedule = !removeSchedule && schedule !== undefined;
|
|
933
|
+
if (timezone !== undefined && !setSchedule) {
|
|
934
|
+
fail({
|
|
935
|
+
code: "BAD_USAGE",
|
|
936
|
+
message: "--timezone is only accepted with --schedule <cron>",
|
|
937
|
+
details: { flags: ["--timezone", "--schedule"] },
|
|
938
|
+
});
|
|
916
939
|
}
|
|
917
|
-
|
|
918
|
-
if (
|
|
919
|
-
|
|
920
|
-
|
|
940
|
+
const configOpts = {};
|
|
941
|
+
if (timeout !== undefined) configOpts.timeout = timeout;
|
|
942
|
+
if (memory !== undefined) configOpts.memory = memory;
|
|
943
|
+
const hasConfig = Object.keys(configOpts).length > 0;
|
|
944
|
+
if (!setSchedule && !removeSchedule && !hasConfig) {
|
|
921
945
|
fail({
|
|
922
946
|
code: "BAD_USAGE",
|
|
923
947
|
message: "Provide at least one of: --schedule, --schedule-remove, --timeout, --memory",
|
|
@@ -925,8 +949,16 @@ async function update(projectId, name, args) {
|
|
|
925
949
|
}
|
|
926
950
|
|
|
927
951
|
try {
|
|
928
|
-
const
|
|
929
|
-
|
|
952
|
+
const sdk = getSdk();
|
|
953
|
+
const out = {};
|
|
954
|
+
if (hasConfig) out.config = await sdk.functions.update(projectId, name, configOpts);
|
|
955
|
+
if (setSchedule) {
|
|
956
|
+
out.schedule = await sdk.functions.schedule(projectId, name, schedule, timezone !== undefined ? { timezone } : {});
|
|
957
|
+
} else if (removeSchedule) {
|
|
958
|
+
out.schedule = await sdk.functions.unschedule(projectId, name);
|
|
959
|
+
}
|
|
960
|
+
const keys = Object.keys(out);
|
|
961
|
+
console.log(JSON.stringify(keys.length === 1 ? out[keys[0]] : out, null, 2));
|
|
930
962
|
} catch (err) {
|
|
931
963
|
reportSdkError(err);
|
|
932
964
|
}
|
package/lib/projects.mjs
CHANGED
|
@@ -13,7 +13,7 @@ Usage:
|
|
|
13
13
|
|
|
14
14
|
Subcommands:
|
|
15
15
|
quote Show pricing tiers
|
|
16
|
-
provision [--
|
|
16
|
+
provision [--name <n>] [--org <org_id>] Provision a new Postgres project
|
|
17
17
|
use <project_id> Set the active project (used as default for other commands)
|
|
18
18
|
list [--org <org_id>] [--all] List your projects from the server (name, site_url, custom domains, org_id, active marker)
|
|
19
19
|
rename <project_id> --name <label> Rename a project (fix an auto-generated name)
|
|
@@ -36,8 +36,7 @@ Subcommands:
|
|
|
36
36
|
|
|
37
37
|
Examples:
|
|
38
38
|
run402 projects quote
|
|
39
|
-
run402 projects provision --
|
|
40
|
-
run402 projects provision --tier hobby --name my-app
|
|
39
|
+
run402 projects provision --name my-app
|
|
41
40
|
run402 projects use prj_abc123
|
|
42
41
|
run402 projects list
|
|
43
42
|
run402 projects list --org 11111111-2222-3333-4444-555555555555
|
|
@@ -190,13 +189,12 @@ Notes:
|
|
|
190
189
|
provision: `run402 projects provision — Provision a new Postgres project
|
|
191
190
|
|
|
192
191
|
Usage:
|
|
193
|
-
run402 projects provision [--
|
|
192
|
+
run402 projects provision [--name <name>] [--org <org_id>] [--idempotency-key <key>]
|
|
194
193
|
|
|
195
194
|
Options:
|
|
196
|
-
--tier <tier> Tier for the new project (default: prototype)
|
|
197
195
|
--name <name> Human-readable name for the project
|
|
198
196
|
--org <org_id> Provision into an EXISTING org (needs developer+ on it).
|
|
199
|
-
Omit for the cold-start path.
|
|
197
|
+
Omit for the cold-start path.
|
|
200
198
|
--idempotency-key <key> Retry-safe key: re-running with the same key returns
|
|
201
199
|
the existing project instead of duplicating it. Auto-derived
|
|
202
200
|
from --name when omitted; an unnamed provision stays un-keyed.
|
|
@@ -206,11 +204,12 @@ Notes:
|
|
|
206
204
|
Against a configured Run402 Core target, no Cloud tier/wallet/payment is
|
|
207
205
|
required.
|
|
208
206
|
- The new project becomes the active project after provisioning
|
|
207
|
+
- A project takes no tier: it runs on its organization's tier
|
|
208
|
+
('run402 tier set <tier>' buys one, 'run402 tier status' reads it)
|
|
209
209
|
|
|
210
210
|
Examples:
|
|
211
211
|
run402 projects provision
|
|
212
|
-
run402 projects provision --
|
|
213
|
-
run402 projects provision --tier hobby --name my-app
|
|
212
|
+
run402 projects provision --name my-app
|
|
214
213
|
run402 projects provision --org org_abc123
|
|
215
214
|
`,
|
|
216
215
|
sql: `run402 projects sql — Run a SQL query against a project's database
|
|
@@ -328,15 +327,13 @@ async function quote() {
|
|
|
328
327
|
// scaffolding lives in `run402 up` and `run402 init`, on the app root only.
|
|
329
328
|
|
|
330
329
|
async function provision(args) {
|
|
331
|
-
const opts = {
|
|
330
|
+
const opts = { name: undefined, orgId: undefined, idempotencyKey: undefined };
|
|
332
331
|
for (let i = 0; i < args.length; i++) {
|
|
333
|
-
if (args[i] === "--tier" && args[i + 1]) opts.tier = args[++i];
|
|
334
332
|
// Use !== undefined so an empty-string value is captured (and rejected
|
|
335
333
|
// below) rather than silently dropped by the falsy-check pattern.
|
|
336
334
|
if (args[i] === "--name" && args[i + 1] !== undefined) opts.name = args[++i];
|
|
337
335
|
// --org targets an EXISTING org (v1.82); caller needs developer+ on it.
|
|
338
|
-
// Omitted = cold-start.
|
|
339
|
-
// (the gateway ignores a client-supplied tier in all cases).
|
|
336
|
+
// Omitted = cold-start.
|
|
340
337
|
if (args[i] === "--org" && args[i + 1] !== undefined) opts.orgId = args[++i];
|
|
341
338
|
// Retry-safety: re-running provision (the agent's natural mode after a
|
|
342
339
|
// crash/fresh session) must not duplicate-bill a project.
|
|
@@ -393,7 +390,7 @@ async function provision(args) {
|
|
|
393
390
|
const activeBefore = getActiveProjectId();
|
|
394
391
|
try {
|
|
395
392
|
const data = await withAutoApprove(() =>
|
|
396
|
-
getSdk().projects.provision({
|
|
393
|
+
getSdk().projects.provision({ name: opts.name, orgId: opts.orgId, idempotencyKey: opts.idempotencyKey }),
|
|
397
394
|
);
|
|
398
395
|
const activeAfter = getActiveProjectId();
|
|
399
396
|
const out = { ...data };
|
|
@@ -924,8 +921,8 @@ async function deleteProject(projectId, args = []) {
|
|
|
924
921
|
|
|
925
922
|
const FLAGS_BY_SUB = {
|
|
926
923
|
provision: {
|
|
927
|
-
known: ["--
|
|
928
|
-
values: ["--
|
|
924
|
+
known: ["--name", "--org", "--idempotency-key"],
|
|
925
|
+
values: ["--name", "--org", "--idempotency-key"],
|
|
929
926
|
},
|
|
930
927
|
list: { known: ["--org", "--all"], values: ["--org"] },
|
|
931
928
|
rename: { known: ["--project", "--name"], values: ["--project", "--name"] },
|
package/lib/repos.mjs
CHANGED
|
@@ -68,7 +68,7 @@ Usage:
|
|
|
68
68
|
run402 repos <verb> [options] — fifteen verbs, tiered by how often you reach for them:
|
|
69
69
|
|
|
70
70
|
Common:
|
|
71
|
-
run402 repos create [name] [--org <org_id>] [--dir <path>] [--nested] [--
|
|
71
|
+
run402 repos create [name] [--org <org_id>] [--dir <path>] [--nested] [--project <project_id>]
|
|
72
72
|
[--byo <s3://bucket/prefix>] [--profile <name> | --ambient] [--region <r>] [--endpoint <url>] [--no-init]
|
|
73
73
|
run402 repos view [--project <project_id>] [--repo <repo_id>] [--human]
|
|
74
74
|
run402 repos list [--org <org_id>] [--human]
|
|
@@ -409,7 +409,6 @@ Options:
|
|
|
409
409
|
app as untracked noise. Nothing else in the enclosing
|
|
410
410
|
repository is touched (no .gitignore, index, or submodule).
|
|
411
411
|
No-op on a directory that is already its own toplevel.
|
|
412
|
-
--tier <tier> create: project tier (default: prototype) — new projects only
|
|
413
412
|
--idempotency-key <key>
|
|
414
413
|
create: re-running with the same key resolves to the
|
|
415
414
|
same project instead of creating a second one — new
|
|
@@ -832,7 +831,7 @@ async function inferRepoName(dir) {
|
|
|
832
831
|
|
|
833
832
|
// ─── create ─────────────────────────────────────────────────────────────────
|
|
834
833
|
|
|
835
|
-
const CREATE_VALUE_FLAGS = ["--org", "--dir", "--
|
|
834
|
+
const CREATE_VALUE_FLAGS = ["--org", "--dir", "--idempotency-key", "--project", "--byo", "--profile", "--region", "--endpoint"];
|
|
836
835
|
|
|
837
836
|
/** vault-byo-primary-bucket task 3.5 — `--byo <destination>` + the SAME credential/region/endpoint flags `repos mirror` already uses. `undefined` when `--byo` was not passed (byte-identical to today). */
|
|
838
837
|
function resolveByoOption(a) {
|
|
@@ -957,7 +956,6 @@ async function createAdopt(projectId, dir, a) {
|
|
|
957
956
|
|
|
958
957
|
async function createProvision(name, dir, a) {
|
|
959
958
|
const sdk = getSdk();
|
|
960
|
-
const tier = flagValue(a, "--tier") ?? "prototype";
|
|
961
959
|
// `optional: true` — a fresh wallet with no org yet is the cold-start path
|
|
962
960
|
// `projects provision` itself supports; `--org` targets an existing one.
|
|
963
961
|
const orgId = await resolveOrgId(a, { cmd: "repos", optional: true });
|
|
@@ -986,7 +984,7 @@ async function createProvision(name, dir, a) {
|
|
|
986
984
|
if (!isCoreApiTarget() && !loadLiveControlPlaneSession()) walletAuthHeaders("/projects/v1");
|
|
987
985
|
|
|
988
986
|
const provisionOnce = () =>
|
|
989
|
-
withAutoApprove(() => sdk.projects.provision({
|
|
987
|
+
withAutoApprove(() => sdk.projects.provision({ name, ...(orgId ? { orgId } : {}), idempotencyKey }));
|
|
990
988
|
|
|
991
989
|
let provisioned;
|
|
992
990
|
try {
|
|
@@ -1056,11 +1054,11 @@ async function create(args) {
|
|
|
1056
1054
|
hint: "run402 repos create --project <project_id> to adopt, or run402 repos create <name> to provision a new one. Name it afterward with `run402 repos rename`.",
|
|
1057
1055
|
});
|
|
1058
1056
|
}
|
|
1059
|
-
if (flagValue(a, "--
|
|
1057
|
+
if (flagValue(a, "--idempotency-key") != null) {
|
|
1060
1058
|
fail({
|
|
1061
1059
|
code: "BAD_USAGE",
|
|
1062
|
-
message: "--
|
|
1063
|
-
hint: "Drop --project to provision a new project, or drop --
|
|
1060
|
+
message: "--idempotency-key only applies when provisioning a NEW project — it does not apply with --project.",
|
|
1061
|
+
hint: "Drop --project to provision a new project, or drop --idempotency-key to adopt the existing one.",
|
|
1064
1062
|
});
|
|
1065
1063
|
}
|
|
1066
1064
|
return createAdopt(adoptProjectId, dir, a);
|
|
@@ -1079,41 +1077,6 @@ async function listViaBulkRead(sdk, orgId) {
|
|
|
1079
1077
|
return Array.isArray(result.vaults) ? result.vaults : [];
|
|
1080
1078
|
}
|
|
1081
1079
|
|
|
1082
|
-
/**
|
|
1083
|
-
* DEPRECATED fallback, kept only until every deployed gateway answers
|
|
1084
|
-
* `GET /vaults/v1?org_id=`: the old client-side N+1 (list the
|
|
1085
|
-
* org's projects, then read each one's vault status). Delete this
|
|
1086
|
-
* function once the bulk route has shipped long enough that no gateway
|
|
1087
|
-
* still 404s it.
|
|
1088
|
-
*/
|
|
1089
|
-
async function listViaFallback(sdk, orgId) {
|
|
1090
|
-
const result = await sdk.projects.list({ org: orgId });
|
|
1091
|
-
const projects = Array.isArray(result.projects) ? result.projects : [];
|
|
1092
|
-
const repos = [];
|
|
1093
|
-
for (const p of projects) {
|
|
1094
|
-
let status;
|
|
1095
|
-
try {
|
|
1096
|
-
status = await sdk.repos.status({ project_id: p.id });
|
|
1097
|
-
} catch {
|
|
1098
|
-
continue;
|
|
1099
|
-
}
|
|
1100
|
-
if (!status.vault) continue;
|
|
1101
|
-
repos.push({
|
|
1102
|
-
repo_id: status.repo_id,
|
|
1103
|
-
project_id: p.id,
|
|
1104
|
-
project_name: p.name ?? null,
|
|
1105
|
-
repo_name: null,
|
|
1106
|
-
org_slug: null,
|
|
1107
|
-
vault_policy: status.vault.vault_policy,
|
|
1108
|
-
newest_generation: status.vault.newest_generation ?? null,
|
|
1109
|
-
source_bytes: String(status.vault.storage?.source_bytes ?? "0"),
|
|
1110
|
-
genesis_admitted_at: status.vault.genesis_admitted_at,
|
|
1111
|
-
created_at: null,
|
|
1112
|
-
});
|
|
1113
|
-
}
|
|
1114
|
-
return repos;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
1080
|
/** `repos list --human`: a compact roster — one line per repo (address, generation, bytes, policy). */
|
|
1118
1081
|
async function formatRepoListHuman(orgSlug, repos) {
|
|
1119
1082
|
if (repos.length === 0) return "(no vault-bearing repos in this organization)";
|
|
@@ -1138,22 +1101,11 @@ async function list(args) {
|
|
|
1138
1101
|
const orgId = await resolveOrgId(a, { cmd: "repos" });
|
|
1139
1102
|
|
|
1140
1103
|
let repos;
|
|
1141
|
-
let usedFallback = false;
|
|
1142
1104
|
try {
|
|
1143
1105
|
repos = await listViaBulkRead(sdk, orgId);
|
|
1144
1106
|
} catch (err) {
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
try {
|
|
1148
|
-
repos = await listViaFallback(sdk, orgId);
|
|
1149
|
-
} catch (fallbackErr) {
|
|
1150
|
-
reportSdkError(fallbackErr);
|
|
1151
|
-
return;
|
|
1152
|
-
}
|
|
1153
|
-
} else {
|
|
1154
|
-
reportSdkError(err);
|
|
1155
|
-
return;
|
|
1156
|
-
}
|
|
1107
|
+
reportSdkError(err);
|
|
1108
|
+
return;
|
|
1157
1109
|
}
|
|
1158
1110
|
|
|
1159
1111
|
let orgSlug = repos.find((r) => r.org_slug)?.org_slug ?? null;
|
|
@@ -1171,7 +1123,7 @@ async function list(args) {
|
|
|
1171
1123
|
return;
|
|
1172
1124
|
}
|
|
1173
1125
|
printJson(sdk, { org_id: orgId, org_slug: orgSlug, repos });
|
|
1174
|
-
console.error(`${repos.length} vault-bearing project(s) in this organization
|
|
1126
|
+
console.error(`${repos.length} vault-bearing project(s) in this organization`);
|
|
1175
1127
|
if (orgSlug) console.error(`org slug: ${orgSlug} — a repo with an address-form name set is reachable at run402::${orgSlug}/<name>`);
|
|
1176
1128
|
printVerboseStats(a, sdk);
|
|
1177
1129
|
}
|
package/lib/subscriptions.mjs
CHANGED
|
@@ -43,7 +43,6 @@ Usage:
|
|
|
43
43
|
|
|
44
44
|
Notes:
|
|
45
45
|
- <binding_id> is the id of an ACTIVE telegram row in \`run402 contacts list\`.
|
|
46
|
-
\`--contact <binding_id>\` is accepted as an alias of \`--binding\`.
|
|
47
46
|
- Absent dimensions are wildcards; an explicit empty list matches NOTHING.
|
|
48
47
|
- Severity is the emitter's to declare (info < notice < warn < critical);
|
|
49
48
|
the rule only filters on it. Without --min-severity a rule carries notice
|
|
@@ -75,11 +74,9 @@ function splitCsv(value) {
|
|
|
75
74
|
|
|
76
75
|
/** Value flags `subscriptions add` accepts. Exported so the help/parser
|
|
77
76
|
* consistency test can assert every flag HELP teaches is one the parser
|
|
78
|
-
* takes
|
|
79
|
-
* kept `--binding`, and nothing caught the drift. `--contact` stays as an
|
|
80
|
-
* alias for anyone who learned it from that help text. */
|
|
77
|
+
* takes. */
|
|
81
78
|
export const SUBSCRIPTIONS_ADD_VALUE_FLAGS = [
|
|
82
|
-
"--binding", "--
|
|
79
|
+
"--binding", "--project", "--source", "--type", "--class",
|
|
83
80
|
"--min-severity", "--group-by", "--window", "--escalate-to-level",
|
|
84
81
|
];
|
|
85
82
|
export const SUBSCRIPTIONS_ADD_USAGE =
|
|
@@ -106,7 +103,7 @@ async function rulesAdd(args) {
|
|
|
106
103
|
fail({ code: "BAD_USAGE", message: `Unexpected argument for subscriptions add: ${positionals[0]}` });
|
|
107
104
|
}
|
|
108
105
|
|
|
109
|
-
const bindingId = flagValue(a, "--binding")
|
|
106
|
+
const bindingId = flagValue(a, "--binding");
|
|
110
107
|
const levelRaw = flagValue(a, "--escalate-to-level");
|
|
111
108
|
if (!bindingId === (levelRaw === null)) {
|
|
112
109
|
// Exactly one destination: a chat binding, or the escalation ladder.
|
package/lib/up.mjs
CHANGED
|
@@ -345,7 +345,7 @@ export async function run(args = []) {
|
|
|
345
345
|
|
|
346
346
|
let result;
|
|
347
347
|
if (repoOnly) {
|
|
348
|
-
result = await runRepoOnly({ sdk, workDir, createdRepository, nested, opts: parsed,
|
|
348
|
+
result = await runRepoOnly({ sdk, workDir, createdRepository, nested, opts: parsed, allowWarningCodes, idempotencyKey: flagValue(parsed, "--idempotency-key") ?? undefined });
|
|
349
349
|
} else {
|
|
350
350
|
result = await upWithExplicitSelection(sdk, {
|
|
351
351
|
source,
|
|
@@ -772,7 +772,7 @@ async function readLocalGitState(workDir) {
|
|
|
772
772
|
* create`'s own shape (task 2.6); `up --repo-only` is the "I'm already
|
|
773
773
|
* inside `up`'s mental model" entry point to the same outcome.
|
|
774
774
|
*/
|
|
775
|
-
async function runRepoOnly({ sdk, workDir, createdRepository, nested = false, opts,
|
|
775
|
+
async function runRepoOnly({ sdk, workDir, createdRepository, nested = false, opts, idempotencyKey }) {
|
|
776
776
|
// `sdk.up()`'s action graph auto-approves prerequisites (wallet, tier)
|
|
777
777
|
// for a cold start; calling projects.provision directly bypasses that, so
|
|
778
778
|
// this mirrors the SAME gate `run402 projects provision` itself uses —
|
|
@@ -780,7 +780,7 @@ async function runRepoOnly({ sdk, workDir, createdRepository, nested = false, op
|
|
|
780
780
|
// auth error from the gateway.
|
|
781
781
|
if (!isCoreApiTarget() && !loadLiveControlPlaneSession()) walletAuthHeaders("/projects/v1");
|
|
782
782
|
const name = flagValue(opts, "--name") ?? undefined;
|
|
783
|
-
const provisioned = await sdk.projects.provision({
|
|
783
|
+
const provisioned = await sdk.projects.provision({ name, idempotencyKey });
|
|
784
784
|
createdRepository = await gitInitIfNeeded(workDir);
|
|
785
785
|
const repo = await composeRepoPushStep({ sdk, workDir, projectId: provisioned.project_id, createdRepository, nested });
|
|
786
786
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "run402",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.154.0",
|
|
4
4
|
"description": "CLI for Run402 — full-stack backend infrastructure for AI agents: Postgres, auth, storage, serverless functions and atomic deploys. Paid with x402/MPP. Includes $0.03 image generation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|