@epilot/cli 0.1.30 → 0.1.32
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 +1 -1
- package/definitions/file.json +88 -4
- package/dist/bin/epilot.js +6 -6
- package/dist/{chunk-U4QRH3V6.js → chunk-FN6B4KCD.js} +2 -1
- package/dist/{completion-VUPE424X.js → completion-T3EWN6OG.js} +1 -1
- package/dist/{upgrade-C6KB2YJA.js → upgrade-QTVSGH5C.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/definitions/file.json
CHANGED
|
@@ -802,7 +802,7 @@
|
|
|
802
802
|
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
803
803
|
],
|
|
804
804
|
"zip_filename": "Documents.zip",
|
|
805
|
-
"notify_email":
|
|
805
|
+
"notify_email": "user@example.com"
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
}
|
|
@@ -875,6 +875,54 @@
|
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
},
|
|
878
|
+
"/v1/files/{id}/summary:generate": {
|
|
879
|
+
"post": {
|
|
880
|
+
"operationId": "generateFileSummary",
|
|
881
|
+
"summary": "generateFileSummary",
|
|
882
|
+
"description": "Request AI generation of preview and short summaries for a file entity.",
|
|
883
|
+
"tags": [
|
|
884
|
+
"File"
|
|
885
|
+
],
|
|
886
|
+
"parameters": [
|
|
887
|
+
{
|
|
888
|
+
"name": "id",
|
|
889
|
+
"in": "path",
|
|
890
|
+
"required": true,
|
|
891
|
+
"description": "The UUID of the file entity",
|
|
892
|
+
"schema": {
|
|
893
|
+
"$ref": "#/components/schemas/FileEntityId"
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
],
|
|
897
|
+
"responses": {
|
|
898
|
+
"202": {
|
|
899
|
+
"description": "Summary generation accepted",
|
|
900
|
+
"content": {
|
|
901
|
+
"application/json": {
|
|
902
|
+
"schema": {
|
|
903
|
+
"$ref": "#/components/schemas/FileSummaryGenerationStatus"
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
"400": {
|
|
909
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
910
|
+
},
|
|
911
|
+
"401": {
|
|
912
|
+
"$ref": "#/components/responses/UnauthorizedError"
|
|
913
|
+
},
|
|
914
|
+
"403": {
|
|
915
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
916
|
+
},
|
|
917
|
+
"404": {
|
|
918
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
919
|
+
},
|
|
920
|
+
"500": {
|
|
921
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
},
|
|
878
926
|
"/v1/files/{id}/preview": {
|
|
879
927
|
"get": {
|
|
880
928
|
"operationId": "previewFile",
|
|
@@ -2113,6 +2161,19 @@
|
|
|
2113
2161
|
},
|
|
2114
2162
|
"custom_download_url": {
|
|
2115
2163
|
"$ref": "#/components/schemas/CustomDownloadUrl"
|
|
2164
|
+
},
|
|
2165
|
+
"preview_summary": {
|
|
2166
|
+
"type": "string",
|
|
2167
|
+
"description": "AI-generated compact summary for hover and list preview surfaces.",
|
|
2168
|
+
"readOnly": true
|
|
2169
|
+
},
|
|
2170
|
+
"short_summary": {
|
|
2171
|
+
"type": "string",
|
|
2172
|
+
"description": "AI-generated short paragraph summary for file preview surfaces.",
|
|
2173
|
+
"readOnly": true
|
|
2174
|
+
},
|
|
2175
|
+
"summary_status": {
|
|
2176
|
+
"$ref": "#/components/schemas/FileSummaryStatus"
|
|
2116
2177
|
}
|
|
2117
2178
|
}
|
|
2118
2179
|
},
|
|
@@ -2133,6 +2194,28 @@
|
|
|
2133
2194
|
"unknown"
|
|
2134
2195
|
]
|
|
2135
2196
|
},
|
|
2197
|
+
"FileSummaryStatus": {
|
|
2198
|
+
"type": "string",
|
|
2199
|
+
"description": "Current AI summary generation state for the file.",
|
|
2200
|
+
"enum": [
|
|
2201
|
+
"processing",
|
|
2202
|
+
"completed",
|
|
2203
|
+
"failed",
|
|
2204
|
+
"unsupported"
|
|
2205
|
+
],
|
|
2206
|
+
"readOnly": true
|
|
2207
|
+
},
|
|
2208
|
+
"FileSummaryGenerationStatus": {
|
|
2209
|
+
"type": "object",
|
|
2210
|
+
"properties": {
|
|
2211
|
+
"status": {
|
|
2212
|
+
"$ref": "#/components/schemas/FileSummaryStatus"
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"required": [
|
|
2216
|
+
"status"
|
|
2217
|
+
]
|
|
2218
|
+
},
|
|
2136
2219
|
"CustomDownloadUrl": {
|
|
2137
2220
|
"description": "Custom external download url used for the file",
|
|
2138
2221
|
"type": "string",
|
|
@@ -2515,9 +2598,10 @@
|
|
|
2515
2598
|
"example": "Documents.zip"
|
|
2516
2599
|
},
|
|
2517
2600
|
"notify_email": {
|
|
2518
|
-
"type": "
|
|
2519
|
-
"
|
|
2520
|
-
"
|
|
2601
|
+
"type": "string",
|
|
2602
|
+
"format": "email",
|
|
2603
|
+
"description": "Email address to notify when the ZIP is ready. Omit to skip the email notification.",
|
|
2604
|
+
"example": "user@example.com"
|
|
2521
2605
|
}
|
|
2522
2606
|
},
|
|
2523
2607
|
"oneOf": [
|
package/dist/bin/epilot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
API_LIST
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-FN6B4KCD.js";
|
|
5
5
|
|
|
6
6
|
// bin/epilot.ts
|
|
7
7
|
import { runMain } from "citty";
|
|
@@ -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.32",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -30,8 +30,8 @@ var main = defineCommand({
|
|
|
30
30
|
auth: () => import("../auth-CN5EFFDE.js").then((m) => m.default),
|
|
31
31
|
profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
|
|
32
32
|
config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
|
|
33
|
-
completion: () => import("../completion-
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
33
|
+
completion: () => import("../completion-T3EWN6OG.js").then((m) => m.default),
|
|
34
|
+
upgrade: () => import("../upgrade-QTVSGH5C.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),
|
|
@@ -133,13 +133,13 @@ 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.
|
|
136
|
+
var VERSION = true ? "0.1.32" : (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);
|
|
140
140
|
var completionsIdx = args.indexOf("--_completions");
|
|
141
141
|
if (completionsIdx >= 0) {
|
|
142
|
-
const { handleCompletions } = await import("../completion-
|
|
142
|
+
const { handleCompletions } = await import("../completion-T3EWN6OG.js");
|
|
143
143
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
144
144
|
process.exit(0);
|
|
145
145
|
}
|
|
@@ -689,7 +689,7 @@ var API_LIST = [
|
|
|
689
689
|
kebabName: "file",
|
|
690
690
|
title: "File API",
|
|
691
691
|
serverUrl: "https://file.sls.epilot.io",
|
|
692
|
-
operationCount:
|
|
692
|
+
operationCount: 30,
|
|
693
693
|
operationIds: [
|
|
694
694
|
"uploadFileV2",
|
|
695
695
|
"saveFileV2",
|
|
@@ -702,6 +702,7 @@ var API_LIST = [
|
|
|
702
702
|
"downloadFiles",
|
|
703
703
|
"createZipJob",
|
|
704
704
|
"getZipJob",
|
|
705
|
+
"generateFileSummary",
|
|
705
706
|
"previewFile",
|
|
706
707
|
"previewS3FileGet",
|
|
707
708
|
"previewS3File",
|
|
@@ -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.32";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|