@epilot/cli 0.1.105 → 0.1.106

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.105 — CLI for epilot APIs
32
+ epilot v0.1.106 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -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": {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "../chunk-EDJKUCRC.js";
4
+ } from "../chunk-QYLHTTVG.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.105",
14
+ version: "0.1.106",
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-RUUFYBPO.js").then((m) => m.default),
34
- upgrade: () => import("../upgrade-BGDALZVE.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),
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.105" : (await null).default.version;
137
+ var VERSION = true ? "0.1.106" : (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-RUUFYBPO.js");
143
+ const { handleCompletions } = await import("../completion-TD6N6OMM.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: 19,
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",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "./chunk-EDJKUCRC.js";
4
+ } from "./chunk-QYLHTTVG.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.105";
75
+ if (true) return "0.1.106";
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.105",
3
+ "version": "0.1.106",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {