@epilot/cli 0.1.146 → 0.1.147

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
@@ -29,7 +29,7 @@ npm install -g @epilot/cli
29
29
 
30
30
  <!-- usage-help -->
31
31
  ```
32
- epilot v0.1.146 — CLI for epilot APIs
32
+ epilot v0.1.147 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -5701,7 +5701,7 @@
5701
5701
  "overridable_attribute": {
5702
5702
  "type": "boolean",
5703
5703
  "default": false,
5704
- "description": "Allow conditional variants of the entity to override this attribute's value.\nOnly meaningful on schemas that declare `conditions`. Unflagged attributes stay\nfixed on the base entity.\n"
5704
+ "description": "Allow conditional variants of the entity to override this attribute's value.\nOnly meaningful on schemas that declare `conditions`. Unflagged attributes stay\nfixed on the base entity.\n\nAccepted on scalar attributes and on relations — a variant overrides a relation by\nreplacing its whole `$relation` list (e.g. a product's prices). Rejected on system\n(`_`-prefixed), `readonly`, `hidden`, `computed` and `repeatable` attributes.\n"
5705
5705
  },
5706
5706
  "default_value": {},
5707
5707
  "group": {
@@ -7373,15 +7373,36 @@
7373
7373
  "select"
7374
7374
  ]
7375
7375
  },
7376
- "values": {
7376
+ "options": {
7377
7377
  "type": "array",
7378
- "description": "Selectable options. May be empty while the condition is being configured.",
7378
+ "description": "Selectable options, in the same shape a `select` attribute's `options` take: a bare\nvalue or a `{ value, title }` object. May be empty while the condition is being\nconfigured.\n",
7379
7379
  "items": {
7380
- "type": "string"
7380
+ "anyOf": [
7381
+ {
7382
+ "type": "string"
7383
+ },
7384
+ {
7385
+ "type": "object",
7386
+ "properties": {
7387
+ "value": {
7388
+ "type": "string"
7389
+ },
7390
+ "title": {
7391
+ "type": "string"
7392
+ }
7393
+ },
7394
+ "required": [
7395
+ "value"
7396
+ ]
7397
+ }
7398
+ ]
7381
7399
  },
7382
7400
  "example": [
7383
7401
  "12_months",
7384
- "24_months"
7402
+ {
7403
+ "value": "24_months",
7404
+ "title": "24 months"
7405
+ }
7385
7406
  ]
7386
7407
  }
7387
7408
  },
@@ -7423,7 +7444,7 @@
7423
7444
  ]
7424
7445
  },
7425
7446
  "ConditionDefinition": {
7426
- "description": "One dimension that conditional variants of an entity type are keyed by. `type`\ndiscriminates the variants: only a `select` condition carries `values`, and only a\n`location` condition carries `format`.\n",
7447
+ "description": "One dimension that conditional variants of an entity type are keyed by. `type`\ndiscriminates the variants: only a `select` condition carries `options`, and only a\n`location` condition carries `format`.\n",
7427
7448
  "oneOf": [
7428
7449
  {
7429
7450
  "$ref": "#/components/schemas/ScalarConditionDefinition"
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.146",
14
+ version: "0.1.147",
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-R2OMPLKS.js").then((m) => m.default),
34
+ upgrade: () => import("../upgrade-2CGBWWDQ.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.146" : (await null).default.version;
137
+ var VERSION = true ? "0.1.147" : (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.146";
75
+ if (true) return "0.1.147";
76
76
  try {
77
77
  const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
78
78
  encoding: "utf-8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/cli",
3
- "version": "0.1.146",
3
+ "version": "0.1.147",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {