@wirecat/attio-cli 0.9.0 → 0.11.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 (206) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/contracts/wirecat.json +1 -0
  3. package/dist/bin/attio.js +11 -11
  4. package/dist/bundle/attio.js +5 -166
  5. package/dist/bundle/{chunk-6E5QWCBK.js → chunk-OFEXB726.js} +2 -1
  6. package/dist/bundle/chunk-TQAECZFO.js +13 -0
  7. package/dist/bundle/{definitions-FODOIPM2.js → definitions-J73IBAHT.js} +1 -1
  8. package/dist/bundle/program-4R7RYWV3.js +6210 -0
  9. package/dist/bundle/{schemas-YGSTNU6F.js → schemas-G3HFAS45.js} +576 -29
  10. package/dist/commands/api.js +1 -2
  11. package/dist/commands/crm.js +12 -4
  12. package/dist/commands/schedule.js +1 -1
  13. package/dist/commands/session.js +1 -2
  14. package/dist/config.js +1 -2
  15. package/dist/context.js +1 -1
  16. package/dist/identity.js +1 -0
  17. package/dist/program.js +1 -2
  18. package/dist/version.js +1 -1
  19. package/package.json +3 -3
  20. package/dist/activities.d.ts +0 -4
  21. package/dist/activities.d.ts.map +0 -1
  22. package/dist/activities.js.map +0 -1
  23. package/dist/bin/attio.d.ts +0 -3
  24. package/dist/bin/attio.d.ts.map +0 -1
  25. package/dist/bin/attio.js.map +0 -1
  26. package/dist/bundle/agent-C3SZOGZS.js +0 -38
  27. package/dist/bundle/all-profiles-673VSTRG.js +0 -320
  28. package/dist/bundle/anthropic-V4RZS5XM.js +0 -91
  29. package/dist/bundle/app-server-CTEDPA5H.js +0 -249
  30. package/dist/bundle/bun-F4M4KCNA.js +0 -169
  31. package/dist/bundle/bun-sqlite-33JTNHCK.js +0 -76
  32. package/dist/bundle/chunk-2R2EX5I6.js +0 -54
  33. package/dist/bundle/chunk-5EH7S4RM.js +0 -362
  34. package/dist/bundle/chunk-5N2V6XO7.js +0 -119
  35. package/dist/bundle/chunk-5WY6RURV.js +0 -161
  36. package/dist/bundle/chunk-6V7ZUJI6.js +0 -4072
  37. package/dist/bundle/chunk-AOKAYQSJ.js +0 -2338
  38. package/dist/bundle/chunk-AQ5RIOUE.js +0 -633
  39. package/dist/bundle/chunk-B4DVW2BA.js +0 -185
  40. package/dist/bundle/chunk-C7JPYWYQ.js +0 -77
  41. package/dist/bundle/chunk-D72URWJE.js +0 -532
  42. package/dist/bundle/chunk-DBHZ7TQ7.js +0 -69828
  43. package/dist/bundle/chunk-DFDN6AUB.js +0 -21
  44. package/dist/bundle/chunk-DNCLQPOM.js +0 -7
  45. package/dist/bundle/chunk-DPV53EZC.js +0 -206
  46. package/dist/bundle/chunk-E2L4R6EI.js +0 -388
  47. package/dist/bundle/chunk-EDWRHVHD.js +0 -218
  48. package/dist/bundle/chunk-EH6ZEJGT.js +0 -932
  49. package/dist/bundle/chunk-EV6B3GHM.js +0 -323
  50. package/dist/bundle/chunk-FBWECICU.js +0 -259
  51. package/dist/bundle/chunk-FFER7KJI.js +0 -407
  52. package/dist/bundle/chunk-FTH6WGYO.js +0 -24
  53. package/dist/bundle/chunk-G3PK5BZB.js +0 -1222
  54. package/dist/bundle/chunk-G46PNDWL.js +0 -58
  55. package/dist/bundle/chunk-G6NY7LFB.js +0 -230
  56. package/dist/bundle/chunk-GLU36VKA.js +0 -52
  57. package/dist/bundle/chunk-GZ7WBU5Y.js +0 -18
  58. package/dist/bundle/chunk-HMYBAVIE.js +0 -86
  59. package/dist/bundle/chunk-HOJJPSLU.js +0 -288
  60. package/dist/bundle/chunk-HUAHLO6N.js +0 -29
  61. package/dist/bundle/chunk-ISQ23VKV.js +0 -123
  62. package/dist/bundle/chunk-J2LSOG3A.js +0 -12766
  63. package/dist/bundle/chunk-K5L77R7P.js +0 -66
  64. package/dist/bundle/chunk-KKRFVN4X.js +0 -1835
  65. package/dist/bundle/chunk-KLRCTMES.js +0 -100
  66. package/dist/bundle/chunk-KYRYD4CR.js +0 -38
  67. package/dist/bundle/chunk-L5QLKUQR.js +0 -794
  68. package/dist/bundle/chunk-MFSWMNSZ.js +0 -334
  69. package/dist/bundle/chunk-MYK2F5LD.js +0 -1251
  70. package/dist/bundle/chunk-NBNQLNVV.js +0 -388
  71. package/dist/bundle/chunk-O3DZDITT.js +0 -274
  72. package/dist/bundle/chunk-OEEWVKJX.js +0 -53
  73. package/dist/bundle/chunk-P5XYQZVW.js +0 -80
  74. package/dist/bundle/chunk-P6OJKJJS.js +0 -1197
  75. package/dist/bundle/chunk-P6S3ZRVW.js +0 -106
  76. package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
  77. package/dist/bundle/chunk-QBJRK733.js +0 -1068
  78. package/dist/bundle/chunk-QBYE26ZC.js +0 -131
  79. package/dist/bundle/chunk-QPPOIWPY.js +0 -1246
  80. package/dist/bundle/chunk-R2CEA7MK.js +0 -743
  81. package/dist/bundle/chunk-S4UUN6LD.js +0 -1410
  82. package/dist/bundle/chunk-S6JG4YUH.js +0 -72
  83. package/dist/bundle/chunk-SKUY7JDA.js +0 -164
  84. package/dist/bundle/chunk-T35IOBPJ.js +0 -1341
  85. package/dist/bundle/chunk-T3W4V4A6.js +0 -63
  86. package/dist/bundle/chunk-TB3LN5G2.js +0 -50
  87. package/dist/bundle/chunk-TCT5D2X2.js +0 -6848
  88. package/dist/bundle/chunk-TES7MB6I.js +0 -82
  89. package/dist/bundle/chunk-TXDR6YSF.js +0 -23
  90. package/dist/bundle/chunk-TY7NDMFY.js +0 -46
  91. package/dist/bundle/chunk-U7UTYALA.js +0 -353
  92. package/dist/bundle/chunk-UOWHMOU3.js +0 -188
  93. package/dist/bundle/chunk-UXDUWGX6.js +0 -2791
  94. package/dist/bundle/chunk-V5I3QHDU.js +0 -558
  95. package/dist/bundle/chunk-VCDIKCFE.js +0 -1007
  96. package/dist/bundle/chunk-VJHUMB7U.js +0 -338
  97. package/dist/bundle/chunk-W4KLHM2K.js +0 -95
  98. package/dist/bundle/chunk-W5LKEOGN.js +0 -142
  99. package/dist/bundle/chunk-WLDZWHSF.js +0 -170
  100. package/dist/bundle/chunk-WQEEYEWO.js +0 -3752
  101. package/dist/bundle/chunk-WRF6TY63.js +0 -1521
  102. package/dist/bundle/chunk-WXYOELRI.js +0 -108
  103. package/dist/bundle/chunk-WZBPUOWM.js +0 -76
  104. package/dist/bundle/chunk-XGNZD52X.js +0 -592
  105. package/dist/bundle/chunk-XQUUANA2.js +0 -24600
  106. package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
  107. package/dist/bundle/chunk-YQH4J6YZ.js +0 -358
  108. package/dist/bundle/chunk-Z7Y2I5YR.js +0 -44045
  109. package/dist/bundle/chunk-ZBCC7MBN.js +0 -9671
  110. package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
  111. package/dist/bundle/command-contract-ZL67KMYL.js +0 -37
  112. package/dist/bundle/command-server-entry-COR2VDRU.js +0 -166
  113. package/dist/bundle/decode-33SGRQM6.js +0 -297
  114. package/dist/bundle/dispatch-2FTOHA5D.js +0 -411
  115. package/dist/bundle/dist-EM7KLEG4.js +0 -7577
  116. package/dist/bundle/dist-PAKDDIBT.js +0 -191
  117. package/dist/bundle/echarts-QMAA7HH5.js +0 -42501
  118. package/dist/bundle/embed-W4ZBXPWD.js +0 -38
  119. package/dist/bundle/embedder-73CCZC52.js +0 -111
  120. package/dist/bundle/failure-OHIXWTR6.js +0 -25
  121. package/dist/bundle/first-run-MOSUMMVX.js +0 -28
  122. package/dist/bundle/first-screen-GUXBF3SL.js +0 -38
  123. package/dist/bundle/instructions-4H7UREH2.js +0 -11
  124. package/dist/bundle/mcp-5HFPWC3W.js +0 -167
  125. package/dist/bundle/meeting-combined-QMIZOBBJ.js +0 -24
  126. package/dist/bundle/meeting-model-2UYVGXD5.js +0 -25
  127. package/dist/bundle/meeting-semantic-LEJPUIN3.js +0 -22
  128. package/dist/bundle/node-KM3CUABH.js +0 -2340
  129. package/dist/bundle/node-P3PUHKYH.js +0 -176
  130. package/dist/bundle/node-TLZSIHIJ.js +0 -21
  131. package/dist/bundle/node-sqlite-UHPODTKB.js +0 -74
  132. package/dist/bundle/oauth-T3DWL7OV.js +0 -20
  133. package/dist/bundle/open-ODWX32PF.js +0 -23
  134. package/dist/bundle/openai-GSXXHKPX.js +0 -238
  135. package/dist/bundle/process-AFIXYXWL.js +0 -91
  136. package/dist/bundle/program-SXSUG335.js +0 -35250
  137. package/dist/bundle/prompt-GVTYTFK7.js +0 -17
  138. package/dist/bundle/recognize-XDSZEZP5.js +0 -26
  139. package/dist/bundle/remote-ZWZKMEY6.js +0 -31
  140. package/dist/bundle/rerank-OBZQ54NL.js +0 -52
  141. package/dist/bundle/serve-NY5MUTNW.js +0 -199
  142. package/dist/bundle/server-JK334V5Y.js +0 -212
  143. package/dist/bundle/server-VOPYQCUD.js +0 -79
  144. package/dist/bundle/sqlite-runtime-2NHF4S6G.js +0 -20
  145. package/dist/bundle/state-YGWZZWPM.js +0 -36
  146. package/dist/bundle/store-LRQUTFJR.js +0 -306
  147. package/dist/bundle/store-ND6KU4RI.js +0 -181
  148. package/dist/bundle/store-maintenance-command-GLYGQM2V.js +0 -66
  149. package/dist/bundle/surface-P53WLLXP.js +0 -65
  150. package/dist/commands/api.d.ts +0 -12
  151. package/dist/commands/api.d.ts.map +0 -1
  152. package/dist/commands/api.js.map +0 -1
  153. package/dist/commands/crm.d.ts +0 -7
  154. package/dist/commands/crm.d.ts.map +0 -1
  155. package/dist/commands/crm.js.map +0 -1
  156. package/dist/commands/schedule.d.ts +0 -3
  157. package/dist/commands/schedule.d.ts.map +0 -1
  158. package/dist/commands/schedule.js.map +0 -1
  159. package/dist/commands/session.d.ts +0 -8
  160. package/dist/commands/session.d.ts.map +0 -1
  161. package/dist/commands/session.js.map +0 -1
  162. package/dist/config.d.ts +0 -13
  163. package/dist/config.d.ts.map +0 -1
  164. package/dist/config.js.map +0 -1
  165. package/dist/context.d.ts +0 -37
  166. package/dist/context.d.ts.map +0 -1
  167. package/dist/context.js.map +0 -1
  168. package/dist/generated/definitions.d.ts +0 -3
  169. package/dist/generated/definitions.d.ts.map +0 -1
  170. package/dist/generated/definitions.js.map +0 -1
  171. package/dist/generated/manifest.d.ts +0 -6
  172. package/dist/generated/manifest.d.ts.map +0 -1
  173. package/dist/generated/manifest.js.map +0 -1
  174. package/dist/generated/schemas.d.ts +0 -383
  175. package/dist/generated/schemas.d.ts.map +0 -1
  176. package/dist/generated/schemas.js.map +0 -1
  177. package/dist/generated/types.d.ts +0 -10166
  178. package/dist/generated/types.d.ts.map +0 -1
  179. package/dist/generated/types.js.map +0 -1
  180. package/dist/generated/wirecat-config.d.ts +0 -15
  181. package/dist/generated/wirecat-config.d.ts.map +0 -1
  182. package/dist/generated/wirecat-config.js.map +0 -1
  183. package/dist/hooks.d.ts +0 -33
  184. package/dist/hooks.d.ts.map +0 -1
  185. package/dist/hooks.js.map +0 -1
  186. package/dist/identity.d.ts +0 -33
  187. package/dist/identity.d.ts.map +0 -1
  188. package/dist/identity.js.map +0 -1
  189. package/dist/index.d.ts +0 -3
  190. package/dist/index.d.ts.map +0 -1
  191. package/dist/index.js.map +0 -1
  192. package/dist/links.d.ts +0 -10
  193. package/dist/links.d.ts.map +0 -1
  194. package/dist/links.js.map +0 -1
  195. package/dist/meetings.d.ts +0 -57
  196. package/dist/meetings.d.ts.map +0 -1
  197. package/dist/meetings.js.map +0 -1
  198. package/dist/program.d.ts +0 -6
  199. package/dist/program.d.ts.map +0 -1
  200. package/dist/program.js.map +0 -1
  201. package/dist/version.d.ts +0 -2
  202. package/dist/version.d.ts.map +0 -1
  203. package/dist/version.js.map +0 -1
  204. package/dist/wcat.d.ts +0 -3
  205. package/dist/wcat.d.ts.map +0 -1
  206. package/dist/wcat.js.map +0 -1
@@ -1,38 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- WARM_IDLE_MS,
5
- defaultThreads,
6
- isTextModelInstalled,
7
- loadModel,
8
- meanOf,
9
- openEmbedder,
10
- placedText,
11
- runEmbedders,
12
- textModelsDirectory,
13
- truncated,
14
- unit,
15
- warmEmbedders
16
- } from "./chunk-VCDIKCFE.js";
17
- import "./chunk-O3DZDITT.js";
18
- import "./chunk-2R2EX5I6.js";
19
- import "./chunk-UXDUWGX6.js";
20
- import "./chunk-QPPOIWPY.js";
21
- import "./chunk-S4UUN6LD.js";
22
- import "./chunk-Y5E2WNWB.js";
23
- import "./chunk-S6JG4YUH.js";
24
- import "./chunk-ZVVMGPBJ.js";
25
- export {
26
- WARM_IDLE_MS,
27
- defaultThreads,
28
- isTextModelInstalled,
29
- loadModel,
30
- meanOf,
31
- openEmbedder,
32
- placedText,
33
- runEmbedders,
34
- textModelsDirectory,
35
- truncated,
36
- unit,
37
- warmEmbedders
38
- };
@@ -1,111 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- openSession,
5
- truncated,
6
- unit
7
- } from "./chunk-VCDIKCFE.js";
8
- import "./chunk-O3DZDITT.js";
9
- import "./chunk-2R2EX5I6.js";
10
- import "./chunk-UXDUWGX6.js";
11
- import "./chunk-QPPOIWPY.js";
12
- import "./chunk-S4UUN6LD.js";
13
- import {
14
- importFrom
15
- } from "./chunk-Y5E2WNWB.js";
16
- import {
17
- CliError
18
- } from "./chunk-S6JG4YUH.js";
19
- import {
20
- __name
21
- } from "./chunk-ZVVMGPBJ.js";
22
-
23
- // 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/images/picture/embedder.js
24
- import { readFileSync } from "node:fs";
25
- import { join } from "node:path";
26
-
27
- // 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/images/picture/preprocess.js
28
- var SIZE = 224;
29
- var MEAN = [0.48145466, 0.4578275, 0.40821073];
30
- var STD = [0.26862954, 0.26130258, 0.27577711];
31
- var importCanvas = /* @__PURE__ */ __name(async () => {
32
- try {
33
- return await importFrom(new URL("images/picture/preprocess.js", import.meta.resolve("@wirecat/cli-core")).href, "@napi-rs/canvas");
34
- } catch {
35
- throw new CliError("validation_error", "searching pictures needs the optional package @napi-rs/canvas to read an image \u2014 install it next to this tool");
36
- }
37
- }, "importCanvas");
38
- var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
39
- const { createCanvas, loadImage } = await load();
40
- let image;
41
- try {
42
- image = await loadImage(bytes);
43
- } catch {
44
- throw new CliError("invalid_response", "the file is not an image this tool can read");
45
- }
46
- const scale = SIZE / Math.min(image.width, image.height);
47
- const width = Math.max(SIZE, Math.round(image.width * scale));
48
- const height = Math.max(SIZE, Math.round(image.height * scale));
49
- const surface = createCanvas(SIZE, SIZE);
50
- const context = surface.getContext("2d");
51
- context.fillStyle = "#ffffff";
52
- context.fillRect(0, 0, SIZE, SIZE);
53
- context.imageSmoothingQuality = "high";
54
- context.drawImage(image, 0, 0, image.width, image.height, Math.round((SIZE - width) / 2), Math.round((SIZE - height) / 2), width, height);
55
- const { data } = context.getImageData(0, 0, SIZE, SIZE);
56
- const plane = SIZE * SIZE;
57
- const pixels = new Float32Array(3 * plane);
58
- for (let at = 0; at < plane; at++) {
59
- for (let channel = 0; channel < 3; channel++) {
60
- pixels[channel * plane + at] = (data[at * 4 + channel] / 255 - MEAN[channel]) / STD[channel];
61
- }
62
- }
63
- return pixels;
64
- }, "preprocess");
65
-
66
- // 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/images/picture/embedder.js
67
- var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
68
- const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
69
- const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
70
- const tokenizer = new Tokenizer(JSON.parse(readFileSync(path("tokenizer.json"), "utf8")), JSON.parse(readFileSync(path("tokenizer_config.json"), "utf8")));
71
- const sessions = [];
72
- const lazy = /* @__PURE__ */ __name((name) => {
73
- let opened;
74
- return () => {
75
- opened ??= openSession(readFileSync(path(name)), threads).then((created) => {
76
- sessions.push(created.session);
77
- return created;
78
- });
79
- return opened;
80
- };
81
- }, "lazy");
82
- const vision = lazy(model.vision);
83
- const text = lazy(model.text);
84
- return {
85
- model,
86
- embedImage: /* @__PURE__ */ __name(async (bytes) => {
87
- const pixels = await preprocess(bytes, canvas);
88
- const { ort, session } = await vision();
89
- const output = await session.run({ pixel_values: new ort.Tensor("float32", pixels, [1, 3, SIZE, SIZE]) });
90
- return unit(Float32Array.from(output.image_embeds?.data));
91
- }, "embedImage"),
92
- embedQuery: /* @__PURE__ */ __name(async (query) => {
93
- const ids = truncated(tokenizer.encode(query.toLowerCase()).ids, model.maxTokens);
94
- const shape = [1, ids.length];
95
- const { ort, session } = await text();
96
- const feeds = {
97
- input_ids: new ort.Tensor("int64", BigInt64Array.from(ids, BigInt), shape)
98
- };
99
- if (session.inputNames.includes("attention_mask"))
100
- feeds.attention_mask = new ort.Tensor("int64", new BigInt64Array(ids.length).fill(1n), shape);
101
- const output = await session.run(feeds);
102
- return unit(Float32Array.from(output.text_embeds?.data));
103
- }, "embedQuery"),
104
- close: /* @__PURE__ */ __name(async () => {
105
- await Promise.all(sessions.map((session) => session.release()));
106
- }, "close")
107
- };
108
- }, "openPictureEmbedder");
109
- export {
110
- openPictureEmbedder
111
- };
@@ -1,25 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- catchCrashes,
5
- errorObjectOf,
6
- errorRecordOf,
7
- exitCodeOfAnswer,
8
- exitCodeOfError,
9
- mcpErrorResult,
10
- renderError,
11
- retryOf
12
- } from "./chunk-QPPOIWPY.js";
13
- import "./chunk-S4UUN6LD.js";
14
- import "./chunk-S6JG4YUH.js";
15
- import "./chunk-ZVVMGPBJ.js";
16
- export {
17
- catchCrashes,
18
- errorObjectOf,
19
- errorRecordOf,
20
- exitCodeOfAnswer,
21
- exitCodeOfError,
22
- mcpErrorResult,
23
- renderError,
24
- retryOf
25
- };
@@ -1,28 +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-EDWRHVHD.js";
9
- import "./chunk-W5LKEOGN.js";
10
- import "./chunk-TY7NDMFY.js";
11
- import "./chunk-GLU36VKA.js";
12
- import "./chunk-AOKAYQSJ.js";
13
- import "./chunk-P6OJKJJS.js";
14
- import "./chunk-TXDR6YSF.js";
15
- import "./chunk-D72URWJE.js";
16
- import "./chunk-2R2EX5I6.js";
17
- import "./chunk-UXDUWGX6.js";
18
- import "./chunk-QPPOIWPY.js";
19
- import "./chunk-S4UUN6LD.js";
20
- import "./chunk-Y5E2WNWB.js";
21
- import "./chunk-S6JG4YUH.js";
22
- import "./chunk-ZVVMGPBJ.js";
23
- export {
24
- askSetupQuestions,
25
- asksAtStart,
26
- setupAtStart,
27
- systemLanguage
28
- };
@@ -1,38 +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-EV6B3GHM.js";
7
- import "./chunk-EH6ZEJGT.js";
8
- import {
9
- WIRECAT_TOOLS
10
- } from "./chunk-ISQ23VKV.js";
11
- import "./chunk-HUAHLO6N.js";
12
- import "./chunk-QBYE26ZC.js";
13
- import "./chunk-J2LSOG3A.js";
14
- import "./chunk-5EH7S4RM.js";
15
- import "./chunk-GLU36VKA.js";
16
- import "./chunk-MFSWMNSZ.js";
17
- import "./chunk-T3W4V4A6.js";
18
- import "./chunk-K5L77R7P.js";
19
- import "./chunk-WRF6TY63.js";
20
- import "./chunk-SKUY7JDA.js";
21
- import "./chunk-XGNZD52X.js";
22
- import "./chunk-6V7ZUJI6.js";
23
- import "./chunk-DNCLQPOM.js";
24
- import "./chunk-NBNQLNVV.js";
25
- import "./chunk-P6OJKJJS.js";
26
- import "./chunk-O3DZDITT.js";
27
- import "./chunk-2R2EX5I6.js";
28
- import "./chunk-UXDUWGX6.js";
29
- import "./chunk-QPPOIWPY.js";
30
- import "./chunk-S4UUN6LD.js";
31
- import "./chunk-Y5E2WNWB.js";
32
- import "./chunk-S6JG4YUH.js";
33
- import "./chunk-ZVVMGPBJ.js";
34
- export {
35
- WIRECAT_TOOLS,
36
- firstScreen,
37
- installHelp
38
- };
@@ -1,11 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- appInstructions,
5
- instructions
6
- } from "./chunk-OEEWVKJX.js";
7
- import "./chunk-ZVVMGPBJ.js";
8
- export {
9
- appInstructions,
10
- instructions
11
- };
@@ -1,167 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- executableEnvironment,
5
- executableOnPath
6
- } from "./chunk-TY7NDMFY.js";
7
- import {
8
- require_cross_spawn
9
- } from "./chunk-D72URWJE.js";
10
- import {
11
- __name,
12
- __toESM
13
- } from "./chunk-ZVVMGPBJ.js";
14
-
15
- // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
16
- var import_cross_spawn = __toESM(require_cross_spawn(), 1);
17
- var realRun = /* @__PURE__ */ __name((file, args) => {
18
- const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
19
- encoding: "utf8",
20
- timeout: 1e4,
21
- maxBuffer: 256e3,
22
- env: executableEnvironment(process.env)
23
- });
24
- return { status: result.status, error: result.error, stdout: result.stdout ?? "", stderr: result.stderr ?? "" };
25
- }, "realRun");
26
- var executable = /* @__PURE__ */ __name((client) => client === "codex" ? "codex" : "claude", "executable");
27
- var presentIn = /* @__PURE__ */ __name((client, name, run) => {
28
- const state = lookUp(client, name, run);
29
- if (state === "unavailable")
30
- throw new Error(`${executable(client)} is not installed or could not be started`);
31
- return state === "registered";
32
- }, "presentIn");
33
- var setupArguments = /* @__PURE__ */ __name((client, name, entry) => {
34
- const variables = Object.entries(entry.env ?? {}).flatMap(([key, value]) => ["--env", `${key}=${value}`]);
35
- if (client === "codex")
36
- return ["mcp", "add", name, ...variables, "--", entry.command, ...entry.args];
37
- return ["mcp", "add", "--scope", "user", name, ...variables, "--", entry.command, ...entry.args];
38
- }, "setupArguments");
39
- var checkName = /* @__PURE__ */ __name((name) => {
40
- if (!/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(name))
41
- throw new Error("the MCP name must be letters, digits, _ or -");
42
- }, "checkName");
43
- var lookUp = /* @__PURE__ */ __name((client, name, run) => {
44
- const file = executable(client);
45
- const existing = run(file, ["mcp", "get", name, ...client === "codex" ? ["--json"] : []]);
46
- if (existing.error)
47
- return "unavailable";
48
- if (existing.status === 0)
49
- return "registered";
50
- if (!/No MCP server named/i.test(existing.stdout + existing.stderr)) {
51
- throw new Error(`${file} could not check its MCP configuration`);
52
- }
53
- return "missing";
54
- }, "lookUp");
55
- var stdioEntryStatus = /* @__PURE__ */ __name((client, name, { run = realRun } = {}) => {
56
- checkName(name);
57
- return { client, name, state: lookUp(client, name, run) };
58
- }, "stdioEntryStatus");
59
- var removeArguments = /* @__PURE__ */ __name((client, name) => (
60
- // Claude Code without a scope removes from whichever scope holds the name, which may be a project's own entry.
61
- client === "codex" ? ["mcp", "remove", name] : ["mcp", "remove", "--scope", "user", name]
62
- ), "removeArguments");
63
- var removeStdioEntry = /* @__PURE__ */ __name((client, name, { run = realRun } = {}) => {
64
- checkName(name);
65
- if (!presentIn(client, name, run))
66
- return { client, name, removed: false };
67
- const file = executable(client);
68
- const removed = run(file, removeArguments(client, name));
69
- if (removed.status !== 0 || removed.error)
70
- throw new Error(`${file} could not remove ${name}`);
71
- return { client, name, removed: true };
72
- }, "removeStdioEntry");
73
- var installStdioEntry = /* @__PURE__ */ __name((client, name, entry, { run = realRun } = {}) => {
74
- checkName(name);
75
- if (!entry.command || entry.args.some((arg) => arg.includes("\0")))
76
- throw new Error("invalid MCP command");
77
- const file = executable(client);
78
- if (presentIn(client, name, run))
79
- throw new Error(`${name} is already configured in ${file}; remove it there first`);
80
- const args = setupArguments(client, name, entry);
81
- const added = run(file, args);
82
- if (added.status !== 0 || added.error)
83
- throw new Error(`${file} could not add ${name}`);
84
- return { client, name, command: [entry.command, ...entry.args] };
85
- }, "installStdioEntry");
86
- var probeStdio = /* @__PURE__ */ __name(async (entry, { timeoutMs = 1e4, start = /* @__PURE__ */ __name((file, args, env) => (0, import_cross_spawn.default)(executableOnPath(file, env), args, {
87
- env: executableEnvironment(env),
88
- stdio: "pipe"
89
- }), "start") } = {}) => {
90
- const child = start(entry.command, entry.args, { ...process.env, ...entry.env });
91
- let buffer = "";
92
- let timer;
93
- const pending = /* @__PURE__ */ new Map();
94
- const request = /* @__PURE__ */ __name((id, method, params) => new Promise((resolve, reject) => {
95
- pending.set(id, { resolve, reject });
96
- child.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", id, method, params })}
97
- `);
98
- }), "request");
99
- const fail = /* @__PURE__ */ __name((error) => {
100
- for (const waiter of pending.values())
101
- waiter.reject(error);
102
- pending.clear();
103
- }, "fail");
104
- child.on("error", () => fail(new Error("the MCP server could not be started")));
105
- child.on("exit", () => fail(new Error("the MCP server exited before answering")));
106
- child.stdin.on("error", () => fail(new Error("the MCP server closed its input")));
107
- child.stdout.setEncoding("utf8");
108
- child.stdout.on("data", (chunk) => {
109
- buffer += chunk;
110
- if (buffer.length > 1e6)
111
- return fail(new Error("the MCP server sent too much output"));
112
- for (let newline = buffer.indexOf("\n"); newline !== -1; newline = buffer.indexOf("\n")) {
113
- const line = buffer.slice(0, newline);
114
- buffer = buffer.slice(newline + 1);
115
- try {
116
- const value = JSON.parse(line);
117
- if (typeof value.id !== "number")
118
- continue;
119
- const waiter = pending.get(value.id);
120
- if (!waiter)
121
- continue;
122
- pending.delete(value.id);
123
- if (value.error)
124
- waiter.reject(new Error("the MCP server rejected the handshake"));
125
- else
126
- waiter.resolve(value.result ?? {});
127
- } catch {
128
- fail(new Error("the MCP server sent invalid JSON"));
129
- }
130
- }
131
- });
132
- try {
133
- timer = setTimeout(() => fail(new Error("the MCP server did not answer in time")), timeoutMs);
134
- await request(1, "initialize", {
135
- protocolVersion: "2025-11-25",
136
- capabilities: {},
137
- clientInfo: { name: "cli-base-mcp-doctor", version: "1" }
138
- });
139
- child.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", method: "notifications/initialized" })}
140
- `);
141
- const result = await request(2, "tools/list", {});
142
- const tools = result.tools;
143
- if (!Array.isArray(tools))
144
- throw new Error("the MCP server returned no tool list");
145
- const named = tools.filter((item) => item !== null && typeof item === "object" && "name" in item && typeof item.name === "string");
146
- if (named.length !== tools.length)
147
- throw new Error("the MCP server returned an invalid tool list");
148
- return {
149
- tools: named.map((item) => item.name),
150
- potentialWrites: named.filter((item) => item.annotations?.readOnlyHint !== true).map((item) => item.name)
151
- };
152
- } finally {
153
- if (timer)
154
- clearTimeout(timer);
155
- pending.clear();
156
- child.stdin.end();
157
- child.kill();
158
- }
159
- }, "probeStdio");
160
- export {
161
- installStdioEntry,
162
- probeStdio,
163
- removeArguments,
164
- removeStdioEntry,
165
- setupArguments,
166
- stdioEntryStatus
167
- };
@@ -1,24 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- searchMeetingsCombined
5
- } from "./chunk-YQH4J6YZ.js";
6
- import "./chunk-WLDZWHSF.js";
7
- import "./chunk-MFSWMNSZ.js";
8
- import "./chunk-KKRFVN4X.js";
9
- import "./chunk-AOKAYQSJ.js";
10
- import "./chunk-XGNZD52X.js";
11
- import "./chunk-6V7ZUJI6.js";
12
- import "./chunk-DNCLQPOM.js";
13
- import "./chunk-P6OJKJJS.js";
14
- import "./chunk-O3DZDITT.js";
15
- import "./chunk-2R2EX5I6.js";
16
- import "./chunk-UXDUWGX6.js";
17
- import "./chunk-QPPOIWPY.js";
18
- import "./chunk-S4UUN6LD.js";
19
- import "./chunk-Y5E2WNWB.js";
20
- import "./chunk-S6JG4YUH.js";
21
- import "./chunk-ZVVMGPBJ.js";
22
- export {
23
- searchMeetingsCombined
24
- };
@@ -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-FBWECICU.js";
8
- import "./chunk-MFSWMNSZ.js";
9
- import "./chunk-B4DVW2BA.js";
10
- import "./chunk-NBNQLNVV.js";
11
- import "./chunk-P6OJKJJS.js";
12
- import "./chunk-VCDIKCFE.js";
13
- import "./chunk-O3DZDITT.js";
14
- import "./chunk-2R2EX5I6.js";
15
- import "./chunk-UXDUWGX6.js";
16
- import "./chunk-QPPOIWPY.js";
17
- import "./chunk-S4UUN6LD.js";
18
- import "./chunk-Y5E2WNWB.js";
19
- import "./chunk-S6JG4YUH.js";
20
- import "./chunk-ZVVMGPBJ.js";
21
- export {
22
- createMeetingRemoteModel,
23
- meetingEmbeddingModel,
24
- openMeetingEmbedder
25
- };
@@ -1,22 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- applyMeetingEmbedding,
5
- proposeMeetingEmbedding,
6
- readMeetingSemantic,
7
- validateVector
8
- } from "./chunk-WLDZWHSF.js";
9
- import "./chunk-6V7ZUJI6.js";
10
- import "./chunk-DNCLQPOM.js";
11
- import "./chunk-UXDUWGX6.js";
12
- import "./chunk-QPPOIWPY.js";
13
- import "./chunk-S4UUN6LD.js";
14
- import "./chunk-Y5E2WNWB.js";
15
- import "./chunk-S6JG4YUH.js";
16
- import "./chunk-ZVVMGPBJ.js";
17
- export {
18
- applyMeetingEmbedding,
19
- proposeMeetingEmbedding,
20
- readMeetingSemantic,
21
- validateVector
22
- };