@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
|
@@ -2,7 +2,7 @@ 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
|
importFrom
|
|
8
8
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -10,10 +10,10 @@ 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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// 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/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// 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/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -2,17 +2,17 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
refuseLacking
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-23LOMA2I.js";
|
|
6
6
|
import {
|
|
7
7
|
servingProfiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RJLNVHIU.js";
|
|
9
9
|
import {
|
|
10
10
|
OFFLINE,
|
|
11
11
|
capability,
|
|
12
12
|
chatIdIn,
|
|
13
13
|
servicesFor,
|
|
14
14
|
throughWrapper
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AF4HONAZ.js";
|
|
16
16
|
import {
|
|
17
17
|
asFirstWord,
|
|
18
18
|
baseContext,
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
recalledAccount,
|
|
24
24
|
rememberAccount,
|
|
25
25
|
rootOf2 as rootOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BWPKSUXW.js";
|
|
27
27
|
import {
|
|
28
28
|
MESSENGER_CHANGE_REFUSAL,
|
|
29
29
|
readOnlyRefusal
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2UONVSJQ.js";
|
|
31
31
|
import {
|
|
32
32
|
providerErrorKey
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-H65B6A7Y.js";
|
|
34
34
|
import {
|
|
35
35
|
LOG_ATTRIBUTES,
|
|
36
36
|
codeOf,
|
|
@@ -38,15 +38,15 @@ import {
|
|
|
38
38
|
currentRun,
|
|
39
39
|
fromLogAttributes,
|
|
40
40
|
logAttributes
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-A2FOW3ZC.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3AAO5N4L.js";
|
|
45
45
|
import {
|
|
46
46
|
foldName,
|
|
47
47
|
isId,
|
|
48
48
|
pickPerson
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-IIP4J3PD.js";
|
|
50
50
|
import {
|
|
51
51
|
AUTHORITY_KEY,
|
|
52
52
|
CEILING_KEY,
|
|
@@ -57,22 +57,22 @@ import {
|
|
|
57
57
|
levelFor,
|
|
58
58
|
readKeysForCommand,
|
|
59
59
|
skipFlagFor
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-7D56BQZL.js";
|
|
61
61
|
import {
|
|
62
62
|
openStore
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-JM43EKTY.js";
|
|
64
64
|
import {
|
|
65
65
|
CliError,
|
|
66
66
|
logRecordOf,
|
|
67
67
|
realSleep,
|
|
68
68
|
resolvePaths,
|
|
69
69
|
writeSecurely
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-7NDSBTKR.js";
|
|
71
71
|
import {
|
|
72
72
|
__name
|
|
73
73
|
} from "./chunk-ZVVMGPBJ.js";
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
75
|
+
// 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/ask.js
|
|
76
76
|
import { openSync } from "node:fs";
|
|
77
77
|
import { createInterface } from "node:readline";
|
|
78
78
|
import { ReadStream } from "node:tty";
|
|
@@ -127,10 +127,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
127
127
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
128
128
|
}, "terminalAsker");
|
|
129
129
|
|
|
130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
130
|
+
// 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/sends/guard.js
|
|
131
131
|
import { randomUUID } from "node:crypto";
|
|
132
132
|
|
|
133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
133
|
+
// 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/sends/flood.js
|
|
134
134
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
135
135
|
import { dirname, join } from "node:path";
|
|
136
136
|
var MOST_DEADLINES = 50;
|
|
@@ -214,11 +214,11 @@ var FloodMemory = class {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
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/sends/journal.js
|
|
218
218
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
219
219
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// 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/sends/file-lock.js
|
|
222
222
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
223
223
|
import { dirname as dirname2 } from "node:path";
|
|
224
224
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -285,7 +285,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
285
285
|
}
|
|
286
286
|
}, "lockTime");
|
|
287
287
|
|
|
288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
288
|
+
// 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/sends/journal.js
|
|
289
289
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
290
290
|
var SendJournal = class {
|
|
291
291
|
static {
|
|
@@ -362,7 +362,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
362
362
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
363
363
|
}, "withSendId");
|
|
364
364
|
|
|
365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
365
|
+
// 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/sends/recipients.js
|
|
366
366
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
367
367
|
import { join as join3 } from "node:path";
|
|
368
368
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -474,7 +474,7 @@ var RecipientList = class {
|
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
476
|
|
|
477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
477
|
+
// 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/sends/guard.js
|
|
478
478
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
479
479
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
480
480
|
"attachments.extract",
|
|
@@ -667,7 +667,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
667
667
|
}), "guardFor");
|
|
668
668
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
669
669
|
|
|
670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
670
|
+
// 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/permission-keys.js
|
|
671
671
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
672
672
|
"help",
|
|
673
673
|
"guide",
|
|
@@ -746,7 +746,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
746
746
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
747
747
|
}, "refuseUnknownPermissionKeys");
|
|
748
748
|
|
|
749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
749
|
+
// 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/stored.js
|
|
750
750
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
751
751
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
|
|
752
752
|
let warned = false;
|
|
@@ -1238,7 +1238,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1238
1238
|
}
|
|
1239
1239
|
}, "keep");
|
|
1240
1240
|
|
|
1241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1241
|
+
// 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/sends/pace.js
|
|
1242
1242
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
1243
1243
|
import { join as join4 } from "node:path";
|
|
1244
1244
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -1297,7 +1297,7 @@ var Pacer = class {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
1299
|
|
|
1300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1300
|
+
// 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/flooded.js
|
|
1301
1301
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
1302
1302
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
1303
1303
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -1416,7 +1416,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
1416
1416
|
});
|
|
1417
1417
|
}, "flooded");
|
|
1418
1418
|
|
|
1419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1419
|
+
// 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/observed.js
|
|
1420
1420
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
1421
1421
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
1422
1422
|
const write = currentOperation();
|
|
@@ -1515,7 +1515,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1515
1515
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1516
1516
|
}, "byPart");
|
|
1517
1517
|
|
|
1518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1518
|
+
// 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/context.js
|
|
1519
1519
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1520
1520
|
let opened;
|
|
1521
1521
|
return {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf,
|
|
6
6
|
readOnlyRefusal
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2UONVSJQ.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-H65B6A7Y.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-A2FOW3ZC.js";
|
|
40
40
|
import {
|
|
41
41
|
isCliFailure
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-3AAO5N4L.js";
|
|
43
43
|
import {
|
|
44
44
|
count,
|
|
45
45
|
text
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-TYKZCJD7.js";
|
|
47
47
|
import {
|
|
48
48
|
permissionCeiling
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-JRPYHDCO.js";
|
|
50
50
|
import {
|
|
51
51
|
fieldsOf,
|
|
52
52
|
projectFields,
|
|
53
53
|
resolveOutput
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-YNYMWXXH.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-7D56BQZL.js";
|
|
66
66
|
import {
|
|
67
67
|
sharedConfigPath
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-UNO4G5NX.js";
|
|
69
69
|
import {
|
|
70
70
|
storePath
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-RK3JBC4U.js";
|
|
72
72
|
import {
|
|
73
73
|
FIELD_TYPES,
|
|
74
74
|
QUERY_BACKENDS,
|
|
75
75
|
describeQuery
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-SJIBJQJN.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-7NDSBTKR.js";
|
|
123
123
|
import {
|
|
124
124
|
__name
|
|
125
125
|
} from "./chunk-ZVVMGPBJ.js";
|
|
126
126
|
|
|
127
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
127
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.71.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.
|
|
3628
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.71.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.
|
|
3830
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.71.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.
|
|
3903
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.71.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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/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.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/deadline.js
|
|
4141
4141
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
4142
4142
|
if (ms === void 0)
|
|
4143
4143
|
return body();
|
|
@@ -4163,7 +4163,7 @@ 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.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/execution.js
|
|
4167
4167
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4168
4168
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4169
4169
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4345,7 +4345,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4345
4345
|
}
|
|
4346
4346
|
}, "withAbort");
|
|
4347
4347
|
|
|
4348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4348
|
+
// 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/profile.js
|
|
4349
4349
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4350
4350
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4351
4351
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4414,7 +4414,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4414
4414
|
return void 0;
|
|
4415
4415
|
}, "sampleCommand");
|
|
4416
4416
|
|
|
4417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4417
|
+
// 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/endpoint.js
|
|
4418
4418
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
4419
4419
|
try {
|
|
4420
4420
|
const url2 = new URL(value);
|
|
@@ -4424,7 +4424,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
4424
4424
|
}
|
|
4425
4425
|
}, "endpoint");
|
|
4426
4426
|
|
|
4427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4427
|
+
// 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/settings.js
|
|
4428
4428
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4429
4429
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4430
4430
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -4493,7 +4493,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
4493
4493
|
};
|
|
4494
4494
|
}, "modelTarget");
|
|
4495
4495
|
|
|
4496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4496
|
+
// 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/analysis/settings.js
|
|
4497
4497
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
4498
4498
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
4499
4499
|
var AI_FIELDS = {
|
|
@@ -4537,7 +4537,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
4537
4537
|
};
|
|
4538
4538
|
}, "resolveAISettings");
|
|
4539
4539
|
|
|
4540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4540
|
+
// 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/config-issues.js
|
|
4541
4541
|
import { readFileSync } from "node:fs";
|
|
4542
4542
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
4543
4543
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -4828,7 +4828,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
4828
4828
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
4829
4829
|
}, "readConfigFile");
|
|
4830
4830
|
|
|
4831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4831
|
+
// 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/default-config.js
|
|
4832
4832
|
import { existsSync, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
4833
4833
|
import { dirname, join } from "node:path";
|
|
4834
4834
|
var DEFAULT_CONFIG = {
|
|
@@ -4857,7 +4857,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
4857
4857
|
}
|
|
4858
4858
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
4859
4859
|
|
|
4860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4860
|
+
// 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/accounts.js
|
|
4861
4861
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync2 } from "node:fs";
|
|
4862
4862
|
import { join as join2 } from "node:path";
|
|
4863
4863
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4879,7 +4879,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4879
4879
|
}, "profilesWithAccounts");
|
|
4880
4880
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4881
4881
|
|
|
4882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4882
|
+
// 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/settings.js
|
|
4883
4883
|
import { existsSync as existsSync3 } from "node:fs";
|
|
4884
4884
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
4885
4885
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
@@ -4993,7 +4993,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
4993
4993
|
const schema = strictOf(configEntries);
|
|
4994
4994
|
const defaultsOnlyKeys = Object.keys(defaultsOnly);
|
|
4995
4995
|
const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
|
|
4996
|
-
const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting));
|
|
4996
|
+
const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting) || app.sends === true && setting === "sends_per_hour");
|
|
4997
4997
|
const PROFILE = envName(app, "PROFILE");
|
|
4998
4998
|
const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
|
|
4999
4999
|
const TIMEOUT = envName(app, "TIMEOUT");
|
|
@@ -5270,7 +5270,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5270
5270
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5271
5271
|
}, "given");
|
|
5272
5272
|
|
|
5273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5273
|
+
// 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/budget.js
|
|
5274
5274
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
5275
5275
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
5276
5276
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -5313,7 +5313,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
5313
5313
|
};
|
|
5314
5314
|
}, "runBudget");
|
|
5315
5315
|
|
|
5316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5316
|
+
// 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/context.js
|
|
5317
5317
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
5318
5318
|
const { deadline, signal, app } = environmentOf(command);
|
|
5319
5319
|
const now = deadline?.();
|
|
@@ -5430,7 +5430,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
5430
5430
|
return words.join(" ");
|
|
5431
5431
|
}, "commandPath");
|
|
5432
5432
|
|
|
5433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5433
|
+
// 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/effects.js
|
|
5434
5434
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
5435
5435
|
var FETCH = { remote: "read", local: "write" };
|
|
5436
5436
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -5532,7 +5532,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
5532
5532
|
throw readOnlyRefusal(lock, what);
|
|
5533
5533
|
}, "refuseUnderReadOnly");
|
|
5534
5534
|
|
|
5535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5535
|
+
// 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/steps.js
|
|
5536
5536
|
var STEPS2 = defineSteps([
|
|
5537
5537
|
...STEPS,
|
|
5538
5538
|
{
|
|
@@ -5799,7 +5799,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
5799
5799
|
].join(" ");
|
|
5800
5800
|
}, "stepLine");
|
|
5801
5801
|
|
|
5802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5802
|
+
// 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/provider-refs.js
|
|
5803
5803
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
5804
5804
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
5805
5805
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -5813,7 +5813,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
5813
5813
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
5814
5814
|
}, "strip");
|
|
5815
5815
|
|
|
5816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5816
|
+
// 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/envelope.js
|
|
5817
5817
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
5818
5818
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
5819
5819
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -5947,7 +5947,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
5947
5947
|
renderer.result(item);
|
|
5948
5948
|
}, "printItem");
|
|
5949
5949
|
|
|
5950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5950
|
+
// 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/entities/store-table.js
|
|
5951
5951
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
5952
5952
|
var storeTable = strictObject({
|
|
5953
5953
|
name: text,
|
|
@@ -5956,7 +5956,7 @@ var storeTable = strictObject({
|
|
|
5956
5956
|
bytes: optional(nullable(count))
|
|
5957
5957
|
});
|
|
5958
5958
|
|
|
5959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5959
|
+
// 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/runs/record-log.js
|
|
5960
5960
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
5961
5961
|
const run = currentRun();
|
|
5962
5962
|
const trace = traceId ?? run.traceId;
|
|
@@ -2,25 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ENTITIES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JRPAZ2WD.js";
|
|
6
6
|
import {
|
|
7
7
|
annotate,
|
|
8
8
|
answerSchema,
|
|
9
9
|
describeOptions,
|
|
10
10
|
metaOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BWPKSUXW.js";
|
|
12
12
|
import {
|
|
13
13
|
keyForCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7D56BQZL.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError,
|
|
17
17
|
jsonSchemaOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7NDSBTKR.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// 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/answer-entity.js
|
|
24
24
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
25
25
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
|
|
26
26
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -50,7 +50,7 @@ var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
|
|
|
50
50
|
return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
|
|
51
51
|
}, "answerProjectionSchema");
|
|
52
52
|
|
|
53
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
53
|
+
// 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/command-contract.js
|
|
54
54
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
55
55
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
56
56
|
const entity = answerEntitySchema(command);
|
|
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
|
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
|
|
530
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
530
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.71.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");
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-63MRRNDL.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7NDSBTKR.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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|