@wirecat/attio-cli 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/README.md +13 -9
- package/contracts/wirecat.json +268 -21
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-HM6ST5HY.js +37 -0
- package/dist/bundle/{all-profiles-LZDKPHN2.js → all-profiles-7GUR2SM3.js} +10 -10
- package/dist/bundle/{anthropic-BF72H77D.js → anthropic-4CN3TJYB.js} +5 -5
- package/dist/bundle/{app-server-H57FZJX5.js → app-server-HSQEPWRY.js} +61 -61
- package/dist/bundle/attio.js +11 -11
- package/dist/bundle/{bun-WO77T4LG.js → bun-DTF5MNDQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-2BP7JDVO.js → bun-sqlite-NFVPKLZD.js} +6 -6
- package/dist/bundle/{chunk-IDU4ESRZ.js → chunk-2AVWKAHP.js} +29 -1
- package/dist/bundle/{chunk-X6R74TWX.js → chunk-2KP5LRCK.js} +4 -4
- package/dist/bundle/{chunk-RU5J7DWY.js → chunk-2PDJCM3U.js} +156 -14
- package/dist/bundle/{chunk-4SMGM2Q6.js → chunk-2SM6G7CP.js} +4 -4
- package/dist/bundle/{chunk-TF7ZGCOK.js → chunk-3HFUSESO.js} +3 -3
- package/dist/bundle/{chunk-BUGROVF3.js → chunk-3JZNNESS.js} +2 -2
- package/dist/bundle/{chunk-5K3FGXZH.js → chunk-3L3ZRFKH.js} +1 -1
- package/dist/bundle/{chunk-6NDJDDSQ.js → chunk-3PPTBPRU.js} +42 -38
- package/dist/bundle/{chunk-76RRELCU.js → chunk-4A5E32BA.js} +1747 -826
- package/dist/bundle/{chunk-CMO5ND3Y.js → chunk-4BHD26FI.js} +34 -34
- package/dist/bundle/{chunk-JA26HG7T.js → chunk-4GGTI6J2.js} +8 -8
- package/dist/bundle/{chunk-J5P5VSRG.js → chunk-4IASSY4K.js} +21 -8
- package/dist/bundle/{chunk-DSRXCLPO.js → chunk-55OZY4JK.js} +1 -1
- package/dist/bundle/{chunk-L5WS6CYZ.js → chunk-6GLKKI5B.js} +2 -2
- package/dist/bundle/{chunk-PMP37KLR.js → chunk-6GVBDIY7.js} +3 -3
- package/dist/bundle/{chunk-VDMIJ3JW.js → chunk-6MKREZYW.js} +3 -3
- package/dist/bundle/{chunk-7MXCUMHG.js → chunk-6UVYOUKX.js} +1 -1
- package/dist/bundle/{chunk-4STBJZR4.js → chunk-73D7FXGY.js} +177 -40
- package/dist/bundle/{chunk-3I2FGNWO.js → chunk-77PCNTJY.js} +1 -1
- package/dist/bundle/{chunk-7ZUOI3HY.js → chunk-AO6N3HLS.js} +16 -3
- package/dist/bundle/{chunk-IXCIQ7FZ.js → chunk-CEY7LGCR.js} +4 -4
- package/dist/bundle/{chunk-MNQACPXG.js → chunk-CV65DYDO.js} +31 -27
- package/dist/bundle/{chunk-OBXDRUO4.js → chunk-CWLNO3ZU.js} +1 -1
- package/dist/bundle/{chunk-CHZ26CW5.js → chunk-D3BQH24W.js} +77 -59
- package/dist/bundle/{chunk-ERW2WOJT.js → chunk-EBVOFSWE.js} +1 -1
- package/dist/bundle/{chunk-ESH2QGCA.js → chunk-ECPUCPPX.js} +24 -8
- package/dist/bundle/{chunk-6SK3YB2B.js → chunk-FJUBFNIH.js} +12 -12
- package/dist/bundle/{chunk-Q7BSTQ3T.js → chunk-GFKYZJN4.js} +1 -1
- package/dist/bundle/{chunk-ASCUOOLO.js → chunk-GJFFI6OA.js} +1 -1
- package/dist/bundle/{chunk-S7K2XFQB.js → chunk-GMRYIIGP.js} +6 -6
- package/dist/bundle/{chunk-G3JTLVVL.js → chunk-GS3LY5S5.js} +14 -7
- package/dist/bundle/{chunk-WARIIYSW.js → chunk-H55WJPRM.js} +2 -2
- package/dist/bundle/{chunk-H7QDPW3D.js → chunk-HS7TLG6U.js} +3 -4
- package/dist/bundle/{chunk-EEPE3SOW.js → chunk-HVLKBGYN.js} +5 -5
- package/dist/bundle/{chunk-XXLQNHKF.js → chunk-IFDR5RYE.js} +2 -2
- package/dist/bundle/{chunk-3YFDZSM3.js → chunk-IQSXBZA7.js} +1 -1
- package/dist/bundle/{chunk-GLHFJPYS.js → chunk-IWC3ECVF.js} +3 -3
- package/dist/bundle/{chunk-EQXT7KO4.js → chunk-J3KE3D3L.js} +6 -6
- package/dist/bundle/{chunk-JSTBW7F4.js → chunk-KP7U75NI.js} +6 -6
- package/dist/bundle/{chunk-O4A33Y54.js → chunk-KRCE3EBI.js} +2 -2
- package/dist/bundle/{chunk-ZDBTYBFR.js → chunk-LC4KJJZ2.js} +3 -3
- package/dist/bundle/{chunk-3NVOKVRY.js → chunk-LX6IMPKX.js} +2361 -845
- package/dist/bundle/{chunk-V6BTAILB.js → chunk-MCNZCQ6P.js} +61 -61
- package/dist/bundle/{chunk-DF2IIO32.js → chunk-N7EFLZNW.js} +202 -163
- package/dist/bundle/{chunk-G6FQMVKW.js → chunk-NE65S7F6.js} +3 -3
- package/dist/bundle/{chunk-HG7FT3H3.js → chunk-NK32ZZRV.js} +7 -7
- package/dist/bundle/{chunk-VW5F6FK3.js → chunk-NTW3Z4ZC.js} +4 -4
- package/dist/bundle/{chunk-XXOTX4M3.js → chunk-OOS57MMX.js} +7 -7
- package/dist/bundle/{chunk-2E6JGBM5.js → chunk-PBUBZNIA.js} +25 -174
- package/dist/bundle/{chunk-AFAULIL5.js → chunk-PCYDTU6N.js} +3 -2
- package/dist/bundle/{chunk-WK7GLHHL.js → chunk-PTBGWRI4.js} +5 -5
- package/dist/bundle/{chunk-X5S5KUSU.js → chunk-PX5XI2UR.js} +19 -19
- package/dist/bundle/{chunk-KHDXRFJZ.js → chunk-ROJF7524.js} +8 -8
- package/dist/bundle/{chunk-AMUONYQR.js → chunk-RPL3VL7F.js} +2 -2
- package/dist/bundle/{chunk-MOSH2KPD.js → chunk-SDZJIDMF.js} +10 -10
- package/dist/bundle/{chunk-OFR3YYT6.js → chunk-SEZLN6OX.js} +1 -1
- package/dist/bundle/{chunk-MT2ZUZRA.js → chunk-SIYP5IZG.js} +43 -64
- package/dist/bundle/{chunk-I3WS6V5H.js → chunk-SNUCQQQU.js} +8 -8
- package/dist/bundle/{chunk-34FJ26K2.js → chunk-SRU4EQYO.js} +2 -2
- package/dist/bundle/{chunk-LWJ4ZGUM.js → chunk-SVUQKDBZ.js} +13 -13
- package/dist/bundle/{chunk-GW4G5KLS.js → chunk-SZ76WGXS.js} +8 -8
- package/dist/bundle/{chunk-DQ6P3R4B.js → chunk-UN63OIS5.js} +3 -3
- package/dist/bundle/{chunk-MRREDVPY.js → chunk-UNI5OO3J.js} +20 -14
- package/dist/bundle/{chunk-EQGXEKSV.js → chunk-UXT4532H.js} +7 -7
- package/dist/bundle/{chunk-ZGADZ4CH.js → chunk-V6RIJ22V.js} +15 -15
- package/dist/bundle/{chunk-6ALPRBNV.js → chunk-WAOJEEGU.js} +3 -3
- package/dist/bundle/{chunk-QLHDUYGE.js → chunk-WE6UGOBO.js} +1 -1
- package/dist/bundle/{chunk-Q3JCUUOR.js → chunk-WYPHP2AM.js} +3 -3
- package/dist/bundle/{chunk-W6F2CQZ6.js → chunk-Y6QUAEEJ.js} +17 -17
- package/dist/bundle/{chunk-GBZ6JUXU.js → chunk-YERPSSUC.js} +2 -2
- package/dist/bundle/{chunk-MC2RQ2OB.js → chunk-ZAZUNEZB.js} +1 -1
- package/dist/bundle/{chunk-SQHDE3TC.js → chunk-ZSO3T2W4.js} +4 -4
- package/dist/bundle/command-contract-XZKDRLEC.js +37 -0
- package/dist/bundle/{command-server-entry-MNVPYQZ3.js → command-server-entry-VTYSKZSD.js} +25 -25
- package/dist/bundle/{decode-MQNKNXLK.js → decode-EJCGQVLX.js} +5 -5
- package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-YGAG263C.js} +8 -8
- package/dist/bundle/{echarts-6ZSUNO4L.js → echarts-LHBWIDKI.js} +2 -2
- package/dist/bundle/{embed-PHCCJJ5Z.js → embed-QKVPSZLS.js} +6 -6
- package/dist/bundle/{embedder-WLZZQTKZ.js → embedder-NYO6EOFU.js} +9 -9
- package/dist/bundle/{failure-MR2XVHFP.js → failure-SE7VJEXI.js} +2 -2
- package/dist/bundle/{first-run-64LREHSV.js → first-run-P5QA7RNU.js} +12 -12
- package/dist/bundle/first-screen-EUIV6PVE.js +37 -0
- package/dist/bundle/{instructions-22GCKNR5.js → instructions-T6LGIEPV.js} +1 -1
- package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-PVQZS6IH.js} +2 -2
- package/dist/bundle/meeting-combined-GOBZBEX2.js +24 -0
- package/dist/bundle/{meeting-model-JWDTCGLZ.js → meeting-model-7UBHXIVW.js} +11 -11
- package/dist/bundle/{meeting-semantic-375GYPZQ.js → meeting-semantic-RXCWAIZZ.js} +6 -6
- package/dist/bundle/{node-ITDTNRRZ.js → node-UBG6VKKA.js} +2 -2
- package/dist/bundle/{node-sqlite-IRAGRMEZ.js → node-sqlite-PYNAIHR6.js} +7 -7
- package/dist/bundle/{oauth-CACOQJEL.js → oauth-BLOW6XVT.js} +7 -7
- package/dist/bundle/{open-HU4KHKDR.js → open-VWILPEZ2.js} +5 -5
- package/dist/bundle/{openai-JQUPAVKX.js → openai-N37NPTEE.js} +15 -15
- package/dist/bundle/{process-QS5OHEUK.js → process-DMYM7PNQ.js} +1 -1
- package/dist/bundle/{program-5OTAVU5S.js → program-5QZLUWS4.js} +4240 -4056
- package/dist/bundle/{prompt-VA5MKXJU.js → prompt-EJHIAH4K.js} +5 -5
- package/dist/bundle/{recognize-JGA5IVKC.js → recognize-67LER7ZN.js} +4 -4
- package/dist/bundle/{remote-NPY2KZQ4.js → remote-BONPKWRO.js} +9 -9
- package/dist/bundle/{rerank-4H2QR4XU.js → rerank-FK2AFC3Y.js} +7 -7
- package/dist/bundle/{schemas-THAI3G5S.js → schemas-4E76I6ME.js} +1 -1
- package/dist/bundle/{serve-UH46SZQG.js → serve-ZIXWKUE3.js} +9 -9
- package/dist/bundle/{server-6H7JS6SU.js → server-4RX3LBCA.js} +53 -53
- package/dist/bundle/server-RL6NIURH.js +79 -0
- package/dist/bundle/{sqlite-runtime-EJWEUTBR.js → sqlite-runtime-WDXPYP7C.js} +6 -6
- package/dist/bundle/{state-34B6AUQZ.js → state-NE7WPOBK.js} +6 -6
- package/dist/bundle/{store-3R4ILTCJ.js → store-2LX2ZQY5.js} +22 -18
- package/dist/bundle/{store-XSE35P3U.js → store-PUAKYH6Z.js} +24 -20
- package/dist/bundle/store-maintenance-command-CSYN4LXT.js +66 -0
- package/dist/bundle/surface-HJIDG2KX.js +65 -0
- package/dist/commands/crm.d.ts +3 -0
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +35 -8
- package/dist/commands/crm.js.map +1 -1
- package/dist/commands/schedule.d.ts +3 -0
- package/dist/commands/schedule.d.ts.map +1 -0
- package/dist/commands/schedule.js +9 -0
- package/dist/commands/schedule.js.map +1 -0
- package/dist/commands/session.d.ts +2 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +5 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +0 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +22 -5
- package/dist/config.js.map +1 -1
- package/dist/generated/wirecat-config.d.ts.map +1 -1
- package/dist/generated/wirecat-config.js +175 -0
- package/dist/generated/wirecat-config.js.map +1 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +10 -2
- package/dist/hooks.js.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +4 -2
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +11 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/attio-cli/SKILL.md +18 -3
- package/dist/bundle/agent-DYTWDBTT.js +0 -37
- package/dist/bundle/command-contract-7M6EPH3D.js +0 -37
- package/dist/bundle/first-screen-YSCAZIYJ.js +0 -37
- package/dist/bundle/meeting-combined-YX3T5WJD.js +0 -24
- package/dist/bundle/server-SR52KBL3.js +0 -79
- package/dist/bundle/store-maintenance-command-ABJARLI4.js +0 -66
- package/dist/bundle/surface-NOTIEJB5.js +0 -65
|
@@ -12,31 +12,31 @@ import {
|
|
|
12
12
|
refuseWriteBeforeConnecting,
|
|
13
13
|
registerPrompts,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CV65DYDO.js";
|
|
16
16
|
import {
|
|
17
17
|
skillResources
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J3KE3D3L.js";
|
|
19
19
|
import {
|
|
20
20
|
StdioServerTransport,
|
|
21
21
|
answeredWire,
|
|
22
22
|
serveStdio
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GFKYZJN4.js";
|
|
24
24
|
import {
|
|
25
25
|
stdinFieldOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6UVYOUKX.js";
|
|
27
27
|
import {
|
|
28
28
|
connectedFor
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-PBUBZNIA.js";
|
|
30
30
|
import {
|
|
31
31
|
wholeList
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4GGTI6J2.js";
|
|
33
33
|
import {
|
|
34
34
|
runCommandForAgent,
|
|
35
35
|
toolsFromCommands
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-73D7FXGY.js";
|
|
37
37
|
import {
|
|
38
38
|
instructions
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GJFFI6OA.js";
|
|
40
40
|
import {
|
|
41
41
|
BinaryResource,
|
|
42
42
|
Picture,
|
|
@@ -55,35 +55,35 @@ import {
|
|
|
55
55
|
tierOf,
|
|
56
56
|
tool,
|
|
57
57
|
toolKey
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-V6RIJ22V.js";
|
|
59
59
|
import {
|
|
60
60
|
agentJson
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-2PDJCM3U.js";
|
|
62
62
|
import {
|
|
63
63
|
guardFor,
|
|
64
64
|
imageSize,
|
|
65
65
|
lackedNeed,
|
|
66
66
|
servicesFor,
|
|
67
67
|
storedDeps
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-LX6IMPKX.js";
|
|
69
69
|
import {
|
|
70
70
|
callerOf,
|
|
71
71
|
callingAgent
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-YERPSSUC.js";
|
|
73
73
|
import {
|
|
74
74
|
capability,
|
|
75
75
|
dateWindow
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-UNI5OO3J.js";
|
|
77
77
|
import {
|
|
78
78
|
McpServer,
|
|
79
79
|
ResourceTemplate
|
|
80
80
|
} from "./chunk-PL5P7UKW.js";
|
|
81
81
|
import {
|
|
82
82
|
mcpHttpMarker
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-CEY7LGCR.js";
|
|
84
84
|
import {
|
|
85
85
|
findCommand
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-2KP5LRCK.js";
|
|
87
87
|
import {
|
|
88
88
|
DEFAULT_OUTPUT_BYTES,
|
|
89
89
|
changesAuthorityAt,
|
|
@@ -101,30 +101,30 @@ import {
|
|
|
101
101
|
rootOf2 as rootOf,
|
|
102
102
|
sealed,
|
|
103
103
|
snakeKeys
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-N7EFLZNW.js";
|
|
105
105
|
import {
|
|
106
106
|
withCaller
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-OOS57MMX.js";
|
|
108
108
|
import {
|
|
109
109
|
openStore,
|
|
110
110
|
pdfPreviewLimits
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-4A5E32BA.js";
|
|
112
112
|
import {
|
|
113
113
|
typedCommand
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-3PPTBPRU.js";
|
|
115
115
|
import {
|
|
116
116
|
isCliFailure
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-IWC3ECVF.js";
|
|
118
118
|
import {
|
|
119
119
|
timezoneOf
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-MCNZCQ6P.js";
|
|
121
121
|
import {
|
|
122
122
|
warmEmbedders
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-SIYP5IZG.js";
|
|
124
124
|
import {
|
|
125
125
|
errorObjectOf,
|
|
126
126
|
mcpErrorResult
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-4IASSY4K.js";
|
|
128
128
|
import {
|
|
129
129
|
description,
|
|
130
130
|
integer,
|
|
@@ -143,15 +143,15 @@ import {
|
|
|
143
143
|
import {
|
|
144
144
|
CliError,
|
|
145
145
|
visibleControls
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-3JZNNESS.js";
|
|
147
147
|
import {
|
|
148
148
|
__name
|
|
149
149
|
} from "./chunk-ZVVMGPBJ.js";
|
|
150
150
|
|
|
151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
152
152
|
import { randomUUID } from "node:crypto";
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
155
155
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
156
156
|
let held;
|
|
157
157
|
return {
|
|
@@ -170,7 +170,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
170
170
|
};
|
|
171
171
|
}, "agentLog");
|
|
172
172
|
|
|
173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
174
174
|
var LISTED = 100;
|
|
175
175
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
176
176
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -208,7 +208,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
208
208
|
});
|
|
209
209
|
}, "registerResources");
|
|
210
210
|
|
|
211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
212
212
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
213
213
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
214
214
|
var MessengerSession = class {
|
|
@@ -283,7 +283,7 @@ var MessengerSession = class {
|
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
287
287
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
288
288
|
const _command = messenger.app.command;
|
|
289
289
|
return {
|
|
@@ -337,7 +337,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
337
337
|
};
|
|
338
338
|
}, "attachmentsTools");
|
|
339
339
|
|
|
340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
341
341
|
var PHOTO_LIMIT = 512 * 1024;
|
|
342
342
|
var IMAGE_TYPES = [
|
|
343
343
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -393,7 +393,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
393
393
|
return new Uint8Array(Buffer.concat(chunks));
|
|
394
394
|
}, "readUpTo");
|
|
395
395
|
|
|
396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
397
397
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
398
398
|
stats_charts: tool({
|
|
399
399
|
title: "A chart from a chat's statistics",
|
|
@@ -430,14 +430,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
430
430
|
})
|
|
431
431
|
}), "statsTools");
|
|
432
432
|
|
|
433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
434
434
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
435
435
|
...messagesPhotoTools(messenger),
|
|
436
436
|
...attachmentsTools(messenger),
|
|
437
437
|
...statsTools(messenger)
|
|
438
438
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
439
439
|
|
|
440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
441
441
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
442
442
|
"streams",
|
|
443
443
|
"stdin",
|
|
@@ -753,7 +753,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
753
753
|
}, "serveOverStdio");
|
|
754
754
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
755
755
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
756
|
-
const { serveOverHttp } = await import("./serve-
|
|
756
|
+
const { serveOverHttp } = await import("./serve-ZIXWKUE3.js");
|
|
757
757
|
const appName = messenger.app.command;
|
|
758
758
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
759
759
|
const listening = await serveOverHttp(build, {
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LX6IMPKX.js";
|
|
6
6
|
import {
|
|
7
7
|
LIST_QUERY_GUIDE,
|
|
8
8
|
nativeTerms
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UNI5OO3J.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_CONFIG,
|
|
12
12
|
environmentOf,
|
|
@@ -16,21 +16,21 @@ import {
|
|
|
16
16
|
renderAnswer,
|
|
17
17
|
snakeKeys,
|
|
18
18
|
withAgentLevels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N7EFLZNW.js";
|
|
20
20
|
import {
|
|
21
21
|
formatReference
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3PPTBPRU.js";
|
|
23
23
|
import {
|
|
24
24
|
queryError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MCNZCQ6P.js";
|
|
26
26
|
import {
|
|
27
27
|
CliError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3JZNNESS.js";
|
|
29
29
|
import {
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
34
34
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
35
35
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
36
36
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -57,7 +57,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
|
57
57
|
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
58
58
|
}, "pagingOf");
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
61
61
|
var defined = /* @__PURE__ */ __name((record) => Object.fromEntries(Object.entries(record).filter(([, value]) => value !== void 0)), "defined");
|
|
62
62
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
63
63
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
errorCodes,
|
|
30
30
|
isCliError,
|
|
31
31
|
visibleControls
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3JZNNESS.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
38
38
|
var EXIT_CODES = {
|
|
39
39
|
validation_error: 2,
|
|
40
40
|
configuration_error: 3,
|
|
@@ -55,7 +55,7 @@ var EXIT_CODES = {
|
|
|
55
55
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
56
56
|
var GENERIC_FAILURE = 1;
|
|
57
57
|
|
|
58
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
58
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
59
59
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
60
60
|
var effectsSchema = strictObject({
|
|
61
61
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -692,7 +692,7 @@ function toStandardJsonSchema(schema) {
|
|
|
692
692
|
}
|
|
693
693
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
694
694
|
|
|
695
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
695
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
696
696
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
697
697
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
698
698
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -734,7 +734,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
734
734
|
return String(value);
|
|
735
735
|
}), "fill");
|
|
736
736
|
|
|
737
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
737
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
738
738
|
var MAX_NEXT_STEPS = 2;
|
|
739
739
|
var COMPACT_FLAG = "--compact";
|
|
740
740
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -811,6 +811,18 @@ var rankingSchema = strictObject({
|
|
|
811
811
|
})),
|
|
812
812
|
ms: pipe(number(), integer(), minValue(0))
|
|
813
813
|
});
|
|
814
|
+
var count = pipe(number(), integer(), minValue(0));
|
|
815
|
+
var modelRunSchema = strictObject({
|
|
816
|
+
provider: text,
|
|
817
|
+
model: text,
|
|
818
|
+
endpoint: text,
|
|
819
|
+
sent: count,
|
|
820
|
+
done: count,
|
|
821
|
+
left: count,
|
|
822
|
+
usage: optional(strictObject({ input: count, output: count })),
|
|
823
|
+
cost_usd: nullable(pipe(number(), minValue(0))),
|
|
824
|
+
ms: count
|
|
825
|
+
});
|
|
814
826
|
var querySchema = strictObject({
|
|
815
827
|
chat: optional(strictObject({ word: text, chat_id: text, title: nullable(text) })),
|
|
816
828
|
respelled: optional(array(strictObject({ word: text, tried: pipe(array(text), minLength(1)) })))
|
|
@@ -828,6 +840,7 @@ var metaSchema = strictObject({
|
|
|
828
840
|
now_local: optional(localTime),
|
|
829
841
|
window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) })),
|
|
830
842
|
ranking: optional(rankingSchema),
|
|
843
|
+
model_run: optional(modelRunSchema),
|
|
831
844
|
query: optional(querySchema)
|
|
832
845
|
});
|
|
833
846
|
var offsetOf = /* @__PURE__ */ __name((at, zone) => {
|
|
@@ -866,7 +879,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
866
879
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
867
880
|
].join("\n"), "jsonlOf");
|
|
868
881
|
|
|
869
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
882
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
870
883
|
var CRASH_CODE = "internal_error";
|
|
871
884
|
var CRASH_REASON = "command.crashed";
|
|
872
885
|
var errorObjectSchema = strictObject({
|
|
@@ -965,7 +978,7 @@ var BASE_REASONS = defineReasons([
|
|
|
965
978
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
966
979
|
]);
|
|
967
980
|
|
|
968
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
981
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
969
982
|
var SAME_COMMAND = "*";
|
|
970
983
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
971
984
|
var stepSchema = union([
|
|
@@ -1044,7 +1057,7 @@ var STEPS = defineSteps([
|
|
|
1044
1057
|
}
|
|
1045
1058
|
]);
|
|
1046
1059
|
|
|
1047
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1060
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
1048
1061
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
1049
1062
|
if (isCliError(failure))
|
|
1050
1063
|
return failure;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/monthly.js
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
var CI_PAGE = join(dirname(fileURLToPath(new URL("standards/monthly.js", import.meta.resolve("@wirecat/cli-base")).href)), "../../docs/standards/ci.md");
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CEY7LGCR.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -3,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3L3ZRFKH.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PX5XI2UR.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
keyForCommand,
|
|
11
11
|
levelFor,
|
|
12
12
|
readKeysForCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-N7EFLZNW.js";
|
|
14
14
|
import {
|
|
15
15
|
writes
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4IASSY4K.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/command-availability.js
|
|
22
22
|
var commandAvailability = /* @__PURE__ */ __name((info, levels, keyOf, authority, readOnly = false, mcp = true, declared, fetches) => {
|
|
23
23
|
const declaredKey = declared?.keyOf(info.path);
|
|
24
24
|
const key = declared ? declaredKey : keyOf?.(info.path) ?? keyForCommand(info.path);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
|
|
8
8
|
var fields = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
var readsStdin = /* @__PURE__ */ __name((command, field) => {
|
|
10
10
|
fields.set(command, field);
|