@wirecat/notion-cli 0.2.0 → 0.4.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 (186) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +9 -2
  3. package/contracts/wirecat.json +97 -0
  4. package/dist/bin/notion.js +2 -2
  5. package/dist/bundle/{all-profiles-JGYLQZ5C.js → all-profiles-4IONYZB6.js} +10 -10
  6. package/dist/bundle/{anthropic-S2VSMIKQ.js → anthropic-OXF74J4P.js} +6 -6
  7. package/dist/bundle/{app-server-SASYDBCA.js → app-server-M2VF6ABM.js} +59 -59
  8. package/dist/bundle/{bun-LU5LP3JI.js → bun-DLA6QRLL.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-JBSINB4O.js → bun-sqlite-F4BYLW3F.js} +7 -7
  10. package/dist/bundle/{chunk-4HWJOU7N.js → chunk-2MHMKNWD.js} +1 -1
  11. package/dist/bundle/{chunk-SHJQ6JKG.js → chunk-4KUJTSHG.js} +2 -2
  12. package/dist/bundle/{chunk-SWAOWNKW.js → chunk-4TQVZXOV.js} +3 -3
  13. package/dist/bundle/{chunk-ODBZNSZ6.js → chunk-5LBJNTEJ.js} +6 -6
  14. package/dist/bundle/{chunk-SZOVLP44.js → chunk-5UA2TYMI.js} +2 -2
  15. package/dist/bundle/{chunk-22QQUKWA.js → chunk-5XP4KQ2F.js} +1 -1
  16. package/dist/bundle/{chunk-4IPURN72.js → chunk-6GN7KU7X.js} +9 -9
  17. package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-6JBLIQQN.js} +1 -1
  18. package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-7NF3V5L2.js} +4 -4
  19. package/dist/bundle/{chunk-OTV53F34.js → chunk-7NGFGFE5.js} +9 -60
  20. package/dist/bundle/{chunk-VBHETQVV.js → chunk-7NVPM55S.js} +1908 -1013
  21. package/dist/bundle/{chunk-Z56QFOBR.js → chunk-7YZPBAQX.js} +1 -1
  22. package/dist/bundle/{chunk-3AL7QUS3.js → chunk-AYU5TFDU.js} +20 -20
  23. package/dist/bundle/{chunk-FPY6EJ7B.js → chunk-BEPFGITI.js} +55 -55
  24. package/dist/bundle/{chunk-NQWV4WQO.js → chunk-CDGZZNGY.js} +6 -6
  25. package/dist/bundle/{chunk-DH5PRHT4.js → chunk-CIVXTBJY.js} +13 -13
  26. package/dist/bundle/{chunk-B26TQZKZ.js → chunk-COH7OEER.js} +14 -13
  27. package/dist/bundle/{chunk-XF26XKTS.js → chunk-D6RCRBDH.js} +2 -2
  28. package/dist/bundle/{chunk-YMYUBZWT.js → chunk-EQPAZ33O.js} +17 -17
  29. package/dist/bundle/{chunk-LAYPFBOM.js → chunk-EY6S7FV3.js} +6 -6
  30. package/dist/bundle/chunk-FEMHUSGO.js +88 -0
  31. package/dist/bundle/{chunk-VCIALTEM.js → chunk-FIHXADRF.js} +14 -4
  32. package/dist/bundle/{chunk-FWVBPRL4.js → chunk-FSJHASRQ.js} +79 -62
  33. package/dist/bundle/{chunk-TPX2M45D.js → chunk-GBFEEHQC.js} +10 -10
  34. package/dist/bundle/{chunk-5IYKVRH2.js → chunk-GCCPFKSU.js} +434 -343
  35. package/dist/bundle/{chunk-3Z4YTSRY.js → chunk-GK4GLPG2.js} +3 -3
  36. package/dist/bundle/{chunk-GZOUFX3C.js → chunk-GSNE7OB4.js} +4 -4
  37. package/dist/bundle/{chunk-TSDBSIFM.js → chunk-HTKSCSJU.js} +4 -4
  38. package/dist/bundle/{chunk-5NFK5EM2.js → chunk-IJMFG7HB.js} +7 -7
  39. package/dist/bundle/{chunk-D7QSEEYW.js → chunk-JIRRF6BM.js} +4 -4
  40. package/dist/bundle/{chunk-5RSC54NA.js → chunk-JODE2XED.js} +25 -25
  41. package/dist/bundle/{chunk-RV64YUQX.js → chunk-K5I64ZVI.js} +9 -9
  42. package/dist/bundle/{chunk-AOCUKEAX.js → chunk-KL3P5TQK.js} +4 -4
  43. package/dist/bundle/{chunk-2LWO3PDX.js → chunk-L62XTC7N.js} +11 -11
  44. package/dist/bundle/{chunk-LLG2POQ7.js → chunk-L6H7PY4X.js} +3 -3
  45. package/dist/bundle/{chunk-5RDNBG7D.js → chunk-LIQMUDIZ.js} +2 -2
  46. package/dist/bundle/{chunk-WF4D56CA.js → chunk-M2EEIYBU.js} +2 -2
  47. package/dist/bundle/{chunk-MZU2YFBZ.js → chunk-M6DGZ2O6.js} +8 -8
  48. package/dist/bundle/{chunk-FXEJY4OL.js → chunk-MRA62W5K.js} +233 -167
  49. package/dist/bundle/{chunk-XYIT2XB3.js → chunk-MVA5HVKL.js} +20 -0
  50. package/dist/bundle/{chunk-YVI5SQPY.js → chunk-NO2LIHWA.js} +1 -1
  51. package/dist/bundle/{chunk-WCSOH4JS.js → chunk-OCDJ4FFA.js} +4 -4
  52. package/dist/bundle/{chunk-2F4QQ7WB.js → chunk-OI5DWZJG.js} +3 -3
  53. package/dist/bundle/{chunk-EUIVXFLJ.js → chunk-P3P6DA6K.js} +6 -6
  54. package/dist/bundle/{chunk-MY742GAD.js → chunk-QX3TPFEX.js} +37 -37
  55. package/dist/bundle/{chunk-6RA3EABS.js → chunk-R6SDRSZK.js} +62 -32
  56. package/dist/bundle/{chunk-5QIQEUOG.js → chunk-RMJMID5D.js} +8 -8
  57. package/dist/bundle/{chunk-BNPTZ5ZB.js → chunk-SGBS5QCU.js} +4 -4
  58. package/dist/bundle/{chunk-YNTLT3Z3.js → chunk-T5UNSFES.js} +8 -8
  59. package/dist/bundle/{chunk-M7S2NDWB.js → chunk-TFNRCCGR.js} +4 -4
  60. package/dist/bundle/{chunk-B7ON6KPT.js → chunk-TJCPTRYD.js} +7 -7
  61. package/dist/bundle/{chunk-KM6WHPHI.js → chunk-TXONV3HW.js} +2 -2
  62. package/dist/bundle/{chunk-NOQ7B5N7.js → chunk-TZ2QJ53V.js} +2 -2
  63. package/dist/bundle/{chunk-KGERXYTV.js → chunk-UKE3CGHK.js} +1 -1
  64. package/dist/bundle/{chunk-6EVKHZKN.js → chunk-UROEWCOG.js} +3 -3
  65. package/dist/bundle/{chunk-WJHZMR2W.js → chunk-WHJWURZB.js} +6 -6
  66. package/dist/bundle/{chunk-G3EZFRSS.js → chunk-WU3XHGOB.js} +112 -42
  67. package/dist/bundle/{chunk-2F6VO5HA.js → chunk-WZEEEQGC.js} +3 -3
  68. package/dist/bundle/{chunk-M3KB25D3.js → chunk-XCTOCVMW.js} +14 -14
  69. package/dist/bundle/{chunk-FT3LN3HP.js → chunk-Y5LAJWR5.js} +1 -1
  70. package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-YAPDU3SV.js} +1 -1
  71. package/dist/bundle/{chunk-HL52XXZX.js → chunk-YFWLHTNO.js} +1 -1
  72. package/dist/bundle/{chunk-P7CUM5IB.js → chunk-YGCI3DHS.js} +1 -1
  73. package/dist/bundle/{chunk-KCLOUUYF.js → chunk-Z53LYX4M.js} +3 -3
  74. package/dist/bundle/{chunk-ZKAEZXUP.js → chunk-ZC6ZQQ55.js} +36 -37
  75. package/dist/bundle/command-contract-UBXS6NHI.js +38 -0
  76. package/dist/bundle/{command-server-entry-UFSG7KRO.js → command-server-entry-2SORMVRM.js} +27 -27
  77. package/dist/bundle/{decode-7LLWTSPT.js → decode-5O7IEFPN.js} +6 -6
  78. package/dist/bundle/{dispatch-2GY6JIJH.js → dispatch-YHQX6FEJ.js} +8 -8
  79. package/dist/bundle/{echarts-BXX4OQWC.js → echarts-ARLMVQC7.js} +2 -2
  80. package/dist/bundle/{embed-JXFNBTKH.js → embed-FUDUKQ3K.js} +7 -7
  81. package/dist/bundle/{embedder-57YZ44KO.js → embedder-HDRV7GX3.js} +10 -10
  82. package/dist/bundle/{failure-MYT4HPE3.js → failure-JHXICWIL.js} +3 -3
  83. package/dist/bundle/first-run-BGEFTXOE.js +29 -0
  84. package/dist/bundle/first-screen-F5F3VS6Y.js +38 -0
  85. package/dist/bundle/{instructions-2VECIDXF.js → instructions-MEFIKCDI.js} +1 -1
  86. package/dist/bundle/{mcp-O6ACR2DX.js → mcp-VMS6PBCU.js} +2 -2
  87. package/dist/bundle/meeting-combined-HNSS3FQY.js +24 -0
  88. package/dist/bundle/meeting-model-REZVYGQW.js +26 -0
  89. package/dist/bundle/{meeting-semantic-ETN3A4BJ.js → meeting-semantic-R4CSLVRG.js} +7 -7
  90. package/dist/bundle/{node-MPEQSFI3.js → node-MAQALPLA.js} +2 -2
  91. package/dist/bundle/{node-sqlite-WA32MYSJ.js → node-sqlite-J7IJYNBO.js} +8 -8
  92. package/dist/bundle/notion.js +14 -14
  93. package/dist/bundle/{oauth-IAFZG3IR.js → oauth-AMV4YGJD.js} +8 -8
  94. package/dist/bundle/{open-M3JQUC5G.js → open-AB27MTGR.js} +6 -6
  95. package/dist/bundle/{openai-HXUEHUSD.js → openai-D77MU5XV.js} +17 -17
  96. package/dist/bundle/{process-F6TKXWWA.js → process-SIOWTRJ6.js} +1 -1
  97. package/dist/bundle/{program-Y7JAB6TG.js → program-7K34KI27.js} +3230 -1722
  98. package/dist/bundle/{prompt-IMUQLZD2.js → prompt-W77YDHA6.js} +6 -6
  99. package/dist/bundle/{recognize-2MZAYHAA.js → recognize-3JAXQQ36.js} +5 -5
  100. package/dist/bundle/{remote-OV4LB6VR.js → remote-PSOJXCXO.js} +11 -11
  101. package/dist/bundle/{rerank-ZIULUS34.js → rerank-EE44ZTGL.js} +8 -8
  102. package/dist/bundle/{schemas-DIVZS6TU.js → schemas-LBYUMBC6.js} +2 -2
  103. package/dist/bundle/{serve-YU7QBP6L.js → serve-XJMGAMFW.js} +10 -10
  104. package/dist/bundle/{server-LGMNONSB.js → server-ASU6CP5R.js} +51 -51
  105. package/dist/bundle/server-WSPQ5EOA.js +72 -0
  106. package/dist/bundle/{services-5WY4DCPJ.js → services-PT4PA4J6.js} +46 -39
  107. package/dist/bundle/{sqlite-runtime-5MXZDETH.js → sqlite-runtime-YHXRTVXE.js} +7 -7
  108. package/dist/bundle/{state-LWMZH2KI.js → state-T6ZKFWGD.js} +7 -7
  109. package/dist/bundle/{store-EPZYV4VW.js → store-3MUCZEI3.js} +20 -18
  110. package/dist/bundle/{store-QE6FEIZD.js → store-E5EE25FY.js} +24 -20
  111. package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +63 -0
  112. package/dist/commands/api.d.ts.map +1 -1
  113. package/dist/commands/api.js +13 -4
  114. package/dist/commands/api.js.map +1 -1
  115. package/dist/commands/comments.d.ts +4 -0
  116. package/dist/commands/comments.d.ts.map +1 -0
  117. package/dist/commands/comments.js +80 -0
  118. package/dist/commands/comments.js.map +1 -0
  119. package/dist/commands/documents.d.ts +8 -0
  120. package/dist/commands/documents.d.ts.map +1 -1
  121. package/dist/commands/documents.js +74 -1
  122. package/dist/commands/documents.js.map +1 -1
  123. package/dist/commands/files.d.ts +4 -0
  124. package/dist/commands/files.d.ts.map +1 -0
  125. package/dist/commands/files.js +57 -0
  126. package/dist/commands/files.js.map +1 -0
  127. package/dist/commands/library.d.ts.map +1 -1
  128. package/dist/commands/library.js +50 -9
  129. package/dist/commands/library.js.map +1 -1
  130. package/dist/commands/writing.d.ts +32 -0
  131. package/dist/commands/writing.d.ts.map +1 -0
  132. package/dist/commands/writing.js +126 -0
  133. package/dist/commands/writing.js.map +1 -0
  134. package/dist/config.d.ts +19 -0
  135. package/dist/config.d.ts.map +1 -1
  136. package/dist/config.js +76 -5
  137. package/dist/config.js.map +1 -1
  138. package/dist/context.d.ts +3 -0
  139. package/dist/context.d.ts.map +1 -1
  140. package/dist/context.js +3 -0
  141. package/dist/context.js.map +1 -1
  142. package/dist/generated/types.d.ts +485 -375
  143. package/dist/generated/types.d.ts.map +1 -1
  144. package/dist/notion/errors.d.ts +5 -0
  145. package/dist/notion/errors.d.ts.map +1 -1
  146. package/dist/notion/errors.js +9 -0
  147. package/dist/notion/errors.js.map +1 -1
  148. package/dist/notion/notion.d.ts +38 -0
  149. package/dist/notion/notion.d.ts.map +1 -1
  150. package/dist/notion/notion.js +43 -0
  151. package/dist/notion/notion.js.map +1 -1
  152. package/dist/notion/writes.d.ts +78 -0
  153. package/dist/notion/writes.d.ts.map +1 -0
  154. package/dist/notion/writes.js +185 -0
  155. package/dist/notion/writes.js.map +1 -0
  156. package/dist/program.d.ts.map +1 -1
  157. package/dist/program.js +4 -0
  158. package/dist/program.js.map +1 -1
  159. package/dist/sync/browse.d.ts +30 -0
  160. package/dist/sync/browse.d.ts.map +1 -0
  161. package/dist/sync/browse.js +67 -0
  162. package/dist/sync/browse.js.map +1 -0
  163. package/dist/sync/cursor.d.ts +29 -0
  164. package/dist/sync/cursor.d.ts.map +1 -1
  165. package/dist/sync/cursor.js +28 -0
  166. package/dist/sync/cursor.js.map +1 -1
  167. package/dist/sync/files.d.ts +11 -0
  168. package/dist/sync/files.d.ts.map +1 -1
  169. package/dist/sync/files.js +29 -0
  170. package/dist/sync/files.js.map +1 -1
  171. package/dist/sync/source.d.ts +3 -3
  172. package/dist/sync/source.d.ts.map +1 -1
  173. package/dist/sync/source.js +81 -63
  174. package/dist/sync/source.js.map +1 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +3 -3
  178. package/skills/notion-cli/SKILL.md +6 -0
  179. package/dist/bundle/command-contract-JS5V27NX.js +0 -38
  180. package/dist/bundle/first-run-3PF7T74J.js +0 -29
  181. package/dist/bundle/first-screen-7BEROEQR.js +0 -36
  182. package/dist/bundle/meeting-combined-PPUQ3KBR.js +0 -24
  183. package/dist/bundle/meeting-model-ZNMYKMCD.js +0 -26
  184. package/dist/bundle/server-FKQET4ZO.js +0 -71
  185. package/dist/bundle/store-maintenance-command-ZUUUFCHL.js +0 -62
  186. /package/dist/bundle/{chunk-VKE77B3F.js → chunk-SHTHNBHG.js} +0 -0
@@ -245,6 +245,25 @@ function isoTimestamp(message$1) {
245
245
  }
246
246
  __name(isoTimestamp, "isoTimestamp");
247
247
  // @__NO_SIDE_EFFECTS__
248
+ function maxEntries(requirement, message$1) {
249
+ return {
250
+ kind: "validation",
251
+ type: "max_entries",
252
+ reference: maxEntries,
253
+ async: false,
254
+ expects: `<=${requirement}`,
255
+ requirement,
256
+ message: message$1,
257
+ "~run"(dataset, config$1) {
258
+ if (!dataset.typed) return dataset;
259
+ const count = Object.keys(dataset.value).length;
260
+ if (dataset.typed && count > this.requirement) _addIssue(this, "entries", dataset, config$1, { received: `${count}` });
261
+ return dataset;
262
+ }
263
+ };
264
+ }
265
+ __name(maxEntries, "maxEntries");
266
+ // @__NO_SIDE_EFFECTS__
248
267
  function maxLength(requirement, message$1) {
249
268
  return {
250
269
  kind: "validation",
@@ -1328,6 +1347,7 @@ export {
1328
1347
  integer,
1329
1348
  isoDate,
1330
1349
  isoTimestamp,
1350
+ maxEntries,
1331
1351
  maxLength,
1332
1352
  maxValue,
1333
1353
  minLength,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.102.1_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.106.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");
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
5
  executableOnPath
6
- } from "./chunk-YVI5SQPY.js";
6
+ } from "./chunk-NO2LIHWA.js";
7
7
  import {
8
8
  require_cross_spawn
9
9
  } from "./chunk-D72URWJE.js";
10
10
  import {
11
11
  loadConfigFile,
12
12
  saveConfigFile
13
- } from "./chunk-3AL7QUS3.js";
13
+ } from "./chunk-AYU5TFDU.js";
14
14
  import {
15
15
  number,
16
16
  object,
17
17
  optional,
18
18
  string
19
- } from "./chunk-XYIT2XB3.js";
19
+ } from "./chunk-MVA5HVKL.js";
20
20
  import {
21
21
  __name,
22
22
  __toESM
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
25
+ // node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
26
26
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
27
27
  import { existsSync } from "node:fs";
28
28
  var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-Z56QFOBR.js";
5
+ } from "./chunk-7YZPBAQX.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-3AL7QUS3.js";
9
+ } from "./chunk-AYU5TFDU.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -3,29 +3,29 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  textModel,
5
5
  vectorModelKey
6
- } from "./chunk-WJHZMR2W.js";
6
+ } from "./chunk-WHJWURZB.js";
7
7
  import {
8
8
  OPENAI_URL,
9
9
  openRemote,
10
10
  remoteKey,
11
11
  remoteModel
12
- } from "./chunk-RV64YUQX.js";
12
+ } from "./chunk-K5I64ZVI.js";
13
13
  import {
14
14
  endpointFetch
15
- } from "./chunk-2F6VO5HA.js";
15
+ } from "./chunk-WZEEEQGC.js";
16
16
  import {
17
17
  isTextModelInstalled,
18
18
  openEmbedder,
19
19
  textModelsDirectory
20
- } from "./chunk-ODBZNSZ6.js";
20
+ } from "./chunk-5LBJNTEJ.js";
21
21
  import {
22
22
  CliError
23
- } from "./chunk-5RDNBG7D.js";
23
+ } from "./chunk-LIQMUDIZ.js";
24
24
  import {
25
25
  __name
26
26
  } from "./chunk-ZVVMGPBJ.js";
27
27
 
28
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
28
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
29
29
  var integer = /* @__PURE__ */ __name((value, name, max) => {
30
30
  if (!Number.isSafeInteger(value) || value < 1 || value > max)
31
31
  throw new CliError("validation_error", `Invalid ${name}`);
@@ -3,24 +3,24 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure,
5
5
  isStoreDamage
6
- } from "./chunk-6EVKHZKN.js";
6
+ } from "./chunk-UROEWCOG.js";
7
7
  import {
8
8
  formatMeetingReference,
9
9
  parseMeetingReference
10
- } from "./chunk-FWVBPRL4.js";
10
+ } from "./chunk-FSJHASRQ.js";
11
11
  import {
12
12
  refuseOwnerStoreInTests
13
- } from "./chunk-WF4D56CA.js";
13
+ } from "./chunk-M2EEIYBU.js";
14
14
  import {
15
15
  createRecordLog,
16
16
  resolvePaths,
17
17
  traceIdOf,
18
18
  writeSecurely
19
- } from "./chunk-3AL7QUS3.js";
19
+ } from "./chunk-AYU5TFDU.js";
20
20
  import {
21
21
  isoTime,
22
22
  reference
23
- } from "./chunk-4IPURN72.js";
23
+ } from "./chunk-6GN7KU7X.js";
24
24
  import {
25
25
  array,
26
26
  boolean,
@@ -38,26 +38,26 @@ import {
38
38
  strictObject,
39
39
  string,
40
40
  unknown
41
- } from "./chunk-XYIT2XB3.js";
41
+ } from "./chunk-MVA5HVKL.js";
42
42
  import {
43
43
  CliError,
44
44
  singleLine
45
- } from "./chunk-5RDNBG7D.js";
45
+ } from "./chunk-LIQMUDIZ.js";
46
46
  import {
47
47
  __name
48
48
  } from "./chunk-ZVVMGPBJ.js";
49
49
 
50
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/scope.js
50
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/scope.js
51
51
  import { AsyncLocalStorage } from "node:async_hooks";
52
52
  import { randomBytes } from "node:crypto";
53
53
 
54
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/run.js
54
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/run.js
55
55
  import { randomUUID } from "node:crypto";
56
56
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
57
57
  import { userInfo } from "node:os";
58
58
  import { join, sep } from "node:path";
59
59
 
60
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
60
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
61
61
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
62
62
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
63
63
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -70,7 +70,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
70
70
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
71
71
  }), "snakeLogger");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
74
74
  var diagnostic = {
75
75
  event: true,
76
76
  operation: true,
@@ -144,7 +144,7 @@ var LOG_ATTRIBUTES = [
144
144
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
145
145
  ].sort();
146
146
 
147
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/run.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/run.js
148
148
  var KEEP_RUNS_FOR_DAYS = 30;
149
149
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
150
150
  var KEEP_STORE_RUNS_FOR_DAYS = 3;
@@ -511,7 +511,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
511
511
  };
512
512
  }, "metadataOf");
513
513
 
514
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/scope.js
514
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/scope.js
515
515
  var scopes = new AsyncLocalStorage();
516
516
  var processScope;
517
517
  var ownProcesses = new AsyncLocalStorage();
@@ -562,10 +562,10 @@ var attempts = new AsyncLocalStorage();
562
562
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
563
563
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
564
564
 
565
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/categories.js
565
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/categories.js
566
566
  var CATEGORIES = ["client", "supplier", "partner", "employer"];
567
567
 
568
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/tasks/model.js
568
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/tasks/model.js
569
569
  var TASK_KINDS = ["question", "request", "mention", "promise"];
570
570
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
571
571
  var CLOSED_STATES = ["done", "dismissed"];
@@ -580,7 +580,7 @@ function closeTask(task, state, by, at, reason) {
580
580
  }
581
581
  __name(closeTask, "closeTask");
582
582
 
583
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/tasks/priority.js
583
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/tasks/priority.js
584
584
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
585
585
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
586
586
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -609,7 +609,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
609
609
  }, "priorityOf");
610
610
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
611
611
 
612
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/tasks/service.js
612
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/tasks/service.js
613
613
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
614
614
  async function find(id2) {
615
615
  const task = await store.get(id2);
@@ -669,20 +669,20 @@ function median(values) {
669
669
  }
670
670
  __name(median, "median");
671
671
 
672
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/tasks/store.js
672
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/tasks/store.js
673
673
  function matches(task, filter) {
674
674
  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);
675
675
  }
676
676
  __name(matches, "matches");
677
677
 
678
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/source-review.js
678
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/source-review.js
679
679
  var SOURCE_REVIEW_KIND = "memory_source_review";
680
680
  var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
681
681
  var ERASED_TEXT = "[source erased]";
682
682
  var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
683
683
  var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
684
684
 
685
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/fields.js
685
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/fields.js
686
686
  var text = string();
687
687
  var id = pipe(string(), minLength(1));
688
688
  var time = isoTime;
@@ -707,7 +707,7 @@ var author = strictObject({
707
707
  name: nullable(text)
708
708
  });
709
709
 
710
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
710
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
711
711
  var organization = strictObject({
712
712
  id,
713
713
  ref: reference,
@@ -737,7 +737,7 @@ var reminder = strictObject({
737
737
  receipt: nullable(text)
738
738
  });
739
739
 
740
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/marks.js
740
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/marks.js
741
741
  import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
742
742
  var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
743
743
  var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
@@ -858,7 +858,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
858
858
  return { previous, cleared };
859
859
  }, "recordDeepCheck");
860
860
 
861
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/money.js
861
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/money.js
862
862
  var CURRENCY_SCALES = {
863
863
  AED: 2,
864
864
  AMD: 2,
@@ -952,7 +952,7 @@ var quantityOf = /* @__PURE__ */ __name((text2) => {
952
952
  }, "quantityOf");
953
953
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
954
954
 
955
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/finance.js
955
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/finance.js
956
956
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
957
957
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
958
958
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -981,7 +981,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
981
981
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
982
982
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
983
983
 
984
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/business.js
984
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/business.js
985
985
  var CATALOG_KINDS = ["product", "service"];
986
986
  var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
987
987
  var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
@@ -1009,7 +1009,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
1009
1009
  var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
1010
1010
  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");
1011
1011
 
1012
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
1012
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
1013
1013
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
1014
1014
  var MEMORY_KINDS = ["summary", "digest", "preference"];
1015
1015
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -1017,7 +1017,7 @@ var MEMORY_SCOPES = ["personal", "work"];
1017
1017
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
1018
1018
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
1019
1019
 
1020
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/locator.js
1020
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/locator.js
1021
1021
  var SCHEME = "msg:";
1022
1022
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
1023
1023
  var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
@@ -1038,7 +1038,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
1038
1038
  return { provider, account, chat, message };
1039
1039
  }, "parseLocator");
1040
1040
 
1041
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/references.js
1041
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/references.js
1042
1042
  var SIMPLE_REFERENCES = [
1043
1043
  "note",
1044
1044
  "document",
@@ -1201,7 +1201,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text2) => {
1201
1201
  return match !== null && byPrefix.has(match[1]);
1202
1202
  }, "looksLikeReference");
1203
1203
 
1204
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/providers.js
1204
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/providers.js
1205
1205
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
1206
1206
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
1207
1207
  var PROVIDERS = [
@@ -1376,7 +1376,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
1376
1376
  var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
1377
1377
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
1378
1378
 
1379
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/search/query.js
1379
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/search/query.js
1380
1380
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
1381
1381
  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");
1382
1382
  var fail = /* @__PURE__ */ __name((message) => {
@@ -1399,7 +1399,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
1399
1399
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
1400
1400
  }, "sourceOf");
1401
1401
 
1402
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/search/account-list.js
1402
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/search/account-list.js
1403
1403
  var ACCOUNT_GROUPS = "accountGroups";
1404
1404
  var ACCOUNT_GROUPS_SETTING = "account_groups";
1405
1405
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -1609,7 +1609,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind2) =
1609
1609
  return { accounts: [...chosen.values()], skipped };
1610
1610
  }, "fitting");
1611
1611
 
1612
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/deals.js
1612
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/deals.js
1613
1613
  var DEAL_KINDS = ["deal", "lead"];
1614
1614
  var DEAL_STATUSES = ["open", "won", "lost"];
1615
1615
  var STAGE_OUTCOMES = DEAL_STATUSES;
@@ -1619,7 +1619,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
1619
1619
  return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
1620
1620
  }, "dealLine");
1621
1621
 
1622
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/orders.js
1622
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/orders.js
1623
1623
  var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
1624
1624
  var ORDER_PURPOSES = ["personal", "business", "client", "other"];
1625
1625
  var orderLine = /* @__PURE__ */ __name((order) => {
@@ -1630,7 +1630,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
1630
1630
  }, "orderLine");
1631
1631
  var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
1632
1632
 
1633
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/relations.js
1633
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/relations.js
1634
1634
  var ORGANIZATION_ROLES = [
1635
1635
  "employee",
1636
1636
  "contractor",
@@ -1733,7 +1733,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
1733
1733
  var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
1734
1734
  var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
1735
1735
 
1736
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/crm.js
1736
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/crm.js
1737
1737
  var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
1738
1738
  var isCrmUserId = /* @__PURE__ */ __name((id2) => /^\d{1,20}$/.test(id2), "isCrmUserId");
1739
1739
  var normalCrmUserId = /* @__PURE__ */ __name((id2) => {
@@ -1742,7 +1742,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id2) => {
1742
1742
  }, "normalCrmUserId");
1743
1743
  var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
1744
1744
 
1745
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
1745
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
1746
1746
  var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
1747
1747
  var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
1748
1748
  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;
@@ -1752,7 +1752,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
1752
1752
  };
1753
1753
  }, "sourceOf");
1754
1754
 
1755
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
1755
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
1756
1756
  var LINK_KINDS = [
1757
1757
  "links-to",
1758
1758
  "blocked-by",