@wirecat/tg-cli 0.118.0 → 0.119.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/contracts/wirecat.json +7621 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +15 -8
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-4YNP6VCO.js → adapter-NEQQOANM.js} +47 -48
- package/dist/bundle/{all-profiles-MIQDYAGO.js → all-profiles-QFT46FTF.js} +10 -10
- package/dist/bundle/{anthropic-NTASPJYE.js → anthropic-UJ4RYCWU.js} +10 -8
- package/dist/bundle/{app-server-UJZBJ2SK.js → app-server-NE3EL5IK.js} +43 -43
- package/dist/bundle/{bot-api-JZAD4L3N.js → bot-api-D4H5SCP5.js} +49 -49
- package/dist/bundle/{bot-history-OUDHH3NU.js → bot-history-KF2PUMWA.js} +18 -18
- package/dist/bundle/{bun-EC4HDIRD.js → bun-F7MH5YKA.js} +2 -2
- package/dist/bundle/{bun-sqlite-A4HJR6KO.js → bun-sqlite-FYDJXUHF.js} +5 -5
- package/dist/bundle/{chunk-I4TI5HDJ.js → chunk-23JGV5FQ.js} +11 -11
- package/dist/bundle/{chunk-MBH7IKLT.js → chunk-2BAJ6ORN.js} +1 -1
- package/dist/bundle/{chunk-EPXVRJAX.js → chunk-3EQ7USKJ.js} +2 -2
- package/dist/bundle/{chunk-MZNOASAW.js → chunk-3K65KTXD.js} +16 -3
- package/dist/bundle/{chunk-EQJ6NLF5.js → chunk-4AACB23H.js} +13 -13
- package/dist/bundle/{chunk-NUCDEOFC.js → chunk-5EHJWIW4.js} +2 -2
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-5FEEFXJA.js} +1 -1
- package/dist/bundle/{chunk-6RI4TEIC.js → chunk-65BWMPCI.js} +2 -2
- package/dist/bundle/{chunk-PB252TT3.js → chunk-6ERQJRL2.js} +2 -2
- package/dist/bundle/{chunk-G3RT2EQI.js → chunk-6K5R3YPN.js} +2 -2
- package/dist/bundle/{chunk-OTQDJUES.js → chunk-6OE5I3PR.js} +6 -6
- package/dist/bundle/{chunk-FHMK6OK4.js → chunk-72QLHHSO.js} +93 -29
- package/dist/bundle/{chunk-YEOSV6JC.js → chunk-7C6POLLO.js} +1 -1
- package/dist/bundle/{chunk-JPVFYMSQ.js → chunk-7VUNJDYU.js} +4 -4
- package/dist/bundle/{chunk-57LKX6N2.js → chunk-BXIPT2BO.js} +1 -1
- package/dist/bundle/{chunk-NKFTZVQU.js → chunk-CIDFV3IT.js} +1 -1
- package/dist/bundle/{chunk-4BV4UMBB.js → chunk-CX2WCEQU.js} +264 -195
- package/dist/bundle/{chunk-H6S3C3MH.js → chunk-D4Y2KL5V.js} +4 -4
- package/dist/bundle/{chunk-YPRUWRKE.js → chunk-D6YTBJY6.js} +1 -1
- package/dist/bundle/{chunk-PW3HFIJA.js → chunk-DQELQ7BL.js} +365 -192
- package/dist/bundle/{chunk-5IIU7X4S.js → chunk-F223KYWG.js} +1 -1
- package/dist/bundle/{chunk-TMTEWOQS.js → chunk-FJKP6MMP.js} +5 -3
- package/dist/bundle/{chunk-NMT2VGEI.js → chunk-FQ3C6DFV.js} +3 -3
- package/dist/bundle/{chunk-6ZMTEUVU.js → chunk-FQZSS3AB.js} +6 -6
- package/dist/bundle/{chunk-CEY43D3A.js → chunk-FRW3CWC7.js} +29 -29
- package/dist/bundle/{chunk-65XV5PPI.js → chunk-G3MQOH6Z.js} +3 -3
- package/dist/bundle/{chunk-6AXUEJGL.js → chunk-HGMMRT4G.js} +2 -2
- package/dist/bundle/{chunk-GLRRCKP6.js → chunk-HPQQ76WF.js} +23 -5
- package/dist/bundle/{chunk-RG2E7ZQZ.js → chunk-HV5YYAJX.js} +50 -15
- package/dist/bundle/{chunk-3MQOLYAN.js → chunk-IAGX5VFL.js} +4 -4
- package/dist/bundle/{chunk-BNEP5EOV.js → chunk-JKKEMVW3.js} +4 -4
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-KBHK5UGL.js} +1 -1
- package/dist/bundle/{chunk-EPCFXKTX.js → chunk-KC4MQRAB.js} +34 -8
- package/dist/bundle/{chunk-GXCJ47SJ.js → chunk-L33G5ARH.js} +2664 -670
- package/dist/bundle/{chunk-PO74BDER.js → chunk-MDLSI3EN.js} +23 -23
- package/dist/bundle/chunk-NDSRND3E.js +138 -0
- package/dist/bundle/{chunk-2KQHUBTV.js → chunk-OG2CG2GS.js} +12 -12
- package/dist/bundle/{chunk-JZETEZHC.js → chunk-QD27C3BG.js} +7 -7
- package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-QG5U6HCI.js} +61 -21
- package/dist/bundle/{chunk-GI4MTNA2.js → chunk-QQ3QZFFD.js} +8 -8
- package/dist/bundle/{chunk-76EKXFX2.js → chunk-QTFXYR5W.js} +24 -2
- package/dist/bundle/{chunk-ZXXTJF4Z.js → chunk-RGU2G3KL.js} +4 -4
- package/dist/bundle/{chunk-JWPSVS6C.js → chunk-ROOUBFUW.js} +2304 -1442
- package/dist/bundle/{chunk-5QYU7B27.js → chunk-RUNFFBJU.js} +656 -461
- package/dist/bundle/{chunk-DKFC5ZZ3.js → chunk-S3HAFJVC.js} +4 -4
- package/dist/bundle/{chunk-BXTDAGM4.js → chunk-SMHLQEE2.js} +2 -2
- package/dist/bundle/{chunk-JWIUK3SK.js → chunk-TEZKCH5B.js} +2 -2
- package/dist/bundle/{chunk-HJNRIK5X.js → chunk-TKHEVAEG.js} +9 -8
- package/dist/bundle/{chunk-JLJKGKU2.js → chunk-TT4CIXVH.js} +6 -6
- package/dist/bundle/{chunk-ZMUC3UQO.js → chunk-UBCLVM7C.js} +3 -3
- package/dist/bundle/{chunk-YHZFGUAP.js → chunk-V5Z2JO6X.js} +19 -19
- package/dist/bundle/{chunk-2NA5KVP6.js → chunk-W2BIBPRU.js} +234 -38
- package/dist/bundle/{chunk-PWCQC56A.js → chunk-X5PDWCG7.js} +1 -1
- package/dist/bundle/{chunk-GIM37COQ.js → chunk-XDMJVWWR.js} +3 -3
- package/dist/bundle/{chunk-KEDHX6XG.js → chunk-XM3P7LLT.js} +2 -2
- package/dist/bundle/{chunk-DSZJREEO.js → chunk-YMWPRHXG.js} +1285 -750
- package/dist/bundle/{chunk-5LDWBEWU.js → chunk-Z4CGZAFQ.js} +45 -27
- package/dist/bundle/{chunk-Y64SI2RO.js → chunk-ZEQ7ONPZ.js} +3 -3
- package/dist/bundle/command-contract-7TGMZRBE.js +33 -0
- package/dist/bundle/{decode-NMNPLKNR.js → decode-5N4ERCHC.js} +5 -5
- package/dist/bundle/{dispatch-OP27MWX5.js → dispatch-TBGXBDHE.js} +10 -10
- package/dist/bundle/{echarts-S46LEIPS.js → echarts-YDEBAMXT.js} +2 -2
- package/dist/bundle/{embed-I5ZYHGYC.js → embed-T7H62XFR.js} +6 -6
- package/dist/bundle/{embedder-LTJI67N2.js → embedder-AW3O2TR3.js} +9 -9
- package/dist/bundle/{entry-O6BUPXF7.js → entry-L2LJ2VPY.js} +7 -7
- package/dist/bundle/{failure-4JUQFXJT.js → failure-AWHPW2HE.js} +2 -2
- package/dist/bundle/{first-run-PMZNCDGD.js → first-run-6PBZSRZU.js} +11 -11
- package/dist/bundle/first-screen-UKCD7D2R.js +31 -0
- package/dist/bundle/{instructions-AUEGY3VO.js → instructions-C3NJERO7.js} +1 -1
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-CWLASTLV.js} +2 -2
- package/dist/bundle/{node-XRA7RBCQ.js → node-P3CIIYWU.js} +2 -2
- package/dist/bundle/{node-sqlite-DEZO6LRS.js → node-sqlite-YVHMNRVA.js} +6 -6
- package/dist/bundle/{oauth-DAVC7WCD.js → oauth-5OQYA2SV.js} +7 -7
- package/dist/bundle/{open-DE2YO4T7.js → open-YGWUVSU7.js} +5 -5
- package/dist/bundle/{openai-5BKGAULH.js → openai-U45JBQ6F.js} +16 -37
- package/dist/bundle/{process-4ZHPNUIQ.js → process-DCYX5EDG.js} +1 -1
- package/dist/bundle/{program-EGTKSNB4.js → program-UZBFH2EZ.js} +55 -52
- package/dist/bundle/{prompt-HWCWHHPE.js → prompt-HPVTPTFI.js} +7 -5
- package/dist/bundle/{proxy-transport-4DPZB2W2.js → proxy-transport-D7MCHGSV.js} +5 -5
- package/dist/bundle/{recognize-NG6RXNGF.js → recognize-IJCPFJ76.js} +4 -4
- package/dist/bundle/{remote-ZKXIIGYH.js → remote-MWDYQWFW.js} +7 -7
- package/dist/bundle/{rerank-TX5QFURV.js → rerank-SXG64475.js} +7 -7
- package/dist/bundle/{serve-XAS6DECW.js → serve-KJQENHEH.js} +9 -9
- package/dist/bundle/{server-CNPIWBYU.js → server-MXVXZWN6.js} +35 -35
- package/dist/bundle/server-RTMCRKQF.js +60 -0
- package/dist/bundle/{state-3HTUETTS.js → state-CKKJWH27.js} +6 -6
- package/dist/bundle/{store-B5VZWJHN.js → store-R3BE4V56.js} +36 -13
- package/dist/bundle/store-maintenance-command-KDGBSBNU.js +49 -0
- package/dist/bundle/tg.js +38 -14
- package/dist/commands/account-removal.d.ts +3 -0
- package/dist/commands/account-removal.d.ts.map +1 -0
- package/dist/commands/account-removal.js +57 -0
- package/dist/commands/account-removal.js.map +1 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/http.d.ts +6 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +8 -0
- package/dist/http.js.map +1 -0
- package/dist/identity.d.ts +4 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +14 -0
- package/dist/identity.js.map +1 -1
- package/dist/telegram/map.d.ts.map +1 -1
- package/dist/telegram/map.js +3 -0
- package/dist/telegram/map.js.map +1 -1
- package/dist/telegram/registration.d.ts +1 -1
- package/dist/telegram/registration.d.ts.map +1 -1
- package/dist/telegram/registration.js +4 -1
- package/dist/telegram/registration.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +7 -6
- package/dist/bundle/chunk-TSTEZNSX.js +0 -33
- package/dist/bundle/command-contract-7GZ6HAA6.js +0 -33
- package/dist/bundle/first-screen-BGML5DSO.js +0 -31
- package/dist/bundle/server-FRTKLHZF.js +0 -60
- package/dist/bundle/store-maintenance-command-VG3CLELA.js +0 -50
- /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-DWX4DE2I.js} +0 -0
|
@@ -2,7 +2,8 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
TELEGRAM_BOT
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-72QLHHSO.js";
|
|
6
|
+
import "./chunk-NDSRND3E.js";
|
|
6
7
|
import {
|
|
7
8
|
BotTokenStore,
|
|
8
9
|
apiPlainJson,
|
|
@@ -11,24 +12,24 @@ import {
|
|
|
11
12
|
checkApiParameter,
|
|
12
13
|
generatedApiCommand,
|
|
13
14
|
prepareRpcApiBody
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-L33G5ARH.js";
|
|
16
|
+
import "./chunk-7C6POLLO.js";
|
|
17
|
+
import "./chunk-TEZKCH5B.js";
|
|
18
|
+
import "./chunk-F223KYWG.js";
|
|
19
|
+
import "./chunk-Z4CGZAFQ.js";
|
|
20
|
+
import "./chunk-HV5YYAJX.js";
|
|
21
|
+
import "./chunk-RUNFFBJU.js";
|
|
22
|
+
import "./chunk-MDLSI3EN.js";
|
|
22
23
|
import {
|
|
23
24
|
newOperationId,
|
|
24
25
|
readUpload,
|
|
25
26
|
uploadBytes
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-YMWPRHXG.js";
|
|
28
|
+
import "./chunk-4AACB23H.js";
|
|
29
|
+
import "./chunk-S3HAFJVC.js";
|
|
30
|
+
import "./chunk-TKHEVAEG.js";
|
|
30
31
|
import "./chunk-2ABQZVK4.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-D4Y2KL5V.js";
|
|
32
33
|
import {
|
|
33
34
|
ChatRegistry,
|
|
34
35
|
DEFAULT_PERMISSIONS,
|
|
@@ -36,38 +37,37 @@ import {
|
|
|
36
37
|
levelFor,
|
|
37
38
|
overrideSharedContract,
|
|
38
39
|
ownerOnlyOption
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-VOXIGICJ.js";
|
|
40
|
+
} from "./chunk-DQELQ7BL.js";
|
|
41
|
+
import "./chunk-G3MQOH6Z.js";
|
|
42
|
+
import "./chunk-QD27C3BG.js";
|
|
43
|
+
import "./chunk-OG2CG2GS.js";
|
|
44
|
+
import "./chunk-IAGX5VFL.js";
|
|
45
|
+
import "./chunk-5FEEFXJA.js";
|
|
46
|
+
import "./chunk-UBCLVM7C.js";
|
|
47
|
+
import "./chunk-23JGV5FQ.js";
|
|
48
|
+
import "./chunk-6ERQJRL2.js";
|
|
49
|
+
import "./chunk-RGU2G3KL.js";
|
|
50
|
+
import "./chunk-XDMJVWWR.js";
|
|
51
|
+
import "./chunk-D6YTBJY6.js";
|
|
52
|
+
import "./chunk-ROOUBFUW.js";
|
|
53
|
+
import "./chunk-CX2WCEQU.js";
|
|
54
|
+
import "./chunk-ZEQ7ONPZ.js";
|
|
55
|
+
import "./chunk-QQ3QZFFD.js";
|
|
56
|
+
import "./chunk-FQZSS3AB.js";
|
|
57
|
+
import "./chunk-HPQQ76WF.js";
|
|
58
|
+
import "./chunk-HGMMRT4G.js";
|
|
59
|
+
import "./chunk-QTFXYR5W.js";
|
|
60
|
+
import "./chunk-FQ3C6DFV.js";
|
|
61
|
+
import "./chunk-6OE5I3PR.js";
|
|
62
|
+
import "./chunk-7VUNJDYU.js";
|
|
63
|
+
import "./chunk-6K5R3YPN.js";
|
|
64
|
+
import "./chunk-3K65KTXD.js";
|
|
65
|
+
import "./chunk-KBHK5UGL.js";
|
|
66
|
+
import "./chunk-DWX4DE2I.js";
|
|
67
67
|
import "./chunk-D72URWJE.js";
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-TT4CIXVH.js";
|
|
69
|
+
import "./chunk-BXIPT2BO.js";
|
|
70
|
+
import "./chunk-V5Z2JO6X.js";
|
|
71
71
|
import {
|
|
72
72
|
array,
|
|
73
73
|
boolean,
|
|
@@ -82,12 +82,12 @@ import {
|
|
|
82
82
|
string,
|
|
83
83
|
transform,
|
|
84
84
|
union
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-KC4MQRAB.js";
|
|
86
86
|
import "./chunk-Y5E2WNWB.js";
|
|
87
87
|
import {
|
|
88
88
|
CliError
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import "./chunk-
|
|
89
|
+
} from "./chunk-SMHLQEE2.js";
|
|
90
|
+
import "./chunk-X5PDWCG7.js";
|
|
91
91
|
import {
|
|
92
92
|
__name
|
|
93
93
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -34551,7 +34551,7 @@ If you'd like to make sure that the webhook was set by you, you can specify secr
|
|
|
34551
34551
|
}
|
|
34552
34552
|
];
|
|
34553
34553
|
|
|
34554
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34554
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
34555
34555
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
34556
34556
|
var INTEGER = /^-?\d+$/;
|
|
34557
34557
|
var INT64_MIN = -(2n ** 63n);
|
|
@@ -5,30 +5,30 @@ import {
|
|
|
5
5
|
toCliError,
|
|
6
6
|
toHistoryChannel,
|
|
7
7
|
toHistoryMessages
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FJKP6MMP.js";
|
|
9
9
|
import {
|
|
10
10
|
proxiedTransport
|
|
11
|
-
} from "./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-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-5EHJWIW4.js";
|
|
12
|
+
import "./chunk-TEZKCH5B.js";
|
|
13
|
+
import "./chunk-S3HAFJVC.js";
|
|
14
|
+
import "./chunk-G3MQOH6Z.js";
|
|
15
|
+
import "./chunk-ROOUBFUW.js";
|
|
16
|
+
import "./chunk-CX2WCEQU.js";
|
|
17
|
+
import "./chunk-ZEQ7ONPZ.js";
|
|
18
|
+
import "./chunk-QQ3QZFFD.js";
|
|
19
|
+
import "./chunk-FQZSS3AB.js";
|
|
20
|
+
import "./chunk-6K5R3YPN.js";
|
|
21
|
+
import "./chunk-DWX4DE2I.js";
|
|
22
|
+
import "./chunk-TT4CIXVH.js";
|
|
23
|
+
import "./chunk-BXIPT2BO.js";
|
|
24
|
+
import "./chunk-V5Z2JO6X.js";
|
|
25
|
+
import "./chunk-KC4MQRAB.js";
|
|
26
26
|
import "./chunk-Y5E2WNWB.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError,
|
|
29
29
|
isCliError
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-SMHLQEE2.js";
|
|
31
|
+
import "./chunk-X5PDWCG7.js";
|
|
32
32
|
import {
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-X5PDWCG7.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-3EQ7USKJ.js";
|
|
7
|
+
import "./chunk-V5Z2JO6X.js";
|
|
8
|
+
import "./chunk-KC4MQRAB.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SMHLQEE2.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
18
18
|
var customised = false;
|
|
19
19
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
20
20
|
try {
|
|
@@ -3,28 +3,28 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6ERQJRL2.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TT4CIXVH.js";
|
|
11
11
|
import {
|
|
12
12
|
catchCrashes
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KC4MQRAB.js";
|
|
14
14
|
import {
|
|
15
15
|
importFrom
|
|
16
16
|
} from "./chunk-Y5E2WNWB.js";
|
|
17
17
|
import {
|
|
18
18
|
CliError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SMHLQEE2.js";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
25
25
|
import { spawn as spawn2 } from "node:child_process";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
28
28
|
import { spawn, spawnSync } from "node:child_process";
|
|
29
29
|
import { readFileSync } from "node:fs";
|
|
30
30
|
import { dirname } from "node:path";
|
|
@@ -112,7 +112,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
112
112
|
});
|
|
113
113
|
}), "relay");
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
116
116
|
import { appendFileSync } from "node:fs";
|
|
117
117
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
118
118
|
const words = [];
|
|
@@ -136,7 +136,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
136
136
|
`);
|
|
137
137
|
}, "logVersion");
|
|
138
138
|
|
|
139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
140
140
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
141
141
|
argv: process.argv,
|
|
142
142
|
env: process.env,
|
|
@@ -190,8 +190,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
190
190
|
if (command.optsWithGlobals().dryRun === true)
|
|
191
191
|
return;
|
|
192
192
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
193
|
-
import("./first-run-
|
|
194
|
-
import("./command-contract-
|
|
193
|
+
import("./first-run-6PBZSRZU.js"),
|
|
194
|
+
import("./command-contract-7TGMZRBE.js")
|
|
195
195
|
]);
|
|
196
196
|
await setupAtStart({
|
|
197
197
|
command: entry.app.command,
|
|
@@ -206,7 +206,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
206
206
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
207
207
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
208
208
|
return false;
|
|
209
|
-
const { readSecret } = await import("./prompt-
|
|
209
|
+
const { readSecret } = await import("./prompt-HPVTPTFI.js");
|
|
210
210
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
211
211
|
input: io.stdin,
|
|
212
212
|
output: io.stderr,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SMHLQEE2.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KC4MQRAB.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var REASONS = defineReasons([
|
|
@@ -26,7 +26,7 @@ var REASONS = defineReasons([
|
|
|
26
26
|
].map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
27
27
|
|
|
28
28
|
// dist/version.js
|
|
29
|
-
var VERSION = "0.
|
|
29
|
+
var VERSION = "0.119.0";
|
|
30
30
|
|
|
31
31
|
// dist/identity.js
|
|
32
32
|
var TG = {
|
|
@@ -39,8 +39,21 @@ var TG = {
|
|
|
39
39
|
locale: "en-GB",
|
|
40
40
|
errors: { reasons: REASONS, details: ["migrated_chat_id", "proxy"] }
|
|
41
41
|
};
|
|
42
|
+
var DESKTOP = {
|
|
43
|
+
...TG,
|
|
44
|
+
docs: "https://github.com/WireCatLabs/tg-cli#readme",
|
|
45
|
+
tagline: "Your Telegram account, searchable on your computer",
|
|
46
|
+
syncs: "chats and their messages",
|
|
47
|
+
signIn: {
|
|
48
|
+
gives: "Lets your agent read your Telegram chats, and send messages when you allow it.",
|
|
49
|
+
asks: "Your phone number and the code Telegram sends, and an app ID from my.telegram.org."
|
|
50
|
+
},
|
|
51
|
+
hosts: ["api.telegram.org", "my.telegram.org"],
|
|
52
|
+
userHosts: "the proxy you set for Telegram, if any"
|
|
53
|
+
};
|
|
42
54
|
|
|
43
55
|
export {
|
|
44
56
|
VERSION,
|
|
45
|
-
TG
|
|
57
|
+
TG,
|
|
58
|
+
DESKTOP
|
|
46
59
|
};
|
|
@@ -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-SMHLQEE2.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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3 } from "node:path";
|
|
374
374
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
375
375
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|
|
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
proxyError,
|
|
5
5
|
proxyLabel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TEZKCH5B.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SMHLQEE2.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RGU2G3KL.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -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-SMHLQEE2.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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-V5Z2JO6X.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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { userInfo } from "node:os";
|
|
12
12
|
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
13
13
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7VUNJDYU.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SMHLQEE2.js";
|
|
15
15
|
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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|