@wirecat/hubspot-cli 0.2.0 → 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 (174) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +2 -2
  3. package/contracts/wirecat.json +40 -2
  4. package/dist/bin/hubspot.js +2 -2
  5. package/dist/bundle/agent-A7ARC3QB.js +40 -0
  6. package/dist/bundle/{all-profiles-64JAUYW4.js → all-profiles-6452VSJB.js} +64 -22
  7. package/dist/bundle/{anthropic-VJOS4OUM.js → anthropic-VQUOVYOW.js} +6 -6
  8. package/dist/bundle/{app-server-GXV2OFML.js → app-server-EQZUP4H4.js} +79 -68
  9. package/dist/bundle/{bun-M3J2QTR3.js → bun-AJPJ4ZUN.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-IX3XYA5F.js → bun-sqlite-AGXGSF6D.js} +7 -7
  11. package/dist/bundle/{chunk-N2XADGL4.js → chunk-2A64XS22.js} +4 -4
  12. package/dist/bundle/{chunk-Q2OLOMHL.js → chunk-2HYGCLKN.js} +93 -565
  13. package/dist/bundle/{chunk-FOZYMDRL.js → chunk-2NCO4E4T.js} +6 -6
  14. package/dist/bundle/{chunk-FBCCBCFH.js → chunk-2PRVWEJC.js} +3 -3
  15. package/dist/bundle/{chunk-LOBVOGOE.js → chunk-3DIXAEGH.js} +4 -4
  16. package/dist/bundle/{chunk-O3DYRCIT.js → chunk-3I2FGNWO.js} +1 -1
  17. package/dist/bundle/{chunk-65TWQ7BV.js → chunk-3PEKYGZ3.js} +2 -2
  18. package/dist/bundle/{chunk-DRWWJLI6.js → chunk-3R4KRNUZ.js} +8 -8
  19. package/dist/bundle/{chunk-2VGD63G6.js → chunk-3TEFE6YU.js} +7 -7
  20. package/dist/bundle/{chunk-TI46WQXQ.js → chunk-4DNHXRCJ.js} +7 -7
  21. package/dist/bundle/{chunk-QU25DA5N.js → chunk-5AYKCKSE.js} +11 -11
  22. package/dist/bundle/{chunk-CWXOXIWS.js → chunk-5K3FGXZH.js} +1 -1
  23. package/dist/bundle/{chunk-24ERVFJP.js → chunk-5YNAVVCW.js} +3 -3
  24. package/dist/bundle/{chunk-URX6YDUL.js → chunk-5ZV7REBE.js} +75 -66
  25. package/dist/bundle/{chunk-TLKEPUAV.js → chunk-6MFP47XC.js} +60 -50
  26. package/dist/bundle/{chunk-36ITRDYY.js → chunk-7LQRXVQ3.js} +783 -482
  27. package/dist/bundle/{chunk-E5WLE7BM.js → chunk-7NZT7Y55.js} +1 -1
  28. package/dist/bundle/{chunk-C32AKHTY.js → chunk-7UEL65GQ.js} +35 -12
  29. package/dist/bundle/chunk-7VHBS5BJ.js +108 -0
  30. package/dist/bundle/{chunk-O55RWNSH.js → chunk-A6UFH3QU.js} +4 -4
  31. package/dist/bundle/{chunk-WE4UFASG.js → chunk-ABXVU5O4.js} +8 -1
  32. package/dist/bundle/{chunk-4W6BMH45.js → chunk-AF7DANIR.js} +2 -100
  33. package/dist/bundle/{chunk-2VGZRYEH.js → chunk-ARTJLL7W.js} +6 -6
  34. package/dist/bundle/chunk-AVUMH42T.js +194 -0
  35. package/dist/bundle/{chunk-MFNMKHML.js → chunk-AWOJYRQW.js} +1024 -1639
  36. package/dist/bundle/chunk-B2W3C4N6.js +338 -0
  37. package/dist/bundle/{chunk-FKA7DOCK.js → chunk-B3EH22CO.js} +1 -1
  38. package/dist/bundle/{chunk-E52JAS35.js → chunk-BAUK2MD5.js} +6 -6
  39. package/dist/bundle/{chunk-LXZ66MCH.js → chunk-BHZUPOQY.js} +35 -29
  40. package/dist/bundle/{chunk-JLDBMEKZ.js → chunk-BN22EKQQ.js} +2 -2
  41. package/dist/bundle/{chunk-DB2XKHI4.js → chunk-BUGROVF3.js} +2 -2
  42. package/dist/bundle/{chunk-DSP36YHQ.js → chunk-CBCEMFCF.js} +2 -2
  43. package/dist/bundle/{chunk-HZRQLAHO.js → chunk-DQB5JMTY.js} +1 -1
  44. package/dist/bundle/{chunk-FPUGMDJV.js → chunk-DSRXCLPO.js} +1 -1
  45. package/dist/bundle/{chunk-UUMUL4L3.js → chunk-DW23LM47.js} +2 -2
  46. package/dist/bundle/{chunk-VOH7S5M4.js → chunk-E4FAMU2S.js} +3230 -3116
  47. package/dist/bundle/{chunk-TKVL2C3B.js → chunk-E4X7JAFC.js} +3 -3
  48. package/dist/bundle/{chunk-NUU4WZVL.js → chunk-EE4JSYGZ.js} +3 -3
  49. package/dist/bundle/{chunk-NWHEHV3K.js → chunk-EMOVVERN.js} +5 -5
  50. package/dist/bundle/{chunk-PVKF24ZW.js → chunk-FIVD4HM4.js} +8 -8
  51. package/dist/bundle/{chunk-QJW35N5V.js → chunk-GC6FLHZF.js} +12 -12
  52. package/dist/bundle/{chunk-TP7GDWVF.js → chunk-GRFICQTZ.js} +1 -1
  53. package/dist/bundle/{chunk-GPYCBYX5.js → chunk-GZZR5U3K.js} +12 -12
  54. package/dist/bundle/{chunk-X2M6NIQG.js → chunk-HPZRUY6S.js} +1 -1
  55. package/dist/bundle/{chunk-CLAN3FES.js → chunk-IBTMK5KD.js} +54 -34
  56. package/dist/bundle/{chunk-5A6ZYNAQ.js → chunk-IQ2XZ62J.js} +18 -18
  57. package/dist/bundle/{chunk-DBEQI5YM.js → chunk-ITGNDZRR.js} +3 -3
  58. package/dist/bundle/{chunk-W53EJOFQ.js → chunk-IXZLMFPO.js} +1 -1
  59. package/dist/bundle/{chunk-TOSCB4SO.js → chunk-J5P5VSRG.js} +16 -10
  60. package/dist/bundle/{chunk-RMIYKDUL.js → chunk-JK2SNLU5.js} +17 -17
  61. package/dist/bundle/{chunk-43EKCUBJ.js → chunk-JP2HJXFO.js} +3 -3
  62. package/dist/bundle/{chunk-DFCHHR5M.js → chunk-JUKAIXKY.js} +1 -1
  63. package/dist/bundle/{chunk-3WLYWRGG.js → chunk-K4X5ZHI2.js} +19 -17
  64. package/dist/bundle/{chunk-5GBUCHRU.js → chunk-KO4VR5NK.js} +4 -4
  65. package/dist/bundle/{chunk-PPHBRESD.js → chunk-KVXEEKBB.js} +2 -2
  66. package/dist/bundle/{chunk-SDQGB4KB.js → chunk-L433IDOX.js} +9 -9
  67. package/dist/bundle/chunk-LA3YU4K7.js +40 -0
  68. package/dist/bundle/{chunk-ECEZOLOD.js → chunk-LKSNISYV.js} +4 -4
  69. package/dist/bundle/{chunk-5K7QLJMM.js → chunk-LT5KE44Q.js} +226 -226
  70. package/dist/bundle/{chunk-YMCY7VRE.js → chunk-LTVYGXWT.js} +7 -7
  71. package/dist/bundle/chunk-M763RNWP.js +733 -0
  72. package/dist/bundle/{chunk-IMJQRPLN.js → chunk-NNMU2TDU.js} +1 -1
  73. package/dist/bundle/chunk-NTQBS2JL.js +52 -0
  74. package/dist/bundle/{chunk-HCAZV5NP.js → chunk-NZGI74GS.js} +6 -6
  75. package/dist/bundle/{chunk-W7HM2VGO.js → chunk-O3VM5PTJ.js} +1 -1
  76. package/dist/bundle/chunk-ODPU3II6.js +353 -0
  77. package/dist/bundle/chunk-OJIJVOOA.js +561 -0
  78. package/dist/bundle/{chunk-7ELMWE3P.js → chunk-PHXOL5HZ.js} +176 -160
  79. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  80. package/dist/bundle/{chunk-B3MANLNK.js → chunk-PLRUUXK7.js} +19 -233
  81. package/dist/bundle/{chunk-RR5MX5TM.js → chunk-PMP37KLR.js} +4 -4
  82. package/dist/bundle/{chunk-FTFV3HFW.js → chunk-Q27QAB4X.js} +9 -9
  83. package/dist/bundle/{chunk-2QZK5BEP.js → chunk-RVWGFD32.js} +30 -15
  84. package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
  85. package/dist/bundle/{chunk-QGFX5MXL.js → chunk-SEELWPRD.js} +9 -9
  86. package/dist/bundle/{chunk-HC5ZWE5X.js → chunk-TIHDBKA7.js} +2 -2
  87. package/dist/bundle/{chunk-NHHJHXMQ.js → chunk-U6XA3OOM.js} +2 -2
  88. package/dist/bundle/{chunk-IJADZW42.js → chunk-VNPC274V.js} +3 -3
  89. package/dist/bundle/{chunk-NXERIDPJ.js → chunk-VQEAZXTV.js} +7 -7
  90. package/dist/bundle/{chunk-P5BHKKBI.js → chunk-VW5F6FK3.js} +4 -4
  91. package/dist/bundle/{chunk-XRREFEIW.js → chunk-WCQW4GYO.js} +7 -7
  92. package/dist/bundle/{chunk-H3TNVEQX.js → chunk-WGBVRDY3.js} +29 -4
  93. package/dist/bundle/chunk-WRCKE5ND.js +80 -0
  94. package/dist/bundle/{chunk-TBJYLC5K.js → chunk-X5S5KUSU.js} +75 -75
  95. package/dist/bundle/{chunk-2UOJ7DLZ.js → chunk-XLDQTDF6.js} +3 -3
  96. package/dist/bundle/{chunk-Z73OL5HV.js → chunk-Z6ZQVYIE.js} +3 -3
  97. package/dist/bundle/command-contract-R2FGN7CQ.js +40 -0
  98. package/dist/bundle/{command-server-entry-DJKVVZCQ.js → command-server-entry-GJSMDSNE.js} +29 -29
  99. package/dist/bundle/{decode-FC65Y4IV.js → decode-6PLXHVHW.js} +6 -6
  100. package/dist/bundle/{dispatch-KOISQ5QJ.js → dispatch-TAQ7635E.js} +8 -8
  101. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  102. package/dist/bundle/{echarts-FVTUDXDU.js → echarts-UZ7QLRE2.js} +2 -2
  103. package/dist/bundle/{embed-VNBZFPYH.js → embed-AWLL4EBF.js} +7 -7
  104. package/dist/bundle/{embedder-6U4NOFRO.js → embedder-MM225YJ6.js} +10 -10
  105. package/dist/bundle/{failure-FZ6VYKEQ.js → failure-MR2XVHFP.js} +3 -3
  106. package/dist/bundle/first-run-KCZVNFJ7.js +29 -0
  107. package/dist/bundle/first-screen-SCDV7TXT.js +40 -0
  108. package/dist/bundle/hubspot.js +26 -26
  109. package/dist/bundle/{instructions-HET7BCYK.js → instructions-ZJ7U3QUE.js} +1 -1
  110. package/dist/bundle/{mcp-RGNRW77S.js → mcp-CNV7F2XZ.js} +2 -2
  111. package/dist/bundle/meeting-combined-EL5XZIJ5.js +25 -0
  112. package/dist/bundle/meeting-model-OYXB2NOE.js +25 -0
  113. package/dist/bundle/{meeting-semantic-JY3OGCBS.js → meeting-semantic-S3DBB7XD.js} +7 -7
  114. package/dist/bundle/{node-CXZIFHZC.js → node-HGCZGZ4R.js} +2 -2
  115. package/dist/bundle/{node-sqlite-P3O7XN7Q.js → node-sqlite-RKYSRKEB.js} +8 -8
  116. package/dist/bundle/oauth-PYDCAQ7Y.js +20 -0
  117. package/dist/bundle/{open-F4P6YV54.js → open-UCDSQUN2.js} +6 -6
  118. package/dist/bundle/{openai-4AICLIK3.js → openai-Y4F5ZC7O.js} +16 -16
  119. package/dist/bundle/{process-5RUXWGYS.js → process-P7FB7YO7.js} +1 -1
  120. package/dist/bundle/{program-XA4C44Z4.js → program-O2A5L4S4.js} +683 -242
  121. package/dist/bundle/{prompt-NFMDVBZ4.js → prompt-E5TKZ37Q.js} +6 -6
  122. package/dist/bundle/{recognize-DKN3RY4V.js → recognize-5NYPTSLT.js} +5 -5
  123. package/dist/bundle/{remote-6QHAGQWY.js → remote-U4LUAHF2.js} +10 -10
  124. package/dist/bundle/{rerank-M4KHEHUZ.js → rerank-AJAVKK5L.js} +8 -8
  125. package/dist/bundle/{schemas-JRL3DLMP.js → schemas-QLQ2K6DL.js} +7 -33
  126. package/dist/bundle/{serve-DNU43ND6.js → serve-4UJ3R5IP.js} +11 -11
  127. package/dist/bundle/{server-ATG5KY7K.js → server-DUKWJUKD.js} +73 -61
  128. package/dist/bundle/server-UQVV2PPX.js +86 -0
  129. package/dist/bundle/{source-54HR4IWG.js → source-FCQDXCAD.js} +334 -78
  130. package/dist/bundle/{sqlite-runtime-EMQAC63N.js → sqlite-runtime-KLEA4XAU.js} +7 -7
  131. package/dist/bundle/{state-T45CX7VY.js → state-COGSYMVH.js} +7 -7
  132. package/dist/bundle/{store-6TZ2FCVA.js → store-BJXCSP26.js} +25 -24
  133. package/dist/bundle/store-CHH3G3SL.js +32 -0
  134. package/dist/bundle/{store-6LCEVBAZ.js → store-V5UMSWK4.js} +27 -22
  135. package/dist/bundle/store-maintenance-command-DQUBBWMD.js +73 -0
  136. package/dist/bundle/surface-IGBQUYE5.js +72 -0
  137. package/dist/bundle/writer-AQSEPEEN.js +86 -0
  138. package/dist/commands/session.js +2 -2
  139. package/dist/commands/session.js.map +1 -1
  140. package/dist/config.d.ts +1 -1
  141. package/dist/config.d.ts.map +1 -1
  142. package/dist/config.js +1 -5
  143. package/dist/config.js.map +1 -1
  144. package/dist/crm/activities.d.ts.map +1 -1
  145. package/dist/crm/activities.js +3 -13
  146. package/dist/crm/activities.js.map +1 -1
  147. package/dist/crm/records.d.ts +6 -0
  148. package/dist/crm/records.d.ts.map +1 -1
  149. package/dist/crm/records.js +6 -0
  150. package/dist/crm/records.js.map +1 -1
  151. package/dist/crm/source.d.ts +0 -6
  152. package/dist/crm/source.d.ts.map +1 -1
  153. package/dist/crm/source.js +1 -7
  154. package/dist/crm/source.js.map +1 -1
  155. package/dist/generated/manifest.d.ts.map +1 -1
  156. package/dist/generated/manifest.js +0 -115
  157. package/dist/generated/manifest.js.map +1 -1
  158. package/dist/generated/types.d.ts +160 -0
  159. package/dist/generated/types.d.ts.map +1 -1
  160. package/dist/hubspot/transport.js +1 -1
  161. package/dist/hubspot/transport.js.map +1 -1
  162. package/dist/version.d.ts +1 -1
  163. package/dist/version.js +1 -1
  164. package/package.json +3 -3
  165. package/dist/bundle/command-contract-C6CBFXZF.js +0 -40
  166. package/dist/bundle/first-run-UWAFSINQ.js +0 -29
  167. package/dist/bundle/first-screen-RTVMGHAE.js +0 -40
  168. package/dist/bundle/meeting-combined-L5AGBPYX.js +0 -25
  169. package/dist/bundle/meeting-model-NTB4RK3F.js +0 -25
  170. package/dist/bundle/oauth-HNCY4B2S.js +0 -20
  171. package/dist/bundle/server-VNWVVH7A.js +0 -77
  172. package/dist/bundle/store-DXWYNVVB.js +0 -32
  173. package/dist/bundle/store-maintenance-command-J57HCJYY.js +0 -68
  174. package/dist/bundle/writer-NLLI5YRM.js +0 -79
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  formatMeetingReference
5
- } from "./chunk-5K7QLJMM.js";
5
+ } from "./chunk-LT5KE44Q.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-DB2XKHI4.js";
8
+ } from "./chunk-BUGROVF3.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
14
14
  var positive = /* @__PURE__ */ __name((value, name, max) => {
15
15
  if (!Number.isSafeInteger(value) || value < 1 || value > max)
16
16
  throw new CliError("validation_error", `Invalid ${name}`);
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSharedSection,
5
5
  writeSharedSection
6
- } from "./chunk-TI46WQXQ.js";
6
+ } from "./chunk-4DNHXRCJ.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-DB2XKHI4.js";
9
+ } from "./chunk-BUGROVF3.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
15
15
  var PERMISSION_ANSWERS = ["readonly", "allow"];
16
16
  var QUESTIONS = ["languages", "tools", "permissions"];
17
17
  var SECTION = "setup";
@@ -6,21 +6,21 @@ import {
6
6
  answerSchema,
7
7
  describeOptions,
8
8
  metaOf
9
- } from "./chunk-7ELMWE3P.js";
9
+ } from "./chunk-PHXOL5HZ.js";
10
10
  import {
11
11
  keyForCommand
12
- } from "./chunk-2VGD63G6.js";
12
+ } from "./chunk-3TEFE6YU.js";
13
13
  import {
14
14
  jsonSchemaOf
15
- } from "./chunk-TOSCB4SO.js";
15
+ } from "./chunk-J5P5VSRG.js";
16
16
  import {
17
17
  CliError
18
- } from "./chunk-DB2XKHI4.js";
18
+ } from "./chunk-BUGROVF3.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
24
24
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
25
25
  var outputOf = /* @__PURE__ */ __name((command) => {
26
26
  const entity = answerEntitySchema(command);
@@ -2,26 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure
5
- } from "./chunk-UUMUL4L3.js";
5
+ } from "./chunk-DW23LM47.js";
6
6
  import {
7
7
  secretNamed,
8
8
  withoutSecrets
9
- } from "./chunk-IMJQRPLN.js";
9
+ } from "./chunk-NNMU2TDU.js";
10
10
  import {
11
11
  isContentKey
12
- } from "./chunk-TBJYLC5K.js";
12
+ } from "./chunk-X5S5KUSU.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/run-context.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/runs/run-context.js
18
18
  import { AsyncLocalStorage } from "node:async_hooks";
19
19
  import { createHash } from "node:crypto";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
22
22
  import { homedir } from "node:os";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/events.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/runs/events.js
25
25
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
26
26
  var renderEvent = /* @__PURE__ */ __name((event) => {
27
27
  if (event.event === "store")
@@ -73,7 +73,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
73
73
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
74
74
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
77
77
  var MESSAGE_AT_MOST = 500;
78
78
  var CAUSES_AT_MOST = 5;
79
79
  var FRAMES_AT_MOST = 15;
@@ -185,7 +185,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
185
185
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
186
186
  }, "redactText");
187
187
 
188
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/run-context.js
188
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/runs/run-context.js
189
189
  var REDACTED = "[redacted]";
190
190
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
191
191
  if (!record)
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  formatMeetingReference,
5
5
  parseMeetingReference
6
- } from "./chunk-5K7QLJMM.js";
6
+ } from "./chunk-LT5KE44Q.js";
7
7
  import {
8
8
  CliError,
9
9
  singleLine
10
- } from "./chunk-DB2XKHI4.js";
10
+ } from "./chunk-BUGROVF3.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/money.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/money.js
16
16
  var CURRENCY_SCALES = {
17
17
  AED: 2,
18
18
  AMD: 2,
@@ -106,7 +106,7 @@ var quantityOf = /* @__PURE__ */ __name((text) => {
106
106
  }, "quantityOf");
107
107
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
108
108
 
109
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/finance.js
109
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/finance.js
110
110
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
111
111
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
112
112
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -135,7 +135,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
135
135
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
136
136
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
137
137
 
138
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/business.js
138
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/business.js
139
139
  var CATALOG_KINDS = ["product", "service"];
140
140
  var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
141
141
  var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
@@ -163,7 +163,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
163
163
  var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
164
164
  var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
165
165
 
166
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/crm.js
166
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/crm.js
167
167
  var CRM_KINDS = ["organization", "person", "deal", "lead"];
168
168
  var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
169
169
  var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
@@ -173,7 +173,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id) => {
173
173
  }, "normalCrmUserId");
174
174
  var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
175
175
 
176
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/deals.js
176
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/deals.js
177
177
  var DEAL_KINDS = ["deal", "lead"];
178
178
  var DEAL_STATUSES = ["open", "won", "lost"];
179
179
  var STAGE_OUTCOMES = DEAL_STATUSES;
@@ -183,7 +183,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
183
183
  return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
184
184
  }, "dealLine");
185
185
 
186
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/locator.js
186
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/locator.js
187
187
  var SCHEME = "msg:";
188
188
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
189
189
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
@@ -204,7 +204,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
204
204
  return { provider, account, chat, message };
205
205
  }, "parseLocator");
206
206
 
207
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/references.js
207
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/references.js
208
208
  var SIMPLE_REFERENCES = [
209
209
  "note",
210
210
  "document",
@@ -367,7 +367,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
367
367
  return match !== null && byPrefix.has(match[1]);
368
368
  }, "looksLikeReference");
369
369
 
370
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/providers.js
370
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/providers.js
371
371
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
372
372
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
373
373
  var PROVIDERS = [
@@ -542,7 +542,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
542
542
  var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
543
543
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
544
544
 
545
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/orders.js
545
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/orders.js
546
546
  var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
547
547
  var ORDER_PURPOSES = ["personal", "business", "client", "other"];
548
548
  var orderLine = /* @__PURE__ */ __name((order) => {
@@ -553,7 +553,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
553
553
  }, "orderLine");
554
554
  var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
555
555
 
556
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/relations.js
556
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/relations.js
557
557
  var ORGANIZATION_ROLES = [
558
558
  "employee",
559
559
  "contractor",
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-5XR7K42U.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-5XR7K42U.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  updateCommand
5
- } from "./chunk-RR5MX5TM.js";
5
+ } from "./chunk-PMP37KLR.js";
6
6
  import {
7
7
  QUESTIONS,
8
8
  readSetupAnswers,
9
9
  unanswered,
10
10
  writeSetupAnswers
11
- } from "./chunk-NUU4WZVL.js";
11
+ } from "./chunk-EE4JSYGZ.js";
12
12
  import {
13
13
  DEFAULT_STEMMERS,
14
14
  LANGUAGES
15
- } from "./chunk-C32AKHTY.js";
15
+ } from "./chunk-7UEL65GQ.js";
16
16
  import {
17
17
  sharedConfigPath
18
- } from "./chunk-TI46WQXQ.js";
18
+ } from "./chunk-4DNHXRCJ.js";
19
19
  import {
20
20
  installerOf
21
- } from "./chunk-O3DYRCIT.js";
21
+ } from "./chunk-3I2FGNWO.js";
22
22
  import {
23
23
  storePath
24
- } from "./chunk-65TWQ7BV.js";
24
+ } from "./chunk-3PEKYGZ3.js";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/cli/first-run.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/first-run.js
30
30
  import { spawnSync } from "node:child_process";
31
31
  import { accessSync, constants, realpathSync } from "node:fs";
32
32
  import { delimiter, join } from "node:path";
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
84
84
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
85
85
  }, "suggested");
86
86
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
87
- const { openStore } = await import("./store-6LCEVBAZ.js");
87
+ const { openStore } = await import("./store-V5UMSWK4.js");
88
88
  const store = await openStore({ env });
89
89
  let rebuild = false;
90
90
  try {
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
113
113
  if (!rebuild)
114
114
  return;
115
115
  const [{ openCache }, { buildStems }] = await Promise.all([
116
- import("./open-F4P6YV54.js"),
117
- import("./store-maintenance-command-J57HCJYY.js")
116
+ import("./open-UCDSQUN2.js"),
117
+ import("./store-maintenance-command-DQUBBWMD.js")
118
118
  ]);
119
119
  const database = await openCache(storePath(env));
120
120
  try {
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
126
126
  var askTools = /* @__PURE__ */ __name(async (run) => {
127
127
  const { command, env, io } = run;
128
128
  const installed = run.installed ?? ((name) => onPath(name, env));
129
- const { WIRECAT_TOOLS } = await import("./first-screen-RTVMGHAE.js");
129
+ const { WIRECAT_TOOLS } = await import("./first-screen-SCDV7TXT.js");
130
130
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
131
131
  const missing = others.filter((tool) => !installed(tool.command));
132
132
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -200,7 +200,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
200
200
  // `setup describe` and `setup apply` are a program's; only the bare walk-through asks everything again.
201
201
  all: start.path.length === 1 && start.path[0] === "setup",
202
202
  io: {
203
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-NFMDVBZ4.js")).readSecret(prompt, { input, echo: true }), "ask"),
203
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-E5TKZ37Q.js")).readSecret(prompt, { input, echo: true }), "ask"),
204
204
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
205
205
  `), "say")
206
206
  }
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
8
8
  var fields = /* @__PURE__ */ new WeakMap();
9
9
  var readsStdin = /* @__PURE__ */ __name((command, field) => {
10
10
  fields.set(command, field);
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure,
5
5
  isStoreDamage
6
- } from "./chunk-UUMUL4L3.js";
6
+ } from "./chunk-DW23LM47.js";
7
7
  import {
8
8
  ADDED_PROVIDER,
9
9
  INTERNAL_NOTES,
@@ -17,20 +17,20 @@ import {
17
17
  kindsIn,
18
18
  providerNamed,
19
19
  providers
20
- } from "./chunk-QJW35N5V.js";
20
+ } from "./chunk-GC6FLHZF.js";
21
21
  import {
22
22
  refuseOwnerStoreInTests
23
- } from "./chunk-65TWQ7BV.js";
23
+ } from "./chunk-3PEKYGZ3.js";
24
24
  import {
25
25
  createRecordLog,
26
26
  resolvePaths,
27
27
  traceIdOf,
28
28
  writeSecurely
29
- } from "./chunk-TBJYLC5K.js";
29
+ } from "./chunk-X5S5KUSU.js";
30
30
  import {
31
31
  isoTime,
32
32
  reference
33
- } from "./chunk-TOSCB4SO.js";
33
+ } from "./chunk-J5P5VSRG.js";
34
34
  import {
35
35
  array,
36
36
  boolean,
@@ -48,25 +48,21 @@ import {
48
48
  strictObject,
49
49
  string,
50
50
  unknown
51
- } from "./chunk-MVA5HVKL.js";
51
+ } from "./chunk-S4UUN6LD.js";
52
52
  import {
53
53
  CliError
54
- } from "./chunk-DB2XKHI4.js";
54
+ } from "./chunk-BUGROVF3.js";
55
55
  import {
56
56
  __name
57
57
  } from "./chunk-ZVVMGPBJ.js";
58
58
 
59
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/scope.js
60
- import { AsyncLocalStorage } from "node:async_hooks";
61
- import { randomBytes } from "node:crypto";
62
-
63
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/run.js
59
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/runs/run.js
64
60
  import { randomUUID } from "node:crypto";
65
61
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
66
62
  import { userInfo } from "node:os";
67
63
  import { join, sep } from "node:path";
68
64
 
69
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
70
66
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
71
67
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
72
68
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -79,7 +75,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
79
75
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
80
76
  }), "snakeLogger");
81
77
 
82
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
78
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
83
79
  var diagnostic = {
84
80
  event: true,
85
81
  operation: true,
@@ -153,7 +149,7 @@ var LOG_ATTRIBUTES = [
153
149
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
154
150
  ].sort();
155
151
 
156
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/run.js
152
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/runs/run.js
157
153
  var KEEP_RUNS_FOR_DAYS = 30;
158
154
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
159
155
  var KEEP_STORE_RUNS_FOR_DAYS = 3;
@@ -520,7 +516,9 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
520
516
  };
521
517
  }, "metadataOf");
522
518
 
523
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/runs/scope.js
519
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/runs/scope.js
520
+ import { AsyncLocalStorage } from "node:async_hooks";
521
+ import { randomBytes } from "node:crypto";
524
522
  var scopes = new AsyncLocalStorage();
525
523
  var processScope;
526
524
  var ownProcesses = new AsyncLocalStorage();
@@ -571,7 +569,7 @@ var attempts = new AsyncLocalStorage();
571
569
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
572
570
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
573
571
 
574
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/tasks/model.js
572
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/tasks/model.js
575
573
  var TASK_KINDS = ["question", "request", "mention", "promise"];
576
574
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
577
575
  var CLOSED_STATES = ["done", "dismissed"];
@@ -586,7 +584,7 @@ function closeTask(task, state, by, at, reason) {
586
584
  }
587
585
  __name(closeTask, "closeTask");
588
586
 
589
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/tasks/priority.js
587
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/tasks/priority.js
590
588
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
591
589
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
592
590
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -615,7 +613,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
615
613
  }, "priorityOf");
616
614
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
617
615
 
618
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/tasks/service.js
616
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/tasks/service.js
619
617
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
620
618
  async function find(id2) {
621
619
  const task = await store.get(id2);
@@ -675,20 +673,20 @@ function median(values) {
675
673
  }
676
674
  __name(median, "median");
677
675
 
678
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/tasks/store.js
676
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/tasks/store.js
679
677
  function matches(task, filter) {
680
678
  return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
681
679
  }
682
680
  __name(matches, "matches");
683
681
 
684
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/store/source-review.js
682
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/store/source-review.js
685
683
  var SOURCE_REVIEW_KIND = "memory_source_review";
686
684
  var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
687
685
  var ERASED_TEXT = "[source erased]";
688
686
  var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
689
687
  var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
690
688
 
691
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/entities/fields.js
689
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/entities/fields.js
692
690
  var text = string();
693
691
  var id = pipe(string(), minLength(1));
694
692
  var time = isoTime;
@@ -713,7 +711,7 @@ var author = strictObject({
713
711
  name: nullable(text)
714
712
  });
715
713
 
716
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
714
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
717
715
  var organization = strictObject({
718
716
  id,
719
717
  ref: reference,
@@ -743,7 +741,7 @@ var reminder = strictObject({
743
741
  receipt: nullable(text)
744
742
  });
745
743
 
746
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/store/marks.js
744
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/store/marks.js
747
745
  import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
748
746
  var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
749
747
  var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
@@ -864,7 +862,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
864
862
  return { previous, cleared };
865
863
  }, "recordDeepCheck");
866
864
 
867
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
865
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
868
866
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
869
867
  var MEMORY_KINDS = ["summary", "digest", "preference"];
870
868
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -872,7 +870,7 @@ var MEMORY_SCOPES = ["personal", "work"];
872
870
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
873
871
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
874
872
 
875
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
873
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
876
874
  var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
877
875
  var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
878
876
  const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
@@ -882,7 +880,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
882
880
  };
883
881
  }, "sourceOf");
884
882
 
885
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
883
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
886
884
  var LINK_KINDS = [
887
885
  "links-to",
888
886
  "blocked-by",
@@ -906,7 +904,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
906
904
  var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
907
905
  var COUNTERPART_ROLE = "counterpart";
908
906
 
909
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/search/query.js
907
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/search/query.js
910
908
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
911
909
  var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
912
910
  var fail = /* @__PURE__ */ __name((message) => {
@@ -929,7 +927,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
929
927
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
930
928
  }, "sourceOf");
931
929
 
932
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/search/account-list.js
930
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/search/account-list.js
933
931
  var ACCOUNT_GROUPS = "accountGroups";
934
932
  var ACCOUNT_GROUPS_SETTING = "account_groups";
935
933
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -1040,6 +1038,8 @@ var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
1040
1038
  return [...held];
1041
1039
  if (wanted === "personal" || wanted === "bots")
1042
1040
  return held.filter((one) => listedHolds(one, "messages") && isBotProvider(one.provider) === (wanted === "bots"));
1041
+ if (wanted === "documents")
1042
+ return held.filter((one) => listedHolds(one, "documents") || isDocumentAccount(one));
1043
1043
  if (isKind(wanted))
1044
1044
  return held.filter((one) => listedHolds(one, wanted));
1045
1045
  const recorded = context.profiles[wanted];
@@ -1050,6 +1050,22 @@ var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
1050
1050
  return storedAs(held, { provider, account: "" });
1051
1051
  return held.filter((one) => one.provider === provider);
1052
1052
  }, "accountsOfWord");
1053
+ var isDocumentAccount = /* @__PURE__ */ __name(({ stored }) => stored !== void 0 && isDocumentAccountProvider(stored.provider), "isDocumentAccount");
1054
+ var choices = /* @__PURE__ */ __name((held) => {
1055
+ const kinds = held.flatMap((one) => one.kinds ?? (one.kind ? [one.kind] : []));
1056
+ const messengers = held.filter((one) => listedHolds(one, "messages"));
1057
+ const providers2 = held.flatMap(({ stored, provider }) => stored?.provider === ADDED_PROVIDER ? [] : [stored?.provider ?? provider]);
1058
+ return [
1059
+ .../* @__PURE__ */ new Set([
1060
+ "all",
1061
+ ...messengers.some((one) => !isBotProvider(one.provider)) ? ["personal"] : [],
1062
+ ...messengers.some((one) => isBotProvider(one.provider)) ? ["bots"] : [],
1063
+ ...kinds,
1064
+ ...held.some(isDocumentAccount) ? ["documents"] : [],
1065
+ ...providers2
1066
+ ])
1067
+ ].join(", ");
1068
+ }, "choices");
1053
1069
  var keyOf = /* @__PURE__ */ __name(({ provider, account }) => `${provider}\0${account}`, "keyOf");
1054
1070
  var sourceOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "sourceOf");
1055
1071
  var sameAs = /* @__PURE__ */ __name((key) => (one) => one.provider === key.provider && one.account === key.account, "sameAs");
@@ -1060,7 +1076,8 @@ var entriesOfList = /* @__PURE__ */ __name((value, context) => {
1060
1076
  const colon = item.indexOf(":");
1061
1077
  if (colon === -1) {
1062
1078
  try {
1063
- entries.push({ entry: item, accounts: accountsOfWord(item, held, context) });
1079
+ const accounts = accountsOfWord(item, held, context);
1080
+ entries.push({ entry: item, accounts, ...accounts.length === 0 && !group ? { holds: choices(held) } : {} });
1064
1081
  } catch (error) {
1065
1082
  if (!group || !(error instanceof CliError))
1066
1083
  throw error;
@@ -1089,8 +1106,9 @@ var entriesOfList = /* @__PURE__ */ __name((value, context) => {
1089
1106
  for (const item of itemsOf(value))
1090
1107
  entry(item);
1091
1108
  const { only } = context;
1092
- return entries.map(({ entry: entry2, accounts }) => ({
1109
+ return entries.map(({ entry: entry2, accounts, holds }) => ({
1093
1110
  entry: entry2,
1111
+ ...holds === void 0 ? {} : { holds },
1094
1112
  accounts: accounts.filter((one) => only === void 0 || only.has(keyOf(one))).map(({ provider, account, kind, kinds }) => ({
1095
1113
  provider,
1096
1114
  account,
@@ -1134,12 +1152,14 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
1134
1152
  const other = known[0];
1135
1153
  skipped.push(other?.kind ? { source: entry, code: "validation_error", reason: reasonOf(other.kind) } : unknown2.length ? { source: entry, code: "not_found", reason: UNKNOWN_PROVIDER } : { source: entry, code: "not_found", reason: "no account in the store" });
1136
1154
  }
1137
- if (chosen.size === 0)
1138
- fail2(`--source names nothing ${what} reads: ${skipped.map(({ source, reason }) => `${source} (${reason})`).join(", ")}`);
1155
+ if (chosen.size === 0) {
1156
+ const words = entries.length === 1 ? entries[0]?.holds : void 0;
1157
+ fail2(`--source names nothing ${what} reads: ${skipped.map(({ source, reason }) => `${source} (${reason})`).join(", ")}` + (words === void 0 ? "" : ` \u2014 the store holds ${words}`));
1158
+ }
1139
1159
  return { accounts: [...chosen.values()], skipped };
1140
1160
  }, "fitting");
1141
1161
 
1142
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/domain/categories.js
1162
+ // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/categories.js
1143
1163
  var CATEGORIES = ["client", "supplier", "partner", "employer"];
1144
1164
 
1145
1165
  export {