@wirecat/zoom-cli 0.57.0 → 0.58.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/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-EKHWTGOY.js → all-profiles-RS5IWIGR.js} +7 -7
- package/dist/bundle/answer-policy-R7VZMCGE.js +96 -0
- package/dist/bundle/{anthropic-VL54IUGF.js → anthropic-5QHQR4WF.js} +4 -4
- package/dist/bundle/app-server-7LANSZGE.js +232 -0
- package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-2SDA3YOT.js → bun-sqlite-PEJM6CS4.js} +3 -3
- package/dist/bundle/{chunk-SQJ7EH2D.js → chunk-24DLFGES.js} +2 -2
- package/dist/bundle/{chunk-SB6WOSHG.js → chunk-27P22POE.js} +24 -24
- package/dist/bundle/{chunk-BW52AJ4R.js → chunk-3SCTDFNO.js} +38 -27
- package/dist/bundle/{chunk-ICSKEDPI.js → chunk-3SERIWJD.js} +220 -220
- package/dist/bundle/{chunk-S4S7E54J.js → chunk-4AURKUDZ.js} +4 -4
- package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
- package/dist/bundle/{server-WLJCU7KK.js → chunk-5DVW77VC.js} +37 -60
- package/dist/bundle/{chunk-2IKY7VBH.js → chunk-6CYLVFXM.js} +1 -1
- package/dist/bundle/{chunk-NW3X3G5X.js → chunk-6FL25KC5.js} +4 -4
- package/dist/bundle/{chunk-TLQUKHEM.js → chunk-7D2CD3E3.js} +5 -5
- package/dist/bundle/{chunk-6MX5T6AQ.js → chunk-7GVNQOV6.js} +1 -1
- package/dist/bundle/{chunk-VPPYYWOH.js → chunk-7H3ZRDLW.js} +2 -2
- package/dist/bundle/{chunk-EOQFWJJD.js → chunk-7Z4ANTAK.js} +20 -20
- package/dist/bundle/{chunk-NO7CJEYV.js → chunk-A6323R5P.js} +2 -2
- package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
- package/dist/bundle/{chunk-R3HPOCZD.js → chunk-AQDWGJZT.js} +2 -2
- package/dist/bundle/{chunk-CB5UTASG.js → chunk-B32SF7J3.js} +2 -2
- package/dist/bundle/{chunk-GKMGS7G5.js → chunk-BAQLQIMI.js} +26 -26
- package/dist/bundle/{chunk-NN5B24KP.js → chunk-BGILD4CI.js} +27 -27
- package/dist/bundle/{chunk-I4VQDXFR.js → chunk-BXZ6WSVF.js} +4 -4
- package/dist/bundle/{chunk-6M6FJV5D.js → chunk-CTGI4ES2.js} +6 -6
- package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
- package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
- package/dist/bundle/{chunk-OIHDCGV4.js → chunk-DP5DX45H.js} +3 -3
- package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
- package/dist/bundle/{chunk-YB4DMKYX.js → chunk-DXZTLB24.js} +5 -4
- package/dist/bundle/{chunk-HCNMFFG3.js → chunk-G27MRA24.js} +2 -2
- package/dist/bundle/{chunk-2WOGZDZG.js → chunk-IYAGQXED.js} +10 -8
- package/dist/bundle/{chunk-LQ3T2ZIX.js → chunk-K76WFW4I.js} +4 -4
- package/dist/bundle/{chunk-7GUG6UZS.js → chunk-KVHRHBLY.js} +5 -5
- package/dist/bundle/{chunk-SE75DPBY.js → chunk-L2UIJDWB.js} +2 -2
- package/dist/bundle/{chunk-RMV4C2YL.js → chunk-L3VS3H34.js} +6 -6
- package/dist/bundle/{chunk-HG5KRV55.js → chunk-MBT7GP7K.js} +9 -9
- package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
- package/dist/bundle/{chunk-4YLS4YLS.js → chunk-MMT46EN4.js} +2 -2
- package/dist/bundle/{chunk-MAEFLDHG.js → chunk-MNUTWGSA.js} +39 -37
- package/dist/bundle/{chunk-HKYLSIZ2.js → chunk-N7GAQ27N.js} +3 -3
- package/dist/bundle/{chunk-GARCOIB6.js → chunk-NDXAZB5Z.js} +6 -6
- package/dist/bundle/{chunk-CLMXBW53.js → chunk-NOKFJJPA.js} +6 -6
- package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
- package/dist/bundle/{chunk-K72SEMYI.js → chunk-OBZWUNO4.js} +9 -9
- package/dist/bundle/{chunk-WQ24UC44.js → chunk-PACC5N6T.js} +4 -3
- package/dist/bundle/{chunk-TKCHUT2H.js → chunk-PF25S7L4.js} +2 -2
- package/dist/bundle/{chunk-O66V2WHK.js → chunk-PKTFZAXG.js} +2 -2
- package/dist/bundle/{chunk-WJHK5D7Z.js → chunk-PNBEREOU.js} +258 -244
- package/dist/bundle/{chunk-6P3YHT54.js → chunk-POOGFSRA.js} +4 -4
- package/dist/bundle/{chunk-LXB6ONWC.js → chunk-PP3JGQQE.js} +51 -51
- package/dist/bundle/{chunk-MZH4GDR4.js → chunk-QCFHL4ES.js} +2 -2
- package/dist/bundle/{chunk-7JZJMHQY.js → chunk-QFGBMS67.js} +12 -7
- package/dist/bundle/{chunk-7A6PZUDR.js → chunk-RUP467ZX.js} +22 -12
- package/dist/bundle/{chunk-BW2WPOXP.js → chunk-RXDIG23Z.js} +6 -6
- package/dist/bundle/{chunk-OVSWVPXL.js → chunk-SIA7HJE2.js} +49 -47
- package/dist/bundle/{chunk-TZ2MKETI.js → chunk-SL3SXQZ5.js} +6 -6
- package/dist/bundle/{chunk-LHRCJYFC.js → chunk-SV5L36WK.js} +1 -1
- package/dist/bundle/{chunk-RRRBMQ2E.js → chunk-T6AAM7UT.js} +19 -17
- package/dist/bundle/{chunk-NTDWAAGL.js → chunk-U6QW67SU.js} +797 -559
- package/dist/bundle/{chunk-Z4TZ6TAF.js → chunk-UKR7KH3H.js} +2 -2
- package/dist/bundle/{chunk-LSVI3A5X.js → chunk-UOFOMU3T.js} +9 -9
- package/dist/bundle/{chunk-G4R4ZIGD.js → chunk-URO44C5T.js} +95 -94
- package/dist/bundle/{chunk-5F7IOESV.js → chunk-UXM7I35J.js} +4 -4
- package/dist/bundle/{chunk-4R7HYNZS.js → chunk-UYJUTZTT.js} +3 -3
- package/dist/bundle/{chunk-QLIB3PEC.js → chunk-VOAVOK4I.js} +18 -18
- package/dist/bundle/{chunk-LPTIQLDW.js → chunk-VSUY7PDW.js} +2 -2
- package/dist/bundle/{chunk-A4ETXPMZ.js → chunk-VYUSEJE4.js} +2 -2
- package/dist/bundle/{chunk-OCGPZHXW.js → chunk-XFCSPOLZ.js} +2 -2
- package/dist/bundle/{chunk-4VCA7QU3.js → chunk-XT7XVPEM.js} +13 -13
- package/dist/bundle/{chunk-QTR6D5HT.js → chunk-YIFIY7ZE.js} +2 -2
- package/dist/bundle/{chunk-AE4BOXH7.js → chunk-YIMI6O7R.js} +25 -25
- package/dist/bundle/{chunk-UI5UTMSZ.js → chunk-YJRMMZI5.js} +10 -10
- package/dist/bundle/{chunk-QUJPQMHJ.js → chunk-YSHSCBPM.js} +8 -8
- package/dist/bundle/{chunk-BAYNCCNM.js → chunk-ZC5UXEIH.js} +11 -11
- package/dist/bundle/{chunk-G4VZDINN.js → chunk-ZHXIXDH5.js} +4 -4
- package/dist/bundle/{chunk-5QESMCQK.js → chunk-ZTOAAYFV.js} +3 -3
- package/dist/bundle/{cli-72EQATJF.js → cli-IQTASP44.js} +59 -53
- package/dist/bundle/command-contract-WHZPF7NA.js +38 -0
- package/dist/bundle/config-IP5SGHKN.js +79 -0
- package/dist/bundle/{dist-IBNHCQXT.js → dist-WT73DF46.js} +14 -14
- package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
- package/dist/bundle/{embed-7QYA2ZZE.js → embed-XEMH4LNX.js} +4 -4
- package/dist/bundle/{embedder-YNN6PCHG.js → embedder-ZCYKSKAE.js} +7 -7
- package/dist/bundle/{first-run-EVSRQKZJ.js → first-run-LGYDLIUM.js} +8 -8
- package/dist/bundle/first-screen-LYQKPNF4.js +36 -0
- package/dist/bundle/{folders-JEPOMYM4.js → folders-5ZBUQHAM.js} +2 -2
- package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
- package/dist/bundle/{main-NYGJXPH7.js → main-NKY3JGXY.js} +16 -16
- package/dist/bundle/{mcp-VGSZDCKK.js → mcp-7OXUHLTO.js} +64 -64
- package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
- package/dist/bundle/mcp-VISEXTVC.js +92 -0
- package/dist/bundle/{meetings-IBPI4MM4.js → meetings-XPBHVZAU.js} +4 -4
- package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
- package/dist/bundle/{node-sqlite-ZNGOBA5Q.js → node-sqlite-BBEDYBWO.js} +3 -3
- package/dist/bundle/{oauth-Q6LKF7DB.js → oauth-UHVRGKZU.js} +5 -5
- package/dist/bundle/{open-LJ332Y5O.js → open-J4FCAUAJ.js} +2 -2
- package/dist/bundle/{output-file-RYQZ3RTE.js → output-file-SXV2ANW7.js} +3 -3
- package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
- package/dist/bundle/{program-IBRQBQ6W.js → program-EPMIJCGA.js} +80 -80
- package/dist/bundle/{prompt-RT7GUUXH.js → prompt-LUUMQTMY.js} +3 -3
- package/dist/bundle/{recognize-QXGE7YJH.js → recognize-EMHQX4XF.js} +4 -4
- package/dist/bundle/{remote-FD4MZQV3.js → remote-ZXS6D7VB.js} +5 -5
- package/dist/bundle/{rerank-V6AVV755.js → rerank-WP7RKZNB.js} +5 -5
- package/dist/bundle/{run-log-RE2EI3UU.js → run-log-GS2L66G6.js} +53 -53
- package/dist/bundle/{serve-HIJTFAW7.js → serve-L6KLLXK2.js} +7 -7
- package/dist/bundle/server-NOFYENP5.js +53 -0
- package/dist/bundle/server-P5TXAPBY.js +66 -0
- package/dist/bundle/{services-KC5KQFBS.js → services-SPOEWVK3.js} +26 -26
- package/dist/bundle/{speech-5JOXLYDA.js → speech-6OBAKMND.js} +4 -4
- package/dist/bundle/{state-PPGRB3T6.js → state-HN5EJKXQ.js} +4 -4
- package/dist/bundle/{store-WB5BICTG.js → store-LEU3M6IN.js} +13 -13
- package/dist/bundle/{store-LODVDPK3.js → store-ZP2URKET.js} +15 -15
- package/dist/bundle/store-connection-I53XZ2TS.js +76 -0
- package/dist/bundle/store-maintenance-command-PSCHEHHY.js +54 -0
- package/dist/bundle/{streaming-UGFFNOXL.js → streaming-AK6Q2ZGQ.js} +4 -4
- package/dist/bundle/{tokens-AF5CPY2F.js → tokens-CCM3D4ZT.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +12 -2
- package/dist/contract-overrides.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/answer-policy-KH2IFXPN.js +0 -96
- package/dist/bundle/command-contract-4MHSZUN3.js +0 -38
- package/dist/bundle/config-GFIJK6G2.js +0 -79
- package/dist/bundle/first-screen-RG4GUKW7.js +0 -36
- package/dist/bundle/mcp-XKP2PXLS.js +0 -92
- package/dist/bundle/server-3QOXOYYL.js +0 -53
- package/dist/bundle/store-connection-EG6Z5ITP.js +0 -76
- package/dist/bundle/store-maintenance-command-Q5WMFUZ2.js +0 -54
- /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
- /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.js} +0 -0
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-A6323R5P.js";
|
|
6
6
|
import {
|
|
7
7
|
isContentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YIMI6O7R.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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
14
14
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
15
15
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
16
16
|
if (event.event === "warning") {
|
|
@@ -58,14 +58,14 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
58
58
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
59
59
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
60
60
|
|
|
61
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
61
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
62
62
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
63
63
|
import { createHash } from "node:crypto";
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
66
66
|
import { homedir } from "node:os";
|
|
67
67
|
|
|
68
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
68
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
69
69
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
70
70
|
"authorization",
|
|
71
71
|
"cookie",
|
|
@@ -146,7 +146,7 @@ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.
|
|
|
146
146
|
var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
|
|
147
147
|
var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
|
|
148
148
|
|
|
149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
150
150
|
var MESSAGE_AT_MOST = 500;
|
|
151
151
|
var CAUSES_AT_MOST = 5;
|
|
152
152
|
var FRAMES_AT_MOST = 15;
|
|
@@ -155,6 +155,7 @@ var errorDetailOf = /* @__PURE__ */ __name((error, response) => {
|
|
|
155
155
|
const thrown = error instanceof Error ? error : void 0;
|
|
156
156
|
const code = isCliFailure(error) ? error.code : codeOf(error);
|
|
157
157
|
const reason = typeof details.reason === "string" ? details.reason : void 0;
|
|
158
|
+
const causeCode = typeof details.cause_code === "string" && /^[A-Za-z0-9_.-]{1,40}$/.test(details.cause_code) ? details.cause_code : void 0;
|
|
158
159
|
const message = thrown ? redactText(thrown.message) : void 0;
|
|
159
160
|
const operation = stringOf(details.operation) ?? response?.operation;
|
|
160
161
|
const status = numberOf(details.status) ?? response?.status;
|
|
@@ -173,6 +174,7 @@ var errorDetailOf = /* @__PURE__ */ __name((error, response) => {
|
|
|
173
174
|
class: classOf(error),
|
|
174
175
|
...code === void 0 ? {} : { code },
|
|
175
176
|
...reason === void 0 ? {} : { reason },
|
|
177
|
+
...causeCode === void 0 ? {} : { cause_code: causeCode },
|
|
176
178
|
...message ? { message } : {},
|
|
177
179
|
...operation === void 0 ? {} : { operation },
|
|
178
180
|
...http ? { http } : {},
|
|
@@ -252,7 +254,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
252
254
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
253
255
|
}, "redactText");
|
|
254
256
|
|
|
255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
256
258
|
var REDACTED = "[redacted]";
|
|
257
259
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
258
260
|
if (!record)
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
processStreams,
|
|
8
8
|
projectFields,
|
|
9
9
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YIMI6O7R.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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
16
16
|
var named = /* @__PURE__ */ __name((work) => {
|
|
17
17
|
try {
|
|
18
18
|
return work();
|
|
@@ -39,7 +39,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
39
39
|
return projectFields(value, fields);
|
|
40
40
|
}), "projectFields");
|
|
41
41
|
|
|
42
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
43
43
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
44
44
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
45
45
|
var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
@@ -69,7 +69,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
69
69
|
return value;
|
|
70
70
|
}, "atDetail");
|
|
71
71
|
|
|
72
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/output.js
|
|
73
73
|
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
|
|
74
74
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
75
75
|
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
@@ -2,21 +2,21 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B32SF7J3.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
resolvePaths,
|
|
9
9
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YIMI6O7R.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.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
16
16
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
17
17
|
import { dirname, join, resolve } from "node:path";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
20
20
|
var DEFAULT_TASK_CATEGORIES = [
|
|
21
21
|
{
|
|
22
22
|
name: "taxes",
|
|
@@ -771,7 +771,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
771
771
|
}
|
|
772
772
|
}, "storedTaskCategories");
|
|
773
773
|
|
|
774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
775
775
|
var SECTION = "task_categories";
|
|
776
776
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
777
777
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
optional,
|
|
11
11
|
pipe,
|
|
12
12
|
safeParse
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YIMI6O7R.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
19
19
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
20
20
|
const parsed = safeParse(schema, options);
|
|
21
21
|
if (!parsed.success) {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PF25S7L4.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
array,
|
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
unknown,
|
|
27
27
|
visibleControls,
|
|
28
28
|
writeSecurely
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-YIMI6O7R.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
35
35
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
36
36
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
37
37
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -69,7 +69,7 @@ ${lines}`, { candidates });
|
|
|
69
69
|
}, "ambiguous");
|
|
70
70
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
71
71
|
|
|
72
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
73
73
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
74
74
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
75
75
|
const { text, spans } = formatted;
|
|
@@ -129,7 +129,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
129
129
|
};
|
|
130
130
|
}, "visibleFormattedText");
|
|
131
131
|
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
133
133
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
134
134
|
var LINK = /https?:\/\/\S+/i;
|
|
135
135
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -317,7 +317,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
317
317
|
}, "nextPoint");
|
|
318
318
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
319
319
|
|
|
320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
321
321
|
import { existsSync, readFileSync } from "node:fs";
|
|
322
322
|
import { join } from "node:path";
|
|
323
323
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -2,24 +2,24 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
validateFormattedText
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L3VS3H34.js";
|
|
6
6
|
import {
|
|
7
7
|
inputPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G27MRA24.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
indent
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YIMI6O7R.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/checks.js
|
|
18
18
|
var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
|
|
19
19
|
var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
|
|
20
20
|
var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/markdown.js
|
|
23
23
|
var MARKERS = [
|
|
24
24
|
["**", "bold"],
|
|
25
25
|
["~~", "strike"],
|
|
@@ -65,7 +65,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
|
|
|
65
65
|
return end;
|
|
66
66
|
}, "closing");
|
|
67
67
|
|
|
68
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
68
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
|
|
69
69
|
var STYLES = [
|
|
70
70
|
["**", "bold"],
|
|
71
71
|
["__", "underline"],
|
|
@@ -225,7 +225,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
|
|
|
225
225
|
return validateFormattedText(result);
|
|
226
226
|
}, "parseMarkdownSpans");
|
|
227
227
|
|
|
228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/polls.js
|
|
229
229
|
var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
230
230
|
const cast = votes.filter((vote) => vote.answers.length > 0);
|
|
231
231
|
const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
|
|
@@ -1874,7 +1874,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
1874
1874
|
var qrcode_default = qrcode;
|
|
1875
1875
|
var stringToBytes = qrcode.stringToBytes;
|
|
1876
1876
|
|
|
1877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/terminal/qr.js
|
|
1878
1878
|
var QUIET_ZONE = 4;
|
|
1879
1879
|
var BLACK_ON_WHITE = "\x1B[30;107m";
|
|
1880
1880
|
var RESET = "\x1B[0m";
|
|
@@ -1921,7 +1921,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
|
|
|
1921
1921
|
return lines.join("\n");
|
|
1922
1922
|
}, "plainQr");
|
|
1923
1923
|
|
|
1924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
|
|
1925
1925
|
var MARGIN = 2;
|
|
1926
1926
|
var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
|
|
1927
1927
|
var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
|
|
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
|
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
|
|
530
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
530
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
531
531
|
import { existsSync } from "node:fs";
|
|
532
532
|
import { win32 } from "node:path";
|
|
533
533
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
singleLine
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YIMI6O7R.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
12
12
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
13
13
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
14
14
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf,
|
|
6
6
|
readOnlyRefusal
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XFCSPOLZ.js";
|
|
8
8
|
import {
|
|
9
9
|
currentCaller,
|
|
10
10
|
endpointTemplate,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
providerErrorKey,
|
|
15
15
|
renderEvent,
|
|
16
16
|
runContextOf
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IYAGQXED.js";
|
|
18
18
|
import {
|
|
19
19
|
DEFAULT_RERANK_MODEL,
|
|
20
20
|
IMAGE_MODELS,
|
|
@@ -36,22 +36,22 @@ import {
|
|
|
36
36
|
typedCommand,
|
|
37
37
|
useAsProcessRun,
|
|
38
38
|
withWriteScope
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-7Z4ANTAK.js";
|
|
40
40
|
import {
|
|
41
41
|
isCliFailure
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-A6323R5P.js";
|
|
43
43
|
import {
|
|
44
44
|
count,
|
|
45
45
|
text
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-DXZTLB24.js";
|
|
47
47
|
import {
|
|
48
48
|
permissionCeiling
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-4AURKUDZ.js";
|
|
50
50
|
import {
|
|
51
51
|
fieldsOf,
|
|
52
52
|
projectFields,
|
|
53
53
|
resolveOutput
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-K76WFW4I.js";
|
|
55
55
|
import {
|
|
56
56
|
CEILING_KEY,
|
|
57
57
|
COMMAND_PATH_KEY,
|
|
@@ -62,18 +62,18 @@ import {
|
|
|
62
62
|
keyForCommand,
|
|
63
63
|
layerPermissions,
|
|
64
64
|
permissionOverrides
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-PF25S7L4.js";
|
|
66
66
|
import {
|
|
67
67
|
sharedConfigPath
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-KVHRHBLY.js";
|
|
69
69
|
import {
|
|
70
70
|
storePath
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-B32SF7J3.js";
|
|
72
72
|
import {
|
|
73
73
|
FIELD_TYPES,
|
|
74
74
|
QUERY_BACKENDS,
|
|
75
75
|
describeQuery
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-UOFOMU3T.js";
|
|
77
77
|
import {
|
|
78
78
|
CliError,
|
|
79
79
|
MAX_NEXT_STEPS,
|
|
@@ -119,12 +119,12 @@ import {
|
|
|
119
119
|
unknown,
|
|
120
120
|
writeSecurely,
|
|
121
121
|
writes
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-YIMI6O7R.js";
|
|
123
123
|
import {
|
|
124
124
|
__name
|
|
125
125
|
} from "./chunk-ZVVMGPBJ.js";
|
|
126
126
|
|
|
127
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
127
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
128
128
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
129
129
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
130
130
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3625,7 +3625,7 @@ __name(useColor, "useColor");
|
|
|
3625
3625
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3626
3626
|
var program = new Command();
|
|
3627
3627
|
|
|
3628
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
3628
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3629
3629
|
import { isDeepStrictEqual } from "node:util";
|
|
3630
3630
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3631
3631
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3827,7 +3827,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference, reason, build, e
|
|
|
3827
3827
|
return command;
|
|
3828
3828
|
}, "customizeSharedCommand");
|
|
3829
3829
|
|
|
3830
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
3830
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3831
3831
|
var argumentInfoSchema = object({
|
|
3832
3832
|
name: string(),
|
|
3833
3833
|
required: boolean(),
|
|
@@ -3900,7 +3900,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3900
3900
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3901
3901
|
});
|
|
3902
3902
|
|
|
3903
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
3903
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3904
3904
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3905
3905
|
let command = root;
|
|
3906
3906
|
const path2 = [];
|
|
@@ -3918,7 +3918,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3918
3918
|
}
|
|
3919
3919
|
}, "refuseJoinedPath");
|
|
3920
3920
|
|
|
3921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
3922
3922
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
3923
3923
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
3924
3924
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -3952,7 +3952,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
3952
3952
|
cache: "cache.answered"
|
|
3953
3953
|
};
|
|
3954
3954
|
|
|
3955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
3956
3956
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
3957
3957
|
const recording = startRecording(options);
|
|
3958
3958
|
try {
|
|
@@ -4137,7 +4137,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4137
4137
|
return void 0;
|
|
4138
4138
|
}, "partialOutcome");
|
|
4139
4139
|
|
|
4140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4141
4141
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
4142
4142
|
if (ms === void 0)
|
|
4143
4143
|
return body();
|
|
@@ -4163,9 +4163,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
4163
4163
|
}
|
|
4164
4164
|
}, "withDeadline");
|
|
4165
4165
|
|
|
4166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4167
4167
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4168
4168
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4169
|
+
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
4169
4170
|
var DEFAULT_AGENT_COOPERATIVE_MS = 45e3;
|
|
4170
4171
|
var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
|
|
4171
4172
|
var byteCount = /* @__PURE__ */ __name((value, option, zero = false) => {
|
|
@@ -4344,7 +4345,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4344
4345
|
}
|
|
4345
4346
|
}, "withAbort");
|
|
4346
4347
|
|
|
4347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4348
4349
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4349
4350
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4350
4351
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4413,7 +4414,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4413
4414
|
return void 0;
|
|
4414
4415
|
}, "sampleCommand");
|
|
4415
4416
|
|
|
4416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
4417
4418
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
4418
4419
|
try {
|
|
4419
4420
|
const url2 = new URL(value);
|
|
@@ -4423,7 +4424,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
4423
4424
|
}
|
|
4424
4425
|
}, "endpoint");
|
|
4425
4426
|
|
|
4426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4427
4428
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4428
4429
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4429
4430
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -4492,7 +4493,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
4492
4493
|
};
|
|
4493
4494
|
}, "modelTarget");
|
|
4494
4495
|
|
|
4495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
4496
4497
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
4497
4498
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
4498
4499
|
var AI_FIELDS = {
|
|
@@ -4536,7 +4537,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
4536
4537
|
};
|
|
4537
4538
|
}, "resolveAISettings");
|
|
4538
4539
|
|
|
4539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
4540
4541
|
import { readFileSync } from "node:fs";
|
|
4541
4542
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
4542
4543
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -4827,7 +4828,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
4827
4828
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
4828
4829
|
}, "readConfigFile");
|
|
4829
4830
|
|
|
4830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
4831
4832
|
import { existsSync, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
4832
4833
|
import { dirname, join } from "node:path";
|
|
4833
4834
|
var DEFAULT_CONFIG = {
|
|
@@ -4856,7 +4857,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
4856
4857
|
}
|
|
4857
4858
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
4858
4859
|
|
|
4859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4860
4861
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync2 } from "node:fs";
|
|
4861
4862
|
import { join as join2 } from "node:path";
|
|
4862
4863
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4878,7 +4879,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4878
4879
|
}, "profilesWithAccounts");
|
|
4879
4880
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4880
4881
|
|
|
4881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
4882
4883
|
import { existsSync as existsSync3 } from "node:fs";
|
|
4883
4884
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
4884
4885
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
@@ -5269,7 +5270,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5269
5270
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5270
5271
|
}, "given");
|
|
5271
5272
|
|
|
5272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
5273
5274
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
5274
5275
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
5275
5276
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -5312,7 +5313,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
5312
5313
|
};
|
|
5313
5314
|
}, "runBudget");
|
|
5314
5315
|
|
|
5315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5316
5317
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
5317
5318
|
const { deadline, signal, app } = environmentOf(command);
|
|
5318
5319
|
const now = deadline?.();
|
|
@@ -5429,7 +5430,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
5429
5430
|
return words.join(" ");
|
|
5430
5431
|
}, "commandPath");
|
|
5431
5432
|
|
|
5432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
5433
5434
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
5434
5435
|
var FETCH = { remote: "read", local: "write" };
|
|
5435
5436
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -5531,7 +5532,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
5531
5532
|
throw readOnlyRefusal(lock, what);
|
|
5532
5533
|
}, "refuseUnderReadOnly");
|
|
5533
5534
|
|
|
5534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
5535
5536
|
var STEPS2 = defineSteps([
|
|
5536
5537
|
...STEPS,
|
|
5537
5538
|
{
|
|
@@ -5715,7 +5716,7 @@ var STEPS2 = defineSteps([
|
|
|
5715
5716
|
{
|
|
5716
5717
|
id: "mcp.config",
|
|
5717
5718
|
command: "mcp config",
|
|
5718
|
-
args: [],
|
|
5719
|
+
args: [{ name: "profiles", required: false }],
|
|
5719
5720
|
why: "the entry names one Node version's path; after switching or upgrading Node, print it again"
|
|
5720
5721
|
},
|
|
5721
5722
|
{
|
|
@@ -5797,7 +5798,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
5797
5798
|
].join(" ");
|
|
5798
5799
|
}, "stepLine");
|
|
5799
5800
|
|
|
5800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
5801
5802
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
5802
5803
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
5803
5804
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -5811,7 +5812,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
5811
5812
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
5812
5813
|
}, "strip");
|
|
5813
5814
|
|
|
5814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
5815
5816
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
5816
5817
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
5817
5818
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -5933,7 +5934,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
5933
5934
|
renderer.result(item);
|
|
5934
5935
|
}, "printItem");
|
|
5935
5936
|
|
|
5936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
5937
5938
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
5938
5939
|
var storeTable = strictObject({
|
|
5939
5940
|
name: text,
|
|
@@ -5942,7 +5943,7 @@ var storeTable = strictObject({
|
|
|
5942
5943
|
bytes: optional(nullable(count))
|
|
5943
5944
|
});
|
|
5944
5945
|
|
|
5945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
5946
5947
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
5947
5948
|
const run = currentRun();
|
|
5948
5949
|
const trace = traceId ?? run.traceId;
|
|
@@ -5984,6 +5985,7 @@ export {
|
|
|
5984
5985
|
withDeadline,
|
|
5985
5986
|
DEFAULT_COMMAND_MS,
|
|
5986
5987
|
DEFAULT_COOPERATIVE_MS,
|
|
5988
|
+
DEFAULT_SYNC_MS,
|
|
5987
5989
|
DEFAULT_AGENT_COOPERATIVE_MS,
|
|
5988
5990
|
DEFAULT_OUTPUT_BYTES,
|
|
5989
5991
|
byteCount,
|