@wirecat/amo-cli 0.6.0 → 0.7.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 (282) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +2 -2
  3. package/contracts/wirecat.json +14 -0
  4. package/dist/amo/button.js +1 -1
  5. package/dist/amo/json.js +1 -1
  6. package/dist/amo/oauth.js +1 -2
  7. package/dist/amo/transport.js +1 -2
  8. package/dist/api-keys.js +1 -1
  9. package/dist/bin/amo.js +11 -11
  10. package/dist/bundle/amo.js +5 -183
  11. package/dist/bundle/{chunk-FYOPPKAN.js → chunk-3HWD4BKU.js} +4 -6
  12. package/dist/bundle/{chunk-GOCMJBEE.js → chunk-4EXURQQQ.js} +21 -19
  13. package/dist/bundle/chunk-AEWYRB6F.js +8 -0
  14. package/dist/bundle/{chunk-SWCJM3YD.js → chunk-GL7CRTHR.js} +3 -3
  15. package/dist/bundle/chunk-N2UB32VN.js +76 -0
  16. package/dist/bundle/{chunk-RNWUCAJJ.js → chunk-PVVSHDMQ.js} +7 -15
  17. package/dist/bundle/program-SQH3SPOW.js +2352 -0
  18. package/dist/bundle/{instructions-4H7UREH2.js → source-C65ZJUTW.js} +5 -6
  19. package/dist/bundle/store-SJ2TOUGU.js +12 -0
  20. package/dist/bundle/writer-I7GBI3VE.js +12 -0
  21. package/dist/commands/account.js +1 -1
  22. package/dist/commands/api.js +1 -3
  23. package/dist/commands/crm-shared.js +2 -3
  24. package/dist/commands/schedule.js +1 -1
  25. package/dist/commands/session.js +1 -3
  26. package/dist/commands/write.js +1 -2
  27. package/dist/config.js +1 -2
  28. package/dist/context.js +1 -2
  29. package/dist/crm/activities.js +1 -1
  30. package/dist/crm/records.js +1 -1
  31. package/dist/crm/source.js +1 -1
  32. package/dist/crm/writer.js +1 -1
  33. package/dist/identity.js +4 -0
  34. package/dist/program.js +1 -2
  35. package/dist/setup/flow.js +1 -1
  36. package/dist/store.js +1 -1
  37. package/dist/version.js +1 -1
  38. package/dist/whoami.js +1 -1
  39. package/package.json +3 -3
  40. package/scenarios/first-sync.md +13 -11
  41. package/scenarios/keep-in-sync.md +7 -6
  42. package/scenarios/safe-agent-writes.md +10 -9
  43. package/dist/amo/account.d.ts +0 -18
  44. package/dist/amo/account.d.ts.map +0 -1
  45. package/dist/amo/account.js.map +0 -1
  46. package/dist/amo/allow-list.d.ts +0 -31
  47. package/dist/amo/allow-list.d.ts.map +0 -1
  48. package/dist/amo/allow-list.js.map +0 -1
  49. package/dist/amo/button.d.ts +0 -53
  50. package/dist/amo/button.d.ts.map +0 -1
  51. package/dist/amo/button.js.map +0 -1
  52. package/dist/amo/errors.d.ts +0 -12
  53. package/dist/amo/errors.d.ts.map +0 -1
  54. package/dist/amo/errors.js.map +0 -1
  55. package/dist/amo/json.d.ts +0 -3
  56. package/dist/amo/json.d.ts.map +0 -1
  57. package/dist/amo/json.js.map +0 -1
  58. package/dist/amo/oauth.d.ts +0 -64
  59. package/dist/amo/oauth.d.ts.map +0 -1
  60. package/dist/amo/oauth.js.map +0 -1
  61. package/dist/amo/operation.d.ts +0 -45
  62. package/dist/amo/operation.d.ts.map +0 -1
  63. package/dist/amo/operation.js.map +0 -1
  64. package/dist/amo/operations.d.ts +0 -3
  65. package/dist/amo/operations.d.ts.map +0 -1
  66. package/dist/amo/operations.js.map +0 -1
  67. package/dist/amo/routes.d.ts +0 -67
  68. package/dist/amo/routes.d.ts.map +0 -1
  69. package/dist/amo/routes.js.map +0 -1
  70. package/dist/amo/transport.d.ts +0 -62
  71. package/dist/amo/transport.d.ts.map +0 -1
  72. package/dist/amo/transport.js.map +0 -1
  73. package/dist/api-keys.d.ts +0 -47
  74. package/dist/api-keys.d.ts.map +0 -1
  75. package/dist/api-keys.js.map +0 -1
  76. package/dist/bin/amo.d.ts +0 -3
  77. package/dist/bin/amo.d.ts.map +0 -1
  78. package/dist/bin/amo.js.map +0 -1
  79. package/dist/bundle/agent-VVACEKSX.js +0 -42
  80. package/dist/bundle/all-profiles-QNUKL4NA.js +0 -320
  81. package/dist/bundle/anthropic-PQN6MNP7.js +0 -90
  82. package/dist/bundle/app-server-Q2QEA7GP.js +0 -258
  83. package/dist/bundle/areas-27FRPBF3.js +0 -71
  84. package/dist/bundle/bun-F4M4KCNA.js +0 -169
  85. package/dist/bundle/bun-sqlite-P5IDBDVR.js +0 -75
  86. package/dist/bundle/chunk-22KAQPX7.js +0 -58
  87. package/dist/bundle/chunk-2JGNMZ55.js +0 -338
  88. package/dist/bundle/chunk-2VDHC7QO.js +0 -288
  89. package/dist/bundle/chunk-34ZOMVUK.js +0 -185
  90. package/dist/bundle/chunk-3J3EDSXF.js +0 -1939
  91. package/dist/bundle/chunk-3TYER5IK.js +0 -80
  92. package/dist/bundle/chunk-5NGLCDYQ.js +0 -106
  93. package/dist/bundle/chunk-5SQTHOBI.js +0 -12313
  94. package/dist/bundle/chunk-6GE36KUE.js +0 -360
  95. package/dist/bundle/chunk-6GZKY3HV.js +0 -3752
  96. package/dist/bundle/chunk-6OV2TRGF.js +0 -362
  97. package/dist/bundle/chunk-7CPIZFOE.js +0 -460
  98. package/dist/bundle/chunk-A5K2NU3K.js +0 -37780
  99. package/dist/bundle/chunk-ADLS6FVG.js +0 -24600
  100. package/dist/bundle/chunk-AEC4H5WZ.js +0 -259
  101. package/dist/bundle/chunk-APBEDWOE.js +0 -1718
  102. package/dist/bundle/chunk-AQ5RIOUE.js +0 -633
  103. package/dist/bundle/chunk-B7L5MSRP.js +0 -136
  104. package/dist/bundle/chunk-C7JPYWYQ.js +0 -77
  105. package/dist/bundle/chunk-D72URWJE.js +0 -532
  106. package/dist/bundle/chunk-DFDN6AUB.js +0 -21
  107. package/dist/bundle/chunk-DIZEHPS6.js +0 -1347
  108. package/dist/bundle/chunk-DNCLQPOM.js +0 -7
  109. package/dist/bundle/chunk-DPV53EZC.js +0 -206
  110. package/dist/bundle/chunk-DUPCDJ3W.js +0 -357
  111. package/dist/bundle/chunk-DWT24UVR.js +0 -388
  112. package/dist/bundle/chunk-DXWJORSY.js +0 -1703
  113. package/dist/bundle/chunk-DY3PLWIH.js +0 -332
  114. package/dist/bundle/chunk-DYWHAJRK.js +0 -1259
  115. package/dist/bundle/chunk-EH6ZEJGT.js +0 -932
  116. package/dist/bundle/chunk-EXRM3ML4.js +0 -76
  117. package/dist/bundle/chunk-FFER7KJI.js +0 -407
  118. package/dist/bundle/chunk-FIP2DG7W.js +0 -64
  119. package/dist/bundle/chunk-FTH6WGYO.js +0 -24
  120. package/dist/bundle/chunk-FWRLGIF6.js +0 -5304
  121. package/dist/bundle/chunk-G3N2RHGF.js +0 -738
  122. package/dist/bundle/chunk-G46PNDWL.js +0 -58
  123. package/dist/bundle/chunk-G6NY7LFB.js +0 -230
  124. package/dist/bundle/chunk-GRGCZSES.js +0 -1007
  125. package/dist/bundle/chunk-GVSKLZRD.js +0 -30
  126. package/dist/bundle/chunk-GZ7WBU5Y.js +0 -18
  127. package/dist/bundle/chunk-HN2LCLGT.js +0 -1068
  128. package/dist/bundle/chunk-HO4JGD4Q.js +0 -16
  129. package/dist/bundle/chunk-HOF7GQWW.js +0 -142
  130. package/dist/bundle/chunk-HUAHLO6N.js +0 -29
  131. package/dist/bundle/chunk-IDCZ4LWS.js +0 -150
  132. package/dist/bundle/chunk-IN3VL7UU.js +0 -560
  133. package/dist/bundle/chunk-ISQ23VKV.js +0 -123
  134. package/dist/bundle/chunk-JVBCQHCS.js +0 -80
  135. package/dist/bundle/chunk-K5W7YEHB.js +0 -9541
  136. package/dist/bundle/chunk-KAFSS35C.js +0 -193
  137. package/dist/bundle/chunk-KLRCTMES.js +0 -100
  138. package/dist/bundle/chunk-KYRYD4CR.js +0 -38
  139. package/dist/bundle/chunk-LBZSURLL.js +0 -798
  140. package/dist/bundle/chunk-LC7ZD2RW.js +0 -92
  141. package/dist/bundle/chunk-LH6FJYMO.js +0 -334
  142. package/dist/bundle/chunk-LJKINNWC.js +0 -209
  143. package/dist/bundle/chunk-M36XP74N.js +0 -86
  144. package/dist/bundle/chunk-MNPGZCKE.js +0 -361
  145. package/dist/bundle/chunk-MRPMORLH.js +0 -353
  146. package/dist/bundle/chunk-NNREILWP.js +0 -189
  147. package/dist/bundle/chunk-NSOY4FMN.js +0 -159
  148. package/dist/bundle/chunk-OEEWVKJX.js +0 -53
  149. package/dist/bundle/chunk-OGJFDKDL.js +0 -161
  150. package/dist/bundle/chunk-PATZAYFZ.js +0 -453
  151. package/dist/bundle/chunk-PCR6GFNP.js +0 -1171
  152. package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
  153. package/dist/bundle/chunk-Q4MH2O5E.js +0 -108
  154. package/dist/bundle/chunk-QFOP3KUP.js +0 -2603
  155. package/dist/bundle/chunk-QQRJEWKB.js +0 -1197
  156. package/dist/bundle/chunk-S6JG4YUH.js +0 -72
  157. package/dist/bundle/chunk-SDVUGWD7.js +0 -614
  158. package/dist/bundle/chunk-SEFE6PGL.js +0 -218
  159. package/dist/bundle/chunk-SYRDEMQE.js +0 -68141
  160. package/dist/bundle/chunk-SYYQZDHJ.js +0 -95
  161. package/dist/bundle/chunk-T3W4V4A6.js +0 -63
  162. package/dist/bundle/chunk-TCT5D2X2.js +0 -6848
  163. package/dist/bundle/chunk-TES7MB6I.js +0 -82
  164. package/dist/bundle/chunk-TXDR6YSF.js +0 -23
  165. package/dist/bundle/chunk-TY7NDMFY.js +0 -46
  166. package/dist/bundle/chunk-U6XPWCWM.js +0 -133
  167. package/dist/bundle/chunk-UFKC7TIX.js +0 -28404
  168. package/dist/bundle/chunk-UNWF3TH5.js +0 -274
  169. package/dist/bundle/chunk-W3BOR6AT.js +0 -2333
  170. package/dist/bundle/chunk-WIHN3ELW.js +0 -2793
  171. package/dist/bundle/chunk-X76RS6JO.js +0 -1043
  172. package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
  173. package/dist/bundle/chunk-YF3S26TS.js +0 -4172
  174. package/dist/bundle/chunk-ZCQ4H7CA.js +0 -54
  175. package/dist/bundle/chunk-ZOZV32IR.js +0 -170
  176. package/dist/bundle/chunk-ZTKHXDEU.js +0 -52
  177. package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
  178. package/dist/bundle/cli-EAD3WZLR.js +0 -1254
  179. package/dist/bundle/command-contract-SMEJ2ICG.js +0 -40
  180. package/dist/bundle/command-server-entry-YTZP6I4T.js +0 -169
  181. package/dist/bundle/decode-57BE5OBT.js +0 -296
  182. package/dist/bundle/dispatch-56FECRCU.js +0 -411
  183. package/dist/bundle/dist-PAKDDIBT.js +0 -191
  184. package/dist/bundle/dist-T54K3FJV.js +0 -7577
  185. package/dist/bundle/echarts-QMAA7HH5.js +0 -42501
  186. package/dist/bundle/embed-NFGFYUO4.js +0 -37
  187. package/dist/bundle/embedder-SRBOJMXX.js +0 -110
  188. package/dist/bundle/failure-WDSX6H3B.js +0 -24
  189. package/dist/bundle/first-run-HWRUL2GR.js +0 -28
  190. package/dist/bundle/first-screen-ATN4D3FQ.js +0 -41
  191. package/dist/bundle/mcp-5HFPWC3W.js +0 -167
  192. package/dist/bundle/meeting-combined-BGDEHCWY.js +0 -26
  193. package/dist/bundle/meeting-model-WWGVRXPL.js +0 -24
  194. package/dist/bundle/meeting-semantic-ZQ47BL2Z.js +0 -21
  195. package/dist/bundle/node-P3PUHKYH.js +0 -176
  196. package/dist/bundle/node-P4E63KXA.js +0 -2340
  197. package/dist/bundle/node-TLZSIHIJ.js +0 -21
  198. package/dist/bundle/node-sqlite-JOTSNH3P.js +0 -73
  199. package/dist/bundle/oauth-XPSAL6VO.js +0 -19
  200. package/dist/bundle/open-PO52FVA5.js +0 -22
  201. package/dist/bundle/openai-WITYLMY5.js +0 -237
  202. package/dist/bundle/process-AFIXYXWL.js +0 -91
  203. package/dist/bundle/program-JODTZNBZ.js +0 -4920
  204. package/dist/bundle/prompt-XORLAXHY.js +0 -16
  205. package/dist/bundle/recognize-JKMZHDYS.js +0 -25
  206. package/dist/bundle/remote-3IMEJTEH.js +0 -30
  207. package/dist/bundle/rerank-3F2E6NNN.js +0 -51
  208. package/dist/bundle/serve-6BWU3NMB.js +0 -198
  209. package/dist/bundle/server-GPSB5WFG.js +0 -220
  210. package/dist/bundle/server-HMCC64ZU.js +0 -88
  211. package/dist/bundle/source-E72OS27D.js +0 -47
  212. package/dist/bundle/sqlite-runtime-YHYQDUXE.js +0 -19
  213. package/dist/bundle/state-R7W4U6T4.js +0 -35
  214. package/dist/bundle/store-HTVRL7FB.js +0 -312
  215. package/dist/bundle/store-IWW6U6QN.js +0 -34
  216. package/dist/bundle/store-TBZ3ZS6H.js +0 -186
  217. package/dist/bundle/store-maintenance-command-CJM2VLMW.js +0 -75
  218. package/dist/bundle/surface-5GBWNYBE.js +0 -74
  219. package/dist/bundle/writer-TW2Q55VJ.js +0 -49
  220. package/dist/commands/account.d.ts +0 -4
  221. package/dist/commands/account.d.ts.map +0 -1
  222. package/dist/commands/account.js.map +0 -1
  223. package/dist/commands/api.d.ts +0 -3
  224. package/dist/commands/api.d.ts.map +0 -1
  225. package/dist/commands/api.js.map +0 -1
  226. package/dist/commands/crm-shared.d.ts +0 -8
  227. package/dist/commands/crm-shared.d.ts.map +0 -1
  228. package/dist/commands/crm-shared.js.map +0 -1
  229. package/dist/commands/schedule.d.ts +0 -3
  230. package/dist/commands/schedule.d.ts.map +0 -1
  231. package/dist/commands/schedule.js.map +0 -1
  232. package/dist/commands/session.d.ts +0 -35
  233. package/dist/commands/session.d.ts.map +0 -1
  234. package/dist/commands/session.js.map +0 -1
  235. package/dist/commands/write.d.ts +0 -14
  236. package/dist/commands/write.d.ts.map +0 -1
  237. package/dist/commands/write.js.map +0 -1
  238. package/dist/config.d.ts +0 -4
  239. package/dist/config.d.ts.map +0 -1
  240. package/dist/config.js.map +0 -1
  241. package/dist/context.d.ts +0 -62
  242. package/dist/context.d.ts.map +0 -1
  243. package/dist/context.js.map +0 -1
  244. package/dist/crm/activities.d.ts +0 -32
  245. package/dist/crm/activities.d.ts.map +0 -1
  246. package/dist/crm/activities.js.map +0 -1
  247. package/dist/crm/records.d.ts +0 -20
  248. package/dist/crm/records.d.ts.map +0 -1
  249. package/dist/crm/records.js.map +0 -1
  250. package/dist/crm/source.d.ts +0 -41
  251. package/dist/crm/source.d.ts.map +0 -1
  252. package/dist/crm/source.js.map +0 -1
  253. package/dist/crm/writer.d.ts +0 -14
  254. package/dist/crm/writer.d.ts.map +0 -1
  255. package/dist/crm/writer.js.map +0 -1
  256. package/dist/identity.d.ts +0 -7
  257. package/dist/identity.d.ts.map +0 -1
  258. package/dist/identity.js.map +0 -1
  259. package/dist/index.d.ts +0 -3
  260. package/dist/index.d.ts.map +0 -1
  261. package/dist/index.js.map +0 -1
  262. package/dist/program.d.ts +0 -6
  263. package/dist/program.d.ts.map +0 -1
  264. package/dist/program.js.map +0 -1
  265. package/dist/reasons.d.ts +0 -10
  266. package/dist/reasons.d.ts.map +0 -1
  267. package/dist/reasons.js.map +0 -1
  268. package/dist/setup/flow.d.ts +0 -2
  269. package/dist/setup/flow.d.ts.map +0 -1
  270. package/dist/setup/flow.js.map +0 -1
  271. package/dist/store.d.ts +0 -15
  272. package/dist/store.d.ts.map +0 -1
  273. package/dist/store.js.map +0 -1
  274. package/dist/version.d.ts +0 -2
  275. package/dist/version.d.ts.map +0 -1
  276. package/dist/version.js.map +0 -1
  277. package/dist/wcat.d.ts +0 -3
  278. package/dist/wcat.d.ts.map +0 -1
  279. package/dist/wcat.js.map +0 -1
  280. package/dist/whoami.d.ts +0 -24
  281. package/dist/whoami.d.ts.map +0 -1
  282. package/dist/whoami.js.map +0 -1
@@ -1,560 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- UNTRUSTED,
5
- UNTRUSTED_NEUTRAL,
6
- agentArguments,
7
- agentJson
8
- } from "./chunk-LJKINNWC.js";
9
- import {
10
- onlineDeps,
11
- refuseLacking,
12
- servicesFor,
13
- storeModeDeps
14
- } from "./chunk-A5K2NU3K.js";
15
- import {
16
- callerOf
17
- } from "./chunk-Q4MH2O5E.js";
18
- import {
19
- DEFAULT_OUTPUT_BYTES,
20
- ENTITIES,
21
- LOCAL_WRITE,
22
- REMOTE_WRITE,
23
- answerSchema,
24
- judgedAnswer,
25
- judgedEffects,
26
- listOf,
27
- refuseStoreChange,
28
- sealed,
29
- startRecording
30
- } from "./chunk-5SQTHOBI.js";
31
- import {
32
- currentCaller,
33
- keepsSuccess,
34
- runContextOf,
35
- withCaller
36
- } from "./chunk-6OV2TRGF.js";
37
- import {
38
- inRun,
39
- newRunId
40
- } from "./chunk-PCR6GFNP.js";
41
- import {
42
- storeBusy,
43
- storeDamaged
44
- } from "./chunk-3TYER5IK.js";
45
- import {
46
- failureContext
47
- } from "./chunk-X76RS6JO.js";
48
- import {
49
- fetchesAt,
50
- keyForCommand,
51
- levelFor,
52
- readKeysForCommand
53
- } from "./chunk-SDVUGWD7.js";
54
- import {
55
- MAX_BUFFERED_INPUT
56
- } from "./chunk-TES7MB6I.js";
57
- import {
58
- traceIdOf
59
- } from "./chunk-WIHN3ELW.js";
60
- import {
61
- array,
62
- boolean,
63
- description,
64
- errorObjectOf,
65
- integer,
66
- itemEnvelopeSchema,
67
- listEnvelopeSchema,
68
- looseObject,
69
- maxLength,
70
- maxValue,
71
- mcpErrorResult,
72
- minLength,
73
- minValue,
74
- number,
75
- optional,
76
- pipe,
77
- record,
78
- regex,
79
- safeParse,
80
- strictObject,
81
- string,
82
- summarize,
83
- toJsonSchema,
84
- toStandardJsonSchema,
85
- unknown
86
- } from "./chunk-QFOP3KUP.js";
87
- import {
88
- CliError,
89
- errorCodes
90
- } from "./chunk-S6JG4YUH.js";
91
- import {
92
- __name
93
- } from "./chunk-ZVVMGPBJ.js";
94
-
95
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/surface.js
96
- import { randomUUID } from "node:crypto";
97
-
98
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/tool.js
99
- var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
100
- var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
101
- var message = pipe(
102
- string(),
103
- maxLength(256),
104
- // biome-ignore lint/suspicious/noControlCharactersInRegex: refusing them is the point
105
- regex(/^[^\s\x00-\x1F\x7F-\x9F]+$/, "a message id has no spaces or control characters"),
106
- description("message id")
107
- );
108
- var READ = { readOnlyHint: true, destructiveHint: false, openWorldHint: true };
109
- var WRITE = {
110
- readOnlyHint: false,
111
- destructiveHint: true,
112
- idempotentHint: false,
113
- openWorldHint: true
114
- };
115
- var tool = /* @__PURE__ */ __name((definition) => definition, "tool");
116
- var chatOf = /* @__PURE__ */ __name((messenger) => pipe(string(), minLength(1), description(messenger.chatArgument)), "chatOf");
117
- var tierOf = /* @__PURE__ */ __name((key, definition, messenger) => {
118
- if (definition.annotations.readOnlyHint === true)
119
- return "read";
120
- if (/^admin|_admin/.test(key))
121
- return "admin";
122
- if (/delete|ban|kick|remove|purge|block/.test(key))
123
- return "destructive";
124
- if (/draft/.test(key))
125
- return "draft";
126
- if (key === "messages_pin" && messenger?.quietPins === false)
127
- return "write-public";
128
- if (/mark_read|mark_unread|read_mark|archive|mute|pin|tag|note|label|folder|alias|save|_(un)?star$/.test(key))
129
- return "write-private";
130
- return "write-public";
131
- }, "tierOf");
132
- var effectsOf = /* @__PURE__ */ __name((definition) => {
133
- if (definition.effects)
134
- return definition.effects;
135
- const { readOnlyHint, openWorldHint } = definition.annotations;
136
- if (readOnlyHint === true)
137
- return { remote: openWorldHint === false ? "none" : "read", local: "read" };
138
- return openWorldHint === false ? LOCAL_WRITE : REMOTE_WRITE;
139
- }, "effectsOf");
140
- var outcomeOf = /* @__PURE__ */ __name((result) => {
141
- if (!result.isError)
142
- return { status: "ok" };
143
- const code = result.structuredContent?.error?.code;
144
- const error = typeof code === "string" ? code : "generic_failure";
145
- return { status: error === "permission_error" ? "refused" : "failed", error };
146
- }, "outcomeOf");
147
- var commandOf = /* @__PURE__ */ __name((name, definition) => definition.command ?? name.replaceAll("_", " "), "commandOf");
148
- var toolKey = /* @__PURE__ */ __name((name, definition) => definition.key !== void 0 ? definition.key : keyForCommand(commandOf(name, definition).split(" ")), "toolKey");
149
- var inputOf = /* @__PURE__ */ __name((definition, syncAllowed) => strictObject(syncAllowed || !("sync_first" in definition.input.entries) ? definition.input.entries : Object.fromEntries(Object.entries(definition.input.entries).filter(([name]) => !["sync_first", "sync_time", "max_chats", "max_messages"].includes(name)))), "inputOf");
150
- var syncAllowedFor = /* @__PURE__ */ __name((key, defaults) => {
151
- const permissions = defaults.settings.permissions ?? {};
152
- const shared = defaults.syncAllowed ?? fetchesAt(levelFor(permissions, "messages.sync-first").level);
153
- return shared && (!key.startsWith("stats_") || fetchesAt(levelFor(permissions, `${key.replaceAll("_", ".")}.sync-first`).level));
154
- }, "syncAllowedFor");
155
- var entryRunner = /* @__PURE__ */ __name((registration) => {
156
- const run = callRunner(registration);
157
- const { log } = registration;
158
- return async (key, definition, args, ctx) => {
159
- const startedAt = Date.now();
160
- const command = `mcp ${commandOf(key, definition)}`;
161
- const traceId = traceIdOf(ctx?.mcpReq?._meta?.traceparent);
162
- const app = registration.messenger?.app;
163
- const caller = registration.callers ? callerOf(ctx, key, registration.callers) : currentCaller();
164
- const env = registration.defaults.env ?? process.env;
165
- const settings = registration.defaults.settings;
166
- const recording = key !== "runs_search" && settings.keepFailedRuns !== false && app?.appName ? startRecording({
167
- app,
168
- command,
169
- ...settings.profile === void 0 ? {} : { profile: settings.profile },
170
- env,
171
- record: keepsSuccess({ record: settings.record ?? true, fromFlag: false, env, caller }),
172
- keepFailed: true,
173
- trace: false,
174
- format: "json",
175
- context: runContextOf({ bin: app.command, command, env, caller }),
176
- ...settings.keepRunsForDays === void 0 ? {} : { keepDays: settings.keepRunsForDays },
177
- ...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
178
- ...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
179
- ...traceId === void 0 ? {} : { traceId }
180
- }) : void 0;
181
- const profile = registration.defaults.settings.profile;
182
- const scope = {
183
- runId: recording?.runId ?? newRunId(new Date(startedAt), command),
184
- command,
185
- startedAt,
186
- ...profile === void 0 ? {} : { profile },
187
- ...traceId === void 0 ? {} : { traceId },
188
- ...recording ? { events: recording.events } : {}
189
- };
190
- const work = /* @__PURE__ */ __name(() => inRun(scope, () => {
191
- const input = inputOf(definition, syncAllowedFor(key, registration.defaults));
192
- const parsed = safeParse(input, args);
193
- return parsed.success ? run(key, definition, parsed.output, ctx) : failed(new CliError("validation_error", `${commandOf(key, definition)}: ${summarize(parsed.issues)}`, {
194
- arguments: toJsonSchema(input)
195
- }), app?.errors);
196
- }), "work");
197
- const result = await (caller ? withCaller(caller, work) : work());
198
- if (recording) {
199
- if (result.isError) {
200
- const error = result.structuredContent?.error;
201
- const code = error?.code && errorCodes.includes(error.code) ? error.code : void 0;
202
- await recording.fail(code ? new CliError(code, "MCP operation failed") : new Error("MCP operation failed")).catch(() => void 0);
203
- } else
204
- await recording.succeed(result.structuredContent).catch(() => void 0);
205
- }
206
- await log?.({
207
- tool: key,
208
- tier: tierOf(key, definition, registration.messenger),
209
- ...outcomeOf(result),
210
- startedAt,
211
- finishedAt: Date.now()
212
- }, caller)?.catch(() => void 0);
213
- return result;
214
- };
215
- }, "entryRunner");
216
- var callRunner = /* @__PURE__ */ __name(({ messenger, session, withStore, withServices, defaults, around, targets }) => {
217
- const where = {
218
- profile: defaults.settings.profile,
219
- env: defaults.env,
220
- pictures: defaults.settings.pictureSearch,
221
- reranker: defaults.settings.searchReranker
222
- };
223
- return async (key, definition, args, ctx) => {
224
- const path = commandOf(key, definition).split(" ");
225
- const run = `mcp ${path.join(" ")}`;
226
- try {
227
- const execute = /* @__PURE__ */ __name(async () => {
228
- const syncAllowed = syncAllowedFor(key, defaults);
229
- if (Buffer.byteLength(JSON.stringify(args)) > MAX_BUFFERED_INPUT)
230
- throw new CliError("validation_error", "tool arguments exceed the buffered input limit", {
231
- reason: "input.too-large",
232
- max_bytes: MAX_BUFFERED_INPUT,
233
- retryable: false
234
- });
235
- definition.check?.(args);
236
- if (definition.changesStore)
237
- refuseStoreChange(messenger.app, defaults.env);
238
- refuseLacking(messenger, path);
239
- for (const permission of readKeysForCommand(path)) {
240
- if (levelFor(defaults.settings.permissions ?? {}, permission).level === "deny")
241
- throw new CliError("permission_error", `profile denies ${permission}`, { permission });
242
- }
243
- if (args.sync_first && !syncAllowed)
244
- throw new CliError("permission_error", "messages.sync-first is not allowed by this profile");
245
- if (definition.custom) {
246
- const result2 = await definition.custom(args, { ...defaults, signal: ctx.mcpReq.signal }, ctx);
247
- return answered(result2, definition.outputLimit?.(args, defaults), targets);
248
- }
249
- if (definition.local)
250
- return answered(await definition.local(args, defaults), definition.outputLimit?.(args, defaults), targets);
251
- const { online, stored: local, served } = definition;
252
- const stored = local && (!definition.storedWhen || definition.storedWhen(args)) ? local : void 0;
253
- const result = stored ? await withStore((store, account) => stored(store, account, args, { ...defaults, signal: ctx.mcpReq.signal }, (work) => session.use(run, work)), {
254
- name: run
255
- }) : served && withServices ? await withServices((services, connect) => served(services, args, defaults, connect), { name: run }) : served && messenger.history === "store" ? await withStore((store, account) => served(servicesFor({
256
- ...storeModeDeps(messenger, store, account, defaults.guard),
257
- ...where,
258
- embedders: defaults.embedders
259
- }), args, defaults, (work) => session.use(run, async (adapter, release) => {
260
- try {
261
- return await work(adapter);
262
- } finally {
263
- await release();
264
- }
265
- })), { name: run }) : served ? await session.use(run, (adapter, release) => served(servicesFor(onlineDeps(messenger, adapter, defaults.guard, where)), args, defaults, (work) => (async () => {
266
- try {
267
- return await work(adapter);
268
- } finally {
269
- await release();
270
- }
271
- })())) : await session.use(run, (adapter, release) => online(adapter, args, { ...defaults, release }));
272
- return answered(result, definition.outputLimit?.(args, defaults), targets);
273
- }, "execute");
274
- return around ? await around(key, definition, execute) : await execute();
275
- } catch (error) {
276
- return failed(error, messenger?.app?.errors, effectsOf(definition));
277
- }
278
- };
279
- }, "callRunner");
280
- var outputSchemaOf = /* @__PURE__ */ __name((definition) => {
281
- if (!definition.output)
282
- return looseObject({});
283
- const entity = ENTITIES[definition.output.entity];
284
- return definition.output.list ? listEnvelopeSchema(entity) : itemEnvelopeSchema(entity);
285
- }, "outputSchemaOf");
286
- var Picture = class {
287
- static {
288
- __name(this, "Picture");
289
- }
290
- bytes;
291
- mimeType;
292
- about;
293
- constructor(bytes, mimeType, about) {
294
- this.bytes = bytes;
295
- this.mimeType = mimeType;
296
- this.about = about;
297
- }
298
- };
299
- var BinaryResource = class {
300
- static {
301
- __name(this, "BinaryResource");
302
- }
303
- base64;
304
- mimeType;
305
- uri;
306
- about;
307
- constructor(base64, mimeType, uri, about) {
308
- this.base64 = base64;
309
- this.mimeType = mimeType;
310
- this.uri = uri;
311
- this.about = about;
312
- }
313
- };
314
- var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES, targets) => {
315
- const bounded = /* @__PURE__ */ __name((result) => {
316
- if (maxBytes !== 0 && Buffer.byteLength(JSON.stringify(result.content)) > maxBytes)
317
- throw new CliError("invalid_response", "tool output exceeds its byte limit \u2014 reduce limit or use a narrower request", { reason: "output.too-large", max_bytes: maxBytes, retryable: false });
318
- return result;
319
- }, "bounded");
320
- if (answer === null || Array.isArray(answer) || typeof answer !== "object")
321
- throw new CliError("invalid_response", "tool result must be an object", { retryable: false });
322
- const objectBody = /* @__PURE__ */ __name((value) => {
323
- const serialized = JSON.parse(agentJson(value));
324
- if (serialized === null || Array.isArray(serialized) || typeof serialized !== "object")
325
- throw new CliError("invalid_response", "serialized tool result must be an object", { retryable: false });
326
- return serialized;
327
- }, "objectBody");
328
- if (answer instanceof BinaryResource) {
329
- const about = sealed(answer.about);
330
- return bounded({
331
- structuredContent: objectBody(about),
332
- content: [
333
- { type: "resource", resource: { uri: answer.uri, mimeType: answer.mimeType, blob: answer.base64 } },
334
- { type: "text", text: agentJson(about) }
335
- ]
336
- });
337
- }
338
- if (answer instanceof Picture) {
339
- const about = sealed(answer.about);
340
- return bounded({
341
- structuredContent: objectBody(about),
342
- content: [
343
- { type: "image", data: Buffer.from(answer.bytes).toString("base64"), mimeType: answer.mimeType },
344
- { type: "text", text: agentJson(about) }
345
- ]
346
- });
347
- }
348
- const body = objectBody(sealed(targets ? judgedAnswer(answer, targets) : answer));
349
- return bounded({ content: [{ type: "text", text: JSON.stringify(body) }], structuredContent: body });
350
- }, "answered");
351
- var failed = /* @__PURE__ */ __name((error, errors, effects) => {
352
- const judged = judgedEffects(effects);
353
- const context = { ...failureContext(errors), ...judged ? { effects: judged } : {} };
354
- return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeBusy(storeDamaged(error)), context))));
355
- }, "failed");
356
-
357
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/surface.js
358
- var MATCHES = 8;
359
- var ANSWER = answerSchema();
360
- var agentAnswer = /* @__PURE__ */ __name((prefix, writes) => {
361
- const meta = pipe(looseObject({}), description(`run facts; ${prefix}_tools_search shows the full answer`));
362
- const next = optional(pipe(array(looseObject({})), description("steps to run next: command and args")));
363
- return looseObject(writes ? { item: optional(unknown()), next, meta } : {
364
- items: optional(array(unknown())),
365
- item: optional(unknown()),
366
- page: optional(looseObject({ has_more: boolean() })),
367
- next,
368
- missing: optional(array(looseObject({ field: string(), why: string() }))),
369
- meta
370
- });
371
- }, "agentAnswer");
372
- var listedAs = /* @__PURE__ */ __name((prefix, writes) => {
373
- const checked = toStandardJsonSchema(ANSWER);
374
- const shown = toStandardJsonSchema(agentAnswer(prefix, writes))["~standard"].jsonSchema;
375
- return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
376
- }, "listedAs");
377
- var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
378
- var STOP_WORDS = new Set("a an the to of in on at by for from with into out about and or but is are be been was were it its this that these those which who whom whose what when where how do does did can could should would will my our your their his her them they we you i one some any all each every another other".split(" "));
379
- var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), "wordsOf");
380
- var stem = /* @__PURE__ */ __name((word) => {
381
- const bare = word.replace(/'s$/u, "");
382
- if (bare.length > 4 && bare.endsWith("ies"))
383
- return `${bare.slice(0, -3)}y`;
384
- for (const ending of ["ing", "ed", "es", "s"])
385
- if (bare.length - ending.length >= 3 && bare.endsWith(ending))
386
- return bare.slice(0, -ending.length);
387
- return bare;
388
- }, "stem");
389
- var sameWord = /* @__PURE__ */ __name((asked, known) => {
390
- if (asked === known)
391
- return true;
392
- const [short, long] = asked.length <= known.length ? [asked, known] : [known, asked];
393
- return short.length >= 3 && long.startsWith(short);
394
- }, "sameWord");
395
- var fieldsOf = /* @__PURE__ */ __name((command, one) => [
396
- [4, [...wordsOf(command), ...(one.aliases ?? []).flatMap(wordsOf)]],
397
- [2, wordsOf(one.title)],
398
- [1, [...wordsOf(one.description), ...(one.keywords ?? []).flatMap(wordsOf), ...Object.keys(one.input.entries)]]
399
- ].map(([weight, words]) => [weight, [...new Set(words.map(stem))]]), "fieldsOf");
400
- var search = /* @__PURE__ */ __name((commands, query) => {
401
- const named = normal(query);
402
- const all = Object.entries(commands);
403
- if (!named)
404
- return all.map((entry) => entry).sort((a, b) => a[0].localeCompare(b[0]));
405
- const words = [
406
- ...new Set(wordsOf(query).filter((word) => word.length > 1 && !STOP_WORDS.has(word)).map(stem))
407
- ];
408
- return all.map((entry) => {
409
- const fields = fieldsOf(entry[0], entry[1]);
410
- const weights = words.map((word) => fields.reduce((best, [weight, known]) => known.some((one) => sameWord(word, one)) ? Math.max(best, weight) : best, 0));
411
- const matched = weights.filter((weight) => weight > 0).length;
412
- const exact = normal(entry[0]) === named || (entry[1].aliases ?? []).some((alias) => normal(alias) === named);
413
- return { entry, matched, rank: (exact ? 1e3 : 0) + matched * 10 + weights.reduce((a, b) => a + b, 0) };
414
- }).filter(({ matched, rank }) => matched > 0 || rank >= 1e3).sort((a, b) => b.rank - a.rank || wordsOf(a.entry[0]).length - wordsOf(b.entry[0]).length || a.entry[0].localeCompare(b.entry[0])).map(({ entry }) => entry);
415
- }, "search");
416
- var nearest = /* @__PURE__ */ __name((commands, asked) => {
417
- const words = normal(asked).split(" ");
418
- return Object.keys(commands).map((one) => ({ one, shared: words.filter((word) => normal(one).split(" ").includes(word)).length })).filter(({ shared }) => shared > 0).sort((a, b) => b.shared - a.shared).slice(0, 3).map(({ one }) => one);
419
- }, "nearest");
420
- var runnableOnly = /* @__PURE__ */ __name((result, offered) => {
421
- const body = result.structuredContent;
422
- if (result.isError || !Array.isArray(body?.next))
423
- return result;
424
- const next = body.next.filter((step) => step.command === void 0 || offered(step.command));
425
- const { next: _, ...rest } = body;
426
- const kept = next.length > 0 ? { ...rest, next } : rest;
427
- return {
428
- ...result,
429
- structuredContent: kept,
430
- content: result.content.map((part) => part.type === "text" ? { ...part, text: JSON.stringify(kept) } : part)
431
- };
432
- }, "runnableOnly");
433
- var takesNothing = /* @__PURE__ */ __name((one) => Object.values(one.input.entries).every((entry) => entry.type === "optional"), "takesNothing");
434
- var sampleOf = /* @__PURE__ */ __name((commands) => {
435
- const reading = Object.entries(commands).filter(([, one]) => !one.writes);
436
- const bare = reading.filter(([, one]) => takesNothing(one));
437
- return bare.find(([command]) => command.endsWith(" list"))?.[0] ?? bare[0]?.[0] ?? reading[0]?.[0] ?? Object.keys(commands)[0] ?? "";
438
- }, "sampleOf");
439
- var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors, withheld, isMessenger) => {
440
- const byNormal = new Map(Object.keys(commands).map((command) => [normal(command), command]));
441
- const messenger = isMessenger ?? Object.keys(commands).some((command) => command.split(" ")[0] === "messages");
442
- const tasks = messenger ? '"unread", "send message", "chat members"' : '"list", "show", "change a setting"';
443
- const sample = messenger ? "messages list" : sampleOf(commands);
444
- const untrusted = messenger ? UNTRUSTED : UNTRUSTED_NEUTRAL;
445
- server.registerTool(`${prefix}_tools_search`, {
446
- outputSchema: toStandardJsonSchema(looseObject({})),
447
- title: "Find a command",
448
- description: `Find the command for a task \u2014 ${tasks} \u2014 before calling ${prefix}_read or ${prefix}_write with it. Each match gives its command, whether it writes, its arguments and the shape of its answer. With no words, lists every command and title, without arguments.`,
449
- inputSchema: toStandardJsonSchema(strictObject({ query: optional(pipe(string(), description("words that describe the task"))) })),
450
- annotations: { ...READ, openWorldHint: false, idempotentHint: true }
451
- }, async ({ query }) => {
452
- const found = search(commands, query ?? "");
453
- const items = query?.trim() ? found.slice(0, MATCHES).map(([command, one]) => ({
454
- command,
455
- title: one.title,
456
- description: one.description,
457
- writes: one.writes,
458
- availability: one.availability?.() ?? { available: true },
459
- arguments: toJsonSchema(one.input),
460
- output: toJsonSchema(one.output ?? ANSWER)
461
- })) : found.map(([command, one]) => ({
462
- command,
463
- title: one.title,
464
- writes: one.writes,
465
- availability: one.availability?.() ?? { available: true }
466
- }));
467
- const { next: _paging, ...list } = listOf(`${prefix}_tools_search`, {
468
- items,
469
- limit: Math.max(items.length, query?.trim() ? MATCHES : 1),
470
- has_more: found.length > items.length
471
- });
472
- return answered(list);
473
- });
474
- const callers = {
475
- env: process.env,
476
- client: /* @__PURE__ */ __name(() => server.server.getClientVersion(), "client"),
477
- connectionId: randomUUID()
478
- };
479
- const runner = /* @__PURE__ */ __name((writing) => async ({ command: asked, arguments: given }, ctx) => {
480
- try {
481
- const command = byNormal.get(normal(asked));
482
- const one = command === void 0 ? void 0 : commands[command];
483
- if (command === void 0 || !one) {
484
- withheld?.(normal(asked));
485
- const near = nearest(commands, asked);
486
- throw new CliError("validation_error", `no command "${asked}" here${near.length ? ` \u2014 did you mean ${near.map((name) => `"${name}"`).join(", ")}?` : ""}; ${prefix}_tools_search finds one`);
487
- }
488
- if (one.writes !== writing)
489
- throw new CliError("validation_error", `"${command}" ${writing ? "only reads" : "writes"}: call it with ${prefix}_${writing ? "read" : "write"}`);
490
- const args = writing ? agentArguments(given ?? {}) : given ?? {};
491
- const caller = currentCaller() ?? callerOf(ctx, command.replace(/[ -]/g, "_"), callers);
492
- if (one.checked)
493
- return runnableOnly(await withCaller(caller, () => one.run(args, ctx)), (named) => byNormal.has(normal(named)));
494
- const parsed = safeParse(strictObject(one.input.entries), args);
495
- if (!parsed.success)
496
- throw new CliError("validation_error", `${command}: ${summarize(parsed.issues)}`, {
497
- arguments: toJsonSchema(one.input)
498
- });
499
- return runnableOnly(await withCaller(caller, () => one.run(parsed.output, ctx)), (named) => byNormal.has(normal(named)));
500
- } catch (error) {
501
- return failed(error, errors);
502
- }
503
- }, "runner");
504
- const call = strictObject({
505
- command: pipe(string(), minLength(1), description(`a command ${prefix}_tools_search returned: "${sample}"`)),
506
- arguments: optional(pipe(record(string(), unknown()), description("that command's arguments")))
507
- });
508
- server.registerTool(`${prefix}_read`, {
509
- outputSchema: listedAs(prefix, false),
510
- title: "Run a reading command",
511
- description: `Run one command that only reads, with the arguments ${prefix}_tools_search showed. ${untrusted}`,
512
- inputSchema: toStandardJsonSchema(call),
513
- annotations: READ
514
- }, runner(false));
515
- if (Object.values(commands).some((one) => one.writes))
516
- server.registerTool(`${prefix}_write`, {
517
- outputSchema: listedAs(prefix, true),
518
- title: "Run a writing command",
519
- description: `Run one command that changes something \u2014 ${messenger ? "sends, edits, deletes, joins" : "creates, edits, deletes"} \u2014 with the arguments ${prefix}_tools_search showed. ${untrusted}`,
520
- inputSchema: toStandardJsonSchema(call),
521
- annotations: WRITE
522
- }, runner(true));
523
- }, "registerCommands");
524
- var surfaceCommands = /* @__PURE__ */ __name((tools, registration) => {
525
- const run = entryRunner(registration);
526
- return Object.fromEntries(Object.entries(tools).map(([key, definition]) => [
527
- commandOf(key, definition),
528
- {
529
- title: definition.title,
530
- description: definition.description,
531
- writes: definition.annotations.readOnlyHint !== true,
532
- input: inputOf(definition, syncAllowedFor(key, registration.defaults)),
533
- ...definition.output ? { output: outputSchemaOf(definition) } : {},
534
- checked: true,
535
- run: /* @__PURE__ */ __name((args, ctx) => run(key, definition, args, ctx), "run")
536
- }
537
- ]));
538
- }, "surfaceCommands");
539
- var outputOf = /* @__PURE__ */ __name(({ entity, view }) => answerSchema(ENTITIES[view ? `${entity}.${view}` : entity] ?? unknown()), "outputOf");
540
-
541
- export {
542
- message,
543
- READ,
544
- WRITE,
545
- tool,
546
- chatOf,
547
- tierOf,
548
- outcomeOf,
549
- commandOf,
550
- toolKey,
551
- Picture,
552
- BinaryResource,
553
- answered,
554
- failed,
555
- normal,
556
- search,
557
- registerCommands,
558
- surfaceCommands,
559
- outputOf
560
- };
@@ -1,123 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
-
4
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/ports/wirecat-tools.js
5
- var WIRECAT_TOOLS = [
6
- {
7
- command: "tg",
8
- appName: "tg-cli",
9
- envPrefix: "TG",
10
- package: "@wirecat/tg-cli",
11
- does: "Telegram in the same local store: search, review and tasks offline"
12
- },
13
- {
14
- command: "max",
15
- appName: "max-cli",
16
- envPrefix: "MAX",
17
- package: "@wirecat/max-cli",
18
- does: "MAX in the same local store: search, review and tasks offline"
19
- },
20
- {
21
- command: "wa",
22
- appName: "whatsapp-cli",
23
- envPrefix: "WA",
24
- package: "@wirecat/whatsapp-cli",
25
- does: "WhatsApp in the same local store: search, review and tasks offline"
26
- },
27
- {
28
- command: "zm",
29
- appName: "zoom-cli",
30
- envPrefix: "ZM",
31
- package: "@wirecat/zoom-cli",
32
- does: "Zoom meetings: transcripts and summaries, searchable with your other WireCat data"
33
- },
34
- {
35
- command: "drive",
36
- appName: "drive-cli",
37
- envPrefix: "DRIVE",
38
- package: "@wirecat/drive-cli",
39
- does: "Google Drive and Docs as local text, searchable with your other WireCat data"
40
- },
41
- {
42
- command: "gcal",
43
- appName: "gcal-cli",
44
- envPrefix: "GCAL",
45
- package: "@wirecat/gcal-cli",
46
- does: "Google Calendar events, searchable with your other WireCat data"
47
- },
48
- {
49
- command: "memo",
50
- appName: "cli-memo",
51
- envPrefix: "MEMO",
52
- package: "@wirecat/cli-memo",
53
- shown: "memo context <person>",
54
- does: "one person across messengers, mail, notes and meetings"
55
- },
56
- {
57
- command: "mail",
58
- appName: "mail-cli",
59
- envPrefix: "MAIL",
60
- package: "@wirecat/mail-cli",
61
- does: "IMAP mail in the same local store: search your mailbox offline, next to your other WireCat data"
62
- },
63
- {
64
- command: "b24",
65
- appName: "bitrix24-cli",
66
- envPrefix: "B24",
67
- package: "@wirecat/bitrix24-cli",
68
- does: "Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data"
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
- },
77
- {
78
- command: "attio",
79
- appName: "attio-cli",
80
- envPrefix: "WCATTIO",
81
- package: "@wirecat/attio-cli",
82
- does: "Attio CRM: deals, people and companies, searchable with your other WireCat data"
83
- },
84
- {
85
- command: "pbx",
86
- appName: "asterisk-cli",
87
- envPrefix: "PBX",
88
- package: "@wirecat/asterisk-cli",
89
- does: "Asterisk PBX calls and recordings, searchable with your other WireCat data"
90
- },
91
- {
92
- command: "notion",
93
- appName: "notion-cli",
94
- envPrefix: "WCNOTION",
95
- package: "@wirecat/notion-cli",
96
- does: "Notion pages and databases as local text, searchable with your other WireCat data"
97
- },
98
- {
99
- command: "ydisk",
100
- appName: "yandex-disk-cli",
101
- envPrefix: "YDISK",
102
- package: "@wirecat/yandex-disk-cli",
103
- does: "Yandex Disk folders as local text, searchable with your other WireCat data"
104
- },
105
- {
106
- command: "wordpress",
107
- appName: "wordpress-cli",
108
- envPrefix: "WCWP",
109
- package: "@wirecat/wordpress-cli",
110
- does: "WordPress posts and pages, searchable with your other WireCat data"
111
- },
112
- {
113
- command: "linear",
114
- appName: "linear-cli",
115
- envPrefix: "WCLINEAR",
116
- package: "@wirecat/linear-cli",
117
- does: "Linear issues and projects, searchable with your other WireCat data"
118
- }
119
- ];
120
-
121
- export {
122
- WIRECAT_TOOLS
123
- };