@soat/cli 0.5.7 → 0.6.0
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/dist/esm/index.js +303 -77
- 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.
|
|
19
|
+
version: "0.6.0",
|
|
20
20
|
type: "module",
|
|
21
21
|
scripts: {
|
|
22
22
|
generate: "tsx scripts/generate.ts",
|
|
@@ -550,75 +550,6 @@ var routes = {
|
|
|
550
550
|
"in": "path"
|
|
551
551
|
}]
|
|
552
552
|
},
|
|
553
|
-
"list-agent-tools": {
|
|
554
|
-
serviceClass: "AgentTools",
|
|
555
|
-
operationId: "listAgentTools",
|
|
556
|
-
description: "Returns all agent tools in the project.",
|
|
557
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
558
|
-
pathParams: [],
|
|
559
|
-
queryParams: ["project_id"],
|
|
560
|
-
flags: [{
|
|
561
|
-
"name": "project_id",
|
|
562
|
-
"description": "Project public ID to filter by",
|
|
563
|
-
"required": false,
|
|
564
|
-
"type": "string",
|
|
565
|
-
"in": "query"
|
|
566
|
-
}]
|
|
567
|
-
},
|
|
568
|
-
"create-agent-tool": {
|
|
569
|
-
serviceClass: "AgentTools",
|
|
570
|
-
operationId: "createAgentTool",
|
|
571
|
-
description: "Creates a new agent tool in the project.",
|
|
572
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
573
|
-
pathParams: [],
|
|
574
|
-
queryParams: [],
|
|
575
|
-
flags: []
|
|
576
|
-
},
|
|
577
|
-
"get-agent-tool": {
|
|
578
|
-
serviceClass: "AgentTools",
|
|
579
|
-
operationId: "getAgentTool",
|
|
580
|
-
description: "Returns a single agent tool by ID.",
|
|
581
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
582
|
-
pathParams: ["tool_id"],
|
|
583
|
-
queryParams: [],
|
|
584
|
-
flags: [{
|
|
585
|
-
"name": "tool_id",
|
|
586
|
-
"description": "",
|
|
587
|
-
"required": true,
|
|
588
|
-
"type": "string",
|
|
589
|
-
"in": "path"
|
|
590
|
-
}]
|
|
591
|
-
},
|
|
592
|
-
"update-agent-tool": {
|
|
593
|
-
serviceClass: "AgentTools",
|
|
594
|
-
operationId: "updateAgentTool",
|
|
595
|
-
description: "Updates an existing agent tool.",
|
|
596
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
597
|
-
pathParams: ["tool_id"],
|
|
598
|
-
queryParams: [],
|
|
599
|
-
flags: [{
|
|
600
|
-
"name": "tool_id",
|
|
601
|
-
"description": "",
|
|
602
|
-
"required": true,
|
|
603
|
-
"type": "string",
|
|
604
|
-
"in": "path"
|
|
605
|
-
}]
|
|
606
|
-
},
|
|
607
|
-
"delete-agent-tool": {
|
|
608
|
-
serviceClass: "AgentTools",
|
|
609
|
-
operationId: "deleteAgentTool",
|
|
610
|
-
description: "Deletes an agent tool by ID.",
|
|
611
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
612
|
-
pathParams: ["tool_id"],
|
|
613
|
-
queryParams: [],
|
|
614
|
-
flags: [{
|
|
615
|
-
"name": "tool_id",
|
|
616
|
-
"description": "",
|
|
617
|
-
"required": true,
|
|
618
|
-
"type": "string",
|
|
619
|
-
"in": "path"
|
|
620
|
-
}]
|
|
621
|
-
},
|
|
622
553
|
"list-agents": {
|
|
623
554
|
serviceClass: "Agents",
|
|
624
555
|
operationId: "listAgents",
|
|
@@ -2320,6 +2251,189 @@ var routes = {
|
|
|
2320
2251
|
"in": "path"
|
|
2321
2252
|
}]
|
|
2322
2253
|
},
|
|
2254
|
+
"list-orchestrations": {
|
|
2255
|
+
serviceClass: "Orchestrations",
|
|
2256
|
+
operationId: "listOrchestrations",
|
|
2257
|
+
description: "Returns orchestrations accessible to the caller.",
|
|
2258
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2259
|
+
pathParams: [],
|
|
2260
|
+
queryParams: ["project_id"],
|
|
2261
|
+
flags: [{
|
|
2262
|
+
"name": "project_id",
|
|
2263
|
+
"description": "Filter by project public ID",
|
|
2264
|
+
"required": false,
|
|
2265
|
+
"type": "string",
|
|
2266
|
+
"in": "query"
|
|
2267
|
+
}]
|
|
2268
|
+
},
|
|
2269
|
+
"create-orchestration": {
|
|
2270
|
+
serviceClass: "Orchestrations",
|
|
2271
|
+
operationId: "createOrchestration",
|
|
2272
|
+
description: "Creates a new orchestration workflow definition in the project.",
|
|
2273
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2274
|
+
pathParams: [],
|
|
2275
|
+
queryParams: [],
|
|
2276
|
+
flags: []
|
|
2277
|
+
},
|
|
2278
|
+
"get-orchestration": {
|
|
2279
|
+
serviceClass: "Orchestrations",
|
|
2280
|
+
operationId: "getOrchestration",
|
|
2281
|
+
description: "Returns the orchestration with nodes and edges.",
|
|
2282
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2283
|
+
pathParams: ["orchestration_id"],
|
|
2284
|
+
queryParams: [],
|
|
2285
|
+
flags: [{
|
|
2286
|
+
"name": "orchestration_id",
|
|
2287
|
+
"description": "Public ID of the orchestration (orch_...)",
|
|
2288
|
+
"required": true,
|
|
2289
|
+
"type": "string",
|
|
2290
|
+
"in": "path"
|
|
2291
|
+
}]
|
|
2292
|
+
},
|
|
2293
|
+
"update-orchestration": {
|
|
2294
|
+
serviceClass: "Orchestrations",
|
|
2295
|
+
operationId: "updateOrchestration",
|
|
2296
|
+
description: "Partially updates an orchestration definition.",
|
|
2297
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2298
|
+
pathParams: ["orchestration_id"],
|
|
2299
|
+
queryParams: [],
|
|
2300
|
+
flags: [{
|
|
2301
|
+
"name": "orchestration_id",
|
|
2302
|
+
"description": "Public ID of the orchestration (orch_...)",
|
|
2303
|
+
"required": true,
|
|
2304
|
+
"type": "string",
|
|
2305
|
+
"in": "path"
|
|
2306
|
+
}]
|
|
2307
|
+
},
|
|
2308
|
+
"delete-orchestration": {
|
|
2309
|
+
serviceClass: "Orchestrations",
|
|
2310
|
+
operationId: "deleteOrchestration",
|
|
2311
|
+
description: "Deletes an orchestration definition and all its runs.",
|
|
2312
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2313
|
+
pathParams: ["orchestration_id"],
|
|
2314
|
+
queryParams: [],
|
|
2315
|
+
flags: [{
|
|
2316
|
+
"name": "orchestration_id",
|
|
2317
|
+
"description": "Public ID of the orchestration (orch_...)",
|
|
2318
|
+
"required": true,
|
|
2319
|
+
"type": "string",
|
|
2320
|
+
"in": "path"
|
|
2321
|
+
}]
|
|
2322
|
+
},
|
|
2323
|
+
"list-runs": {
|
|
2324
|
+
serviceClass: "Orchestrations",
|
|
2325
|
+
operationId: "listRuns",
|
|
2326
|
+
description: "Returns all runs for an orchestration.",
|
|
2327
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2328
|
+
pathParams: ["orchestration_id"],
|
|
2329
|
+
queryParams: [],
|
|
2330
|
+
flags: [{
|
|
2331
|
+
"name": "orchestration_id",
|
|
2332
|
+
"description": "Public ID of the orchestration (orch_...)",
|
|
2333
|
+
"required": true,
|
|
2334
|
+
"type": "string",
|
|
2335
|
+
"in": "path"
|
|
2336
|
+
}]
|
|
2337
|
+
},
|
|
2338
|
+
"start-run": {
|
|
2339
|
+
serviceClass: "Orchestrations",
|
|
2340
|
+
operationId: "startRun",
|
|
2341
|
+
description: "Creates and immediately executes a new run for the orchestration.",
|
|
2342
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2343
|
+
pathParams: ["orchestration_id"],
|
|
2344
|
+
queryParams: [],
|
|
2345
|
+
flags: [{
|
|
2346
|
+
"name": "orchestration_id",
|
|
2347
|
+
"description": "Public ID of the orchestration (orch_...)",
|
|
2348
|
+
"required": true,
|
|
2349
|
+
"type": "string",
|
|
2350
|
+
"in": "path"
|
|
2351
|
+
}]
|
|
2352
|
+
},
|
|
2353
|
+
"cancel-run": {
|
|
2354
|
+
serviceClass: "Orchestrations",
|
|
2355
|
+
operationId: "cancelRun",
|
|
2356
|
+
description: "Cancels a running or paused orchestration run.",
|
|
2357
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2358
|
+
pathParams: ["orchestration_id", "run_id"],
|
|
2359
|
+
queryParams: [],
|
|
2360
|
+
flags: [{
|
|
2361
|
+
"name": "orchestration_id",
|
|
2362
|
+
"description": "Public ID of the orchestration (orch_...)",
|
|
2363
|
+
"required": true,
|
|
2364
|
+
"type": "string",
|
|
2365
|
+
"in": "path"
|
|
2366
|
+
}, {
|
|
2367
|
+
"name": "run_id",
|
|
2368
|
+
"description": "Public ID of the run (run_...)",
|
|
2369
|
+
"required": true,
|
|
2370
|
+
"type": "string",
|
|
2371
|
+
"in": "path"
|
|
2372
|
+
}]
|
|
2373
|
+
},
|
|
2374
|
+
"submit-human-input": {
|
|
2375
|
+
serviceClass: "Orchestrations",
|
|
2376
|
+
operationId: "submitHumanInput",
|
|
2377
|
+
description: "Provides human input to a paused orchestration run waiting at a human node.",
|
|
2378
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2379
|
+
pathParams: ["orchestration_id", "run_id"],
|
|
2380
|
+
queryParams: [],
|
|
2381
|
+
flags: [{
|
|
2382
|
+
"name": "orchestration_id",
|
|
2383
|
+
"description": "Public ID of the orchestration (orch_...)",
|
|
2384
|
+
"required": true,
|
|
2385
|
+
"type": "string",
|
|
2386
|
+
"in": "path"
|
|
2387
|
+
}, {
|
|
2388
|
+
"name": "run_id",
|
|
2389
|
+
"description": "Public ID of the run (run_...)",
|
|
2390
|
+
"required": true,
|
|
2391
|
+
"type": "string",
|
|
2392
|
+
"in": "path"
|
|
2393
|
+
}]
|
|
2394
|
+
},
|
|
2395
|
+
"resume-run": {
|
|
2396
|
+
serviceClass: "Orchestrations",
|
|
2397
|
+
operationId: "resumeRun",
|
|
2398
|
+
description: "Resumes a paused orchestration run from its last checkpoint.",
|
|
2399
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2400
|
+
pathParams: ["orchestration_id", "run_id"],
|
|
2401
|
+
queryParams: [],
|
|
2402
|
+
flags: [{
|
|
2403
|
+
"name": "orchestration_id",
|
|
2404
|
+
"description": "Public ID of the orchestration (orch_...)",
|
|
2405
|
+
"required": true,
|
|
2406
|
+
"type": "string",
|
|
2407
|
+
"in": "path"
|
|
2408
|
+
}, {
|
|
2409
|
+
"name": "run_id",
|
|
2410
|
+
"description": "Public ID of the run (run_...)",
|
|
2411
|
+
"required": true,
|
|
2412
|
+
"type": "string",
|
|
2413
|
+
"in": "path"
|
|
2414
|
+
}]
|
|
2415
|
+
},
|
|
2416
|
+
"get-run": {
|
|
2417
|
+
serviceClass: "Orchestrations",
|
|
2418
|
+
operationId: "getRun",
|
|
2419
|
+
description: "Returns the status, state, and artifacts of a specific run.",
|
|
2420
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2421
|
+
pathParams: ["orchestration_id", "run_id"],
|
|
2422
|
+
queryParams: [],
|
|
2423
|
+
flags: [{
|
|
2424
|
+
"name": "orchestration_id",
|
|
2425
|
+
"description": "Public ID of the orchestration (orch_...)",
|
|
2426
|
+
"required": true,
|
|
2427
|
+
"type": "string",
|
|
2428
|
+
"in": "path"
|
|
2429
|
+
}, {
|
|
2430
|
+
"name": "run_id",
|
|
2431
|
+
"description": "Public ID of the run (run_...)",
|
|
2432
|
+
"required": true,
|
|
2433
|
+
"type": "string",
|
|
2434
|
+
"in": "path"
|
|
2435
|
+
}]
|
|
2436
|
+
},
|
|
2323
2437
|
"list-policies": {
|
|
2324
2438
|
serviceClass: "Policies",
|
|
2325
2439
|
operationId: "listPolicies",
|
|
@@ -2857,6 +2971,90 @@ var routes = {
|
|
|
2857
2971
|
"in": "path"
|
|
2858
2972
|
}]
|
|
2859
2973
|
},
|
|
2974
|
+
"list-tools": {
|
|
2975
|
+
serviceClass: "Tools",
|
|
2976
|
+
operationId: "listTools",
|
|
2977
|
+
description: "Returns all tools in the project.",
|
|
2978
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
2979
|
+
pathParams: [],
|
|
2980
|
+
queryParams: ["project_id"],
|
|
2981
|
+
flags: [{
|
|
2982
|
+
"name": "project_id",
|
|
2983
|
+
"description": "Project public ID to filter by",
|
|
2984
|
+
"required": false,
|
|
2985
|
+
"type": "string",
|
|
2986
|
+
"in": "query"
|
|
2987
|
+
}]
|
|
2988
|
+
},
|
|
2989
|
+
"create-tool": {
|
|
2990
|
+
serviceClass: "Tools",
|
|
2991
|
+
operationId: "createTool",
|
|
2992
|
+
description: "Creates a new tool in the project.",
|
|
2993
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
2994
|
+
pathParams: [],
|
|
2995
|
+
queryParams: [],
|
|
2996
|
+
flags: []
|
|
2997
|
+
},
|
|
2998
|
+
"get-tool": {
|
|
2999
|
+
serviceClass: "Tools",
|
|
3000
|
+
operationId: "getTool",
|
|
3001
|
+
description: "Returns a single tool by ID.",
|
|
3002
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
3003
|
+
pathParams: ["tool_id"],
|
|
3004
|
+
queryParams: [],
|
|
3005
|
+
flags: [{
|
|
3006
|
+
"name": "tool_id",
|
|
3007
|
+
"description": "",
|
|
3008
|
+
"required": true,
|
|
3009
|
+
"type": "string",
|
|
3010
|
+
"in": "path"
|
|
3011
|
+
}]
|
|
3012
|
+
},
|
|
3013
|
+
"update-tool": {
|
|
3014
|
+
serviceClass: "Tools",
|
|
3015
|
+
operationId: "updateTool",
|
|
3016
|
+
description: "Updates an existing tool.",
|
|
3017
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
3018
|
+
pathParams: ["tool_id"],
|
|
3019
|
+
queryParams: [],
|
|
3020
|
+
flags: [{
|
|
3021
|
+
"name": "tool_id",
|
|
3022
|
+
"description": "",
|
|
3023
|
+
"required": true,
|
|
3024
|
+
"type": "string",
|
|
3025
|
+
"in": "path"
|
|
3026
|
+
}]
|
|
3027
|
+
},
|
|
3028
|
+
"delete-tool": {
|
|
3029
|
+
serviceClass: "Tools",
|
|
3030
|
+
operationId: "deleteTool",
|
|
3031
|
+
description: "Deletes a tool by ID.",
|
|
3032
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
3033
|
+
pathParams: ["tool_id"],
|
|
3034
|
+
queryParams: [],
|
|
3035
|
+
flags: [{
|
|
3036
|
+
"name": "tool_id",
|
|
3037
|
+
"description": "",
|
|
3038
|
+
"required": true,
|
|
3039
|
+
"type": "string",
|
|
3040
|
+
"in": "path"
|
|
3041
|
+
}]
|
|
3042
|
+
},
|
|
3043
|
+
"call-tool": {
|
|
3044
|
+
serviceClass: "Tools",
|
|
3045
|
+
operationId: "callTool",
|
|
3046
|
+
description: "Directly invokes a tool and returns its output. Supported for `http`, `soat`, and `mcp` tools. `client` tools cannot be invoked server-side and will return 422. For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.",
|
|
3047
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
3048
|
+
pathParams: ["tool_id"],
|
|
3049
|
+
queryParams: [],
|
|
3050
|
+
flags: [{
|
|
3051
|
+
"name": "tool_id",
|
|
3052
|
+
"description": "",
|
|
3053
|
+
"required": true,
|
|
3054
|
+
"type": "string",
|
|
3055
|
+
"in": "path"
|
|
3056
|
+
}]
|
|
3057
|
+
},
|
|
2860
3058
|
"list-traces": {
|
|
2861
3059
|
serviceClass: "Traces",
|
|
2862
3060
|
operationId: "listTraces",
|
|
@@ -3211,6 +3409,27 @@ var routes = {
|
|
|
3211
3409
|
"in": "path"
|
|
3212
3410
|
}]
|
|
3213
3411
|
},
|
|
3412
|
+
"get-webhook-secret": {
|
|
3413
|
+
serviceClass: "Webhooks",
|
|
3414
|
+
operationId: "getWebhookSecret",
|
|
3415
|
+
description: "Retrieves the signing secret for the specified webhook",
|
|
3416
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/webhooks",
|
|
3417
|
+
pathParams: ["project_id", "webhook_id"],
|
|
3418
|
+
queryParams: [],
|
|
3419
|
+
flags: [{
|
|
3420
|
+
"name": "project_id",
|
|
3421
|
+
"description": "",
|
|
3422
|
+
"required": true,
|
|
3423
|
+
"type": "string",
|
|
3424
|
+
"in": "path"
|
|
3425
|
+
}, {
|
|
3426
|
+
"name": "webhook_id",
|
|
3427
|
+
"description": "",
|
|
3428
|
+
"required": true,
|
|
3429
|
+
"type": "string",
|
|
3430
|
+
"in": "path"
|
|
3431
|
+
}]
|
|
3432
|
+
},
|
|
3214
3433
|
"rotate-webhook-secret": {
|
|
3215
3434
|
serviceClass: "Webhooks",
|
|
3216
3435
|
operationId: "rotateWebhookSecret",
|
|
@@ -3503,14 +3722,21 @@ Usage: soat ${commandName} [flags]
|
|
|
3503
3722
|
const result = await method(callOpts);
|
|
3504
3723
|
if (result.error) {
|
|
3505
3724
|
const status = result.response && "status" in result.response ? result.response.status : void 0;
|
|
3506
|
-
const
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3725
|
+
const rawError = result.error;
|
|
3726
|
+
const errorOutput = rawError instanceof Error ? {
|
|
3727
|
+
status,
|
|
3728
|
+
error: {
|
|
3729
|
+
name: rawError.name,
|
|
3730
|
+
message: rawError.message
|
|
3731
|
+
}
|
|
3732
|
+
} : typeof rawError === "object" && rawError !== null ? {
|
|
3733
|
+
status,
|
|
3734
|
+
...rawError
|
|
3735
|
+
} : {
|
|
3511
3736
|
status,
|
|
3512
|
-
error:
|
|
3513
|
-
}
|
|
3737
|
+
error: rawError
|
|
3738
|
+
};
|
|
3739
|
+
console.error(JSON.stringify(errorOutput, null, 2));
|
|
3514
3740
|
process.exit(1);
|
|
3515
3741
|
}
|
|
3516
3742
|
console.log(JSON.stringify(result.data, null, 2));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@inquirer/input": "^5.0.12",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@ttoss/logger": "^0.8.10",
|
|
9
9
|
"commander": "^14.0.3",
|
|
10
10
|
"js-yaml": "^4.1.1",
|
|
11
|
-
"@soat/sdk": "0.
|
|
11
|
+
"@soat/sdk": "0.6.0"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.10",
|