@wirecat/hubspot-cli 0.3.2 → 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 (152) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +6 -5
  3. package/dist/bin/hubspot.js +2 -2
  4. package/dist/bundle/agent-NST4YXJR.js +40 -0
  5. package/dist/bundle/{all-profiles-6452VSJB.js → all-profiles-JVEE4PXX.js} +11 -11
  6. package/dist/bundle/{anthropic-VQUOVYOW.js → anthropic-6HT57GNF.js} +5 -5
  7. package/dist/bundle/{app-server-EQZUP4H4.js → app-server-FOBFF6G6.js} +68 -68
  8. package/dist/bundle/{bun-AJPJ4ZUN.js → bun-GW443QB3.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-AGXGSF6D.js → bun-sqlite-TGIAICDN.js} +6 -6
  10. package/dist/bundle/{chunk-ARTJLL7W.js → chunk-2BCWK5BF.js} +5 -5
  11. package/dist/bundle/{chunk-JUKAIXKY.js → chunk-2Q2XIXDL.js} +1 -1
  12. package/dist/bundle/{chunk-X5S5KUSU.js → chunk-3BM6KBWP.js} +19 -19
  13. package/dist/bundle/{chunk-J5P5VSRG.js → chunk-3LMW7U7F.js} +8 -8
  14. package/dist/bundle/{chunk-NNMU2TDU.js → chunk-3MPMYAII.js} +1 -1
  15. package/dist/bundle/{chunk-WGBVRDY3.js → chunk-3MUHCLRY.js} +25 -3
  16. package/dist/bundle/{chunk-TIHDBKA7.js → chunk-3SRGN5MQ.js} +2 -2
  17. package/dist/bundle/{chunk-EMOVVERN.js → chunk-4OPN3KCN.js} +5 -5
  18. package/dist/bundle/{chunk-6MFP47XC.js → chunk-5G4L6NQJ.js} +35 -35
  19. package/dist/bundle/{chunk-DQB5JMTY.js → chunk-5KLNBGPU.js} +1 -1
  20. package/dist/bundle/{chunk-ABXVU5O4.js → chunk-5OBVICFK.js} +8 -1
  21. package/dist/bundle/{chunk-LKSNISYV.js → chunk-5WKJFMC3.js} +4 -4
  22. package/dist/bundle/{chunk-B2W3C4N6.js → chunk-5ZVYIA56.js} +5 -5
  23. package/dist/bundle/{chunk-AF7DANIR.js → chunk-6NUXFVJQ.js} +1 -1
  24. package/dist/bundle/{chunk-3PEKYGZ3.js → chunk-6ULR7N3T.js} +2 -2
  25. package/dist/bundle/{chunk-VW5F6FK3.js → chunk-7JVKQ6NM.js} +4 -4
  26. package/dist/bundle/{chunk-VQEAZXTV.js → chunk-7OJ43BAH.js} +7 -7
  27. package/dist/bundle/{chunk-PMP37KLR.js → chunk-7QH5BZUG.js} +3 -3
  28. package/dist/bundle/{chunk-OJIJVOOA.js → chunk-A6PVEUGN.js} +16 -16
  29. package/dist/bundle/{chunk-FIVD4HM4.js → chunk-AT43MYQL.js} +8 -8
  30. package/dist/bundle/{chunk-3R4KRNUZ.js → chunk-ATGD64VO.js} +8 -8
  31. package/dist/bundle/{chunk-DSRXCLPO.js → chunk-AV2ZJ4WX.js} +1 -1
  32. package/dist/bundle/{chunk-3DIXAEGH.js → chunk-BXZRSXBL.js} +3 -3
  33. package/dist/bundle/{chunk-5K3FGXZH.js → chunk-CFQQTDSA.js} +1 -1
  34. package/dist/bundle/{chunk-KO4VR5NK.js → chunk-DBPFHJXX.js} +4 -4
  35. package/dist/bundle/{chunk-GRFICQTZ.js → chunk-DG4RBKIV.js} +1 -1
  36. package/dist/bundle/{chunk-5AYKCKSE.js → chunk-E33KM3DB.js} +11 -11
  37. package/dist/bundle/{chunk-5ZV7REBE.js → chunk-EBJYK7UM.js} +63 -60
  38. package/dist/bundle/{chunk-GZZR5U3K.js → chunk-ETKLP4VE.js} +12 -12
  39. package/dist/bundle/{chunk-BN22EKQQ.js → chunk-EU7AVWSX.js} +2 -2
  40. package/dist/bundle/{chunk-PLRUUXK7.js → chunk-F3HJ2E3P.js} +6 -6
  41. package/dist/bundle/{chunk-B3EH22CO.js → chunk-F4ZLRS4B.js} +1 -1
  42. package/dist/bundle/{chunk-5PPG73G6.js → chunk-FK4LEJZM.js} +3 -3
  43. package/dist/bundle/{chunk-M763RNWP.js → chunk-FOLKK6FW.js} +13 -13
  44. package/dist/bundle/{chunk-NTQBS2JL.js → chunk-FWW2CUXH.js} +4 -4
  45. package/dist/bundle/{chunk-SEELWPRD.js → chunk-GJSHLF43.js} +8 -8
  46. package/dist/bundle/{chunk-CBCEMFCF.js → chunk-GOOXUCJW.js} +2 -2
  47. package/dist/bundle/{chunk-BUGROVF3.js → chunk-HM6AMYHR.js} +2 -2
  48. package/dist/bundle/{chunk-PHXOL5HZ.js → chunk-HM72O37C.js} +156 -156
  49. package/dist/bundle/{chunk-KVXEEKBB.js → chunk-HPRKSL5S.js} +2 -2
  50. package/dist/bundle/{chunk-3TEFE6YU.js → chunk-HQYJ66ZX.js} +7 -7
  51. package/dist/bundle/{chunk-3I2FGNWO.js → chunk-HVXOA4FO.js} +1 -1
  52. package/dist/bundle/{chunk-IBTMK5KD.js → chunk-IED6MKPU.js} +25 -25
  53. package/dist/bundle/{chunk-LA3YU4K7.js → chunk-JKNUCEII.js} +1 -1
  54. package/dist/bundle/{chunk-IQ2XZ62J.js → chunk-JWO3PB5Z.js} +18 -18
  55. package/dist/bundle/{chunk-BAUK2MD5.js → chunk-K4DWBOO6.js} +43 -64
  56. package/dist/bundle/{chunk-YIF5M5R6.js → chunk-LS4S7PAP.js} +3 -3
  57. package/dist/bundle/{chunk-RVWGFD32.js → chunk-LX7QMRRG.js} +13 -13
  58. package/dist/bundle/{chunk-WCQW4GYO.js → chunk-M25KVDHA.js} +24 -8
  59. package/dist/bundle/{chunk-L433IDOX.js → chunk-MQACXJLG.js} +8 -8
  60. package/dist/bundle/{chunk-7VHBS5BJ.js → chunk-N4EIJ53V.js} +2 -2
  61. package/dist/bundle/{chunk-O3VM5PTJ.js → chunk-NL3RKJR6.js} +1 -1
  62. package/dist/bundle/{chunk-LT5KE44Q.js → chunk-NLZADZ4F.js} +61 -61
  63. package/dist/bundle/{chunk-E4X7JAFC.js → chunk-OLDIP4CV.js} +3 -3
  64. package/dist/bundle/{chunk-AVUMH42T.js → chunk-PKFLSX5F.js} +8 -8
  65. package/dist/bundle/{chunk-IXZLMFPO.js → chunk-PMJCZIV4.js} +1 -1
  66. package/dist/bundle/{chunk-NZGI74GS.js → chunk-PQUZ2YDC.js} +6 -6
  67. package/dist/bundle/{chunk-TKK3ECDS.js → chunk-Q7DIEU6L.js} +7 -7
  68. package/dist/bundle/{chunk-E4FAMU2S.js → chunk-QIFCH5DZ.js} +347 -313
  69. package/dist/bundle/{chunk-WRCKE5ND.js → chunk-QJHRRJKD.js} +3 -3
  70. package/dist/bundle/{chunk-7UEL65GQ.js → chunk-QNQ4V4UT.js} +8 -8
  71. package/dist/bundle/{chunk-JP2HJXFO.js → chunk-QODPEZC5.js} +3 -3
  72. package/dist/bundle/{chunk-ODPU3II6.js → chunk-QV4GDVBN.js} +8 -8
  73. package/dist/bundle/{chunk-2A64XS22.js → chunk-RFGIUCKU.js} +3 -3
  74. package/dist/bundle/{chunk-GC6FLHZF.js → chunk-T3GZKV5A.js} +12 -12
  75. package/dist/bundle/{chunk-HPZRUY6S.js → chunk-TAF4PKDS.js} +1 -1
  76. package/dist/bundle/{chunk-K4X5ZHI2.js → chunk-UHHXZKB2.js} +16 -16
  77. package/dist/bundle/{chunk-4DNHXRCJ.js → chunk-UIWWAT3C.js} +7 -7
  78. package/dist/bundle/{chunk-ITGNDZRR.js → chunk-V23OHBGM.js} +3 -3
  79. package/dist/bundle/{chunk-U6XA3OOM.js → chunk-V2B2OWTC.js} +2 -2
  80. package/dist/bundle/{chunk-2NCO4E4T.js → chunk-VDAYIXV4.js} +6 -6
  81. package/dist/bundle/{chunk-7NZT7Y55.js → chunk-VMF2UIQI.js} +1 -1
  82. package/dist/bundle/{chunk-QBEDVMLZ.js → chunk-W5X37TBC.js} +2 -2
  83. package/dist/bundle/{chunk-EE4JSYGZ.js → chunk-WATDMTDC.js} +3 -3
  84. package/dist/bundle/{chunk-Q27QAB4X.js → chunk-WBUVNKHJ.js} +7 -7
  85. package/dist/bundle/{chunk-7LQRXVQ3.js → chunk-WLFYEAZ6.js} +978 -548
  86. package/dist/bundle/{chunk-5YNAVVCW.js → chunk-X5U7GLHD.js} +3 -3
  87. package/dist/bundle/{chunk-JK2SNLU5.js → chunk-XCDRFC6G.js} +17 -17
  88. package/dist/bundle/{chunk-DJ2GJ77D.js → chunk-XDDTJYGA.js} +434 -371
  89. package/dist/bundle/{chunk-2PRVWEJC.js → chunk-XJVFXHDI.js} +2 -2
  90. package/dist/bundle/{chunk-2HYGCLKN.js → chunk-XMWMA2N5.js} +77 -38
  91. package/dist/bundle/{chunk-BHZUPOQY.js → chunk-YYYRE4AV.js} +26 -26
  92. package/dist/bundle/{chunk-DW23LM47.js → chunk-Z3YOKGVZ.js} +2 -2
  93. package/dist/bundle/{chunk-A6UFH3QU.js → chunk-Z4PY5BDP.js} +4 -4
  94. package/dist/bundle/command-contract-LYX2QNIA.js +40 -0
  95. package/dist/bundle/{command-server-entry-GJSMDSNE.js → command-server-entry-OJQ55UA2.js} +28 -28
  96. package/dist/bundle/{decode-6PLXHVHW.js → decode-CDQDRPRJ.js} +5 -5
  97. package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-JQBAZWCL.js} +8 -8
  98. package/dist/bundle/{echarts-UZ7QLRE2.js → echarts-GJ5JJG2A.js} +2 -2
  99. package/dist/bundle/{embed-AWLL4EBF.js → embed-BUQXGMKR.js} +6 -6
  100. package/dist/bundle/{embedder-MM225YJ6.js → embedder-FCX6LE4O.js} +9 -9
  101. package/dist/bundle/{failure-MR2XVHFP.js → failure-I6AAF5R5.js} +2 -2
  102. package/dist/bundle/{first-run-KCZVNFJ7.js → first-run-RPYEXXQK.js} +12 -12
  103. package/dist/bundle/first-screen-Y4EH3HZS.js +40 -0
  104. package/dist/bundle/hubspot.js +25 -25
  105. package/dist/bundle/{instructions-ZJ7U3QUE.js → instructions-LPVTPERS.js} +1 -1
  106. package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-YGOAUNC3.js} +2 -2
  107. package/dist/bundle/meeting-combined-FEEVVUGC.js +25 -0
  108. package/dist/bundle/{meeting-model-OYXB2NOE.js → meeting-model-TRGBEWCY.js} +11 -11
  109. package/dist/bundle/{meeting-semantic-S3DBB7XD.js → meeting-semantic-RSF5KNKD.js} +6 -6
  110. package/dist/bundle/{node-HGCZGZ4R.js → node-UAT3EIAP.js} +2 -2
  111. package/dist/bundle/{node-sqlite-RKYSRKEB.js → node-sqlite-3HKDQNFD.js} +7 -7
  112. package/dist/bundle/{oauth-PYDCAQ7Y.js → oauth-DYW2NSZP.js} +7 -7
  113. package/dist/bundle/{open-UCDSQUN2.js → open-KBRXJ5BC.js} +5 -5
  114. package/dist/bundle/{openai-Y4F5ZC7O.js → openai-YNCLRTSK.js} +15 -15
  115. package/dist/bundle/{process-P7FB7YO7.js → process-63BB7LKP.js} +1 -1
  116. package/dist/bundle/{program-VKYZXANH.js → program-VX52OB3O.js} +132 -98
  117. package/dist/bundle/{prompt-E5TKZ37Q.js → prompt-TWLJ3M2O.js} +5 -5
  118. package/dist/bundle/{recognize-5NYPTSLT.js → recognize-GQ6DLGE7.js} +4 -4
  119. package/dist/bundle/{remote-U4LUAHF2.js → remote-RKNSF3TT.js} +9 -9
  120. package/dist/bundle/{rerank-AJAVKK5L.js → rerank-H4HSGQUJ.js} +7 -7
  121. package/dist/bundle/{schemas-QLQ2K6DL.js → schemas-LDK7O6VW.js} +1 -1
  122. package/dist/bundle/{serve-4UJ3R5IP.js → serve-4ZNIAL7H.js} +9 -9
  123. package/dist/bundle/server-3IYIZEEQ.js +86 -0
  124. package/dist/bundle/{server-DUKWJUKD.js → server-4G4QB3QN.js} +60 -60
  125. package/dist/bundle/{source-LJG4BWRU.js → source-2UCNCCO7.js} +79 -79
  126. package/dist/bundle/{sqlite-runtime-KLEA4XAU.js → sqlite-runtime-C2JYC7JF.js} +6 -6
  127. package/dist/bundle/{state-COGSYMVH.js → state-3KDXCXHG.js} +6 -6
  128. package/dist/bundle/store-2MNUHHZC.js +32 -0
  129. package/dist/bundle/{store-V5UMSWK4.js → store-J5FQBZYR.js} +26 -22
  130. package/dist/bundle/{store-BJXCSP26.js → store-LXLG5HTS.js} +24 -24
  131. package/dist/bundle/store-maintenance-command-DDB7TR6V.js +73 -0
  132. package/dist/bundle/surface-ZTZANYKC.js +72 -0
  133. package/dist/bundle/writer-X7PGBLDH.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 +56 -8
  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 +3 -3
  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
@@ -6,13 +6,13 @@ import {
6
6
  openCache,
7
7
  openFile,
8
8
  storeCapable
9
- } from "./chunk-NZGI74GS.js";
10
- import "./chunk-JUKAIXKY.js";
11
- import "./chunk-X5S5KUSU.js";
12
- import "./chunk-J5P5VSRG.js";
9
+ } from "./chunk-PQUZ2YDC.js";
10
+ import "./chunk-2Q2XIXDL.js";
11
+ import "./chunk-3BM6KBWP.js";
12
+ import "./chunk-3LMW7U7F.js";
13
13
  import "./chunk-S4UUN6LD.js";
14
14
  import "./chunk-Y5E2WNWB.js";
15
- import "./chunk-BUGROVF3.js";
15
+ import "./chunk-HM6AMYHR.js";
16
16
  import "./chunk-ZVVMGPBJ.js";
17
17
  export {
18
18
  CAPABILITY_STATEMENTS,
@@ -3,45 +3,45 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  toModelRate
6
- } from "./chunk-LKSNISYV.js";
7
- import "./chunk-RVWGFD32.js";
6
+ } from "./chunk-5WKJFMC3.js";
7
+ import "./chunk-LX7QMRRG.js";
8
8
  import {
9
9
  OPENAI_URL,
10
10
  refuseModelAddress
11
- } from "./chunk-L433IDOX.js";
11
+ } from "./chunk-MQACXJLG.js";
12
12
  import {
13
13
  endpointFetch,
14
14
  onThisComputer,
15
15
  providerWaitMs
16
- } from "./chunk-WCQW4GYO.js";
17
- import "./chunk-4DNHXRCJ.js";
18
- import "./chunk-BAUK2MD5.js";
16
+ } from "./chunk-M25KVDHA.js";
17
+ import "./chunk-UIWWAT3C.js";
18
+ import "./chunk-K4DWBOO6.js";
19
19
  import {
20
20
  OPENAI_TRANSCRIBE_MODEL,
21
21
  VAD,
22
22
  filesPresent,
23
23
  modelsDirectory,
24
24
  vadPath
25
- } from "./chunk-KO4VR5NK.js";
26
- import "./chunk-3PEKYGZ3.js";
25
+ } from "./chunk-DBPFHJXX.js";
26
+ import "./chunk-6ULR7N3T.js";
27
27
  import {
28
28
  DEFAULT_RETRY,
29
29
  backoffMs
30
- } from "./chunk-X5S5KUSU.js";
31
- import "./chunk-J5P5VSRG.js";
30
+ } from "./chunk-3BM6KBWP.js";
31
+ import "./chunk-3LMW7U7F.js";
32
32
  import "./chunk-S4UUN6LD.js";
33
33
  import "./chunk-Y5E2WNWB.js";
34
34
  import {
35
35
  CliError
36
- } from "./chunk-BUGROVF3.js";
36
+ } from "./chunk-HM6AMYHR.js";
37
37
  import {
38
38
  __name
39
39
  } from "./chunk-ZVVMGPBJ.js";
40
40
 
41
- // 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/speech/openai.js
41
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/speech/openai.js
42
42
  import { setTimeout as wait } from "node:timers/promises";
43
43
 
44
- // 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/speech/wav.js
44
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/speech/wav.js
45
45
  var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
46
46
  const bytes = Buffer.alloc(44 + samples.length * 2);
47
47
  bytes.write("RIFF", 0, "ascii");
@@ -62,7 +62,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
62
62
  return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
63
63
  }, "encodeWav");
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/speech/openai.js
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/speech/openai.js
66
66
  var LONGEST_REQUEST_SECONDS = 600;
67
67
  var JOINED_SECONDS = 0.2;
68
68
  var PAD_SECONDS = 0.2;
@@ -186,7 +186,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
186
186
  return pieces;
187
187
  }, "piecesOf");
188
188
  var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
189
- const { openSpeechCutter } = await import("./recognize-5NYPTSLT.js");
189
+ const { openSpeechCutter } = await import("./recognize-GQ6DLGE7.js");
190
190
  return openSpeechCutter(vadModel);
191
191
  }, "openCutter");
192
192
  var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
@@ -5,7 +5,7 @@ import {
5
5
  __name
6
6
  } from "./chunk-ZVVMGPBJ.js";
7
7
 
8
- // 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/embeddings/process.js
8
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/embeddings/process.js
9
9
  import { spawn } from "node:child_process";
10
10
  import { createInterface } from "node:readline";
11
11
  import { fileURLToPath } from "node:url";
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  HUBSPOT_WRITES
5
- } from "./chunk-5PPG73G6.js";
5
+ } from "./chunk-FK4LEJZM.js";
6
6
  import {
7
7
  accountDetails
8
- } from "./chunk-QBEDVMLZ.js";
8
+ } from "./chunk-W5X37TBC.js";
9
9
  import {
10
10
  LONGEST_PACE_WAIT_MS,
11
11
  PACE,
@@ -37,37 +37,37 @@ import {
37
37
  skillCommand,
38
38
  upgradeCommand,
39
39
  writeCsv
40
- } from "./chunk-DJ2GJ77D.js";
41
- import "./chunk-O3VM5PTJ.js";
40
+ } from "./chunk-XDDTJYGA.js";
41
+ import "./chunk-NL3RKJR6.js";
42
42
  import {
43
43
  PROVIDER
44
- } from "./chunk-YIF5M5R6.js";
45
- import "./chunk-7NZT7Y55.js";
44
+ } from "./chunk-LS4S7PAP.js";
45
+ import "./chunk-VMF2UIQI.js";
46
46
  import {
47
47
  SOURCE_SEARCHED,
48
48
  allAnswer,
49
49
  historySkipsOf,
50
50
  offsetOf,
51
51
  refuseOffline
52
- } from "./chunk-BHZUPOQY.js";
53
- import "./chunk-PLRUUXK7.js";
54
- import "./chunk-3R4KRNUZ.js";
55
- import "./chunk-HPZRUY6S.js";
52
+ } from "./chunk-YYYRE4AV.js";
53
+ import "./chunk-F3HJ2E3P.js";
54
+ import "./chunk-ATGD64VO.js";
55
+ import "./chunk-TAF4PKDS.js";
56
56
  import {
57
57
  addStoreMaintenanceCommands
58
- } from "./chunk-5ZV7REBE.js";
58
+ } from "./chunk-EBJYK7UM.js";
59
59
  import {
60
60
  commandPathKey,
61
61
  commandPermissions,
62
62
  terminalAsker
63
- } from "./chunk-K4X5ZHI2.js";
64
- import "./chunk-ODPU3II6.js";
65
- import "./chunk-VQEAZXTV.js";
66
- import "./chunk-GZZR5U3K.js";
67
- import "./chunk-BN22EKQQ.js";
68
- import "./chunk-NTQBS2JL.js";
69
- import "./chunk-B2W3C4N6.js";
70
- import "./chunk-AVUMH42T.js";
63
+ } from "./chunk-UHHXZKB2.js";
64
+ import "./chunk-QV4GDVBN.js";
65
+ import "./chunk-7OJ43BAH.js";
66
+ import "./chunk-ETKLP4VE.js";
67
+ import "./chunk-EU7AVWSX.js";
68
+ import "./chunk-FWW2CUXH.js";
69
+ import "./chunk-5ZVYIA56.js";
70
+ import "./chunk-PKFLSX5F.js";
71
71
  import {
72
72
  CRM_ASSIGN_OTHERS_KEY,
73
73
  CRM_WRITE_DEFAULTS,
@@ -112,18 +112,18 @@ import {
112
112
  wantedCodes,
113
113
  withCustomFields,
114
114
  withReadableDeal
115
- } from "./chunk-E4FAMU2S.js";
115
+ } from "./chunk-QIFCH5DZ.js";
116
116
  import {
117
117
  safeName
118
- } from "./chunk-RVWGFD32.js";
119
- import "./chunk-LA3YU4K7.js";
120
- import "./chunk-ABXVU5O4.js";
118
+ } from "./chunk-LX7QMRRG.js";
119
+ import "./chunk-JKNUCEII.js";
120
+ import "./chunk-5OBVICFK.js";
121
121
  import {
122
122
  latestVersion,
123
123
  runUpdate,
124
124
  updateNotice
125
- } from "./chunk-PMP37KLR.js";
126
- import "./chunk-5K3FGXZH.js";
125
+ } from "./chunk-7QH5BZUG.js";
126
+ import "./chunk-CFQQTDSA.js";
127
127
  import {
128
128
  commandPath,
129
129
  dateWindow,
@@ -137,14 +137,14 @@ import {
137
137
  typedQuery,
138
138
  unfilteredQuery,
139
139
  withQuery
140
- } from "./chunk-M763RNWP.js";
141
- import "./chunk-2A64XS22.js";
142
- import "./chunk-2NCO4E4T.js";
143
- import "./chunk-5AYKCKSE.js";
144
- import "./chunk-E4X7JAFC.js";
145
- import "./chunk-A6UFH3QU.js";
146
- import "./chunk-5YNAVVCW.js";
147
- import "./chunk-EMOVVERN.js";
140
+ } from "./chunk-FOLKK6FW.js";
141
+ import "./chunk-RFGIUCKU.js";
142
+ import "./chunk-VDAYIXV4.js";
143
+ import "./chunk-E33KM3DB.js";
144
+ import "./chunk-OLDIP4CV.js";
145
+ import "./chunk-Z4PY5BDP.js";
146
+ import "./chunk-X5U7GLHD.js";
147
+ import "./chunk-4OPN3KCN.js";
148
148
  import {
149
149
  Argument,
150
150
  Command,
@@ -188,13 +188,13 @@ import {
188
188
  sharedCommand,
189
189
  snakeKeys,
190
190
  snakeKeysKeeping
191
- } from "./chunk-PHXOL5HZ.js";
192
- import "./chunk-FIVD4HM4.js";
193
- import "./chunk-EE4JSYGZ.js";
194
- import "./chunk-ARTJLL7W.js";
195
- import "./chunk-IXZLMFPO.js";
196
- import "./chunk-JK2SNLU5.js";
197
- import "./chunk-3DIXAEGH.js";
191
+ } from "./chunk-HM72O37C.js";
192
+ import "./chunk-AT43MYQL.js";
193
+ import "./chunk-WATDMTDC.js";
194
+ import "./chunk-2BCWK5BF.js";
195
+ import "./chunk-PMJCZIV4.js";
196
+ import "./chunk-XCDRFC6G.js";
197
+ import "./chunk-BXZRSXBL.js";
198
198
  import {
199
199
  CRM_CHANGES,
200
200
  CRM_SCOPES,
@@ -204,48 +204,48 @@ import {
204
204
  crmSettingKey,
205
205
  seenBy,
206
206
  viewerSql
207
- } from "./chunk-7LQRXVQ3.js";
208
- import "./chunk-7UEL65GQ.js";
207
+ } from "./chunk-WLFYEAZ6.js";
208
+ import "./chunk-QNQ4V4UT.js";
209
209
  import {
210
210
  dayIn
211
- } from "./chunk-WRCKE5ND.js";
212
- import "./chunk-Q27QAB4X.js";
211
+ } from "./chunk-QJHRRJKD.js";
212
+ import "./chunk-WBUVNKHJ.js";
213
213
  import {
214
214
  count,
215
215
  createTaskService,
216
216
  text,
217
217
  time
218
- } from "./chunk-IBTMK5KD.js";
219
- import "./chunk-DW23LM47.js";
220
- import "./chunk-L433IDOX.js";
218
+ } from "./chunk-IED6MKPU.js";
219
+ import "./chunk-Z3YOKGVZ.js";
220
+ import "./chunk-MQACXJLG.js";
221
221
  import {
222
222
  hostFetch,
223
223
  retrying
224
- } from "./chunk-WCQW4GYO.js";
225
- import "./chunk-4DNHXRCJ.js";
226
- import "./chunk-BAUK2MD5.js";
227
- import "./chunk-KO4VR5NK.js";
224
+ } from "./chunk-M25KVDHA.js";
225
+ import "./chunk-UIWWAT3C.js";
226
+ import "./chunk-K4DWBOO6.js";
227
+ import "./chunk-DBPFHJXX.js";
228
228
  import {
229
229
  DESKTOP,
230
230
  IDENTITY,
231
231
  PACKAGE,
232
232
  SKILL
233
- } from "./chunk-TKK3ECDS.js";
234
- import "./chunk-TIHDBKA7.js";
233
+ } from "./chunk-Q7DIEU6L.js";
234
+ import "./chunk-3SRGN5MQ.js";
235
235
  import "./chunk-EH6ZEJGT.js";
236
- import "./chunk-WGBVRDY3.js";
237
- import "./chunk-SEELWPRD.js";
236
+ import "./chunk-3MUHCLRY.js";
237
+ import "./chunk-GJSHLF43.js";
238
238
  import {
239
239
  installerOf
240
- } from "./chunk-3I2FGNWO.js";
240
+ } from "./chunk-HVXOA4FO.js";
241
241
  import {
242
242
  fieldsOf
243
- } from "./chunk-3TEFE6YU.js";
243
+ } from "./chunk-HQYJ66ZX.js";
244
244
  import {
245
245
  foldName
246
- } from "./chunk-IQ2XZ62J.js";
247
- import "./chunk-JP2HJXFO.js";
248
- import "./chunk-DQB5JMTY.js";
246
+ } from "./chunk-JWO3PB5Z.js";
247
+ import "./chunk-QODPEZC5.js";
248
+ import "./chunk-5KLNBGPU.js";
249
249
  import {
250
250
  CRM_ACTIVITY_KINDS,
251
251
  CRM_KINDS,
@@ -256,32 +256,32 @@ import {
256
256
  normalCrmUserId,
257
257
  parseDecimal,
258
258
  scaleOf
259
- } from "./chunk-GC6FLHZF.js";
260
- import "./chunk-NNMU2TDU.js";
261
- import "./chunk-CBCEMFCF.js";
259
+ } from "./chunk-T3GZKV5A.js";
260
+ import "./chunk-3MPMYAII.js";
261
+ import "./chunk-GOOXUCJW.js";
262
262
  import {
263
263
  SAVE_HELP,
264
264
  defineQuery,
265
265
  queryFieldsOf,
266
266
  timezoneOf,
267
267
  zonedMoment
268
- } from "./chunk-LT5KE44Q.js";
269
- import "./chunk-DSRXCLPO.js";
268
+ } from "./chunk-NLZADZ4F.js";
269
+ import "./chunk-AV2ZJ4WX.js";
270
270
  import "./chunk-D72URWJE.js";
271
271
  import {
272
272
  readSecret
273
- } from "./chunk-ITGNDZRR.js";
274
- import "./chunk-KVXEEKBB.js";
275
- import "./chunk-3PEKYGZ3.js";
276
- import "./chunk-NZGI74GS.js";
277
- import "./chunk-JUKAIXKY.js";
273
+ } from "./chunk-V23OHBGM.js";
274
+ import "./chunk-HPRKSL5S.js";
275
+ import "./chunk-6ULR7N3T.js";
276
+ import "./chunk-PQUZ2YDC.js";
277
+ import "./chunk-2Q2XIXDL.js";
278
278
  import {
279
279
  renderPretty,
280
280
  resolvePaths
281
- } from "./chunk-X5S5KUSU.js";
281
+ } from "./chunk-3BM6KBWP.js";
282
282
  import {
283
283
  isoTime
284
- } from "./chunk-J5P5VSRG.js";
284
+ } from "./chunk-3LMW7U7F.js";
285
285
  import {
286
286
  array,
287
287
  boolean,
@@ -301,8 +301,8 @@ import "./chunk-Y5E2WNWB.js";
301
301
  import {
302
302
  CliError,
303
303
  isCliError
304
- } from "./chunk-BUGROVF3.js";
305
- import "./chunk-GRFICQTZ.js";
304
+ } from "./chunk-HM6AMYHR.js";
305
+ import "./chunk-DG4RBKIV.js";
306
306
  import {
307
307
  __export,
308
308
  __name
@@ -311,7 +311,7 @@ import {
311
311
  // dist/program.js
312
312
  import { join as join4 } from "node:path";
313
313
 
314
- // 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/update/index.js
314
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/update/index.js
315
315
  import { realpathSync } from "node:fs";
316
316
  import { fileURLToPath } from "node:url";
317
317
  var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
@@ -6788,14 +6788,49 @@ var COMMAND_KEYS = Object.fromEntries([
6788
6788
  [`${type}-batch-update`, [`${noun}.update`]],
6789
6789
  [`${type}-batch-upsert`, [`${noun}.create`, `${noun}.update`]]
6790
6790
  ]));
6791
+ var READ_KEYS = Object.fromEntries([
6792
+ ...[
6793
+ ["deals", "deals"],
6794
+ ["contacts", "people"],
6795
+ ["companies", "organizations"],
6796
+ ["leads", "leads"]
6797
+ ].flatMap(([type, noun]) => [
6798
+ [`${type}-list`, `${noun}.list`],
6799
+ [`${type}-search`, `${noun}.list`],
6800
+ [`${type}-batch-read`, `${noun}.list`],
6801
+ [`${type}-get`, `${noun}.show`]
6802
+ ]),
6803
+ ...["notes", "calls", "emails", "meetings", "tasks"].flatMap((type) => ["list", "get", "search", "batch-read"].map((verb) => [`${type}-${verb}`, "activities.list"])),
6804
+ ["owners-list", "users.list"],
6805
+ ["owners-get", "users.show"],
6806
+ ["pipelines-list", "pipelines.list"],
6807
+ ["pipelines-get", "pipelines.show"],
6808
+ ["pipelines-stages-list", "stages.list"],
6809
+ ["pipelines-stages-get", "stages.list"],
6810
+ ...[
6811
+ "properties-list",
6812
+ "properties-get",
6813
+ "properties-batch-read",
6814
+ "properties-groups-list",
6815
+ "properties-groups-get"
6816
+ ].map((command) => [command, "fields.list"])
6817
+ ]);
6791
6818
  var offered = /* @__PURE__ */ __name((operation) => !operation.response?.sensitive, "offered");
6792
6819
  var ERASE_KEY = "people.erase";
6793
6820
  var ERASES = "contacts-gdpr-delete";
6821
+ var COMMAND_GROUPS = /* @__PURE__ */ new Set(["deals", "people", "organizations"]);
6794
6822
  var keysOf = /* @__PURE__ */ __name((operation) => {
6795
6823
  const group = GROUPS.get(firstWord(operation.command));
6796
- const own = operation.effect === "write" && group ? [{ key: `${group}.write` }] : [];
6824
+ const writes = operation.effect === "write" && group !== void 0;
6825
+ const own = !writes ? [] : !COMMAND_GROUPS.has(group) ? [{ key: `${group}.write` }] : COMMAND_KEYS[operation.command] ? [] : [{ key: `${group}.update` }];
6797
6826
  const erases = operation.command === ERASES ? [{ key: ERASE_KEY }] : [];
6798
- return [...own, ...erases, ...(COMMAND_KEYS[operation.command] ?? []).map((key) => ({ key }))];
6827
+ const read = READ_KEYS[operation.command];
6828
+ return [
6829
+ ...own,
6830
+ ...erases,
6831
+ ...(COMMAND_KEYS[operation.command] ?? []).map((key) => ({ key })),
6832
+ ...read ? [{ key: read }] : []
6833
+ ];
6799
6834
  }, "keysOf");
6800
6835
  var isRecord2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRecord");
6801
6836
  var propertiesOf = /* @__PURE__ */ __name((body) => {
@@ -6871,10 +6906,9 @@ var crmApiKeys = /* @__PURE__ */ __name((kind, verb) => {
6871
6906
  }, "crmApiKeys");
6872
6907
  var api = serviceApiPermissions({ manifest: API.manifest });
6873
6908
  var keyOf = /* @__PURE__ */ __name((path) => path[0] === "api" && ["list", "show"].includes(path[1] ?? "") ? null : commandPathKey(path), "keyOf");
6874
- var COMMAND_DEFAULTS = Object.fromEntries([.../* @__PURE__ */ new Set([...Object.values(COMMAND_KEYS).flat(), MOVES.named.key, CLOSES.named.key])].map((key) => [
6875
- key,
6876
- "allow"
6877
- ]));
6909
+ var COMMAND_DEFAULTS = Object.fromEntries([
6910
+ .../* @__PURE__ */ new Set([...Object.values(COMMAND_KEYS).flat(), ...Object.values(READ_KEYS), MOVES.named.key, CLOSES.named.key])
6911
+ ].map((key) => [key, "allow"]));
6878
6912
  var permissions = commandPermissions({
6879
6913
  keyOf,
6880
6914
  extra: [.../* @__PURE__ */ new Set([...api.extra, ...CRM_WRITE_KEYS])],
@@ -7223,12 +7257,12 @@ var apiCommand = /* @__PURE__ */ __name(() => {
7223
7257
  timeZone: sent.timeZone
7224
7258
  }), "failure"),
7225
7259
  token: tokenOf,
7226
- schemas: /* @__PURE__ */ __name(() => import("./schemas-QLQ2K6DL.js").then((module) => module.schemas), "schemas"),
7260
+ schemas: /* @__PURE__ */ __name(() => import("./schemas-LDK7O6VW.js").then((module) => module.schemas), "schemas"),
7227
7261
  definitions: /* @__PURE__ */ __name(() => import("./definitions-MVPICAWV.js").then((module) => module.definitions), "definitions")
7228
7262
  });
7229
7263
  }, "apiCommand");
7230
7264
 
7231
- // 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/crm/stage-tasks.js
7265
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/stage-tasks.js
7232
7266
  var DAY = 864e5;
7233
7267
  var openStageTasks = /* @__PURE__ */ __name(async (store, account, now, { history = false } = {}) => {
7234
7268
  const rules = await store.crm.stageTasks(account);
@@ -7265,7 +7299,7 @@ var openStageTasks = /* @__PURE__ */ __name(async (store, account, now, { histor
7265
7299
  return opened;
7266
7300
  }, "openStageTasks");
7267
7301
 
7268
- // 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/crm/digest.js
7302
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/digest.js
7269
7303
  var HOUR = 36e5;
7270
7304
  var STALE_HOURS = 24;
7271
7305
  var WORDS = {
@@ -7408,7 +7442,7 @@ var healthOf = /* @__PURE__ */ __name(async (store, account, { now, profile }) =
7408
7442
  return stale > STALE_HOURS ? [{ ...named, stale_hours: Math.floor(stale) }] : [];
7409
7443
  }, "healthOf");
7410
7444
 
7411
- // 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/crm/cli/csv.js
7445
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/cli/csv.js
7412
7446
  var csvFormatOption = /* @__PURE__ */ __name(() => annotateOption(new Option("--format <format>", "csv: this page as a table for a spreadsheet; --json=a,b picks its columns").choices(["csv"]), { mcp: false }), "csvFormatOption");
7413
7447
  var DEAL_CSV_COLUMNS = [
7414
7448
  "ref",
@@ -7530,7 +7564,7 @@ var renderCsv = /* @__PURE__ */ __name((command, open2, read, defaults = DEAL_CS
7530
7564
  });
7531
7565
  }, "renderCsv");
7532
7566
 
7533
- // 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/crm/cli/records.js
7567
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/cli/records.js
7534
7568
  var time2 = nullable(isoTime);
7535
7569
  var metadata = optional(record(string(), strictObject({
7536
7570
  label: nullable(string()),
@@ -7899,7 +7933,7 @@ var addRecordWrites = /* @__PURE__ */ __name((group, noun, { within, example, wr
7899
7933
  }, "addRecordWrites");
7900
7934
  var idOf = /* @__PURE__ */ __name((opts) => opts.operationId === void 0 ? {} : { operationId: opts.operationId }, "idOf");
7901
7935
 
7902
- // 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/crm/cli/activities.js
7936
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/cli/activities.js
7903
7937
  var MOST2 = 500;
7904
7938
  var nullableText = nullable(text);
7905
7939
  var REFS = ["deal", "lead", "person", "organization"];
@@ -8012,7 +8046,7 @@ var addCrmActivityCommands = /* @__PURE__ */ __name((program, options) => {
8012
8046
  }, "addCrmActivityCommands");
8013
8047
  var refOf = /* @__PURE__ */ __name((kind, value) => value.includes(":") ? value : `${kind}:${value}`, "refOf");
8014
8048
 
8015
- // 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/crm/cli/changes.js
8049
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/cli/changes.js
8016
8050
  var MOST3 = 500;
8017
8051
  var DAY2 = 864e5;
8018
8052
  var nullableText2 = nullable(text);
@@ -8231,7 +8265,7 @@ var pipelineOf2 = /* @__PURE__ */ __name(async (run3, value) => {
8231
8265
  }) : new CliError("not_found", `no pipeline ${value} in this account`, { reason: "pipeline.not-found" });
8232
8266
  }, "pipelineOf");
8233
8267
 
8234
- // 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/crm/cli/files.js
8268
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/cli/files.js
8235
8269
  import { createHash } from "node:crypto";
8236
8270
  import { chmodSync, constants, copyFileSync, existsSync, linkSync, mkdirSync, readFileSync as readFileSync2, renameSync, rmSync } from "node:fs";
8237
8271
  import { open } from "node:fs/promises";
@@ -8768,7 +8802,7 @@ var syncFiles = /* @__PURE__ */ __name(async (context, outOfTime, deadline = (ms
8768
8802
  return report;
8769
8803
  }, "syncFiles");
8770
8804
 
8771
- // 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/crm/cli/pipeline-view.js
8805
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/cli/pipeline-view.js
8772
8806
  var sumOf = /* @__PURE__ */ __name((amounts) => amounts.map(({ amount, currency }) => `${groupDigits(amount)} ${currency}`).join(", ") || "\u2014", "sumOf");
8773
8807
  var percent = /* @__PURE__ */ __name((share) => share === null ? "\u2014" : `${Math.round(share * 100)}%`, "percent");
8774
8808
  var openStages = /* @__PURE__ */ __name((stages) => {
@@ -8814,7 +8848,7 @@ ${outcomes.join("\n")}`
8814
8848
  ].join("\n\n");
8815
8849
  }, "pipelineView");
8816
8850
 
8817
- // 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/crm/cli/search-all.js
8851
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/cli/search-all.js
8818
8852
  var SEARCHED = ["crm", ...SOURCE_SEARCHED];
8819
8853
  var DEFAULT_LIMIT = 20;
8820
8854
  var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example, viewerOf: viewerOf2 }) => {
@@ -8880,7 +8914,7 @@ var addCrmSearchAll = /* @__PURE__ */ __name((searches, { within, app, example,
8880
8914
  });
8881
8915
  }, "addCrmSearchAll");
8882
8916
 
8883
- // 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/crm/cli/store.js
8917
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/cli/store.js
8884
8918
  import { mkdtempSync, rmSync as rmSync2 } from "node:fs";
8885
8919
  import { tmpdir } from "node:os";
8886
8920
  import { join as join3 } from "node:path";
@@ -8929,7 +8963,7 @@ var withProfile = /* @__PURE__ */ __name(async ({ app, profile, open: open2 }, e
8929
8963
  }
8930
8964
  }, "withProfile");
8931
8965
 
8932
- // 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/crm/cli/index.js
8966
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/crm/cli/index.js
8933
8967
  var MOST4 = 500;
8934
8968
  var STAGE_REF = /^stage:\d+$/;
8935
8969
  var timeField = /* @__PURE__ */ __name((name, example, relation) => nativeField({ name, type: "time", operators: ["term", "range"], example, relation }), "timeField");
@@ -9097,7 +9131,7 @@ var addCrmCommandsDefinition = /* @__PURE__ */ __name((program, options) => {
9097
9131
  renderAnswer(command, outputFor(command), body, view);
9098
9132
  }), "within");
9099
9133
  const example = /* @__PURE__ */ __name((command, ...lines) => annotate(command, { examples: lines.map((line) => `${options.app.command} work ${line}`) }), "example");
9100
- example(answerEntity(annotate(program.command("sync"), { effects: FETCH, offline: false, cooperative: true, partial: true }), "crm_sync", crmSync).description("bring the CRM's copy in the local store up to date: pipelines, companies, contacts, deals and leads that changed since the last sync, or everything with --rescan; a run stops before its deadline or --max-pages and the next one goes on from there. With the activities setting on, also the activities and tasks on the deals and leads it keeps. Then each deal or lead that moved into a stage the stage-tasks setting names opens a local task, once per move"), "sync", "sync --rescan", "sync --max-pages 20").option("--rescan", "list everything again, every id too, dropping a round in progress").option("--max-pages <pages>", "at most this many requests to the CRM in this run", integer(1e5)).action(async (opts, command) => {
9134
+ example(answerEntity(annotate(program.command("sync"), { effects: FETCH, offline: false, cooperative: true, partial: true }), "crm_sync", crmSync).description("bring the CRM's copy in the local store up to date: pipelines, companies, contacts, deals and leads that changed since the last sync, or everything with --rescan; a run stops before its deadline or --max-pages and the next one goes on from there").addHelpText("after", "\nWith the activities setting on, it also copies the activities and tasks on the deals and leads it keeps. Then each deal or lead that moved into a stage the stage-tasks setting names opens a local task, once per move."), "sync", "sync --rescan", "sync --max-pages 20").option("--rescan", "list everything again, every id too, dropping a round in progress").option("--max-pages <pages>", "at most this many requests to the CRM in this run", integer(1e5)).action(async (opts, command) => {
9101
9135
  const { signal } = environmentOf(command);
9102
9136
  await within(command, async (run3) => {
9103
9137
  const source = run3.source();
@@ -9503,7 +9537,7 @@ var addCrmCommands = honoursDryRun(sharedCommand(addCrmCommandsDefinition));
9503
9537
 
9504
9538
  // dist/commands/crm-shared.js
9505
9539
  var savedAccount = /* @__PURE__ */ __name(async (env, profile) => {
9506
- const { openHubspotStore } = await import("./store-7DQGZH64.js");
9540
+ const { openHubspotStore } = await import("./store-2MNUHHZC.js");
9507
9541
  const store = await openHubspotStore(env, { readOnly: true }).catch(() => void 0);
9508
9542
  if (!store)
9509
9543
  return void 0;
@@ -9518,9 +9552,9 @@ var savedAccount = /* @__PURE__ */ __name(async (env, profile) => {
9518
9552
  var openProfile = /* @__PURE__ */ __name(async (command, { readOnly }) => {
9519
9553
  const { env, profile, environment } = contextOf(command);
9520
9554
  const [{ openHubspotStore, PROVIDER: PROVIDER2 }, { hubspotCrmSource }, { hubspotCrmWriter }] = await Promise.all([
9521
- import("./store-7DQGZH64.js"),
9522
- import("./source-LJG4BWRU.js"),
9523
- import("./writer-QOEJONAD.js")
9555
+ import("./store-2MNUHHZC.js"),
9556
+ import("./source-2UCNCCO7.js"),
9557
+ import("./writer-X7PGBLDH.js")
9524
9558
  ]);
9525
9559
  const fromToken = fromEnvironment(command);
9526
9560
  const online = metaOf(command).effects?.remote !== "none";
@@ -3,13 +3,13 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  pasteHint,
5
5
  readSecret
6
- } from "./chunk-ITGNDZRR.js";
7
- import "./chunk-KVXEEKBB.js";
8
- import "./chunk-X5S5KUSU.js";
9
- import "./chunk-J5P5VSRG.js";
6
+ } from "./chunk-V23OHBGM.js";
7
+ import "./chunk-HPRKSL5S.js";
8
+ import "./chunk-3BM6KBWP.js";
9
+ import "./chunk-3LMW7U7F.js";
10
10
  import "./chunk-S4UUN6LD.js";
11
11
  import "./chunk-Y5E2WNWB.js";
12
- import "./chunk-BUGROVF3.js";
12
+ import "./chunk-HM6AMYHR.js";
13
13
  import "./chunk-ZVVMGPBJ.js";
14
14
  export {
15
15
  pasteHint,
@@ -8,12 +8,12 @@ import {
8
8
  openRecognizer,
9
9
  openSpeechCutter,
10
10
  toModelRate
11
- } from "./chunk-LKSNISYV.js";
12
- import "./chunk-X5S5KUSU.js";
13
- import "./chunk-J5P5VSRG.js";
11
+ } from "./chunk-5WKJFMC3.js";
12
+ import "./chunk-3BM6KBWP.js";
13
+ import "./chunk-3LMW7U7F.js";
14
14
  import "./chunk-S4UUN6LD.js";
15
15
  import "./chunk-Y5E2WNWB.js";
16
- import "./chunk-BUGROVF3.js";
16
+ import "./chunk-HM6AMYHR.js";
17
17
  import "./chunk-ZVVMGPBJ.js";
18
18
  export {
19
19
  SAMPLE_RATE,
@@ -8,17 +8,17 @@ import {
8
8
  openRemote,
9
9
  remoteKey,
10
10
  remoteModel
11
- } from "./chunk-L433IDOX.js";
12
- import "./chunk-WCQW4GYO.js";
13
- import "./chunk-4DNHXRCJ.js";
14
- import "./chunk-BAUK2MD5.js";
15
- import "./chunk-KO4VR5NK.js";
16
- import "./chunk-3PEKYGZ3.js";
17
- import "./chunk-X5S5KUSU.js";
18
- import "./chunk-J5P5VSRG.js";
11
+ } from "./chunk-MQACXJLG.js";
12
+ import "./chunk-M25KVDHA.js";
13
+ import "./chunk-UIWWAT3C.js";
14
+ import "./chunk-K4DWBOO6.js";
15
+ import "./chunk-DBPFHJXX.js";
16
+ import "./chunk-6ULR7N3T.js";
17
+ import "./chunk-3BM6KBWP.js";
18
+ import "./chunk-3LMW7U7F.js";
19
19
  import "./chunk-S4UUN6LD.js";
20
20
  import "./chunk-Y5E2WNWB.js";
21
- import "./chunk-BUGROVF3.js";
21
+ import "./chunk-HM6AMYHR.js";
22
22
  import "./chunk-ZVVMGPBJ.js";
23
23
  export {
24
24
  DEFAULT_OPENAI_MODEL,