@wirecat/amo-cli 0.2.0 → 0.4.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 +19 -14
- package/contracts/wirecat.json +58 -19
- package/dist/amo/button.d.ts +53 -0
- package/dist/amo/button.d.ts.map +1 -0
- package/dist/amo/button.js +234 -0
- package/dist/amo/button.js.map +1 -0
- package/dist/amo/oauth.d.ts +12 -3
- package/dist/amo/oauth.d.ts.map +1 -1
- package/dist/amo/oauth.js +19 -6
- package/dist/amo/oauth.js.map +1 -1
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-43BMVBX2.js +40 -0
- package/dist/bundle/{all-profiles-3KQVWDV4.js → all-profiles-PRNXEZRH.js} +63 -21
- package/dist/bundle/amo.js +28 -26
- package/dist/bundle/{anthropic-N5NOX7K7.js → anthropic-FDI24DU2.js} +5 -5
- package/dist/bundle/{app-server-2MST5EZ5.js → app-server-WAKJVDLN.js} +79 -68
- package/dist/bundle/{bun-4NHWOFX2.js → bun-YPXUXMBI.js} +2 -2
- package/dist/bundle/{bun-sqlite-DRSXPWPR.js → bun-sqlite-UBQ5M47X.js} +6 -6
- package/dist/bundle/chunk-23AQD7JU.js +559 -0
- package/dist/bundle/{chunk-2I5UVMLW.js → chunk-2AIG2SSJ.js} +1733 -1160
- package/dist/bundle/{chunk-DQV2IKCF.js → chunk-2UJ7ZZZC.js} +10 -3
- package/dist/bundle/{chunk-ODNQU7DH.js → chunk-3K6T2G52.js} +43 -64
- package/dist/bundle/chunk-3PCVQCCV.js +108 -0
- package/dist/bundle/{chunk-UMVRT7VQ.js → chunk-3WG4MTQI.js} +1 -1
- package/dist/bundle/chunk-4PQECIU2.js +30 -0
- package/dist/bundle/{chunk-T2UDLX76.js → chunk-5HZMXHRH.js} +6 -6
- package/dist/bundle/{chunk-P3WQRTYZ.js → chunk-5II6TAJE.js} +1 -1
- package/dist/bundle/{chunk-RPWAJYI6.js → chunk-5SJEJYQZ.js} +3 -3
- package/dist/bundle/{chunk-5QFHNBGB.js → chunk-6PILR4AX.js} +2 -2
- package/dist/bundle/{chunk-TNUFLULO.js → chunk-6QMSKJB4.js} +8 -8
- package/dist/bundle/{chunk-5RLUHTK6.js → chunk-745FMNI5.js} +1 -1
- package/dist/bundle/{chunk-AUBB72VF.js → chunk-7OVTUADG.js} +41 -10
- package/dist/bundle/{chunk-7U5HJEPZ.js → chunk-A4W7J6VN.js} +34 -22
- package/dist/bundle/chunk-ABMPZL2P.js +734 -0
- package/dist/bundle/{chunk-EROSAUNP.js → chunk-AN6IJYH3.js} +5 -5
- package/dist/bundle/{chunk-SZ2V62HB.js → chunk-AP3CWDRK.js} +2 -2
- package/dist/bundle/{chunk-ESZSMZKT.js → chunk-ASU63X5C.js} +2 -2
- package/dist/bundle/{chunk-EPOV5UIO.js → chunk-BCIZAUDV.js} +11 -11
- package/dist/bundle/{chunk-7PKFYX7V.js → chunk-CEBX63XY.js} +8 -8
- package/dist/bundle/{chunk-7GTUZY7M.js → chunk-CYHIM5SL.js} +3 -3
- package/dist/bundle/chunk-DWA5TZMP.js +209 -0
- package/dist/bundle/{chunk-LDEBZ3IX.js → chunk-DWD3KDJA.js} +1 -1
- package/dist/bundle/{chunk-GQ7VFIYM.js → chunk-E3EWS6DF.js} +23 -7
- package/dist/bundle/{chunk-NJYAL3UW.js → chunk-EAX5RO7S.js} +1 -1
- package/dist/bundle/{chunk-LJQUYECN.js → chunk-EBNCUQLV.js} +1 -1
- package/dist/bundle/{chunk-UBRREVLJ.js → chunk-ELAKOEIO.js} +2 -2
- package/dist/bundle/{chunk-DAY6TSPF.js → chunk-FEUNZG7U.js} +62 -50
- package/dist/bundle/{chunk-63F65DHU.js → chunk-FQRP6JWX.js} +2 -2
- package/dist/bundle/{chunk-SMSTGO2G.js → chunk-G3LAYJJJ.js} +4 -4
- package/dist/bundle/{chunk-LGQXGOPJ.js → chunk-GBQ76X6T.js} +2 -2
- package/dist/bundle/{chunk-CHUKWON6.js → chunk-GJBOZAUD.js} +3 -3
- package/dist/bundle/{chunk-A33TIM5D.js → chunk-GMHRPX5M.js} +225 -225
- package/dist/bundle/{chunk-O2UCU52O.js → chunk-GQKEMBM6.js} +171 -569
- package/dist/bundle/{chunk-EQUKVVHX.js → chunk-HDZNSOV5.js} +7 -7
- package/dist/bundle/{chunk-ZM7I52EP.js → chunk-HZZ56JO7.js} +3 -4
- package/dist/bundle/{chunk-XQL7FEF4.js → chunk-IBEHYGG6.js} +9 -9
- package/dist/bundle/{chunk-U7RLVJ34.js → chunk-IPNIF5JE.js} +4 -4
- package/dist/bundle/{chunk-QDMXZZG4.js → chunk-KBAOJISR.js} +18 -8
- package/dist/bundle/{chunk-ADEWU4P4.js → chunk-KORZEYZN.js} +1 -1
- package/dist/bundle/{chunk-JMDLPBXK.js → chunk-KQZTX4LM.js} +17 -17
- package/dist/bundle/{chunk-NHXJYS4R.js → chunk-KRD375P7.js} +32 -28
- package/dist/bundle/{chunk-ULXQ5MJM.js → chunk-LAR2DLTI.js} +4 -4
- package/dist/bundle/{chunk-NC76INB2.js → chunk-LZ4IWN43.js} +3088 -2266
- package/dist/bundle/{chunk-BVMNXI53.js → chunk-M33XHJTM.js} +25 -25
- package/dist/bundle/{chunk-WCYCUTSK.js → chunk-M54YKD3I.js} +7 -7
- package/dist/bundle/{chunk-LSND5QYI.js → chunk-MW7HUD6R.js} +9 -9
- package/dist/bundle/{chunk-AHJ4W2IL.js → chunk-NFWD4QX3.js} +2 -2
- package/dist/bundle/{chunk-PM77PRB6.js → chunk-NKYWQTS2.js} +189 -163
- package/dist/bundle/{chunk-LRBPT7LQ.js → chunk-NXNUCGGO.js} +6 -6
- package/dist/bundle/{chunk-5D4Z2B5B.js → chunk-O3WE5IGP.js} +9 -9
- package/dist/bundle/chunk-OYMHPQF7.js +52 -0
- package/dist/bundle/{chunk-VVHRQ46X.js → chunk-PIOR6PIO.js} +2 -2
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-XEFAMLSD.js → chunk-PL7TNKAY.js} +3 -3
- package/dist/bundle/chunk-PLU2IQXC.js +80 -0
- package/dist/bundle/{chunk-73CXFE36.js → chunk-QGFURWEP.js} +29 -1
- package/dist/bundle/{chunk-CDY2NJFE.js → chunk-RQPB2BSH.js} +2 -2
- package/dist/bundle/{chunk-QRQYUHCZ.js → chunk-S6DTLAOB.js} +12 -12
- package/dist/bundle/{chunk-DJD7TBYG.js → chunk-SCMB4LI6.js} +76 -74
- package/dist/bundle/{chunk-TGEQNS6G.js → chunk-SFZVMKB6.js} +1 -1
- package/dist/bundle/{chunk-PFO76YFP.js → chunk-SHOSFYI7.js} +18 -18
- package/dist/bundle/{chunk-5SBLU7D7.js → chunk-SMM7GS4Q.js} +1 -1
- package/dist/bundle/{chunk-EQ7A6NA6.js → chunk-SNBYFQHT.js} +1 -1
- package/dist/bundle/{chunk-GNTJMB6X.js → chunk-SZX7EPPY.js} +4 -4
- package/dist/bundle/{chunk-VX37MPTJ.js → chunk-TCSVW7BA.js} +1 -1
- package/dist/bundle/{chunk-P5LYZRKW.js → chunk-TEGQVVCZ.js} +1992 -885
- package/dist/bundle/{chunk-Q2VNBY4Y.js → chunk-TIR3AB35.js} +758 -1205
- package/dist/bundle/{chunk-5HGGG3QO.js → chunk-U46RNOEQ.js} +16 -3
- package/dist/bundle/{chunk-Y37A3232.js → chunk-UCM7C773.js} +130 -8
- package/dist/bundle/{chunk-L6AFE73L.js → chunk-UEN5NWNW.js} +1 -1
- package/dist/bundle/{chunk-6RS7OYTD.js → chunk-V2QWX6B3.js} +3 -3
- package/dist/bundle/{chunk-3IRJDH2U.js → chunk-V5SETIQK.js} +2 -100
- package/dist/bundle/{chunk-JR6TSMFX.js → chunk-VEFAYLKX.js} +103 -70
- package/dist/bundle/{chunk-CUZRHF34.js → chunk-VG26HDKH.js} +4 -4
- package/dist/bundle/{chunk-4ZAK773N.js → chunk-VG2ERHFJ.js} +3 -3
- package/dist/bundle/{chunk-CHH42KI4.js → chunk-WAFB3IWJ.js} +8 -8
- package/dist/bundle/{chunk-5Z5PEEKP.js → chunk-WASBOYI2.js} +4 -4
- package/dist/bundle/{chunk-DXGGCGRP.js → chunk-WEWJA42Q.js} +14 -14
- package/dist/bundle/chunk-WR2FPZTE.js +353 -0
- package/dist/bundle/chunk-XEYT2EQT.js +338 -0
- package/dist/bundle/{chunk-DOSJONCX.js → chunk-YFRTEJ6V.js} +7 -7
- package/dist/bundle/{chunk-XRTD2GCU.js → chunk-YHVHDRED.js} +19 -258
- package/dist/bundle/{chunk-JH3UOHRE.js → chunk-YREKMP24.js} +4 -4
- package/dist/bundle/{chunk-V77XNPXG.js → chunk-Z2B3VNRI.js} +11 -11
- package/dist/bundle/{chunk-FKR3M62D.js → chunk-ZJC2XJQC.js} +13 -13
- package/dist/bundle/{chunk-5E5R65CA.js → chunk-ZKRWNL4T.js} +2 -2
- package/dist/bundle/{cli-QVWTXADI.js → cli-QDPKC2HJ.js} +150 -103
- package/dist/bundle/command-contract-KWNCP3MQ.js +39 -0
- package/dist/bundle/{command-server-entry-5VL5U5EE.js → command-server-entry-TX7WNN7G.js} +28 -28
- package/dist/bundle/{decode-SQ5WGNDX.js → decode-BLPC7OYE.js} +5 -5
- package/dist/bundle/{dispatch-LA4DFXJD.js → dispatch-5JUT55CS.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-25Z3RINX.js → echarts-54D3FOCL.js} +2 -2
- package/dist/bundle/{embed-BNOTNXMA.js → embed-O7KMDYM7.js} +6 -6
- package/dist/bundle/{embedder-BCUT7KKV.js → embedder-4PE67CLX.js} +9 -9
- package/dist/bundle/{failure-PKAC6XCT.js → failure-NNQYTB3Z.js} +2 -2
- package/dist/bundle/{first-run-EO5K5GME.js → first-run-EAU5SHBI.js} +12 -12
- package/dist/bundle/first-screen-APSNGZYZ.js +39 -0
- package/dist/bundle/{instructions-VLM3QAYB.js → instructions-ONXP5DZQ.js} +1 -1
- package/dist/bundle/{mcp-7ILNMJH5.js → mcp-ZNULRPZ4.js} +2 -2
- package/dist/bundle/meeting-combined-W2XIYXFU.js +24 -0
- package/dist/bundle/{meeting-model-GHMMUQ34.js → meeting-model-FWIZRKVN.js} +11 -11
- package/dist/bundle/{meeting-semantic-BMP6323L.js → meeting-semantic-M4YVJ57W.js} +6 -6
- package/dist/bundle/{node-CT3N3TNL.js → node-UTQCYQF5.js} +2 -2
- package/dist/bundle/{node-sqlite-MELD2SBX.js → node-sqlite-APJG6MGL.js} +7 -7
- package/dist/bundle/{oauth-YBH5OKC2.js → oauth-TY7RMIBL.js} +8 -8
- package/dist/bundle/{open-WNSBWTAG.js → open-WDVEQL75.js} +5 -5
- package/dist/bundle/{openai-XSNMNLW6.js → openai-H5UJHSEZ.js} +15 -15
- package/dist/bundle/{process-I2QKOMM7.js → process-MGMXXPMY.js} +1 -1
- package/dist/bundle/{program-G6O3IJR2.js → program-IF36C6VR.js} +969 -1127
- package/dist/bundle/{prompt-SOG4AKPM.js → prompt-4RLIWLMF.js} +5 -5
- package/dist/bundle/{recognize-WMQLWMXH.js → recognize-UIRTMWM4.js} +4 -4
- package/dist/bundle/{remote-4BTFOLFY.js → remote-L3MNWZQK.js} +9 -9
- package/dist/bundle/{rerank-LJ3TWRNV.js → rerank-F4KZQTY6.js} +7 -7
- package/dist/bundle/{serve-B6UANKXN.js → serve-37AUYTWS.js} +10 -10
- package/dist/bundle/server-CRF4QSZR.js +86 -0
- package/dist/bundle/{server-YRH6GJ5Z.js → server-UBG676ZJ.js} +73 -61
- package/dist/bundle/source-Z7GH7T4B.js +44 -0
- package/dist/bundle/{sqlite-runtime-R7QFWFE7.js → sqlite-runtime-CI3RW7VA.js} +6 -6
- package/dist/bundle/{state-DIJ5YUOE.js → state-JOHLSLUO.js} +6 -6
- package/dist/bundle/{store-MYTYDV6A.js → store-2MBG4IUS.js} +28 -21
- package/dist/bundle/{store-6WFWW7EC.js → store-OSOUXBYL.js} +28 -23
- package/dist/bundle/store-SNW6U32Y.js +34 -0
- package/dist/bundle/store-maintenance-command-W7V54SLT.js +73 -0
- package/dist/bundle/surface-ESJS2FUI.js +72 -0
- package/dist/bundle/writer-BJDQMKUV.js +46 -0
- package/dist/commands/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +38 -77
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +2 -0
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +23 -6
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +122 -77
- package/dist/commands/session.js.map +1 -1
- package/dist/identity.js +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.js +2 -2
- package/dist/reasons.js.map +1 -1
- package/dist/setup/flow.d.ts.map +1 -1
- package/dist/setup/flow.js +74 -4
- package/dist/setup/flow.js.map +1 -1
- package/dist/setup/texts.en.json +22 -1
- package/dist/setup/texts.es.json +22 -1
- package/dist/setup/texts.ru.json +22 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/amo-cli/references/setup.md +8 -2
- package/dist/bundle/command-contract-QBUQBXH7.js +0 -39
- package/dist/bundle/first-screen-GMN3T6RW.js +0 -39
- package/dist/bundle/meeting-combined-LAMF7S2B.js +0 -24
- package/dist/bundle/server-S6XD6V6E.js +0 -77
- package/dist/bundle/source-DGFTA2TN.js +0 -42
- package/dist/bundle/store-CHWY2USQ.js +0 -32
- package/dist/bundle/store-maintenance-command-B5TMKFMG.js +0 -68
- package/dist/bundle/writer-GP7VIMAU.js +0 -44
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SMM7GS4Q.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SCMB4LI6.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -53,6 +53,17 @@ var releaseLock = /* @__PURE__ */ __name((path, pid = process.pid) => {
|
|
|
53
53
|
if (readLock(path)?.pid === pid)
|
|
54
54
|
rmSync(path, { force: true });
|
|
55
55
|
}, "releaseLock");
|
|
56
|
+
var currentPath = /* @__PURE__ */ __name((lock) => lock.replace(/\.lock$/, ".current"), "currentPath");
|
|
57
|
+
var markCurrent = /* @__PURE__ */ __name((lock, at = /* @__PURE__ */ new Date()) => writeSecurely(currentPath(lock), `${JSON.stringify({ at: at.toISOString() })}
|
|
58
|
+
`, 384), "markCurrent");
|
|
59
|
+
var readCurrent = /* @__PURE__ */ __name((lock) => {
|
|
60
|
+
try {
|
|
61
|
+
const { at } = JSON.parse(readFileSync(currentPath(lock), "utf8"));
|
|
62
|
+
return typeof at === "string" ? at : void 0;
|
|
63
|
+
} catch {
|
|
64
|
+
return void 0;
|
|
65
|
+
}
|
|
66
|
+
}, "readCurrent");
|
|
56
67
|
var servingProfiles = /* @__PURE__ */ __name((app, env) => {
|
|
57
68
|
const dir = dirname(lockPath(app, "default", env));
|
|
58
69
|
if (!existsSync(dir))
|
|
@@ -69,5 +80,7 @@ export {
|
|
|
69
80
|
holdLock,
|
|
70
81
|
takeLock,
|
|
71
82
|
releaseLock,
|
|
83
|
+
markCurrent,
|
|
84
|
+
readCurrent,
|
|
72
85
|
servingProfiles
|
|
73
86
|
};
|
|
@@ -2,15 +2,61 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GMHRPX5M.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
readSharedSection,
|
|
8
|
+
sharedConfigPath,
|
|
9
|
+
writeSharedSection
|
|
10
|
+
} from "./chunk-YFRTEJ6V.js";
|
|
11
|
+
import {
|
|
12
|
+
storePath
|
|
13
|
+
} from "./chunk-ZKRWNL4T.js";
|
|
14
|
+
import {
|
|
15
|
+
defineReasons,
|
|
16
|
+
isoTimestamp,
|
|
17
|
+
picklist,
|
|
18
|
+
pipe,
|
|
19
|
+
safeParse,
|
|
20
|
+
strictObject,
|
|
21
|
+
string
|
|
22
|
+
} from "./chunk-7OVTUADG.js";
|
|
23
|
+
import {
|
|
24
|
+
CliError
|
|
25
|
+
} from "./chunk-AP3CWDRK.js";
|
|
9
26
|
import {
|
|
10
27
|
__name
|
|
11
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
29
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
|
|
31
|
+
var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
|
|
32
|
+
var SECTION = "chat_sending";
|
|
33
|
+
var Setting = strictObject({
|
|
34
|
+
mode: picklist(CHAT_SENDING_MODES),
|
|
35
|
+
at: pipe(string(), isoTimestamp())
|
|
36
|
+
});
|
|
37
|
+
var CHAT_SENDING_ASK_DETAILS = ["emails", "threads", "tokens", "host", "model", "estimated_cost_usd"];
|
|
38
|
+
var pathOf = /* @__PURE__ */ __name((env) => sharedConfigPath(storePath(env), env), "pathOf");
|
|
39
|
+
var readChatSending = /* @__PURE__ */ __name((env) => {
|
|
40
|
+
const section = readSharedSection(pathOf(env), SECTION);
|
|
41
|
+
if (section === void 0 || section === null)
|
|
42
|
+
return void 0;
|
|
43
|
+
const checked = safeParse(Setting, section);
|
|
44
|
+
return checked.success ? checked.output : { mode: "denied", at: (/* @__PURE__ */ new Date(0)).toISOString() };
|
|
45
|
+
}, "readChatSending");
|
|
46
|
+
var chatSendingMode = /* @__PURE__ */ __name((env) => readChatSending(env)?.mode ?? "ask", "chatSendingMode");
|
|
47
|
+
var writeChatSending = /* @__PURE__ */ __name((env, mode) => writeSharedSection(pathOf(env), SECTION, mode === "ask" ? void 0 : { mode, at: (/* @__PURE__ */ new Date()).toISOString() }), "writeChatSending");
|
|
48
|
+
var STRICTNESS = { allowed: 0, ask: 1, denied: 2 };
|
|
49
|
+
var loosens = /* @__PURE__ */ __name((from, to) => STRICTNESS[to] < STRICTNESS[from], "loosens");
|
|
50
|
+
var chatSendingCommand = /* @__PURE__ */ __name((command, mode) => `${command} models chats set ${mode}`, "chatSendingCommand");
|
|
51
|
+
var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
|
|
52
|
+
const mode = chatSendingMode(env);
|
|
53
|
+
if (mode === "denied")
|
|
54
|
+
throw new CliError("permission_error", `sending chat text to a model outside this computer is denied by the setting \`models chats\`; nothing was sent to ${host}, and --yes does not change that. Use a model on this computer, or ask the owner to run \`${chatSendingCommand(command, "ask")}\` (or \`allowed\`)`, { reason: "chat-sending.denied" });
|
|
55
|
+
return mode === "allowed";
|
|
56
|
+
}, "chatSendingAllowed");
|
|
57
|
+
var chatSendingAskRefusal = /* @__PURE__ */ __name((what, command, details = {}) => new CliError("confirmation_required", `${what} \u2014 add --yes to send them (an agent may pass yes), or ask the owner to run \`${chatSendingCommand(command, "allowed")}\` so no yes is needed`, { ...details, reason: "chat-sending.ask" }), "chatSendingAskRefusal");
|
|
58
|
+
|
|
59
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
60
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
61
|
var QUERY = [
|
|
16
62
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -57,25 +103,51 @@ var SIGN_IN = [
|
|
|
57
103
|
validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
|
|
58
104
|
["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
|
|
59
105
|
["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
|
|
106
|
+
["account-remove.account-shared", "conflict", "another profile reads the same account, whose copy the store shares"],
|
|
107
|
+
["session.duplicate", "conflict", "another profile here already signs in to this account as this user"],
|
|
108
|
+
[
|
|
109
|
+
"account-remove.account-unknown",
|
|
110
|
+
"conflict",
|
|
111
|
+
"which account another profile holds could not be read, so --delete-data waits"
|
|
112
|
+
],
|
|
113
|
+
validation("profile.reserved", "the profile name is a folder every CRM account shares; pick another"),
|
|
60
114
|
["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
|
|
61
115
|
["account-remove.path-outside", "configuration_error", "the tool named a path outside its own folders"],
|
|
62
116
|
[
|
|
63
117
|
"account-remove.folder-outside",
|
|
64
118
|
"configuration_error",
|
|
65
119
|
"the tool named a folder of its own outside the home folder"
|
|
66
|
-
]
|
|
120
|
+
],
|
|
121
|
+
["account-rename.taken", "conflict", "the new name, or a file or keyring entry under it, already exists"],
|
|
122
|
+
["account-rename.busy", "conflict", "a serve, a background service, a schedule or a sync uses this profile"],
|
|
123
|
+
["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
|
|
124
|
+
["account-rename.unconfirmed", "confirmation_required", "renaming a profile asks first; add --yes"],
|
|
125
|
+
["account-rename.moved-run", "permission_error", "a run with moved folders never renames a profile"],
|
|
126
|
+
["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"],
|
|
127
|
+
["account-rename.config", "configuration_error", "the config file cannot be read"]
|
|
67
128
|
];
|
|
68
129
|
var PROVIDER_API = [
|
|
69
130
|
["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
|
|
70
131
|
validation("api.unknown-method", "the provider has no method by this name"),
|
|
71
132
|
["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
|
|
133
|
+
["manifest.invalid", "configuration_error", "the source manifest does not match its shape or the generated API"],
|
|
134
|
+
["source.no-id", "invalid_response", "a row of the provider's answer has no id where the source manifest says"],
|
|
135
|
+
["source.no-account", "invalid_response", "the provider's answer does not name the signed-in account"],
|
|
136
|
+
validation("source.token-invalid", "the change token is not one this source gave"),
|
|
137
|
+
[
|
|
138
|
+
"source.changes-too-many",
|
|
139
|
+
"invalid_response",
|
|
140
|
+
"more changed since one sync than a round reads, and the provider does not list changes oldest first"
|
|
141
|
+
],
|
|
142
|
+
["verify.no-id", "provider_error", "the answer to the sign-in check holds no account id where auth.verify says"],
|
|
72
143
|
["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
|
|
73
144
|
["access.denied", "permission_error", "the provider refused this account access to the item"],
|
|
74
145
|
["item.not-found", "not_found", "the provider has no item by this id, or this account cannot see it"],
|
|
75
146
|
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
76
147
|
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
77
148
|
["file.denied", "permission_error", "the file cannot be opened: permission denied"],
|
|
78
|
-
validation("file.too-large", "the file is larger than the limit set for this read")
|
|
149
|
+
validation("file.too-large", "the file is larger than the limit set for this read"),
|
|
150
|
+
validation("file.not-plain-text", "the file's text is extracted on a read; writing it back would replace the file")
|
|
79
151
|
];
|
|
80
152
|
var SFTP = [
|
|
81
153
|
["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
|
|
@@ -191,6 +263,7 @@ var OTHERS = [
|
|
|
191
263
|
validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
|
|
192
264
|
validation("document.changed", "the document changed while it was read; nothing was saved"),
|
|
193
265
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
266
|
+
["document.version-missing", "not_found", "the local copy holds no such version of the document"],
|
|
194
267
|
["document.not-found", "not_found", "no listed document has that reference"],
|
|
195
268
|
["state.unreadable", "configuration_error", "a sync state file cannot be read; move it away and sync again"],
|
|
196
269
|
["profile.busy", "provider_unavailable", "another sync or write holds this profile's local copy"],
|
|
@@ -211,6 +284,8 @@ var OTHERS = [
|
|
|
211
284
|
validation("mail.cursor-ahead", "an acknowledge cursor is past the newest stored email"),
|
|
212
285
|
["mail.holder-not-yours", "permission_error", "a run moves only the mark of the holder its schedule names"],
|
|
213
286
|
["mail.no-mark", "not_found", "the holder has no mark in the mailbox yet; its first review starts it"],
|
|
287
|
+
["mail.inbox-agent", "permission_error", "an agent sorts mail itself from review; inbox --offline lists"],
|
|
288
|
+
["mail.inbox-answer-invalid", "invalid_response", "the AI model's answer to inbox is not the JSON it asks for"],
|
|
214
289
|
["mail.reset-owner-only", "permission_error", "only the owner moves a holder's mark back"],
|
|
215
290
|
["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
|
|
216
291
|
["mail.search-refused", "provider_error", "the mail server refused to search a folder"],
|
|
@@ -223,6 +298,29 @@ var OTHERS = [
|
|
|
223
298
|
["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
|
|
224
299
|
["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
|
|
225
300
|
validation("mirror.not-folder", "the path to mirror is not a folder"),
|
|
301
|
+
validation("mirror.symlink", "the file is under a symbolic link, which the sync does not follow"),
|
|
302
|
+
[
|
|
303
|
+
"mirror.too-many-deletions",
|
|
304
|
+
"confirmation_required",
|
|
305
|
+
"the sync would delete more files than the guard allows; check them with --dry-run and allow them explicitly"
|
|
306
|
+
],
|
|
307
|
+
[
|
|
308
|
+
"mirror.too-many-replacements",
|
|
309
|
+
"confirmation_required",
|
|
310
|
+
"the sync would replace more files than the guard allows; check them with --dry-run and allow them explicitly"
|
|
311
|
+
],
|
|
312
|
+
validation("mirror.no-space", "the sync needs more free space than the local drive has"),
|
|
313
|
+
validation("mirror.bad-exclusion", "the exclusion is not a path pattern inside the mirror"),
|
|
314
|
+
[
|
|
315
|
+
"mirror.version-not-kept",
|
|
316
|
+
"provider_error",
|
|
317
|
+
"the earlier content could not be kept in the version store, so the sync did not replace it"
|
|
318
|
+
],
|
|
319
|
+
["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
|
|
320
|
+
["mirror.local-changed", "conflict", "the local file changed since the conflict was found; nothing was written"],
|
|
321
|
+
["mirror.no-conflict", "not_found", "the path has no recorded conflict; the last sync settled it or never saw one"],
|
|
322
|
+
["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
|
|
323
|
+
["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
|
|
226
324
|
["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
|
|
227
325
|
["catalog.not-found", "not_found", "the file or folder is not in the local catalog; run catalog import or sync"],
|
|
228
326
|
validation("catalog.depth-invalid", "tree depth must be between 0 and 50"),
|
|
@@ -491,6 +589,15 @@ var OTHERS = [
|
|
|
491
589
|
validation("crm.owner-unknown", "owner: names no CRM user: me without a known sign-in user, or not a user id"),
|
|
492
590
|
validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
|
|
493
591
|
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
|
|
592
|
+
validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was, until --rescan"),
|
|
593
|
+
validation("content.unlisted-held", "a content id list would mark too much deleted, the sign-in read only part, or the site moved; nothing was"),
|
|
594
|
+
validation("content.conflict", "the post changed at the source since the last sync; sync, then write again"),
|
|
595
|
+
validation("content.lossy-body", "the post's text holds blocks or embeds Markdown does not keep; --replace-body"),
|
|
596
|
+
validation("content.schedule-past", "a post is scheduled for a time to come, not one that passed"),
|
|
597
|
+
validation("content.already-published", "a published post cannot be scheduled; unpublish it first"),
|
|
598
|
+
validation("content.empty", "a write names no field to set"),
|
|
599
|
+
["content.get-unsupported", "configuration_error", "the source cannot read one post, author or term by its id"],
|
|
600
|
+
validation("content.write-unsupported", "the source does not take this write, such as a deletion past the trash"),
|
|
494
601
|
validation("crm.narrowing-held", "the default scope mine would mark most of a kind's stored rows deleted; none is, until the owner sets the scope"),
|
|
495
602
|
validation("crm.unassigned-dropped", "the CRM does not let this sign-in choose a user in unassigned; that user's deals are not copied"),
|
|
496
603
|
validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
|
|
@@ -538,8 +645,9 @@ var OTHERS = [
|
|
|
538
645
|
["person.no-owner", "not_found", "no person is marked as the owner in the store"],
|
|
539
646
|
["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
|
|
540
647
|
["person.no-doubt", "not_found", "nothing about that person is in doubt; people links check lists who is"],
|
|
541
|
-
validation("person.owner", "the owner's own person is not test data"),
|
|
648
|
+
validation("person.owner", "the owner's own person is not test data, and is never deleted"),
|
|
542
649
|
validation("person.no-identity", "a person with no identity is not test data; there is nothing to hide"),
|
|
650
|
+
validation("person.erase-blocked", "an invoice, order, subscription or a row the person wrote still names them; change those first, nothing was deleted"),
|
|
543
651
|
validation("person.from-required", "say whom the identity leaves: --from person:<uid>, or person:me for the owner"),
|
|
544
652
|
[
|
|
545
653
|
"identity.separated",
|
|
@@ -579,6 +687,8 @@ var OTHERS = [
|
|
|
579
687
|
validation("identity.agent-unnamed", "an agent's link names the agent, and never as the owner"),
|
|
580
688
|
validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
|
|
581
689
|
["organization.not-found", "not_found", "no stored organization has that id"],
|
|
690
|
+
validation("organization.own", "the organization is one of your own companies and is never deleted"),
|
|
691
|
+
validation("organization.erase-blocked", "an invoice, order, subscription or a row the organization wrote still names it; change those first, nothing was deleted"),
|
|
582
692
|
validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
|
|
583
693
|
validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
|
|
584
694
|
validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
|
|
@@ -696,6 +806,10 @@ var INPUT_FIELD_REASONS = defineReasons([
|
|
|
696
806
|
details: ["fields"]
|
|
697
807
|
}
|
|
698
808
|
]);
|
|
809
|
+
var DETAILED = {
|
|
810
|
+
"vocabulary.consolidation-over-budget": ["table"],
|
|
811
|
+
"chat-sending.ask": CHAT_SENDING_ASK_DETAILS
|
|
812
|
+
};
|
|
699
813
|
var REASONS = defineReasons([
|
|
700
814
|
...QUERY_REASONS,
|
|
701
815
|
...INPUT_FIELD_REASONS,
|
|
@@ -703,10 +817,11 @@ var REASONS = defineReasons([
|
|
|
703
817
|
reason,
|
|
704
818
|
code,
|
|
705
819
|
message,
|
|
706
|
-
details: reason
|
|
820
|
+
details: DETAILED[reason] ?? []
|
|
707
821
|
}))
|
|
708
822
|
]);
|
|
709
823
|
var DETAILS = [
|
|
824
|
+
"account",
|
|
710
825
|
"holders",
|
|
711
826
|
"profile",
|
|
712
827
|
"contracts",
|
|
@@ -798,6 +913,13 @@ var failureContext = /* @__PURE__ */ __name((errors) => {
|
|
|
798
913
|
}, "failureContext");
|
|
799
914
|
|
|
800
915
|
export {
|
|
916
|
+
CHAT_SENDING_MODES,
|
|
917
|
+
readChatSending,
|
|
918
|
+
chatSendingMode,
|
|
919
|
+
writeChatSending,
|
|
920
|
+
loosens,
|
|
921
|
+
chatSendingAllowed,
|
|
922
|
+
chatSendingAskRefusal,
|
|
801
923
|
INPUT_FIELD_REASONS,
|
|
802
924
|
REASONS,
|
|
803
925
|
failureContext
|
|
@@ -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.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/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);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M33XHJTM.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
strictObject,
|
|
17
17
|
string,
|
|
18
18
|
unknown
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7OVTUADG.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
CLIENT_INFO_META_KEY,
|
|
5
4
|
DEFAULT_MAX_SUBSCRIPTIONS,
|
|
6
5
|
McpServer,
|
|
7
6
|
ProtocolErrorCode,
|
|
@@ -24,12 +23,7 @@ import {
|
|
|
24
23
|
serverIdentityOf,
|
|
25
24
|
setNegotiatedProtocolVersion,
|
|
26
25
|
validateEnvelopeMeta
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
agentOf,
|
|
30
|
-
clientHash,
|
|
31
|
-
currentCaller
|
|
32
|
-
} from "./chunk-WCYCUTSK.js";
|
|
26
|
+
} from "./chunk-PL5P7UKW.js";
|
|
33
27
|
import {
|
|
34
28
|
__name
|
|
35
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,95 +535,7 @@ function toError(value) {
|
|
|
541
535
|
}
|
|
542
536
|
__name(toError, "toError");
|
|
543
537
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
545
|
-
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
|
-
const client = caller?.agent?.client?.name;
|
|
547
|
-
if (client && client !== "unknown")
|
|
548
|
-
return client;
|
|
549
|
-
const kind = caller?.agent?.kind;
|
|
550
|
-
return kind && kind !== "mcp-client" ? kind : fallback;
|
|
551
|
-
}, "callingAgent");
|
|
552
|
-
var CALLER_META_KEY = "wirecat.dev/caller";
|
|
553
|
-
var PROXY_CLIENT_NAME = "all-profiles";
|
|
554
|
-
var NAME = /^[\w .@()/+-]{1,64}$/;
|
|
555
|
-
var plain = /* @__PURE__ */ __name((value) => typeof value === "string" && NAME.test(value.trim()) ? value.trim() : void 0, "plain");
|
|
556
|
-
var clientFrom = /* @__PURE__ */ __name((value) => {
|
|
557
|
-
if (!value || typeof value !== "object")
|
|
558
|
-
return void 0;
|
|
559
|
-
const { name, version } = value;
|
|
560
|
-
const named = plain(name);
|
|
561
|
-
if (!named)
|
|
562
|
-
return void 0;
|
|
563
|
-
const versioned = plain(version);
|
|
564
|
-
return { name: named, ...versioned ? { version: versioned } : {} };
|
|
565
|
-
}, "clientFrom");
|
|
566
|
-
var callerOf = /* @__PURE__ */ __name((ctx, tool, source) => {
|
|
567
|
-
const meta = ctx?.mcpReq?._meta;
|
|
568
|
-
const requestId = ctx?.mcpReq?.id;
|
|
569
|
-
const initialized = source.client?.();
|
|
570
|
-
const proxied = initialized?.name === PROXY_CLIENT_NAME && !ctx?.http ? passedOn(meta?.[CALLER_META_KEY], tool) : void 0;
|
|
571
|
-
if (proxied)
|
|
572
|
-
return proxied;
|
|
573
|
-
const client = clientFrom(meta?.[CLIENT_INFO_META_KEY]) ?? clientFrom(initialized);
|
|
574
|
-
const mcp = /* @__PURE__ */ __name((connection) => ({
|
|
575
|
-
tool,
|
|
576
|
-
...requestId === void 0 ? {} : { request_id: String(requestId) },
|
|
577
|
-
...connection ? { connection_id: connection } : {}
|
|
578
|
-
}), "mcp");
|
|
579
|
-
const auth = ctx?.http?.authInfo;
|
|
580
|
-
if (auth) {
|
|
581
|
-
const registered = plain(auth.extra?.clientName);
|
|
582
|
-
return {
|
|
583
|
-
via: "mcp-http",
|
|
584
|
-
agent: {
|
|
585
|
-
kind: "mcp-client",
|
|
586
|
-
session_id: ctx?.sessionId ?? null,
|
|
587
|
-
client: {
|
|
588
|
-
name: registered ?? client?.name ?? "unknown",
|
|
589
|
-
...client?.version ? { version: client.version } : {},
|
|
590
|
-
id: clientHash(auth.clientId)
|
|
591
|
-
}
|
|
592
|
-
},
|
|
593
|
-
mcp: mcp(ctx?.sessionId)
|
|
594
|
-
};
|
|
595
|
-
}
|
|
596
|
-
const agent = agentOf(source.env) ?? { kind: "mcp-client", session_id: null };
|
|
597
|
-
return { via: "mcp-stdio", agent: { ...agent, ...client ? { client } : {} }, mcp: mcp(source.connectionId) };
|
|
598
|
-
}, "callerOf");
|
|
599
|
-
var passedOn = /* @__PURE__ */ __name((value, tool) => {
|
|
600
|
-
if (!value || typeof value !== "object")
|
|
601
|
-
return void 0;
|
|
602
|
-
const { via, agent, mcp } = value;
|
|
603
|
-
if (via !== "mcp-stdio" && via !== "mcp-http")
|
|
604
|
-
return void 0;
|
|
605
|
-
const a = agent && typeof agent === "object" ? agent : void 0;
|
|
606
|
-
const kind = plain(a?.kind);
|
|
607
|
-
const session = typeof a?.session_id === "string" && /^[A-Za-z0-9._:-]{1,128}$/.test(a.session_id) ? a.session_id : null;
|
|
608
|
-
const client = clientFrom(a?.client);
|
|
609
|
-
const id = a?.client && typeof a.client === "object" ? a.client.id : void 0;
|
|
610
|
-
const m = mcp && typeof mcp === "object" ? mcp : {};
|
|
611
|
-
const request = plain(m.request_id);
|
|
612
|
-
const connection = typeof m.connection_id === "string" && /^[\w-]{1,128}$/.test(m.connection_id) ? m.connection_id : void 0;
|
|
613
|
-
return {
|
|
614
|
-
via,
|
|
615
|
-
...kind ? {
|
|
616
|
-
agent: {
|
|
617
|
-
kind,
|
|
618
|
-
session_id: session,
|
|
619
|
-
...a?.from_chat === true ? { from_chat: true } : {},
|
|
620
|
-
...client ? { client: { ...client, ...typeof id === "string" && /^[0-9a-f]{8}$/.test(id) ? { id } : {} } } : {}
|
|
621
|
-
}
|
|
622
|
-
} : {},
|
|
623
|
-
mcp: {
|
|
624
|
-
tool,
|
|
625
|
-
...request ? { request_id: request } : {},
|
|
626
|
-
...connection ? { connection_id: connection } : {},
|
|
627
|
-
proxied: true
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
|
-
}, "passedOn");
|
|
631
|
-
|
|
632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
633
539
|
import { PassThrough, Writable } from "node:stream";
|
|
634
540
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
635
541
|
let rest = "";
|
|
@@ -723,9 +629,5 @@ var answeredWire = /* @__PURE__ */ __name((source, sink) => {
|
|
|
723
629
|
export {
|
|
724
630
|
StdioServerTransport,
|
|
725
631
|
serveStdio,
|
|
726
|
-
callingAgent,
|
|
727
|
-
CALLER_META_KEY,
|
|
728
|
-
PROXY_CLIENT_NAME,
|
|
729
|
-
callerOf,
|
|
730
632
|
answeredWire
|
|
731
633
|
};
|