@soat/cli 0.4.18 → 0.5.1

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.
Files changed (2) hide show
  1. package/dist/esm/index.js +66 -27
  2. package/package.json +2 -2
package/dist/esm/index.js CHANGED
@@ -16,7 +16,7 @@ import { program } from "commander";
16
16
  // package.json
17
17
  var package_default = {
18
18
  name: "@soat/cli",
19
- version: "0.4.18",
19
+ version: "0.5.1",
20
20
  type: "module",
21
21
  scripts: {
22
22
  generate: "tsx scripts/generate.ts",
@@ -200,20 +200,6 @@ var routes = {
200
200
  pathParams: ["tool_id"],
201
201
  queryParams: []
202
202
  },
203
- "list-agent-traces": {
204
- serviceClass: "AgentTraces",
205
- operationId: "listAgentTraces",
206
- description: "List agent traces",
207
- pathParams: [],
208
- queryParams: ["project_id", "limit", "offset"]
209
- },
210
- "get-agent-trace": {
211
- serviceClass: "AgentTraces",
212
- operationId: "getAgentTrace",
213
- description: "Get a trace",
214
- pathParams: ["trace_id"],
215
- queryParams: []
216
- },
217
203
  "list-agents": {
218
204
  serviceClass: "Agents",
219
205
  operationId: "listAgents",
@@ -536,13 +522,6 @@ var routes = {
536
522
  pathParams: ["document_id"],
537
523
  queryParams: []
538
524
  },
539
- "search-documents": {
540
- serviceClass: "Documents",
541
- operationId: "searchDocuments",
542
- description: "Semantic search over documents",
543
- pathParams: [],
544
- queryParams: []
545
- },
546
525
  "list-files": {
547
526
  serviceClass: "Files",
548
527
  operationId: "listFiles",
@@ -627,6 +606,13 @@ var routes = {
627
606
  pathParams: ["file_id"],
628
607
  queryParams: []
629
608
  },
609
+ "search-knowledge": {
610
+ serviceClass: "Knowledge",
611
+ operationId: "searchKnowledge",
612
+ description: "Search knowledge",
613
+ pathParams: [],
614
+ queryParams: []
615
+ },
630
616
  "list-memories": {
631
617
  serviceClass: "Memories",
632
618
  operationId: "listMemories",
@@ -662,13 +648,41 @@ var routes = {
662
648
  pathParams: ["memory_id"],
663
649
  queryParams: []
664
650
  },
665
- "search-memory": {
666
- serviceClass: "Memories",
667
- operationId: "searchMemory",
668
- description: "Search memory documents",
651
+ "list-memory-entries": {
652
+ serviceClass: "MemoryEntries",
653
+ operationId: "listMemoryEntries",
654
+ description: "List memory entries",
655
+ pathParams: ["memory_id"],
656
+ queryParams: []
657
+ },
658
+ "create-memory-entry": {
659
+ serviceClass: "MemoryEntries",
660
+ operationId: "createMemoryEntry",
661
+ description: "Create a memory entry",
669
662
  pathParams: ["memory_id"],
670
663
  queryParams: []
671
664
  },
665
+ "get-memory-entry": {
666
+ serviceClass: "MemoryEntries",
667
+ operationId: "getMemoryEntry",
668
+ description: "Get a memory entry",
669
+ pathParams: ["memory_id", "entry_id"],
670
+ queryParams: []
671
+ },
672
+ "update-memory-entry": {
673
+ serviceClass: "MemoryEntries",
674
+ operationId: "updateMemoryEntry",
675
+ description: "Update a memory entry",
676
+ pathParams: ["memory_id", "entry_id"],
677
+ queryParams: []
678
+ },
679
+ "delete-memory-entry": {
680
+ serviceClass: "MemoryEntries",
681
+ operationId: "deleteMemoryEntry",
682
+ description: "Delete a memory entry",
683
+ pathParams: ["memory_id", "entry_id"],
684
+ queryParams: []
685
+ },
672
686
  "list-policies": {
673
687
  serviceClass: "Policies",
674
688
  operationId: "listPolicies",
@@ -844,6 +858,27 @@ var routes = {
844
858
  pathParams: ["agent_id", "session_id"],
845
859
  queryParams: []
846
860
  },
861
+ "list-traces": {
862
+ serviceClass: "Traces",
863
+ operationId: "listTraces",
864
+ description: "List traces",
865
+ pathParams: [],
866
+ queryParams: ["project_id", "limit", "offset"]
867
+ },
868
+ "get-trace": {
869
+ serviceClass: "Traces",
870
+ operationId: "getTrace",
871
+ description: "Get a trace",
872
+ pathParams: ["trace_id"],
873
+ queryParams: []
874
+ },
875
+ "get-trace-tree": {
876
+ serviceClass: "Traces",
877
+ operationId: "getTraceTree",
878
+ description: "Get trace tree",
879
+ pathParams: ["trace_id"],
880
+ queryParams: []
881
+ },
847
882
  "list-users": {
848
883
  serviceClass: "Users",
849
884
  operationId: "listUsers",
@@ -1202,9 +1237,13 @@ program.argument("[command]", "API command in kebab-case (e.g. list-actors)").ar
1202
1237
  const result = await method(callOpts);
1203
1238
  if (result.error) {
1204
1239
  const status = result.response && "status" in result.response ? result.response.status : void 0;
1240
+ const errorPayload = result.error instanceof Error ? {
1241
+ name: result.error.name,
1242
+ message: result.error.message
1243
+ } : result.error;
1205
1244
  console.error(JSON.stringify({
1206
1245
  status,
1207
- error: result.error
1246
+ error: errorPayload
1208
1247
  }, null, 2));
1209
1248
  process.exit(1);
1210
1249
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.4.18",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@inquirer/input": "^5.0.12",
7
7
  "@inquirer/password": "^5.0.12",
8
8
  "@ttoss/logger": "^0.8.10",
9
9
  "commander": "^14.0.3",
10
- "@soat/sdk": "0.4.18"
10
+ "@soat/sdk": "0.5.1"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@ttoss/config": "^1.37.10",