@arbol-ai/cli 2.4.0 → 2.5.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 +154 -7
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -10705,12 +10705,51 @@ var commands = {
10705
10705
  description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
10706
10706
  default: 25
10707
10707
  },
10708
+ {
10709
+ name: "agentMode",
10710
+ flag: "agent-mode",
10711
+ kind: "boolean",
10712
+ required: false,
10713
+ description: "Set true for voice/AI agents: compact Spanish text, at most 10 matches, complete catalog search and a tenant-isolated catalog cache of at most 60 seconds."
10714
+ },
10715
+ {
10716
+ name: "refresh",
10717
+ flag: "refresh",
10718
+ kind: "boolean",
10719
+ required: false,
10720
+ description: "Bypass the agent catalog cache and read the provider now."
10721
+ },
10708
10722
  {
10709
10723
  name: "id",
10710
10724
  flag: "id",
10711
10725
  kind: "string",
10712
10726
  required: false,
10713
- description: ""
10727
+ description: "Exact catalog id. Use q for a service name or code."
10728
+ },
10729
+ {
10730
+ name: "q",
10731
+ flag: "q",
10732
+ kind: "string",
10733
+ required: false,
10734
+ description: "Search name, code and description across the catalog, ignoring accents and case. Use a distinctive word such as lavado. An empty completed search means no matching catalog entry, not that the clinic cannot perform the procedure."
10735
+ },
10736
+ {
10737
+ name: "active",
10738
+ flag: "active",
10739
+ kind: "boolean",
10740
+ required: false,
10741
+ description: "Filter by the explicit catalog active flag. Omit to include unknown states."
10742
+ },
10743
+ {
10744
+ name: "kind",
10745
+ flag: "kind",
10746
+ kind: "string",
10747
+ required: false,
10748
+ description: "Filter services or products. Use SERVICE for clinical service information.",
10749
+ choices: [
10750
+ "SERVICE",
10751
+ "PRODUCT"
10752
+ ]
10714
10753
  },
10715
10754
  {
10716
10755
  name: "connectionId",
@@ -10750,10 +10789,43 @@ var commands = {
10750
10789
  type: "integer",
10751
10790
  default: 25
10752
10791
  },
10792
+ agentMode: {
10793
+ description: "Set true for voice/AI agents: compact Spanish text, at most 10 matches, complete catalog search and a tenant-isolated catalog cache of at most 60 seconds.",
10794
+ type: "boolean"
10795
+ },
10796
+ refresh: {
10797
+ description: "Bypass the agent catalog cache and read the provider now.",
10798
+ type: "boolean"
10799
+ },
10753
10800
  id: {
10754
10801
  pattern: "^[1-9][0-9]{0,14}$",
10802
+ description: "Exact catalog id. Use q for a service name or code.",
10755
10803
  type: "string"
10756
10804
  },
10805
+ q: {
10806
+ minLength: 2,
10807
+ maxLength: 120,
10808
+ pattern: "\\S",
10809
+ description: "Search name, code and description across the catalog, ignoring accents and case. Use a distinctive word such as lavado. An empty completed search means no matching catalog entry, not that the clinic cannot perform the procedure.",
10810
+ type: "string"
10811
+ },
10812
+ active: {
10813
+ description: "Filter by the explicit catalog active flag. Omit to include unknown states.",
10814
+ type: "boolean"
10815
+ },
10816
+ kind: {
10817
+ description: "Filter services or products. Use SERVICE for clinical service information.",
10818
+ anyOf: [
10819
+ {
10820
+ const: "SERVICE",
10821
+ type: "string"
10822
+ },
10823
+ {
10824
+ const: "PRODUCT",
10825
+ type: "string"
10826
+ }
10827
+ ]
10828
+ },
10757
10829
  connectionId: {
10758
10830
  pattern: "^con_[0-9A-Za-z]{26}$",
10759
10831
  type: "string"
@@ -10761,7 +10833,7 @@ var commands = {
10761
10833
  }
10762
10834
  },
10763
10835
  title: "List services",
10764
- description: "Use the organization gMedic account. Read-only request; provider failures are never empty results.",
10836
+ description: "For voice/AI agents set agentMode=true: concise Spanish text, up to 10 matches and a complete catalog cache of at most 60 seconds. Use q (name/code, accent-insensitive), active and kind filters; use a short distinctive term and limit 5 for a caller question. Filtered searches inspect all provider pages before returning matching entries. Incomplete scans fail explicitly. Without filters, returns one catalog page: follow pageInfo.nextCursor while hasNextPage is true before concluding an entry is absent. A generic procedure or missing price does not establish the requested service or tariff.",
10765
10837
  effect: "read",
10766
10838
  confirmation: null,
10767
10839
  hidden: false
@@ -35506,6 +35578,19 @@ var schemaComponents = {
35506
35578
  }
35507
35579
  }
35508
35580
  },
35581
+ GmedicAgentServicesText: {
35582
+ additionalProperties: false,
35583
+ type: "object",
35584
+ required: [
35585
+ "text"
35586
+ ],
35587
+ properties: {
35588
+ text: {
35589
+ maxLength: 16000,
35590
+ type: "string"
35591
+ }
35592
+ }
35593
+ },
35509
35594
  GmedicAppointmentsPage: {
35510
35595
  additionalProperties: false,
35511
35596
  type: "object",
@@ -37411,6 +37496,35 @@ var schemaComponents = {
37411
37496
  }
37412
37497
  }
37413
37498
  },
37499
+ {
37500
+ additionalProperties: false,
37501
+ type: "object",
37502
+ required: [
37503
+ "code",
37504
+ "message",
37505
+ "retryable",
37506
+ "data"
37507
+ ],
37508
+ properties: {
37509
+ code: {
37510
+ const: "CATALOG_SEARCH_INCOMPLETE",
37511
+ type: "string"
37512
+ },
37513
+ message: {
37514
+ const: "The service catalog search could not be completed within its limits. Service absence cannot be concluded.",
37515
+ type: "string"
37516
+ },
37517
+ retryable: {
37518
+ const: false,
37519
+ type: "boolean"
37520
+ },
37521
+ data: {
37522
+ additionalProperties: false,
37523
+ type: "object",
37524
+ properties: {}
37525
+ }
37526
+ }
37527
+ },
37414
37528
  {
37415
37529
  additionalProperties: false,
37416
37530
  type: "object",
@@ -64098,10 +64212,43 @@ var schemaComponents = {
64098
64212
  type: "integer",
64099
64213
  default: 25
64100
64214
  },
64215
+ agentMode: {
64216
+ description: "Set true for voice/AI agents: compact Spanish text, at most 10 matches, complete catalog search and a tenant-isolated catalog cache of at most 60 seconds.",
64217
+ type: "boolean"
64218
+ },
64219
+ refresh: {
64220
+ description: "Bypass the agent catalog cache and read the provider now.",
64221
+ type: "boolean"
64222
+ },
64101
64223
  id: {
64102
64224
  pattern: "^[1-9][0-9]{0,14}$",
64225
+ description: "Exact catalog id. Use q for a service name or code.",
64226
+ type: "string"
64227
+ },
64228
+ q: {
64229
+ minLength: 2,
64230
+ maxLength: 120,
64231
+ pattern: "\\S",
64232
+ description: "Search name, code and description across the catalog, ignoring accents and case. Use a distinctive word such as lavado. An empty completed search means no matching catalog entry, not that the clinic cannot perform the procedure.",
64103
64233
  type: "string"
64104
64234
  },
64235
+ active: {
64236
+ description: "Filter by the explicit catalog active flag. Omit to include unknown states.",
64237
+ type: "boolean"
64238
+ },
64239
+ kind: {
64240
+ description: "Filter services or products. Use SERVICE for clinical service information.",
64241
+ anyOf: [
64242
+ {
64243
+ const: "SERVICE",
64244
+ type: "string"
64245
+ },
64246
+ {
64247
+ const: "PRODUCT",
64248
+ type: "string"
64249
+ }
64250
+ ]
64251
+ },
64105
64252
  connectionId: {
64106
64253
  pattern: "^con_[0-9A-Za-z]{26}$",
64107
64254
  type: "string"
@@ -72277,9 +72424,9 @@ var schemaComponents = {
72277
72424
  // src/generated/generation.json
72278
72425
  var generation_default = {
72279
72426
  formatVersion: 6,
72280
- release: "1.20261021.53505",
72281
- openapiSha256: "d0b2c69861cf5d9bf86d722c20f3d09c7420d4fbe3f1319c948fd39122505b3c",
72282
- openapiContentSha256: "3dbd465d9ddac7ecd1b00c5694419214ef02e6aa3925085dabaea80077fbfcca",
72427
+ release: "1.20261021.142621",
72428
+ openapiSha256: "9ee7f470f970025948f315a5f014385c35fe2adf8c88f65cc48ded8ce39329dc",
72429
+ openapiContentSha256: "38b2a1f8990668b3b55c4da7ee4ecc6b906464cb5fd58e3dd448889b6145fd36",
72283
72430
  forge: {
72284
72431
  repository: "https://github.com/cloudflare/forge",
72285
72432
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -72292,7 +72439,7 @@ var generation_default = {
72292
72439
  outputs: [
72293
72440
  {
72294
72441
  path: "src/generated/commands.ts",
72295
- sha256: "b359de474d469104dcb084c58616bb848fb2d88819774ca4396889667e2a4bcb"
72442
+ sha256: "60141edcfd08e09bba48673c2ddc2e7dba98c907d07a2f41469bb8d9c8406e1b"
72296
72443
  }
72297
72444
  ]
72298
72445
  };
@@ -72647,7 +72794,7 @@ ${name}`);
72647
72794
  }
72648
72795
 
72649
72796
  // src/index.ts
72650
- var VERSION = "2.4.0";
72797
+ var VERSION = "2.5.0";
72651
72798
  var RELEASE = generation_default.release;
72652
72799
  var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
72653
72800
  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.4.0",
3
+ "version": "2.5.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.5.0",
47
+ "@arbol-ai/sdk": "2.6.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.20261021.53505",
63
- "sha256": "3dbd465d9ddac7ecd1b00c5694419214ef02e6aa3925085dabaea80077fbfcca"
62
+ "release": "1.20261021.142621",
63
+ "sha256": "38b2a1f8990668b3b55c4da7ee4ecc6b906464cb5fd58e3dd448889b6145fd36"
64
64
  }
65
65
  }
66
66
  }