@wirecat/zoom-cli 0.64.0 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/answer-entities.d.ts +13 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +5 -0
- package/dist/answer-entities.js.map +1 -1
- package/dist/answers.d.ts +8 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/archive-import.d.ts +1 -1
- package/dist/archive-import.d.ts.map +1 -1
- package/dist/archive-import.js +2 -1
- package/dist/archive-import.js.map +1 -1
- package/dist/bin/zm.js +6 -2
- package/dist/bin/zm.js.map +1 -1
- package/dist/bundle/{all-profiles-W2OVBZ7S.js → all-profiles-D5CFH2OK.js} +11 -8
- package/dist/bundle/answer-policy-YAYMKRRD.js +101 -0
- package/dist/bundle/{anthropic-P4BKQNBO.js → anthropic-K2E2JS4S.js} +7 -4
- package/dist/bundle/{app-server-AYUW45ND.js → app-server-TVXDG6HZ.js} +68 -61
- package/dist/bundle/{bun-MNGPTYDQ.js → bun-O4WHGL2F.js} +2 -2
- package/dist/bundle/{bun-sqlite-PTPUSXAO.js → bun-sqlite-HGBEHQI3.js} +6 -3
- package/dist/bundle/{chunk-TYKZCJD7.js → chunk-2T5BOLBS.js} +35 -35
- package/dist/bundle/{chunk-H3DMYF3W.js → chunk-2VPHQFO5.js} +8 -8
- package/dist/bundle/{chunk-JMSKDW5G.js → chunk-2YLNUZ3T.js} +5 -3
- package/dist/bundle/{chunk-AAC6VNSL.js → chunk-3B7L2UX4.js} +3 -3
- package/dist/bundle/{chunk-6NBQJJT6.js → chunk-3WTKZ2ZS.js} +13 -11
- package/dist/bundle/{chunk-H65B6A7Y.js → chunk-3Y2F65AY.js} +8 -8
- package/dist/bundle/{chunk-A2FOW3ZC.js → chunk-5A26IBAR.js} +162 -107
- package/dist/bundle/{chunk-BO5YVG3X.js → chunk-5GD2XZ6X.js} +132 -40
- package/dist/bundle/{chunk-7D56BQZL.js → chunk-5HPALDUO.js} +2 -2
- package/dist/bundle/{chunk-5FN4Q5H5.js → chunk-62GOOZO3.js} +8 -13
- package/dist/bundle/{chunk-J25UNZIL.js → chunk-67RNZGAG.js} +12 -10
- package/dist/bundle/{chunk-3AAO5N4L.js → chunk-6GSJLNP4.js} +2 -2
- package/dist/bundle/{chunk-UNO4G5NX.js → chunk-6TIKPRVQ.js} +11 -7
- package/dist/bundle/{chunk-HQHUPTZR.js → chunk-756RS4PH.js} +1393 -712
- package/dist/bundle/{chunk-R4NTPYXZ.js → chunk-7JMBEPW2.js} +2 -2
- package/dist/bundle/{chunk-HIGFBTEI.js → chunk-7KCTPGOF.js} +2 -2
- package/dist/bundle/{chunk-TJODNJKE.js → chunk-7PF56S6U.js} +33 -22
- package/dist/bundle/{chunk-LEQCRVPD.js → chunk-7SQJCKR6.js} +1 -1
- package/dist/bundle/{chunk-BWPKSUXW.js → chunk-A2SCXNA7.js} +4518 -402
- package/dist/bundle/{chunk-QK54GOGE.js → chunk-AU4JHT3R.js} +7 -9
- package/dist/bundle/{chunk-63MRRNDL.js → chunk-AZ7ICKIA.js} +8 -8
- package/dist/bundle/chunk-BLT3LR3U.js +34 -0
- package/dist/bundle/{chunk-UABUBDYB.js → chunk-BXSAROQP.js} +2 -2
- package/dist/bundle/{chunk-Q3EDUZ5R.js → chunk-CAW6IMFZ.js} +25 -18
- package/dist/bundle/{chunk-UCPL55YP.js → chunk-CR4CXOLX.js} +17 -17
- package/dist/bundle/{chunk-SMT6SFBK.js → chunk-CZ4KLUJG.js} +2 -2
- package/dist/bundle/{chunk-COTC7HF3.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-X6M5DK66.js → chunk-EXXM4RNI.js} +14 -12
- package/dist/bundle/{chunk-CZKV4USJ.js → chunk-FWFFQV4D.js} +59 -4
- package/dist/bundle/{chunk-JJZAGKUK.js → chunk-GHAPWKG2.js} +5 -3
- package/dist/bundle/{chunk-JRPYHDCO.js → chunk-GI6QVSCW.js} +4 -4
- package/dist/bundle/{chunk-Y7TWNMTW.js → chunk-GKXFL35E.js} +198 -65
- package/dist/bundle/{chunk-K6OSD6DG.js → chunk-GNGBG5BT.js} +81 -35
- package/dist/bundle/{chunk-RJLNVHIU.js → chunk-H5ZVZAOD.js} +3 -3
- package/dist/bundle/{chunk-XZSQLVED.js → chunk-HKQWV3KT.js} +5 -3
- package/dist/bundle/chunk-IDWHJ35K.js +166 -0
- package/dist/bundle/{chunk-JM43EKTY.js → chunk-IKQ73INC.js} +1928 -679
- package/dist/bundle/chunk-ILHTNOIV.js +23 -0
- package/dist/bundle/{chunk-OPP5CWAX.js → chunk-J4EZL6HY.js} +61 -56
- package/dist/bundle/{chunk-54UEJGYB.js → chunk-JX3V35A5.js} +3 -3
- package/dist/bundle/{chunk-7VJIKJNW.js → chunk-K5CIN4JP.js} +8 -8
- package/dist/bundle/{chunk-KJCCT3QY.js → chunk-KDKFGQWG.js} +17 -14
- package/dist/bundle/{chunk-RK3JBC4U.js → chunk-L7IK4FOA.js} +2 -2
- package/dist/bundle/{chunk-7EOW47PV.js → chunk-LN2S3RA3.js} +4 -4
- package/dist/bundle/{chunk-I5QX2HAT.js → chunk-N5JRRBEG.js} +214 -107
- package/dist/bundle/chunk-N67BLTBV.js +2443 -0
- package/dist/bundle/{chunk-23LOMA2I.js → chunk-N6JMJN5A.js} +48 -26
- package/dist/bundle/{chunk-CZFV6XTW.js → chunk-NMQUCHTX.js} +3 -3
- package/dist/bundle/{chunk-TJH5IQVZ.js → chunk-NO24PJNW.js} +1 -1
- package/dist/bundle/{chunk-UFI5SX3F.js → chunk-O5FKJV3T.js} +14 -12
- package/dist/bundle/{chunk-IIP4J3PD.js → chunk-P2G4KGTR.js} +94 -12
- package/dist/bundle/{chunk-OWXMQVVN.js → chunk-P2SYZNM4.js} +1 -1
- package/dist/bundle/{chunk-EQYPTGCT.js → chunk-P3XVLHIQ.js} +6 -4
- package/dist/bundle/chunk-PQLBPYJR.js +46 -0
- package/dist/bundle/{chunk-5BCNJB2A.js → chunk-Q47C3QZW.js} +675 -507
- package/dist/bundle/{chunk-IIGXCYEL.js → chunk-QAPU2JNO.js} +13 -13
- package/dist/bundle/{chunk-WFIJOFS5.js → chunk-QJHRYUMJ.js} +1 -1
- package/dist/bundle/{chunk-YNYMWXXH.js → chunk-QV5ZGRK3.js} +40 -11
- package/dist/bundle/{chunk-3IMEAZIM.js → chunk-RMKHYUHK.js} +9 -20
- package/dist/bundle/{chunk-AF4HONAZ.js → chunk-RO44LANT.js} +6449 -4436
- package/dist/bundle/{chunk-3DGQJASQ.js → chunk-S4GDDO5S.js} +1 -1
- package/dist/bundle/chunk-S6S3KVJI.js +45 -0
- package/dist/bundle/{chunk-SJIBJQJN.js → chunk-SU4WPBQE.js} +44 -14
- package/dist/bundle/{chunk-7NDSBTKR.js → chunk-TFDVFD4N.js} +91 -2546
- package/dist/bundle/{chunk-HQHYPKSU.js → chunk-TMVKZMDO.js} +54 -37
- package/dist/bundle/{chunk-PBJY5VR6.js → chunk-TN7K66PU.js} +1 -1
- package/dist/bundle/{chunk-ZW4N73FO.js → chunk-TUEEXECZ.js} +5 -5
- package/dist/bundle/{chunk-H5LLZ5XA.js → chunk-U3ZUT557.js} +1 -1
- package/dist/bundle/{chunk-4XVRA6P5.js → chunk-U4RVOSX3.js} +1 -1
- package/dist/bundle/{chunk-5YLR24D5.js → chunk-UOIXBEFR.js} +13 -6
- package/dist/bundle/chunk-UYV2JGLQ.js +34 -0
- package/dist/bundle/{chunk-7SWNZ44U.js → chunk-XFUID5NY.js} +4 -4
- package/dist/bundle/{chunk-BMYZWBAX.js → chunk-XWDSEJWP.js} +6 -6
- package/dist/bundle/{chunk-JZKNHA44.js → chunk-Y3EIK4XW.js} +1 -1
- package/dist/bundle/{chunk-24WCZURP.js → chunk-YLEQN6PB.js} +5 -3
- package/dist/bundle/{chunk-2UONVSJQ.js → chunk-Z6U3MEGJ.js} +2 -2
- package/dist/bundle/{chunk-L4JGVSBN.js → chunk-ZKTXUDSR.js} +33 -28
- package/dist/bundle/{chunk-FSYO3PUW.js → chunk-ZNFPDTQM.js} +2 -2
- package/dist/bundle/{chunk-C3RRIJ5C.js → chunk-ZTL7ANSG.js} +9 -42
- package/dist/bundle/{cli-Y2ZO3D5U.js → cli-HWQIL2AC.js} +124 -73
- package/dist/bundle/command-contract-CQFJXWX6.js +40 -0
- package/dist/bundle/config-R2Y6ZVQS.js +83 -0
- package/dist/bundle/{decode-GO6GAYH2.js → decode-XPAPPUGE.js} +6 -3
- package/dist/bundle/dispatch-AKVJGP2S.js +412 -0
- package/dist/bundle/{dist-MIJKAGXW.js → dist-LDIUQBM7.js} +23 -16
- package/dist/bundle/{echarts-NWK7LALR.js → echarts-FMACRZQC.js} +2 -2
- package/dist/bundle/{embed-2DOSN4DV.js → embed-LK45GRQ7.js} +7 -4
- package/dist/bundle/{embedder-3Q3C2WKC.js → embedder-QPBC5XBY.js} +12 -9
- package/dist/bundle/failure-7OULAOWQ.js +25 -0
- package/dist/bundle/first-run-J5FG773Q.js +28 -0
- package/dist/bundle/first-screen-MULOBUHN.js +38 -0
- package/dist/bundle/{folders-RSWEBHDZ.js → folders-RHPUVMDI.js} +5 -2
- package/dist/bundle/{instructions-M3FZPQVI.js → instructions-E5FXYCWF.js} +1 -1
- package/dist/bundle/{main-R77BPRRS.js → main-FJHE5YHU.js} +28 -22
- package/dist/bundle/{mcp-YJEQYYTR.js → mcp-MNI62HHE.js} +5 -3
- package/dist/bundle/{meetings-IV4Y4WRH.js → meetings-MYIDGYGW.js} +19 -6
- package/dist/bundle/{node-I3GEHYGL.js → node-4SNKUPXT.js} +2 -2
- package/dist/bundle/{node-sqlite-W6MR2TVQ.js → node-sqlite-SYZUTVPC.js} +12 -3
- package/dist/bundle/{oauth-M6YL4QXP.js → oauth-QPS5VTN6.js} +8 -5
- package/dist/bundle/{open-2VITLJAN.js → open-OVCASRSJ.js} +6 -2
- package/dist/bundle/openai-VEVT7D7L.js +25 -0
- package/dist/bundle/{output-file-XJJ3XMLQ.js → output-file-K5JEL33Z.js} +7 -4
- package/dist/bundle/{process-UBA4L4B2.js → process-HQZOTT6U.js} +1 -1
- package/dist/bundle/{program-5R5MRXUM.js → program-A546WC4F.js} +120 -112
- package/dist/bundle/{prompt-AVIXIM7Z.js → prompt-CYBKP7S5.js} +6 -3
- package/dist/bundle/{recognize-DJKTJOYU.js → recognize-3H3YDCFI.js} +5 -2
- package/dist/bundle/{remote-S3DTNYRP.js → remote-VAYVTJBS.js} +8 -5
- package/dist/bundle/{rerank-FMCDP6VF.js → rerank-XA4GA5PS.js} +8 -5
- package/dist/bundle/{run-log-T4MV2VEH.js → run-log-XAFHMI3F.js} +59 -54
- package/dist/bundle/{serve-5SGFJFMC.js → serve-KGHEDUHB.js} +18 -14
- package/dist/bundle/server-IDNSJXF3.js +71 -0
- package/dist/bundle/{server-PCMCY7WK.js → server-ZYTSMDTP.js} +47 -42
- package/dist/bundle/{services-SKRQ2POT.js → services-ZHMZC2OQ.js} +106 -28
- package/dist/bundle/{speech-FSDICIKO.js → speech-7CJEFKM3.js} +14 -11
- package/dist/bundle/{state-KPUSPWO6.js → state-U6KSYVOH.js} +7 -4
- package/dist/bundle/{store-W7LFPKG2.js → store-DJE3LAEG.js} +17 -13
- package/dist/bundle/{store-7MP2ZGQ7.js → store-WS4CQGYU.js} +40 -18
- package/dist/bundle/store-connection-T5WGOOPH.js +81 -0
- package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +61 -0
- package/dist/bundle/{streaming-Q44ESD3E.js → streaming-QMHH7L6N.js} +7 -4
- package/dist/bundle/{tokens-TAFCHANI.js → tokens-PWQ56OXO.js} +7 -4
- package/dist/bundle/zm.js +150 -1
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +1 -0
- package/dist/local-transcription.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/dist/bundle/answer-policy-HOA43GNA.js +0 -96
- package/dist/bundle/chunk-JRPAZ2WD.js +0 -3635
- package/dist/bundle/command-contract-DGTZIH2F.js +0 -38
- package/dist/bundle/config-N2UHDKGG.js +0 -78
- package/dist/bundle/first-run-S75VKIT3.js +0 -23
- package/dist/bundle/first-screen-DQNRT6GH.js +0 -36
- package/dist/bundle/openai-OG6B3JCU.js +0 -22
- package/dist/bundle/server-EYGZLKKQ.js +0 -66
- package/dist/bundle/store-connection-3HNZFJC4.js +0 -76
- package/dist/bundle/store-maintenance-command-6WBLTUZP.js +0 -55
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -2,17 +2,25 @@ 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-N6JMJN5A.js";
|
|
6
6
|
import {
|
|
7
7
|
servingProfiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-H5ZVZAOD.js";
|
|
9
9
|
import {
|
|
10
10
|
OFFLINE,
|
|
11
11
|
capability,
|
|
12
12
|
chatIdIn,
|
|
13
|
+
profilesOnAccount,
|
|
13
14
|
servicesFor,
|
|
14
15
|
throughWrapper
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RO44LANT.js";
|
|
17
|
+
import {
|
|
18
|
+
chatReferenceOf,
|
|
19
|
+
ensureAccount,
|
|
20
|
+
foldName,
|
|
21
|
+
isId,
|
|
22
|
+
pickPerson
|
|
23
|
+
} from "./chunk-P2G4KGTR.js";
|
|
16
24
|
import {
|
|
17
25
|
asFirstWord,
|
|
18
26
|
baseContext,
|
|
@@ -23,30 +31,26 @@ import {
|
|
|
23
31
|
recalledAccount,
|
|
24
32
|
rememberAccount,
|
|
25
33
|
rootOf2 as rootOf
|
|
26
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-A2SCXNA7.js";
|
|
27
35
|
import {
|
|
28
36
|
MESSENGER_CHANGE_REFUSAL,
|
|
29
37
|
readOnlyRefusal
|
|
30
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-Z6U3MEGJ.js";
|
|
31
39
|
import {
|
|
32
40
|
providerErrorKey
|
|
33
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-3Y2F65AY.js";
|
|
34
42
|
import {
|
|
35
43
|
LOG_ATTRIBUTES,
|
|
36
44
|
codeOf,
|
|
37
45
|
currentOperation,
|
|
38
46
|
currentRun,
|
|
39
47
|
fromLogAttributes,
|
|
48
|
+
limitBatch,
|
|
40
49
|
logAttributes
|
|
41
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-5A26IBAR.js";
|
|
42
51
|
import {
|
|
43
52
|
isCliFailure
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import {
|
|
46
|
-
foldName,
|
|
47
|
-
isId,
|
|
48
|
-
pickPerson
|
|
49
|
-
} from "./chunk-IIP4J3PD.js";
|
|
53
|
+
} from "./chunk-6GSJLNP4.js";
|
|
50
54
|
import {
|
|
51
55
|
AUTHORITY_KEY,
|
|
52
56
|
CEILING_KEY,
|
|
@@ -57,22 +61,24 @@ import {
|
|
|
57
61
|
levelFor,
|
|
58
62
|
readKeysForCommand,
|
|
59
63
|
skipFlagFor
|
|
60
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-5HPALDUO.js";
|
|
61
65
|
import {
|
|
62
66
|
openStore
|
|
63
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-IKQ73INC.js";
|
|
64
68
|
import {
|
|
65
|
-
CliError,
|
|
66
69
|
logRecordOf,
|
|
67
70
|
realSleep,
|
|
68
71
|
resolvePaths,
|
|
69
72
|
writeSecurely
|
|
70
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-TFDVFD4N.js";
|
|
74
|
+
import {
|
|
75
|
+
CliError
|
|
76
|
+
} from "./chunk-S6S3KVJI.js";
|
|
71
77
|
import {
|
|
72
78
|
__name
|
|
73
79
|
} from "./chunk-ZVVMGPBJ.js";
|
|
74
80
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
76
82
|
import { openSync } from "node:fs";
|
|
77
83
|
import { createInterface } from "node:readline";
|
|
78
84
|
import { ReadStream } from "node:tty";
|
|
@@ -127,10 +133,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
127
133
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
128
134
|
}, "terminalAsker");
|
|
129
135
|
|
|
130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
131
137
|
import { randomUUID } from "node:crypto";
|
|
132
138
|
|
|
133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
134
140
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
135
141
|
import { dirname, join } from "node:path";
|
|
136
142
|
var MOST_DEADLINES = 50;
|
|
@@ -214,11 +220,11 @@ var FloodMemory = class {
|
|
|
214
220
|
}
|
|
215
221
|
};
|
|
216
222
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
218
224
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
219
225
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
220
226
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
222
228
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
223
229
|
import { dirname as dirname2 } from "node:path";
|
|
224
230
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -285,7 +291,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
285
291
|
}
|
|
286
292
|
}, "lockTime");
|
|
287
293
|
|
|
288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
289
295
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
290
296
|
var SendJournal = class {
|
|
291
297
|
static {
|
|
@@ -362,7 +368,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
362
368
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
363
369
|
}, "withSendId");
|
|
364
370
|
|
|
365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
366
372
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
367
373
|
import { join as join3 } from "node:path";
|
|
368
374
|
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 +480,7 @@ var RecipientList = class {
|
|
|
474
480
|
}
|
|
475
481
|
};
|
|
476
482
|
|
|
477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
478
484
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
479
485
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
480
486
|
"attachments.extract",
|
|
@@ -667,7 +673,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
667
673
|
}), "guardFor");
|
|
668
674
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
669
675
|
|
|
670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
671
677
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
672
678
|
"help",
|
|
673
679
|
"guide",
|
|
@@ -746,10 +752,37 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
746
752
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
747
753
|
}, "refuseUnknownPermissionKeys");
|
|
748
754
|
|
|
749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
750
756
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
751
|
-
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
|
|
757
|
+
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
752
758
|
let warned = false;
|
|
759
|
+
let limitedNoted = false;
|
|
760
|
+
const limited = /* @__PURE__ */ __name(async (opened, batch) => {
|
|
761
|
+
if (!historyLimits || !batch.messages?.length)
|
|
762
|
+
return { batch, skipped: /* @__PURE__ */ new Map() };
|
|
763
|
+
const shapes = await opened.chats.historyShapes(account, [...new Set(batch.messages.map((one) => one.chatId))]);
|
|
764
|
+
return limitBatch(batch, (chatId) => shapes.get(chatId), (chatId) => shapes.get(chatId)?.included === true, historyLimits);
|
|
765
|
+
}, "limited");
|
|
766
|
+
const noteLimited = /* @__PURE__ */ __name((skipped) => {
|
|
767
|
+
if (skipped.size === 0)
|
|
768
|
+
return;
|
|
769
|
+
const counts = {
|
|
770
|
+
chats: skipped.size,
|
|
771
|
+
messages: 0,
|
|
772
|
+
group_too_large: 0,
|
|
773
|
+
older_than_window: 0
|
|
774
|
+
};
|
|
775
|
+
for (const skip of skipped.values()) {
|
|
776
|
+
counts.messages = (counts.messages ?? 0) + skip.messages;
|
|
777
|
+
counts[skip.reason] = (counts[skip.reason] ?? 0) + 1;
|
|
778
|
+
}
|
|
779
|
+
const warning = { event: "warning", code: "history_limited", operation: "history.save", counts };
|
|
780
|
+
events(warning);
|
|
781
|
+
if (limitedNoted)
|
|
782
|
+
return;
|
|
783
|
+
limitedNoted = true;
|
|
784
|
+
warn(`history limits left out ${counts.messages} pushed messages of ${skipped.size} chats (big groups, older than the window) \u2014 \`${command} store status\` lists them; \`${command} messages sync <chat> --full-history\` fetches one and keeps it in full`, warning);
|
|
785
|
+
}, "noteLimited");
|
|
753
786
|
let recorded = profile === void 0;
|
|
754
787
|
const notWritten = /* @__PURE__ */ __name((operation, error) => {
|
|
755
788
|
const warning = { event: "warning", code: "store_not_written", operation };
|
|
@@ -761,15 +794,18 @@ var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events,
|
|
|
761
794
|
const attempt = /* @__PURE__ */ __name(async (operation, write) => {
|
|
762
795
|
try {
|
|
763
796
|
const opened = await store();
|
|
764
|
-
if (opened)
|
|
765
|
-
|
|
797
|
+
if (!opened)
|
|
798
|
+
return false;
|
|
799
|
+
await write(opened);
|
|
766
800
|
if (opened && !recorded && profile) {
|
|
767
801
|
recorded = true;
|
|
768
802
|
await Promise.resolve().then(() => opened.accounts.saveProfile(profile.app, profile.name, account)).catch(() => {
|
|
769
803
|
});
|
|
770
804
|
}
|
|
805
|
+
return true;
|
|
771
806
|
} catch (error) {
|
|
772
807
|
notWritten(operation, error);
|
|
808
|
+
return false;
|
|
773
809
|
}
|
|
774
810
|
}, "attempt");
|
|
775
811
|
const save = /* @__PURE__ */ __name((operation, writing) => {
|
|
@@ -867,7 +903,13 @@ var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events,
|
|
|
867
903
|
rekeysQueued += rekeys.length;
|
|
868
904
|
const saving = previous.then(async () => {
|
|
869
905
|
await saveRekeys(rekeys, round);
|
|
870
|
-
|
|
906
|
+
return attempt(operation, async (opened) => {
|
|
907
|
+
const { batch: kept, skipped } = await limited(opened, batch);
|
|
908
|
+
await fill(opened, account, kept);
|
|
909
|
+
if (skipped.size > 0)
|
|
910
|
+
await opened.chats.recordHistorySkips(account, skipped);
|
|
911
|
+
noteLimited(skipped);
|
|
912
|
+
});
|
|
871
913
|
});
|
|
872
914
|
previous = saving;
|
|
873
915
|
pending?.add(saving);
|
|
@@ -877,10 +919,11 @@ var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events,
|
|
|
877
919
|
pending?.delete(saving);
|
|
878
920
|
rekeysOnly.delete(saving);
|
|
879
921
|
});
|
|
880
|
-
onBatch(batch);
|
|
922
|
+
void onBatch(batch, saving);
|
|
923
|
+
return saving;
|
|
881
924
|
};
|
|
882
925
|
}, "saveBatches");
|
|
883
|
-
|
|
926
|
+
const wrapped = throughWrapper(messenger, {
|
|
884
927
|
...messenger.forumState ? {
|
|
885
928
|
forumState: /* @__PURE__ */ __name(async (chatId) => {
|
|
886
929
|
const state = await capability(messenger, "forumState", "read forum settings")(chatId);
|
|
@@ -1101,7 +1144,54 @@ var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events,
|
|
|
1101
1144
|
return sent;
|
|
1102
1145
|
}, "send")
|
|
1103
1146
|
});
|
|
1147
|
+
const chatOf2 = /* @__PURE__ */ __name(async (typed) => {
|
|
1148
|
+
const named = chatReferenceOf(typed, account.provider);
|
|
1149
|
+
if (!named)
|
|
1150
|
+
return typed;
|
|
1151
|
+
let known;
|
|
1152
|
+
try {
|
|
1153
|
+
known = account.account;
|
|
1154
|
+
} catch {
|
|
1155
|
+
}
|
|
1156
|
+
await ensureAccount(named, { account: known, ...profile ? { profile: profile.name } : {} }, async (other) => {
|
|
1157
|
+
const opened = await store();
|
|
1158
|
+
return opened && profilesOnAccount(opened, profile?.app, account.provider)(other);
|
|
1159
|
+
});
|
|
1160
|
+
return named.chat;
|
|
1161
|
+
}, "chatOf");
|
|
1162
|
+
return withChatReferences(wrapped, chatOf2);
|
|
1104
1163
|
}, "stored");
|
|
1164
|
+
var TYPED_CHAT = [
|
|
1165
|
+
"resolve",
|
|
1166
|
+
"chat",
|
|
1167
|
+
"history",
|
|
1168
|
+
"around",
|
|
1169
|
+
"historyAfter",
|
|
1170
|
+
"historyBefore",
|
|
1171
|
+
"historyFrom",
|
|
1172
|
+
"topics",
|
|
1173
|
+
"topic",
|
|
1174
|
+
"topicHistory",
|
|
1175
|
+
"download",
|
|
1176
|
+
"transcribe",
|
|
1177
|
+
"scheduled",
|
|
1178
|
+
"admins",
|
|
1179
|
+
"chatEvents",
|
|
1180
|
+
"leave",
|
|
1181
|
+
"group",
|
|
1182
|
+
"officialChatStats"
|
|
1183
|
+
];
|
|
1184
|
+
var withChatReferences = /* @__PURE__ */ __name((adapter, chatOf2) => {
|
|
1185
|
+
const methods = adapter;
|
|
1186
|
+
const own = Object.fromEntries(TYPED_CHAT.flatMap((name) => {
|
|
1187
|
+
const method = methods[name];
|
|
1188
|
+
if (typeof method !== "function")
|
|
1189
|
+
return [];
|
|
1190
|
+
const call = /* @__PURE__ */ __name(async (typed, ...rest) => method.call(adapter, await chatOf2(typed), ...rest), "call");
|
|
1191
|
+
return [[name, call]];
|
|
1192
|
+
}));
|
|
1193
|
+
return throughWrapper(adapter, own);
|
|
1194
|
+
}, "withChatReferences");
|
|
1105
1195
|
var saveSent = /* @__PURE__ */ __name((opened, account, typed, message, options, into = message.chatId || typed) => opened.messages.saveMessages(account, into, [message], { ...options, typedChatId: typed }), "saveSent");
|
|
1106
1196
|
var storedChat = /* @__PURE__ */ __name(async (store, account, traits, reference) => {
|
|
1107
1197
|
const bound = store.forAccount(account);
|
|
@@ -1238,7 +1328,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1238
1328
|
}
|
|
1239
1329
|
}, "keep");
|
|
1240
1330
|
|
|
1241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
1242
1332
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
1243
1333
|
import { join as join4 } from "node:path";
|
|
1244
1334
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -1297,7 +1387,7 @@ var Pacer = class {
|
|
|
1297
1387
|
}
|
|
1298
1388
|
};
|
|
1299
1389
|
|
|
1300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
1301
1391
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
1302
1392
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
1303
1393
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -1416,7 +1506,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
1416
1506
|
});
|
|
1417
1507
|
}, "flooded");
|
|
1418
1508
|
|
|
1419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
1420
1510
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
1421
1511
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
1422
1512
|
const write = currentOperation();
|
|
@@ -1452,9 +1542,9 @@ var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
|
1452
1542
|
}, "timed");
|
|
1453
1543
|
const counted = /* @__PURE__ */ __name(async (operation, onItem, work, count) => {
|
|
1454
1544
|
const counts = {};
|
|
1455
|
-
await timed(operation, {}, () => work((item) => {
|
|
1545
|
+
await timed(operation, {}, () => work((item, ...rest) => {
|
|
1456
1546
|
count(item, counts);
|
|
1457
|
-
onItem(item);
|
|
1547
|
+
return onItem(item, ...rest);
|
|
1458
1548
|
}), () => ({ counts }));
|
|
1459
1549
|
}, "counted");
|
|
1460
1550
|
const mint = messenger.newSendId;
|
|
@@ -1515,7 +1605,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1515
1605
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1516
1606
|
}, "byPart");
|
|
1517
1607
|
|
|
1518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1519
1609
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1520
1610
|
let opened;
|
|
1521
1611
|
return {
|
|
@@ -1693,7 +1783,8 @@ var connected = /* @__PURE__ */ __name((connection, { app, provider, name, delet
|
|
|
1693
1783
|
rekeyed: /* @__PURE__ */ __name((from, to) => rekeyRecipients(app, settings.profile, env, renderer.warn, from, to), "rekeyed"),
|
|
1694
1784
|
recipientIds: /* @__PURE__ */ __name(() => (new RecipientList(recipientsPathFor(app, settings.profile, env), app.command).read() ?? []).flatMap((recipient) => [recipient.id, ...recipient.partnerId ? [recipient.partnerId] : []]), "recipientIds"),
|
|
1695
1785
|
...history === "store" ? { namesFromStore: savedChatId ? { savedChatId } : {} } : {},
|
|
1696
|
-
...unreadCounts === "store" ? { countsUnread: true } : {}
|
|
1786
|
+
...unreadCounts === "store" ? { countsUnread: true } : {},
|
|
1787
|
+
...history === "store" && settings.historyLimits ? { historyLimits: settings.historyLimits, command: `${app.command} ${settings.profile}` } : {}
|
|
1697
1788
|
});
|
|
1698
1789
|
const passives = history === "store" && self !== null && !watching ? passivesOf(saving).map((passive) => listened(passive, events, renderer.warn, closeWaitMs)) : [];
|
|
1699
1790
|
return {
|
|
@@ -1855,6 +1946,7 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1855
1946
|
// Turning recording off by name (--no-record, or record: false) keeps no search history either.
|
|
1856
1947
|
history: base.settings.record,
|
|
1857
1948
|
searchCatchUp: base.settings.searchCatchUp,
|
|
1949
|
+
...base.settings.historyLimits ? { historyLimits: base.settings.historyLimits } : {},
|
|
1858
1950
|
pictures: base.settings.pictureSearch,
|
|
1859
1951
|
reranker: base.settings.searchReranker,
|
|
1860
1952
|
guard,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S6S3KVJI.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
11
11
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
12
12
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
13
13
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
PRAGMAS
|
|
5
|
+
} from "./chunk-BLT3LR3U.js";
|
|
3
6
|
import {
|
|
4
7
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S6S3KVJI.js";
|
|
6
9
|
import {
|
|
7
10
|
__name
|
|
8
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
12
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
-
var PRAGMAS = `
|
|
12
|
-
PRAGMA busy_timeout = 5000;
|
|
13
|
-
PRAGMA journal_mode = WAL;
|
|
14
|
-
PRAGMA foreign_keys = ON;
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
// 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-warning.js
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
18
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
19
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
20
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -35,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
35
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
36
32
|
}, "isSqliteWarning");
|
|
37
33
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
39
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
40
36
|
const database = await openFile(path);
|
|
41
37
|
try {
|
|
@@ -48,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
44
|
}, "openCache");
|
|
49
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-HGBEHQI3.js");
|
|
52
48
|
return await openWithBunSqlite(path);
|
|
53
49
|
}, "openUnderBun");
|
|
54
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
51
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-SYZUTVPC.js");
|
|
57
53
|
return openWithNodeSqlite(path);
|
|
58
54
|
}, "openUnderNode");
|
|
59
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -90,7 +86,6 @@ var storeCapable = /* @__PURE__ */ __name(() => {
|
|
|
90
86
|
}, "storeCapable");
|
|
91
87
|
|
|
92
88
|
export {
|
|
93
|
-
PRAGMAS,
|
|
94
89
|
quietSqliteWarning,
|
|
95
90
|
openCache,
|
|
96
91
|
openFile,
|
|
@@ -2,24 +2,26 @@ 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-P2G4KGTR.js";
|
|
6
6
|
import {
|
|
7
7
|
inputPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7JMBEPW2.js";
|
|
9
9
|
import {
|
|
10
|
-
CliError,
|
|
11
10
|
indent
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TFDVFD4N.js";
|
|
12
|
+
import {
|
|
13
|
+
CliError
|
|
14
|
+
} from "./chunk-S6S3KVJI.js";
|
|
13
15
|
import {
|
|
14
16
|
__name
|
|
15
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
18
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/checks.js
|
|
18
20
|
var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
|
|
19
21
|
var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
|
|
20
22
|
var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
|
|
21
23
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/markdown.js
|
|
23
25
|
var MARKERS = [
|
|
24
26
|
["**", "bold"],
|
|
25
27
|
["~~", "strike"],
|
|
@@ -65,7 +67,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
|
|
|
65
67
|
return end;
|
|
66
68
|
}, "closing");
|
|
67
69
|
|
|
68
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
|
|
69
71
|
var STYLES = [
|
|
70
72
|
["**", "bold"],
|
|
71
73
|
["__", "underline"],
|
|
@@ -225,7 +227,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
|
|
|
225
227
|
return validateFormattedText(result);
|
|
226
228
|
}, "parseMarkdownSpans");
|
|
227
229
|
|
|
228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/polls.js
|
|
229
231
|
var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
230
232
|
const cast = votes.filter((vote) => vote.answers.length > 0);
|
|
231
233
|
const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
|
|
@@ -1874,7 +1876,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
1874
1876
|
var qrcode_default = qrcode;
|
|
1875
1877
|
var stringToBytes = qrcode.stringToBytes;
|
|
1876
1878
|
|
|
1877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/terminal/qr.js
|
|
1878
1880
|
var QUIET_ZONE = 4;
|
|
1879
1881
|
var BLACK_ON_WHITE = "\x1B[30;107m";
|
|
1880
1882
|
var RESET = "\x1B[0m";
|
|
@@ -1921,7 +1923,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
|
|
|
1921
1923
|
return lines.join("\n");
|
|
1922
1924
|
}, "plainQr");
|
|
1923
1925
|
|
|
1924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
|
|
1925
1927
|
var MARGIN = 2;
|
|
1926
1928
|
var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
|
|
1927
1929
|
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";
|
|
@@ -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-S6S3KVJI.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/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 ?? {};
|
|
@@ -2,21 +2,25 @@ 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-L7IK4FOA.js";
|
|
6
|
+
import {
|
|
7
|
+
resolvePaths
|
|
8
|
+
} from "./chunk-TFDVFD4N.js";
|
|
9
|
+
import {
|
|
10
|
+
CliError
|
|
11
|
+
} from "./chunk-S6S3KVJI.js";
|
|
6
12
|
import {
|
|
7
|
-
CliError,
|
|
8
|
-
resolvePaths,
|
|
9
13
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UYV2JGLQ.js";
|
|
11
15
|
import {
|
|
12
16
|
__name
|
|
13
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
18
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
16
20
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
17
21
|
import { dirname, join, resolve } from "node:path";
|
|
18
22
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
20
24
|
var DEFAULT_TASK_CATEGORIES = [
|
|
21
25
|
{
|
|
22
26
|
name: "taxes",
|
|
@@ -771,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
771
775
|
}
|
|
772
776
|
}, "storedTaskCategories");
|
|
773
777
|
|
|
774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
775
779
|
var SECTION = "task_categories";
|
|
776
780
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
777
781
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|