@wirecat/zoom-cli 0.68.0 → 0.69.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-R66UM3HM.js → all-profiles-ZQWPCJEK.js} +7 -7
- package/dist/bundle/{answer-policy-UCGUO53A.js → answer-policy-VBDYLUXI.js} +52 -52
- package/dist/bundle/{anthropic-4ZI2BPLG.js → anthropic-7FUQ2HYJ.js} +3 -3
- package/dist/bundle/{app-server-64O5IQI5.js → app-server-DNPE2EQB.js} +46 -46
- package/dist/bundle/{bun-HUHQD76Z.js → bun-ZVQFCFCC.js} +2 -2
- package/dist/bundle/{bun-sqlite-VOVHPTIF.js → bun-sqlite-EB2UMUPJ.js} +2 -2
- package/dist/bundle/{chunk-EZRPSZJS.js → chunk-2SYWVIQJ.js} +1 -1
- package/dist/bundle/chunk-37B7A4RP.js +66 -0
- package/dist/bundle/{chunk-YJY3W2ZT.js → chunk-3TPRYZUW.js} +18 -15
- package/dist/bundle/{chunk-K67V24AT.js → chunk-4APZQYCH.js} +3 -3
- package/dist/bundle/{chunk-7QNJICKZ.js → chunk-52DCABMU.js} +23 -23
- package/dist/bundle/{chunk-KUB2U5NT.js → chunk-5GOE6PQK.js} +5 -5
- package/dist/bundle/{chunk-77KFLU5F.js → chunk-5H6VTEEC.js} +2 -2
- package/dist/bundle/{chunk-PIHBD3YS.js → chunk-5ZF6QVMC.js} +4 -4
- package/dist/bundle/{chunk-FMQS7HCC.js → chunk-5ZJXKASF.js} +249 -8
- package/dist/bundle/chunk-6AMMTXEA.js +12473 -0
- package/dist/bundle/{chunk-SRP6SFFD.js → chunk-6KMTQX3D.js} +1 -1
- package/dist/bundle/{chunk-2T6XHWDX.js → chunk-6N2D6JGX.js} +1 -1
- package/dist/bundle/{chunk-R7LFGEDE.js → chunk-6TICX3MN.js} +2 -2
- package/dist/bundle/{chunk-W42BJ65M.js → chunk-B5D7NZI7.js} +1 -1
- package/dist/bundle/{chunk-EWIBLDQQ.js → chunk-C6TEYKXV.js} +6 -6
- package/dist/bundle/{chunk-32FPA7P2.js → chunk-CKK6JOC4.js} +1 -1
- package/dist/bundle/{chunk-JRCYFCPL.js → chunk-CUZHKYC2.js} +19 -19
- package/dist/bundle/{chunk-355PHJYX.js → chunk-DHD25JII.js} +1 -1
- package/dist/bundle/{chunk-PUTGTW6W.js → chunk-EPPSMCEV.js} +1 -1
- package/dist/bundle/{chunk-AYEVBAGO.js → chunk-F5DYBWH7.js} +143 -22
- package/dist/bundle/{chunk-AJ7CMUGD.js → chunk-G6IX2MD2.js} +172 -143
- package/dist/bundle/{chunk-VLD7Y4SY.js → chunk-GR3QDHBU.js} +4 -4
- package/dist/bundle/{chunk-DGNPJGD3.js → chunk-GXDOTUUO.js} +8 -14
- package/dist/bundle/{chunk-5JAYUG3X.js → chunk-H3MFBYTQ.js} +2 -2
- package/dist/bundle/{chunk-TDGZMC6K.js → chunk-HC56J5LB.js} +57 -53
- package/dist/bundle/{chunk-4YFJYSSK.js → chunk-HSI7YOYK.js} +45 -29
- package/dist/bundle/{chunk-LYWUG43B.js → chunk-HW5QTRFF.js} +31 -31
- package/dist/bundle/{chunk-65T3PU75.js → chunk-IEC4E65G.js} +1 -1
- package/dist/bundle/{chunk-L4WVLRXM.js → chunk-IPBZKUC3.js} +3 -3
- package/dist/bundle/{chunk-TN3FH2GQ.js → chunk-JHFP3Z5S.js} +7 -7
- package/dist/bundle/{chunk-3BRV2YU2.js → chunk-JX5JJZC3.js} +2 -2
- package/dist/bundle/{chunk-YTF2WPV4.js → chunk-JZ4YOAHA.js} +679 -496
- package/dist/bundle/{chunk-474WF55M.js → chunk-KX5MZVPX.js} +38 -25
- package/dist/bundle/{chunk-TUNQ6NE2.js → chunk-L62EJDNZ.js} +2 -2
- package/dist/bundle/{chunk-6TJ62LZQ.js → chunk-LDRQ5NAP.js} +3 -3
- package/dist/bundle/{chunk-7DUYFITC.js → chunk-LEA4BGK7.js} +9 -9
- package/dist/bundle/{chunk-P2TISY3R.js → chunk-LQX74VKG.js} +1 -1
- package/dist/bundle/{chunk-RP3U3J53.js → chunk-MJMVIFSC.js} +6 -6
- package/dist/bundle/{chunk-A63ZFOQJ.js → chunk-MNOVYS43.js} +3 -3
- package/dist/bundle/{chunk-YQRNFG2E.js → chunk-MOTKS7XG.js} +7176 -13499
- package/dist/bundle/{chunk-6T3P226D.js → chunk-MSDCZ6GT.js} +4 -4
- package/dist/bundle/{chunk-DVA6MQWK.js → chunk-MVDPZRFE.js} +1 -1
- package/dist/bundle/{chunk-LBOSTBAY.js → chunk-O7L44JK2.js} +2031 -1900
- package/dist/bundle/{chunk-Y5LP5SHV.js → chunk-OSBHEM2A.js} +9 -9
- package/dist/bundle/{chunk-RRYUD2EF.js → chunk-QLGG7S6F.js} +2 -2
- package/dist/bundle/{chunk-ZRD3NDOX.js → chunk-QW5VPZEH.js} +1 -1
- package/dist/bundle/{chunk-LV7QRR5S.js → chunk-QXM7S3Y3.js} +5 -5
- package/dist/bundle/{chunk-US5C3WAY.js → chunk-R2ULMWB4.js} +27 -27
- package/dist/bundle/{chunk-QXTREL2M.js → chunk-R3JYPY3J.js} +2 -2
- package/dist/bundle/{chunk-JO4YADNV.js → chunk-RPQ3JOD3.js} +3 -3
- package/dist/bundle/{chunk-4TLPOY22.js → chunk-S2EAGDS7.js} +10 -10
- package/dist/bundle/{chunk-SSPSNSC5.js → chunk-SQT47CFW.js} +1 -1
- package/dist/bundle/{chunk-HXOAPH47.js → chunk-SZ3Z4ZNO.js} +1 -1
- package/dist/bundle/{chunk-DWSUSWAX.js → chunk-T5X4LGXE.js} +130 -11
- package/dist/bundle/{chunk-2OSBCYJT.js → chunk-TFFEFEG2.js} +16 -16
- package/dist/bundle/{chunk-EH5QGQFR.js → chunk-TKXLWFM2.js} +2 -2
- package/dist/bundle/{chunk-AVEIQMHZ.js → chunk-TN77LX6W.js} +1 -1
- package/dist/bundle/{chunk-77I67HWF.js → chunk-TWIC6JJG.js} +7 -7
- package/dist/bundle/{chunk-TZUKDM72.js → chunk-UEZ6URJR.js} +10 -10
- package/dist/bundle/{chunk-EJDV5IIF.js → chunk-V4MM6GST.js} +1 -1
- package/dist/bundle/{chunk-BSM43OMN.js → chunk-V74QFMSL.js} +1 -1
- package/dist/bundle/{chunk-6CJ7NHIP.js → chunk-WY4NYPPS.js} +12 -12
- package/dist/bundle/{chunk-FNQASORM.js → chunk-XITUFTON.js} +1 -1
- package/dist/bundle/{chunk-GOXDBCDM.js → chunk-XJBYGMZ4.js} +107 -63
- package/dist/bundle/{chunk-UU5PLDRA.js → chunk-XRZDYWF6.js} +2 -2
- package/dist/bundle/{chunk-6XO7RTJY.js → chunk-Z6TTGTMU.js} +92 -5
- package/dist/bundle/{chunk-UDJTRFRV.js → chunk-ZRHMB3LQ.js} +1 -1
- package/dist/bundle/{cli-VQJ7ZRYR.js → cli-P3BZUE6S.js} +67 -53
- package/dist/bundle/command-contract-TOLB32NJ.js +41 -0
- package/dist/bundle/config-4KLLIADY.js +90 -0
- package/dist/bundle/{decode-L3ENO2XH.js → decode-QWOQXM7M.js} +2 -2
- package/dist/bundle/{dist-WQLS7U23.js → dist-OUE4MF37.js} +79 -19
- package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-65IMPY43.js} +2 -2
- package/dist/bundle/{embed-37MYTCU7.js → embed-4IULBCKL.js} +3 -3
- package/dist/bundle/{embedder-GNGHVJAO.js → embedder-JW4W6IZI.js} +6 -6
- package/dist/bundle/{first-run-NR5JKYP3.js → first-run-CH6C674R.js} +5 -5
- package/dist/bundle/first-screen-OCAW5ZN6.js +39 -0
- package/dist/bundle/{instructions-P72XX4AK.js → instructions-G5QIH2TM.js} +1 -1
- package/dist/bundle/{main-QYFCYSTW.js → main-O4ZJIEWP.js} +12 -12
- package/dist/bundle/{meetings-66UQINKI.js → meetings-77CCAVYD.js} +1 -1
- package/dist/bundle/{node-ZB4RNICS.js → node-E6VQHU4Y.js} +2 -2
- package/dist/bundle/{node-sqlite-XPRKBDF3.js → node-sqlite-RJZ4PGLD.js} +3 -3
- package/dist/bundle/{oauth-WJRDUU5J.js → oauth-F4JKNRW4.js} +4 -4
- package/dist/bundle/{open-S2YSIEOW.js → open-NYOGMIAA.js} +2 -2
- package/dist/bundle/{openai-CRNZFNZD.js → openai-5U6EQTFQ.js} +8 -8
- package/dist/bundle/{process-XNN4WG6N.js → process-OBWUKBMX.js} +1 -1
- package/dist/bundle/{program-BRPJKRCX.js → program-MU7DEJTO.js} +61 -61
- package/dist/bundle/{prompt-7RQOL25I.js → prompt-2QWQTHWT.js} +2 -2
- package/dist/bundle/{recognize-N5WADGQB.js → recognize-SNUNTUC3.js} +1 -1
- package/dist/bundle/{remote-WHYV35IF.js → remote-2CTCIQGF.js} +4 -4
- package/dist/bundle/{rerank-FBMZVWSH.js → rerank-XDA7NJNH.js} +4 -4
- package/dist/bundle/{run-log-TOCHREH2.js → run-log-NSG3DJVX.js} +50 -50
- package/dist/bundle/{serve-4BABX4WS.js → serve-TWQFHOV2.js} +6 -6
- package/dist/bundle/{server-CDVI6LOB.js → server-RIQ6HMH2.js} +38 -38
- package/dist/bundle/server-XO6XQQTJ.js +72 -0
- package/dist/bundle/{services-PIY33I7R.js → services-NKZQJQIV.js} +30 -24
- package/dist/bundle/{speech-LS5Q4FL2.js → speech-ZOB76SXA.js} +10 -10
- package/dist/bundle/{state-YUX5R2R7.js → state-7YYEIXQ5.js} +3 -3
- package/dist/bundle/{store-BD7HAXAA.js → store-E6RTSSNR.js} +21 -12
- package/dist/bundle/{store-ERMGBF2B.js → store-OX4HRBLO.js} +45 -14
- package/dist/bundle/store-connection-55QPNUDS.js +83 -0
- package/dist/bundle/store-maintenance-command-Q5MSU6OK.js +62 -0
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-XJXZ4ZBX.js → zoom-app-TSI2MGVK.js} +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-NUJMJQXV.js +0 -787
- package/dist/bundle/chunk-YOAEZSDG.js +0 -22
- package/dist/bundle/command-contract-JPUWWYIV.js +0 -41
- package/dist/bundle/config-YGLLR77A.js +0 -90
- package/dist/bundle/first-screen-RCR7ATO2.js +0 -39
- package/dist/bundle/server-XOFQKFVO.js +0 -72
- package/dist/bundle/store-connection-JBR6CMTJ.js +0 -83
- package/dist/bundle/store-maintenance-command-I5DUSO2C.js +0 -62
|
@@ -23,16 +23,20 @@ import {
|
|
|
23
23
|
tagMemberIds,
|
|
24
24
|
thingOf,
|
|
25
25
|
write
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MOTKS7XG.js";
|
|
27
27
|
import {
|
|
28
28
|
fold
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TWIC6JJG.js";
|
|
30
30
|
import {
|
|
31
|
+
ADDED_PROVIDER,
|
|
31
32
|
filesAccountSql,
|
|
32
33
|
folderProviderOf,
|
|
33
34
|
folderProviderSql,
|
|
34
35
|
isDocumentAccountProvider
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6AMMTXEA.js";
|
|
37
|
+
import {
|
|
38
|
+
damagedFile
|
|
39
|
+
} from "./chunk-37B7A4RP.js";
|
|
36
40
|
import {
|
|
37
41
|
CliError
|
|
38
42
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -40,13 +44,14 @@ import {
|
|
|
40
44
|
__name
|
|
41
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
42
46
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/damage.js
|
|
44
48
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
45
49
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
46
50
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
47
51
|
var WIRECAT_UNITS = ["memo-*", "mail-*", "tg-*", "max-*", "wirecat-*"];
|
|
48
|
-
var
|
|
49
|
-
|
|
52
|
+
var seen = /* @__PURE__ */ __name((mark) => `\`${mark.command}\` found the store damaged at ${mark.at} (${mark.error})`, "seen");
|
|
53
|
+
var explainDamage = /* @__PURE__ */ __name((health, command, mark = null) => {
|
|
54
|
+
if (health.ok && !mark)
|
|
50
55
|
return null;
|
|
51
56
|
const indexNames = (health.searchIndexes ?? []).map((index) => index.name);
|
|
52
57
|
const badIndexes = (health.searchIndexes ?? []).filter((index) => !index.ok).map((index) => index.name);
|
|
@@ -55,12 +60,13 @@ var explainDamage = /* @__PURE__ */ __name((health, command) => {
|
|
|
55
60
|
const derived = [.../* @__PURE__ */ new Set([...tables.filter((table) => isDerivedTable(table, indexNames)), ...badIndexes])];
|
|
56
61
|
const unopened = health.error !== void 0;
|
|
57
62
|
const json = (health.invalidJson ?? []).map(({ table, column }) => `${table}.${column}`);
|
|
58
|
-
const
|
|
63
|
+
const checked = health.ok ? `${seen(mark)}; the quick check reads too little to see it, and a deep check that passes clears it` : unopened ? `the store file cannot be opened: ${health.error}` : health.checked === "quick" ? "the store file's header or schema is damaged" : `the store file is damaged: ${health.problems ?? 0} problems` + (sources.length ? ` in the data of ${named(sources)}` : "") + (derived.length ? `${sources.length ? ", and" : " in"} the search data of ${named(derived)}` : "") + (json.length ? `; values that are not valid JSON in ${named(json)}` : "");
|
|
64
|
+
const what = mark && !health.ok ? `${checked}; ${seen(mark)}` : checked;
|
|
59
65
|
const impact = [
|
|
60
66
|
...sources.length ? [`some rows of ${named(sources)} cannot be read; a recovery keeps every row it can read and names the rest`] : [],
|
|
61
67
|
...derived.length ? [`searches may miss results or fail; ${named(derived)} hold nothing that is not elsewhere, and are rebuilt`] : [],
|
|
62
68
|
...json.length ? [`a read of a row with a broken JSON value fails ("malformed JSON"); a recovery clears those values`] : [],
|
|
63
|
-
"reads that do not touch a damaged page work; a write that touches one fails until the store is recovered"
|
|
69
|
+
mark ? "reads that do not touch a damaged page work; every command that writes the store refuses until it is recovered" : "reads that do not touch a damaged page work; a write that touches one fails until the store is recovered"
|
|
64
70
|
];
|
|
65
71
|
return {
|
|
66
72
|
what,
|
|
@@ -73,7 +79,7 @@ var explainDamage = /* @__PURE__ */ __name((health, command) => {
|
|
|
73
79
|
`journalctl --user ${WIRECAT_UNITS.map((unit) => `-u '${unit}'`).join(" ")} --since -14d | grep -i -e malformed -e corrupt -e 'disk full'`,
|
|
74
80
|
"journalctl -k --since -14d | grep -i -e 'I/O error' -e nvme -e ata",
|
|
75
81
|
`df -h ${health.path.replace(/\/[^/]*$/, "")}`,
|
|
76
|
-
...health.checked === "quick" ? [`${command} store recover`] : []
|
|
82
|
+
...health.checked === "quick" || health.ok ? [`${command} store recover`] : []
|
|
77
83
|
],
|
|
78
84
|
impact,
|
|
79
85
|
externalUnaffected: "only this computer's copy is damaged: Telegram, MAX, the mail servers and Google Drive keep their own data, so whatever is lost here can be fetched again by a sync",
|
|
@@ -85,11 +91,11 @@ var explainDamage = /* @__PURE__ */ __name((health, command) => {
|
|
|
85
91
|
};
|
|
86
92
|
}, "explainDamage");
|
|
87
93
|
|
|
88
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
94
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
89
95
|
import { realpathSync, statSync } from "node:fs";
|
|
90
96
|
import { resolve } from "node:path";
|
|
91
97
|
|
|
92
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
98
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
|
|
93
99
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
94
100
|
const creatable = /* @__PURE__ */ new Set();
|
|
95
101
|
let people = 0, identities = 0;
|
|
@@ -152,11 +158,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
152
158
|
}
|
|
153
159
|
}, "copyPeople");
|
|
154
160
|
|
|
155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
|
|
156
162
|
import { createHash } from "node:crypto";
|
|
157
163
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
158
164
|
|
|
159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
|
|
160
166
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
161
167
|
const colon = collection.indexOf(":");
|
|
162
168
|
const provider = collection.slice(0, colon);
|
|
@@ -200,7 +206,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
200
206
|
};
|
|
201
207
|
}, "currentCollection");
|
|
202
208
|
|
|
203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
|
|
204
210
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
205
211
|
const mappings = /* @__PURE__ */ new Map();
|
|
206
212
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -367,7 +373,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
367
373
|
};
|
|
368
374
|
}, "planTransfer");
|
|
369
375
|
|
|
370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
371
377
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
372
378
|
var MAX_ENTITIES = 1e3;
|
|
373
379
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -509,7 +515,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
509
515
|
item.bot = { name: String(bot.name), kind: String(bot.kind) };
|
|
510
516
|
}
|
|
511
517
|
if (thing.type === "document") {
|
|
512
|
-
const doc = database.prepare(`SELECT a.provider,a.external_id AS account,a.name,d.external_id,d.body,d.content_hash,d.deleted_at FROM documents d JOIN accounts a ON a.id=d.account_id WHERE d.id=? AND ${filesAccountSql("a.provider")}`).get(thing.id);
|
|
518
|
+
const doc = database.prepare(`SELECT a.provider,a.external_id AS account,a.name,d.external_id,d.body,d.content_hash,d.deleted_at FROM documents d JOIN accounts a ON a.id=d.account_id WHERE d.id=? AND ${filesAccountSql("a.provider")} AND a.provider<>'${ADDED_PROVIDER}'`).get(thing.id);
|
|
513
519
|
if (doc) {
|
|
514
520
|
item.collection = collectionNameOf({ provider: doc.provider, external_id: doc.account, name: doc.name });
|
|
515
521
|
item.external_id = String(doc.external_id);
|
|
@@ -529,7 +535,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
529
535
|
};
|
|
530
536
|
}), "transferSnapshot");
|
|
531
537
|
|
|
532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
|
|
533
539
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
534
540
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
535
541
|
return provider ?? null;
|
|
@@ -701,7 +707,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
701
707
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
702
708
|
}, "remapEntity");
|
|
703
709
|
|
|
704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
705
711
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
706
712
|
for (const value of [options.source, options.destination, options.collection])
|
|
707
713
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -754,6 +760,9 @@ var openPreviewTarget = /* @__PURE__ */ __name(async (path) => {
|
|
|
754
760
|
}, "openPreviewTarget");
|
|
755
761
|
var previewDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
|
|
756
762
|
const location = locations(options);
|
|
763
|
+
return damagedFile([location.source, location.destination], () => previewWith(location, options));
|
|
764
|
+
}, "previewDocumentTransfer");
|
|
765
|
+
var previewWith = /* @__PURE__ */ __name(async (location, options) => {
|
|
757
766
|
const source = await openSource(location.source);
|
|
758
767
|
try {
|
|
759
768
|
const target = await openPreviewTarget(location.destination);
|
|
@@ -765,11 +774,14 @@ var previewDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
|
|
|
765
774
|
} finally {
|
|
766
775
|
source.database.close();
|
|
767
776
|
}
|
|
768
|
-
}, "
|
|
777
|
+
}, "previewWith");
|
|
769
778
|
var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
|
|
770
779
|
if (!/^[a-f0-9]{64}$/.test(options.expected_fingerprint))
|
|
771
780
|
throw new CliError("validation_error", "apply requires the fingerprint returned by a transfer preview");
|
|
772
781
|
const location = locations(options);
|
|
782
|
+
return damagedFile([location.source, location.destination], () => applyWith(location, options));
|
|
783
|
+
}, "applyDocumentTransfer");
|
|
784
|
+
var applyWith = /* @__PURE__ */ __name(async (location, options) => {
|
|
773
785
|
const source = await openSource(location.source);
|
|
774
786
|
try {
|
|
775
787
|
const snapshot = transferSnapshot(source.database, options.collection);
|
|
@@ -795,9 +807,9 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
|
|
|
795
807
|
} finally {
|
|
796
808
|
source.database.close();
|
|
797
809
|
}
|
|
798
|
-
}, "
|
|
810
|
+
}, "applyWith");
|
|
799
811
|
|
|
800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/health.js
|
|
801
813
|
import { existsSync, statSync as statSync2 } from "node:fs";
|
|
802
814
|
var JSON_COLUMNS = {
|
|
803
815
|
accounts: ["settings"],
|
|
@@ -939,7 +951,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
939
951
|
}
|
|
940
952
|
}, "storeHealth");
|
|
941
953
|
|
|
942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
943
955
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
944
956
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
945
957
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -953,15 +965,19 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
953
965
|
if (typeof options.project !== "string" || !/^project:[1-9]\d*$/.test(options.project) || !Number.isSafeInteger(Number(options.project.slice(8))))
|
|
954
966
|
throw new CliError("validation_error", "project preview project is a project:<safe integer id> reference");
|
|
955
967
|
const budget = new SnapshotBudget(options.maxReadBytes ?? 4 * 1024 * 1024);
|
|
956
|
-
const
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
968
|
+
const target = options.target;
|
|
969
|
+
const project2 = options.project;
|
|
970
|
+
return damagedFile([target], async () => {
|
|
971
|
+
const context = await openStoreContext({ path: target, env: options.env, readOnly: true });
|
|
972
|
+
try {
|
|
973
|
+
return previewAnnotationSnapshot(context.database, Number(project2.slice(8)), snapshot, options.bindings, budget);
|
|
974
|
+
} finally {
|
|
975
|
+
context.database.close();
|
|
976
|
+
}
|
|
977
|
+
});
|
|
962
978
|
}, "previewProjectAnnotationSnapshot");
|
|
963
979
|
|
|
964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
965
981
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
966
982
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
967
983
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
registerPrompts,
|
|
14
14
|
stdinFieldOf,
|
|
15
15
|
syncsFirst
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KX5MZVPX.js";
|
|
17
17
|
import {
|
|
18
18
|
answeredWire
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SZ3Z4ZNO.js";
|
|
20
20
|
import {
|
|
21
21
|
BinaryResource,
|
|
22
22
|
Picture,
|
|
@@ -37,45 +37,45 @@ import {
|
|
|
37
37
|
tool,
|
|
38
38
|
toolKey,
|
|
39
39
|
toolsFromCommands
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3TPRYZUW.js";
|
|
41
41
|
import {
|
|
42
42
|
agentJson,
|
|
43
43
|
skillResource
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LEA4BGK7.js";
|
|
45
45
|
import {
|
|
46
46
|
StdioServerTransport,
|
|
47
47
|
callerOf,
|
|
48
48
|
callingAgent,
|
|
49
49
|
serveStdio
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-XRZDYWF6.js";
|
|
51
51
|
import {
|
|
52
52
|
instructions
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-ZRHMB3LQ.js";
|
|
54
54
|
import {
|
|
55
55
|
McpServer,
|
|
56
56
|
ResourceTemplate
|
|
57
57
|
} from "./chunk-5D4AEUVA.js";
|
|
58
58
|
import {
|
|
59
59
|
mcpHttpMarker
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-MSDCZ6GT.js";
|
|
61
61
|
import {
|
|
62
62
|
connectedFor,
|
|
63
63
|
guardFor
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-R2ULMWB4.js";
|
|
65
65
|
import {
|
|
66
66
|
lackedNeed,
|
|
67
67
|
wholeList
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-TFFEFEG2.js";
|
|
69
69
|
import {
|
|
70
70
|
capability,
|
|
71
71
|
dateWindow,
|
|
72
72
|
imageSize,
|
|
73
73
|
servicesFor,
|
|
74
74
|
storedDeps
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-JZ4YOAHA.js";
|
|
76
76
|
import {
|
|
77
77
|
findCommand
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-4APZQYCH.js";
|
|
79
79
|
import {
|
|
80
80
|
DEFAULT_OUTPUT_BYTES,
|
|
81
81
|
changesAuthorityAt,
|
|
@@ -88,30 +88,30 @@ import {
|
|
|
88
88
|
rootOf2 as rootOf,
|
|
89
89
|
sealed,
|
|
90
90
|
snakeKeys
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-G6IX2MD2.js";
|
|
92
92
|
import {
|
|
93
93
|
readOnlyLockOf
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-TN77LX6W.js";
|
|
95
95
|
import {
|
|
96
96
|
withCaller
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-MJMVIFSC.js";
|
|
98
98
|
import {
|
|
99
99
|
typedCommand
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import {
|
|
102
|
-
isCliFailure
|
|
103
|
-
} from "./chunk-YOAEZSDG.js";
|
|
100
|
+
} from "./chunk-CUZHKYC2.js";
|
|
104
101
|
import {
|
|
105
102
|
levelFor,
|
|
106
103
|
readKeysForCommand
|
|
107
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-IEC4E65G.js";
|
|
108
105
|
import {
|
|
109
106
|
openStore,
|
|
110
107
|
pdfPreviewLimits
|
|
111
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-MOTKS7XG.js";
|
|
109
|
+
import {
|
|
110
|
+
isCliFailure
|
|
111
|
+
} from "./chunk-37B7A4RP.js";
|
|
112
112
|
import {
|
|
113
113
|
warmEmbedders
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-5GOE6PQK.js";
|
|
115
115
|
import {
|
|
116
116
|
timezoneOf
|
|
117
117
|
} from "./chunk-B6JMVB6R.js";
|
|
@@ -141,10 +141,10 @@ import {
|
|
|
141
141
|
__name
|
|
142
142
|
} from "./chunk-ZVVMGPBJ.js";
|
|
143
143
|
|
|
144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
145
145
|
import { randomUUID } from "node:crypto";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
148
148
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
149
149
|
let held;
|
|
150
150
|
return {
|
|
@@ -163,7 +163,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
163
163
|
};
|
|
164
164
|
}, "agentLog");
|
|
165
165
|
|
|
166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
167
167
|
var LISTED = 100;
|
|
168
168
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
169
169
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -201,7 +201,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
201
201
|
});
|
|
202
202
|
}, "registerResources");
|
|
203
203
|
|
|
204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
205
205
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
206
206
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
207
207
|
var MessengerSession = class {
|
|
@@ -276,7 +276,7 @@ var MessengerSession = class {
|
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
280
280
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
281
281
|
const _command = messenger.app.command;
|
|
282
282
|
return {
|
|
@@ -330,7 +330,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
330
330
|
};
|
|
331
331
|
}, "attachmentsTools");
|
|
332
332
|
|
|
333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
334
334
|
var PHOTO_LIMIT = 512 * 1024;
|
|
335
335
|
var IMAGE_TYPES = [
|
|
336
336
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -384,7 +384,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
384
384
|
return new Uint8Array(Buffer.concat(chunks));
|
|
385
385
|
}, "readUpTo");
|
|
386
386
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
388
388
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
389
389
|
stats_charts: tool({
|
|
390
390
|
title: "A chart from a chat's statistics",
|
|
@@ -421,14 +421,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
421
421
|
})
|
|
422
422
|
}), "statsTools");
|
|
423
423
|
|
|
424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
425
425
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
426
426
|
...messagesPhotoTools(messenger),
|
|
427
427
|
...attachmentsTools(messenger),
|
|
428
428
|
...statsTools(messenger)
|
|
429
429
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
430
430
|
|
|
431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
432
432
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
433
433
|
"streams",
|
|
434
434
|
"stdin",
|
|
@@ -752,7 +752,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
752
752
|
}, "serveOverStdio");
|
|
753
753
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
754
754
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
755
|
-
const { serveOverHttp } = await import("./serve-
|
|
755
|
+
const { serveOverHttp } = await import("./serve-TWQFHOV2.js");
|
|
756
756
|
const appName = messenger.app.command;
|
|
757
757
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
758
758
|
const listening = await serveOverHttp(build, {
|
|
@@ -7,7 +7,7 @@ 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.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/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");
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GR3QDHBU.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CKK6JOC4.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -15,7 +15,7 @@ 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.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -2,21 +2,21 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
encodeWav
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5H6VTEEC.js";
|
|
6
6
|
import {
|
|
7
7
|
SAMPLE_RATE,
|
|
8
8
|
toModelRate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MNOVYS43.js";
|
|
10
10
|
import {
|
|
11
11
|
OPENAI_URL
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JX5JJZC3.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENAI_TRANSCRIBE_MODEL,
|
|
15
15
|
VAD,
|
|
16
16
|
filesPresent,
|
|
17
17
|
modelsDirectory,
|
|
18
18
|
vadPath
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LDRQ5NAP.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_RETRY,
|
|
22
22
|
backoffMs
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
33
33
|
import { setTimeout as wait } from "node:timers/promises";
|
|
34
34
|
|
|
35
35
|
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
|
|
@@ -159,7 +159,7 @@ var statusToCode = /* @__PURE__ */ __name((status) => {
|
|
|
159
159
|
return "provider_error";
|
|
160
160
|
}, "statusToCode");
|
|
161
161
|
|
|
162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
163
163
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
164
164
|
var JOINED_SECONDS = 0.2;
|
|
165
165
|
var PAD_SECONDS = 0.2;
|
|
@@ -281,7 +281,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
281
281
|
return pieces;
|
|
282
282
|
}, "piecesOf");
|
|
283
283
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
284
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
284
|
+
const { openSpeechCutter } = await import("./recognize-SNUNTUC3.js");
|
|
285
285
|
return openSpeechCutter(vadModel);
|
|
286
286
|
}, "openCutter");
|
|
287
287
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -2,7 +2,7 @@ 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-5GOE6PQK.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -10,7 +10,7 @@ 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.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/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 = {
|