@wirecat/attio-cli 0.2.2 → 0.3.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 (158) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +13 -9
  3. package/contracts/wirecat.json +263 -1
  4. package/dist/bin/attio.js +2 -2
  5. package/dist/bundle/agent-63P427ER.js +37 -0
  6. package/dist/bundle/{all-profiles-RAFO3NFW.js → all-profiles-KCZGH7JK.js} +10 -10
  7. package/dist/bundle/{anthropic-TNR6QJGA.js → anthropic-4HCGQIHA.js} +5 -5
  8. package/dist/bundle/{app-server-BXVGXUGQ.js → app-server-VSYG36ER.js} +61 -61
  9. package/dist/bundle/attio.js +11 -11
  10. package/dist/bundle/{bun-3RTK5XYF.js → bun-CZK3ZADI.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-I5K5Z2ZK.js → bun-sqlite-CM5FSNH3.js} +6 -6
  12. package/dist/bundle/{chunk-XSUU7PB7.js → chunk-23POG3B3.js} +16 -3
  13. package/dist/bundle/{chunk-WALQNDXO.js → chunk-2ILCSLXY.js} +8 -8
  14. package/dist/bundle/{chunk-53BHLQRA.js → chunk-2SVDLRLQ.js} +13 -13
  15. package/dist/bundle/{chunk-7WS4ONXZ.js → chunk-32BIODCI.js} +3 -3
  16. package/dist/bundle/{chunk-BFWERPF6.js → chunk-4BQDHDZA.js} +2 -2
  17. package/dist/bundle/{chunk-LHKVAZ5T.js → chunk-4E4IGABE.js} +2 -2
  18. package/dist/bundle/{chunk-MG4U6AKG.js → chunk-4LEB7SUS.js} +3 -4
  19. package/dist/bundle/{chunk-BDFNXTNK.js → chunk-52GTOWNB.js} +7 -7
  20. package/dist/bundle/{chunk-UZYL4AMA.js → chunk-55CDR7VJ.js} +72 -57
  21. package/dist/bundle/{chunk-P76XVKVC.js → chunk-5R255HLF.js} +1 -1
  22. package/dist/bundle/{chunk-2JB5XD5R.js → chunk-5WZBGDPL.js} +7 -7
  23. package/dist/bundle/{chunk-NQNFMKL2.js → chunk-5ZNVTVDU.js} +1 -1
  24. package/dist/bundle/{chunk-2PSAS4TT.js → chunk-6WVUBU7T.js} +7 -7
  25. package/dist/bundle/{chunk-SYBAMYFY.js → chunk-7XSJ6LTE.js} +3 -3
  26. package/dist/bundle/{chunk-JWRI6ZY6.js → chunk-A3Y5GPG3.js} +203 -162
  27. package/dist/bundle/{chunk-CKG7GIHR.js → chunk-AJT4BERP.js} +3 -3
  28. package/dist/bundle/{chunk-7626I3P4.js → chunk-AV7762PN.js} +1 -1
  29. package/dist/bundle/{chunk-CFQQTDSA.js → chunk-BFESDJPU.js} +1 -1
  30. package/dist/bundle/{chunk-GT3HXSKW.js → chunk-C4DJ4OTP.js} +14 -7
  31. package/dist/bundle/{chunk-T6DV3ED2.js → chunk-CSKKZTWI.js} +14 -14
  32. package/dist/bundle/{chunk-V4JWUVNO.js → chunk-CYAWDFBI.js} +4 -4
  33. package/dist/bundle/{chunk-JFFCP52L.js → chunk-CYF6ECG7.js} +1 -1
  34. package/dist/bundle/{chunk-3LMW7U7F.js → chunk-DDFQEOLX.js} +21 -8
  35. package/dist/bundle/{chunk-AXGSAG53.js → chunk-DJCGJRAD.js} +25 -174
  36. package/dist/bundle/{chunk-NWDO4DE3.js → chunk-EAWMBNAO.js} +1740 -802
  37. package/dist/bundle/{chunk-VQSVE4RD.js → chunk-EGZ6N56Z.js} +2 -2
  38. package/dist/bundle/{chunk-LIIOT3AN.js → chunk-EO3X3QWY.js} +3 -3
  39. package/dist/bundle/{chunk-Z3HZD24R.js → chunk-FNIYIYDK.js} +17 -17
  40. package/dist/bundle/{chunk-MI6IH5UW.js → chunk-HTQ5HUXV.js} +61 -61
  41. package/dist/bundle/{chunk-7QH5BZUG.js → chunk-INCLKCAJ.js} +3 -3
  42. package/dist/bundle/{chunk-NQJ7QMEF.js → chunk-ISNUT525.js} +3 -3
  43. package/dist/bundle/{chunk-LG6Y4NAT.js → chunk-JAUTKJYJ.js} +2 -2
  44. package/dist/bundle/{chunk-2TLGP7BS.js → chunk-JLFXUXSQ.js} +5 -5
  45. package/dist/bundle/{chunk-HVXOA4FO.js → chunk-K34B37AP.js} +1 -1
  46. package/dist/bundle/{chunk-L7BMGR5W.js → chunk-KK3IESFZ.js} +162 -36
  47. package/dist/bundle/{chunk-FRCORPOY.js → chunk-KYAJ5AVG.js} +5 -5
  48. package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-LJLUYRPY.js} +4 -4
  49. package/dist/bundle/{chunk-MHMHZ6GY.js → chunk-LTGWE5L6.js} +1 -1
  50. package/dist/bundle/{chunk-RKKY3MSZ.js → chunk-MOUF6JHB.js} +1 -1
  51. package/dist/bundle/{chunk-SEDD6YZQ.js → chunk-MSASR6MQ.js} +4 -4
  52. package/dist/bundle/{chunk-O4SX6FXT.js → chunk-MWFJX3K6.js} +1 -1
  53. package/dist/bundle/{chunk-XQIRF6PS.js → chunk-N64IK3XS.js} +7 -7
  54. package/dist/bundle/{chunk-HMYJLOXE.js → chunk-NIV4S25C.js} +2546 -855
  55. package/dist/bundle/{chunk-APNSAKSO.js → chunk-NMKAEONQ.js} +6 -6
  56. package/dist/bundle/{chunk-OHCYBSCA.js → chunk-OKK2CBVW.js} +13 -13
  57. package/dist/bundle/{chunk-AMRELFBT.js → chunk-PO6DVZUY.js} +2 -2
  58. package/dist/bundle/{chunk-FPMWW2HK.js → chunk-PTTSHIYR.js} +32 -27
  59. package/dist/bundle/{chunk-UTTNGFKW.js → chunk-RGFBK5DJ.js} +12 -12
  60. package/dist/bundle/{chunk-YBJBYPS7.js → chunk-RMOSNURU.js} +3 -3
  61. package/dist/bundle/{chunk-3BM6KBWP.js → chunk-SCBLAAZU.js} +19 -19
  62. package/dist/bundle/{chunk-OC35ZLPE.js → chunk-SQMN3CME.js} +4 -4
  63. package/dist/bundle/{chunk-HM6AMYHR.js → chunk-TSHMRHL6.js} +2 -2
  64. package/dist/bundle/{chunk-QSUFJGTG.js → chunk-TSL3PZAZ.js} +2 -2
  65. package/dist/bundle/{chunk-3JRLPNPO.js → chunk-TU4U3YEM.js} +1 -1
  66. package/dist/bundle/{chunk-ZI3IRII7.js → chunk-U3Y2AC2K.js} +3 -3
  67. package/dist/bundle/{chunk-6HYTDMOL.js → chunk-UMJ7OKJD.js} +6 -6
  68. package/dist/bundle/{chunk-WHDVRMB7.js → chunk-UZW73WTM.js} +67 -46
  69. package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-VHPNTMJJ.js} +1 -1
  70. package/dist/bundle/{chunk-TUOFAUBR.js → chunk-WF7TKMZ7.js} +8 -8
  71. package/dist/bundle/{chunk-DKSO7UTS.js → chunk-WHA23FJC.js} +152 -14
  72. package/dist/bundle/{chunk-Q2U6DGSV.js → chunk-WPOOZGQ7.js} +10 -10
  73. package/dist/bundle/{chunk-CZP6C6MX.js → chunk-X3PQFXYL.js} +4 -4
  74. package/dist/bundle/{chunk-62FENOMX.js → chunk-XSHMRXOW.js} +6 -6
  75. package/dist/bundle/{chunk-B7U5FLPP.js → chunk-Y4AOEDGO.js} +8 -8
  76. package/dist/bundle/{chunk-4F3FQ5QX.js → chunk-YBCGG6JY.js} +3 -3
  77. package/dist/bundle/{chunk-6ZBJCBXA.js → chunk-YC3F3RCL.js} +2 -2
  78. package/dist/bundle/{chunk-MW2OS2GD.js → chunk-YFAATLLR.js} +8 -8
  79. package/dist/bundle/{chunk-AHPGTDO2.js → chunk-YGPZCVBI.js} +6 -6
  80. package/dist/bundle/{chunk-PRERT2BZ.js → chunk-YJKP6UZC.js} +1 -1
  81. package/dist/bundle/{chunk-JSAXTIRX.js → chunk-YN5K2P7M.js} +3 -2
  82. package/dist/bundle/{chunk-2CS7VHUB.js → chunk-ZGFRTWSW.js} +34 -34
  83. package/dist/bundle/{chunk-EMZ4MGPD.js → chunk-ZOVX5VVZ.js} +22 -1
  84. package/dist/bundle/command-contract-JZGX4E3W.js +37 -0
  85. package/dist/bundle/{command-server-entry-ZKWL26Q5.js → command-server-entry-FOFPJGYW.js} +25 -25
  86. package/dist/bundle/{decode-TG45PUJW.js → decode-2W6JJN3B.js} +5 -5
  87. package/dist/bundle/{dispatch-JQBAZWCL.js → dispatch-ZRVKJENQ.js} +8 -8
  88. package/dist/bundle/{echarts-AWICNZBO.js → echarts-R4BLGOSP.js} +2 -2
  89. package/dist/bundle/{embed-TN6HQUK2.js → embed-DIFO7RH4.js} +6 -6
  90. package/dist/bundle/{embedder-T3KJA3I4.js → embedder-S5FKW4XZ.js} +9 -9
  91. package/dist/bundle/{failure-I6AAF5R5.js → failure-C2B7PYPJ.js} +2 -2
  92. package/dist/bundle/{first-run-BZUITKMF.js → first-run-RNGP4IWU.js} +12 -12
  93. package/dist/bundle/first-screen-K6YMX3G5.js +37 -0
  94. package/dist/bundle/{instructions-FRJHLLZX.js → instructions-F22KNH4O.js} +1 -1
  95. package/dist/bundle/{mcp-YGOAUNC3.js → mcp-VNOYBWW2.js} +2 -2
  96. package/dist/bundle/meeting-combined-HX3LC5FD.js +24 -0
  97. package/dist/bundle/{meeting-model-TENJU3OG.js → meeting-model-P34GVZRK.js} +11 -11
  98. package/dist/bundle/{meeting-semantic-ZKOG2XMU.js → meeting-semantic-RC25X3UB.js} +6 -6
  99. package/dist/bundle/{node-3ZISJOEM.js → node-SF2NI2UT.js} +2 -2
  100. package/dist/bundle/{node-sqlite-KA35X4F4.js → node-sqlite-WH3MF6PF.js} +7 -7
  101. package/dist/bundle/{oauth-C74B6XHN.js → oauth-EWHT3YJ4.js} +7 -7
  102. package/dist/bundle/{open-CJESRWUG.js → open-LHEJSQCI.js} +5 -5
  103. package/dist/bundle/{openai-WLXOXSTV.js → openai-DDXBF7KV.js} +15 -15
  104. package/dist/bundle/{process-JV3KVGJY.js → process-TEQQZ3C5.js} +1 -1
  105. package/dist/bundle/{program-HSVLSH7A.js → program-IW3E56C2.js} +4349 -4232
  106. package/dist/bundle/{prompt-EEBVB3XG.js → prompt-6OEYPNAI.js} +5 -5
  107. package/dist/bundle/{recognize-ZFITQZ4W.js → recognize-5CRXQMAQ.js} +4 -4
  108. package/dist/bundle/{remote-RZXSYHOJ.js → remote-UZUYKGYQ.js} +9 -9
  109. package/dist/bundle/{rerank-2BHYAEO3.js → rerank-IQ6GPSJ6.js} +7 -7
  110. package/dist/bundle/{schemas-6GTYA2NR.js → schemas-7JX36UC7.js} +1 -1
  111. package/dist/bundle/{serve-G3M5H5JM.js → serve-63YMTENV.js} +9 -9
  112. package/dist/bundle/server-LKXXSTXK.js +79 -0
  113. package/dist/bundle/{server-44WJ5K2W.js → server-WQUM4JX4.js} +53 -53
  114. package/dist/bundle/{sqlite-runtime-TRISCWIG.js → sqlite-runtime-UO32UZHC.js} +6 -6
  115. package/dist/bundle/{state-BF6IMDP2.js → state-XSRJFYSU.js} +6 -6
  116. package/dist/bundle/{store-VSKYLTLH.js → store-A2J7I2NU.js} +18 -18
  117. package/dist/bundle/{store-LZPZC72J.js → store-QB5FEGT4.js} +24 -20
  118. package/dist/bundle/store-maintenance-command-TOLBEUMR.js +66 -0
  119. package/dist/bundle/surface-NURI2TAG.js +65 -0
  120. package/dist/commands/crm.d.ts +3 -0
  121. package/dist/commands/crm.d.ts.map +1 -1
  122. package/dist/commands/crm.js +33 -8
  123. package/dist/commands/crm.js.map +1 -1
  124. package/dist/commands/schedule.d.ts +3 -0
  125. package/dist/commands/schedule.d.ts.map +1 -0
  126. package/dist/commands/schedule.js +9 -0
  127. package/dist/commands/schedule.js.map +1 -0
  128. package/dist/commands/session.d.ts +2 -1
  129. package/dist/commands/session.d.ts.map +1 -1
  130. package/dist/commands/session.js +5 -1
  131. package/dist/commands/session.js.map +1 -1
  132. package/dist/config.d.ts +0 -1
  133. package/dist/config.d.ts.map +1 -1
  134. package/dist/config.js +22 -5
  135. package/dist/config.js.map +1 -1
  136. package/dist/generated/wirecat-config.d.ts.map +1 -1
  137. package/dist/generated/wirecat-config.js +175 -0
  138. package/dist/generated/wirecat-config.js.map +1 -1
  139. package/dist/hooks.d.ts.map +1 -1
  140. package/dist/hooks.js +20 -2
  141. package/dist/hooks.js.map +1 -1
  142. package/dist/identity.d.ts.map +1 -1
  143. package/dist/identity.js +4 -2
  144. package/dist/identity.js.map +1 -1
  145. package/dist/program.d.ts.map +1 -1
  146. package/dist/program.js +11 -1
  147. package/dist/program.js.map +1 -1
  148. package/dist/version.d.ts +1 -1
  149. package/dist/version.js +1 -1
  150. package/package.json +5 -4
  151. package/skills/attio-cli/SKILL.md +18 -3
  152. package/dist/bundle/agent-3FYEIRN4.js +0 -37
  153. package/dist/bundle/command-contract-N5X3UOTT.js +0 -37
  154. package/dist/bundle/first-screen-I23NJLFH.js +0 -37
  155. package/dist/bundle/meeting-combined-7ZNV4MZ2.js +0 -24
  156. package/dist/bundle/server-3ZL5TECF.js +0 -79
  157. package/dist/bundle/store-maintenance-command-IDAYDJLQ.js +0 -66
  158. package/dist/bundle/surface-OHYA3YS6.js +0 -65
@@ -10,15 +10,15 @@ import {
10
10
  keyForCommand,
11
11
  levelFor,
12
12
  readKeysForCommand
13
- } from "./chunk-JWRI6ZY6.js";
13
+ } from "./chunk-A3Y5GPG3.js";
14
14
  import {
15
15
  writes
16
- } from "./chunk-3LMW7U7F.js";
16
+ } from "./chunk-DDFQEOLX.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/command-availability.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/command-availability.js
22
22
  var commandAvailability = /* @__PURE__ */ __name((info, levels, keyOf, authority, readOnly = false, mcp = true, declared, fetches) => {
23
23
  const declaredKey = declared?.keyOf(info.path);
24
24
  const key = declared ? declaredKey : keyOf?.(info.path) ?? keyForCommand(info.path);
@@ -535,7 +535,7 @@ function toError(value) {
535
535
  }
536
536
  __name(toError, "toError");
537
537
 
538
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
538
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
539
539
  import { PassThrough, Writable } from "node:stream";
540
540
  var lineReader = /* @__PURE__ */ __name((onMessage) => {
541
541
  let rest = "";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
8
8
  import { existsSync } from "node:fs";
9
9
  import { win32 } from "node:path";
10
10
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  tagOf
5
- } from "./chunk-QSUFJGTG.js";
5
+ } from "./chunk-TSL3PZAZ.js";
6
6
  import {
7
7
  QUERY_LIMITS,
8
8
  parseLucene,
@@ -10,19 +10,19 @@ import {
10
10
  queryError,
11
11
  validateQuery,
12
12
  walkQuery
13
- } from "./chunk-MI6IH5UW.js";
13
+ } from "./chunk-HTQ5HUXV.js";
14
14
  import {
15
15
  safeParse
16
16
  } from "./chunk-S4UUN6LD.js";
17
17
  import {
18
18
  CliError,
19
19
  isCliError
20
- } from "./chunk-HM6AMYHR.js";
20
+ } from "./chunk-TSHMRHL6.js";
21
21
  import {
22
22
  __name
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/search/fusion.js
25
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/search/fusion.js
26
26
  var RRF_K = 60;
27
27
  var fuseRanked = /* @__PURE__ */ __name((lists, facts) => {
28
28
  const rows = lists.flatMap((list) => list.map((item, rank) => ({ item, vote: 1 / (RRF_K + rank + 1), ...facts(item) })));
@@ -30,7 +30,7 @@ var fuseRanked = /* @__PURE__ */ __name((lists, facts) => {
30
30
  return rows.sort((a, b) => Number(b.exact === true) - Number(a.exact === true) || (ranking ? Number(b.ranked) - Number(a.ranked) || b.vote - a.vote : 0) || b.at - a.at).map(({ item }) => item);
31
31
  }, "fuseRanked");
32
32
 
33
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
33
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
34
34
  var QUERY_VERSION = 1;
35
35
  var QUERY_LIMITS2 = {
36
36
  ...QUERY_LIMITS,
@@ -59,6 +59,12 @@ function outOfTime(limitMs = QUERY_LIMITS2.milliseconds) {
59
59
  }
60
60
  __name(outOfTime, "outOfTime");
61
61
  var isQueryLimit = /* @__PURE__ */ __name((error) => isCliError(error) && (error.details.reason === "query.too-large" || error.details.reason === "query.time-limit"), "isQueryLimit");
62
+ var SQLITE_TOO_LARGE = /nested too deep|too many terms in compound SELECT|Expression tree is too large|parser stack overflow/;
63
+ var sqliteLimit = /* @__PURE__ */ __name((error) => {
64
+ if (error instanceof Error && SQLITE_TOO_LARGE.test(error.message))
65
+ exhausted("nodes");
66
+ return error;
67
+ }, "sqliteLimit");
62
68
  function exhausted(budget) {
63
69
  throw new CliError("validation_error", `search exceeded its ${budget} budget \u2014 narrow the chat or date range`, {
64
70
  reason: "query.too-large",
@@ -75,7 +81,7 @@ function tooWideTerm([term], budget) {
75
81
  }
76
82
  __name(tooWideTerm, "tooWideTerm");
77
83
 
78
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
84
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
79
85
  var FIELD_VERSION = 2;
80
86
  var UNITS = {
81
87
  "": 1,
@@ -604,7 +610,7 @@ var validateAst = /* @__PURE__ */ __name((input, options = {}) => {
604
610
  return validateFields(parsed.output, options);
605
611
  }, "validateAst");
606
612
 
607
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/search/lucene/plain.js
613
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/search/lucene/plain.js
608
614
  var REPAIRED = /* @__PURE__ */ new Set([
609
615
  "query.invalid-syntax",
610
616
  "query.unclosed-literal",
@@ -756,6 +762,7 @@ export {
756
762
  searchTimeLimit,
757
763
  outOfTime,
758
764
  isQueryLimit,
765
+ sqliteLimit,
759
766
  exhausted,
760
767
  tooWideTerm,
761
768
  FIELD_VERSION,
@@ -6,16 +6,16 @@ import {
6
6
  agentArguments,
7
7
  agentJson,
8
8
  failureContext
9
- } from "./chunk-DKSO7UTS.js";
9
+ } from "./chunk-WHA23FJC.js";
10
10
  import {
11
11
  onlineDeps,
12
12
  refuseLacking,
13
13
  servicesFor,
14
14
  storeModeDeps
15
- } from "./chunk-HMYJLOXE.js";
15
+ } from "./chunk-NIV4S25C.js";
16
16
  import {
17
17
  callerOf
18
- } from "./chunk-AMRELFBT.js";
18
+ } from "./chunk-PO6DVZUY.js";
19
19
  import {
20
20
  DEFAULT_OUTPUT_BYTES,
21
21
  ENTITIES,
@@ -32,26 +32,26 @@ import {
32
32
  refuseStoreChange,
33
33
  sealed,
34
34
  startRecording
35
- } from "./chunk-JWRI6ZY6.js";
35
+ } from "./chunk-A3Y5GPG3.js";
36
36
  import {
37
37
  currentCaller,
38
38
  keepsSuccess,
39
39
  runContextOf,
40
40
  withCaller
41
- } from "./chunk-2JB5XD5R.js";
41
+ } from "./chunk-5WZBGDPL.js";
42
42
  import {
43
43
  MAX_BUFFERED_INPUT
44
- } from "./chunk-LG6Y4NAT.js";
44
+ } from "./chunk-JAUTKJYJ.js";
45
45
  import {
46
46
  inRun,
47
47
  newRunId
48
- } from "./chunk-WHDVRMB7.js";
48
+ } from "./chunk-UZW73WTM.js";
49
49
  import {
50
50
  storeDamaged
51
- } from "./chunk-LIIOT3AN.js";
51
+ } from "./chunk-EO3X3QWY.js";
52
52
  import {
53
53
  traceIdOf
54
- } from "./chunk-3BM6KBWP.js";
54
+ } from "./chunk-SCBLAAZU.js";
55
55
  import {
56
56
  errorObjectOf,
57
57
  itemEnvelopeSchema,
@@ -59,7 +59,7 @@ import {
59
59
  mcpErrorResult,
60
60
  toJsonSchema,
61
61
  toStandardJsonSchema
62
- } from "./chunk-3LMW7U7F.js";
62
+ } from "./chunk-DDFQEOLX.js";
63
63
  import {
64
64
  array,
65
65
  boolean,
@@ -84,15 +84,15 @@ import {
84
84
  import {
85
85
  CliError,
86
86
  errorCodes
87
- } from "./chunk-HM6AMYHR.js";
87
+ } from "./chunk-TSHMRHL6.js";
88
88
  import {
89
89
  __name
90
90
  } from "./chunk-ZVVMGPBJ.js";
91
91
 
92
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/surface.js
92
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/mcp/surface.js
93
93
  import { randomUUID } from "node:crypto";
94
94
 
95
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/tool.js
95
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/mcp/tool.js
96
96
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
97
97
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
98
98
  var message = pipe(
@@ -351,7 +351,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
351
351
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
352
352
  }, "failed");
353
353
 
354
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/surface.js
354
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/mcp/surface.js
355
355
  var MATCHES = 8;
356
356
  var ANSWER = answerSchema();
357
357
  var agentAnswer = /* @__PURE__ */ __name((prefix, writes) => {
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-XSUU7PB7.js";
8
+ } from "./chunk-23POG3B3.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
@@ -29,12 +29,12 @@ import {
29
29
  errorCodes,
30
30
  isCliError,
31
31
  visibleControls
32
- } from "./chunk-HM6AMYHR.js";
32
+ } from "./chunk-TSHMRHL6.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
36
36
 
37
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
37
+ // node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
38
38
  var EXIT_CODES = {
39
39
  validation_error: 2,
40
40
  configuration_error: 3,
@@ -55,7 +55,7 @@ var EXIT_CODES = {
55
55
  var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
56
56
  var GENERIC_FAILURE = 1;
57
57
 
58
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
58
+ // node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
59
59
  var EFFECT_LEVELS = ["none", "read", "write"];
60
60
  var effectsSchema = strictObject({
61
61
  remote: picklist(EFFECT_LEVELS),
@@ -692,7 +692,7 @@ function toStandardJsonSchema(schema) {
692
692
  }
693
693
  __name(toStandardJsonSchema, "toStandardJsonSchema");
694
694
 
695
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
695
+ // node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
696
696
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
697
697
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
698
698
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -734,7 +734,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
734
734
  return String(value);
735
735
  }), "fill");
736
736
 
737
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
737
+ // node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
738
738
  var MAX_NEXT_STEPS = 2;
739
739
  var COMPACT_FLAG = "--compact";
740
740
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
@@ -811,6 +811,18 @@ var rankingSchema = strictObject({
811
811
  })),
812
812
  ms: pipe(number(), integer(), minValue(0))
813
813
  });
814
+ var count = pipe(number(), integer(), minValue(0));
815
+ var modelRunSchema = strictObject({
816
+ provider: text,
817
+ model: text,
818
+ endpoint: text,
819
+ sent: count,
820
+ done: count,
821
+ left: count,
822
+ usage: optional(strictObject({ input: count, output: count })),
823
+ cost_usd: nullable(pipe(number(), minValue(0))),
824
+ ms: count
825
+ });
814
826
  var querySchema = strictObject({
815
827
  chat: optional(strictObject({ word: text, chat_id: text, title: nullable(text) })),
816
828
  respelled: optional(array(strictObject({ word: text, tried: pipe(array(text), minLength(1)) })))
@@ -828,6 +840,7 @@ var metaSchema = strictObject({
828
840
  now_local: optional(localTime),
829
841
  window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) })),
830
842
  ranking: optional(rankingSchema),
843
+ model_run: optional(modelRunSchema),
831
844
  query: optional(querySchema)
832
845
  });
833
846
  var offsetOf = /* @__PURE__ */ __name((at, zone) => {
@@ -866,7 +879,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
866
879
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
867
880
  ].join("\n"), "jsonlOf");
868
881
 
869
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
882
+ // node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
870
883
  var CRASH_CODE = "internal_error";
871
884
  var CRASH_REASON = "command.crashed";
872
885
  var errorObjectSchema = strictObject({
@@ -965,7 +978,7 @@ var BASE_REASONS = defineReasons([
965
978
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
966
979
  ]);
967
980
 
968
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
981
+ // node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
969
982
  var SAME_COMMAND = "*";
970
983
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
971
984
  var stepSchema = union([
@@ -1044,7 +1057,7 @@ var STEPS = defineSteps([
1044
1057
  }
1045
1058
  ]);
1046
1059
 
1047
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
1060
+ // node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
1048
1061
  var recognise = /* @__PURE__ */ __name((failure) => {
1049
1062
  if (isCliError(failure))
1050
1063
  return failure;