@wirecat/attio-cli 0.8.0 → 0.10.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 (207) 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-UXJZISVL.js → chunk-OGWKDPR5.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-NSBWZ25F.js +6201 -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 +1 -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 +4 -4
  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-GUXXSLT5.js +0 -38
  27. package/dist/bundle/all-profiles-63N3EQ46.js +0 -320
  28. package/dist/bundle/anthropic-B4W7MZQE.js +0 -91
  29. package/dist/bundle/app-server-EXNGTHWO.js +0 -250
  30. package/dist/bundle/bun-OPDGMZZQ.js +0 -169
  31. package/dist/bundle/bun-sqlite-NBAY7FR2.js +0 -76
  32. package/dist/bundle/chunk-2JHVQMVC.js +0 -16
  33. package/dist/bundle/chunk-2QDUP74I.js +0 -794
  34. package/dist/bundle/chunk-2XBDILVW.js +0 -53
  35. package/dist/bundle/chunk-3HC5F3P7.js +0 -24
  36. package/dist/bundle/chunk-3MSHGNVE.js +0 -1243
  37. package/dist/bundle/chunk-3YM4B2GT.js +0 -63
  38. package/dist/bundle/chunk-4N7PP76S.js +0 -6848
  39. package/dist/bundle/chunk-4RBMCXZT.js +0 -1337
  40. package/dist/bundle/chunk-4RSWOPKL.js +0 -323
  41. package/dist/bundle/chunk-5JKTVAXX.js +0 -2788
  42. package/dist/bundle/chunk-5N2V6XO7.js +0 -119
  43. package/dist/bundle/chunk-5WD22IXQ.js +0 -66
  44. package/dist/bundle/chunk-6K4Z6CAM.js +0 -43997
  45. package/dist/bundle/chunk-6TD3DCWC.js +0 -106
  46. package/dist/bundle/chunk-7Z53MLQP.js +0 -388
  47. package/dist/bundle/chunk-AATTOFNY.js +0 -2045
  48. package/dist/bundle/chunk-APARYILG.js +0 -743
  49. package/dist/bundle/chunk-D72URWJE.js +0 -532
  50. package/dist/bundle/chunk-DFDN6AUB.js +0 -21
  51. package/dist/bundle/chunk-DM7KWVDZ.js +0 -3752
  52. package/dist/bundle/chunk-DNCLQPOM.js +0 -7
  53. package/dist/bundle/chunk-DPD4FMHN.js +0 -388
  54. package/dist/bundle/chunk-DPV53EZC.js +0 -206
  55. package/dist/bundle/chunk-DURNR4RO.js +0 -353
  56. package/dist/bundle/chunk-EH6ZEJGT.js +0 -932
  57. package/dist/bundle/chunk-EVUMQKV7.js +0 -76
  58. package/dist/bundle/chunk-EY36BTKZ.js +0 -108
  59. package/dist/bundle/chunk-FH6OEGGN.js +0 -557
  60. package/dist/bundle/chunk-FOP6G45D.js +0 -358
  61. package/dist/bundle/chunk-GGMAIIVE.js +0 -38
  62. package/dist/bundle/chunk-GTEX4IUO.js +0 -334
  63. package/dist/bundle/chunk-HZ3C4WXD.js +0 -142
  64. package/dist/bundle/chunk-IA7LLLEI.js +0 -100
  65. package/dist/bundle/chunk-J6GVVISK.js +0 -185
  66. package/dist/bundle/chunk-JG6LCSEX.js +0 -407
  67. package/dist/bundle/chunk-JIGEJZ4I.js +0 -68943
  68. package/dist/bundle/chunk-KVTNYRDO.js +0 -1007
  69. package/dist/bundle/chunk-L45WN3AR.js +0 -80
  70. package/dist/bundle/chunk-L72WUJAS.js +0 -54
  71. package/dist/bundle/chunk-LKH3UKLO.js +0 -230
  72. package/dist/bundle/chunk-LM3W7YOM.js +0 -274
  73. package/dist/bundle/chunk-M4AC55ZB.js +0 -12733
  74. package/dist/bundle/chunk-MCLQTCGH.js +0 -1202
  75. package/dist/bundle/chunk-NB7EOAUZ.js +0 -123
  76. package/dist/bundle/chunk-NISH4UXM.js +0 -58
  77. package/dist/bundle/chunk-OYEVYOCL.js +0 -259
  78. package/dist/bundle/chunk-P7G5HFY3.js +0 -288
  79. package/dist/bundle/chunk-PAEKXVJW.js +0 -188
  80. package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
  81. package/dist/bundle/chunk-PLPBEWD4.js +0 -170
  82. package/dist/bundle/chunk-PMQ7GP6X.js +0 -95
  83. package/dist/bundle/chunk-Q7ICVP25.js +0 -18
  84. package/dist/bundle/chunk-QPPOIWPY.js +0 -1246
  85. package/dist/bundle/chunk-QSJKSPWF.js +0 -131
  86. package/dist/bundle/chunk-RDVTHFPP.js +0 -338
  87. package/dist/bundle/chunk-RQORQN2V.js +0 -4072
  88. package/dist/bundle/chunk-RRTMPSQR.js +0 -29
  89. package/dist/bundle/chunk-S4UUN6LD.js +0 -1410
  90. package/dist/bundle/chunk-S6JG4YUH.js +0 -72
  91. package/dist/bundle/chunk-SCI7QEHF.js +0 -362
  92. package/dist/bundle/chunk-SSA6JBPA.js +0 -778
  93. package/dist/bundle/chunk-T4J7XFXT.js +0 -9667
  94. package/dist/bundle/chunk-TTF5DP4V.js +0 -1197
  95. package/dist/bundle/chunk-TXDR6YSF.js +0 -23
  96. package/dist/bundle/chunk-TY7NDMFY.js +0 -46
  97. package/dist/bundle/chunk-UDSL3MUU.js +0 -2333
  98. package/dist/bundle/chunk-UKHF37ZU.js +0 -1068
  99. package/dist/bundle/chunk-V57E7PJQ.js +0 -161
  100. package/dist/bundle/chunk-V7IF2K3P.js +0 -52
  101. package/dist/bundle/chunk-VB7FZOYX.js +0 -633
  102. package/dist/bundle/chunk-VZ5PPYDG.js +0 -77
  103. package/dist/bundle/chunk-WOPVBRPV.js +0 -29
  104. package/dist/bundle/chunk-WXQGA6XK.js +0 -50
  105. package/dist/bundle/chunk-XQGN2D44.js +0 -86
  106. package/dist/bundle/chunk-XQUUANA2.js +0 -24600
  107. package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
  108. package/dist/bundle/chunk-YNGU36GW.js +0 -218
  109. package/dist/bundle/chunk-YWDFYQOU.js +0 -82
  110. package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
  111. package/dist/bundle/chunk-ZZD2YPOX.js +0 -156
  112. package/dist/bundle/command-contract-KCCW4LNI.js +0 -37
  113. package/dist/bundle/command-server-entry-3NPPABQQ.js +0 -166
  114. package/dist/bundle/decode-26M7XE2B.js +0 -297
  115. package/dist/bundle/dispatch-2FTOHA5D.js +0 -411
  116. package/dist/bundle/dist-EM7KLEG4.js +0 -7577
  117. package/dist/bundle/dist-PAKDDIBT.js +0 -191
  118. package/dist/bundle/echarts-O3TNDAXJ.js +0 -42501
  119. package/dist/bundle/embed-XJLEAWXE.js +0 -38
  120. package/dist/bundle/embedder-OEL6PXEH.js +0 -111
  121. package/dist/bundle/failure-OHIXWTR6.js +0 -25
  122. package/dist/bundle/first-run-CIXGBXY6.js +0 -29
  123. package/dist/bundle/first-screen-5FK4D45F.js +0 -38
  124. package/dist/bundle/instructions-AMH5RWVJ.js +0 -11
  125. package/dist/bundle/mcp-5HFPWC3W.js +0 -167
  126. package/dist/bundle/meeting-combined-DMVGQNJ7.js +0 -24
  127. package/dist/bundle/meeting-model-2THAT7OH.js +0 -25
  128. package/dist/bundle/meeting-semantic-Q6XYFYUD.js +0 -22
  129. package/dist/bundle/node-EGMCBAO7.js +0 -176
  130. package/dist/bundle/node-KM3CUABH.js +0 -2340
  131. package/dist/bundle/node-TLZSIHIJ.js +0 -21
  132. package/dist/bundle/node-sqlite-2SWWGW6H.js +0 -74
  133. package/dist/bundle/oauth-V5LGTXF2.js +0 -20
  134. package/dist/bundle/open-25EKOTZA.js +0 -23
  135. package/dist/bundle/openai-VX3OLIHM.js +0 -238
  136. package/dist/bundle/process-SGHEN6MQ.js +0 -91
  137. package/dist/bundle/program-Z5NUNXME.js +0 -34214
  138. package/dist/bundle/prompt-2VSPX5S7.js +0 -17
  139. package/dist/bundle/recognize-NA5XUFKK.js +0 -26
  140. package/dist/bundle/remote-BOME6XOE.js +0 -31
  141. package/dist/bundle/rerank-NG3XMFCV.js +0 -52
  142. package/dist/bundle/serve-MR67OBED.js +0 -199
  143. package/dist/bundle/server-4BWAGJQO.js +0 -80
  144. package/dist/bundle/server-OP2HJNXD.js +0 -213
  145. package/dist/bundle/sqlite-runtime-V5U6F5EB.js +0 -20
  146. package/dist/bundle/state-L4MWAATO.js +0 -36
  147. package/dist/bundle/store-2ALTEH55.js +0 -181
  148. package/dist/bundle/store-CXZFRG5D.js +0 -297
  149. package/dist/bundle/store-maintenance-command-LC55DRQA.js +0 -67
  150. package/dist/bundle/surface-3GRJ7473.js +0 -66
  151. package/dist/commands/api.d.ts +0 -12
  152. package/dist/commands/api.d.ts.map +0 -1
  153. package/dist/commands/api.js.map +0 -1
  154. package/dist/commands/crm.d.ts +0 -7
  155. package/dist/commands/crm.d.ts.map +0 -1
  156. package/dist/commands/crm.js.map +0 -1
  157. package/dist/commands/schedule.d.ts +0 -3
  158. package/dist/commands/schedule.d.ts.map +0 -1
  159. package/dist/commands/schedule.js.map +0 -1
  160. package/dist/commands/session.d.ts +0 -8
  161. package/dist/commands/session.d.ts.map +0 -1
  162. package/dist/commands/session.js.map +0 -1
  163. package/dist/config.d.ts +0 -13
  164. package/dist/config.d.ts.map +0 -1
  165. package/dist/config.js.map +0 -1
  166. package/dist/context.d.ts +0 -37
  167. package/dist/context.d.ts.map +0 -1
  168. package/dist/context.js.map +0 -1
  169. package/dist/generated/definitions.d.ts +0 -3
  170. package/dist/generated/definitions.d.ts.map +0 -1
  171. package/dist/generated/definitions.js.map +0 -1
  172. package/dist/generated/manifest.d.ts +0 -6
  173. package/dist/generated/manifest.d.ts.map +0 -1
  174. package/dist/generated/manifest.js.map +0 -1
  175. package/dist/generated/schemas.d.ts +0 -383
  176. package/dist/generated/schemas.d.ts.map +0 -1
  177. package/dist/generated/schemas.js.map +0 -1
  178. package/dist/generated/types.d.ts +0 -10166
  179. package/dist/generated/types.d.ts.map +0 -1
  180. package/dist/generated/types.js.map +0 -1
  181. package/dist/generated/wirecat-config.d.ts +0 -15
  182. package/dist/generated/wirecat-config.d.ts.map +0 -1
  183. package/dist/generated/wirecat-config.js.map +0 -1
  184. package/dist/hooks.d.ts +0 -33
  185. package/dist/hooks.d.ts.map +0 -1
  186. package/dist/hooks.js.map +0 -1
  187. package/dist/identity.d.ts +0 -33
  188. package/dist/identity.d.ts.map +0 -1
  189. package/dist/identity.js.map +0 -1
  190. package/dist/index.d.ts +0 -3
  191. package/dist/index.d.ts.map +0 -1
  192. package/dist/index.js.map +0 -1
  193. package/dist/links.d.ts +0 -10
  194. package/dist/links.d.ts.map +0 -1
  195. package/dist/links.js.map +0 -1
  196. package/dist/meetings.d.ts +0 -57
  197. package/dist/meetings.d.ts.map +0 -1
  198. package/dist/meetings.js.map +0 -1
  199. package/dist/program.d.ts +0 -6
  200. package/dist/program.d.ts.map +0 -1
  201. package/dist/program.js.map +0 -1
  202. package/dist/version.d.ts +0 -2
  203. package/dist/version.d.ts.map +0 -1
  204. package/dist/version.js.map +0 -1
  205. package/dist/wcat.d.ts +0 -3
  206. package/dist/wcat.d.ts.map +0 -1
  207. 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-KVTNYRDO.js";
17
- import "./chunk-LM3W7YOM.js";
18
- import "./chunk-L72WUJAS.js";
19
- import "./chunk-5JKTVAXX.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-KVTNYRDO.js";
8
- import "./chunk-LM3W7YOM.js";
9
- import "./chunk-L72WUJAS.js";
10
- import "./chunk-5JKTVAXX.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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/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@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/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,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-YNGU36GW.js";
9
- import "./chunk-HZ3C4WXD.js";
10
- import "./chunk-TY7NDMFY.js";
11
- import "./chunk-V7IF2K3P.js";
12
- import "./chunk-UDSL3MUU.js";
13
- import "./chunk-2JHVQMVC.js";
14
- import "./chunk-TTF5DP4V.js";
15
- import "./chunk-TXDR6YSF.js";
16
- import "./chunk-D72URWJE.js";
17
- import "./chunk-L72WUJAS.js";
18
- import "./chunk-5JKTVAXX.js";
19
- import "./chunk-QPPOIWPY.js";
20
- import "./chunk-S4UUN6LD.js";
21
- import "./chunk-Y5E2WNWB.js";
22
- import "./chunk-S6JG4YUH.js";
23
- import "./chunk-ZVVMGPBJ.js";
24
- export {
25
- askSetupQuestions,
26
- asksAtStart,
27
- setupAtStart,
28
- systemLanguage
29
- };
@@ -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-4RSWOPKL.js";
7
- import "./chunk-EH6ZEJGT.js";
8
- import {
9
- WIRECAT_TOOLS
10
- } from "./chunk-NB7EOAUZ.js";
11
- import "./chunk-WOPVBRPV.js";
12
- import "./chunk-QSJKSPWF.js";
13
- import "./chunk-M4AC55ZB.js";
14
- import "./chunk-SCI7QEHF.js";
15
- import "./chunk-V7IF2K3P.js";
16
- import "./chunk-GTEX4IUO.js";
17
- import "./chunk-3YM4B2GT.js";
18
- import "./chunk-5WD22IXQ.js";
19
- import "./chunk-AATTOFNY.js";
20
- import "./chunk-ZZD2YPOX.js";
21
- import "./chunk-RRTMPSQR.js";
22
- import "./chunk-RQORQN2V.js";
23
- import "./chunk-DNCLQPOM.js";
24
- import "./chunk-7Z53MLQP.js";
25
- import "./chunk-TTF5DP4V.js";
26
- import "./chunk-LM3W7YOM.js";
27
- import "./chunk-L72WUJAS.js";
28
- import "./chunk-5JKTVAXX.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-2XBDILVW.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-FOP6G45D.js";
6
- import "./chunk-PLPBEWD4.js";
7
- import "./chunk-GTEX4IUO.js";
8
- import "./chunk-SSA6JBPA.js";
9
- import "./chunk-2JHVQMVC.js";
10
- import "./chunk-RRTMPSQR.js";
11
- import "./chunk-RQORQN2V.js";
12
- import "./chunk-DNCLQPOM.js";
13
- import "./chunk-TTF5DP4V.js";
14
- import "./chunk-LM3W7YOM.js";
15
- import "./chunk-L72WUJAS.js";
16
- import "./chunk-5JKTVAXX.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-OYEVYOCL.js";
8
- import "./chunk-GTEX4IUO.js";
9
- import "./chunk-J6GVVISK.js";
10
- import "./chunk-7Z53MLQP.js";
11
- import "./chunk-TTF5DP4V.js";
12
- import "./chunk-KVTNYRDO.js";
13
- import "./chunk-LM3W7YOM.js";
14
- import "./chunk-L72WUJAS.js";
15
- import "./chunk-5JKTVAXX.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-PLPBEWD4.js";
9
- import "./chunk-RQORQN2V.js";
10
- import "./chunk-DNCLQPOM.js";
11
- import "./chunk-5JKTVAXX.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
- };
@@ -1,176 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- DefaultLogger,
5
- DrizzleQueryError,
6
- NoopLogger,
7
- SQLiteAsyncDatabase,
8
- SQLiteAsyncPreparedQuery,
9
- SQLiteAsyncSession,
10
- SQLiteAsyncTransaction,
11
- SQLiteDialect,
12
- booleanFromInteger,
13
- bufferFromBytes,
14
- castToText,
15
- dateFromStoredMilliseconds,
16
- dateFromStoredSeconds,
17
- entityKind,
18
- jitCompatCheck,
19
- refineSqliteCodecs,
20
- sql
21
- } from "./chunk-4N7PP76S.js";
22
- import {
23
- __name
24
- } from "./chunk-ZVVMGPBJ.js";
25
-
26
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
27
- import { DatabaseSync } from "node:sqlite";
28
- var nodeSQLiteCodecs = refineSqliteCodecs({
29
- "integer:boolean": { normalize: booleanFromInteger },
30
- "integer:timestamp": { normalize: dateFromStoredSeconds },
31
- "integer:timestamp_ms": { normalize: dateFromStoredMilliseconds },
32
- "text:json": { normalize: JSON.parse },
33
- blob: { normalize: bufferFromBytes },
34
- "blob:json": {
35
- cast: castToText,
36
- normalize: JSON.parse
37
- },
38
- "blob:bigint": {
39
- cast: castToText,
40
- normalize: BigInt
41
- },
42
- numeric: {
43
- cast: castToText,
44
- normalize: String
45
- },
46
- "numeric:number": { normalize: Number },
47
- "numeric:bigint": {
48
- cast: castToText,
49
- normalize: BigInt
50
- }
51
- });
52
- var NodeSQLiteSession = class extends SQLiteAsyncSession {
53
- static {
54
- __name(this, "NodeSQLiteSession");
55
- }
56
- client;
57
- relations;
58
- options;
59
- static [entityKind] = "SQLJsSession";
60
- logger;
61
- constructor(client, dialect, relations, options = {}) {
62
- super(dialect, "sync");
63
- this.client = client;
64
- this.relations = relations;
65
- this.options = options;
66
- this.logger = options.logger ?? new NoopLogger();
67
- }
68
- prepareQuery(query, mode, _prepare, executeMethod, mapper, queryMetadata) {
69
- let stmt;
70
- try {
71
- stmt = this.client.prepare(query.sql);
72
- } catch (e) {
73
- throw new DrizzleQueryError(query.sql, this.options.paramsInErrors ? query.params : void 0, e);
74
- }
75
- return new SQLiteAsyncPreparedQuery("sync", executeMethod, {
76
- all: /* @__PURE__ */ __name((params) => {
77
- stmt.setReturnArrays(mode === "arrays");
78
- const res = stmt.all(...params);
79
- if (mode === "objects") return res.map((row) => ({ ...row }));
80
- return res;
81
- }, "all"),
82
- get: /* @__PURE__ */ __name((params) => {
83
- stmt.setReturnArrays(mode === "arrays");
84
- const res = stmt.get(...params);
85
- if (res && mode === "objects") return { ...res };
86
- return res;
87
- }, "get"),
88
- run: /* @__PURE__ */ __name((params) => {
89
- stmt.setReturnArrays(false);
90
- return stmt.run(...params);
91
- }, "run")
92
- }, query, mapper, mode, this.logger, void 0, queryMetadata, void 0, this.options.paramsInErrors);
93
- }
94
- transaction(transaction, config = {}) {
95
- if (config?.behavior === "concurrent") throw new Error("Concurrent transactions are not supported by driver");
96
- const tx = new NodeSQLiteTransaction("sync", this.dialect, this, this.relations);
97
- this.run(sql.raw(`begin${config.behavior ? ` ${config.behavior}` : ""}`));
98
- try {
99
- const result = transaction(tx);
100
- this.run(sql`commit`);
101
- return result;
102
- } catch (err) {
103
- try {
104
- this.run(sql`rollback`);
105
- } catch {
106
- }
107
- throw err;
108
- }
109
- }
110
- };
111
- var NodeSQLiteTransaction = class NodeSQLiteTransaction2 extends SQLiteAsyncTransaction {
112
- static {
113
- __name(this, "NodeSQLiteTransaction2");
114
- }
115
- static [entityKind] = "SQLJsTransaction";
116
- transaction(transaction) {
117
- const savepointName = `sp${this.nestedIndex + 1}`;
118
- const tx = new NodeSQLiteTransaction2("sync", this.dialect, this.session, this._.relations, this.nestedIndex + 1);
119
- tx.run(sql.raw(`savepoint ${savepointName}`));
120
- try {
121
- const result = transaction(tx);
122
- tx.run(sql.raw(`release savepoint ${savepointName}`));
123
- return result;
124
- } catch (err) {
125
- try {
126
- tx.run(sql.raw(`rollback to savepoint ${savepointName}`));
127
- } catch {
128
- }
129
- throw err;
130
- }
131
- }
132
- };
133
- var NodeSQLiteDatabase = class extends SQLiteAsyncDatabase {
134
- static {
135
- __name(this, "NodeSQLiteDatabase");
136
- }
137
- static [entityKind] = "NodeSQLiteDatabase";
138
- };
139
- function construct(client, config = {}) {
140
- const dialect = new SQLiteDialect({
141
- codecs: config.codecs ?? nodeSQLiteCodecs,
142
- useJitMappers: jitCompatCheck(config.jit)
143
- });
144
- let logger;
145
- if (config.logger === true) logger = new DefaultLogger();
146
- else if (config.logger !== false) logger = config.logger;
147
- const relations = config.relations ?? {};
148
- const db = new NodeSQLiteDatabase("sync", dialect, new NodeSQLiteSession(client, dialect, relations, {
149
- logger,
150
- paramsInErrors: config.paramsInErrors
151
- }), relations);
152
- db.$client = client;
153
- return db;
154
- }
155
- __name(construct, "construct");
156
- function drizzle(...params) {
157
- if (params[0] === void 0 || typeof params[0] === "string") return construct(params[0] === void 0 ? new DatabaseSync(":memory:") : new DatabaseSync(params[0]), params[1]);
158
- const { connection, client, ...config } = params[0];
159
- if (client) return construct(client, config);
160
- if (typeof connection === "object") {
161
- const { path, ...options } = connection;
162
- return construct(new DatabaseSync(path ?? ":memory:", options), config);
163
- }
164
- return construct(new DatabaseSync(connection ?? ":memory:"), config);
165
- }
166
- __name(drizzle, "drizzle");
167
- (function(_drizzle) {
168
- function mock(config) {
169
- return construct({}, config);
170
- }
171
- __name(mock, "mock");
172
- _drizzle.mock = mock;
173
- })(drizzle || (drizzle = {}));
174
- export {
175
- drizzle
176
- };