run402 4.130.4 → 4.130.5
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/assets.mjs +5 -5
- package/package.json +1 -1
- package/vault-surface.json +1 -1
package/lib/assets.mjs
CHANGED
|
@@ -362,7 +362,7 @@ const VALID_SORTS = new Set(["key:asc", "createdAt:asc", "createdAt:desc"]);
|
|
|
362
362
|
function parseSortFlag(raw) {
|
|
363
363
|
if (typeof raw !== "string" || !VALID_SORTS.has(raw)) {
|
|
364
364
|
fail({
|
|
365
|
-
code: "
|
|
365
|
+
code: "INVALID_SORT",
|
|
366
366
|
message: `--sort must be one of: ${[...VALID_SORTS].join(", ")} — got: ${raw}`,
|
|
367
367
|
details: { flag: "--sort", value: raw },
|
|
368
368
|
});
|
|
@@ -390,7 +390,7 @@ function applyFilterFlag(filter, raw) {
|
|
|
390
390
|
const value = raw.slice(eq + 1);
|
|
391
391
|
if (!VALID_FILTER_KEYS.has(key)) {
|
|
392
392
|
fail({
|
|
393
|
-
code: "
|
|
393
|
+
code: "INVALID_FILTER_KEY",
|
|
394
394
|
message: `--filter key ${key} not in: ${[...VALID_FILTER_KEYS].join(", ")}`,
|
|
395
395
|
details: { flag: "--filter", key },
|
|
396
396
|
});
|
|
@@ -398,7 +398,7 @@ function applyFilterFlag(filter, raw) {
|
|
|
398
398
|
if (key === "is_image") {
|
|
399
399
|
if (value !== "true" && value !== "false") {
|
|
400
400
|
fail({
|
|
401
|
-
code: "
|
|
401
|
+
code: "INVALID_FILTER_KEY",
|
|
402
402
|
message: `--filter is_image must be 'true' or 'false', got: ${value}`,
|
|
403
403
|
});
|
|
404
404
|
}
|
|
@@ -407,7 +407,7 @@ function applyFilterFlag(filter, raw) {
|
|
|
407
407
|
const n = Number(value);
|
|
408
408
|
if (!Number.isSafeInteger(n) || n < 0) {
|
|
409
409
|
fail({
|
|
410
|
-
code: "
|
|
410
|
+
code: "INVALID_FILTER_KEY",
|
|
411
411
|
message: `--filter ${key} must be a non-negative integer, got: ${value}`,
|
|
412
412
|
});
|
|
413
413
|
}
|
|
@@ -415,7 +415,7 @@ function applyFilterFlag(filter, raw) {
|
|
|
415
415
|
} else {
|
|
416
416
|
if (value.length === 0) {
|
|
417
417
|
fail({
|
|
418
|
-
code: "
|
|
418
|
+
code: "INVALID_FILTER_KEY",
|
|
419
419
|
message: `--filter ${key} must be a non-empty string`,
|
|
420
420
|
});
|
|
421
421
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "run402",
|
|
3
|
-
"version": "4.130.
|
|
3
|
+
"version": "4.130.5",
|
|
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": {
|
package/vault-surface.json
CHANGED