@soat/cli 0.13.7 → 0.13.9

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/index.mjs +203 -17
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import yaml from "js-yaml";
11
11
  import * as os from "node:os";
12
12
 
13
13
  //#region package.json
14
- var version = "0.13.7";
14
+ var version = "0.13.9";
15
15
 
16
16
  //#endregion
17
17
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -389,6 +389,12 @@ var routes = {
389
389
  "required": false,
390
390
  "type": "string",
391
391
  "in": "body"
392
+ }, {
393
+ "name": "instructions",
394
+ "description": "Persona-specific instructions composed into the effective system prompt during conversation generation.",
395
+ "required": false,
396
+ "type": "string",
397
+ "in": "body"
392
398
  }, {
393
399
  "name": "agent_id",
394
400
  "description": "Agent to link this actor to. Mutually exclusive with chat_id.",
@@ -449,12 +455,30 @@ var routes = {
449
455
  "required": false,
450
456
  "type": "string",
451
457
  "in": "body"
458
+ }, {
459
+ "name": "external_id",
460
+ "description": "External identifier (e.g. WhatsApp phone number)",
461
+ "required": false,
462
+ "type": "string",
463
+ "in": "body"
452
464
  }, {
453
465
  "name": "instructions",
454
466
  "description": "Persona-specific instructions",
455
467
  "required": false,
456
468
  "type": "string",
457
469
  "in": "body"
470
+ }, {
471
+ "name": "agent_id",
472
+ "description": "Agent to link this actor to. Mutually exclusive with chat_id.",
473
+ "required": false,
474
+ "type": "string",
475
+ "in": "body"
476
+ }, {
477
+ "name": "chat_id",
478
+ "description": "Chat to link this actor to. Mutually exclusive with agent_id.",
479
+ "required": false,
480
+ "type": "string",
481
+ "in": "body"
458
482
  }, {
459
483
  "name": "memory_id",
460
484
  "description": "Memory ID to link to this actor. Set to null to unlink.",
@@ -673,7 +697,118 @@ var routes = {
673
697
  "update-agent": {
674
698
  serviceClass: "Agents",
675
699
  operationId: "updateAgent",
676
- description: "Updates an existing agent.",
700
+ description: "Updates an existing agent. Identical to PATCH — both perform partial updates.",
701
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
702
+ pathParams: ["agent_id"],
703
+ queryParams: [],
704
+ flags: [{
705
+ "name": "agent_id",
706
+ "description": "",
707
+ "required": true,
708
+ "type": "string",
709
+ "in": "path"
710
+ }, {
711
+ "name": "ai_provider_id",
712
+ "description": "",
713
+ "required": false,
714
+ "type": "string",
715
+ "in": "body"
716
+ }, {
717
+ "name": "name",
718
+ "description": "",
719
+ "required": false,
720
+ "type": "string",
721
+ "in": "body"
722
+ }, {
723
+ "name": "instructions",
724
+ "description": "",
725
+ "required": false,
726
+ "type": "string",
727
+ "in": "body"
728
+ }, {
729
+ "name": "model",
730
+ "description": "",
731
+ "required": false,
732
+ "type": "string",
733
+ "in": "body"
734
+ }, {
735
+ "name": "tool_ids",
736
+ "description": "",
737
+ "required": false,
738
+ "type": "array",
739
+ "in": "body"
740
+ }, {
741
+ "name": "max_steps",
742
+ "description": "",
743
+ "required": false,
744
+ "type": "integer",
745
+ "in": "body"
746
+ }, {
747
+ "name": "tool_choice",
748
+ "description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"name\": \"my_tool\" }`).",
749
+ "required": false,
750
+ "type": "string",
751
+ "in": "body"
752
+ }, {
753
+ "name": "stop_conditions",
754
+ "description": "",
755
+ "required": false,
756
+ "type": "array",
757
+ "in": "body"
758
+ }, {
759
+ "name": "active_tool_ids",
760
+ "description": "",
761
+ "required": false,
762
+ "type": "array",
763
+ "in": "body"
764
+ }, {
765
+ "name": "step_rules",
766
+ "description": "",
767
+ "required": false,
768
+ "type": "array",
769
+ "in": "body"
770
+ }, {
771
+ "name": "boundary_policy",
772
+ "description": "",
773
+ "required": false,
774
+ "type": "object",
775
+ "in": "body"
776
+ }, {
777
+ "name": "temperature",
778
+ "description": "",
779
+ "required": false,
780
+ "type": "number",
781
+ "in": "body"
782
+ }, {
783
+ "name": "knowledge_config",
784
+ "description": "",
785
+ "required": false,
786
+ "type": "object",
787
+ "in": "body"
788
+ }, {
789
+ "name": "reasoning",
790
+ "description": "Deep-thinking configuration. `effort` forwards provider-native reasoning; `mode: pipeline` runs an ordered list of reasoning steps after the base draft. reflect and debate are expressed as pipelines — see the Agents module docs.",
791
+ "required": false,
792
+ "type": "object",
793
+ "in": "body"
794
+ }, {
795
+ "name": "max_context_messages",
796
+ "description": "Maximum number of recent messages included in the context window. Null means no limit.",
797
+ "required": false,
798
+ "type": "integer",
799
+ "in": "body"
800
+ }, {
801
+ "name": "single_session_per_actor",
802
+ "description": "When true, only one open session per actor_id is allowed for this agent.",
803
+ "required": false,
804
+ "type": "boolean",
805
+ "in": "body"
806
+ }]
807
+ },
808
+ "patch-agent": {
809
+ serviceClass: "Agents",
810
+ operationId: "patchAgent",
811
+ description: "Partially updates an existing agent. Identical to PUT — both perform partial updates.",
677
812
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
678
813
  pathParams: ["agent_id"],
679
814
  queryParams: [],
@@ -998,6 +1133,12 @@ var routes = {
998
1133
  "required": false,
999
1134
  "type": "string",
1000
1135
  "in": "body"
1136
+ }, {
1137
+ "name": "provider",
1138
+ "description": "LLM provider",
1139
+ "required": false,
1140
+ "type": "string",
1141
+ "in": "body"
1001
1142
  }, {
1002
1143
  "name": "default_model",
1003
1144
  "description": "",
@@ -1042,7 +1183,7 @@ var routes = {
1042
1183
  "list-api-keys": {
1043
1184
  serviceClass: "APIKeys",
1044
1185
  operationId: "listApiKeys",
1045
- description: "Lists API keys accessible to the caller. - JWT admin: returns all API keys. - JWT regular user: returns only the user's own API keys. - API key scoped to a project: returns only API keys scoped to that project.",
1186
+ description: "Lists API keys accessible to the caller. - JWT admin: returns all API keys. - JWT regular user: returns only the user's own API keys. - API key: returns only API keys scoped to the key's project.",
1046
1187
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/api-keys",
1047
1188
  pathParams: [],
1048
1189
  queryParams: [],
@@ -1051,7 +1192,7 @@ var routes = {
1051
1192
  "create-api-key": {
1052
1193
  serviceClass: "APIKeys",
1053
1194
  operationId: "createApiKey",
1054
- description: "Creates a new API key for the authenticated user. - If `project_id` is provided, the key is scoped to that project. - If `policy_ids` is provided, the key's effective permissions are the intersection of the user's policies and the key's policies. - If neither is provided, the key inherits the user's full permissions.",
1195
+ description: "Creates a new API key for the authenticated user. - `project_id` is required: every key is scoped to exactly one project. - If `policy_ids` is provided, the key's effective permissions are the intersection of the user's policies and the key's policies. - Otherwise the key inherits the user's permissions, confined to the key's project.",
1055
1196
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/api-keys",
1056
1197
  pathParams: [],
1057
1198
  queryParams: [],
@@ -1063,8 +1204,8 @@ var routes = {
1063
1204
  "in": "body"
1064
1205
  }, {
1065
1206
  "name": "project_id",
1066
- "description": "Optional project ID to scope this key to a specific project",
1067
- "required": false,
1207
+ "description": "Project ID this key is scoped to. Required keys cannot span projects.",
1208
+ "required": true,
1068
1209
  "type": "string",
1069
1210
  "in": "body"
1070
1211
  }, {
@@ -1093,7 +1234,7 @@ var routes = {
1093
1234
  "update-api-key": {
1094
1235
  serviceClass: "APIKeys",
1095
1236
  operationId: "updateApiKey",
1096
- description: "Updates an API key's name, project scope, or policies. Only the owner or an admin can update it.",
1237
+ description: "Updates an API key's name, project scope, or policies. The project scope can be changed to another project but never cleared. Only the owner or an admin can update it.",
1097
1238
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/api-keys",
1098
1239
  pathParams: ["api_key_id"],
1099
1240
  queryParams: [],
@@ -1111,7 +1252,7 @@ var routes = {
1111
1252
  "in": "body"
1112
1253
  }, {
1113
1254
  "name": "project_id",
1114
- "description": "Set to null to remove project scope",
1255
+ "description": "Re-scope the key to a different project. Cannot be null keys are always project-scoped.",
1115
1256
  "required": false,
1116
1257
  "type": "string",
1117
1258
  "in": "body"
@@ -1385,7 +1526,13 @@ var routes = {
1385
1526
  }, {
1386
1527
  "name": "status",
1387
1528
  "description": "New conversation status",
1388
- "required": true,
1529
+ "required": false,
1530
+ "type": "string",
1531
+ "in": "body"
1532
+ }, {
1533
+ "name": "name",
1534
+ "description": "New conversation name",
1535
+ "required": false,
1389
1536
  "type": "string",
1390
1537
  "in": "body"
1391
1538
  }]
@@ -1628,6 +1775,24 @@ var routes = {
1628
1775
  "required": false,
1629
1776
  "type": "string",
1630
1777
  "in": "body"
1778
+ }, {
1779
+ "name": "title",
1780
+ "description": "Document title",
1781
+ "required": false,
1782
+ "type": "string",
1783
+ "in": "body"
1784
+ }, {
1785
+ "name": "metadata",
1786
+ "description": "Arbitrary metadata object",
1787
+ "required": false,
1788
+ "type": "object",
1789
+ "in": "body"
1790
+ }, {
1791
+ "name": "tags",
1792
+ "description": "Key-value tags",
1793
+ "required": false,
1794
+ "type": "object",
1795
+ "in": "body"
1631
1796
  }, {
1632
1797
  "name": "chunk_strategy",
1633
1798
  "description": "How to split the content into embeddable chunks. `whole` (default) stores the content as a single chunk; `size` splits into fixed-size character windows with overlap. `page` is equivalent to `whole` for plain text.",
@@ -1991,7 +2156,7 @@ var routes = {
1991
2156
  flags: [{
1992
2157
  "name": "project_id",
1993
2158
  "description": "Public ID of the project",
1994
- "required": true,
2159
+ "required": false,
1995
2160
  "type": "string",
1996
2161
  "in": "body"
1997
2162
  }, {
@@ -2074,8 +2239,8 @@ var routes = {
2074
2239
  "in": "path"
2075
2240
  }, {
2076
2241
  "name": "content",
2077
- "description": "Base64-encoded file content",
2078
- "required": true,
2242
+ "description": "Base64-encoded file content (alternative to multipart `file`)",
2243
+ "required": false,
2079
2244
  "type": "string",
2080
2245
  "in": "body"
2081
2246
  }, {
@@ -2246,7 +2411,7 @@ var routes = {
2246
2411
  flags: [{
2247
2412
  "name": "template",
2248
2413
  "description": "",
2249
- "required": true,
2414
+ "required": false,
2250
2415
  "type": "string",
2251
2416
  "in": "body"
2252
2417
  }]
@@ -2278,7 +2443,7 @@ var routes = {
2278
2443
  "in": "body"
2279
2444
  }, {
2280
2445
  "name": "parameters",
2281
- "description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`.\n",
2446
+ "description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`. A parameter declared with `use_previous_value: true` may be omitted to reuse its stored value.\n",
2282
2447
  "required": false,
2283
2448
  "type": "object",
2284
2449
  "in": "body"
@@ -2374,7 +2539,7 @@ var routes = {
2374
2539
  "in": "body"
2375
2540
  }, {
2376
2541
  "name": "parameters",
2377
- "description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`. Required parameters (those without a default) must be provided here.\n",
2542
+ "description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`. Required parameters (those without a default) must be provided here, unless the parameter is declared with `use_previous_value: true`, in which case omitting it reuses the previously stored value.\n",
2378
2543
  "required": false,
2379
2544
  "type": "object",
2380
2545
  "in": "body"
@@ -2831,13 +2996,13 @@ var routes = {
2831
2996
  flags: [{
2832
2997
  "name": "nodes",
2833
2998
  "description": "",
2834
- "required": true,
2999
+ "required": false,
2835
3000
  "type": "array",
2836
3001
  "in": "body"
2837
3002
  }, {
2838
3003
  "name": "edges",
2839
3004
  "description": "",
2840
- "required": true,
3005
+ "required": false,
2841
3006
  "type": "array",
2842
3007
  "in": "body"
2843
3008
  }, {
@@ -3181,6 +3346,27 @@ var routes = {
3181
3346
  "in": "path"
3182
3347
  }]
3183
3348
  },
3349
+ "update-project": {
3350
+ serviceClass: "Projects",
3351
+ operationId: "updateProject",
3352
+ description: "Updates a project's name. Requires admin role.",
3353
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/projects",
3354
+ pathParams: ["project_id"],
3355
+ queryParams: [],
3356
+ flags: [{
3357
+ "name": "project_id",
3358
+ "description": "Project public ID (proj_ prefix)",
3359
+ "required": true,
3360
+ "type": "string",
3361
+ "in": "path"
3362
+ }, {
3363
+ "name": "name",
3364
+ "description": "",
3365
+ "required": true,
3366
+ "type": "string",
3367
+ "in": "body"
3368
+ }]
3369
+ },
3184
3370
  "delete-project": {
3185
3371
  serviceClass: "Projects",
3186
3372
  operationId: "deleteProject",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.13.7",
3
+ "version": "0.13.9",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@inquirer/input": "^5.1.2",
@@ -8,7 +8,7 @@
8
8
  "@ttoss/logger": "^0.8.16",
9
9
  "commander": "^15.0.0",
10
10
  "js-yaml": "^4.2.0",
11
- "@soat/sdk": "0.13.7"
11
+ "@soat/sdk": "0.13.9"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.15",