@epilot/cli 0.1.148 → 0.1.149
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
CHANGED
|
@@ -348,23 +348,22 @@
|
|
|
348
348
|
"schemas": {
|
|
349
349
|
"EnvironmentValueType": {
|
|
350
350
|
"type": "string",
|
|
351
|
-
"description": "The structure a variable's value holds. `SecretString` is encrypted at rest and\nits value is never returned. `Text`, `Number`, `Boolean` and `
|
|
351
|
+
"description": "The structure a variable's value holds. `SecretString` is encrypted at rest and\nits value is never returned. `Text`, `Number`, `Boolean`, `Map`, `JSON` and `Link`\nmay be served to browser-facing consumers; `String` and `SecretString` may not.\n",
|
|
352
352
|
"enum": [
|
|
353
353
|
"String",
|
|
354
354
|
"SecretString",
|
|
355
355
|
"Text",
|
|
356
356
|
"Number",
|
|
357
357
|
"Boolean",
|
|
358
|
-
"Map"
|
|
358
|
+
"Map",
|
|
359
|
+
"JSON",
|
|
360
|
+
"Link"
|
|
359
361
|
]
|
|
360
362
|
},
|
|
361
363
|
"StringTranslations": {
|
|
362
|
-
"description": "A string translated per language. Keys are language codes (e.g. `de`,\n`en-US`), matching the hyphen-only BCP-47 form epilot's i18n stack uses\neverywhere else
|
|
364
|
+
"description": "A string translated per language. Keys are language codes (e.g. `de`,\n`en-US`), matching the hyphen-only BCP-47 form epilot's i18n stack uses\neverywhere else: `^[a-z]{2,3}(-[A-Za-z0-9]+)*$`. The server enforces\nthat with LANGUAGE_KEY_PATTERN in src/core/value-types.ts — the two are\nnot otherwise linked. The pattern is documented rather than declared\nbecause `propertyNames` is JSON Schema / OAS 3.1 and this document is\n3.0.3, where it fails `spectral lint` (oas3-schema).\n",
|
|
363
365
|
"type": "object",
|
|
364
366
|
"minProperties": 1,
|
|
365
|
-
"propertyNames": {
|
|
366
|
-
"pattern": "^[a-z]{2,3}(-[A-Za-z0-9]+)*$"
|
|
367
|
-
},
|
|
368
367
|
"additionalProperties": {
|
|
369
368
|
"type": "string",
|
|
370
369
|
"minLength": 1
|
|
@@ -417,9 +416,59 @@
|
|
|
417
416
|
}
|
|
418
417
|
}
|
|
419
418
|
},
|
|
419
|
+
"JsonValue": {
|
|
420
|
+
"description": "Arbitrary JSON object, e.g. a flat key/value map used by integrations for\nenum translation: {\"Mr.\": 1, \"Ms. / Mrs.\": 2}. Max 32 KB serialised.\n",
|
|
421
|
+
"type": "object",
|
|
422
|
+
"additionalProperties": true
|
|
423
|
+
},
|
|
424
|
+
"LinkValue": {
|
|
425
|
+
"description": "One URL with a label and description a customer reads. `label` and\n`description` are each either a plain string or one string per language;\nthe two fields decide that independently — a plain string means \"the\nsame in every language\". A translated field must carry the fallback\nlanguage.\n\nThe URL must be absolute and `http`/`https` only. This value is served\nto browser-facing consumers, so `javascript:` and `data:` URLs are\nrejected at write time.\n\nWritten flat rather than composed from a shared field set: `allOf` plus\n`additionalProperties: false` is rejected by most validators, because\neach branch sees the sibling's properties as unknown. The composition\nlives in zod (LinkFieldsSchema) — see src/core/value-types.ts.\n\nEach translated value of `label` and `description` is also limited to\nthe same maximum as the plain-string form above — 255 characters for\n`label`, 1024 for `description`. The limit is enforced by the server\neven though the shared `StringTranslations` schema referenced below\ndoes not itself declare it.\n",
|
|
426
|
+
"type": "object",
|
|
427
|
+
"required": [
|
|
428
|
+
"url",
|
|
429
|
+
"label"
|
|
430
|
+
],
|
|
431
|
+
"additionalProperties": false,
|
|
432
|
+
"properties": {
|
|
433
|
+
"url": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"minLength": 1,
|
|
436
|
+
"maxLength": 2048
|
|
437
|
+
},
|
|
438
|
+
"label": {
|
|
439
|
+
"oneOf": [
|
|
440
|
+
{
|
|
441
|
+
"type": "string",
|
|
442
|
+
"minLength": 1,
|
|
443
|
+
"maxLength": 255
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"$ref": "#/components/schemas/StringTranslations"
|
|
447
|
+
}
|
|
448
|
+
]
|
|
449
|
+
},
|
|
450
|
+
"description": {
|
|
451
|
+
"oneOf": [
|
|
452
|
+
{
|
|
453
|
+
"type": "string",
|
|
454
|
+
"minLength": 1,
|
|
455
|
+
"maxLength": 1024
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"$ref": "#/components/schemas/StringTranslations"
|
|
459
|
+
}
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
"fallbackLanguage": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"minLength": 2,
|
|
465
|
+
"default": "de"
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
},
|
|
420
469
|
"EnvironmentValue": {
|
|
421
|
-
"description": "A variable's value. The JSON type corresponds to the variable's `type`:\n`String`, `SecretString` and `Text` are strings, `Number` is a number,\n`Boolean` is a boolean, and `Map`
|
|
422
|
-
"
|
|
470
|
+
"description": "A variable's value. The JSON type corresponds to the variable's `type`:\n`String`, `SecretString` and `Text` are strings, `Number` is a number,\n`Boolean` is a boolean, and `Map`, `JSON` and `Link` are objects. Numbers are\nIEEE 754 doubles; integers above 2^53 may lose precision on round-trip.\n",
|
|
471
|
+
"anyOf": [
|
|
423
472
|
{
|
|
424
473
|
"type": "string"
|
|
425
474
|
},
|
|
@@ -431,6 +480,12 @@
|
|
|
431
480
|
},
|
|
432
481
|
{
|
|
433
482
|
"$ref": "#/components/schemas/MapValue"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"$ref": "#/components/schemas/LinkValue"
|
|
434
489
|
}
|
|
435
490
|
]
|
|
436
491
|
},
|
package/dist/bin/epilot.js
CHANGED
|
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
|
|
|
11
11
|
var main = defineCommand({
|
|
12
12
|
meta: {
|
|
13
13
|
name: "epilot",
|
|
14
|
-
version: "0.1.
|
|
14
|
+
version: "0.1.149",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -31,7 +31,7 @@ var main = defineCommand({
|
|
|
31
31
|
profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
|
|
32
32
|
config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
|
|
33
33
|
completion: () => import("../completion-O46M2V67.js").then((m) => m.default),
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
34
|
+
upgrade: () => import("../upgrade-YUGQOSQG.js").then((m) => m.default),
|
|
35
35
|
"access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
|
|
36
36
|
address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
|
|
37
37
|
"address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
|
|
@@ -134,7 +134,7 @@ process.stderr.on("error", (err) => {
|
|
|
134
134
|
if (err.code === "EPIPE") process.exit(0);
|
|
135
135
|
throw err;
|
|
136
136
|
});
|
|
137
|
-
var VERSION = true ? "0.1.
|
|
137
|
+
var VERSION = true ? "0.1.149" : (await null).default.version;
|
|
138
138
|
var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
|
|
139
139
|
process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
|
|
140
140
|
var args = process.argv.slice(2);
|
|
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
var getCurrentVersion = () => {
|
|
75
|
-
if (true) return "0.1.
|
|
75
|
+
if (true) return "0.1.149";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|