@epilot/cli 0.1.106 → 0.1.107

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.106 — CLI for epilot APIs
32
+ epilot v0.1.107 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -940,6 +940,113 @@
940
940
  }
941
941
  }
942
942
  },
943
+ "/v1/files/{id}/summary/feedback": {
944
+ "get": {
945
+ "operationId": "getFileSummaryFeedback",
946
+ "summary": "Get file summary feedback",
947
+ "description": "Get the authenticated user's feedback for the current generated file summary.",
948
+ "tags": [
949
+ "File"
950
+ ],
951
+ "parameters": [
952
+ {
953
+ "name": "id",
954
+ "in": "path",
955
+ "required": true,
956
+ "description": "The UUID of the file entity",
957
+ "schema": {
958
+ "$ref": "#/components/schemas/FileEntityId"
959
+ }
960
+ }
961
+ ],
962
+ "responses": {
963
+ "200": {
964
+ "description": "Current feedback state",
965
+ "content": {
966
+ "application/json": {
967
+ "schema": {
968
+ "$ref": "#/components/schemas/FileSummaryFeedbackResponse"
969
+ }
970
+ }
971
+ }
972
+ },
973
+ "400": {
974
+ "$ref": "#/components/responses/BadRequestError"
975
+ },
976
+ "401": {
977
+ "$ref": "#/components/responses/UnauthorizedError"
978
+ },
979
+ "403": {
980
+ "$ref": "#/components/responses/ForbiddenError"
981
+ },
982
+ "404": {
983
+ "$ref": "#/components/responses/NotFoundError"
984
+ },
985
+ "500": {
986
+ "$ref": "#/components/responses/InternalServerError"
987
+ }
988
+ }
989
+ },
990
+ "put": {
991
+ "operationId": "putFileSummaryFeedback",
992
+ "summary": "Submit file summary feedback",
993
+ "description": "Upsert thumbs up/down feedback for the current generated file summary.",
994
+ "tags": [
995
+ "File"
996
+ ],
997
+ "parameters": [
998
+ {
999
+ "name": "id",
1000
+ "in": "path",
1001
+ "required": true,
1002
+ "description": "The UUID of the file entity",
1003
+ "schema": {
1004
+ "$ref": "#/components/schemas/FileEntityId"
1005
+ }
1006
+ }
1007
+ ],
1008
+ "requestBody": {
1009
+ "required": true,
1010
+ "content": {
1011
+ "application/json": {
1012
+ "schema": {
1013
+ "$ref": "#/components/schemas/PutFileSummaryFeedbackRequest"
1014
+ }
1015
+ }
1016
+ }
1017
+ },
1018
+ "responses": {
1019
+ "200": {
1020
+ "description": "Feedback recorded",
1021
+ "content": {
1022
+ "application/json": {
1023
+ "schema": {
1024
+ "$ref": "#/components/schemas/FileSummaryFeedbackResponse"
1025
+ }
1026
+ }
1027
+ }
1028
+ },
1029
+ "400": {
1030
+ "$ref": "#/components/responses/BadRequestError"
1031
+ },
1032
+ "401": {
1033
+ "$ref": "#/components/responses/UnauthorizedError"
1034
+ },
1035
+ "403": {
1036
+ "$ref": "#/components/responses/ForbiddenError"
1037
+ },
1038
+ "404": {
1039
+ "$ref": "#/components/responses/NotFoundError"
1040
+ },
1041
+ "409": {
1042
+ "$ref": "#/components/responses/ConflictError"
1043
+ },
1044
+ "500": {
1045
+ "$ref": "#/components/responses/InternalServerError"
1046
+ }
1047
+ }
1048
+ }
1049
+ },
943
1050
  "/v1/files/{id}/summary-jobs": {
944
1051
  "post": {
945
1052
  "operationId": "createFileSummaryJob",
@@ -2512,6 +2619,12 @@
2512
2619
  "type": "string",
2513
2620
  "description": "Short English paragraph summary for file preview surfaces.",
2514
2621
  "readOnly": true
2622
+ },
2623
+ "file_summary_execution_id": {
2624
+ "type": "string",
2625
+ "format": "uuid",
2626
+ "description": "AI execution that produced the current summary. Used to correlate user feedback.",
2627
+ "readOnly": true
2515
2628
  }
2516
2629
  }
2517
2630
  },
@@ -2596,6 +2709,10 @@
2596
2709
  "format": "uuid",
2597
2710
  "description": "Current summary job ID when available."
2598
2711
  },
2712
+ "feedback_available": {
2713
+ "type": "boolean",
2714
+ "description": "Whether the current summary can receive user feedback."
2715
+ },
2599
2716
  "preview_summary_de": {
2600
2717
  "type": "string",
2601
2718
  "nullable": true,
@@ -2618,6 +2735,67 @@
2618
2735
  }
2619
2736
  }
2620
2737
  },
2738
+ "FileSummaryFeedback": {
2739
+ "type": "object",
2740
+ "required": [
2741
+ "rating",
2742
+ "user_id",
2743
+ "submitted_at"
2744
+ ],
2745
+ "properties": {
2746
+ "rating": {
2747
+ "type": "string",
2748
+ "enum": [
2749
+ "up",
2750
+ "down"
2751
+ ]
2752
+ },
2753
+ "comment": {
2754
+ "type": "string"
2755
+ },
2756
+ "user_id": {
2757
+ "type": "string"
2758
+ },
2759
+ "submitted_at": {
2760
+ "type": "string",
2761
+ "format": "date-time"
2762
+ }
2763
+ }
2764
+ },
2765
+ "FileSummaryFeedbackResponse": {
2766
+ "type": "object",
2767
+ "required": [
2768
+ "feedback"
2769
+ ],
2770
+ "properties": {
2771
+ "feedback": {
2772
+ "allOf": [
2773
+ {
2774
+ "$ref": "#/components/schemas/FileSummaryFeedback"
2775
+ }
2776
+ ],
2777
+ "nullable": true
2778
+ }
2779
+ }
2780
+ },
2781
+ "PutFileSummaryFeedbackRequest": {
2782
+ "type": "object",
2783
+ "required": [
2784
+ "rating"
2785
+ ],
2786
+ "properties": {
2787
+ "rating": {
2788
+ "type": "string",
2789
+ "enum": [
2790
+ "up",
2791
+ "down"
2792
+ ]
2793
+ },
2794
+ "comment": {
2795
+ "type": "string"
2796
+ }
2797
+ }
2798
+ },
2621
2799
  "FileTextStatus": {
2622
2800
  "type": "string",
2623
2801
  "description": "Availability of the plain-text representation for a file entity.",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "../chunk-QYLHTTVG.js";
4
+ } from "../chunk-CZHW3BIT.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.106",
14
+ version: "0.1.107",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -30,8 +30,8 @@ var main = defineCommand({
30
30
  auth: () => import("../auth-WMXFMPWE.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-TD6N6OMM.js").then((m) => m.default),
34
- upgrade: () => import("../upgrade-P2YRWHRP.js").then((m) => m.default),
33
+ completion: () => import("../completion-TFHA4W2J.js").then((m) => m.default),
34
+ upgrade: () => import("../upgrade-BAXQEZ2I.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,13 +134,13 @@ 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.106" : (await null).default.version;
137
+ var VERSION = true ? "0.1.107" : (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);
141
141
  var completionsIdx = args.indexOf("--_completions");
142
142
  if (completionsIdx >= 0) {
143
- const { handleCompletions } = await import("../completion-TD6N6OMM.js");
143
+ const { handleCompletions } = await import("../completion-TFHA4W2J.js");
144
144
  handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
145
145
  process.exit(0);
146
146
  }
@@ -810,7 +810,7 @@ var API_LIST = [
810
810
  kebabName: "file",
811
811
  title: "File API",
812
812
  serverUrl: "https://file.sls.epilot.io",
813
- operationCount: 35,
813
+ operationCount: 37,
814
814
  operationIds: [
815
815
  "uploadFileV2",
816
816
  "saveFileV2",
@@ -824,6 +824,8 @@ var API_LIST = [
824
824
  "createZipJob",
825
825
  "getZipJob",
826
826
  "getFileSummary",
827
+ "getFileSummaryFeedback",
828
+ "putFileSummaryFeedback",
827
829
  "createFileSummaryJob",
828
830
  "getCurrentFileSummaryJob",
829
831
  "getFileSummaryJob",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "./chunk-QYLHTTVG.js";
4
+ } from "./chunk-CZHW3BIT.js";
5
5
  import {
6
6
  DIM,
7
7
  GREEN,
@@ -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.106";
75
+ if (true) return "0.1.107";
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.106",
3
+ "version": "0.1.107",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {