@wirecat/hubspot-cli 0.3.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +6 -5
  3. package/dist/bin/hubspot.js +2 -2
  4. package/dist/bundle/agent-RBQMA24N.js +40 -0
  5. package/dist/bundle/{all-profiles-6452VSJB.js → all-profiles-PGFXLOKN.js} +11 -11
  6. package/dist/bundle/{anthropic-VQUOVYOW.js → anthropic-LPOJ3TYF.js} +5 -5
  7. package/dist/bundle/{app-server-EQZUP4H4.js → app-server-EYWGCSRY.js} +68 -68
  8. package/dist/bundle/{bun-AJPJ4ZUN.js → bun-ZJOOKIIW.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-AGXGSF6D.js → bun-sqlite-Y6KKH2OW.js} +6 -6
  10. package/dist/bundle/{chunk-2A64XS22.js → chunk-23CLSKY7.js} +3 -3
  11. package/dist/bundle/{chunk-GZZR5U3K.js → chunk-34HDRZIL.js} +14 -14
  12. package/dist/bundle/{chunk-NZGI74GS.js → chunk-3CHJYWA2.js} +6 -6
  13. package/dist/bundle/{chunk-PMP37KLR.js → chunk-4RZ4DUQT.js} +3 -3
  14. package/dist/bundle/{chunk-LT5KE44Q.js → chunk-5ENY4POG.js} +61 -61
  15. package/dist/bundle/{chunk-QBEDVMLZ.js → chunk-5HGS65I3.js} +2 -2
  16. package/dist/bundle/{chunk-KVXEEKBB.js → chunk-5UPNDUAA.js} +2 -2
  17. package/dist/bundle/{chunk-YIF5M5R6.js → chunk-5WADRBQG.js} +3 -3
  18. package/dist/bundle/{chunk-KO4VR5NK.js → chunk-6PWRJGX4.js} +4 -4
  19. package/dist/bundle/{chunk-TKK3ECDS.js → chunk-6S422S22.js} +7 -7
  20. package/dist/bundle/{chunk-5AYKCKSE.js → chunk-7Q64D56R.js} +11 -11
  21. package/dist/bundle/{chunk-PHXOL5HZ.js → chunk-7RIE3DAW.js} +174 -161
  22. package/dist/bundle/{chunk-RVWGFD32.js → chunk-A5UTNGI4.js} +13 -13
  23. package/dist/bundle/{chunk-NTQBS2JL.js → chunk-ABPZOI3C.js} +4 -4
  24. package/dist/bundle/{chunk-L433IDOX.js → chunk-AHZQMSXW.js} +10 -10
  25. package/dist/bundle/{chunk-X5S5KUSU.js → chunk-AIQT2GGK.js} +19 -19
  26. package/dist/bundle/{chunk-3R4KRNUZ.js → chunk-AVBKXCEY.js} +8 -8
  27. package/dist/bundle/{chunk-TIHDBKA7.js → chunk-BCW7DAVV.js} +2 -2
  28. package/dist/bundle/{chunk-7UEL65GQ.js → chunk-BGUGTMTS.js} +8 -8
  29. package/dist/bundle/{chunk-BN22EKQQ.js → chunk-BH5FEFZB.js} +2 -2
  30. package/dist/bundle/{chunk-DJ2GJ77D.js → chunk-BVK4GUUI.js} +1352 -838
  31. package/dist/bundle/{chunk-3TEFE6YU.js → chunk-BW7NPFVC.js} +18 -8
  32. package/dist/bundle/{chunk-WRCKE5ND.js → chunk-CWCJEAHZ.js} +3 -3
  33. package/dist/bundle/{chunk-DW23LM47.js → chunk-DDMBPYHP.js} +2 -2
  34. package/dist/bundle/{chunk-WGBVRDY3.js → chunk-DEUCWBBH.js} +103 -5
  35. package/dist/bundle/{chunk-SEELWPRD.js → chunk-DJUUQG6Y.js} +8 -8
  36. package/dist/bundle/{chunk-VW5F6FK3.js → chunk-EGR3YUWD.js} +4 -4
  37. package/dist/bundle/{chunk-M763RNWP.js → chunk-EPBHJMF6.js} +20 -14
  38. package/dist/bundle/{chunk-7NZT7Y55.js → chunk-GZJP3KQQ.js} +3 -4
  39. package/dist/bundle/{chunk-BHZUPOQY.js → chunk-HBFSGL5E.js} +26 -26
  40. package/dist/bundle/{chunk-O3VM5PTJ.js → chunk-HPRGUUHY.js} +1 -1
  41. package/dist/bundle/{chunk-DSRXCLPO.js → chunk-HPSESLOZ.js} +1 -1
  42. package/dist/bundle/{chunk-Q27QAB4X.js → chunk-I334AT2H.js} +7 -7
  43. package/dist/bundle/{chunk-BAUK2MD5.js → chunk-K3WCBNH4.js} +43 -64
  44. package/dist/bundle/{chunk-JK2SNLU5.js → chunk-K5S7MKBB.js} +17 -17
  45. package/dist/bundle/{chunk-J5P5VSRG.js → chunk-KAW5VEER.js} +21 -8
  46. package/dist/bundle/{chunk-NNMU2TDU.js → chunk-KC4ILAKO.js} +1 -1
  47. package/dist/bundle/{chunk-K4X5ZHI2.js → chunk-KRTXJMCD.js} +16 -16
  48. package/dist/bundle/{chunk-DQB5JMTY.js → chunk-KXWRVLSU.js} +1 -1
  49. package/dist/bundle/{chunk-VQEAZXTV.js → chunk-L4SVHQ7H.js} +7 -7
  50. package/dist/bundle/{chunk-ARTJLL7W.js → chunk-L6WSFVTD.js} +8 -8
  51. package/dist/bundle/{chunk-OJIJVOOA.js → chunk-LWS5AO3H.js} +17 -17
  52. package/dist/bundle/{chunk-E4X7JAFC.js → chunk-LXLXF2OE.js} +3 -3
  53. package/dist/bundle/{chunk-ODPU3II6.js → chunk-MENMD5Y5.js} +8 -8
  54. package/dist/bundle/{chunk-5ZV7REBE.js → chunk-MFWECOO3.js} +82 -64
  55. package/dist/bundle/{chunk-HPZRUY6S.js → chunk-MGMLSPIY.js} +1 -1
  56. package/dist/bundle/{chunk-B3EH22CO.js → chunk-MKBQFD37.js} +1 -1
  57. package/dist/bundle/{chunk-E4FAMU2S.js → chunk-MPNMEWHA.js} +417 -320
  58. package/dist/bundle/{chunk-2HYGCLKN.js → chunk-MPQ4SPZG.js} +93 -40
  59. package/dist/bundle/{chunk-ITGNDZRR.js → chunk-MW4ROXQ6.js} +3 -3
  60. package/dist/bundle/{chunk-JP2HJXFO.js → chunk-NEDV6RCQ.js} +10 -3
  61. package/dist/bundle/{chunk-PLRUUXK7.js → chunk-NEP67GLY.js} +6 -6
  62. package/dist/bundle/{chunk-6MFP47XC.js → chunk-NKIKMG33.js} +35 -35
  63. package/dist/bundle/{chunk-GC6FLHZF.js → chunk-NLPGUYCG.js} +12 -12
  64. package/dist/bundle/{chunk-AF7DANIR.js → chunk-OCISQFMW.js} +1 -1
  65. package/dist/bundle/{chunk-AVUMH42T.js → chunk-ODRF47VS.js} +8 -8
  66. package/dist/bundle/{chunk-EE4JSYGZ.js → chunk-OFOA6VJ2.js} +3 -3
  67. package/dist/bundle/{chunk-BUGROVF3.js → chunk-PMGAU6AP.js} +2 -2
  68. package/dist/bundle/{chunk-IQ2XZ62J.js → chunk-POTS24SH.js} +18 -18
  69. package/dist/bundle/{chunk-B2W3C4N6.js → chunk-PPQRWFJZ.js} +5 -5
  70. package/dist/bundle/{chunk-GRFICQTZ.js → chunk-QCHW7R7L.js} +1 -1
  71. package/dist/bundle/{chunk-5K3FGXZH.js → chunk-QDNYJOWJ.js} +1 -1
  72. package/dist/bundle/{chunk-WCQW4GYO.js → chunk-QIHJKE4K.js} +24 -8
  73. package/dist/bundle/{chunk-7LQRXVQ3.js → chunk-QLFD3MOL.js} +1002 -560
  74. package/dist/bundle/{chunk-7VHBS5BJ.js → chunk-QPTHEZZ5.js} +2 -2
  75. package/dist/bundle/{chunk-IXZLMFPO.js → chunk-R7ZOCDNG.js} +1 -1
  76. package/dist/bundle/{chunk-FIVD4HM4.js → chunk-RJBKDZGV.js} +8 -8
  77. package/dist/bundle/{chunk-4DNHXRCJ.js → chunk-RZS7N3OZ.js} +7 -7
  78. package/dist/bundle/{chunk-A6UFH3QU.js → chunk-SBNZYRVZ.js} +4 -4
  79. package/dist/bundle/{chunk-EMOVVERN.js → chunk-STTHRJBX.js} +5 -5
  80. package/dist/bundle/{chunk-2NCO4E4T.js → chunk-V5VMAHDQ.js} +6 -6
  81. package/dist/bundle/{chunk-LA3YU4K7.js → chunk-VCYUYFIV.js} +1 -1
  82. package/dist/bundle/{chunk-3I2FGNWO.js → chunk-VIJV474N.js} +1 -1
  83. package/dist/bundle/{chunk-ABXVU5O4.js → chunk-WDR77HPO.js} +22 -1
  84. package/dist/bundle/{chunk-3PEKYGZ3.js → chunk-WEM4FZPM.js} +2 -2
  85. package/dist/bundle/{chunk-5PPG73G6.js → chunk-WQZENAPE.js} +3 -3
  86. package/dist/bundle/{chunk-5YNAVVCW.js → chunk-WXEN6AXQ.js} +16 -3
  87. package/dist/bundle/{chunk-IBTMK5KD.js → chunk-YJLJZMEA.js} +25 -25
  88. package/dist/bundle/{chunk-2PRVWEJC.js → chunk-YQBGPBYN.js} +2 -2
  89. package/dist/bundle/{chunk-3DIXAEGH.js → chunk-YZ5MULJM.js} +3 -3
  90. package/dist/bundle/{chunk-JUKAIXKY.js → chunk-Z7FC6VVM.js} +1 -1
  91. package/dist/bundle/{chunk-LKSNISYV.js → chunk-ZKPM53YG.js} +4 -4
  92. package/dist/bundle/{chunk-U6XA3OOM.js → chunk-ZLWQPUPB.js} +2 -2
  93. package/dist/bundle/{chunk-CBCEMFCF.js → chunk-ZMHD76RE.js} +2 -2
  94. package/dist/bundle/command-contract-O2UKYHLD.js +40 -0
  95. package/dist/bundle/{command-server-entry-GJSMDSNE.js → command-server-entry-B7S5AUE6.js} +28 -28
  96. package/dist/bundle/{decode-6PLXHVHW.js → decode-7L33C5UJ.js} +5 -5
  97. package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-BIGHHSXV.js} +8 -8
  98. package/dist/bundle/{echarts-UZ7QLRE2.js → echarts-CWR3QH55.js} +2 -2
  99. package/dist/bundle/{embed-AWLL4EBF.js → embed-GXQ3HOQ6.js} +6 -6
  100. package/dist/bundle/{embedder-MM225YJ6.js → embedder-47OYXGLS.js} +9 -9
  101. package/dist/bundle/{failure-MR2XVHFP.js → failure-VMZOU5GZ.js} +2 -2
  102. package/dist/bundle/{first-run-KCZVNFJ7.js → first-run-YVQQOUQG.js} +12 -12
  103. package/dist/bundle/first-screen-TU3KE2B5.js +40 -0
  104. package/dist/bundle/hubspot.js +27 -25
  105. package/dist/bundle/{instructions-ZJ7U3QUE.js → instructions-QFS2MPK3.js} +1 -1
  106. package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-Z2KZNCXB.js} +2 -2
  107. package/dist/bundle/meeting-combined-WBEOLQMP.js +25 -0
  108. package/dist/bundle/{meeting-model-OYXB2NOE.js → meeting-model-GLF2HVJG.js} +11 -11
  109. package/dist/bundle/{meeting-semantic-S3DBB7XD.js → meeting-semantic-RG56F4YX.js} +6 -6
  110. package/dist/bundle/{node-HGCZGZ4R.js → node-3TSWTXGI.js} +2 -2
  111. package/dist/bundle/{node-sqlite-RKYSRKEB.js → node-sqlite-UPQCG7DJ.js} +7 -7
  112. package/dist/bundle/{oauth-PYDCAQ7Y.js → oauth-MCVEENW3.js} +7 -7
  113. package/dist/bundle/{open-UCDSQUN2.js → open-JMUTKUYJ.js} +5 -5
  114. package/dist/bundle/{openai-Y4F5ZC7O.js → openai-HT7YDOK7.js} +15 -15
  115. package/dist/bundle/{process-P7FB7YO7.js → process-7RC6DAGM.js} +1 -1
  116. package/dist/bundle/{program-VKYZXANH.js → program-3DLBMOEJ.js} +174 -120
  117. package/dist/bundle/{prompt-E5TKZ37Q.js → prompt-7EROPXPF.js} +5 -5
  118. package/dist/bundle/{recognize-5NYPTSLT.js → recognize-B232GXD2.js} +4 -4
  119. package/dist/bundle/{remote-U4LUAHF2.js → remote-HGV64VRC.js} +9 -9
  120. package/dist/bundle/{rerank-AJAVKK5L.js → rerank-5S6TDXHD.js} +7 -7
  121. package/dist/bundle/{schemas-QLQ2K6DL.js → schemas-SB42IXEX.js} +1 -1
  122. package/dist/bundle/{serve-4UJ3R5IP.js → serve-D2WFCV6Z.js} +9 -9
  123. package/dist/bundle/{server-DUKWJUKD.js → server-4AXPTJPV.js} +60 -60
  124. package/dist/bundle/server-FFHVNABP.js +86 -0
  125. package/dist/bundle/{source-LJG4BWRU.js → source-DF63EC2B.js} +114 -86
  126. package/dist/bundle/{sqlite-runtime-KLEA4XAU.js → sqlite-runtime-DAFMZNLI.js} +6 -6
  127. package/dist/bundle/{state-COGSYMVH.js → state-7OEBDXVV.js} +6 -6
  128. package/dist/bundle/{store-BJXCSP26.js → store-2ZWSWF76.js} +24 -24
  129. package/dist/bundle/{store-V5UMSWK4.js → store-KC6US326.js} +26 -22
  130. package/dist/bundle/store-Q3ZKD4FJ.js +34 -0
  131. package/dist/bundle/store-maintenance-command-24A4GBRP.js +73 -0
  132. package/dist/bundle/surface-SPTM57EP.js +72 -0
  133. package/dist/bundle/writer-EQQ55HOS.js +86 -0
  134. package/dist/config.d.ts +1 -0
  135. package/dist/config.d.ts.map +1 -1
  136. package/dist/config.js +59 -10
  137. package/dist/config.js.map +1 -1
  138. package/dist/version.d.ts +1 -1
  139. package/dist/version.js +1 -1
  140. package/package.json +4 -4
  141. package/skills/hubspot-cli/references/api/api-basic.md +34 -6
  142. package/skills/hubspot-cli/references/api/api-batch.md +19 -9
  143. package/skills/hubspot-cli/references/api/api-search.md +9 -0
  144. package/dist/bundle/agent-A7ARC3QB.js +0 -40
  145. package/dist/bundle/command-contract-R2FGN7CQ.js +0 -40
  146. package/dist/bundle/first-screen-SCDV7TXT.js +0 -40
  147. package/dist/bundle/meeting-combined-EL5XZIJ5.js +0 -25
  148. package/dist/bundle/server-UQVV2PPX.js +0 -86
  149. package/dist/bundle/store-7DQGZH64.js +0 -32
  150. package/dist/bundle/store-maintenance-command-DQUBBWMD.js +0 -73
  151. package/dist/bundle/surface-IGBQUYE5.js +0 -72
  152. package/dist/bundle/writer-QOEJONAD.js +0 -86
@@ -7,12 +7,12 @@ import {
7
7
  agentOf,
8
8
  clientHash,
9
9
  currentCaller
10
- } from "./chunk-FIVD4HM4.js";
10
+ } from "./chunk-RJBKDZGV.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
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/mcp/caller.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/mcp/caller.js
16
16
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
17
17
  const client = caller?.agent?.client?.name;
18
18
  if (client && client !== "unknown")
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
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/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {
@@ -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-DW23LM47.js";
5
+ } from "./chunk-DDMBPYHP.js";
6
6
  import {
7
7
  secretNamed,
8
8
  withoutSecrets
9
- } from "./chunk-NNMU2TDU.js";
9
+ } from "./chunk-KC4ILAKO.js";
10
10
  import {
11
11
  isContentKey
12
- } from "./chunk-X5S5KUSU.js";
12
+ } from "./chunk-AIQT2GGK.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
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
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/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.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
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/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.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
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/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.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
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/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.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
188
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/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)
@@ -2,24 +2,24 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-3PEKYGZ3.js";
5
+ } from "./chunk-WEM4FZPM.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-X5S5KUSU.js";
9
+ } from "./chunk-AIQT2GGK.js";
10
10
  import {
11
11
  CliError,
12
12
  singleLine
13
- } from "./chunk-BUGROVF3.js";
13
+ } from "./chunk-PMGAU6AP.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // 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/shared-config.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/shared-config.js
19
19
  import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
20
20
  import { dirname, join, resolve } from "node:path";
21
21
 
22
- // 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/config-repair.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
23
23
  var REPAIR_WORDS = {
24
24
  byte_order_mark: "an invisible byte-order mark at the start",
25
25
  comment: "a comment, which JSON does not allow",
@@ -303,7 +303,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
303
303
  return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
304
304
  }, "explainBrokenJson");
305
305
 
306
- // 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/task-categories.js
306
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
307
307
  var DEFAULT_TASK_CATEGORIES = [
308
308
  {
309
309
  name: "taxes",
@@ -1058,7 +1058,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
1058
1058
  }
1059
1059
  }, "storedTaskCategories");
1060
1060
 
1061
- // 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/shared-config.js
1061
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/shared-config.js
1062
1062
  var SECTION = "task_categories";
1063
1063
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
1064
1064
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-5YNAVVCW.js";
8
+ } from "./chunk-WXEN6AXQ.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
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/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
@@ -6,21 +6,21 @@ import {
6
6
  answerSchema,
7
7
  describeOptions,
8
8
  metaOf
9
- } from "./chunk-PHXOL5HZ.js";
9
+ } from "./chunk-7RIE3DAW.js";
10
10
  import {
11
11
  keyForCommand
12
- } from "./chunk-3TEFE6YU.js";
12
+ } from "./chunk-BW7NPFVC.js";
13
13
  import {
14
14
  jsonSchemaOf
15
- } from "./chunk-J5P5VSRG.js";
15
+ } from "./chunk-KAW5VEER.js";
16
16
  import {
17
17
  CliError
18
- } from "./chunk-BUGROVF3.js";
18
+ } from "./chunk-PMGAU6AP.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
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
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/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);
@@ -3,29 +3,29 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  textModel,
5
5
  vectorModelKey
6
- } from "./chunk-ARTJLL7W.js";
6
+ } from "./chunk-L6WSFVTD.js";
7
7
  import {
8
8
  OPENAI_URL,
9
9
  openRemote,
10
10
  remoteKey,
11
11
  remoteModel
12
- } from "./chunk-L433IDOX.js";
12
+ } from "./chunk-AHZQMSXW.js";
13
13
  import {
14
14
  endpointFetch
15
- } from "./chunk-WCQW4GYO.js";
15
+ } from "./chunk-QIHJKE4K.js";
16
16
  import {
17
17
  isTextModelInstalled,
18
18
  openEmbedder,
19
19
  textModelsDirectory
20
- } from "./chunk-BAUK2MD5.js";
20
+ } from "./chunk-K3WCBNH4.js";
21
21
  import {
22
22
  CliError
23
- } from "./chunk-BUGROVF3.js";
23
+ } from "./chunk-PMGAU6AP.js";
24
24
  import {
25
25
  __name
26
26
  } from "./chunk-ZVVMGPBJ.js";
27
27
 
28
- // 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-model.js
28
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/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}`);
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
13
+ // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
14
14
  var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
15
15
  var INTEGER = /^-?\d+$/;
16
16
  var INT64_MIN = -(2n ** 63n);
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
8
8
  var installerOf = /* @__PURE__ */ __name((scriptPath) => {
9
9
  const path = scriptPath.replaceAll("\\", "/");
10
10
  if (path.includes("/_npx/"))
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
 
4
- // 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/ports/wirecat-tools.js
4
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/ports/wirecat-tools.js
5
5
  var WIRECAT_TOOLS = [
6
6
  {
7
7
  command: "tg",
@@ -67,6 +67,13 @@ var WIRECAT_TOOLS = [
67
67
  package: "@wirecat/bitrix24-cli",
68
68
  does: "Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data"
69
69
  },
70
+ {
71
+ command: "amo",
72
+ appName: "amo-cli",
73
+ envPrefix: "AMO",
74
+ package: "@wirecat/amo-cli",
75
+ does: "amoCRM and Kommo: deals, contacts and companies, searchable with your other WireCat data"
76
+ },
70
77
  {
71
78
  command: "pbx",
72
79
  appName: "asterisk-cli",
@@ -87,6 +94,20 @@ var WIRECAT_TOOLS = [
87
94
  envPrefix: "YDISK",
88
95
  package: "@wirecat/yandex-disk-cli",
89
96
  does: "Yandex Disk folders as local text, searchable with your other WireCat data"
97
+ },
98
+ {
99
+ command: "wordpress",
100
+ appName: "wordpress-cli",
101
+ envPrefix: "WCWP",
102
+ package: "@wirecat/wordpress-cli",
103
+ does: "WordPress posts and pages, searchable with your other WireCat data"
104
+ },
105
+ {
106
+ command: "linear",
107
+ appName: "linear-cli",
108
+ envPrefix: "WCLINEAR",
109
+ package: "@wirecat/linear-cli",
110
+ does: "Linear issues and projects, searchable with your other WireCat data"
90
111
  }
91
112
  ];
92
113
 
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  resolvePaths
5
- } from "./chunk-X5S5KUSU.js";
5
+ } from "./chunk-AIQT2GGK.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/path.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/path.js
11
11
  import { realpathSync } from "node:fs";
12
12
  import { userInfo } from "node:os";
13
13
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
@@ -4,15 +4,15 @@ import {
4
4
  OBJECTS,
5
5
  SERVICE,
6
6
  segment
7
- } from "./chunk-DJ2GJ77D.js";
7
+ } from "./chunk-BVK4GUUI.js";
8
8
  import {
9
9
  foldFieldName,
10
10
  values_exports
11
- } from "./chunk-E4FAMU2S.js";
11
+ } from "./chunk-MPNMEWHA.js";
12
12
  import {
13
13
  CliError,
14
14
  isCliError
15
- } from "./chunk-BUGROVF3.js";
15
+ } from "./chunk-PMGAU6AP.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
@@ -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-IXZLMFPO.js";
5
+ } from "./chunk-R7ZOCDNG.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-X5S5KUSU.js";
9
+ } from "./chunk-AIQT2GGK.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
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/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/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");
@@ -53,6 +53,17 @@ var releaseLock = /* @__PURE__ */ __name((path, pid = process.pid) => {
53
53
  if (readLock(path)?.pid === pid)
54
54
  rmSync(path, { force: true });
55
55
  }, "releaseLock");
56
+ var currentPath = /* @__PURE__ */ __name((lock) => lock.replace(/\.lock$/, ".current"), "currentPath");
57
+ var markCurrent = /* @__PURE__ */ __name((lock, at = /* @__PURE__ */ new Date()) => writeSecurely(currentPath(lock), `${JSON.stringify({ at: at.toISOString() })}
58
+ `, 384), "markCurrent");
59
+ var readCurrent = /* @__PURE__ */ __name((lock) => {
60
+ try {
61
+ const { at } = JSON.parse(readFileSync(currentPath(lock), "utf8"));
62
+ return typeof at === "string" ? at : void 0;
63
+ } catch {
64
+ return void 0;
65
+ }
66
+ }, "readCurrent");
56
67
  var servingProfiles = /* @__PURE__ */ __name((app, env) => {
57
68
  const dir = dirname(lockPath(app, "default", env));
58
69
  if (!existsSync(dir))
@@ -69,5 +80,7 @@ export {
69
80
  holdLock,
70
81
  takeLock,
71
82
  releaseLock,
83
+ markCurrent,
84
+ readCurrent,
72
85
  servingProfiles
73
86
  };
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure,
5
5
  isStoreDamage
6
- } from "./chunk-DW23LM47.js";
6
+ } from "./chunk-DDMBPYHP.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-GC6FLHZF.js";
20
+ } from "./chunk-NLPGUYCG.js";
21
21
  import {
22
22
  refuseOwnerStoreInTests
23
- } from "./chunk-3PEKYGZ3.js";
23
+ } from "./chunk-WEM4FZPM.js";
24
24
  import {
25
25
  createRecordLog,
26
26
  resolvePaths,
27
27
  traceIdOf,
28
28
  writeSecurely
29
- } from "./chunk-X5S5KUSU.js";
29
+ } from "./chunk-AIQT2GGK.js";
30
30
  import {
31
31
  isoTime,
32
32
  reference
33
- } from "./chunk-J5P5VSRG.js";
33
+ } from "./chunk-KAW5VEER.js";
34
34
  import {
35
35
  array,
36
36
  boolean,
@@ -51,18 +51,18 @@ import {
51
51
  } from "./chunk-S4UUN6LD.js";
52
52
  import {
53
53
  CliError
54
- } from "./chunk-BUGROVF3.js";
54
+ } from "./chunk-PMGAU6AP.js";
55
55
  import {
56
56
  __name
57
57
  } from "./chunk-ZVVMGPBJ.js";
58
58
 
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
59
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/runs/run.js
60
60
  import { randomUUID } from "node:crypto";
61
61
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
62
62
  import { userInfo } from "node:os";
63
63
  import { join, sep } from "node:path";
64
64
 
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
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
66
66
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
67
67
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
68
68
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -75,7 +75,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
75
75
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
76
76
  }), "snakeLogger");
77
77
 
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
78
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
79
79
  var diagnostic = {
80
80
  event: true,
81
81
  operation: true,
@@ -149,7 +149,7 @@ var LOG_ATTRIBUTES = [
149
149
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
150
150
  ].sort();
151
151
 
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
152
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/runs/run.js
153
153
  var KEEP_RUNS_FOR_DAYS = 30;
154
154
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
155
155
  var KEEP_STORE_RUNS_FOR_DAYS = 3;
@@ -516,7 +516,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
516
516
  };
517
517
  }, "metadataOf");
518
518
 
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
519
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/runs/scope.js
520
520
  import { AsyncLocalStorage } from "node:async_hooks";
521
521
  import { randomBytes } from "node:crypto";
522
522
  var scopes = new AsyncLocalStorage();
@@ -569,7 +569,7 @@ var attempts = new AsyncLocalStorage();
569
569
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
570
570
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
571
571
 
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
572
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/tasks/model.js
573
573
  var TASK_KINDS = ["question", "request", "mention", "promise"];
574
574
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
575
575
  var CLOSED_STATES = ["done", "dismissed"];
@@ -584,7 +584,7 @@ function closeTask(task, state, by, at, reason) {
584
584
  }
585
585
  __name(closeTask, "closeTask");
586
586
 
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
587
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/tasks/priority.js
588
588
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
589
589
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
590
590
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -613,7 +613,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
613
613
  }, "priorityOf");
614
614
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
615
615
 
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
616
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/tasks/service.js
617
617
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
618
618
  async function find(id2) {
619
619
  const task = await store.get(id2);
@@ -673,20 +673,20 @@ function median(values) {
673
673
  }
674
674
  __name(median, "median");
675
675
 
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
676
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/tasks/store.js
677
677
  function matches(task, filter) {
678
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);
679
679
  }
680
680
  __name(matches, "matches");
681
681
 
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
682
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/source-review.js
683
683
  var SOURCE_REVIEW_KIND = "memory_source_review";
684
684
  var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
685
685
  var ERASED_TEXT = "[source erased]";
686
686
  var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
687
687
  var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
688
688
 
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
689
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/entities/fields.js
690
690
  var text = string();
691
691
  var id = pipe(string(), minLength(1));
692
692
  var time = isoTime;
@@ -711,7 +711,7 @@ var author = strictObject({
711
711
  name: nullable(text)
712
712
  });
713
713
 
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
714
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
715
715
  var organization = strictObject({
716
716
  id,
717
717
  ref: reference,
@@ -741,7 +741,7 @@ var reminder = strictObject({
741
741
  receipt: nullable(text)
742
742
  });
743
743
 
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
744
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/marks.js
745
745
  import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
746
746
  var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
747
747
  var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
@@ -862,7 +862,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
862
862
  return { previous, cleared };
863
863
  }, "recordDeepCheck");
864
864
 
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
865
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
866
866
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
867
867
  var MEMORY_KINDS = ["summary", "digest", "preference"];
868
868
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -870,7 +870,7 @@ var MEMORY_SCOPES = ["personal", "work"];
870
870
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
871
871
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
872
872
 
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
873
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
874
874
  var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
875
875
  var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
876
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;
@@ -880,7 +880,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
880
880
  };
881
881
  }, "sourceOf");
882
882
 
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
883
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
884
884
  var LINK_KINDS = [
885
885
  "links-to",
886
886
  "blocked-by",
@@ -904,7 +904,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
904
904
  var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
905
905
  var COUNTERPART_ROLE = "counterpart";
906
906
 
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
907
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/query.js
908
908
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
909
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");
910
910
  var fail = /* @__PURE__ */ __name((message) => {
@@ -927,7 +927,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
927
927
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
928
928
  }, "sourceOf");
929
929
 
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
930
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/account-list.js
931
931
  var ACCOUNT_GROUPS = "accountGroups";
932
932
  var ACCOUNT_GROUPS_SETTING = "account_groups";
933
933
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -1159,7 +1159,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
1159
1159
  return { accounts: [...chosen.values()], skipped };
1160
1160
  }, "fitting");
1161
1161
 
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
1162
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/categories.js
1163
1163
  var CATEGORIES = ["client", "supplier", "partner", "employer"];
1164
1164
 
1165
1165
  export {
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-A6UFH3QU.js";
11
+ } from "./chunk-SBNZYRVZ.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // 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/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -5,10 +5,10 @@ import {
5
5
  id,
6
6
  text,
7
7
  time
8
- } from "./chunk-IBTMK5KD.js";
8
+ } from "./chunk-YJLJZMEA.js";
9
9
  import {
10
10
  reference
11
- } from "./chunk-J5P5VSRG.js";
11
+ } from "./chunk-KAW5VEER.js";
12
12
  import {
13
13
  array,
14
14
  nullable,
@@ -20,7 +20,7 @@ import {
20
20
  unknown
21
21
  } from "./chunk-S4UUN6LD.js";
22
22
 
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/entities/note.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/entities/note.js
24
24
  var link = {
25
25
  target_text: nullable(text),
26
26
  kind: text,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
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/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {