@epilot/cli 0.1.42 → 0.1.44

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.42 — CLI for epilot APIs
32
+ epilot v0.1.44 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -917,6 +917,9 @@
917
917
  "404": {
918
918
  "$ref": "#/components/responses/NotFoundError"
919
919
  },
920
+ "409": {
921
+ "$ref": "#/components/responses/ConflictError"
922
+ },
920
923
  "500": {
921
924
  "$ref": "#/components/responses/InternalServerError"
922
925
  }
@@ -1215,6 +1218,20 @@
1215
1218
  "responses": {
1216
1219
  "200": {
1217
1220
  "description": "Generated thumbnail image for a public file",
1221
+ "headers": {
1222
+ "ETag": {
1223
+ "description": "Identifier of the previewed file version, for conditional requests",
1224
+ "schema": {
1225
+ "type": "string"
1226
+ }
1227
+ },
1228
+ "Cache-Control": {
1229
+ "description": "Caching policy for the preview",
1230
+ "schema": {
1231
+ "type": "string"
1232
+ }
1233
+ }
1234
+ },
1218
1235
  "content": {
1219
1236
  "image/png": {
1220
1237
  "schema": {
@@ -1230,6 +1247,23 @@
1230
1247
  }
1231
1248
  }
1232
1249
  },
1250
+ "304": {
1251
+ "description": "The preview is unchanged since the version identified by the `If-None-Match`\nrequest header. No body is returned; the cached copy should be reused.\n",
1252
+ "headers": {
1253
+ "ETag": {
1254
+ "description": "Identifier of the current file version's preview",
1255
+ "schema": {
1256
+ "type": "string"
1257
+ }
1258
+ },
1259
+ "Cache-Control": {
1260
+ "description": "Caching policy for the preview",
1261
+ "schema": {
1262
+ "type": "string"
1263
+ }
1264
+ }
1265
+ }
1266
+ },
1233
1267
  "403": {
1234
1268
  "description": "File is not public",
1235
1269
  "content": {
@@ -2162,14 +2196,24 @@
2162
2196
  "custom_download_url": {
2163
2197
  "$ref": "#/components/schemas/CustomDownloadUrl"
2164
2198
  },
2165
- "preview_summary": {
2199
+ "preview_summary_de": {
2166
2200
  "type": "string",
2167
- "description": "AI-generated compact summary for hover and list preview surfaces.",
2201
+ "description": "Compact German summary for hover and list preview surfaces.",
2168
2202
  "readOnly": true
2169
2203
  },
2170
- "short_summary": {
2204
+ "short_summary_de": {
2171
2205
  "type": "string",
2172
- "description": "AI-generated short paragraph summary for file preview surfaces.",
2206
+ "description": "Short German paragraph summary for file preview surfaces.",
2207
+ "readOnly": true
2208
+ },
2209
+ "preview_summary_en": {
2210
+ "type": "string",
2211
+ "description": "Compact English summary for hover and list preview surfaces.",
2212
+ "readOnly": true
2213
+ },
2214
+ "short_summary_en": {
2215
+ "type": "string",
2216
+ "description": "Short English paragraph summary for file preview surfaces.",
2173
2217
  "readOnly": true
2174
2218
  },
2175
2219
  "summary_status": {
@@ -3154,6 +3198,26 @@
3154
3198
  }
3155
3199
  }
3156
3200
  },
3201
+ "ConflictError": {
3202
+ "description": "The request conflicts with the current resource state",
3203
+ "content": {
3204
+ "application/json": {
3205
+ "schema": {
3206
+ "allOf": [
3207
+ {
3208
+ "$ref": "#/components/schemas/ErrorObject"
3209
+ },
3210
+ {
3211
+ "example": {
3212
+ "status": 409,
3213
+ "error": "Extracted file content is still being prepared"
3214
+ }
3215
+ }
3216
+ ]
3217
+ }
3218
+ }
3219
+ }
3220
+ },
3157
3221
  "InternalServerError": {
3158
3222
  "description": "An unexpected error occurred on the server",
3159
3223
  "content": {
@@ -9476,6 +9476,35 @@
9476
9476
  "hits"
9477
9477
  ]
9478
9478
  },
9479
+ "OfferHighlightConfig": {
9480
+ "type": "object",
9481
+ "properties": {
9482
+ "unique_selling_point": {
9483
+ "type": "string"
9484
+ },
9485
+ "unique_selling_point_icon": {
9486
+ "type": "string"
9487
+ },
9488
+ "total": {
9489
+ "type": "object",
9490
+ "properties": {
9491
+ "enabled": {
9492
+ "type": "boolean"
9493
+ },
9494
+ "format": {
9495
+ "type": "string",
9496
+ "enum": [
9497
+ "absolute",
9498
+ "relative"
9499
+ ]
9500
+ },
9501
+ "only_if_better": {
9502
+ "type": "boolean"
9503
+ }
9504
+ }
9505
+ }
9506
+ }
9507
+ },
9479
9508
  "Offer": {
9480
9509
  "type": "object",
9481
9510
  "properties": {
@@ -9492,6 +9521,9 @@
9492
9521
  },
9493
9522
  "product_id": {
9494
9523
  "type": "string"
9524
+ },
9525
+ "highlight_config": {
9526
+ "$ref": "#/components/schemas/OfferHighlightConfig"
9495
9527
  }
9496
9528
  },
9497
9529
  "required": [
@@ -12,7 +12,7 @@ var app_default = defineCommand({
12
12
  "add-component": () => import("./add-component-IVVCAUGY.js").then((m) => m.default),
13
13
  "remove-component": () => import("./remove-component-HJA5OA3H.js").then((m) => m.default),
14
14
  validate: () => import("./validate-QUSO4DR4.js").then((m) => m.default),
15
- deploy: () => import("./deploy-HN3M5VTA.js").then((m) => m.default),
15
+ deploy: () => import("./deploy-JMJFXUKQ.js").then((m) => m.default),
16
16
  export: () => import("./export-JDDMBBNS.js").then((m) => m.default),
17
17
  versions: () => import("./versions-EUTT4SNW.js").then((m) => m.default),
18
18
  review: () => import("./review-7M27IRW6.js").then((m) => m.default),
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.42",
14
+ version: "0.1.44",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -31,12 +31,12 @@ 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-SCM3DTVX.js").then((m) => m.default),
34
- upgrade: () => import("../upgrade-FZJFMTY2.js").then((m) => m.default),
34
+ upgrade: () => import("../upgrade-RRBXKSXL.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),
38
38
  "ai-agents": () => import("../ai-agents-HEDTH2EP.js").then((m) => m.default),
39
- app: () => import("../app-TIFX5AYN.js").then((m) => m.default),
39
+ app: () => import("../app-EULJIEDB.js").then((m) => m.default),
40
40
  "audit-logs": () => import("../audit-logs-YFRK3EFU.js").then((m) => m.default),
41
41
  automation: () => import("../automation-4DEE3TUI.js").then((m) => m.default),
42
42
  billing: () => import("../billing-XX4VVOPI.js").then((m) => m.default),
@@ -133,7 +133,7 @@ process.stderr.on("error", (err) => {
133
133
  if (err.code === "EPIPE") process.exit(0);
134
134
  throw err;
135
135
  });
136
- var VERSION = true ? "0.1.42" : (await null).default.version;
136
+ var VERSION = true ? "0.1.44" : (await null).default.version;
137
137
  var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
138
138
  process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
139
139
  var args = process.argv.slice(2);
@@ -161,16 +161,13 @@ var deploy_default = defineCommand({
161
161
  const zipSize = await uploadDirectoryAsZip(upload_url, zipPath);
162
162
  log.success(`Uploaded zip for ${comp.id} (${formatFileSize(zipSize)})`);
163
163
  if (componentPayload.surfaces && typeof componentPayload.surfaces === "object") {
164
+ const appUrl = artifact_url.replace(/\/[^/]+$/, "/index.html");
164
165
  for (const surface of Object.values(
165
166
  componentPayload.surfaces
166
167
  )) {
167
168
  if (surface && typeof surface === "object") {
168
- if ("app_url" in surface) {
169
- surface.app_url = artifact_url;
170
- }
171
- if ("zip_url" in surface) {
172
- surface.zip_url = artifact_url;
173
- }
169
+ surface.app_url = appUrl;
170
+ surface.zip_url = artifact_url;
174
171
  }
175
172
  }
176
173
  }
@@ -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.42";
75
+ if (true) return "0.1.44";
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.42",
3
+ "version": "0.1.44",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {