@wirecat/hubspot-cli 0.1.0 → 0.3.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 (212) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +40 -16
  3. package/contracts/wirecat.json +1516 -173
  4. package/dist/bin/hubspot.js +2 -2
  5. package/dist/bundle/agent-A7ARC3QB.js +40 -0
  6. package/dist/bundle/{all-profiles-64JAUYW4.js → all-profiles-6452VSJB.js} +64 -22
  7. package/dist/bundle/{anthropic-VJOS4OUM.js → anthropic-VQUOVYOW.js} +6 -6
  8. package/dist/bundle/{app-server-422MCA7S.js → app-server-FFYKM37G.js} +79 -68
  9. package/dist/bundle/{bun-M3J2QTR3.js → bun-AJPJ4ZUN.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-IX3XYA5F.js → bun-sqlite-AGXGSF6D.js} +7 -7
  11. package/dist/bundle/{chunk-N2XADGL4.js → chunk-2A64XS22.js} +4 -4
  12. package/dist/bundle/{chunk-HTAN663T.js → chunk-2HYGCLKN.js} +93 -565
  13. package/dist/bundle/{chunk-FOZYMDRL.js → chunk-2NCO4E4T.js} +6 -6
  14. package/dist/bundle/{chunk-FBCCBCFH.js → chunk-2PRVWEJC.js} +3 -3
  15. package/dist/bundle/{chunk-LOBVOGOE.js → chunk-3DIXAEGH.js} +4 -4
  16. package/dist/bundle/{chunk-O3DYRCIT.js → chunk-3I2FGNWO.js} +1 -1
  17. package/dist/bundle/{chunk-65TWQ7BV.js → chunk-3PEKYGZ3.js} +2 -2
  18. package/dist/bundle/{chunk-DRWWJLI6.js → chunk-3R4KRNUZ.js} +8 -8
  19. package/dist/bundle/{chunk-2VGD63G6.js → chunk-3TEFE6YU.js} +7 -7
  20. package/dist/bundle/{chunk-BKXDHU3G.js → chunk-3WIVJJNB.js} +19 -17
  21. package/dist/bundle/{chunk-TI46WQXQ.js → chunk-4DNHXRCJ.js} +7 -7
  22. package/dist/bundle/{chunk-QU25DA5N.js → chunk-5AYKCKSE.js} +11 -11
  23. package/dist/bundle/chunk-5HD64ETI.js +561 -0
  24. package/dist/bundle/{chunk-CWXOXIWS.js → chunk-5K3FGXZH.js} +1 -1
  25. package/dist/bundle/{chunk-24ERVFJP.js → chunk-5YNAVVCW.js} +3 -3
  26. package/dist/bundle/chunk-77CUE3VX.js +46 -0
  27. package/dist/bundle/{chunk-36ITRDYY.js → chunk-7LQRXVQ3.js} +783 -482
  28. package/dist/bundle/{chunk-E5WLE7BM.js → chunk-7NZT7Y55.js} +1 -1
  29. package/dist/bundle/{chunk-C32AKHTY.js → chunk-7UEL65GQ.js} +35 -12
  30. package/dist/bundle/chunk-7VHBS5BJ.js +108 -0
  31. package/dist/bundle/{chunk-O55RWNSH.js → chunk-A6UFH3QU.js} +4 -4
  32. package/dist/bundle/{chunk-WE4UFASG.js → chunk-ABXVU5O4.js} +8 -1
  33. package/dist/bundle/{chunk-4W6BMH45.js → chunk-AF7DANIR.js} +2 -100
  34. package/dist/bundle/{chunk-LNV33FDC.js → chunk-AFL2C4JR.js} +60 -50
  35. package/dist/bundle/{chunk-2VGZRYEH.js → chunk-ARTJLL7W.js} +6 -6
  36. package/dist/bundle/chunk-AVUMH42T.js +194 -0
  37. package/dist/bundle/chunk-B2W3C4N6.js +338 -0
  38. package/dist/bundle/{chunk-FKA7DOCK.js → chunk-B3EH22CO.js} +1 -1
  39. package/dist/bundle/{chunk-E52JAS35.js → chunk-BAUK2MD5.js} +6 -6
  40. package/dist/bundle/{chunk-JLDBMEKZ.js → chunk-BN22EKQQ.js} +2 -2
  41. package/dist/bundle/{chunk-DB2XKHI4.js → chunk-BUGROVF3.js} +2 -2
  42. package/dist/bundle/{chunk-DSP36YHQ.js → chunk-CBCEMFCF.js} +2 -2
  43. package/dist/bundle/{chunk-WQBX7XYP.js → chunk-CYADK744.js} +1559 -1888
  44. package/dist/bundle/{chunk-HZRQLAHO.js → chunk-DQB5JMTY.js} +1 -1
  45. package/dist/bundle/{chunk-JRCPCVPI.js → chunk-DQP2GAAO.js} +75 -66
  46. package/dist/bundle/{chunk-FPUGMDJV.js → chunk-DSRXCLPO.js} +1 -1
  47. package/dist/bundle/{chunk-UUMUL4L3.js → chunk-DW23LM47.js} +2 -2
  48. package/dist/bundle/{chunk-TKVL2C3B.js → chunk-E4X7JAFC.js} +3 -3
  49. package/dist/bundle/{chunk-NUU4WZVL.js → chunk-EE4JSYGZ.js} +3 -3
  50. package/dist/bundle/{chunk-NWHEHV3K.js → chunk-EMOVVERN.js} +5 -5
  51. package/dist/bundle/{chunk-PVKF24ZW.js → chunk-FIVD4HM4.js} +8 -8
  52. package/dist/bundle/{chunk-QJW35N5V.js → chunk-GC6FLHZF.js} +12 -12
  53. package/dist/bundle/{chunk-TP7GDWVF.js → chunk-GRFICQTZ.js} +1 -1
  54. package/dist/bundle/{chunk-X2M6NIQG.js → chunk-HPZRUY6S.js} +1 -1
  55. package/dist/bundle/{chunk-CLAN3FES.js → chunk-IBTMK5KD.js} +54 -34
  56. package/dist/bundle/{chunk-5A6ZYNAQ.js → chunk-IQ2XZ62J.js} +18 -18
  57. package/dist/bundle/{chunk-DBEQI5YM.js → chunk-ITGNDZRR.js} +3 -3
  58. package/dist/bundle/{chunk-W53EJOFQ.js → chunk-IXZLMFPO.js} +1 -1
  59. package/dist/bundle/{chunk-TOSCB4SO.js → chunk-J5P5VSRG.js} +16 -10
  60. package/dist/bundle/{chunk-VIEYMDBR.js → chunk-J6C2QWL5.js} +3 -3
  61. package/dist/bundle/{chunk-ZBDSHFG4.js → chunk-JG7YMHNB.js} +3427 -3284
  62. package/dist/bundle/{chunk-RMIYKDUL.js → chunk-JK2SNLU5.js} +17 -17
  63. package/dist/bundle/{chunk-43EKCUBJ.js → chunk-JP2HJXFO.js} +3 -3
  64. package/dist/bundle/{chunk-DFCHHR5M.js → chunk-JUKAIXKY.js} +1 -1
  65. package/dist/bundle/{chunk-5GBUCHRU.js → chunk-KO4VR5NK.js} +4 -4
  66. package/dist/bundle/{chunk-PPHBRESD.js → chunk-KVXEEKBB.js} +2 -2
  67. package/dist/bundle/{chunk-SDQGB4KB.js → chunk-L433IDOX.js} +9 -9
  68. package/dist/bundle/chunk-LA3YU4K7.js +40 -0
  69. package/dist/bundle/{chunk-ECEZOLOD.js → chunk-LKSNISYV.js} +4 -4
  70. package/dist/bundle/{chunk-5K7QLJMM.js → chunk-LT5KE44Q.js} +226 -226
  71. package/dist/bundle/chunk-M763RNWP.js +733 -0
  72. package/dist/bundle/chunk-M7XLG6AN.js +353 -0
  73. package/dist/bundle/{chunk-IMJQRPLN.js → chunk-NNMU2TDU.js} +1 -1
  74. package/dist/bundle/chunk-NTQBS2JL.js +52 -0
  75. package/dist/bundle/{chunk-HCAZV5NP.js → chunk-NZGI74GS.js} +6 -6
  76. package/dist/bundle/{chunk-W7HM2VGO.js → chunk-O3VM5PTJ.js} +1 -1
  77. package/dist/bundle/chunk-OPVNUI4M.js +195 -0
  78. package/dist/bundle/{chunk-7ELMWE3P.js → chunk-PHXOL5HZ.js} +176 -160
  79. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  80. package/dist/bundle/{chunk-B3MANLNK.js → chunk-PLRUUXK7.js} +19 -233
  81. package/dist/bundle/{chunk-RR5MX5TM.js → chunk-PMP37KLR.js} +4 -4
  82. package/dist/bundle/{chunk-FTFV3HFW.js → chunk-Q27QAB4X.js} +9 -9
  83. package/dist/bundle/{chunk-2TWQIWWG.js → chunk-QFZD6MTF.js} +35 -29
  84. package/dist/bundle/{chunk-2QZK5BEP.js → chunk-RVWGFD32.js} +30 -15
  85. package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
  86. package/dist/bundle/{chunk-QGFX5MXL.js → chunk-SEELWPRD.js} +9 -9
  87. package/dist/bundle/{chunk-SAKK2YRU.js → chunk-SMTTIKZ5.js} +12 -12
  88. package/dist/bundle/{chunk-X7XUX7A4.js → chunk-TDQJS3JG.js} +10 -10
  89. package/dist/bundle/{chunk-HC5ZWE5X.js → chunk-TIHDBKA7.js} +2 -2
  90. package/dist/bundle/{chunk-NHHJHXMQ.js → chunk-U6XA3OOM.js} +2 -2
  91. package/dist/bundle/{chunk-NXERIDPJ.js → chunk-VQEAZXTV.js} +7 -7
  92. package/dist/bundle/{chunk-P5BHKKBI.js → chunk-VW5F6FK3.js} +4 -4
  93. package/dist/bundle/{chunk-XRREFEIW.js → chunk-WCQW4GYO.js} +7 -7
  94. package/dist/bundle/{chunk-H3TNVEQX.js → chunk-WGBVRDY3.js} +29 -4
  95. package/dist/bundle/chunk-WRCKE5ND.js +80 -0
  96. package/dist/bundle/{chunk-TBJYLC5K.js → chunk-X5S5KUSU.js} +75 -75
  97. package/dist/bundle/command-contract-R2FGN7CQ.js +40 -0
  98. package/dist/bundle/{command-server-entry-DJKVVZCQ.js → command-server-entry-GJSMDSNE.js} +29 -29
  99. package/dist/bundle/{decode-FC65Y4IV.js → decode-6PLXHVHW.js} +6 -6
  100. package/dist/bundle/{dispatch-KOISQ5QJ.js → dispatch-TAQ7635E.js} +8 -8
  101. package/dist/bundle/{dist-MYZZKZJ7.js → dist-7TGU56B2.js} +1 -1
  102. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  103. package/dist/bundle/{echarts-FVTUDXDU.js → echarts-UZ7QLRE2.js} +2 -2
  104. package/dist/bundle/{embed-VNBZFPYH.js → embed-AWLL4EBF.js} +7 -7
  105. package/dist/bundle/{embedder-6U4NOFRO.js → embedder-MM225YJ6.js} +10 -10
  106. package/dist/bundle/{failure-FZ6VYKEQ.js → failure-MR2XVHFP.js} +3 -3
  107. package/dist/bundle/first-run-MAUI6QJ7.js +29 -0
  108. package/dist/bundle/first-screen-SCDV7TXT.js +40 -0
  109. package/dist/bundle/hubspot.js +26 -26
  110. package/dist/bundle/{instructions-HET7BCYK.js → instructions-ZJ7U3QUE.js} +1 -1
  111. package/dist/bundle/{mcp-RGNRW77S.js → mcp-CNV7F2XZ.js} +2 -2
  112. package/dist/bundle/meeting-combined-EL5XZIJ5.js +25 -0
  113. package/dist/bundle/meeting-model-OYXB2NOE.js +25 -0
  114. package/dist/bundle/{meeting-semantic-JY3OGCBS.js → meeting-semantic-S3DBB7XD.js} +7 -7
  115. package/dist/bundle/{node-CXZIFHZC.js → node-HGCZGZ4R.js} +2 -2
  116. package/dist/bundle/{node-sqlite-P3O7XN7Q.js → node-sqlite-RKYSRKEB.js} +8 -8
  117. package/dist/bundle/oauth-PYDCAQ7Y.js +20 -0
  118. package/dist/bundle/{open-F4P6YV54.js → open-UCDSQUN2.js} +6 -6
  119. package/dist/bundle/{openai-4AICLIK3.js → openai-Y4F5ZC7O.js} +16 -16
  120. package/dist/bundle/{process-5RUXWGYS.js → process-P7FB7YO7.js} +1 -1
  121. package/dist/bundle/{program-POG5GHUQ.js → program-2D5D32HK.js} +835 -261
  122. package/dist/bundle/{prompt-NFMDVBZ4.js → prompt-E5TKZ37Q.js} +6 -6
  123. package/dist/bundle/{recognize-DKN3RY4V.js → recognize-5NYPTSLT.js} +5 -5
  124. package/dist/bundle/{remote-6QHAGQWY.js → remote-U4LUAHF2.js} +10 -10
  125. package/dist/bundle/{rerank-M4KHEHUZ.js → rerank-AJAVKK5L.js} +8 -8
  126. package/dist/bundle/{schemas-JRL3DLMP.js → schemas-QLQ2K6DL.js} +7 -33
  127. package/dist/bundle/{serve-DNU43ND6.js → serve-4UJ3R5IP.js} +11 -11
  128. package/dist/bundle/server-CN6VQNNF.js +86 -0
  129. package/dist/bundle/{server-XJSNF3K5.js → server-OJPCTV77.js} +73 -61
  130. package/dist/bundle/{source-A3SBLHC4.js → source-VHDK74YS.js} +133 -399
  131. package/dist/bundle/{sqlite-runtime-EMQAC63N.js → sqlite-runtime-KLEA4XAU.js} +7 -7
  132. package/dist/bundle/{state-T45CX7VY.js → state-COGSYMVH.js} +7 -7
  133. package/dist/bundle/{store-6TZ2FCVA.js → store-BJXCSP26.js} +25 -24
  134. package/dist/bundle/store-HXA2MRWI.js +32 -0
  135. package/dist/bundle/{store-6LCEVBAZ.js → store-V5UMSWK4.js} +27 -22
  136. package/dist/bundle/store-maintenance-command-AC7GGLYC.js +73 -0
  137. package/dist/bundle/surface-ZZNG3OW2.js +72 -0
  138. package/dist/bundle/writer-CZYA657G.js +86 -0
  139. package/dist/commands/api.d.ts +4 -4
  140. package/dist/commands/api.d.ts.map +1 -1
  141. package/dist/commands/api.js +12 -7
  142. package/dist/commands/api.js.map +1 -1
  143. package/dist/commands/crm-shared.d.ts +2 -2
  144. package/dist/commands/crm-shared.d.ts.map +1 -1
  145. package/dist/commands/crm-shared.js +20 -4
  146. package/dist/commands/crm-shared.js.map +1 -1
  147. package/dist/config.d.ts +46 -8
  148. package/dist/config.d.ts.map +1 -1
  149. package/dist/config.js +133 -12
  150. package/dist/config.js.map +1 -1
  151. package/dist/context.d.ts +2 -2
  152. package/dist/context.d.ts.map +1 -1
  153. package/dist/context.js +1 -1
  154. package/dist/context.js.map +1 -1
  155. package/dist/crm/source.d.ts +7 -2
  156. package/dist/crm/source.d.ts.map +1 -1
  157. package/dist/crm/source.js +26 -29
  158. package/dist/crm/source.js.map +1 -1
  159. package/dist/crm/writer.d.ts +15 -0
  160. package/dist/crm/writer.d.ts.map +1 -0
  161. package/dist/crm/writer.js +199 -0
  162. package/dist/crm/writer.js.map +1 -0
  163. package/dist/generated/manifest.d.ts.map +1 -1
  164. package/dist/generated/manifest.js +6 -116
  165. package/dist/generated/manifest.js.map +1 -1
  166. package/dist/generated/types.d.ts +160 -0
  167. package/dist/generated/types.d.ts.map +1 -1
  168. package/dist/hubspot/transport.d.ts +6 -1
  169. package/dist/hubspot/transport.d.ts.map +1 -1
  170. package/dist/hubspot/transport.js +13 -5
  171. package/dist/hubspot/transport.js.map +1 -1
  172. package/dist/identity.js +3 -3
  173. package/dist/identity.js.map +1 -1
  174. package/dist/program.d.ts.map +1 -1
  175. package/dist/program.js +2 -1
  176. package/dist/program.js.map +1 -1
  177. package/dist/setup/texts.en.json +3 -3
  178. package/dist/setup/texts.es.json +3 -3
  179. package/dist/setup/texts.ru.json +3 -3
  180. package/dist/version.d.ts +1 -1
  181. package/dist/version.js +1 -1
  182. package/package.json +4 -4
  183. package/skills/hubspot-cli/SKILL.md +13 -8
  184. package/skills/hubspot-cli/references/api/api-advanced.md +51 -0
  185. package/skills/hubspot-cli/references/api/api-basic.md +602 -0
  186. package/skills/hubspot-cli/references/api/api-batch.md +575 -0
  187. package/skills/hubspot-cli/references/api.md +3 -2
  188. package/dist/bundle/command-contract-C6CBFXZF.js +0 -40
  189. package/dist/bundle/first-run-RPIJZEDT.js +0 -29
  190. package/dist/bundle/first-screen-RTVMGHAE.js +0 -40
  191. package/dist/bundle/meeting-combined-L5AGBPYX.js +0 -25
  192. package/dist/bundle/meeting-model-NTB4RK3F.js +0 -25
  193. package/dist/bundle/oauth-HNCY4B2S.js +0 -20
  194. package/dist/bundle/server-C3ZHA7AZ.js +0 -77
  195. package/dist/bundle/store-CCDNUB6A.js +0 -32
  196. package/dist/bundle/store-maintenance-command-BRCG6MNA.js +0 -68
  197. package/dist/commands/comments.d.ts +0 -3
  198. package/dist/commands/comments.d.ts.map +0 -1
  199. package/dist/commands/comments.js +0 -114
  200. package/dist/commands/comments.js.map +0 -1
  201. package/dist/sample/comments.d.ts +0 -61
  202. package/dist/sample/comments.d.ts.map +0 -1
  203. package/dist/sample/comments.js +0 -39
  204. package/dist/sample/comments.js.map +0 -1
  205. package/dist/sample/records.d.ts +0 -16
  206. package/dist/sample/records.d.ts.map +0 -1
  207. package/dist/sample/records.js +0 -22
  208. package/dist/sample/records.js.map +0 -1
  209. package/dist/sample/transport.d.ts +0 -42
  210. package/dist/sample/transport.d.ts.map +0 -1
  211. package/dist/sample/transport.js +0 -153
  212. package/dist/sample/transport.js.map +0 -1
@@ -1,40 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- SCHEMA_DIALECT,
5
- commandContract,
6
- commandPathOf,
7
- findCommand,
8
- outputOf
9
- } from "./chunk-NWHEHV3K.js";
10
- import "./chunk-7ELMWE3P.js";
11
- import "./chunk-PVKF24ZW.js";
12
- import "./chunk-NUU4WZVL.js";
13
- import "./chunk-2VGZRYEH.js";
14
- import "./chunk-W53EJOFQ.js";
15
- import "./chunk-LOBVOGOE.js";
16
- import "./chunk-CLAN3FES.js";
17
- import "./chunk-UUMUL4L3.js";
18
- import "./chunk-XRREFEIW.js";
19
- import "./chunk-TI46WQXQ.js";
20
- import "./chunk-5GBUCHRU.js";
21
- import "./chunk-2VGD63G6.js";
22
- import "./chunk-QJW35N5V.js";
23
- import "./chunk-IMJQRPLN.js";
24
- import "./chunk-DSP36YHQ.js";
25
- import "./chunk-5K7QLJMM.js";
26
- import "./chunk-FPUGMDJV.js";
27
- import "./chunk-65TWQ7BV.js";
28
- import "./chunk-TBJYLC5K.js";
29
- import "./chunk-TOSCB4SO.js";
30
- import "./chunk-MVA5HVKL.js";
31
- import "./chunk-Y5E2WNWB.js";
32
- import "./chunk-DB2XKHI4.js";
33
- import "./chunk-ZVVMGPBJ.js";
34
- export {
35
- SCHEMA_DIALECT,
36
- commandContract,
37
- commandPathOf,
38
- findCommand,
39
- outputOf
40
- };
@@ -1,29 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- askSetupQuestions,
5
- asksAtStart,
6
- setupAtStart,
7
- systemLanguage
8
- } from "./chunk-SAKK2YRU.js";
9
- import "./chunk-RR5MX5TM.js";
10
- import "./chunk-CWXOXIWS.js";
11
- import "./chunk-NUU4WZVL.js";
12
- import "./chunk-C32AKHTY.js";
13
- import "./chunk-TI46WQXQ.js";
14
- import "./chunk-O3DYRCIT.js";
15
- import "./chunk-HZRQLAHO.js";
16
- import "./chunk-D72URWJE.js";
17
- import "./chunk-65TWQ7BV.js";
18
- import "./chunk-TBJYLC5K.js";
19
- import "./chunk-TOSCB4SO.js";
20
- import "./chunk-MVA5HVKL.js";
21
- import "./chunk-Y5E2WNWB.js";
22
- import "./chunk-DB2XKHI4.js";
23
- import "./chunk-ZVVMGPBJ.js";
24
- export {
25
- askSetupQuestions,
26
- asksAtStart,
27
- setupAtStart,
28
- systemLanguage
29
- };
@@ -1,40 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- firstScreen,
5
- installHelp
6
- } from "./chunk-NXERIDPJ.js";
7
- import {
8
- WIRECAT_TOOLS
9
- } from "./chunk-WE4UFASG.js";
10
- import "./chunk-NWHEHV3K.js";
11
- import "./chunk-7ELMWE3P.js";
12
- import "./chunk-PVKF24ZW.js";
13
- import "./chunk-NUU4WZVL.js";
14
- import "./chunk-2VGZRYEH.js";
15
- import "./chunk-W53EJOFQ.js";
16
- import "./chunk-LOBVOGOE.js";
17
- import "./chunk-CLAN3FES.js";
18
- import "./chunk-UUMUL4L3.js";
19
- import "./chunk-XRREFEIW.js";
20
- import "./chunk-TI46WQXQ.js";
21
- import "./chunk-5GBUCHRU.js";
22
- import "./chunk-EH6ZEJGT.js";
23
- import "./chunk-2VGD63G6.js";
24
- import "./chunk-QJW35N5V.js";
25
- import "./chunk-IMJQRPLN.js";
26
- import "./chunk-DSP36YHQ.js";
27
- import "./chunk-5K7QLJMM.js";
28
- import "./chunk-FPUGMDJV.js";
29
- import "./chunk-65TWQ7BV.js";
30
- import "./chunk-TBJYLC5K.js";
31
- import "./chunk-TOSCB4SO.js";
32
- import "./chunk-MVA5HVKL.js";
33
- import "./chunk-Y5E2WNWB.js";
34
- import "./chunk-DB2XKHI4.js";
35
- import "./chunk-ZVVMGPBJ.js";
36
- export {
37
- WIRECAT_TOOLS,
38
- firstScreen,
39
- installHelp
40
- };
@@ -1,25 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- searchMeetingsCombined
5
- } from "./chunk-QU25DA5N.js";
6
- import "./chunk-TKVL2C3B.js";
7
- import "./chunk-2VGZRYEH.js";
8
- import "./chunk-FTFV3HFW.js";
9
- import "./chunk-TI46WQXQ.js";
10
- import "./chunk-5GBUCHRU.js";
11
- import "./chunk-43EKCUBJ.js";
12
- import "./chunk-HZRQLAHO.js";
13
- import "./chunk-DSP36YHQ.js";
14
- import "./chunk-5K7QLJMM.js";
15
- import "./chunk-FPUGMDJV.js";
16
- import "./chunk-65TWQ7BV.js";
17
- import "./chunk-TBJYLC5K.js";
18
- import "./chunk-TOSCB4SO.js";
19
- import "./chunk-MVA5HVKL.js";
20
- import "./chunk-Y5E2WNWB.js";
21
- import "./chunk-DB2XKHI4.js";
22
- import "./chunk-ZVVMGPBJ.js";
23
- export {
24
- searchMeetingsCombined
25
- };
@@ -1,25 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- createMeetingRemoteModel,
5
- meetingEmbeddingModel,
6
- openMeetingEmbedder
7
- } from "./chunk-FOZYMDRL.js";
8
- import "./chunk-2VGZRYEH.js";
9
- import "./chunk-SDQGB4KB.js";
10
- import "./chunk-XRREFEIW.js";
11
- import "./chunk-TI46WQXQ.js";
12
- import "./chunk-E52JAS35.js";
13
- import "./chunk-5GBUCHRU.js";
14
- import "./chunk-65TWQ7BV.js";
15
- import "./chunk-TBJYLC5K.js";
16
- import "./chunk-TOSCB4SO.js";
17
- import "./chunk-MVA5HVKL.js";
18
- import "./chunk-Y5E2WNWB.js";
19
- import "./chunk-DB2XKHI4.js";
20
- import "./chunk-ZVVMGPBJ.js";
21
- export {
22
- createMeetingRemoteModel,
23
- meetingEmbeddingModel,
24
- openMeetingEmbedder
25
- };
@@ -1,20 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- ownerLogin,
5
- revokeAll
6
- } from "./chunk-FBCCBCFH.js";
7
- import "./chunk-5D4AEUVA.js";
8
- import "./chunk-O55RWNSH.js";
9
- import "./chunk-24ERVFJP.js";
10
- import "./chunk-W53EJOFQ.js";
11
- import "./chunk-TBJYLC5K.js";
12
- import "./chunk-TOSCB4SO.js";
13
- import "./chunk-MVA5HVKL.js";
14
- import "./chunk-Y5E2WNWB.js";
15
- import "./chunk-DB2XKHI4.js";
16
- import "./chunk-ZVVMGPBJ.js";
17
- export {
18
- ownerLogin,
19
- revokeAll
20
- };
@@ -1,77 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- PER_RUN,
5
- createServer,
6
- envelope,
7
- serveOverHttpUntilStopped,
8
- serveOverStdio
9
- } from "./chunk-LNV33FDC.js";
10
- import "./chunk-2TWQIWWG.js";
11
- import "./chunk-X2M6NIQG.js";
12
- import "./chunk-HTAN663T.js";
13
- import "./chunk-B3MANLNK.js";
14
- import "./chunk-4W6BMH45.js";
15
- import "./chunk-BKXDHU3G.js";
16
- import "./chunk-ZBDSHFG4.js";
17
- import "./chunk-2QZK5BEP.js";
18
- import "./chunk-WE4UFASG.js";
19
- import "./chunk-RR5MX5TM.js";
20
- import "./chunk-CWXOXIWS.js";
21
- import "./chunk-FKA7DOCK.js";
22
- import "./chunk-5D4AEUVA.js";
23
- import "./chunk-N2XADGL4.js";
24
- import "./chunk-FOZYMDRL.js";
25
- import "./chunk-QU25DA5N.js";
26
- import "./chunk-TKVL2C3B.js";
27
- import "./chunk-O55RWNSH.js";
28
- import "./chunk-24ERVFJP.js";
29
- import "./chunk-NWHEHV3K.js";
30
- import "./chunk-7ELMWE3P.js";
31
- import "./chunk-PVKF24ZW.js";
32
- import "./chunk-NUU4WZVL.js";
33
- import "./chunk-2VGZRYEH.js";
34
- import "./chunk-W53EJOFQ.js";
35
- import "./chunk-RMIYKDUL.js";
36
- import "./chunk-LOBVOGOE.js";
37
- import "./chunk-36ITRDYY.js";
38
- import "./chunk-C32AKHTY.js";
39
- import "./chunk-FTFV3HFW.js";
40
- import "./chunk-CLAN3FES.js";
41
- import "./chunk-UUMUL4L3.js";
42
- import "./chunk-SDQGB4KB.js";
43
- import "./chunk-XRREFEIW.js";
44
- import "./chunk-TI46WQXQ.js";
45
- import "./chunk-E52JAS35.js";
46
- import "./chunk-5GBUCHRU.js";
47
- import "./chunk-H3TNVEQX.js";
48
- import "./chunk-QGFX5MXL.js";
49
- import "./chunk-O3DYRCIT.js";
50
- import "./chunk-2VGD63G6.js";
51
- import "./chunk-5A6ZYNAQ.js";
52
- import "./chunk-43EKCUBJ.js";
53
- import "./chunk-HZRQLAHO.js";
54
- import "./chunk-QJW35N5V.js";
55
- import "./chunk-IMJQRPLN.js";
56
- import "./chunk-DSP36YHQ.js";
57
- import "./chunk-5K7QLJMM.js";
58
- import "./chunk-FPUGMDJV.js";
59
- import "./chunk-D72URWJE.js";
60
- import "./chunk-PPHBRESD.js";
61
- import "./chunk-65TWQ7BV.js";
62
- import "./chunk-HCAZV5NP.js";
63
- import "./chunk-DFCHHR5M.js";
64
- import "./chunk-TBJYLC5K.js";
65
- import "./chunk-TOSCB4SO.js";
66
- import "./chunk-MVA5HVKL.js";
67
- import "./chunk-Y5E2WNWB.js";
68
- import "./chunk-DB2XKHI4.js";
69
- import "./chunk-TP7GDWVF.js";
70
- import "./chunk-ZVVMGPBJ.js";
71
- export {
72
- PER_RUN,
73
- createServer,
74
- envelope,
75
- serveOverHttpUntilStopped,
76
- serveOverStdio
77
- };
@@ -1,32 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- PROVIDER,
5
- openHubspotStore
6
- } from "./chunk-VIEYMDBR.js";
7
- import "./chunk-X7XUX7A4.js";
8
- import "./chunk-H3TNVEQX.js";
9
- import "./chunk-HC5ZWE5X.js";
10
- import "./chunk-QGFX5MXL.js";
11
- import "./chunk-EH6ZEJGT.js";
12
- import "./chunk-2VGD63G6.js";
13
- import "./chunk-5A6ZYNAQ.js";
14
- import "./chunk-43EKCUBJ.js";
15
- import "./chunk-HZRQLAHO.js";
16
- import "./chunk-QJW35N5V.js";
17
- import "./chunk-IMJQRPLN.js";
18
- import "./chunk-DSP36YHQ.js";
19
- import "./chunk-5K7QLJMM.js";
20
- import "./chunk-FPUGMDJV.js";
21
- import "./chunk-DBEQI5YM.js";
22
- import "./chunk-PPHBRESD.js";
23
- import "./chunk-TBJYLC5K.js";
24
- import "./chunk-TOSCB4SO.js";
25
- import "./chunk-MVA5HVKL.js";
26
- import "./chunk-Y5E2WNWB.js";
27
- import "./chunk-DB2XKHI4.js";
28
- import "./chunk-ZVVMGPBJ.js";
29
- export {
30
- PROVIDER,
31
- openHubspotStore
32
- };
@@ -1,68 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- addStoreMaintenanceCommands,
5
- buildStems,
6
- storeMaintenanceCommands,
7
- storeSummary
8
- } from "./chunk-JRCPCVPI.js";
9
- import "./chunk-BKXDHU3G.js";
10
- import "./chunk-ZBDSHFG4.js";
11
- import "./chunk-2QZK5BEP.js";
12
- import "./chunk-WE4UFASG.js";
13
- import "./chunk-RR5MX5TM.js";
14
- import "./chunk-CWXOXIWS.js";
15
- import "./chunk-N2XADGL4.js";
16
- import "./chunk-FOZYMDRL.js";
17
- import "./chunk-QU25DA5N.js";
18
- import "./chunk-TKVL2C3B.js";
19
- import "./chunk-24ERVFJP.js";
20
- import "./chunk-7ELMWE3P.js";
21
- import "./chunk-PVKF24ZW.js";
22
- import "./chunk-NUU4WZVL.js";
23
- import "./chunk-2VGZRYEH.js";
24
- import "./chunk-W53EJOFQ.js";
25
- import "./chunk-RMIYKDUL.js";
26
- import "./chunk-LOBVOGOE.js";
27
- import "./chunk-36ITRDYY.js";
28
- import "./chunk-C32AKHTY.js";
29
- import "./chunk-FTFV3HFW.js";
30
- import "./chunk-CLAN3FES.js";
31
- import "./chunk-UUMUL4L3.js";
32
- import "./chunk-SDQGB4KB.js";
33
- import "./chunk-XRREFEIW.js";
34
- import "./chunk-TI46WQXQ.js";
35
- import "./chunk-E52JAS35.js";
36
- import "./chunk-5GBUCHRU.js";
37
- import "./chunk-HC5ZWE5X.js";
38
- import "./chunk-QGFX5MXL.js";
39
- import "./chunk-EH6ZEJGT.js";
40
- import "./chunk-O3DYRCIT.js";
41
- import "./chunk-2VGD63G6.js";
42
- import "./chunk-5A6ZYNAQ.js";
43
- import "./chunk-43EKCUBJ.js";
44
- import "./chunk-HZRQLAHO.js";
45
- import "./chunk-QJW35N5V.js";
46
- import "./chunk-IMJQRPLN.js";
47
- import "./chunk-DSP36YHQ.js";
48
- import "./chunk-5K7QLJMM.js";
49
- import "./chunk-FPUGMDJV.js";
50
- import "./chunk-D72URWJE.js";
51
- import "./chunk-DBEQI5YM.js";
52
- import "./chunk-PPHBRESD.js";
53
- import "./chunk-65TWQ7BV.js";
54
- import "./chunk-HCAZV5NP.js";
55
- import "./chunk-DFCHHR5M.js";
56
- import "./chunk-TBJYLC5K.js";
57
- import "./chunk-TOSCB4SO.js";
58
- import "./chunk-MVA5HVKL.js";
59
- import "./chunk-Y5E2WNWB.js";
60
- import "./chunk-DB2XKHI4.js";
61
- import "./chunk-TP7GDWVF.js";
62
- import "./chunk-ZVVMGPBJ.js";
63
- export {
64
- addStoreMaintenanceCommands,
65
- buildStems,
66
- storeMaintenanceCommands,
67
- storeSummary
68
- };
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const commentsCommand: () => Command;
3
- //# sourceMappingURL=comments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../src/commands/comments.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AA6InC,eAAO,MAAM,eAAe,QAAO,OAMH,CAAA"}
@@ -1,114 +0,0 @@
1
- import { CliError } from "@wirecat/cli-base";
2
- import { annotate } from "@wirecat/cli-base/commands";
3
- import { answerEntity, commandPath, itemOf, outputFor, pagedList, pageOf, queryTerms, REMOTE_READ, REMOTE_WRITE, renderAnswer, termField, terminalAsker, withPaging, withQuery, } from "@wirecat/cli-core/cli";
4
- import { guardedWrite, guardFor, keyedGuard, levelFor, newOperationId } from "@wirecat/cli-core/sends";
5
- import { Command } from "commander";
6
- import { permissions } from "../config.js";
7
- import { contextOf, withService } from "../context.js";
8
- import { IDENTITY } from "../identity.js";
9
- import { commentSchema } from "../sample/comments.js";
10
- import { SERVICE } from "../sample/transport.js";
11
- // SAMPLE: `comments` is the reference command group. Keep its shape; replace the noun and the calls with your
12
- // service's. Every command path is its own permission key (`comments.create`), from `commandPermissions()`.
13
- const CLI = IDENTITY.command;
14
- /** The list's query: one field the service filters itself (WC-CMD-20). Nothing is filtered in memory. */
15
- const COMMENTS_QUERY = {
16
- entity: "comment",
17
- backend: "native",
18
- fields: [termField("author", "kw", "author:u2")],
19
- };
20
- /** --all walks pages until the service has no more, at most this many, so a huge account cannot hold the run open. */
21
- const ALL_PAGES = 20;
22
- const ALL_PAGE_SIZE = 100;
23
- const listAll = async (service, author) => {
24
- const items = [];
25
- for (let page = 0; page < ALL_PAGES; page++) {
26
- const found = await service.list({ limit: ALL_PAGE_SIZE, offset: page * ALL_PAGE_SIZE, author });
27
- for (const item of found.items)
28
- items.push(item);
29
- if (!found.hasMore)
30
- return { items, hasMore: false };
31
- }
32
- return { items, hasMore: true };
33
- };
34
- const listCommand = () => withPaging(withQuery(answerEntity(annotate(new Command("list"), {
35
- effects: REMOTE_READ,
36
- offline: false,
37
- examples: [`${CLI} personal comments list`, `${CLI} personal comments list author:u2 --json=id,text`],
38
- }), "comment", commentSchema), COMMENTS_QUERY))
39
- .description(`list the comments in ${SERVICE}, newest first`)
40
- .action(async function (words) {
41
- const path = commandPath(this);
42
- const author = queryTerms(words, COMMENTS_QUERY, path).get("author");
43
- const { settings } = contextOf(this);
44
- const found = await withService(this, (service) => settings.all ? listAll(service, author) : service.list({ ...pageOf(settings), author }));
45
- renderAnswer(this, outputFor(this), pagedList(path, settings, found));
46
- });
47
- const showCommand = () => answerEntity(annotate(new Command("show"), {
48
- effects: REMOTE_READ,
49
- offline: false,
50
- examples: [`${CLI} personal comments show c1`, `${CLI} personal comments show c1 --json`],
51
- }), "comment", commentSchema)
52
- .description(`show one comment in ${SERVICE}`)
53
- .argument("<id>", "the comment's id, as list prints it")
54
- .action(async function (id) {
55
- renderAnswer(this, outputFor(this), itemOf(await withService(this, (service) => service.show(id))));
56
- });
57
- /**
58
- * Every write's one path (WC-PERM-13). The profile's level for the command's key refuses, or asks once; the send
59
- * journal records the attempt and its outcome, never its content (WC-PERM-17); the answer carries the `operation_id`
60
- * (WC-OUT-10). cli-core's `run` has already answered `--dry-run` and refused under `<PREFIX>_READ_ONLY` before this
61
- * runs. Never retried: a write that got no answer is `outcome_unknown`, with the id to look it up by (WC-LIFE-9).
62
- */
63
- const write = async (command, act) => {
64
- const { settings, env, renderer } = contextOf(command);
65
- const key = commandPath(command).replaceAll(" ", ".");
66
- const operationId = newOperationId();
67
- const levelOf = (one) => levelFor(settings.permissions, one, permissions.defaults).level;
68
- const guard = keyedGuard((ask) => guardFor(IDENTITY,
69
- // SAMPLE: the service limits its own rate, so this guard keeps the levels and the journal, not a send cap.
70
- { ...settings, sendsPerHour: Number.MAX_SAFE_INTEGER, permissionDefaults: permissions.defaults }, renderer.warn, env, ask), terminalAsker(command), levelOf, []);
71
- const request = { chatId: null, kind: "edit", key, operationId };
72
- guard.refuse(request);
73
- let comment;
74
- try {
75
- comment = await guardedWrite(guard, request, () => withService(command, act));
76
- }
77
- catch (error) {
78
- if (error instanceof CliError && error.code === "outcome_unknown")
79
- throw new CliError("outcome_unknown", error.message, { ...error.details, operation_id: operationId });
80
- throw error;
81
- }
82
- renderAnswer(command, outputFor(command), itemOf({ operation_id: operationId, comment }));
83
- };
84
- const createCommand = () => annotate(new Command("create"), {
85
- effects: REMOTE_WRITE,
86
- offline: false,
87
- examples: [
88
- `${CLI} personal comments create --text "Looks good to me"`,
89
- `${CLI} personal comments create --text "Looks good to me" --dry-run`,
90
- ],
91
- })
92
- .description(`post a comment in ${SERVICE}`)
93
- .requiredOption("--text <text>", "the comment's text")
94
- .action(async function (args) {
95
- await write(this, (service) => service.create(args.text));
96
- });
97
- const updateCommand = () => annotate(new Command("update"), {
98
- effects: REMOTE_WRITE,
99
- offline: false,
100
- examples: [`${CLI} personal comments update c1 --text "Looks good now"`],
101
- })
102
- .description(`change the text of your comment in ${SERVICE}`)
103
- .argument("<id>", "the comment's id, as list prints it")
104
- .requiredOption("--text <text>", "the new text")
105
- .action(async function (id, args) {
106
- await write(this, (service) => service.update(id, args.text));
107
- });
108
- export const commentsCommand = () => annotate(new Command("comments"), { effects: REMOTE_READ })
109
- .description(`read and write comments in ${SERVICE}, the sample service`)
110
- .addCommand(listCommand())
111
- .addCommand(showCommand())
112
- .addCommand(createCommand())
113
- .addCommand(updateCommand());
114
- //# sourceMappingURL=comments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comments.js","sourceRoot":"","sources":["../../src/commands/comments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACrD,OAAO,EACL,YAAY,EACZ,WAAW,EACX,MAAM,EACN,SAAS,EACT,SAAS,EACT,MAAM,EACN,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,aAAa,EACb,UAAU,EACV,SAAS,GACV,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA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AAC,EAAE;IAC9B,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,CAAC,GAAG,GAAG,sDAAsD,CAAC;CACzE,CAAC;KACC,WAAW,CAAC,sCAAsC,OAAO,EAAE,CAAC;KAC5D,QAAQ,CAAC,MAAM,EAAE,qCAAqC,CAAC;KACvD,cAAc,CAAC,eAAe,EAAE,cAAc,CAAC;KAC/C,MAAM,CAAC,KAAK,WAA0B,EAAU,EAAE,IAAsB;IACvE,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;AAC/D,CAAC,CAAC,CAAA;AAEN,MAAM,CAAC,MAAM,eAAe,GAAG,GAAY,EAAE,CAC3C,QAAQ,CAAC,IAAI,OAAO,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;KACxD,WAAW,CAAC,8BAA8B,OAAO,sBAAsB,CAAC;KACxE,UAAU,CAAC,WAAW,EAAE,CAAC;KACzB,UAAU,CAAC,WAAW,EAAE,CAAC;KACzB,UAAU,CAAC,aAAa,EAAE,CAAC;KAC3B,UAAU,CAAC,aAAa,EAAE,CAAC,CAAA"}
@@ -1,61 +0,0 @@
1
- import * as v from "valibot";
2
- import type { Transport } from "./transport.js";
3
- declare const wireComment: v.ObjectSchema<{
4
- readonly id: v.StringSchema<undefined>;
5
- readonly body: v.StringSchema<undefined>;
6
- readonly authorName: v.StringSchema<undefined>;
7
- readonly createdAt: v.StringSchema<undefined>;
8
- }, undefined>;
9
- /**
10
- * The answer's own shape, in snake_case (WC-OUT-12). `answerEntity` publishes it, so `--json=id,text` and the MCP
11
- * schema both come from here (WC-CMD-19). No wire type leaves this file (WC-ARCH-3).
12
- */
13
- export declare const commentSchema: v.StrictObjectSchema<{
14
- readonly id: v.StringSchema<undefined>;
15
- readonly text: v.StringSchema<undefined>;
16
- readonly author: v.StringSchema<undefined>;
17
- readonly created_at: v.StringSchema<undefined>;
18
- }, undefined>;
19
- export type Comment = v.InferOutput<typeof commentSchema>;
20
- export declare const commentOf: (wire: v.InferOutput<typeof wireComment>) => Comment;
21
- /** Every call the sample makes: a method, a path template and only the fields the service documents. */
22
- export declare const commentsService: (api: Transport) => {
23
- me: () => Promise<{
24
- id: string;
25
- name: string;
26
- }>;
27
- list: ({ limit, offset, author }: {
28
- limit: number;
29
- offset: number;
30
- author?: string | undefined;
31
- }) => Promise<{
32
- items: {
33
- id: string;
34
- text: string;
35
- author: string;
36
- created_at: string;
37
- }[];
38
- hasMore: boolean;
39
- }>;
40
- show: (id: string) => Promise<{
41
- id: string;
42
- text: string;
43
- author: string;
44
- created_at: string;
45
- }>;
46
- create: (text: string) => Promise<{
47
- id: string;
48
- text: string;
49
- author: string;
50
- created_at: string;
51
- }>;
52
- update: (id: string, text: string) => Promise<{
53
- id: string;
54
- text: string;
55
- author: string;
56
- created_at: string;
57
- }>;
58
- };
59
- export type CommentsService = ReturnType<typeof commentsService>;
60
- export {};
61
- //# sourceMappingURL=comments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../src/sample/comments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI/C,QAAA,MAAM,WAAW;;;;;aAKf,CAAA;AAIF;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;aAKxB,CAAA;AACF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAA;AAEzD,eAAO,MAAM,SAAS,SAAU,CAAC,CAAC,WAAW,CAAC,OAAO,WAAW,CAAC,KAAG,OAKlE,CAAA;AAEF,wGAAwG;AACxG,eAAO,MAAM,eAAe,QAAS,SAAS;IAC5C,EAAE;;;;IACF,IAAI,8BAAoC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE;;;;;;;;;IAItG,IAAI,OAAa,MAAM;;;;;;IAEvB,MAAM,SAAe,MAAM;;;;;;IAE3B,MAAM,OAAa,MAAM,QAAQ,MAAM;;;;;;CAIvC,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -1,39 +0,0 @@
1
- import * as v from "valibot";
2
- // SAMPLE: replace these shapes with your service's. Each wire name comes from the service's docs or a captured answer,
3
- // never from memory; the strict fake in src/testing/fake-comments.ts refuses any other.
4
- const wireComment = v.object({
5
- id: v.string(),
6
- body: v.string(),
7
- authorName: v.string(),
8
- createdAt: v.string(),
9
- });
10
- const wirePage = v.object({ comments: v.array(wireComment), hasMore: v.boolean() });
11
- const wireUser = v.object({ id: v.string(), name: v.string() });
12
- /**
13
- * The answer's own shape, in snake_case (WC-OUT-12). `answerEntity` publishes it, so `--json=id,text` and the MCP
14
- * schema both come from here (WC-CMD-19). No wire type leaves this file (WC-ARCH-3).
15
- */
16
- export const commentSchema = v.strictObject({
17
- id: v.string(),
18
- text: v.string(),
19
- author: v.string(),
20
- created_at: v.string(),
21
- });
22
- export const commentOf = (wire) => ({
23
- id: wire.id,
24
- text: wire.body,
25
- author: wire.authorName,
26
- created_at: wire.createdAt,
27
- });
28
- /** Every call the sample makes: a method, a path template and only the fields the service documents. */
29
- export const commentsService = (api) => ({
30
- me: () => api.send({ method: "GET", path: "me" }, wireUser),
31
- list: async ({ limit, offset, author }) => {
32
- const page = await api.send({ method: "GET", path: "comments", query: { limit, offset, by: author } }, wirePage);
33
- return { items: page.comments.map(commentOf), hasMore: page.hasMore };
34
- },
35
- show: async (id) => commentOf(await api.send({ method: "GET", path: "comments/{id}", ids: { id } }, wireComment)),
36
- create: async (text) => commentOf(await api.send({ method: "POST", path: "comments", body: { body: text } }, wireComment)),
37
- update: async (id, text) => commentOf(await api.send({ method: "PATCH", path: "comments/{id}", ids: { id }, body: { body: text } }, wireComment)),
38
- });
39
- //# sourceMappingURL=comments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comments.js","sourceRoot":"","sources":["../../src/sample/comments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,uHAAuH;AACvH,wFAAwF;AACxF,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AACF,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;AACnF,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;AAE/D;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAuC,EAAW,EAAE,CAAC,CAAC;IAC9E,EAAE,EAAE,IAAI,CAAC,EAAE;IACX,IAAI,E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AU,EAAE,IAAY,EAAE,EAAE,CACzC,SAAS,CACP,MAAM,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,WAAW,CAAC,CAC3G;CACJ,CAAC,CAAA"}
@@ -1,16 +0,0 @@
1
- import { type IngestReceipt } from "@wirecat/cli-core/services";
2
- import type { MessageStore } from "@wirecat/cli-core/store";
3
- import type { Comment } from "./comments.js";
4
- export interface RecordsSource {
5
- provider: string;
6
- account: string;
7
- batchId: string;
8
- }
9
- /** The JSONL a records import reads, ready for a file or stdout: the header line, then one record per line. */
10
- export declare function commentLines(source: RecordsSource, comments: AsyncIterable<Comment> | Iterable<Comment>): AsyncGenerator<string, void, unknown>;
11
- /**
12
- * Takes a JSONL file or stdin into the shared store one line at a time, so memory does not grow with the file. The
13
- * header's `source.account` must be `account`, or every record is refused.
14
- */
15
- export declare const importRecords: (store: Pick<MessageStore, "records">, input: NodeJS.ReadableStream, account: string) => Promise<IngestReceipt>;
16
- //# sourceMappingURL=records.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/sample/records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAA2B,MAAM,4BAA4B,CAAA;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAM5C,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,+GAA+G;AAC/G,wBAAuB,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,yCAa9G;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,UACjB,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,SAC7B,MAAM,CAAC,cAAc,WACnB,MAAM,KACd,OAAO,CAAC,aAAa,CAAuD,CAAA"}
@@ -1,22 +0,0 @@
1
- import { ingestLines, jsonlLines } from "@wirecat/cli-core/services";
2
- /** The JSONL a records import reads, ready for a file or stdout: the header line, then one record per line. */
3
- export async function* commentLines(source, comments) {
4
- yield `${JSON.stringify({
5
- schema_version: 1,
6
- source: { provider: source.provider, account: source.account, batch_id: source.batchId },
7
- })}\n`;
8
- for await (const comment of comments)
9
- yield `${JSON.stringify({
10
- key: comment.id,
11
- type: "custom:comment",
12
- external_id: comment.id,
13
- operation: "upsert",
14
- fields: { text: comment.text, author: comment.author, created_at: comment.created_at },
15
- })}\n`;
16
- }
17
- /**
18
- * Takes a JSONL file or stdin into the shared store one line at a time, so memory does not grow with the file. The
19
- * header's `source.account` must be `account`, or every record is refused.
20
- */
21
- export const importRecords = (store, input, account) => ingestLines(store, jsonlLines(input), { account });
22
- //# sourceMappingURL=records.js.map