@wirecat/zoom-cli 0.64.0 → 0.66.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/dist/answer-entities.d.ts +13 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +5 -0
- package/dist/answer-entities.js.map +1 -1
- package/dist/answers.d.ts +8 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/archive-import.d.ts +1 -1
- package/dist/archive-import.d.ts.map +1 -1
- package/dist/archive-import.js +2 -1
- package/dist/archive-import.js.map +1 -1
- package/dist/bin/zm.js +6 -2
- package/dist/bin/zm.js.map +1 -1
- package/dist/bundle/{all-profiles-W2OVBZ7S.js → all-profiles-D5CFH2OK.js} +11 -8
- package/dist/bundle/answer-policy-YAYMKRRD.js +101 -0
- package/dist/bundle/{anthropic-P4BKQNBO.js → anthropic-K2E2JS4S.js} +7 -4
- package/dist/bundle/{app-server-AYUW45ND.js → app-server-TVXDG6HZ.js} +68 -61
- package/dist/bundle/{bun-MNGPTYDQ.js → bun-O4WHGL2F.js} +2 -2
- package/dist/bundle/{bun-sqlite-PTPUSXAO.js → bun-sqlite-HGBEHQI3.js} +6 -3
- package/dist/bundle/{chunk-TYKZCJD7.js → chunk-2T5BOLBS.js} +35 -35
- package/dist/bundle/{chunk-H3DMYF3W.js → chunk-2VPHQFO5.js} +8 -8
- package/dist/bundle/{chunk-JMSKDW5G.js → chunk-2YLNUZ3T.js} +5 -3
- package/dist/bundle/{chunk-AAC6VNSL.js → chunk-3B7L2UX4.js} +3 -3
- package/dist/bundle/{chunk-6NBQJJT6.js → chunk-3WTKZ2ZS.js} +13 -11
- package/dist/bundle/{chunk-H65B6A7Y.js → chunk-3Y2F65AY.js} +8 -8
- package/dist/bundle/{chunk-A2FOW3ZC.js → chunk-5A26IBAR.js} +162 -107
- package/dist/bundle/{chunk-BO5YVG3X.js → chunk-5GD2XZ6X.js} +132 -40
- package/dist/bundle/{chunk-7D56BQZL.js → chunk-5HPALDUO.js} +2 -2
- package/dist/bundle/{chunk-5FN4Q5H5.js → chunk-62GOOZO3.js} +8 -13
- package/dist/bundle/{chunk-J25UNZIL.js → chunk-67RNZGAG.js} +12 -10
- package/dist/bundle/{chunk-3AAO5N4L.js → chunk-6GSJLNP4.js} +2 -2
- package/dist/bundle/{chunk-UNO4G5NX.js → chunk-6TIKPRVQ.js} +11 -7
- package/dist/bundle/{chunk-HQHUPTZR.js → chunk-756RS4PH.js} +1393 -712
- package/dist/bundle/{chunk-R4NTPYXZ.js → chunk-7JMBEPW2.js} +2 -2
- package/dist/bundle/{chunk-HIGFBTEI.js → chunk-7KCTPGOF.js} +2 -2
- package/dist/bundle/{chunk-TJODNJKE.js → chunk-7PF56S6U.js} +33 -22
- package/dist/bundle/{chunk-LEQCRVPD.js → chunk-7SQJCKR6.js} +1 -1
- package/dist/bundle/{chunk-BWPKSUXW.js → chunk-A2SCXNA7.js} +4518 -402
- package/dist/bundle/{chunk-QK54GOGE.js → chunk-AU4JHT3R.js} +7 -9
- package/dist/bundle/{chunk-63MRRNDL.js → chunk-AZ7ICKIA.js} +8 -8
- package/dist/bundle/chunk-BLT3LR3U.js +34 -0
- package/dist/bundle/{chunk-UABUBDYB.js → chunk-BXSAROQP.js} +2 -2
- package/dist/bundle/{chunk-Q3EDUZ5R.js → chunk-CAW6IMFZ.js} +25 -18
- package/dist/bundle/{chunk-UCPL55YP.js → chunk-CR4CXOLX.js} +17 -17
- package/dist/bundle/{chunk-SMT6SFBK.js → chunk-CZ4KLUJG.js} +2 -2
- package/dist/bundle/{chunk-COTC7HF3.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-X6M5DK66.js → chunk-EXXM4RNI.js} +14 -12
- package/dist/bundle/{chunk-CZKV4USJ.js → chunk-FWFFQV4D.js} +59 -4
- package/dist/bundle/{chunk-JJZAGKUK.js → chunk-GHAPWKG2.js} +5 -3
- package/dist/bundle/{chunk-JRPYHDCO.js → chunk-GI6QVSCW.js} +4 -4
- package/dist/bundle/{chunk-Y7TWNMTW.js → chunk-GKXFL35E.js} +198 -65
- package/dist/bundle/{chunk-K6OSD6DG.js → chunk-GNGBG5BT.js} +81 -35
- package/dist/bundle/{chunk-RJLNVHIU.js → chunk-H5ZVZAOD.js} +3 -3
- package/dist/bundle/{chunk-XZSQLVED.js → chunk-HKQWV3KT.js} +5 -3
- package/dist/bundle/chunk-IDWHJ35K.js +166 -0
- package/dist/bundle/{chunk-JM43EKTY.js → chunk-IKQ73INC.js} +1928 -679
- package/dist/bundle/chunk-ILHTNOIV.js +23 -0
- package/dist/bundle/{chunk-OPP5CWAX.js → chunk-J4EZL6HY.js} +61 -56
- package/dist/bundle/{chunk-54UEJGYB.js → chunk-JX3V35A5.js} +3 -3
- package/dist/bundle/{chunk-7VJIKJNW.js → chunk-K5CIN4JP.js} +8 -8
- package/dist/bundle/{chunk-KJCCT3QY.js → chunk-KDKFGQWG.js} +17 -14
- package/dist/bundle/{chunk-RK3JBC4U.js → chunk-L7IK4FOA.js} +2 -2
- package/dist/bundle/{chunk-7EOW47PV.js → chunk-LN2S3RA3.js} +4 -4
- package/dist/bundle/{chunk-I5QX2HAT.js → chunk-N5JRRBEG.js} +214 -107
- package/dist/bundle/chunk-N67BLTBV.js +2443 -0
- package/dist/bundle/{chunk-23LOMA2I.js → chunk-N6JMJN5A.js} +48 -26
- package/dist/bundle/{chunk-CZFV6XTW.js → chunk-NMQUCHTX.js} +3 -3
- package/dist/bundle/{chunk-TJH5IQVZ.js → chunk-NO24PJNW.js} +1 -1
- package/dist/bundle/{chunk-UFI5SX3F.js → chunk-O5FKJV3T.js} +14 -12
- package/dist/bundle/{chunk-IIP4J3PD.js → chunk-P2G4KGTR.js} +94 -12
- package/dist/bundle/{chunk-OWXMQVVN.js → chunk-P2SYZNM4.js} +1 -1
- package/dist/bundle/{chunk-EQYPTGCT.js → chunk-P3XVLHIQ.js} +6 -4
- package/dist/bundle/chunk-PQLBPYJR.js +46 -0
- package/dist/bundle/{chunk-5BCNJB2A.js → chunk-Q47C3QZW.js} +675 -507
- package/dist/bundle/{chunk-IIGXCYEL.js → chunk-QAPU2JNO.js} +13 -13
- package/dist/bundle/{chunk-WFIJOFS5.js → chunk-QJHRYUMJ.js} +1 -1
- package/dist/bundle/{chunk-YNYMWXXH.js → chunk-QV5ZGRK3.js} +40 -11
- package/dist/bundle/{chunk-3IMEAZIM.js → chunk-RMKHYUHK.js} +9 -20
- package/dist/bundle/{chunk-AF4HONAZ.js → chunk-RO44LANT.js} +6449 -4436
- package/dist/bundle/{chunk-3DGQJASQ.js → chunk-S4GDDO5S.js} +1 -1
- package/dist/bundle/chunk-S6S3KVJI.js +45 -0
- package/dist/bundle/{chunk-SJIBJQJN.js → chunk-SU4WPBQE.js} +44 -14
- package/dist/bundle/{chunk-7NDSBTKR.js → chunk-TFDVFD4N.js} +91 -2546
- package/dist/bundle/{chunk-HQHYPKSU.js → chunk-TMVKZMDO.js} +54 -37
- package/dist/bundle/{chunk-PBJY5VR6.js → chunk-TN7K66PU.js} +1 -1
- package/dist/bundle/{chunk-ZW4N73FO.js → chunk-TUEEXECZ.js} +5 -5
- package/dist/bundle/{chunk-H5LLZ5XA.js → chunk-U3ZUT557.js} +1 -1
- package/dist/bundle/{chunk-4XVRA6P5.js → chunk-U4RVOSX3.js} +1 -1
- package/dist/bundle/{chunk-5YLR24D5.js → chunk-UOIXBEFR.js} +13 -6
- package/dist/bundle/chunk-UYV2JGLQ.js +34 -0
- package/dist/bundle/{chunk-7SWNZ44U.js → chunk-XFUID5NY.js} +4 -4
- package/dist/bundle/{chunk-BMYZWBAX.js → chunk-XWDSEJWP.js} +6 -6
- package/dist/bundle/{chunk-JZKNHA44.js → chunk-Y3EIK4XW.js} +1 -1
- package/dist/bundle/{chunk-24WCZURP.js → chunk-YLEQN6PB.js} +5 -3
- package/dist/bundle/{chunk-2UONVSJQ.js → chunk-Z6U3MEGJ.js} +2 -2
- package/dist/bundle/{chunk-L4JGVSBN.js → chunk-ZKTXUDSR.js} +33 -28
- package/dist/bundle/{chunk-FSYO3PUW.js → chunk-ZNFPDTQM.js} +2 -2
- package/dist/bundle/{chunk-C3RRIJ5C.js → chunk-ZTL7ANSG.js} +9 -42
- package/dist/bundle/{cli-Y2ZO3D5U.js → cli-HWQIL2AC.js} +124 -73
- package/dist/bundle/command-contract-CQFJXWX6.js +40 -0
- package/dist/bundle/config-R2Y6ZVQS.js +83 -0
- package/dist/bundle/{decode-GO6GAYH2.js → decode-XPAPPUGE.js} +6 -3
- package/dist/bundle/dispatch-AKVJGP2S.js +412 -0
- package/dist/bundle/{dist-MIJKAGXW.js → dist-LDIUQBM7.js} +23 -16
- package/dist/bundle/{echarts-NWK7LALR.js → echarts-FMACRZQC.js} +2 -2
- package/dist/bundle/{embed-2DOSN4DV.js → embed-LK45GRQ7.js} +7 -4
- package/dist/bundle/{embedder-3Q3C2WKC.js → embedder-QPBC5XBY.js} +12 -9
- package/dist/bundle/failure-7OULAOWQ.js +25 -0
- package/dist/bundle/first-run-J5FG773Q.js +28 -0
- package/dist/bundle/first-screen-MULOBUHN.js +38 -0
- package/dist/bundle/{folders-RSWEBHDZ.js → folders-RHPUVMDI.js} +5 -2
- package/dist/bundle/{instructions-M3FZPQVI.js → instructions-E5FXYCWF.js} +1 -1
- package/dist/bundle/{main-R77BPRRS.js → main-FJHE5YHU.js} +28 -22
- package/dist/bundle/{mcp-YJEQYYTR.js → mcp-MNI62HHE.js} +5 -3
- package/dist/bundle/{meetings-IV4Y4WRH.js → meetings-MYIDGYGW.js} +19 -6
- package/dist/bundle/{node-I3GEHYGL.js → node-4SNKUPXT.js} +2 -2
- package/dist/bundle/{node-sqlite-W6MR2TVQ.js → node-sqlite-SYZUTVPC.js} +12 -3
- package/dist/bundle/{oauth-M6YL4QXP.js → oauth-QPS5VTN6.js} +8 -5
- package/dist/bundle/{open-2VITLJAN.js → open-OVCASRSJ.js} +6 -2
- package/dist/bundle/openai-VEVT7D7L.js +25 -0
- package/dist/bundle/{output-file-XJJ3XMLQ.js → output-file-K5JEL33Z.js} +7 -4
- package/dist/bundle/{process-UBA4L4B2.js → process-HQZOTT6U.js} +1 -1
- package/dist/bundle/{program-5R5MRXUM.js → program-A546WC4F.js} +120 -112
- package/dist/bundle/{prompt-AVIXIM7Z.js → prompt-CYBKP7S5.js} +6 -3
- package/dist/bundle/{recognize-DJKTJOYU.js → recognize-3H3YDCFI.js} +5 -2
- package/dist/bundle/{remote-S3DTNYRP.js → remote-VAYVTJBS.js} +8 -5
- package/dist/bundle/{rerank-FMCDP6VF.js → rerank-XA4GA5PS.js} +8 -5
- package/dist/bundle/{run-log-T4MV2VEH.js → run-log-XAFHMI3F.js} +59 -54
- package/dist/bundle/{serve-5SGFJFMC.js → serve-KGHEDUHB.js} +18 -14
- package/dist/bundle/server-IDNSJXF3.js +71 -0
- package/dist/bundle/{server-PCMCY7WK.js → server-ZYTSMDTP.js} +47 -42
- package/dist/bundle/{services-SKRQ2POT.js → services-ZHMZC2OQ.js} +106 -28
- package/dist/bundle/{speech-FSDICIKO.js → speech-7CJEFKM3.js} +14 -11
- package/dist/bundle/{state-KPUSPWO6.js → state-U6KSYVOH.js} +7 -4
- package/dist/bundle/{store-W7LFPKG2.js → store-DJE3LAEG.js} +17 -13
- package/dist/bundle/{store-7MP2ZGQ7.js → store-WS4CQGYU.js} +40 -18
- package/dist/bundle/store-connection-T5WGOOPH.js +81 -0
- package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +61 -0
- package/dist/bundle/{streaming-Q44ESD3E.js → streaming-QMHH7L6N.js} +7 -4
- package/dist/bundle/{tokens-TAFCHANI.js → tokens-PWQ56OXO.js} +7 -4
- package/dist/bundle/zm.js +150 -1
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +1 -0
- package/dist/local-transcription.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/dist/bundle/answer-policy-HOA43GNA.js +0 -96
- package/dist/bundle/chunk-JRPAZ2WD.js +0 -3635
- package/dist/bundle/command-contract-DGTZIH2F.js +0 -38
- package/dist/bundle/config-N2UHDKGG.js +0 -78
- package/dist/bundle/first-run-S75VKIT3.js +0 -23
- package/dist/bundle/first-screen-DQNRT6GH.js +0 -36
- package/dist/bundle/openai-OG6B3JCU.js +0 -22
- package/dist/bundle/server-EYGZLKKQ.js +0 -66
- package/dist/bundle/store-connection-3HNZFJC4.js +0 -76
- package/dist/bundle/store-maintenance-command-6WBLTUZP.js +0 -55
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
|
+
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
|
+
const path = scriptPath.replaceAll("\\", "/");
|
|
10
|
+
if (path.includes("/_npx/"))
|
|
11
|
+
return "npx";
|
|
12
|
+
if (path.includes("/install/global/node_modules/"))
|
|
13
|
+
return "bun";
|
|
14
|
+
if (/\/\.?pnpm\//.test(path))
|
|
15
|
+
return "pnpm";
|
|
16
|
+
if (path.includes("/node_modules/"))
|
|
17
|
+
return "npm";
|
|
18
|
+
return path.includes("/dist/") ? "checkout" : "unknown";
|
|
19
|
+
}, "installerOf");
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
installerOf
|
|
23
|
+
};
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CHART_KINDS,
|
|
5
|
+
CHART_SIZE,
|
|
6
|
+
chartAnswer,
|
|
7
|
+
chartPng,
|
|
8
|
+
chartRenderer,
|
|
9
|
+
chatChart,
|
|
10
|
+
keepRefreshedRefs,
|
|
11
|
+
mcpUrlOf,
|
|
12
|
+
refuseWriteBeforeConnecting,
|
|
13
|
+
registerPrompts,
|
|
14
|
+
stdinFieldOf,
|
|
15
|
+
syncsFirst
|
|
16
|
+
} from "./chunk-GNGBG5BT.js";
|
|
17
|
+
import {
|
|
18
|
+
answeredWire
|
|
19
|
+
} from "./chunk-U3ZUT557.js";
|
|
3
20
|
import {
|
|
4
21
|
BinaryResource,
|
|
5
22
|
Picture,
|
|
@@ -20,103 +37,85 @@ import {
|
|
|
20
37
|
tool,
|
|
21
38
|
toolKey,
|
|
22
39
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
CHART_KINDS,
|
|
26
|
-
CHART_SIZE,
|
|
27
|
-
chartAnswer,
|
|
28
|
-
chartPng,
|
|
29
|
-
chartRenderer,
|
|
30
|
-
chatChart,
|
|
31
|
-
keepRefreshedRefs,
|
|
32
|
-
mcpUrlOf,
|
|
33
|
-
refuseWriteBeforeConnecting,
|
|
34
|
-
registerPrompts,
|
|
35
|
-
stdinFieldOf,
|
|
36
|
-
syncsFirst
|
|
37
|
-
} from "./chunk-K6OSD6DG.js";
|
|
40
|
+
} from "./chunk-TMVKZMDO.js";
|
|
38
41
|
import {
|
|
39
42
|
agentJson,
|
|
40
43
|
skillResource
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import {
|
|
43
|
-
instructions
|
|
44
|
-
} from "./chunk-3DGQJASQ.js";
|
|
45
|
-
import {
|
|
46
|
-
mcpHttpMarker
|
|
47
|
-
} from "./chunk-7EOW47PV.js";
|
|
48
|
-
import {
|
|
49
|
-
answeredWire
|
|
50
|
-
} from "./chunk-H5LLZ5XA.js";
|
|
44
|
+
} from "./chunk-7PF56S6U.js";
|
|
51
45
|
import {
|
|
52
46
|
StdioServerTransport,
|
|
53
47
|
callerOf,
|
|
54
48
|
callingAgent,
|
|
55
49
|
serveStdio
|
|
56
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-7KCTPGOF.js";
|
|
51
|
+
import {
|
|
52
|
+
instructions
|
|
53
|
+
} from "./chunk-S4GDDO5S.js";
|
|
57
54
|
import {
|
|
58
55
|
McpServer,
|
|
59
56
|
ResourceTemplate
|
|
60
57
|
} from "./chunk-5D4AEUVA.js";
|
|
58
|
+
import {
|
|
59
|
+
mcpHttpMarker
|
|
60
|
+
} from "./chunk-LN2S3RA3.js";
|
|
61
61
|
import {
|
|
62
62
|
connectedFor,
|
|
63
63
|
guardFor
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-5GD2XZ6X.js";
|
|
65
65
|
import {
|
|
66
66
|
lackedNeed,
|
|
67
67
|
wholeList
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-N6JMJN5A.js";
|
|
69
69
|
import {
|
|
70
70
|
capability,
|
|
71
71
|
dateWindow,
|
|
72
72
|
imageSize,
|
|
73
73
|
servicesFor,
|
|
74
74
|
storedDeps
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-RO44LANT.js";
|
|
76
76
|
import {
|
|
77
77
|
findCommand
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-ZTL7ANSG.js";
|
|
79
79
|
import {
|
|
80
80
|
DEFAULT_OUTPUT_BYTES,
|
|
81
81
|
changesAuthorityAt,
|
|
82
82
|
describeProgram,
|
|
83
83
|
environmentOf,
|
|
84
|
-
fetchesOnlyAt,
|
|
85
84
|
itemOf,
|
|
86
85
|
judgedTargets,
|
|
86
|
+
readsOverMcpAt,
|
|
87
87
|
recalledAccount,
|
|
88
88
|
rootOf2 as rootOf,
|
|
89
89
|
sealed,
|
|
90
90
|
snakeKeys
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-A2SCXNA7.js";
|
|
92
92
|
import {
|
|
93
93
|
readOnlyLockOf
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-Z6U3MEGJ.js";
|
|
95
95
|
import {
|
|
96
96
|
withCaller
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-3Y2F65AY.js";
|
|
98
98
|
import {
|
|
99
99
|
typedCommand
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-5A26IBAR.js";
|
|
101
101
|
import {
|
|
102
102
|
isCliFailure
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-6GSJLNP4.js";
|
|
104
104
|
import {
|
|
105
105
|
levelFor,
|
|
106
106
|
readKeysForCommand
|
|
107
|
-
} from "./chunk-
|
|
108
|
-
import {
|
|
109
|
-
warmEmbedders
|
|
110
|
-
} from "./chunk-63MRRNDL.js";
|
|
107
|
+
} from "./chunk-5HPALDUO.js";
|
|
111
108
|
import {
|
|
112
109
|
openStore,
|
|
113
110
|
pdfPreviewLimits
|
|
114
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-IKQ73INC.js";
|
|
112
|
+
import {
|
|
113
|
+
warmEmbedders
|
|
114
|
+
} from "./chunk-AZ7ICKIA.js";
|
|
115
115
|
import {
|
|
116
116
|
timezoneOf
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-SU4WPBQE.js";
|
|
118
118
|
import {
|
|
119
|
-
CliError,
|
|
120
119
|
description,
|
|
121
120
|
integer,
|
|
122
121
|
maxValue,
|
|
@@ -130,17 +129,22 @@ import {
|
|
|
130
129
|
pipe,
|
|
131
130
|
regex,
|
|
132
131
|
strictObject,
|
|
133
|
-
string
|
|
132
|
+
string
|
|
133
|
+
} from "./chunk-N67BLTBV.js";
|
|
134
|
+
import {
|
|
135
|
+
CliError
|
|
136
|
+
} from "./chunk-S6S3KVJI.js";
|
|
137
|
+
import {
|
|
134
138
|
visibleControls
|
|
135
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-UYV2JGLQ.js";
|
|
136
140
|
import {
|
|
137
141
|
__name
|
|
138
142
|
} from "./chunk-ZVVMGPBJ.js";
|
|
139
143
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
141
145
|
import { randomUUID } from "node:crypto";
|
|
142
146
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
144
148
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
145
149
|
let held;
|
|
146
150
|
return {
|
|
@@ -159,7 +163,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
159
163
|
};
|
|
160
164
|
}, "agentLog");
|
|
161
165
|
|
|
162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
163
167
|
var LISTED = 100;
|
|
164
168
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
165
169
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -197,7 +201,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
197
201
|
});
|
|
198
202
|
}, "registerResources");
|
|
199
203
|
|
|
200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
201
205
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
202
206
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
203
207
|
var MessengerSession = class {
|
|
@@ -272,7 +276,7 @@ var MessengerSession = class {
|
|
|
272
276
|
}
|
|
273
277
|
};
|
|
274
278
|
|
|
275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
276
280
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
277
281
|
const _command = messenger.app.command;
|
|
278
282
|
return {
|
|
@@ -326,7 +330,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
326
330
|
};
|
|
327
331
|
}, "attachmentsTools");
|
|
328
332
|
|
|
329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
330
334
|
var PHOTO_LIMIT = 512 * 1024;
|
|
331
335
|
var IMAGE_TYPES = [
|
|
332
336
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -380,7 +384,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
380
384
|
return new Uint8Array(Buffer.concat(chunks));
|
|
381
385
|
}, "readUpTo");
|
|
382
386
|
|
|
383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
384
388
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
385
389
|
stats_charts: tool({
|
|
386
390
|
title: "A chart from a chat's statistics",
|
|
@@ -417,14 +421,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
417
421
|
})
|
|
418
422
|
}), "statsTools");
|
|
419
423
|
|
|
420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
421
425
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
422
426
|
...messagesPhotoTools(messenger),
|
|
423
427
|
...attachmentsTools(messenger),
|
|
424
428
|
...statsTools(messenger)
|
|
425
429
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
426
430
|
|
|
427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
428
432
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
429
433
|
"streams",
|
|
430
434
|
"stdin",
|
|
@@ -494,7 +498,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
494
498
|
readOnly: readOnlyLockOf(app, context.env) !== void 0,
|
|
495
499
|
keyOf,
|
|
496
500
|
authority,
|
|
497
|
-
fetchOnly:
|
|
501
|
+
fetchOnly: readsOverMcpAt(root),
|
|
498
502
|
offline: true,
|
|
499
503
|
stdin
|
|
500
504
|
}).map((one) => "sync_first" in one.input.entries && !syncAllowed(one.path) ? {
|
|
@@ -748,12 +752,13 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
748
752
|
}, "serveOverStdio");
|
|
749
753
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
750
754
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
751
|
-
const { serveOverHttp } = await import("./serve-
|
|
755
|
+
const { serveOverHttp } = await import("./serve-KGHEDUHB.js");
|
|
752
756
|
const appName = messenger.app.command;
|
|
753
757
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
754
758
|
const listening = await serveOverHttp(build, {
|
|
755
759
|
...http,
|
|
756
760
|
appName,
|
|
761
|
+
reaches: "your messages",
|
|
757
762
|
// In the background its log is a file; the code goes only to the lock that `mcp server status` reads.
|
|
758
763
|
onCode: /* @__PURE__ */ __name((code, expires) => context.renderer.note(context.env[mcpHttpMarker(appEnvPrefix)] === void 0 ? `login code for a new browser app: ${code} (until ${expires.toTimeString().slice(0, 5)}; a new one after each login)` : `a new login code for a browser app: \`${appName} ${context.settings.profile} mcp server status\``), "onCode"),
|
|
759
764
|
onError: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onError")
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7JMBEPW2.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S6S3KVJI.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S6S3KVJI.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/search/languages.js
|
|
11
11
|
var LANGUAGES = [
|
|
12
12
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
13
13
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -15,12 +15,12 @@ var LANGUAGES = [
|
|
|
15
15
|
];
|
|
16
16
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
19
19
|
var NORMALIZER_VERSION = 1;
|
|
20
20
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
21
21
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
|
|
24
24
|
var BaseStemmer = class {
|
|
25
25
|
static {
|
|
26
26
|
__name(this, "BaseStemmer");
|
|
@@ -395,7 +395,7 @@ var BaseStemmer = class {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
|
|
399
399
|
var a_0 = [
|
|
400
400
|
["arsen", -1],
|
|
401
401
|
["commun", -1],
|
|
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1096
1096
|
stemWord = this.stem;
|
|
1097
1097
|
};
|
|
1098
1098
|
|
|
1099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
|
|
1100
1100
|
var a_02 = [
|
|
1101
1101
|
["\u0432", 1],
|
|
1102
1102
|
["\u0438\u0432", 2, 1],
|
|
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1519
1519
|
stemWord = this.stem;
|
|
1520
1520
|
};
|
|
1521
1521
|
|
|
1522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
|
|
1523
1523
|
var a_03 = [
|
|
1524
1524
|
["", 6],
|
|
1525
1525
|
["\xE1", 1, 1],
|
|
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2195
2195
|
stemWord = this.stem;
|
|
2196
2196
|
};
|
|
2197
2197
|
|
|
2198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/search/stem.js
|
|
2199
2199
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2200
2200
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2201
2201
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|
|
@@ -3,26 +3,28 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z6U3MEGJ.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-62GOOZO3.js";
|
|
11
11
|
import {
|
|
12
|
-
CliError,
|
|
13
12
|
catchCrashes
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-N67BLTBV.js";
|
|
15
14
|
import {
|
|
16
15
|
importFrom
|
|
17
16
|
} from "./chunk-Y5E2WNWB.js";
|
|
17
|
+
import {
|
|
18
|
+
CliError
|
|
19
|
+
} from "./chunk-S6S3KVJI.js";
|
|
18
20
|
import {
|
|
19
21
|
__name
|
|
20
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
23
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
23
25
|
import { spawn as spawn2 } from "node:child_process";
|
|
24
26
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
26
28
|
import { spawn, spawnSync } from "node:child_process";
|
|
27
29
|
import { readFileSync } from "node:fs";
|
|
28
30
|
import { dirname } from "node:path";
|
|
@@ -110,7 +112,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
110
112
|
});
|
|
111
113
|
}), "relay");
|
|
112
114
|
|
|
113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
114
116
|
import { appendFileSync } from "node:fs";
|
|
115
117
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
116
118
|
const words = [];
|
|
@@ -134,7 +136,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
134
136
|
`);
|
|
135
137
|
}, "logVersion");
|
|
136
138
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
138
140
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
139
141
|
argv: process.argv,
|
|
140
142
|
env: process.env,
|
|
@@ -188,8 +190,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
188
190
|
if (command.optsWithGlobals().dryRun === true)
|
|
189
191
|
return;
|
|
190
192
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
191
|
-
import("./first-run-
|
|
192
|
-
import("./command-contract-
|
|
193
|
+
import("./first-run-J5FG773Q.js"),
|
|
194
|
+
import("./command-contract-CQFJXWX6.js")
|
|
193
195
|
]);
|
|
194
196
|
await setupAtStart({
|
|
195
197
|
command: entry.app.command,
|
|
@@ -204,7 +206,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
204
206
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
205
207
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
206
208
|
return false;
|
|
207
|
-
const { readSecret } = await import("./prompt-
|
|
209
|
+
const { readSecret } = await import("./prompt-CYBKP7S5.js");
|
|
208
210
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
209
211
|
input: io.stdin,
|
|
210
212
|
output: io.stderr,
|
|
@@ -213,7 +215,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
213
215
|
});
|
|
214
216
|
return /^(y|yes)$/i.test(answer.trim());
|
|
215
217
|
}, "ask"),
|
|
216
|
-
openBrowser: /* @__PURE__ */ __name((url, browser) => openBrowser(
|
|
218
|
+
openBrowser: /* @__PURE__ */ __name((url, browser) => openBrowser(url, browser, io), "openBrowser"),
|
|
217
219
|
outputClosed: /* @__PURE__ */ __name(() => closed, "outputClosed")
|
|
218
220
|
};
|
|
219
221
|
let code;
|
|
@@ -256,7 +258,7 @@ var commanderExit = /* @__PURE__ */ __name((error) => {
|
|
|
256
258
|
return 0;
|
|
257
259
|
return code === "commander.help" ? 2 : void 0;
|
|
258
260
|
}, "commanderExit");
|
|
259
|
-
var openBrowser = /* @__PURE__ */ __name((
|
|
261
|
+
var openBrowser = /* @__PURE__ */ __name((url, browser, io = { platform: process.platform, spawn: spawn2 }) => {
|
|
260
262
|
const [command, prefix] = browser !== void 0 ? [browser, []] : io.platform === "darwin" ? ["open", []] : io.platform === "win32" ? ["rundll32.exe", ["url.dll,FileProtocolHandler"]] : ["xdg-open", []];
|
|
261
263
|
return new Promise((resolve, reject) => {
|
|
262
264
|
const child = io.spawn(command, [...prefix, url], { detached: true, stdio: "ignore", windowsHide: true });
|
|
@@ -271,5 +273,6 @@ var openBrowser = /* @__PURE__ */ __name((io, url, browser) => {
|
|
|
271
273
|
export {
|
|
272
274
|
logParsedArgv,
|
|
273
275
|
logVersion,
|
|
274
|
-
startCli
|
|
276
|
+
startCli,
|
|
277
|
+
openBrowser
|
|
275
278
|
};
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TFDVFD4N.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
13
13
|
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-H5ZVZAOD.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|