@wirecat/tg-cli 0.125.0 → 0.126.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/tg.js +2 -2
- package/dist/bundle/{adapter-H2LTOLOA.js → adapter-BXU3AVB7.js} +43 -43
- package/dist/bundle/{all-profiles-75HGEFL7.js → all-profiles-G5A6IROO.js} +6 -6
- package/dist/bundle/{anthropic-N54MKE4C.js → anthropic-SINVEVEM.js} +2 -2
- package/dist/bundle/{app-server-3N5INKKI.js → app-server-IHIQXPJF.js} +42 -38
- package/dist/bundle/{bot-api-V65KTEAH.js → bot-api-LGAVVYRM.js} +44 -44
- package/dist/bundle/{bot-history-TT2EAHEE.js → bot-history-5C35FGCD.js} +12 -12
- package/dist/bundle/{bun-LN4J7PA7.js → bun-2GK3YOP3.js} +2 -2
- package/dist/bundle/{bun-sqlite-6PDBFBUI.js → bun-sqlite-7DGADK3E.js} +3 -3
- package/dist/bundle/{chunk-FHPEUAHQ.js → chunk-2F2UMQMB.js} +164 -152
- package/dist/bundle/{chunk-SGHF75RQ.js → chunk-2LN6OJUB.js} +1 -1
- package/dist/bundle/{chunk-RZ7KBWDQ.js → chunk-4GR5YYGA.js} +2 -2
- package/dist/bundle/{chunk-VHD4V64E.js → chunk-5GINYFD4.js} +1 -1
- package/dist/bundle/{chunk-IN3NAFUN.js → chunk-5NLAGTWU.js} +7 -7
- package/dist/bundle/{chunk-GUPMDMFM.js → chunk-63DSHUNP.js} +5 -5
- package/dist/bundle/{chunk-HHG5FR5H.js → chunk-7FL2N6DM.js} +1 -1
- package/dist/bundle/{chunk-RX5GU7GQ.js → chunk-7UACPXDC.js} +494 -436
- package/dist/bundle/{chunk-GRDVBJCR.js → chunk-AA2NZAUT.js} +1 -1
- package/dist/bundle/{chunk-QVK7NF3A.js → chunk-ACLUVZ4I.js} +32 -28
- package/dist/bundle/{chunk-QYT6HDCL.js → chunk-AKUBJHE5.js} +1 -1
- package/dist/bundle/{chunk-DYOZ7CUV.js → chunk-AYEQMXRE.js} +1 -1
- package/dist/bundle/{chunk-VG3EQJYV.js → chunk-AZ7DSHQO.js} +31 -2
- package/dist/bundle/{chunk-AI2J3WJT.js → chunk-BSKYPHLB.js} +1 -1
- package/dist/bundle/{chunk-FUYCAROL.js → chunk-CK7DSGIK.js} +5 -5
- package/dist/bundle/{chunk-VUBSGQ2O.js → chunk-DGGAYHLN.js} +24 -22
- package/dist/bundle/{chunk-E4HDE5DN.js → chunk-F34EE5Y2.js} +2 -2
- package/dist/bundle/{chunk-AMPHPP4P.js → chunk-FYOHGIQP.js} +13 -13
- package/dist/bundle/{chunk-UTNK2PFE.js → chunk-G4RCT5RH.js} +12 -12
- package/dist/bundle/{chunk-DI3RJ3MJ.js → chunk-G4VVBR6U.js} +3 -3
- package/dist/bundle/{chunk-FSP74THJ.js → chunk-GI2ZUNOH.js} +4 -4
- package/dist/bundle/{chunk-DNCOELTM.js → chunk-GIY56MIB.js} +1 -1
- package/dist/bundle/{chunk-UG66U2T7.js → chunk-GOGGRLS6.js} +19 -13
- package/dist/bundle/{chunk-BLNMM3AX.js → chunk-HPFB4Y7P.js} +1 -1
- package/dist/bundle/{chunk-MK4IKICN.js → chunk-J2BUWK5U.js} +2 -2
- package/dist/bundle/{chunk-JC6HMPL7.js → chunk-JAKP5RWM.js} +3694 -3590
- package/dist/bundle/{chunk-6Y6SSZ34.js → chunk-JQ2RKLPU.js} +129 -83
- package/dist/bundle/{chunk-ZX5OSZHH.js → chunk-K4DXGJK4.js} +10 -10
- package/dist/bundle/{chunk-JB4BO5XZ.js → chunk-KSLZEXRF.js} +1 -1
- package/dist/bundle/{chunk-3GILMKQ2.js → chunk-L5PYWQDA.js} +2 -2
- package/dist/bundle/{chunk-TAFH5K5D.js → chunk-MA2XHO4O.js} +273 -242
- package/dist/bundle/{chunk-PCC7GWOS.js → chunk-MP47TE77.js} +3 -3
- package/dist/bundle/{chunk-OG2ONSH6.js → chunk-N2JSMP4N.js} +16 -16
- package/dist/bundle/{chunk-B252D7V4.js → chunk-NJ3FSKSU.js} +4 -6
- package/dist/bundle/{chunk-TVQBOIWC.js → chunk-OXB5P37M.js} +1 -1
- package/dist/bundle/{chunk-4TCBRKWQ.js → chunk-P2GNIWGG.js} +6 -6
- package/dist/bundle/{chunk-77Z3OGAT.js → chunk-PJ6FZXUR.js} +2 -2
- package/dist/bundle/{chunk-JKF7LZBU.js → chunk-QCLMP635.js} +5 -5
- package/dist/bundle/{chunk-X6436BYW.js → chunk-QGLB4D7J.js} +1 -1
- package/dist/bundle/{chunk-37SZHAEA.js → chunk-QMEPKUG3.js} +51 -50
- package/dist/bundle/{chunk-7OBSIDBJ.js → chunk-QOINWAQD.js} +2 -2
- package/dist/bundle/{chunk-CNEJQQMD.js → chunk-QYLYMOXN.js} +11 -11
- package/dist/bundle/{chunk-INZAZMUF.js → chunk-RFDPU4NO.js} +9 -4
- package/dist/bundle/{chunk-WH4T44L3.js → chunk-SL4S5GFR.js} +1 -1
- package/dist/bundle/{chunk-LU2CHHPC.js → chunk-SXVB2CVR.js} +2 -2
- package/dist/bundle/{chunk-EIGV2JKX.js → chunk-UIFQEXVP.js} +1 -1
- package/dist/bundle/{chunk-JCNKGZQG.js → chunk-W35POPPX.js} +16 -16
- package/dist/bundle/{chunk-NTHALPDT.js → chunk-W725T2V7.js} +2 -1
- package/dist/bundle/{chunk-4KIOWSDL.js → chunk-W75SKUY4.js} +2 -2
- package/dist/bundle/{chunk-VZDAVZYX.js → chunk-XGBXRDJP.js} +5 -5
- package/dist/bundle/{chunk-6HLB73UN.js → chunk-Y4724JRR.js} +2 -2
- package/dist/bundle/{chunk-S4SOS27T.js → chunk-Y5DGB7GP.js} +7 -7
- package/dist/bundle/{chunk-XTNOBJRP.js → chunk-ZXCQF6XV.js} +10 -10
- package/dist/bundle/{command-contract-JP6SCP7U.js → command-contract-ZEYY3ZXK.js} +13 -13
- package/dist/bundle/{command-server-entry-BLSFT3T6.js → command-server-entry-UWY6PQIV.js} +20 -20
- package/dist/bundle/{decode-NNLEQU7B.js → decode-QGMFQ6XX.js} +2 -2
- package/dist/bundle/{echarts-XAZHGDOM.js → echarts-GHU3GEWV.js} +2 -2
- package/dist/bundle/{embed-Q7ZCVSCO.js → embed-6DMEWQDO.js} +3 -3
- package/dist/bundle/{embedder-MVS3PVWQ.js → embedder-W2L7YZPW.js} +6 -6
- package/dist/bundle/{entry-XN3ZZAOK.js → entry-LPEXVFQC.js} +6 -6
- package/dist/bundle/{first-run-G4EFTONI.js → first-run-3UJ6SJF5.js} +5 -5
- package/dist/bundle/{first-screen-RIDJEPC3.js → first-screen-VCSY5QH5.js} +14 -14
- package/dist/bundle/{instructions-QDHYYZBU.js → instructions-RUVAH2IS.js} +1 -1
- package/dist/bundle/{node-3Y7OVY2U.js → node-RYSNHVBX.js} +2 -2
- package/dist/bundle/{node-sqlite-R2SBROJM.js → node-sqlite-J6ZL4LUY.js} +4 -4
- package/dist/bundle/{oauth-WSPWMWTV.js → oauth-B2QNZNSC.js} +4 -4
- package/dist/bundle/{open-VFLF4HRQ.js → open-OMUP5P6V.js} +2 -2
- package/dist/bundle/{openai-DFCKZZDV.js → openai-BT4BP4VQ.js} +12 -12
- package/dist/bundle/{process-VZKFAGNP.js → process-HG3QDD54.js} +1 -1
- package/dist/bundle/{program-2LB3CUZX.js → program-P2VATMKJ.js} +46 -46
- package/dist/bundle/{prompt-RVLA2PEY.js → prompt-BTIHH3Z4.js} +2 -2
- package/dist/bundle/{recognize-LEKNA3G5.js → recognize-CTSJXPIG.js} +1 -1
- package/dist/bundle/{remote-WG5V2I2G.js → remote-2FIGCMKL.js} +6 -6
- package/dist/bundle/{rerank-ONAEQVJ6.js → rerank-TI5SLEF4.js} +4 -4
- package/dist/bundle/{serve-BL2X6FZG.js → serve-IO3IM5C7.js} +6 -6
- package/dist/bundle/server-RIGXUTKZ.js +62 -0
- package/dist/bundle/{server-3LSC4BMK.js → server-WEPFFTYA.js} +31 -29
- package/dist/bundle/{sqlite-runtime-RQXPRH6C.js → sqlite-runtime-CTEYXX7L.js} +3 -3
- package/dist/bundle/{state-O7LRA526.js → state-GFHVDGHM.js} +3 -3
- package/dist/bundle/{store-HMJUPK45.js → store-RCK6HT4F.js} +9 -9
- package/dist/bundle/{store-7C4UAND2.js → store-Y5XC4LEM.js} +11 -11
- package/dist/bundle/store-maintenance-command-XH6VMCDU.js +52 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-7EYEEGJT.js +0 -62
- package/dist/bundle/store-maintenance-command-I7PSA3SZ.js +0 -52
|
@@ -23,20 +23,20 @@ import {
|
|
|
23
23
|
tagMemberIds,
|
|
24
24
|
thingOf,
|
|
25
25
|
write
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JAKP5RWM.js";
|
|
27
27
|
import {
|
|
28
28
|
fold
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-Y5DGB7GP.js";
|
|
30
30
|
import {
|
|
31
31
|
ADDED_PROVIDER,
|
|
32
32
|
filesAccountSql,
|
|
33
33
|
folderProviderOf,
|
|
34
34
|
folderProviderSql,
|
|
35
35
|
isDocumentAccountProvider
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-JQ2RKLPU.js";
|
|
37
37
|
import {
|
|
38
38
|
damagedFile
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PJ6FZXUR.js";
|
|
40
40
|
import {
|
|
41
41
|
CliError
|
|
42
42
|
} from "./chunk-7KCBPAQS.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
__name
|
|
45
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/damage.js
|
|
48
48
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
49
49
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
50
50
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
@@ -147,11 +147,11 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
|
|
|
147
147
|
};
|
|
148
148
|
}, "storeDamageReport");
|
|
149
149
|
|
|
150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
151
151
|
import { realpathSync, statSync } from "node:fs";
|
|
152
152
|
import { resolve } from "node:path";
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
|
|
155
155
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
156
156
|
const creatable = /* @__PURE__ */ new Set();
|
|
157
157
|
let people = 0, identities = 0;
|
|
@@ -214,11 +214,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
214
214
|
}
|
|
215
215
|
}, "copyPeople");
|
|
216
216
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
|
|
218
218
|
import { createHash } from "node:crypto";
|
|
219
219
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
|
|
222
222
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
223
223
|
const colon = collection.indexOf(":");
|
|
224
224
|
const provider = collection.slice(0, colon);
|
|
@@ -262,7 +262,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
262
262
|
};
|
|
263
263
|
}, "currentCollection");
|
|
264
264
|
|
|
265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
|
|
266
266
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
267
267
|
const mappings = /* @__PURE__ */ new Map();
|
|
268
268
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -429,7 +429,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
429
429
|
};
|
|
430
430
|
}, "planTransfer");
|
|
431
431
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
433
433
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
434
434
|
var MAX_ENTITIES = 1e3;
|
|
435
435
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -591,7 +591,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
591
591
|
};
|
|
592
592
|
}), "transferSnapshot");
|
|
593
593
|
|
|
594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
|
|
595
595
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
596
596
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
597
597
|
return provider ?? null;
|
|
@@ -763,7 +763,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
763
763
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
764
764
|
}, "remapEntity");
|
|
765
765
|
|
|
766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
767
767
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
768
768
|
for (const value of [options.source, options.destination, options.collection])
|
|
769
769
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -865,7 +865,7 @@ var applyWith = /* @__PURE__ */ __name(async (location, options) => {
|
|
|
865
865
|
}
|
|
866
866
|
}, "applyWith");
|
|
867
867
|
|
|
868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/health.js
|
|
869
869
|
import { existsSync, statSync as statSync2 } from "node:fs";
|
|
870
870
|
var JSON_COLUMNS = {
|
|
871
871
|
accounts: ["settings"],
|
|
@@ -1007,7 +1007,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
1007
1007
|
}
|
|
1008
1008
|
}, "storeHealth");
|
|
1009
1009
|
|
|
1010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
1011
1011
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
1012
1012
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
1013
1013
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -1033,7 +1033,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
1033
1033
|
});
|
|
1034
1034
|
}, "previewProjectAnnotationSnapshot");
|
|
1035
1035
|
|
|
1036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
1037
1037
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
1038
1038
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
1039
1039
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { realpathSync } from "node:fs";
|
|
12
12
|
import { userInfo } from "node:os";
|
|
13
13
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -49,5 +49,6 @@ export {
|
|
|
49
49
|
storePath,
|
|
50
50
|
accountHome,
|
|
51
51
|
inOwnerFolder,
|
|
52
|
+
settled,
|
|
52
53
|
refuseOwnerStoreInTests
|
|
53
54
|
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2LN6OJUB.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-7KCBPAQS.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var EMPTY_TRIES = 3;
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5GINYFD4.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-7KCBPAQS.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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-7DGADK3E.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-J6ZL4LUY.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OXB5P37M.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/languages.js
|
|
11
11
|
var LANGUAGES = [
|
|
12
12
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
13
13
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -15,12 +15,12 @@ var LANGUAGES = [
|
|
|
15
15
|
];
|
|
16
16
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
19
19
|
var NORMALIZER_VERSION = 1;
|
|
20
20
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
21
21
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
|
|
24
24
|
var BaseStemmer = class {
|
|
25
25
|
static {
|
|
26
26
|
__name(this, "BaseStemmer");
|
|
@@ -395,7 +395,7 @@ var BaseStemmer = class {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
|
|
399
399
|
var a_0 = [
|
|
400
400
|
["arsen", -1],
|
|
401
401
|
["commun", -1],
|
|
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1096
1096
|
stemWord = this.stem;
|
|
1097
1097
|
};
|
|
1098
1098
|
|
|
1099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
|
|
1100
1100
|
var a_02 = [
|
|
1101
1101
|
["\u0432", 1],
|
|
1102
1102
|
["\u0438\u0432", 2, 1],
|
|
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1519
1519
|
stemWord = this.stem;
|
|
1520
1520
|
};
|
|
1521
1521
|
|
|
1522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
|
|
1523
1523
|
var a_03 = [
|
|
1524
1524
|
["", 6],
|
|
1525
1525
|
["\xE1", 1, 1],
|
|
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2195
2195
|
stemWord = this.stem;
|
|
2196
2196
|
};
|
|
2197
2197
|
|
|
2198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/search/stem.js
|
|
2199
2199
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2200
2200
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2201
2201
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|
|
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCommandServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UIFQEXVP.js";
|
|
6
6
|
import {
|
|
7
7
|
ensureSqlite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4GR5YYGA.js";
|
|
9
9
|
import {
|
|
10
10
|
envName,
|
|
11
11
|
readOnlyLockOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AYEQMXRE.js";
|
|
13
13
|
import {
|
|
14
14
|
catchCrashes
|
|
15
15
|
} from "./chunk-XS5C5TQ7.js";
|
|
@@ -20,10 +20,10 @@ 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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
24
24
|
import { spawn } from "node:child_process";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
27
27
|
import { appendFileSync } from "node:fs";
|
|
28
28
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
29
29
|
const words = [];
|
|
@@ -47,7 +47,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
47
47
|
`);
|
|
48
48
|
}, "logVersion");
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
51
51
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
52
52
|
argv: process.argv,
|
|
53
53
|
env: process.env,
|
|
@@ -67,7 +67,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
67
67
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
|
|
68
68
|
return printVersion(entry.app, io);
|
|
69
69
|
if (isCommandServer(args)) {
|
|
70
|
-
const { serveEntry } = await import("./command-server-entry-
|
|
70
|
+
const { serveEntry } = await import("./command-server-entry-UWY6PQIV.js");
|
|
71
71
|
return serveEntry(entry, io, { firstRunAt, commanderExit });
|
|
72
72
|
}
|
|
73
73
|
const tty = io.stdout.isTTY === true;
|
|
@@ -105,7 +105,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
105
105
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
106
106
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
107
107
|
return false;
|
|
108
|
-
const { readSecret } = await import("./prompt-
|
|
108
|
+
const { readSecret } = await import("./prompt-BTIHH3Z4.js");
|
|
109
109
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
110
110
|
input: io.stdin,
|
|
111
111
|
output: io.stderr,
|
|
@@ -148,8 +148,8 @@ var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command)
|
|
|
148
148
|
if (command.optsWithGlobals().dryRun === true)
|
|
149
149
|
return;
|
|
150
150
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
151
|
-
import("./first-run-
|
|
152
|
-
import("./command-contract-
|
|
151
|
+
import("./first-run-3UJ6SJF5.js"),
|
|
152
|
+
import("./command-contract-ZEYY3ZXK.js")
|
|
153
153
|
]);
|
|
154
154
|
await setupAtStart({
|
|
155
155
|
command: entry.app.command,
|
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
commandPathOf,
|
|
7
7
|
findCommand,
|
|
8
8
|
outputOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-QOINWAQD.js";
|
|
10
|
+
import "./chunk-2F2UMQMB.js";
|
|
11
|
+
import "./chunk-P2GNIWGG.js";
|
|
12
|
+
import "./chunk-NJ3FSKSU.js";
|
|
13
|
+
import "./chunk-AYEQMXRE.js";
|
|
14
|
+
import "./chunk-OXB5P37M.js";
|
|
15
|
+
import "./chunk-AZ7DSHQO.js";
|
|
16
|
+
import "./chunk-L5PYWQDA.js";
|
|
17
|
+
import "./chunk-MP47TE77.js";
|
|
18
|
+
import "./chunk-JQ2RKLPU.js";
|
|
19
|
+
import "./chunk-PJ6FZXUR.js";
|
|
20
|
+
import "./chunk-CK7DSGIK.js";
|
|
21
21
|
import "./chunk-XWBPP2HX.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-W725T2V7.js";
|
|
23
23
|
import "./chunk-NM5GBJME.js";
|
|
24
24
|
import "./chunk-XS5C5TQ7.js";
|
|
25
25
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,34 +4,34 @@ import {
|
|
|
4
4
|
COMMAND_SERVER_CONCURRENT,
|
|
5
5
|
enterCommandServer,
|
|
6
6
|
serveCommands
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-63DSHUNP.js";
|
|
8
|
+
import "./chunk-UIFQEXVP.js";
|
|
9
|
+
import "./chunk-SL4S5GFR.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureSqlite
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-4GR5YYGA.js";
|
|
13
|
+
import "./chunk-XGBXRDJP.js";
|
|
14
|
+
import "./chunk-5GINYFD4.js";
|
|
15
|
+
import "./chunk-QOINWAQD.js";
|
|
16
16
|
import {
|
|
17
17
|
commandServerRequest,
|
|
18
18
|
exitCodeSet,
|
|
19
19
|
inCommandServerRequest
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-2F2UMQMB.js";
|
|
21
|
+
import "./chunk-P2GNIWGG.js";
|
|
22
|
+
import "./chunk-NJ3FSKSU.js";
|
|
23
|
+
import "./chunk-AYEQMXRE.js";
|
|
24
|
+
import "./chunk-OXB5P37M.js";
|
|
25
|
+
import "./chunk-AZ7DSHQO.js";
|
|
26
|
+
import "./chunk-L5PYWQDA.js";
|
|
27
|
+
import "./chunk-MP47TE77.js";
|
|
28
28
|
import {
|
|
29
29
|
asOwnProcess
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-JQ2RKLPU.js";
|
|
31
|
+
import "./chunk-PJ6FZXUR.js";
|
|
32
|
+
import "./chunk-CK7DSGIK.js";
|
|
33
33
|
import "./chunk-XWBPP2HX.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-W725T2V7.js";
|
|
35
35
|
import "./chunk-NM5GBJME.js";
|
|
36
36
|
import {
|
|
37
37
|
catchCrashes
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
__name
|
|
45
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
|
|
48
48
|
import { PassThrough } from "node:stream";
|
|
49
49
|
var route = /* @__PURE__ */ __name((stream, sink) => {
|
|
50
50
|
const original = stream.write;
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G4VVBR6U.js";
|
|
7
7
|
import "./chunk-NM5GBJME.js";
|
|
8
8
|
import "./chunk-XS5C5TQ7.js";
|
|
9
9
|
import {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
20
20
|
import { spawn } from "node:child_process";
|
|
21
21
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
22
22
|
import { createRequire } from "node:module";
|
|
@@ -42399,7 +42399,7 @@ function install11(registers) {
|
|
|
42399
42399
|
}
|
|
42400
42400
|
__name(install11, "install");
|
|
42401
42401
|
|
|
42402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
|
|
42403
42403
|
var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
42404
42404
|
animation: false,
|
|
42405
42405
|
backgroundColor: "#111827",
|
|
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
|
42447
42447
|
} : {}
|
|
42448
42448
|
}), "echartsOption");
|
|
42449
42449
|
|
|
42450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/charts/echarts.js
|
|
42451
42451
|
use([install2, install, install6, install5, install10, install7, install11]);
|
|
42452
42452
|
var echartsRenderer = {
|
|
42453
42453
|
render: /* @__PURE__ */ __name(async (chart, size) => {
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
truncated,
|
|
14
14
|
unit,
|
|
15
15
|
warmEmbedders
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-QCLMP635.js";
|
|
17
|
+
import "./chunk-MP47TE77.js";
|
|
18
|
+
import "./chunk-W725T2V7.js";
|
|
19
19
|
import "./chunk-NM5GBJME.js";
|
|
20
20
|
import "./chunk-XS5C5TQ7.js";
|
|
21
21
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
openSession,
|
|
5
5
|
truncated,
|
|
6
6
|
unit
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-QCLMP635.js";
|
|
8
|
+
import "./chunk-MP47TE77.js";
|
|
9
|
+
import "./chunk-W725T2V7.js";
|
|
10
10
|
import "./chunk-NM5GBJME.js";
|
|
11
11
|
import "./chunk-XS5C5TQ7.js";
|
|
12
12
|
import {
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
24
24
|
import { join } from "node:path";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
|
|
27
27
|
var SIZE = 224;
|
|
28
28
|
var MEAN = [0.48145466, 0.4578275, 0.40821073];
|
|
29
29
|
var STD = [0.26862954, 0.26130258, 0.27577711];
|
|
@@ -62,7 +62,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
|
|
|
62
62
|
return pixels;
|
|
63
63
|
}, "preprocess");
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
66
66
|
var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
|
|
67
67
|
const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
|
|
68
68
|
const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
firstRunAt,
|
|
5
5
|
openBrowser,
|
|
6
6
|
startCli
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ZXCQF6XV.js";
|
|
8
|
+
import "./chunk-UIFQEXVP.js";
|
|
9
|
+
import "./chunk-4GR5YYGA.js";
|
|
10
|
+
import "./chunk-XGBXRDJP.js";
|
|
11
|
+
import "./chunk-5GINYFD4.js";
|
|
12
|
+
import "./chunk-AYEQMXRE.js";
|
|
13
13
|
import "./chunk-NM5GBJME.js";
|
|
14
14
|
import "./chunk-XS5C5TQ7.js";
|
|
15
15
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
asksAtStart,
|
|
6
6
|
setupAtStart,
|
|
7
7
|
systemLanguage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-K4DXGJK4.js";
|
|
9
9
|
import "./chunk-LD42OGKK.js";
|
|
10
10
|
import "./chunk-FIVFP53N.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-Y5DGB7GP.js";
|
|
12
12
|
import "./chunk-M4OP5ASJ.js";
|
|
13
13
|
import "./chunk-D72URWJE.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-NJ3FSKSU.js";
|
|
15
|
+
import "./chunk-CK7DSGIK.js";
|
|
16
|
+
import "./chunk-W725T2V7.js";
|
|
17
17
|
import "./chunk-NM5GBJME.js";
|
|
18
18
|
import "./chunk-XS5C5TQ7.js";
|
|
19
19
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
WIRECAT_TOOLS,
|
|
5
5
|
firstScreen,
|
|
6
6
|
installHelp
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RFDPU4NO.js";
|
|
8
8
|
import "./chunk-2ABQZVK4.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-QOINWAQD.js";
|
|
10
|
+
import "./chunk-2F2UMQMB.js";
|
|
11
|
+
import "./chunk-P2GNIWGG.js";
|
|
12
|
+
import "./chunk-NJ3FSKSU.js";
|
|
13
|
+
import "./chunk-AYEQMXRE.js";
|
|
14
|
+
import "./chunk-OXB5P37M.js";
|
|
15
|
+
import "./chunk-AZ7DSHQO.js";
|
|
16
|
+
import "./chunk-L5PYWQDA.js";
|
|
17
|
+
import "./chunk-MP47TE77.js";
|
|
18
|
+
import "./chunk-JQ2RKLPU.js";
|
|
19
|
+
import "./chunk-PJ6FZXUR.js";
|
|
20
|
+
import "./chunk-CK7DSGIK.js";
|
|
21
21
|
import "./chunk-XWBPP2HX.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-W725T2V7.js";
|
|
23
23
|
import "./chunk-NM5GBJME.js";
|
|
24
24
|
import "./chunk-XS5C5TQ7.js";
|
|
25
25
|
import "./chunk-Y5E2WNWB.js";
|