@wirecat/zoom-cli 0.62.0 → 0.64.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/README.md +3 -0
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-CGGNBINU.js → all-profiles-W2OVBZ7S.js} +8 -8
- package/dist/bundle/answer-policy-HOA43GNA.js +96 -0
- package/dist/bundle/{anthropic-KVWPIHFG.js → anthropic-P4BKQNBO.js} +4 -4
- package/dist/bundle/{app-server-NKKFBTQN.js → app-server-AYUW45ND.js} +50 -50
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-MNGPTYDQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-FWNCLOAR.js → bun-sqlite-PTPUSXAO.js} +3 -3
- package/dist/bundle/{chunk-ECXRRW7J.js → chunk-23LOMA2I.js} +30 -20
- package/dist/bundle/{chunk-YI6ZNDPC.js → chunk-24WCZURP.js} +2 -2
- package/dist/bundle/{chunk-Q4ZE2LXE.js → chunk-2UONVSJQ.js} +2 -2
- package/dist/bundle/{chunk-7LQLJ7LW.js → chunk-3AAO5N4L.js} +2 -2
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-3DGQJASQ.js} +1 -1
- package/dist/bundle/{chunk-7CNRZSAV.js → chunk-3IMEAZIM.js} +4 -4
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-4XVRA6P5.js} +1 -1
- package/dist/bundle/{chunk-MLNC5N7H.js → chunk-54UEJGYB.js} +3 -3
- package/dist/bundle/{chunk-4OTXE6CF.js → chunk-5BCNJB2A.js} +72 -57
- package/dist/bundle/{chunk-IK2OSV5C.js → chunk-5FN4Q5H5.js} +6 -6
- package/dist/bundle/{chunk-7AY3ADNV.js → chunk-5YLR24D5.js} +5 -5
- package/dist/bundle/{chunk-EJFSS65P.js → chunk-63MRRNDL.js} +6 -6
- package/dist/bundle/{chunk-SEH7DBAM.js → chunk-6NBQJJT6.js} +7 -7
- package/dist/bundle/{chunk-HIZQYFY3.js → chunk-7D56BQZL.js} +8 -2
- package/dist/bundle/{chunk-UD4FKICZ.js → chunk-7EOW47PV.js} +4 -4
- package/dist/bundle/{chunk-SB47UAW2.js → chunk-7NDSBTKR.js} +26 -26
- package/dist/bundle/{chunk-6R3GMSLR.js → chunk-7SWNZ44U.js} +2 -2
- package/dist/bundle/{chunk-IR73ZZY6.js → chunk-7VJIKJNW.js} +8 -8
- package/dist/bundle/{chunk-4OQVRDTG.js → chunk-A2FOW3ZC.js} +39 -20
- package/dist/bundle/{chunk-YFIUXE25.js → chunk-AAC6VNSL.js} +3 -3
- package/dist/bundle/{chunk-5NLFQ644.js → chunk-AF4HONAZ.js} +443 -370
- package/dist/bundle/{chunk-QLQ7VVLK.js → chunk-BMYZWBAX.js} +4 -4
- package/dist/bundle/{chunk-6URISMGR.js → chunk-BO5YVG3X.js} +26 -26
- package/dist/bundle/{chunk-IOUPXUFH.js → chunk-BWPKSUXW.js} +37 -37
- package/dist/bundle/{chunk-JDJDVYGS.js → chunk-C3RRIJ5C.js} +6 -6
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-COTC7HF3.js} +1 -1
- package/dist/bundle/{chunk-KMQUZ4YM.js → chunk-CZFV6XTW.js} +3 -3
- package/dist/bundle/{chunk-M6FCCVYZ.js → chunk-CZKV4USJ.js} +16 -3
- package/dist/bundle/{chunk-BPMKLWHV.js → chunk-EQYPTGCT.js} +4 -4
- package/dist/bundle/{chunk-YJN4XYNA.js → chunk-FSYO3PUW.js} +2 -2
- package/dist/bundle/{chunk-N3KQ7XND.js → chunk-H3DMYF3W.js} +2 -2
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-H5LLZ5XA.js} +1 -1
- package/dist/bundle/{chunk-NQCFUYC2.js → chunk-H65B6A7Y.js} +10 -9
- package/dist/bundle/{chunk-BNTAQADF.js → chunk-HIGFBTEI.js} +12 -3
- package/dist/bundle/{chunk-TZE6WXID.js → chunk-HQHUPTZR.js} +9744 -9580
- package/dist/bundle/{chunk-5MYLM6SU.js → chunk-HQHYPKSU.js} +89 -35
- package/dist/bundle/{chunk-MIUPH3WA.js → chunk-I5QX2HAT.js} +6 -6
- package/dist/bundle/{chunk-CXPHUOJR.js → chunk-IIGXCYEL.js} +26 -13
- package/dist/bundle/{chunk-3YBDRVOG.js → chunk-IIP4J3PD.js} +6 -6
- package/dist/bundle/{chunk-72S5TXFN.js → chunk-J25UNZIL.js} +9 -9
- package/dist/bundle/{chunk-XAXXEZZ5.js → chunk-JJZAGKUK.js} +2 -2
- package/dist/bundle/{chunk-TILW3EJY.js → chunk-JM43EKTY.js} +1258 -562
- package/dist/bundle/{chunk-BJPFWPKH.js → chunk-JMSKDW5G.js} +2 -2
- package/dist/bundle/{chunk-2T7MUSDB.js → chunk-JRPAZ2WD.js} +126 -96
- package/dist/bundle/{chunk-DIXC56OU.js → chunk-JRPYHDCO.js} +4 -4
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-JZKNHA44.js} +1 -1
- package/dist/bundle/{chunk-LXYC75D3.js → chunk-K6OSD6DG.js} +150 -134
- package/dist/bundle/{chunk-2DPMYUWQ.js → chunk-KJCCT3QY.js} +10 -10
- package/dist/bundle/{chunk-73BAQ7PH.js → chunk-L4JGVSBN.js} +24 -24
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-LEQCRVPD.js} +1 -1
- package/dist/bundle/{chunk-YF2PT5KA.js → chunk-OPP5CWAX.js} +35 -34
- package/dist/bundle/{chunk-4UUQEQ5D.js → chunk-OWXMQVVN.js} +1 -1
- package/dist/bundle/{chunk-JYVFFUIX.js → chunk-PBJY5VR6.js} +1 -1
- package/dist/bundle/{chunk-M7YNOK4D.js → chunk-Q3EDUZ5R.js} +10 -10
- package/dist/bundle/{chunk-QUWMFBMS.js → chunk-QK54GOGE.js} +49 -9
- package/dist/bundle/{chunk-6SK5SHCR.js → chunk-R4NTPYXZ.js} +2 -2
- package/dist/bundle/{chunk-GOESXUJQ.js → chunk-RJLNVHIU.js} +3 -3
- package/dist/bundle/{chunk-EG7HC4EC.js → chunk-RK3JBC4U.js} +2 -2
- package/dist/bundle/{chunk-D6FTCPXA.js → chunk-SJIBJQJN.js} +10 -9
- package/dist/bundle/{chunk-2NAM2XQG.js → chunk-SMT6SFBK.js} +2 -2
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-TJH5IQVZ.js} +1 -1
- package/dist/bundle/{chunk-SPJJCD2A.js → chunk-TJODNJKE.js} +13 -13
- package/dist/bundle/{chunk-RWG44LQD.js → chunk-TYKZCJD7.js} +4 -4
- package/dist/bundle/{chunk-IOCS5FXW.js → chunk-UABUBDYB.js} +2 -2
- package/dist/bundle/{chunk-FAOLCUKV.js → chunk-UCPL55YP.js} +17 -17
- package/dist/bundle/{chunk-6SPWQCJF.js → chunk-UFI5SX3F.js} +11 -11
- package/dist/bundle/{chunk-5LMQTEU5.js → chunk-UNO4G5NX.js} +5 -5
- package/dist/bundle/{chunk-URJZK4GX.js → chunk-WFIJOFS5.js} +1 -1
- package/dist/bundle/{chunk-MI3JK6MW.js → chunk-X6M5DK66.js} +10 -10
- package/dist/bundle/{chunk-YBMOFCY5.js → chunk-XZSQLVED.js} +2 -2
- package/dist/bundle/{chunk-M2WQWF3I.js → chunk-Y7TWNMTW.js} +48 -48
- package/dist/bundle/{chunk-AMIIU3UZ.js → chunk-YNYMWXXH.js} +4 -4
- package/dist/bundle/{chunk-VFJ3MOIR.js → chunk-ZW4N73FO.js} +3 -3
- package/dist/bundle/{cli-AHPIESAC.js → cli-Y2ZO3D5U.js} +73 -55
- package/dist/bundle/command-contract-DGTZIH2F.js +38 -0
- package/dist/bundle/config-N2UHDKGG.js +78 -0
- package/dist/bundle/{decode-ZU7WLMMV.js → decode-GO6GAYH2.js} +3 -3
- package/dist/bundle/{dist-LTS7VI3S.js → dist-MIJKAGXW.js} +14 -14
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-NWK7LALR.js} +2 -2
- package/dist/bundle/{embed-VWWOW7PP.js → embed-2DOSN4DV.js} +4 -4
- package/dist/bundle/{embedder-T5GJC7M2.js → embedder-3Q3C2WKC.js} +7 -7
- package/dist/bundle/{first-run-PX3SHPUU.js → first-run-S75VKIT3.js} +8 -8
- package/dist/bundle/first-screen-DQNRT6GH.js +36 -0
- package/dist/bundle/{folders-VXMDFC2D.js → folders-RSWEBHDZ.js} +2 -2
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-M3FZPQVI.js} +1 -1
- package/dist/bundle/{main-IYCD6MBH.js → main-R77BPRRS.js} +16 -16
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-YJEQYYTR.js} +2 -2
- package/dist/bundle/{meetings-GHYNIOHG.js → meetings-IV4Y4WRH.js} +4 -4
- package/dist/bundle/{node-GFOH6FKP.js → node-I3GEHYGL.js} +2 -2
- package/dist/bundle/{node-sqlite-QXKSPHTP.js → node-sqlite-W6MR2TVQ.js} +3 -3
- package/dist/bundle/{oauth-A6I2OMDD.js → oauth-M6YL4QXP.js} +5 -5
- package/dist/bundle/{open-TQKCU447.js → open-2VITLJAN.js} +2 -2
- package/dist/bundle/{openai-XE3BJXOI.js → openai-OG6B3JCU.js} +9 -9
- package/dist/bundle/{output-file-FQNFCUKE.js → output-file-XJJ3XMLQ.js} +3 -3
- package/dist/bundle/{process-XVDX4SPD.js → process-UBA4L4B2.js} +1 -1
- package/dist/bundle/{program-UYK4AD2W.js → program-5R5MRXUM.js} +70 -69
- package/dist/bundle/{prompt-ISYG5RWM.js → prompt-AVIXIM7Z.js} +3 -3
- package/dist/bundle/{recognize-KENPECLZ.js → recognize-DJKTJOYU.js} +2 -2
- package/dist/bundle/{remote-ZP5XTDCC.js → remote-S3DTNYRP.js} +5 -5
- package/dist/bundle/{rerank-SG653RHT.js → rerank-FMCDP6VF.js} +5 -5
- package/dist/bundle/{run-log-HYKGQ42E.js → run-log-T4MV2VEH.js} +53 -53
- package/dist/bundle/{serve-6UJCZD7Z.js → serve-5SGFJFMC.js} +7 -7
- package/dist/bundle/server-EYGZLKKQ.js +66 -0
- package/dist/bundle/{server-ZAYEDPFR.js → server-PCMCY7WK.js} +42 -42
- package/dist/bundle/{services-KMH7XZPY.js → services-SKRQ2POT.js} +27 -27
- package/dist/bundle/{speech-LINBLG5E.js → speech-FSDICIKO.js} +11 -11
- package/dist/bundle/{state-4RKZNHE7.js → state-KPUSPWO6.js} +4 -4
- package/dist/bundle/{store-253N7NUC.js → store-7MP2ZGQ7.js} +34 -16
- package/dist/bundle/{store-JTBHRQZK.js → store-W7LFPKG2.js} +15 -13
- package/dist/bundle/store-connection-3HNZFJC4.js +76 -0
- package/dist/bundle/store-maintenance-command-6WBLTUZP.js +55 -0
- package/dist/bundle/{streaming-YW64OKKQ.js → streaming-Q44ESD3E.js} +4 -4
- package/dist/bundle/{tokens-DPBC2P3I.js → tokens-TAFCHANI.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +1 -0
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-D46SGQ35.js +0 -96
- package/dist/bundle/command-contract-HVLI3OKU.js +0 -38
- package/dist/bundle/config-UW6W34I2.js +0 -78
- package/dist/bundle/first-screen-RAPEZG57.js +0 -36
- package/dist/bundle/server-AXE37E6Q.js +0 -66
- package/dist/bundle/store-connection-PWLUMCP7.js +0 -76
- package/dist/bundle/store-maintenance-command-XRNECVDU.js +0 -55
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-WJWLHLQ7.js} +0 -0
package/README.md
CHANGED
|
@@ -360,6 +360,9 @@ Start with Zoom. Add more context when you need it. Your context. Any agent.
|
|
|
360
360
|
|
|
361
361
|
More: [wirecat.dev](https://wirecat.dev) · [connect your AI agent][wirecat/en/docs/agents]
|
|
362
362
|
|
|
363
|
+
Questions and setup help: join the [WireCat Discord](https://discord.gg/DebENqbRrJ). Bugs go to this
|
|
364
|
+
repository's issues.
|
|
365
|
+
|
|
363
366
|
## Technical docs
|
|
364
367
|
|
|
365
368
|
| Page | What it covers |
|
package/dist/bin/zm.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.64.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -29,7 +29,7 @@ if (
|
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
31
|
const running = import("../bundle/zm.js")
|
|
32
|
-
const chunks = ["../bundle/all-profiles-
|
|
32
|
+
const chunks = ["../bundle/all-profiles-W2OVBZ7S.js","../bundle/answer-policy-HOA43GNA.js","../bundle/anthropic-P4BKQNBO.js","../bundle/app-server-AYUW45ND.js","../bundle/bun-MNGPTYDQ.js","../bundle/bun-sqlite-PTPUSXAO.js","../bundle/cli-Y2ZO3D5U.js","../bundle/command-contract-DGTZIH2F.js","../bundle/config-N2UHDKGG.js","../bundle/decode-GO6GAYH2.js","../bundle/dist-MIJKAGXW.js","../bundle/dist-XUFQCJXW.js","../bundle/echarts-NWK7LALR.js","../bundle/embed-2DOSN4DV.js","../bundle/embedder-3Q3C2WKC.js","../bundle/first-run-S75VKIT3.js","../bundle/first-screen-DQNRT6GH.js","../bundle/folders-RSWEBHDZ.js","../bundle/instructions-M3FZPQVI.js","../bundle/main-R77BPRRS.js","../bundle/mcp-YJEQYYTR.js","../bundle/meetings-IV4Y4WRH.js","../bundle/node-I3GEHYGL.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-W6MR2TVQ.js","../bundle/oauth-M6YL4QXP.js","../bundle/open-2VITLJAN.js","../bundle/openai-OG6B3JCU.js","../bundle/output-file-XJJ3XMLQ.js","../bundle/process-UBA4L4B2.js","../bundle/program-5R5MRXUM.js","../bundle/prompt-AVIXIM7Z.js","../bundle/recognize-DJKTJOYU.js","../bundle/remote-S3DTNYRP.js","../bundle/rerank-FMCDP6VF.js","../bundle/run-log-T4MV2VEH.js","../bundle/serve-5SGFJFMC.js","../bundle/server-EYGZLKKQ.js","../bundle/server-PCMCY7WK.js","../bundle/services-SKRQ2POT.js","../bundle/speech-FSDICIKO.js","../bundle/state-KPUSPWO6.js","../bundle/store-7MP2ZGQ7.js","../bundle/store-W7LFPKG2.js","../bundle/store-connection-3HNZFJC4.js","../bundle/store-maintenance-command-6WBLTUZP.js","../bundle/streaming-Q44ESD3E.js","../bundle/tokens-TAFCHANI.js"]
|
|
33
33
|
// After the server answers its first request, so it starts no later.
|
|
34
34
|
if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
|
|
35
35
|
await running
|
|
@@ -2,27 +2,27 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H5LLZ5XA.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
StdioServerTransport,
|
|
10
10
|
callerOf,
|
|
11
11
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HIGFBTEI.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-H65B6A7Y.js";
|
|
17
|
+
import "./chunk-3AAO5N4L.js";
|
|
18
|
+
import "./chunk-WJWLHLQ7.js";
|
|
19
|
+
import "./chunk-7NDSBTKR.js";
|
|
20
20
|
import "./chunk-Y5E2WNWB.js";
|
|
21
21
|
import {
|
|
22
22
|
__name
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
26
26
|
import { spawn } from "node:child_process";
|
|
27
27
|
import { randomUUID } from "node:crypto";
|
|
28
28
|
var PROTOCOL = "2025-06-18";
|
|
@@ -256,7 +256,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
256
256
|
}, "serveAllProfilesOverStdio");
|
|
257
257
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
258
258
|
const { build, close } = allProfilesServer(options);
|
|
259
|
-
const { serveOverHttp } = await import("./serve-
|
|
259
|
+
const { serveOverHttp } = await import("./serve-5SGFJFMC.js");
|
|
260
260
|
const listening = await serveOverHttp(build, {
|
|
261
261
|
...http,
|
|
262
262
|
appName: options.command,
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
VERSION
|
|
5
|
+
} from "./chunk-PBJY5VR6.js";
|
|
6
|
+
import "./chunk-HQHUPTZR.js";
|
|
7
|
+
import "./chunk-KJCCT3QY.js";
|
|
8
|
+
import "./chunk-TJH5IQVZ.js";
|
|
9
|
+
import "./chunk-LEQCRVPD.js";
|
|
10
|
+
import "./chunk-K6OSD6DG.js";
|
|
11
|
+
import "./chunk-TJODNJKE.js";
|
|
12
|
+
import "./chunk-7EOW47PV.js";
|
|
13
|
+
import "./chunk-Y7TWNMTW.js";
|
|
14
|
+
import "./chunk-BO5YVG3X.js";
|
|
15
|
+
import "./chunk-23LOMA2I.js";
|
|
16
|
+
import "./chunk-RJLNVHIU.js";
|
|
17
|
+
import "./chunk-AF4HONAZ.js";
|
|
18
|
+
import "./chunk-IIGXCYEL.js";
|
|
19
|
+
import "./chunk-UCPL55YP.js";
|
|
20
|
+
import "./chunk-6NBQJJT6.js";
|
|
21
|
+
import "./chunk-C3RRIJ5C.js";
|
|
22
|
+
import "./chunk-JRPAZ2WD.js";
|
|
23
|
+
import {
|
|
24
|
+
judgedEffects,
|
|
25
|
+
judgedTargets
|
|
26
|
+
} from "./chunk-BWPKSUXW.js";
|
|
27
|
+
import "./chunk-2UONVSJQ.js";
|
|
28
|
+
import "./chunk-JZKNHA44.js";
|
|
29
|
+
import "./chunk-H65B6A7Y.js";
|
|
30
|
+
import "./chunk-A2FOW3ZC.js";
|
|
31
|
+
import "./chunk-3AAO5N4L.js";
|
|
32
|
+
import "./chunk-TYKZCJD7.js";
|
|
33
|
+
import "./chunk-UFI5SX3F.js";
|
|
34
|
+
import "./chunk-3IMEAZIM.js";
|
|
35
|
+
import "./chunk-COTC7HF3.js";
|
|
36
|
+
import "./chunk-JRPYHDCO.js";
|
|
37
|
+
import "./chunk-J25UNZIL.js";
|
|
38
|
+
import {
|
|
39
|
+
failureContext
|
|
40
|
+
} from "./chunk-CZKV4USJ.js";
|
|
41
|
+
import "./chunk-FSYO3PUW.js";
|
|
42
|
+
import "./chunk-IIP4J3PD.js";
|
|
43
|
+
import "./chunk-HTQTIKWP.js";
|
|
44
|
+
import "./chunk-YNYMWXXH.js";
|
|
45
|
+
import "./chunk-7D56BQZL.js";
|
|
46
|
+
import "./chunk-54UEJGYB.js";
|
|
47
|
+
import "./chunk-R4NTPYXZ.js";
|
|
48
|
+
import "./chunk-JJZAGKUK.js";
|
|
49
|
+
import "./chunk-SMT6SFBK.js";
|
|
50
|
+
import "./chunk-CZFV6XTW.js";
|
|
51
|
+
import "./chunk-63MRRNDL.js";
|
|
52
|
+
import "./chunk-EQYPTGCT.js";
|
|
53
|
+
import "./chunk-JM43EKTY.js";
|
|
54
|
+
import "./chunk-QK54GOGE.js";
|
|
55
|
+
import "./chunk-7VJIKJNW.js";
|
|
56
|
+
import "./chunk-UNO4G5NX.js";
|
|
57
|
+
import "./chunk-I5QX2HAT.js";
|
|
58
|
+
import "./chunk-XZSQLVED.js";
|
|
59
|
+
import "./chunk-RK3JBC4U.js";
|
|
60
|
+
import "./chunk-5FN4Q5H5.js";
|
|
61
|
+
import "./chunk-5BCNJB2A.js";
|
|
62
|
+
import "./chunk-SJIBJQJN.js";
|
|
63
|
+
import "./chunk-WJWLHLQ7.js";
|
|
64
|
+
import {
|
|
65
|
+
errorObjectOf,
|
|
66
|
+
errorRecordOf,
|
|
67
|
+
exitCodeOfError,
|
|
68
|
+
renderError
|
|
69
|
+
} from "./chunk-7NDSBTKR.js";
|
|
70
|
+
import "./chunk-Y5E2WNWB.js";
|
|
71
|
+
import "./chunk-4XVRA6P5.js";
|
|
72
|
+
import {
|
|
73
|
+
__name
|
|
74
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
75
|
+
|
|
76
|
+
// dist/answer-policy.js
|
|
77
|
+
var hostFailureContext = /* @__PURE__ */ __name((registry, effects) => ({
|
|
78
|
+
...failureContext(),
|
|
79
|
+
...effects ? { effects: judgedEffects(effects) } : {},
|
|
80
|
+
...registry ? { targets: judgedTargets(registry) } : {}
|
|
81
|
+
}), "hostFailureContext");
|
|
82
|
+
var reportFailure = /* @__PURE__ */ __name((failure, args, deps, command = "zm", context = hostFailureContext()) => {
|
|
83
|
+
const end = args.indexOf("--");
|
|
84
|
+
const flags = args.slice(0, end < 0 ? void 0 : end);
|
|
85
|
+
const machine = flags.some((word) => word === "--json" || word === "--jsonl");
|
|
86
|
+
const object = errorObjectOf(failure, context);
|
|
87
|
+
const record = flags.includes("--debug") ? errorRecordOf(failure, object, { command, service: "zm", version: VERSION }) : void 0;
|
|
88
|
+
const interactive = deps.outputIsTTY === true && !machine;
|
|
89
|
+
deps.diagnostic(`${renderError(object, { cli: "zm", interactive, ...record ? { record } : {} })}
|
|
90
|
+
`);
|
|
91
|
+
return exitCodeOfError(object);
|
|
92
|
+
}, "reportFailure");
|
|
93
|
+
export {
|
|
94
|
+
hostFailureContext,
|
|
95
|
+
reportFailure
|
|
96
|
+
};
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
checkedOptions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JJZAGKUK.js";
|
|
6
6
|
import {
|
|
7
7
|
messagesFor,
|
|
8
8
|
systemFor
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SMT6SFBK.js";
|
|
10
10
|
import {
|
|
11
11
|
Anthropic
|
|
12
12
|
} from "./chunk-ADLS6FVG.js";
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
optional,
|
|
16
16
|
strictObject,
|
|
17
17
|
string
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7NDSBTKR.js";
|
|
19
19
|
import "./chunk-Y5E2WNWB.js";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
25
25
|
var options = strictObject({
|
|
26
26
|
stop_sequences: optional(array(string()))
|
|
27
27
|
});
|
|
@@ -3,45 +3,45 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OPP5CWAX.js";
|
|
7
7
|
import {
|
|
8
8
|
answered,
|
|
9
9
|
failed,
|
|
10
10
|
registerCommands,
|
|
11
11
|
runCommandForAgent,
|
|
12
12
|
toolsFromCommands
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HQHYPKSU.js";
|
|
14
14
|
import {
|
|
15
15
|
mcpUrlOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-K6OSD6DG.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TJODNJKE.js";
|
|
21
21
|
import {
|
|
22
22
|
appInstructions
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3DGQJASQ.js";
|
|
24
24
|
import {
|
|
25
25
|
mcpHttpMarker
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7EOW47PV.js";
|
|
27
27
|
import {
|
|
28
28
|
answeredWire
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-H5LLZ5XA.js";
|
|
30
30
|
import {
|
|
31
31
|
StdioServerTransport,
|
|
32
32
|
serveStdio
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HIGFBTEI.js";
|
|
34
34
|
import {
|
|
35
35
|
McpServer
|
|
36
36
|
} from "./chunk-5D4AEUVA.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-BO5YVG3X.js";
|
|
38
|
+
import "./chunk-23LOMA2I.js";
|
|
39
|
+
import "./chunk-RJLNVHIU.js";
|
|
40
|
+
import "./chunk-AF4HONAZ.js";
|
|
41
|
+
import "./chunk-IIGXCYEL.js";
|
|
42
|
+
import "./chunk-UCPL55YP.js";
|
|
43
|
+
import "./chunk-C3RRIJ5C.js";
|
|
44
|
+
import "./chunk-JRPAZ2WD.js";
|
|
45
45
|
import {
|
|
46
46
|
DEFAULT_OUTPUT_BYTES,
|
|
47
47
|
changesAuthorityAt,
|
|
@@ -50,49 +50,49 @@ import {
|
|
|
50
50
|
fetchesOnlyAt,
|
|
51
51
|
judgedTargets,
|
|
52
52
|
rootOf2 as rootOf
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-BWPKSUXW.js";
|
|
54
54
|
import {
|
|
55
55
|
readOnlyLockOf
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-2UONVSJQ.js";
|
|
57
|
+
import "./chunk-JZKNHA44.js";
|
|
58
|
+
import "./chunk-H65B6A7Y.js";
|
|
59
|
+
import "./chunk-A2FOW3ZC.js";
|
|
60
|
+
import "./chunk-3AAO5N4L.js";
|
|
61
|
+
import "./chunk-TYKZCJD7.js";
|
|
62
|
+
import "./chunk-3IMEAZIM.js";
|
|
63
|
+
import "./chunk-COTC7HF3.js";
|
|
64
|
+
import "./chunk-JRPYHDCO.js";
|
|
65
|
+
import "./chunk-CZKV4USJ.js";
|
|
66
|
+
import "./chunk-IIP4J3PD.js";
|
|
67
|
+
import "./chunk-YNYMWXXH.js";
|
|
68
|
+
import "./chunk-7D56BQZL.js";
|
|
69
|
+
import "./chunk-R4NTPYXZ.js";
|
|
70
|
+
import "./chunk-SMT6SFBK.js";
|
|
71
|
+
import "./chunk-CZFV6XTW.js";
|
|
72
|
+
import "./chunk-63MRRNDL.js";
|
|
73
|
+
import "./chunk-EQYPTGCT.js";
|
|
74
|
+
import "./chunk-JM43EKTY.js";
|
|
75
|
+
import "./chunk-QK54GOGE.js";
|
|
76
|
+
import "./chunk-7VJIKJNW.js";
|
|
77
|
+
import "./chunk-UNO4G5NX.js";
|
|
78
|
+
import "./chunk-I5QX2HAT.js";
|
|
79
|
+
import "./chunk-XZSQLVED.js";
|
|
80
|
+
import "./chunk-RK3JBC4U.js";
|
|
81
|
+
import "./chunk-5FN4Q5H5.js";
|
|
82
|
+
import "./chunk-5BCNJB2A.js";
|
|
83
|
+
import "./chunk-SJIBJQJN.js";
|
|
84
|
+
import "./chunk-WJWLHLQ7.js";
|
|
85
85
|
import {
|
|
86
86
|
CliError,
|
|
87
87
|
mcpErrorResult
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-7NDSBTKR.js";
|
|
89
89
|
import "./chunk-Y5E2WNWB.js";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-4XVRA6P5.js";
|
|
91
91
|
import {
|
|
92
92
|
__name
|
|
93
93
|
} from "./chunk-ZVVMGPBJ.js";
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
96
96
|
var EXCLUDED = [["mcp"]];
|
|
97
97
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
98
98
|
const { app } = options;
|
|
@@ -207,7 +207,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
207
207
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
208
208
|
const { app } = options;
|
|
209
209
|
const { build } = createAppServer(command, context, options);
|
|
210
|
-
const { serveOverHttp } = await import("./serve-
|
|
210
|
+
const { serveOverHttp } = await import("./serve-5SGFJFMC.js");
|
|
211
211
|
const listening = await serveOverHttp(build, {
|
|
212
212
|
...http,
|
|
213
213
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4XVRA6P5.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,8 +3,8 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-7SWNZ44U.js";
|
|
7
|
+
import "./chunk-7NDSBTKR.js";
|
|
8
8
|
import {
|
|
9
9
|
importFrom
|
|
10
10
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -12,7 +12,7 @@ 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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
16
16
|
var customised = false;
|
|
17
17
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
18
18
|
try {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE,
|
|
5
5
|
throughWrapper
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AF4HONAZ.js";
|
|
7
7
|
import {
|
|
8
8
|
Command,
|
|
9
9
|
InvalidArgumentError,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
renderAnswer,
|
|
17
17
|
sharedCommand,
|
|
18
18
|
snakeKeys
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BWPKSUXW.js";
|
|
20
20
|
import {
|
|
21
21
|
readOnlyLockOf
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2UONVSJQ.js";
|
|
23
23
|
import {
|
|
24
24
|
formatReference
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-I5QX2HAT.js";
|
|
26
26
|
import {
|
|
27
27
|
EVENT_QUERY,
|
|
28
28
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
readMeetingProjectEvidence,
|
|
46
46
|
validateMeetingHitSearch,
|
|
47
47
|
validateMeetingPassage
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-5BCNJB2A.js";
|
|
49
49
|
import {
|
|
50
50
|
OPERATORS_BY_TYPE,
|
|
51
51
|
QUERY_LIMITS,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
timezoneOf,
|
|
60
60
|
validateQuery,
|
|
61
61
|
zonedMoment
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-SJIBJQJN.js";
|
|
63
63
|
import {
|
|
64
64
|
CliError,
|
|
65
65
|
array,
|
|
@@ -73,12 +73,12 @@ import {
|
|
|
73
73
|
safeParse,
|
|
74
74
|
strictObject,
|
|
75
75
|
string
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-7NDSBTKR.js";
|
|
77
77
|
import {
|
|
78
78
|
__name
|
|
79
79
|
} from "./chunk-ZVVMGPBJ.js";
|
|
80
80
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
82
82
|
var COMMAND_NEEDS = {
|
|
83
83
|
"account update": ["updateProfile", "change the profile"],
|
|
84
84
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -128,7 +128,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
128
128
|
return group;
|
|
129
129
|
}, "hideNever");
|
|
130
130
|
|
|
131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
132
132
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
133
133
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
134
134
|
const zone = timezoneOf();
|
|
@@ -214,7 +214,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
214
214
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
215
215
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
216
216
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
218
218
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
219
219
|
command.allowUnknownOption();
|
|
220
220
|
const parse = command.parseOptions.bind(command);
|
|
@@ -234,7 +234,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
234
234
|
return command;
|
|
235
235
|
}, "queryWordsAfterOptions");
|
|
236
236
|
|
|
237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
238
238
|
var count = /* @__PURE__ */ __name((value) => {
|
|
239
239
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
240
240
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -276,7 +276,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
276
276
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
277
277
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
278
278
|
|
|
279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
280
280
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
281
281
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
282
282
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -299,7 +299,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
299
299
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
300
300
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
301
301
|
|
|
302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
303
303
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
304
304
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
305
305
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -419,7 +419,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
419
419
|
}, "addMeetingCommandsDefinition");
|
|
420
420
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
421
421
|
|
|
422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
423
423
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
424
424
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
425
425
|
const query = defineQuery(registry);
|
|
@@ -442,9 +442,19 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
442
442
|
words.unshift(at.name());
|
|
443
443
|
return words.join(" ");
|
|
444
444
|
}, "commandPath");
|
|
445
|
-
var
|
|
445
|
+
var withTomorrow = /* @__PURE__ */ __name((query, registry, zone = timezoneOf(), now = Date.now()) => {
|
|
446
|
+
const times = new Set(registry.fields.filter(({ type }) => type === "time").map(({ name }) => name));
|
|
447
|
+
const date2 = /* @__PURE__ */ new Date(`${new Intl.DateTimeFormat("en-CA", { timeZone: zone }).format(now)}T00:00:00Z`);
|
|
448
|
+
date2.setUTCDate(date2.getUTCDate() + 1);
|
|
449
|
+
const tomorrow = date2.toISOString().slice(0, 10);
|
|
450
|
+
const day = /* @__PURE__ */ __name((value) => value.toLowerCase() === "tomorrow" ? tomorrow : value, "day");
|
|
451
|
+
const map = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? times.has(node.field) ? { ...node, value: day(node.value), ...node.upper === void 0 ? {} : { upper: day(node.upper) } } : node : { ...node, clauses: node.clauses.map((clause) => ({ ...clause, node: map(clause.node) })) }, "map");
|
|
452
|
+
return { ...query, root: map(query.root) };
|
|
453
|
+
}, "withTomorrow");
|
|
454
|
+
var listQuery = /* @__PURE__ */ __name((text, registry, command, { defaultField = "none" } = {}) => {
|
|
446
455
|
const context = { command, guide: LIST_QUERY_GUIDE };
|
|
447
|
-
const
|
|
456
|
+
const parsed = text.trim() === "" ? void 0 : parseLucene(text, { defaultField, ...context });
|
|
457
|
+
const typed = parsed && withTomorrow(parsed, registry);
|
|
448
458
|
if (typed)
|
|
449
459
|
validateQuery(typed, registry, context);
|
|
450
460
|
const named = typed ? fieldsNamed(typed) : /* @__PURE__ */ new Set();
|
|
@@ -545,7 +555,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
545
555
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
546
556
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
547
557
|
|
|
548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
549
559
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
550
560
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
551
561
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -554,7 +564,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
554
564
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
555
565
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
556
566
|
|
|
557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
558
568
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
559
569
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
560
570
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -816,7 +826,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
816
826
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
817
827
|
}), "sessionAnswer");
|
|
818
828
|
|
|
819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
820
830
|
import { createHash } from "node:crypto";
|
|
821
831
|
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
822
832
|
import { createConnection, createServer } from "node:net";
|
|
@@ -1037,7 +1047,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
1037
1047
|
}, () => finish({ error: stopped() }));
|
|
1038
1048
|
}), "relayCommand");
|
|
1039
1049
|
|
|
1040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
1041
1051
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
1042
1052
|
close: /* @__PURE__ */ __name(async () => {
|
|
1043
1053
|
}, "close"),
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
checkCancelled,
|
|
5
5
|
object
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UABUBDYB.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
Credentials,
|
|
10
10
|
isCliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7NDSBTKR.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -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-7NDSBTKR.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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
errorCodes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7NDSBTKR.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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
11
11
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
12
12
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
13
13
|
const { code, exitCode } = value ?? {};
|
|
@@ -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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|