@arbol-ai/cli 2.7.0 → 2.9.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.
Files changed (2) hide show
  1. package/dist/index.js +610 -8
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -15419,6 +15419,46 @@ var commands = {
15419
15419
  confirmation: null,
15420
15420
  hidden: false
15421
15421
  },
15422
+ "raiz conversations delete": {
15423
+ operation: "raiz.conversations.delete",
15424
+ sdkPath: [
15425
+ "raiz",
15426
+ "conversations",
15427
+ "delete"
15428
+ ],
15429
+ pathField: null,
15430
+ fields: [
15431
+ {
15432
+ name: "conversationId",
15433
+ flag: "conversation-id",
15434
+ kind: "string",
15435
+ required: true,
15436
+ description: "Conversation id."
15437
+ }
15438
+ ],
15439
+ inputSchema: {
15440
+ additionalProperties: false,
15441
+ type: "object",
15442
+ required: [
15443
+ "conversationId"
15444
+ ],
15445
+ properties: {
15446
+ conversationId: {
15447
+ description: "Conversation id.",
15448
+ examples: [
15449
+ "cnv_01m45h8q2rf3t9w6y7z0b1c2d3"
15450
+ ],
15451
+ pattern: "^cnv_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
15452
+ type: "string"
15453
+ }
15454
+ }
15455
+ },
15456
+ title: "Delete a conversation",
15457
+ description: "Delete a closed conversation: it leaves every list and report, its transcript and facts are kept, and the history records who deleted it. Not an AI tool.",
15458
+ effect: "delete",
15459
+ confirmation: "Delete a conversation. This cannot be undone.",
15460
+ hidden: false
15461
+ },
15422
15462
  "raiz conversations get": {
15423
15463
  operation: "raiz.conversations.get",
15424
15464
  sdkPath: [
@@ -16819,6 +16859,121 @@ var commands = {
16819
16859
  confirmation: null,
16820
16860
  hidden: false
16821
16861
  },
16862
+ "raiz eval-cases create": {
16863
+ operation: "raiz.evalCases.create",
16864
+ sdkPath: [
16865
+ "raiz",
16866
+ "evalCases",
16867
+ "create"
16868
+ ],
16869
+ pathField: null,
16870
+ fields: [
16871
+ {
16872
+ name: "conversationId",
16873
+ flag: "conversation-id",
16874
+ kind: "string",
16875
+ required: true,
16876
+ description: "Conversation id."
16877
+ },
16878
+ {
16879
+ name: "replyMessageId",
16880
+ flag: "reply-message-id",
16881
+ kind: "string",
16882
+ required: true,
16883
+ description: "Message id."
16884
+ },
16885
+ {
16886
+ name: "expectation",
16887
+ flag: "expectation",
16888
+ kind: "string",
16889
+ required: true,
16890
+ description: "What the Agent should have done instead, for whoever replays the case: a short rubric, never the contact's personal data."
16891
+ },
16892
+ {
16893
+ name: "preferredResponse",
16894
+ flag: "preferred-response",
16895
+ kind: "string",
16896
+ required: true,
16897
+ description: "The team's preferred reply or procedure. Private evidence, never automatically instructions."
16898
+ },
16899
+ {
16900
+ name: "feedbackKind",
16901
+ flag: "feedback-kind",
16902
+ kind: "string",
16903
+ required: true,
16904
+ description: "",
16905
+ choices: [
16906
+ "incorrect",
16907
+ "simpler",
16908
+ "incomplete"
16909
+ ]
16910
+ }
16911
+ ],
16912
+ inputSchema: {
16913
+ additionalProperties: false,
16914
+ type: "object",
16915
+ required: [
16916
+ "conversationId",
16917
+ "replyMessageId",
16918
+ "expectation",
16919
+ "preferredResponse",
16920
+ "feedbackKind"
16921
+ ],
16922
+ properties: {
16923
+ conversationId: {
16924
+ description: "Conversation id.",
16925
+ examples: [
16926
+ "cnv_01m45h8q2rf3t9w6y7z0b1c2d3"
16927
+ ],
16928
+ pattern: "^cnv_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
16929
+ type: "string"
16930
+ },
16931
+ replyMessageId: {
16932
+ description: "Message id.",
16933
+ examples: [
16934
+ "msg_01m45h8q2rf3t9w6y7z0b1c2d3"
16935
+ ],
16936
+ pattern: "^msg_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
16937
+ type: "string"
16938
+ },
16939
+ expectation: {
16940
+ description: "What the Agent should have done instead, for whoever replays the case: a short rubric, never the contact's personal data.",
16941
+ maxLength: 4000,
16942
+ minLength: 1,
16943
+ pattern: "\\S",
16944
+ type: "string"
16945
+ },
16946
+ preferredResponse: {
16947
+ minLength: 1,
16948
+ maxLength: 4000,
16949
+ pattern: "\\S",
16950
+ description: "The team's preferred reply or procedure. Private evidence, never automatically instructions.",
16951
+ type: "string"
16952
+ },
16953
+ feedbackKind: {
16954
+ anyOf: [
16955
+ {
16956
+ const: "incorrect",
16957
+ type: "string"
16958
+ },
16959
+ {
16960
+ const: "simpler",
16961
+ type: "string"
16962
+ },
16963
+ {
16964
+ const: "incomplete",
16965
+ type: "string"
16966
+ }
16967
+ ]
16968
+ }
16969
+ }
16970
+ },
16971
+ title: "Record Agent feedback",
16972
+ description: "Record internal feedback on one completed WhatsApp Agent reply: what should be preserved or changed, a preferred response, and whether it was incorrect, incomplete or could be simpler. Requires conversation write and Agent read access. Does not contact anyone or change live instructions. Repeating creation returns the existing authored case; edit it with updateEvalCase and expectedVersion.",
16973
+ effect: "write",
16974
+ confirmation: null,
16975
+ hidden: false
16976
+ },
16822
16977
  "raiz eval-cases list": {
16823
16978
  operation: "raiz.evalCases.list",
16824
16979
  sdkPath: [
@@ -16873,6 +17028,25 @@ var commands = {
16873
17028
  "kept",
16874
17029
  "dismissed"
16875
17030
  ]
17031
+ },
17032
+ {
17033
+ name: "replyMessageId",
17034
+ flag: "reply-message-id",
17035
+ kind: "string",
17036
+ required: false,
17037
+ description: "Message id."
17038
+ },
17039
+ {
17040
+ name: "source",
17041
+ flag: "source",
17042
+ kind: "string",
17043
+ required: false,
17044
+ description: "",
17045
+ choices: [
17046
+ "correction",
17047
+ "sample",
17048
+ "authored"
17049
+ ]
16876
17050
  }
16877
17051
  ],
16878
17052
  inputSchema: {
@@ -16927,12 +17101,36 @@ var commands = {
16927
17101
  type: "string"
16928
17102
  }
16929
17103
  ]
17104
+ },
17105
+ replyMessageId: {
17106
+ description: "Message id.",
17107
+ examples: [
17108
+ "msg_01m45h8q2rf3t9w6y7z0b1c2d3"
17109
+ ],
17110
+ pattern: "^msg_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
17111
+ type: "string"
17112
+ },
17113
+ source: {
17114
+ anyOf: [
17115
+ {
17116
+ const: "correction",
17117
+ type: "string"
17118
+ },
17119
+ {
17120
+ const: "sample",
17121
+ type: "string"
17122
+ },
17123
+ {
17124
+ const: "authored",
17125
+ type: "string"
17126
+ }
17127
+ ]
16930
17128
  }
16931
17129
  },
16932
17130
  additionalProperties: false
16933
17131
  },
16934
17132
  title: "List evaluation cases",
16935
- description: "The Agents' evaluation cases, newest first: each is a WhatsApp reply the model wrote after which a person from the business wrote in the conversation (`correction`), with the Agent version that wrote it. Filter by `agentId` or `status` (`open` not reviewed yet, `kept`, `dismissed`). Read the conversation with its own operations to judge a case. Not an AI tool.",
17133
+ description: "The Agents' evaluation cases, newest first: completed WhatsApp replies with explicit internal team feedback (`authored`) or a following team message (`correction`), and the Agent version that wrote each reply. Filter by agentId, replyMessageId, source or status (`open`, `kept`, `dismissed`). Requires conversation read authority as well as Agent read authority. Read the conversation with its own operations to judge a case. Not an AI tool.",
16936
17134
  effect: "read",
16937
17135
  confirmation: null,
16938
17136
  hidden: false
@@ -16953,6 +17151,32 @@ var commands = {
16953
17151
  required: true,
16954
17152
  description: "Evaluation case id."
16955
17153
  },
17154
+ {
17155
+ name: "expectedVersion",
17156
+ flag: "expected-version",
17157
+ kind: "integer",
17158
+ required: false,
17159
+ description: "The `version` you read. When present, the change applies only if nobody changed the resource since; otherwise it fails with VERSION_CONFLICT."
17160
+ },
17161
+ {
17162
+ name: "preferredResponse",
17163
+ flag: "preferred-response",
17164
+ kind: "string",
17165
+ required: false,
17166
+ description: ""
17167
+ },
17168
+ {
17169
+ name: "feedbackKind",
17170
+ flag: "feedback-kind",
17171
+ kind: "string",
17172
+ required: false,
17173
+ description: "",
17174
+ choices: [
17175
+ "incorrect",
17176
+ "simpler",
17177
+ "incomplete"
17178
+ ]
17179
+ },
16956
17180
  {
16957
17181
  name: "expectation",
16958
17182
  flag: "expectation",
@@ -16988,12 +17212,48 @@ var commands = {
16988
17212
  pattern: "^evc_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
16989
17213
  type: "string"
16990
17214
  },
17215
+ expectedVersion: {
17216
+ description: "The `version` you read. When present, the change applies only if nobody changed the resource since; otherwise it fails with VERSION_CONFLICT.",
17217
+ minimum: 1,
17218
+ type: "integer"
17219
+ },
17220
+ preferredResponse: {
17221
+ anyOf: [
17222
+ {
17223
+ minLength: 1,
17224
+ maxLength: 4000,
17225
+ pattern: "\\S",
17226
+ description: "The team's preferred reply or procedure. Private evidence, never automatically instructions.",
17227
+ type: "string"
17228
+ },
17229
+ {
17230
+ type: "null"
17231
+ }
17232
+ ]
17233
+ },
17234
+ feedbackKind: {
17235
+ anyOf: [
17236
+ {
17237
+ const: "incorrect",
17238
+ type: "string"
17239
+ },
17240
+ {
17241
+ const: "simpler",
17242
+ type: "string"
17243
+ },
17244
+ {
17245
+ const: "incomplete",
17246
+ type: "string"
17247
+ }
17248
+ ]
17249
+ },
16991
17250
  expectation: {
16992
17251
  anyOf: [
16993
17252
  {
16994
17253
  description: "What the Agent should have done instead, for whoever replays the case: a short rubric, never the contact's personal data.",
16995
17254
  maxLength: 4000,
16996
17255
  minLength: 1,
17256
+ pattern: "\\S",
16997
17257
  type: "string"
16998
17258
  },
16999
17259
  {
@@ -17042,6 +17302,13 @@ var commands = {
17042
17302
  required: true,
17043
17303
  description: "Agent id."
17044
17304
  },
17305
+ {
17306
+ name: "feedbackCaseId",
17307
+ flag: "feedback-case-id",
17308
+ kind: "string",
17309
+ required: false,
17310
+ description: "Evaluation case id."
17311
+ },
17045
17312
  {
17046
17313
  name: "caseIds",
17047
17314
  flag: "case-ids",
@@ -17172,6 +17439,14 @@ var commands = {
17172
17439
  }
17173
17440
  }
17174
17441
  },
17442
+ feedbackCaseId: {
17443
+ description: "Evaluation case id.",
17444
+ examples: [
17445
+ "evc_01m45h8q2rf3t9w6y7z0b1c2d3"
17446
+ ],
17447
+ pattern: "^evc_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
17448
+ type: "string"
17449
+ },
17175
17450
  caseIds: {
17176
17451
  description: "The Agent's kept cases to replay. Omitted: its 50 newest kept cases.",
17177
17452
  maxItems: 50,
@@ -17195,7 +17470,7 @@ var commands = {
17195
17470
  }
17196
17471
  },
17197
17472
  title: "Replay evaluation cases on a candidate",
17198
- description: "Measure a candidate version of a text Agent on its kept evaluation cases before publishing it: the WhatsApp Agent rewrites each case's reply with the candidate's `instructions`, `skills`, `integrationSkills`, `model` and `reasoningEffort` (omitted ones stay as the live Agent has them), without running any integration tool (each answers with what it answered in the original conversation) and without sending anything; then a judge model compares each new reply with what the team expects. Replays every kept case, or `caseIds`, at most 50. It calls paid models, so it needs `confirmCost: true`. Follow it with `getEvalRun`; with the Agent's `settings.evalGate`, `updateAgent` publishes exactly this content with `evalRunId`. EVAL_CASES_UNAVAILABLE: no kept case to replay. Not an AI tool.",
17473
+ description: "With feedbackCaseId, prepare conditional guidance from that kept correction and test it with the Agent’s newest kept cases, always including the source. Do not combine feedbackCaseId with candidate or caseIds. This does not publish. Requires conversation read access. Otherwise measure a candidate version of a text Agent on its kept evaluation cases before publishing it: the WhatsApp Agent rewrites each case's reply with the candidate's `instructions`, `skills`, `integrationSkills`, `model` and `reasoningEffort` (omitted ones stay as the live Agent has them), without running any integration tool (each answers with what it answered in the original conversation) and without sending anything; then a judge model compares each new reply with what the team expects. Replays every kept case, or `caseIds`, at most 50. It calls paid models, so it needs `confirmCost: true`. Follow it with `getEvalRun`; with the Agent's `settings.evalGate`, `updateAgent` publishes exactly this content with `evalRunId`. EVAL_CASES_UNAVAILABLE: no kept case to replay. Not an AI tool.",
17199
17474
  effect: "write",
17200
17475
  confirmation: null,
17201
17476
  hidden: false
@@ -45861,6 +46136,10 @@ var schemaComponents = {
45861
46136
  "correctionMessageId",
45862
46137
  "createdAt",
45863
46138
  "expectation",
46139
+ "preferredResponse",
46140
+ "feedbackKind",
46141
+ "version",
46142
+ "latestRunId",
45864
46143
  "id",
45865
46144
  "replyMessageId",
45866
46145
  "source",
@@ -45925,6 +46204,58 @@ var schemaComponents = {
45925
46204
  }
45926
46205
  ]
45927
46206
  },
46207
+ preferredResponse: {
46208
+ anyOf: [
46209
+ {
46210
+ type: "string"
46211
+ },
46212
+ {
46213
+ type: "null"
46214
+ }
46215
+ ]
46216
+ },
46217
+ feedbackKind: {
46218
+ anyOf: [
46219
+ {
46220
+ anyOf: [
46221
+ {
46222
+ const: "incorrect",
46223
+ type: "string"
46224
+ },
46225
+ {
46226
+ const: "simpler",
46227
+ type: "string"
46228
+ },
46229
+ {
46230
+ const: "incomplete",
46231
+ type: "string"
46232
+ }
46233
+ ]
46234
+ },
46235
+ {
46236
+ type: "null"
46237
+ }
46238
+ ]
46239
+ },
46240
+ version: {
46241
+ minimum: 1,
46242
+ type: "integer"
46243
+ },
46244
+ latestRunId: {
46245
+ anyOf: [
46246
+ {
46247
+ description: "The latest candidate prepared from this correction.",
46248
+ examples: [
46249
+ "evr_01m45h8q2rf3t9w6y7z0b1c2d3"
46250
+ ],
46251
+ pattern: "^evr_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
46252
+ type: "string"
46253
+ },
46254
+ {
46255
+ type: "null"
46256
+ }
46257
+ ]
46258
+ },
45928
46259
  id: {
45929
46260
  description: "Evaluation case id.",
45930
46261
  examples: [
@@ -45942,7 +46273,7 @@ var schemaComponents = {
45942
46273
  type: "string"
45943
46274
  },
45944
46275
  source: {
45945
- description: "`correction`: a person wrote right after the reply. `sample` and `authored` are reserved for sampled and hand-written cases.",
46276
+ description: "`correction`: a person wrote right after the reply. `authored`: explicit internal team feedback. `sample`: a sampled reply.",
45946
46277
  anyOf: [
45947
46278
  {
45948
46279
  const: "correction",
@@ -46014,8 +46345,13 @@ var schemaComponents = {
46014
46345
  type: "object",
46015
46346
  required: [
46016
46347
  "agentId",
46348
+ "baseVersion",
46349
+ "feedbackCaseVersion",
46017
46350
  "baseVersionId",
46018
46351
  "caseIds",
46352
+ "feedbackCaseId",
46353
+ "proposal",
46354
+ "proposedInstructions",
46019
46355
  "contentSha256",
46020
46356
  "createdAt",
46021
46357
  "endedAt",
@@ -46037,6 +46373,28 @@ var schemaComponents = {
46037
46373
  pattern: "^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
46038
46374
  type: "string"
46039
46375
  },
46376
+ baseVersion: {
46377
+ anyOf: [
46378
+ {
46379
+ minimum: 1,
46380
+ type: "integer"
46381
+ },
46382
+ {
46383
+ type: "null"
46384
+ }
46385
+ ]
46386
+ },
46387
+ feedbackCaseVersion: {
46388
+ anyOf: [
46389
+ {
46390
+ minimum: 1,
46391
+ type: "integer"
46392
+ },
46393
+ {
46394
+ type: "null"
46395
+ }
46396
+ ]
46397
+ },
46040
46398
  baseVersionId: {
46041
46399
  anyOf: [
46042
46400
  {
@@ -46060,6 +46418,77 @@ var schemaComponents = {
46060
46418
  type: "string"
46061
46419
  }
46062
46420
  },
46421
+ feedbackCaseId: {
46422
+ anyOf: [
46423
+ {
46424
+ description: "Evaluation case id.",
46425
+ examples: [
46426
+ "evc_01m45h8q2rf3t9w6y7z0b1c2d3"
46427
+ ],
46428
+ pattern: "^evc_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
46429
+ type: "string"
46430
+ },
46431
+ {
46432
+ type: "null"
46433
+ }
46434
+ ]
46435
+ },
46436
+ proposal: {
46437
+ anyOf: [
46438
+ {
46439
+ additionalProperties: false,
46440
+ type: "object",
46441
+ required: [
46442
+ "appliesWhen",
46443
+ "guidance",
46444
+ "exceptions"
46445
+ ],
46446
+ properties: {
46447
+ replaceText: {
46448
+ anyOf: [
46449
+ {
46450
+ minLength: 1,
46451
+ maxLength: 2000,
46452
+ type: "string"
46453
+ },
46454
+ {
46455
+ type: "null"
46456
+ }
46457
+ ]
46458
+ },
46459
+ appliesWhen: {
46460
+ minLength: 1,
46461
+ maxLength: 600,
46462
+ type: "string"
46463
+ },
46464
+ guidance: {
46465
+ minLength: 1,
46466
+ maxLength: 1200,
46467
+ type: "string"
46468
+ },
46469
+ exceptions: {
46470
+ minLength: 1,
46471
+ maxLength: 600,
46472
+ type: "string"
46473
+ }
46474
+ }
46475
+ },
46476
+ {
46477
+ type: "null"
46478
+ }
46479
+ ]
46480
+ },
46481
+ proposedInstructions: {
46482
+ anyOf: [
46483
+ {
46484
+ description: "For a feedback proposal, the exact candidate instructions to review and send to updateAgent with evalRunId and expectedVersion. No live Agent has changed.",
46485
+ type: "string"
46486
+ },
46487
+ {
46488
+ type: "null"
46489
+ }
46490
+ ]
46491
+ },
46063
46492
  contentSha256: {
46064
46493
  description: "SHA-256 of the candidate's content (instructions, skills, connection skills, model, reasoning effort): what `settings.evalGate` compares with an update's.",
46065
46494
  pattern: "^[a-f0-9]{64}$",
@@ -49030,6 +49459,35 @@ var schemaComponents = {
49030
49459
  }
49031
49460
  }
49032
49461
  },
49462
+ {
49463
+ additionalProperties: false,
49464
+ type: "object",
49465
+ required: [
49466
+ "code",
49467
+ "message",
49468
+ "retryable",
49469
+ "data"
49470
+ ],
49471
+ properties: {
49472
+ code: {
49473
+ const: "FEEDBACK_PROPOSAL_UNAVAILABLE",
49474
+ type: "string"
49475
+ },
49476
+ message: {
49477
+ const: "A usable improvement could not be prepared. The Agent has not changed. Try again later.",
49478
+ type: "string"
49479
+ },
49480
+ retryable: {
49481
+ const: true,
49482
+ type: "boolean"
49483
+ },
49484
+ data: {
49485
+ additionalProperties: false,
49486
+ type: "object",
49487
+ properties: {}
49488
+ }
49489
+ }
49490
+ },
49033
49491
  {
49034
49492
  additionalProperties: false,
49035
49493
  type: "object",
@@ -67666,6 +68124,23 @@ var schemaComponents = {
67666
68124
  },
67667
68125
  additionalProperties: false
67668
68126
  },
68127
+ RaizConversationsDeleteInput: {
68128
+ additionalProperties: false,
68129
+ type: "object",
68130
+ required: [
68131
+ "conversationId"
68132
+ ],
68133
+ properties: {
68134
+ conversationId: {
68135
+ description: "Conversation id.",
68136
+ examples: [
68137
+ "cnv_01m45h8q2rf3t9w6y7z0b1c2d3"
68138
+ ],
68139
+ pattern: "^cnv_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
68140
+ type: "string"
68141
+ }
68142
+ }
68143
+ },
67669
68144
  RaizConversationsGetInput: {
67670
68145
  type: "object",
67671
68146
  properties: {
@@ -68274,10 +68749,93 @@ var schemaComponents = {
68274
68749
  type: "string"
68275
68750
  }
68276
68751
  ]
68752
+ },
68753
+ replyMessageId: {
68754
+ description: "Message id.",
68755
+ examples: [
68756
+ "msg_01m45h8q2rf3t9w6y7z0b1c2d3"
68757
+ ],
68758
+ pattern: "^msg_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
68759
+ type: "string"
68760
+ },
68761
+ source: {
68762
+ anyOf: [
68763
+ {
68764
+ const: "correction",
68765
+ type: "string"
68766
+ },
68767
+ {
68768
+ const: "sample",
68769
+ type: "string"
68770
+ },
68771
+ {
68772
+ const: "authored",
68773
+ type: "string"
68774
+ }
68775
+ ]
68277
68776
  }
68278
68777
  },
68279
68778
  additionalProperties: false
68280
68779
  },
68780
+ RaizEvalCasesCreateInput: {
68781
+ additionalProperties: false,
68782
+ type: "object",
68783
+ required: [
68784
+ "conversationId",
68785
+ "replyMessageId",
68786
+ "expectation",
68787
+ "preferredResponse",
68788
+ "feedbackKind"
68789
+ ],
68790
+ properties: {
68791
+ conversationId: {
68792
+ description: "Conversation id.",
68793
+ examples: [
68794
+ "cnv_01m45h8q2rf3t9w6y7z0b1c2d3"
68795
+ ],
68796
+ pattern: "^cnv_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
68797
+ type: "string"
68798
+ },
68799
+ replyMessageId: {
68800
+ description: "Message id.",
68801
+ examples: [
68802
+ "msg_01m45h8q2rf3t9w6y7z0b1c2d3"
68803
+ ],
68804
+ pattern: "^msg_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
68805
+ type: "string"
68806
+ },
68807
+ expectation: {
68808
+ description: "What the Agent should have done instead, for whoever replays the case: a short rubric, never the contact's personal data.",
68809
+ maxLength: 4000,
68810
+ minLength: 1,
68811
+ pattern: "\\S",
68812
+ type: "string"
68813
+ },
68814
+ preferredResponse: {
68815
+ minLength: 1,
68816
+ maxLength: 4000,
68817
+ pattern: "\\S",
68818
+ description: "The team's preferred reply or procedure. Private evidence, never automatically instructions.",
68819
+ type: "string"
68820
+ },
68821
+ feedbackKind: {
68822
+ anyOf: [
68823
+ {
68824
+ const: "incorrect",
68825
+ type: "string"
68826
+ },
68827
+ {
68828
+ const: "simpler",
68829
+ type: "string"
68830
+ },
68831
+ {
68832
+ const: "incomplete",
68833
+ type: "string"
68834
+ }
68835
+ ]
68836
+ }
68837
+ }
68838
+ },
68281
68839
  RaizEvalCasesUpdateInput: {
68282
68840
  additionalProperties: false,
68283
68841
  type: "object",
@@ -68293,12 +68851,48 @@ var schemaComponents = {
68293
68851
  pattern: "^evc_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
68294
68852
  type: "string"
68295
68853
  },
68854
+ expectedVersion: {
68855
+ description: "The `version` you read. When present, the change applies only if nobody changed the resource since; otherwise it fails with VERSION_CONFLICT.",
68856
+ minimum: 1,
68857
+ type: "integer"
68858
+ },
68859
+ preferredResponse: {
68860
+ anyOf: [
68861
+ {
68862
+ minLength: 1,
68863
+ maxLength: 4000,
68864
+ pattern: "\\S",
68865
+ description: "The team's preferred reply or procedure. Private evidence, never automatically instructions.",
68866
+ type: "string"
68867
+ },
68868
+ {
68869
+ type: "null"
68870
+ }
68871
+ ]
68872
+ },
68873
+ feedbackKind: {
68874
+ anyOf: [
68875
+ {
68876
+ const: "incorrect",
68877
+ type: "string"
68878
+ },
68879
+ {
68880
+ const: "simpler",
68881
+ type: "string"
68882
+ },
68883
+ {
68884
+ const: "incomplete",
68885
+ type: "string"
68886
+ }
68887
+ ]
68888
+ },
68296
68889
  expectation: {
68297
68890
  anyOf: [
68298
68891
  {
68299
68892
  description: "What the Agent should have done instead, for whoever replays the case: a short rubric, never the contact's personal data.",
68300
68893
  maxLength: 4000,
68301
68894
  minLength: 1,
68895
+ pattern: "\\S",
68302
68896
  type: "string"
68303
68897
  },
68304
68898
  {
@@ -68437,6 +69031,14 @@ var schemaComponents = {
68437
69031
  }
68438
69032
  }
68439
69033
  },
69034
+ feedbackCaseId: {
69035
+ description: "Evaluation case id.",
69036
+ examples: [
69037
+ "evc_01m45h8q2rf3t9w6y7z0b1c2d3"
69038
+ ],
69039
+ pattern: "^evc_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
69040
+ type: "string"
69041
+ },
68440
69042
  caseIds: {
68441
69043
  description: "The Agent's kept cases to replay. Omitted: its 50 newest kept cases.",
68442
69044
  maxItems: 50,
@@ -73192,9 +73794,9 @@ var schemaComponents = {
73192
73794
  // src/generated/generation.json
73193
73795
  var generation_default = {
73194
73796
  formatVersion: 6,
73195
- release: "1.20261023.13947",
73196
- openapiSha256: "922e8f634818548570d7cd6f85d240c2207870cbe5d5b3a176af2743e8fb20ff",
73197
- openapiContentSha256: "1c5faf8f909599f3c67cb00c9370946d6ffd505ee2885a7d62170f253b3c736d",
73797
+ release: "1.20261023.60554",
73798
+ openapiSha256: "86323054a3e408946c70daf18480c82b7084c3e38c73e469d0d34227bf10a117",
73799
+ openapiContentSha256: "c05fa12d8b1bed4efd2d1e6a0e29a7dae23ee0e665b8117d08c7dc1d458876d4",
73198
73800
  forge: {
73199
73801
  repository: "https://github.com/cloudflare/forge",
73200
73802
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -73207,7 +73809,7 @@ var generation_default = {
73207
73809
  outputs: [
73208
73810
  {
73209
73811
  path: "src/generated/commands.ts",
73210
- sha256: "eef35f981f1a13a2020f600d5f6da76b48af252dae6b4ff21820901c25327258"
73812
+ sha256: "a06f367dba10667942695d2565afd2bb43fa1ac72279cec15effe052d47e46b0"
73211
73813
  }
73212
73814
  ]
73213
73815
  };
@@ -73562,7 +74164,7 @@ ${name}`);
73562
74164
  }
73563
74165
 
73564
74166
  // src/index.ts
73565
- var VERSION = "2.7.0";
74167
+ var VERSION = "2.9.0";
73566
74168
  var RELEASE = generation_default.release;
73567
74169
  var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
73568
74170
  var SERVICES = [...new Set(Object.keys(commands).map((name) => name.split(" ")[0]))].toSorted();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/cli",
3
- "version": "2.7.0",
3
+ "version": "2.9.0",
4
4
  "description": "The Arbol CLI: the Arbol API from your terminal, with commands generated by Cloudflare Forge from the public OpenAPI.",
5
5
  "keywords": [
6
6
  "arbol",
@@ -44,7 +44,7 @@
44
44
  "verify": "bun run typecheck && bun run test && bun run build"
45
45
  },
46
46
  "dependencies": {
47
- "@arbol-ai/sdk": "2.8.0",
47
+ "@arbol-ai/sdk": "2.10.0",
48
48
  "ajv": "8.20.0",
49
49
  "ajv-formats": "3.0.1",
50
50
  "oauth4webapi": "3.8.8"
@@ -59,8 +59,8 @@
59
59
  "packageManager": "bun@1.4.3",
60
60
  "arbol": {
61
61
  "openapi": {
62
- "release": "1.20261023.13947",
63
- "sha256": "1c5faf8f909599f3c67cb00c9370946d6ffd505ee2885a7d62170f253b3c736d"
62
+ "release": "1.20261023.60554",
63
+ "sha256": "c05fa12d8b1bed4efd2d1e6a0e29a7dae23ee0e665b8117d08c7dc1d458876d4"
64
64
  }
65
65
  }
66
66
  }