@epilot/cli 0.1.105 → 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 +1 -1
- package/definitions/ai-agents.json +185 -0
- package/definitions/file.json +178 -0
- package/dist/bin/epilot.js +6 -6
- package/dist/{chunk-EDJKUCRC.js → chunk-CZHW3BIT.js} +6 -2
- package/dist/{completion-RUUFYBPO.js → completion-TFHA4W2J.js} +1 -1
- package/dist/{upgrade-BGDALZVE.js → upgrade-BAXQEZ2I.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -630,6 +630,130 @@
|
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
},
|
|
633
|
+
"/v1/executions/{execution_id}/feedback": {
|
|
634
|
+
"get": {
|
|
635
|
+
"tags": [
|
|
636
|
+
"Agent Execution"
|
|
637
|
+
],
|
|
638
|
+
"summary": "Get execution feedback",
|
|
639
|
+
"description": "Returns the authenticated user's feedback for an execution.",
|
|
640
|
+
"operationId": "getExecutionFeedback",
|
|
641
|
+
"security": [
|
|
642
|
+
{
|
|
643
|
+
"EpilotAuth": []
|
|
644
|
+
}
|
|
645
|
+
],
|
|
646
|
+
"parameters": [
|
|
647
|
+
{
|
|
648
|
+
"name": "execution_id",
|
|
649
|
+
"in": "path",
|
|
650
|
+
"required": true,
|
|
651
|
+
"schema": {
|
|
652
|
+
"type": "string",
|
|
653
|
+
"format": "uuid"
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
],
|
|
657
|
+
"responses": {
|
|
658
|
+
"200": {
|
|
659
|
+
"description": "Feedback state",
|
|
660
|
+
"content": {
|
|
661
|
+
"application/json": {
|
|
662
|
+
"schema": {
|
|
663
|
+
"$ref": "#/components/schemas/ExecutionFeedbackResponse"
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"404": {
|
|
669
|
+
"description": "Execution not found",
|
|
670
|
+
"content": {
|
|
671
|
+
"application/json": {
|
|
672
|
+
"schema": {
|
|
673
|
+
"$ref": "#/components/schemas/Error"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"put": {
|
|
681
|
+
"tags": [
|
|
682
|
+
"Agent Execution"
|
|
683
|
+
],
|
|
684
|
+
"summary": "Submit execution feedback",
|
|
685
|
+
"description": "Upserts thumbs up/down feedback and mirrors it to the execution's Langfuse trace.",
|
|
686
|
+
"operationId": "putExecutionFeedback",
|
|
687
|
+
"security": [
|
|
688
|
+
{
|
|
689
|
+
"EpilotAuth": []
|
|
690
|
+
}
|
|
691
|
+
],
|
|
692
|
+
"parameters": [
|
|
693
|
+
{
|
|
694
|
+
"name": "execution_id",
|
|
695
|
+
"in": "path",
|
|
696
|
+
"required": true,
|
|
697
|
+
"schema": {
|
|
698
|
+
"type": "string",
|
|
699
|
+
"format": "uuid"
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
"requestBody": {
|
|
704
|
+
"required": true,
|
|
705
|
+
"content": {
|
|
706
|
+
"application/json": {
|
|
707
|
+
"schema": {
|
|
708
|
+
"$ref": "#/components/schemas/PutExecutionFeedbackRequest"
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
"responses": {
|
|
714
|
+
"200": {
|
|
715
|
+
"description": "Feedback recorded",
|
|
716
|
+
"content": {
|
|
717
|
+
"application/json": {
|
|
718
|
+
"schema": {
|
|
719
|
+
"$ref": "#/components/schemas/ExecutionFeedbackResponse"
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"400": {
|
|
725
|
+
"description": "Invalid feedback",
|
|
726
|
+
"content": {
|
|
727
|
+
"application/json": {
|
|
728
|
+
"schema": {
|
|
729
|
+
"$ref": "#/components/schemas/Error"
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"404": {
|
|
735
|
+
"description": "Execution not found",
|
|
736
|
+
"content": {
|
|
737
|
+
"application/json": {
|
|
738
|
+
"schema": {
|
|
739
|
+
"$ref": "#/components/schemas/Error"
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
"409": {
|
|
745
|
+
"description": "Execution cannot be rated",
|
|
746
|
+
"content": {
|
|
747
|
+
"application/json": {
|
|
748
|
+
"schema": {
|
|
749
|
+
"$ref": "#/components/schemas/Error"
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
},
|
|
633
757
|
"/v1/executions/{execution_id}/approve": {
|
|
634
758
|
"post": {
|
|
635
759
|
"tags": [
|
|
@@ -1575,6 +1699,67 @@
|
|
|
1575
1699
|
}
|
|
1576
1700
|
}
|
|
1577
1701
|
},
|
|
1702
|
+
"ExecutionFeedback": {
|
|
1703
|
+
"type": "object",
|
|
1704
|
+
"required": [
|
|
1705
|
+
"rating",
|
|
1706
|
+
"user_id",
|
|
1707
|
+
"submitted_at"
|
|
1708
|
+
],
|
|
1709
|
+
"properties": {
|
|
1710
|
+
"rating": {
|
|
1711
|
+
"type": "string",
|
|
1712
|
+
"enum": [
|
|
1713
|
+
"up",
|
|
1714
|
+
"down"
|
|
1715
|
+
]
|
|
1716
|
+
},
|
|
1717
|
+
"comment": {
|
|
1718
|
+
"type": "string"
|
|
1719
|
+
},
|
|
1720
|
+
"user_id": {
|
|
1721
|
+
"type": "string"
|
|
1722
|
+
},
|
|
1723
|
+
"submitted_at": {
|
|
1724
|
+
"type": "string",
|
|
1725
|
+
"format": "date-time"
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
},
|
|
1729
|
+
"ExecutionFeedbackResponse": {
|
|
1730
|
+
"type": "object",
|
|
1731
|
+
"required": [
|
|
1732
|
+
"feedback"
|
|
1733
|
+
],
|
|
1734
|
+
"properties": {
|
|
1735
|
+
"feedback": {
|
|
1736
|
+
"allOf": [
|
|
1737
|
+
{
|
|
1738
|
+
"$ref": "#/components/schemas/ExecutionFeedback"
|
|
1739
|
+
}
|
|
1740
|
+
],
|
|
1741
|
+
"nullable": true
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
},
|
|
1745
|
+
"PutExecutionFeedbackRequest": {
|
|
1746
|
+
"type": "object",
|
|
1747
|
+
"required": [
|
|
1748
|
+
"rating"
|
|
1749
|
+
],
|
|
1750
|
+
"properties": {
|
|
1751
|
+
"rating": {
|
|
1752
|
+
"type": "string",
|
|
1753
|
+
"enum": [
|
|
1754
|
+
"up",
|
|
1755
|
+
"down"
|
|
1756
|
+
]
|
|
1757
|
+
},
|
|
1758
|
+
"comment": {
|
|
1759
|
+
"type": "string"
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
},
|
|
1578
1763
|
"ExecutionTrace": {
|
|
1579
1764
|
"type": "object",
|
|
1580
1765
|
"properties": {
|
package/definitions/file.json
CHANGED
|
@@ -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.",
|
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-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.
|
|
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-
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
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.
|
|
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-
|
|
143
|
+
const { handleCompletions } = await import("../completion-TFHA4W2J.js");
|
|
144
144
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
145
145
|
process.exit(0);
|
|
146
146
|
}
|
|
@@ -41,7 +41,7 @@ var API_LIST = [
|
|
|
41
41
|
kebabName: "ai-agents",
|
|
42
42
|
title: "AI Agents API",
|
|
43
43
|
serverUrl: "https://ai-agents.sls.epilot.io",
|
|
44
|
-
operationCount:
|
|
44
|
+
operationCount: 21,
|
|
45
45
|
operationIds: [
|
|
46
46
|
"listAgents",
|
|
47
47
|
"createAgent",
|
|
@@ -54,6 +54,8 @@ var API_LIST = [
|
|
|
54
54
|
"getExecution",
|
|
55
55
|
"cancelExecution",
|
|
56
56
|
"getExecutionTrace",
|
|
57
|
+
"getExecutionFeedback",
|
|
58
|
+
"putExecutionFeedback",
|
|
57
59
|
"approveExecution",
|
|
58
60
|
"rejectExecution",
|
|
59
61
|
"streamExecution",
|
|
@@ -808,7 +810,7 @@ var API_LIST = [
|
|
|
808
810
|
kebabName: "file",
|
|
809
811
|
title: "File API",
|
|
810
812
|
serverUrl: "https://file.sls.epilot.io",
|
|
811
|
-
operationCount:
|
|
813
|
+
operationCount: 37,
|
|
812
814
|
operationIds: [
|
|
813
815
|
"uploadFileV2",
|
|
814
816
|
"saveFileV2",
|
|
@@ -822,6 +824,8 @@ var API_LIST = [
|
|
|
822
824
|
"createZipJob",
|
|
823
825
|
"getZipJob",
|
|
824
826
|
"getFileSummary",
|
|
827
|
+
"getFileSummaryFeedback",
|
|
828
|
+
"putFileSummaryFeedback",
|
|
825
829
|
"createFileSummaryJob",
|
|
826
830
|
"getCurrentFileSummaryJob",
|
|
827
831
|
"getFileSummaryJob",
|
|
@@ -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.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",
|