@epilot/cli 0.1.158 → 0.1.159

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.158 — CLI for epilot APIs
32
+ epilot v0.1.159 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Journey API",
5
5
  "description": "API to configure journeys",
6
- "version": "1.5.0"
6
+ "version": "1.6.0"
7
7
  },
8
8
  "security": [
9
9
  {
@@ -124,6 +124,16 @@
124
124
  "default": 0
125
125
  }
126
126
  },
127
+ {
128
+ "name": "revision_id",
129
+ "in": "query",
130
+ "description": "Serve the named revision instead of the published version, so a save-and-continue session can stay on the revision it started on. Only revisions that have been published at least once are served on the public and portal routes; an unpublished revision is served to `EpilotAuth` callers with the edit permission and is otherwise unknown. Cannot be combined with the legacy `version` parameter.\n",
131
+ "required": false,
132
+ "schema": {
133
+ "type": "string",
134
+ "example": "42"
135
+ }
136
+ },
127
137
  {
128
138
  "name": "source",
129
139
  "in": "query",
@@ -155,6 +165,9 @@
155
165
  },
156
166
  {
157
167
  "$ref": "#/components/schemas/JourneyActivationGuarantee"
168
+ },
169
+ {
170
+ "$ref": "#/components/schemas/JourneyServedRevision"
158
171
  }
159
172
  ]
160
173
  }
@@ -2815,6 +2828,16 @@
2815
2828
  }
2816
2829
  ]
2817
2830
  },
2831
+ "JourneyServedRevision": {
2832
+ "description": "Which revision the runtime read served: the requested one, or the published version when no revision was requested. Absent while the journey has not adopted versioning and on legacy `version` reads.\n",
2833
+ "type": "object",
2834
+ "properties": {
2835
+ "revision_id": {
2836
+ "type": "string",
2837
+ "example": "42"
2838
+ }
2839
+ }
2840
+ },
2818
2841
  "JourneyActivationGuarantee": {
2819
2842
  "description": "Journeys read from the API always carry an explicit `settings.isActive`. The flag remains optional in request bodies.\n",
2820
2843
  "type": "object",
@@ -2896,6 +2919,11 @@
2896
2919
  "type": "number",
2897
2920
  "description": "Version of the entity-mapping config stored alongside this revision. Publishing the revision points the journey's automation at it.\n",
2898
2921
  "example": 12
2922
+ },
2923
+ "revision_name": {
2924
+ "type": "string",
2925
+ "description": "What this save changed, for the revision history to list. Distinct from `name`, which is the journey's own name. A publish replaces it with the version name.\n",
2926
+ "example": "Changes to Steps and Logic"
2899
2927
  }
2900
2928
  }
2901
2929
  }
@@ -3553,9 +3581,6 @@
3553
3581
  "servers": [
3554
3582
  {
3555
3583
  "url": "https://journey-config.sls.epilot.io"
3556
- },
3557
- {
3558
- "url": "https://journey-config.dev.sls.epilot.io"
3559
3584
  }
3560
3585
  ]
3561
3586
  }
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.158",
14
+ version: "0.1.159",
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-6CAE47TY.js").then((m) => m.default),
34
- upgrade: () => import("../upgrade-6ENFMVHU.js").then((m) => m.default),
34
+ upgrade: () => import("../upgrade-4YMCSJBS.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.158" : (await null).default.version;
137
+ var VERSION = true ? "0.1.159" : (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.158";
75
+ if (true) return "0.1.159";
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.158",
3
+ "version": "0.1.159",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {