@wirecat/tg-cli 0.124.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/contracts/wirecat.json +7 -1
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-GEIZVMWU.js → adapter-BXU3AVB7.js} +52 -53
- package/dist/bundle/{all-profiles-EY4GJFWN.js → all-profiles-G5A6IROO.js} +10 -10
- package/dist/bundle/{anthropic-RIANJ7WM.js → anthropic-SINVEVEM.js} +5 -5
- package/dist/bundle/{app-server-LW7WBFIF.js → app-server-IHIQXPJF.js} +49 -45
- package/dist/bundle/{bot-api-FHIQ66OM.js → bot-api-LGAVVYRM.js} +53 -54
- package/dist/bundle/{bot-history-O34YZEFH.js → bot-history-5C35FGCD.js} +18 -18
- package/dist/bundle/{bun-MJWD4VGV.js → bun-2GK3YOP3.js} +2 -2
- package/dist/bundle/{bun-sqlite-LCHVO3OB.js → bun-sqlite-7DGADK3E.js} +6 -6
- package/dist/bundle/{chunk-RHJHOOUL.js → chunk-2F2UMQMB.js} +196 -158
- package/dist/bundle/{chunk-W4LMTNN2.js → chunk-2LN6OJUB.js} +2 -2
- package/dist/bundle/{chunk-LKMZ53GC.js → chunk-4GR5YYGA.js} +2 -2
- package/dist/bundle/{chunk-ZNICTHSC.js → chunk-5GINYFD4.js} +1 -1
- package/dist/bundle/{chunk-PP4ZBLS4.js → chunk-5NLAGTWU.js} +9 -9
- package/dist/bundle/{chunk-NL4COYPY.js → chunk-63DSHUNP.js} +7 -7
- package/dist/bundle/{chunk-KVJSCJGZ.js → chunk-7FL2N6DM.js} +2 -2
- package/dist/bundle/{chunk-E6VSARSU.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-BV3HZYOX.js → chunk-7UACPXDC.js} +549 -458
- package/dist/bundle/{chunk-VGUWIHXD.js → chunk-AA2NZAUT.js} +1 -1
- package/dist/bundle/{chunk-UII3D3HR.js → chunk-ACLUVZ4I.js} +34 -30
- package/dist/bundle/{chunk-QGCVQRHV.js → chunk-AKUBJHE5.js} +1 -1
- package/dist/bundle/{chunk-54JPEGQA.js → chunk-AYEQMXRE.js} +2 -2
- package/dist/bundle/{chunk-PZ6H65D6.js → chunk-AZ7DSHQO.js} +63 -5
- package/dist/bundle/{chunk-OVDB5CQM.js → chunk-BSKYPHLB.js} +1 -1
- package/dist/bundle/{chunk-UP3J3YXH.js → chunk-CK7DSGIK.js} +7 -7
- package/dist/bundle/{chunk-ZTMV5M3D.js → chunk-DGGAYHLN.js} +29 -25
- package/dist/bundle/{chunk-E66JBGZZ.js → chunk-F34EE5Y2.js} +2 -2
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-HSRO77SW.js → chunk-FYOHGIQP.js} +15 -15
- package/dist/bundle/{chunk-VAKSXD4F.js → chunk-G4RCT5RH.js} +13 -13
- package/dist/bundle/{chunk-QFV36CAH.js → chunk-G4VVBR6U.js} +4 -4
- package/dist/bundle/{chunk-ISGXVFA4.js → chunk-GI2ZUNOH.js} +4 -4
- package/dist/bundle/{chunk-DFSLHF46.js → chunk-GIY56MIB.js} +1 -1
- package/dist/bundle/{chunk-4EGB7GSW.js → chunk-GOGGRLS6.js} +28 -23
- package/dist/bundle/{chunk-2YLIVDWJ.js → chunk-HPFB4Y7P.js} +2 -2
- package/dist/bundle/{chunk-OK4M4MWI.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-2GFGZDWS.js → chunk-J2BUWK5U.js} +2 -2
- package/dist/bundle/{chunk-42R4YO4L.js → chunk-JAKP5RWM.js} +4378 -4075
- package/dist/bundle/{chunk-OH3IZ6GW.js → chunk-JQ2RKLPU.js} +153 -98
- package/dist/bundle/{chunk-QWAMX6CN.js → chunk-K4DXGJK4.js} +12 -12
- package/dist/bundle/{chunk-RBV4M2TC.js → chunk-KSLZEXRF.js} +1 -1
- package/dist/bundle/{chunk-A5RWKKBZ.js → chunk-L5PYWQDA.js} +3 -3
- package/dist/bundle/{chunk-XSGUG5WG.js → chunk-LD42OGKK.js} +4 -4
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-WSLIXJET.js → chunk-MA2XHO4O.js} +378 -269
- package/dist/bundle/{chunk-2NG4JPP7.js → chunk-MP47TE77.js} +4 -4
- package/dist/bundle/{chunk-M4W4Y5YR.js → chunk-N2JSMP4N.js} +57 -36
- package/dist/bundle/{chunk-SGBH3D5D.js → chunk-NJ3FSKSU.js} +5 -7
- package/dist/bundle/{chunk-4CIVGT4P.js → chunk-NM5GBJME.js} +19 -19
- package/dist/bundle/{chunk-QK4T3VN7.js → chunk-OXB5P37M.js} +1 -1
- package/dist/bundle/{chunk-ZL5YG2WK.js → chunk-P2GNIWGG.js} +7 -7
- package/dist/bundle/{chunk-3VVZFBE2.js → chunk-PJ6FZXUR.js} +3 -3
- package/dist/bundle/{chunk-PI4XXMPG.js → chunk-QCLMP635.js} +6 -6
- package/dist/bundle/{chunk-YQFO7WXQ.js → chunk-QGLB4D7J.js} +2 -2
- package/dist/bundle/{chunk-N5UM63JW.js → chunk-QMEPKUG3.js} +56 -55
- package/dist/bundle/{chunk-F3GHTPAO.js → chunk-QOINWAQD.js} +4 -4
- package/dist/bundle/{chunk-GUL6QLNI.js → chunk-QYLYMOXN.js} +17 -17
- package/dist/bundle/{chunk-NQXVZ5WT.js → chunk-RFDPU4NO.js} +11 -6
- package/dist/bundle/{chunk-IK6XKMLL.js → chunk-SL4S5GFR.js} +1 -1
- package/dist/bundle/{chunk-VMWJGUVV.js → chunk-SXVB2CVR.js} +4 -4
- package/dist/bundle/{chunk-5EL6E6PW.js → chunk-UIFQEXVP.js} +1 -1
- package/dist/bundle/{chunk-I4JUKRW7.js → chunk-URFBZNLU.js} +2 -2
- package/dist/bundle/{chunk-3PLMMFP6.js → chunk-W35POPPX.js} +17 -17
- package/dist/bundle/{chunk-IVFUSI7G.js → chunk-W725T2V7.js} +3 -2
- package/dist/bundle/{chunk-XDHGM2Z7.js → chunk-W75SKUY4.js} +3 -3
- package/dist/bundle/{chunk-HEV23NIB.js → chunk-XGBXRDJP.js} +6 -6
- package/dist/bundle/{chunk-UR62DZ7Q.js → chunk-XS5C5TQ7.js} +8 -8
- package/dist/bundle/{chunk-CDSSKK5J.js → chunk-Y4724JRR.js} +3 -3
- package/dist/bundle/{chunk-7AWJZ6NJ.js → chunk-Y5DGB7GP.js} +8 -8
- package/dist/bundle/{chunk-ASEBKZFY.js → chunk-YRZXOQOB.js} +2 -2
- package/dist/bundle/{chunk-WKOVQ4OU.js → chunk-ZXCQF6XV.js} +12 -12
- package/dist/bundle/command-contract-ZEYY3ZXK.js +34 -0
- package/dist/bundle/{command-server-entry-K52OEKIO.js → command-server-entry-UWY6PQIV.js} +24 -24
- package/dist/bundle/{decode-OAE25LEJ.js → decode-QGMFQ6XX.js} +5 -5
- package/dist/bundle/{dispatch-6GVTXIZ2.js → dispatch-PRAIGIFS.js} +8 -8
- package/dist/bundle/{echarts-EO4ZGKMN.js → echarts-GHU3GEWV.js} +2 -2
- package/dist/bundle/{embed-TB2AS4AT.js → embed-6DMEWQDO.js} +6 -6
- package/dist/bundle/{embedder-YKC42G6L.js → embedder-W2L7YZPW.js} +9 -9
- package/dist/bundle/{entry-AB6FU7BN.js → entry-LPEXVFQC.js} +9 -9
- package/dist/bundle/{failure-CY7ACT6V.js → failure-7Y34AUJT.js} +2 -2
- package/dist/bundle/{first-run-CMQZHDI5.js → first-run-3UJ6SJF5.js} +11 -11
- package/dist/bundle/first-screen-VCSY5QH5.js +32 -0
- package/dist/bundle/{instructions-RM3IB6ID.js → instructions-RUVAH2IS.js} +1 -1
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-D2PM62TA.js → node-RYSNHVBX.js} +2 -2
- package/dist/bundle/{node-sqlite-UK5DE525.js → node-sqlite-J6ZL4LUY.js} +7 -7
- package/dist/bundle/{oauth-SKRG67A2.js → oauth-B2QNZNSC.js} +7 -7
- package/dist/bundle/{open-XP3SY62D.js → open-OMUP5P6V.js} +5 -5
- package/dist/bundle/{openai-Q3U46UPA.js → openai-BT4BP4VQ.js} +21 -20
- package/dist/bundle/{process-YJ4LHMJB.js → process-HG3QDD54.js} +1 -1
- package/dist/bundle/{program-EEPEFKTR.js → program-P2VATMKJ.js} +62 -60
- package/dist/bundle/{prompt-WYTODP4U.js → prompt-BTIHH3Z4.js} +5 -5
- package/dist/bundle/{proxy-transport-HJMQ5QFT.js → proxy-transport-DP7SIMIC.js} +5 -5
- package/dist/bundle/{recognize-K2S5QQU2.js → recognize-CTSJXPIG.js} +4 -4
- package/dist/bundle/{remote-7RSAJ3JC.js → remote-2FIGCMKL.js} +9 -9
- package/dist/bundle/{rerank-RJX77BKD.js → rerank-TI5SLEF4.js} +7 -7
- package/dist/bundle/{serve-3E7NN3VW.js → serve-IO3IM5C7.js} +9 -9
- package/dist/bundle/server-RIGXUTKZ.js +62 -0
- package/dist/bundle/{server-O3KU56A4.js → server-WEPFFTYA.js} +38 -36
- package/dist/bundle/{sqlite-runtime-RCS5WSG5.js → sqlite-runtime-CTEYXX7L.js} +6 -6
- package/dist/bundle/{state-PLWSPSAG.js → state-GFHVDGHM.js} +6 -6
- package/dist/bundle/{store-DWMKCXYL.js → store-RCK6HT4F.js} +13 -13
- package/dist/bundle/{store-3FYLH53Z.js → store-Y5XC4LEM.js} +15 -15
- package/dist/bundle/store-maintenance-command-XH6VMCDU.js +52 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +6 -2
- package/dist/bundle/chunk-VIIIC5LU.js +0 -32
- package/dist/bundle/command-contract-UKOL455D.js +0 -34
- package/dist/bundle/first-screen-XZ73W3VE.js +0 -32
- package/dist/bundle/server-ITHYDPWQ.js +0 -62
- package/dist/bundle/store-maintenance-command-3UEKINRB.js +0 -52
- /package/dist/bundle/{chunk-HVJJWJYQ.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MP47TE77.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-7KCBPAQS.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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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");
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7KCBPAQS.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.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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")
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FYOHGIQP.js";
|
|
7
7
|
import {
|
|
8
8
|
FETCHING,
|
|
9
9
|
RULES_VERSION,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
typedQuery,
|
|
29
29
|
withQuery,
|
|
30
30
|
withTimeLimit
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MA2XHO4O.js";
|
|
32
32
|
import {
|
|
33
33
|
holdLock,
|
|
34
34
|
lockPath,
|
|
35
35
|
releaseLock,
|
|
36
36
|
servingProfiles,
|
|
37
37
|
takeLock
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-Y4724JRR.js";
|
|
39
39
|
import {
|
|
40
40
|
QUICK_HEALTH_CHECKS,
|
|
41
41
|
fts5Tables,
|
|
@@ -43,14 +43,14 @@ import {
|
|
|
43
43
|
lossUnknown,
|
|
44
44
|
storeDamageReport,
|
|
45
45
|
storeHealth
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-W35POPPX.js";
|
|
47
47
|
import {
|
|
48
48
|
stringWidth,
|
|
49
49
|
wrapAnsi
|
|
50
50
|
} from "./chunk-2ABQZVK4.js";
|
|
51
51
|
import {
|
|
52
52
|
readSecret
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-W75SKUY4.js";
|
|
54
54
|
import {
|
|
55
55
|
CORPORA,
|
|
56
56
|
MIGRATIONS,
|
|
@@ -85,10 +85,10 @@ import {
|
|
|
85
85
|
storeClients,
|
|
86
86
|
storeContents,
|
|
87
87
|
vectorIndexCounts
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-JAKP5RWM.js";
|
|
89
89
|
import {
|
|
90
90
|
openCache
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-XGBXRDJP.js";
|
|
92
92
|
import {
|
|
93
93
|
Command,
|
|
94
94
|
LOCAL_READ,
|
|
@@ -116,14 +116,14 @@ import {
|
|
|
116
116
|
snakeKeys,
|
|
117
117
|
storeTable,
|
|
118
118
|
withoutProviderRefs
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-2F2UMQMB.js";
|
|
120
120
|
import {
|
|
121
121
|
holdersOf
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-OXB5P37M.js";
|
|
123
123
|
import {
|
|
124
124
|
modelAddressAllowed,
|
|
125
125
|
onThisComputer
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-AZ7DSHQO.js";
|
|
127
127
|
import {
|
|
128
128
|
currentRun,
|
|
129
129
|
formatLocator,
|
|
@@ -133,25 +133,25 @@ import {
|
|
|
133
133
|
readHealthMark,
|
|
134
134
|
readJournalMark,
|
|
135
135
|
recordDeepCheck
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-JQ2RKLPU.js";
|
|
137
137
|
import {
|
|
138
138
|
failureKey,
|
|
139
139
|
isStoreDamage
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-PJ6FZXUR.js";
|
|
141
141
|
import {
|
|
142
142
|
readSharedSection,
|
|
143
143
|
sharedConfigPath,
|
|
144
144
|
writeSharedSection
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-CK7DSGIK.js";
|
|
146
146
|
import {
|
|
147
147
|
storePath
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-W725T2V7.js";
|
|
149
149
|
import {
|
|
150
150
|
Credentials,
|
|
151
151
|
isMovedRun,
|
|
152
152
|
resolvePaths,
|
|
153
153
|
writeSecurely
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-NM5GBJME.js";
|
|
155
155
|
import {
|
|
156
156
|
array,
|
|
157
157
|
boolean,
|
|
@@ -173,12 +173,12 @@ import {
|
|
|
173
173
|
string,
|
|
174
174
|
transform,
|
|
175
175
|
trim
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
177
177
|
import {
|
|
178
178
|
CliError,
|
|
179
179
|
singleLine,
|
|
180
180
|
visibleControls
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-7KCBPAQS.js";
|
|
182
182
|
import {
|
|
183
183
|
__commonJS,
|
|
184
184
|
__name,
|
|
@@ -5518,11 +5518,11 @@ var require_liquid_node = __commonJS({
|
|
|
5518
5518
|
}
|
|
5519
5519
|
});
|
|
5520
5520
|
|
|
5521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5521
|
+
// 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/messenger/store-maintenance-command.js
|
|
5522
5522
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5523
5523
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5524
5524
|
|
|
5525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5525
|
+
// 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/sealed.js
|
|
5526
5526
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5527
5527
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5528
5528
|
import { Transform } from "node:stream";
|
|
@@ -5629,7 +5629,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5629
5629
|
renameSync(pending, to);
|
|
5630
5630
|
}, "unsealFile");
|
|
5631
5631
|
|
|
5632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5632
|
+
// 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/compatibility.js
|
|
5633
5633
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5634
5634
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5635
5635
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5653,7 +5653,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5653
5653
|
};
|
|
5654
5654
|
}, "compatibilityOf");
|
|
5655
5655
|
|
|
5656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5656
|
+
// 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/repair.js
|
|
5657
5657
|
import { createHash as createHash2 } from "node:crypto";
|
|
5658
5658
|
var COPY_MARK = "__repair_";
|
|
5659
5659
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5907,19 +5907,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5907
5907
|
return found;
|
|
5908
5908
|
}, "deleteCopy");
|
|
5909
5909
|
|
|
5910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5910
|
+
// 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/store-info.js
|
|
5911
5911
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5912
5912
|
|
|
5913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5913
|
+
// 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/store-recover.js
|
|
5914
5914
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5915
5915
|
|
|
5916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5916
|
+
// 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/recover.js
|
|
5917
5917
|
import { execFileSync, spawn } from "node:child_process";
|
|
5918
5918
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5919
5919
|
import { basename, dirname, join } from "node:path";
|
|
5920
5920
|
import { Transform as Transform2 } from "node:stream";
|
|
5921
5921
|
|
|
5922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5922
|
+
// 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/refill.js
|
|
5923
5923
|
var REFILL_MARGIN_MS = 864e5;
|
|
5924
5924
|
var TIME_KEYS = 1e12;
|
|
5925
5925
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -5999,7 +5999,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
5999
5999
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6000
6000
|
}, "forgetMail");
|
|
6001
6001
|
|
|
6002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6002
|
+
// 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/recover.js
|
|
6003
6003
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6004
6004
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6005
6005
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6527,7 +6527,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6527
6527
|
}
|
|
6528
6528
|
}, "recoverLocked");
|
|
6529
6529
|
|
|
6530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6530
|
+
// 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/store-recover.js
|
|
6531
6531
|
var COUNTED = [
|
|
6532
6532
|
"accounts",
|
|
6533
6533
|
"chats",
|
|
@@ -6683,7 +6683,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6683
6683
|
return recover;
|
|
6684
6684
|
}, "storeRecoverCommand");
|
|
6685
6685
|
|
|
6686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6686
|
+
// 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/store-info.js
|
|
6687
6687
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6688
6688
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6689
6689
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6729,7 +6729,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6729
6729
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6730
6730
|
}), "storeInfoCommand");
|
|
6731
6731
|
|
|
6732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6732
|
+
// 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/messenger/password.js
|
|
6733
6733
|
var ENCRYPT_OPTION = [
|
|
6734
6734
|
"--encrypt",
|
|
6735
6735
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -6748,7 +6748,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6748
6748
|
return password;
|
|
6749
6749
|
}, "passwordOf");
|
|
6750
6750
|
|
|
6751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6751
|
+
// 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/replies/rules.js
|
|
6752
6752
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6753
6753
|
import { join as join2 } from "node:path";
|
|
6754
6754
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6919,7 +6919,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6919
6919
|
}, "problem");
|
|
6920
6920
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6921
6921
|
|
|
6922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6922
|
+
// 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/replies/state.js
|
|
6923
6923
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6924
6924
|
import { join as join3 } from "node:path";
|
|
6925
6925
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6972,7 +6972,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6972
6972
|
}, "recordReply");
|
|
6973
6973
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6974
6974
|
|
|
6975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6975
|
+
// 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/replies/decide.js
|
|
6976
6976
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6977
6977
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6978
6978
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7078,10 +7078,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7078
7078
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7079
7079
|
}, "filled");
|
|
7080
7080
|
|
|
7081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7081
|
+
// 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/replies/template.js
|
|
7082
7082
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7083
7083
|
|
|
7084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7084
|
+
// 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/render/liquid.js
|
|
7085
7085
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7086
7086
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7087
7087
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7108,7 +7108,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7108
7108
|
return engine;
|
|
7109
7109
|
}, "safeLiquid");
|
|
7110
7110
|
|
|
7111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7111
|
+
// 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/replies/template.js
|
|
7112
7112
|
var TEMPLATE_LIMITS = {
|
|
7113
7113
|
parse: 32768,
|
|
7114
7114
|
renders: 2e3,
|
|
@@ -7247,7 +7247,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7247
7247
|
}
|
|
7248
7248
|
}, "renderReplyTemplate");
|
|
7249
7249
|
|
|
7250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7250
|
+
// 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/replies/dry-run.js
|
|
7251
7251
|
var DRY_RUN_DAYS = 7;
|
|
7252
7252
|
var PAGE = 500;
|
|
7253
7253
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7361,7 +7361,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7361
7361
|
}
|
|
7362
7362
|
}, "storedSince");
|
|
7363
7363
|
|
|
7364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7364
|
+
// 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/models/ai.js
|
|
7365
7365
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7366
7366
|
var DEFAULT_BASE_URL = {
|
|
7367
7367
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7407,10 +7407,10 @@ var aiSettingOf = /* @__PURE__ */ __name((given) => {
|
|
|
7407
7407
|
const checked = safeParse(settingShape, draft);
|
|
7408
7408
|
if (!checked.success) {
|
|
7409
7409
|
const field = getDotPath(checked.issues[0]);
|
|
7410
|
-
throw new CliError("validation_error", field === "provider" ? `the provider is one of ${AI_PROVIDERS.join(", ")}` : field === "base_url" ? "this address is not allowed: use https, or http only on this computer" : "name the model, 1 to 200 characters", { reason: field === "base_url" ? "
|
|
7410
|
+
throw new CliError("validation_error", field === "provider" ? `the provider is one of ${AI_PROVIDERS.join(", ")}` : field === "base_url" ? "this address is not allowed: use https, or http only on this computer" : "name the model, 1 to 200 characters", { reason: field === "base_url" ? "model.address-refused" : "ai.setting-invalid" });
|
|
7411
7411
|
}
|
|
7412
7412
|
if (checked.output.provider === "ollama" && !onThisComputer(aiBaseUrl(checked.output)))
|
|
7413
|
-
throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "
|
|
7413
|
+
throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "model.address-refused" });
|
|
7414
7414
|
return given.allowImages ? {
|
|
7415
7415
|
...checked.output,
|
|
7416
7416
|
images: { origin: aiOrigin(checked.output), model: checked.output.model, at: (/* @__PURE__ */ new Date()).toISOString() }
|
|
@@ -7511,7 +7511,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7511
7511
|
}
|
|
7512
7512
|
}, "checkAi");
|
|
7513
7513
|
|
|
7514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7514
|
+
// 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/models/purpose.js
|
|
7515
7515
|
var HOSTED = {
|
|
7516
7516
|
openai: "https://api.openai.com/v1",
|
|
7517
7517
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7532,7 +7532,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7532
7532
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7533
7533
|
}, "purposeModel");
|
|
7534
7534
|
|
|
7535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7535
|
+
// 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/replies/consents.js
|
|
7536
7536
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7537
7537
|
import { join as join4 } from "node:path";
|
|
7538
7538
|
var shape = strictObject({
|
|
@@ -7557,7 +7557,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7557
7557
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7558
7558
|
}, "mayModelReply");
|
|
7559
7559
|
|
|
7560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7560
|
+
// 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/replies/rendering.js
|
|
7561
7561
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7562
7562
|
ai: true
|
|
7563
7563
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7605,7 +7605,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7605
7605
|
return result2;
|
|
7606
7606
|
}, "replyRenderer");
|
|
7607
7607
|
|
|
7608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7608
|
+
// 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/replies/serve.js
|
|
7609
7609
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7610
7610
|
var NO_RULES = "no rules";
|
|
7611
7611
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7698,7 +7698,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7698
7698
|
return { skip: why };
|
|
7699
7699
|
}, "replyTo");
|
|
7700
7700
|
|
|
7701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7701
|
+
// 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/messenger/serve-catch-up.js
|
|
7702
7702
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7703
7703
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7704
7704
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7775,7 +7775,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7775
7775
|
};
|
|
7776
7776
|
}, "startSync");
|
|
7777
7777
|
|
|
7778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7778
|
+
// 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/messenger/serve-members.js
|
|
7779
7779
|
var FIRST_FETCH_MS = 6e4;
|
|
7780
7780
|
var DAY_MS = 864e5;
|
|
7781
7781
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7829,7 +7829,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7829
7829
|
};
|
|
7830
7830
|
}, "memberFetches");
|
|
7831
7831
|
|
|
7832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7832
|
+
// 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/messenger/serve-notice.js
|
|
7833
7833
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7834
7834
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7835
7835
|
if (context.format === "pretty") {
|
|
@@ -7862,7 +7862,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7862
7862
|
return context;
|
|
7863
7863
|
}, "recordDiagnostics");
|
|
7864
7864
|
|
|
7865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7865
|
+
// 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/messenger/serve-outdated.js
|
|
7866
7866
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7867
7867
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7868
7868
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7948,7 +7948,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7948
7948
|
};
|
|
7949
7949
|
}, "watchOutdated");
|
|
7950
7950
|
|
|
7951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7951
|
+
// 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/messenger/serve-stems.js
|
|
7952
7952
|
var STEMS_EVERY_MS = 3e4;
|
|
7953
7953
|
var STEMS_SLICE_MS = 2e3;
|
|
7954
7954
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7988,7 +7988,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7988
7988
|
};
|
|
7989
7989
|
}, "stemFills");
|
|
7990
7990
|
|
|
7991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7991
|
+
// 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/render/messages.js
|
|
7992
7992
|
import { styleText } from "node:util";
|
|
7993
7993
|
var TIME_WIDTH = 8;
|
|
7994
7994
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -8164,7 +8164,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
8164
8164
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
8165
8165
|
}, "editedAt");
|
|
8166
8166
|
|
|
8167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8167
|
+
// 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/messenger/message-items.js
|
|
8168
8168
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8169
8169
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8170
8170
|
kind: attachment.kind,
|
|
@@ -8260,7 +8260,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8260
8260
|
locale: messenger.app.locale
|
|
8261
8261
|
}), "viewOf");
|
|
8262
8262
|
|
|
8263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8263
|
+
// 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/messenger/watch-answers.js
|
|
8264
8264
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8265
8265
|
value: value.value,
|
|
8266
8266
|
observed_at: value.observedAt,
|
|
@@ -8327,7 +8327,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8327
8327
|
}
|
|
8328
8328
|
}, "watchEventItem");
|
|
8329
8329
|
|
|
8330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8330
|
+
// 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/messenger/watch-command.js
|
|
8331
8331
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8332
8332
|
output: { entity: "watch_item" },
|
|
8333
8333
|
effects: REMOTE_READ,
|
|
@@ -8482,7 +8482,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8482
8482
|
}
|
|
8483
8483
|
}, "describe");
|
|
8484
8484
|
|
|
8485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8485
|
+
// 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/messenger/serve-command.js
|
|
8486
8486
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8487
8487
|
const command = annotate(new Command("serve"), {
|
|
8488
8488
|
output: { entity: "serve_summary" },
|
|
@@ -8765,7 +8765,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8765
8765
|
};
|
|
8766
8766
|
}, "tasking");
|
|
8767
8767
|
|
|
8768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8768
|
+
// 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/messenger/store-tables-command.js
|
|
8769
8769
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8770
8770
|
var PATH = "store tables list";
|
|
8771
8771
|
var STORE_TABLES_QUERY = {
|
|
@@ -8808,7 +8808,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8808
8808
|
return tables;
|
|
8809
8809
|
}, "storeTablesCommand");
|
|
8810
8810
|
|
|
8811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8811
|
+
// 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/messenger/store-maintenance-command.js
|
|
8812
8812
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8813
8813
|
var WORD_INDEX = "message_words";
|
|
8814
8814
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -9546,6 +9546,7 @@ export {
|
|
|
9546
9546
|
replyModelIdentity,
|
|
9547
9547
|
replyRenderer,
|
|
9548
9548
|
DAY_MS,
|
|
9549
|
+
ownPackageRoot,
|
|
9549
9550
|
renderMessages,
|
|
9550
9551
|
messageItem,
|
|
9551
9552
|
messageItems,
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
describeOptions,
|
|
8
8
|
keyForCommand,
|
|
9
9
|
metaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2F2UMQMB.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonSchemaOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
14
14
|
import {
|
|
15
15
|
CliError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7KCBPAQS.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// 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-contract.js
|
|
22
22
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
23
23
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
24
24
|
const entity = answerEntitySchema(command);
|
|
@@ -13,52 +13,52 @@ import {
|
|
|
13
13
|
privateFiles,
|
|
14
14
|
providerRequest,
|
|
15
15
|
withSqliteSidecars
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7UACPXDC.js";
|
|
17
17
|
import {
|
|
18
18
|
parseProxy,
|
|
19
19
|
proxyAddress,
|
|
20
20
|
proxyError,
|
|
21
21
|
proxyLabel,
|
|
22
22
|
proxySetting
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
hostFetch
|
|
26
|
-
} from "./chunk-PZ6H65D6.js";
|
|
23
|
+
} from "./chunk-URFBZNLU.js";
|
|
27
24
|
import {
|
|
28
25
|
messengerContext
|
|
29
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FYOHGIQP.js";
|
|
30
27
|
import {
|
|
31
28
|
uploadBlob
|
|
32
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MA2XHO4O.js";
|
|
33
30
|
import {
|
|
34
31
|
DESKTOP,
|
|
35
32
|
TG
|
|
36
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7FL2N6DM.js";
|
|
37
34
|
import {
|
|
38
35
|
asFirstWord,
|
|
39
36
|
environmentOf,
|
|
40
37
|
fromFile,
|
|
41
38
|
settingsFor
|
|
42
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-2F2UMQMB.js";
|
|
40
|
+
import {
|
|
41
|
+
hostFetch
|
|
42
|
+
} from "./chunk-AZ7DSHQO.js";
|
|
43
43
|
import {
|
|
44
44
|
currentAttempt
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-JQ2RKLPU.js";
|
|
46
46
|
import {
|
|
47
47
|
Credentials,
|
|
48
48
|
isMovedRun,
|
|
49
49
|
pathsAreOverridden,
|
|
50
50
|
resolvePaths
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-NM5GBJME.js";
|
|
52
52
|
import {
|
|
53
53
|
optional
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
55
55
|
import {
|
|
56
56
|
importFrom
|
|
57
57
|
} from "./chunk-Y5E2WNWB.js";
|
|
58
58
|
import {
|
|
59
59
|
CliError,
|
|
60
60
|
isCliError
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-7KCBPAQS.js";
|
|
62
62
|
import {
|
|
63
63
|
__name
|
|
64
64
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -189,7 +189,7 @@ var logOut = /* @__PURE__ */ __name(async (profile, sessionPath, context) => {
|
|
|
189
189
|
checks: checkWords("tg", profile),
|
|
190
190
|
...keyring ? { keyring } : {}
|
|
191
191
|
});
|
|
192
|
-
const { TelegramAdapter } = await import("./adapter-
|
|
192
|
+
const { TelegramAdapter } = await import("./adapter-BXU3AVB7.js");
|
|
193
193
|
const adapter = await TelegramAdapter.open({ credentials, sessionPath, ...through ? { proxy: through.proxy } : {} });
|
|
194
194
|
try {
|
|
195
195
|
await adapter.logout();
|
|
@@ -254,7 +254,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
|
|
|
254
254
|
throw new CliError(temporary ? "provider_unavailable" : "authentication_error", loggedIn ? `no Telegram app credentials found for profile "${profile}", although it has logged in on this machine \u2014 the keyring is probably out of reach (cron, ssh, an MCP client that trims the environment: set XDG_RUNTIME_DIR); \`tg ${asFirstWord(profile)}doctor\` shows it. Log in again only if they were removed` : `no Telegram app credentials for profile "${profile}" \u2014 run ${setup} in a local terminal first, or sign in from ${desktop}; agents: read \`tg skill show\``, temporary ? { reason: "credentials.unreachable" } : {});
|
|
255
255
|
}
|
|
256
256
|
const options = { credentials: resolved, sessionPath, ...connecting };
|
|
257
|
-
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-
|
|
257
|
+
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-BXU3AVB7.js")).TelegramAdapter.open({
|
|
258
258
|
...options,
|
|
259
259
|
...proxyOption(proxy()),
|
|
260
260
|
diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
|
|
@@ -979,7 +979,7 @@ var TELEGRAM_BOT = {
|
|
|
979
979
|
const botId = token.split(":", 1)[0] ?? "";
|
|
980
980
|
if (!/^\d+$/.test(botId))
|
|
981
981
|
throw new CliError("authentication_error", "the bot token has no valid bot id");
|
|
982
|
-
const reader = await (environment.botHistory ?? (await import("./bot-history-
|
|
982
|
+
const reader = await (environment.botHistory ?? (await import("./bot-history-5C35FGCD.js")).openBotHistory)({
|
|
983
983
|
credentials,
|
|
984
984
|
sessionPath: botSessionFile(profile, botId, env),
|
|
985
985
|
token,
|
|
@@ -999,7 +999,7 @@ var TELEGRAM_BOT = {
|
|
|
999
999
|
return void 0;
|
|
1000
1000
|
let personal;
|
|
1001
1001
|
try {
|
|
1002
|
-
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-
|
|
1002
|
+
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-BXU3AVB7.js")).TelegramAdapter.open({
|
|
1003
1003
|
credentials,
|
|
1004
1004
|
sessionPath: personalPath,
|
|
1005
1005
|
checks: words,
|