@wirecat/drive-cli 0.60.0 → 0.61.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/README.md +4 -5
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-537I27Z4.js → all-profiles-H4L3Z5UM.js} +14 -14
- package/dist/bundle/{anthropic-X4NWVHDF.js → anthropic-PPGFISVP.js} +9 -9
- package/dist/bundle/{app-server-KSHJKKS7.js → app-server-YXVK2FUZ.js} +52 -52
- package/dist/bundle/{bun-WTBGGCUC.js → bun-DKZAL6ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-T7Y3JFFD.js → bun-sqlite-MTZY36QK.js} +8 -8
- package/dist/bundle/{chunk-VRW6ZDTH.js → chunk-2RJA4BQB.js} +19 -19
- package/dist/bundle/{chunk-VVCZS42A.js → chunk-3252WXOL.js} +1 -1
- package/dist/bundle/{chunk-3TQHIHZI.js → chunk-36CWGEVX.js} +2 -2
- package/dist/bundle/{chunk-AXWXQNTC.js → chunk-3I2D5TK2.js} +10 -10
- package/dist/bundle/{chunk-PDYHEWKG.js → chunk-3SJQNS72.js} +5 -5
- package/dist/bundle/{chunk-PPL5ASW2.js → chunk-3UPIJ7DW.js} +280 -280
- package/dist/bundle/{chunk-PETFPXLU.js → chunk-3WZH3WV3.js} +3 -3
- package/dist/bundle/{chunk-5XHLQZAG.js → chunk-5W56YMQS.js} +25 -25
- package/dist/bundle/{chunk-IXN7Y6JA.js → chunk-5W7D5H2R.js} +1 -1
- package/dist/bundle/{chunk-FZOCQQ66.js → chunk-67HS46KM.js} +12 -12
- package/dist/bundle/{chunk-HFGR33KD.js → chunk-6DN4VPA7.js} +25 -25
- package/dist/bundle/{chunk-HIP43OGZ.js → chunk-6IBM4Z3V.js} +1 -1
- package/dist/bundle/{chunk-V7QMHMR3.js → chunk-6SUGANRJ.js} +6 -6
- package/dist/bundle/{chunk-LQSRVQ3V.js → chunk-6Y2FWJZ4.js} +3 -3
- package/dist/bundle/{chunk-GVRS5AIH.js → chunk-73WSULMI.js} +2 -2
- package/dist/bundle/{chunk-ZPQS7XJA.js → chunk-AM4RIWOZ.js} +4 -4
- package/dist/bundle/{chunk-HCJG7ENG.js → chunk-AWN22PJK.js} +3 -3
- package/dist/bundle/{chunk-YDN2RH5S.js → chunk-BCWUDTYQ.js} +2 -2
- package/dist/bundle/{chunk-GD6TQ6U4.js → chunk-BF6TQMNB.js} +8 -8
- package/dist/bundle/chunk-BQMIDYBA.js +415 -0
- package/dist/bundle/{chunk-JQLIM6BH.js → chunk-BXR7BKM3.js} +1 -1
- package/dist/bundle/{chunk-MVNPE5FZ.js → chunk-CACYL36O.js} +8 -8
- package/dist/bundle/{chunk-246P2DCT.js → chunk-DCBFNBEB.js} +113 -51
- package/dist/bundle/{chunk-TXMTMEHW.js → chunk-DEPMQHXQ.js} +4 -4
- package/dist/bundle/{chunk-O37ESNAP.js → chunk-DXPOVLQC.js} +46 -28
- package/dist/bundle/{chunk-CKGHRWVR.js → chunk-E5EXJ2XS.js} +4 -4
- package/dist/bundle/{chunk-4CBZEAQ7.js → chunk-E6J5YH2N.js} +34 -34
- package/dist/bundle/{chunk-4XZXH2NM.js → chunk-ECEYAQGN.js} +2 -2
- package/dist/bundle/{chunk-XDIEQ2CE.js → chunk-EPCJUL6M.js} +3 -3
- package/dist/bundle/{chunk-EHAI773E.js → chunk-FE5JJXKA.js} +2 -2
- package/dist/bundle/{chunk-DQDKLZAK.js → chunk-HFM653T3.js} +49 -49
- package/dist/bundle/{chunk-UVYVIHEA.js → chunk-HGOYQUT7.js} +1 -1
- package/dist/bundle/{chunk-KEXTTZJM.js → chunk-I26VL4W7.js} +2 -2
- package/dist/bundle/{chunk-LJ77Y3TK.js → chunk-J4HQVHMN.js} +6 -5
- package/dist/bundle/{chunk-YGG7UA3C.js → chunk-J5UDQD5S.js} +5 -5
- package/dist/bundle/{chunk-73TTP6ET.js → chunk-JVBLXSAA.js} +141 -141
- package/dist/bundle/{chunk-N7S2UPF3.js → chunk-K7LS3NGM.js} +55 -55
- package/dist/bundle/{chunk-2AXA5SKP.js → chunk-KV4267S4.js} +1 -1
- package/dist/bundle/{chunk-IRZ7OF3F.js → chunk-LARQTWIL.js} +1 -1
- package/dist/bundle/{chunk-QIJWSKZL.js → chunk-N2RLJTIW.js} +4 -4
- package/dist/bundle/{chunk-HQVIK6PM.js → chunk-NIX2MWHZ.js} +242 -362
- package/dist/bundle/{chunk-4VHBDVY2.js → chunk-NZ2EIZLX.js} +14 -10
- package/dist/bundle/{chunk-SZXI4OXX.js → chunk-O5CUFS7T.js} +2 -2
- package/dist/bundle/{chunk-FO4TCH6P.js → chunk-OFFA54TW.js} +2 -2
- package/dist/bundle/{chunk-W62CON5K.js → chunk-OGNOQDWB.js} +4 -4
- package/dist/bundle/{chunk-OYNUBWD2.js → chunk-OLPJRD4S.js} +1 -1
- package/dist/bundle/{chunk-67QXMO2G.js → chunk-PJTX2MOI.js} +26 -26
- package/dist/bundle/{chunk-MXP35VPO.js → chunk-PY7LKNOS.js} +2 -2
- package/dist/bundle/{chunk-FTZNUZO7.js → chunk-Q4XVBKX4.js} +3 -3
- package/dist/bundle/{chunk-5AMRCBMP.js → chunk-QR5VQXQ5.js} +26 -26
- package/dist/bundle/{chunk-S36HRPNS.js → chunk-QSGT4ZH4.js} +1 -1
- package/dist/bundle/{chunk-57QVQGBE.js → chunk-RFRCOAWS.js} +22 -22
- package/dist/bundle/{chunk-DMHGWL5D.js → chunk-S4YK6TTG.js} +13 -13
- package/dist/bundle/{chunk-UVLSWLPZ.js → chunk-TKGAYKXW.js} +16 -16
- package/dist/bundle/{chunk-SBHSNOU4.js → chunk-UKOYQC5O.js} +19 -18
- package/dist/bundle/{chunk-XFXRGQXJ.js → chunk-UO2IUDVK.js} +2 -2
- package/dist/bundle/{chunk-UTFATA4K.js → chunk-VPDAH7PJ.js} +1 -1
- package/dist/bundle/{chunk-TKW4QWCY.js → chunk-VYXVPYA3.js} +12 -6
- package/dist/bundle/{chunk-YYHKVOVK.js → chunk-W767AUNR.js} +4 -4
- package/dist/bundle/{chunk-73MNUSP3.js → chunk-WIU733D2.js} +1 -1
- package/dist/bundle/{chunk-UNJE63JK.js → chunk-WUP2MJDN.js} +2 -2
- package/dist/bundle/{chunk-EBLA7GXY.js → chunk-WZ5XK74U.js} +2 -1
- package/dist/bundle/{chunk-77C5XRH3.js → chunk-X2CXW4HM.js} +7 -7
- package/dist/bundle/{chunk-D6WIWOQC.js → chunk-XGMDWIUP.js} +4 -4
- package/dist/bundle/{chunk-K6XVRA6U.js → chunk-XGNC5OJG.js} +1 -1
- package/dist/bundle/{chunk-ALWTUDZF.js → chunk-XLFJLZJL.js} +4 -4
- package/dist/bundle/{chunk-JGUJJNGZ.js → chunk-XYCCGGKN.js} +242 -242
- package/dist/bundle/{chunk-TVQDMP2F.js → chunk-XZBR2O63.js} +271 -271
- package/dist/bundle/{chunk-OMKUBCNN.js → chunk-YMBFZA3H.js} +8 -8
- package/dist/bundle/{chunk-ZYCLPJ7U.js → chunk-YPF6OS37.js} +1 -1
- package/dist/bundle/{chunk-6HTKB4WC.js → chunk-YWIU4HOT.js} +1 -1
- package/dist/bundle/{chunk-V2VMBM7O.js → chunk-ZHYRHERD.js} +2 -2
- package/dist/bundle/{chunk-22ATLSNK.js → chunk-ZMNYK3FC.js} +5 -5
- package/dist/bundle/command-contract-T3EO5AYD.js +39 -0
- package/dist/bundle/{decode-35N57AFW.js → decode-62A3HGPW.js} +8 -8
- package/dist/bundle/{dispatch-CWXZW3PL.js → dispatch-IE7PBEQC.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-3P3QZWMU.js → echarts-BGBPRGR5.js} +2 -2
- package/dist/bundle/{embed-Q6Q5IOJQ.js → embed-J3IBVV2V.js} +9 -9
- package/dist/bundle/{embedder-D44JDTAA.js → embedder-QFPMDRT2.js} +12 -12
- package/dist/bundle/entry-YQSYER66.js +22 -0
- package/dist/bundle/{failure-GRMMSDCZ.js → failure-BKOGBMIC.js} +4 -4
- package/dist/bundle/first-run-ZIFPVZAI.js +30 -0
- package/dist/bundle/first-screen-L5U26EY7.js +37 -0
- package/dist/bundle/{google-6ZZDKFBN.js → google-RXM2XEPD.js} +13 -13
- package/dist/bundle/{google-api-E6MOJ4ZD.js → google-api-NC65BZO4.js} +83 -64
- package/dist/bundle/grants-SEWUYYH3.js +105 -0
- package/dist/bundle/{identity-TID7S5NE.js → identity-PI6F2GWA.js} +6 -6
- package/dist/bundle/{instructions-ANJN4HV3.js → instructions-6LPDSKAD.js} +1 -1
- package/dist/bundle/{login-BGMK2ABH.js → login-HTY7GT2S.js} +64 -64
- package/dist/bundle/{mcp-WBHKX5E3.js → mcp-PPVOM4SE.js} +2 -2
- package/dist/bundle/{node-VOB45ES2.js → node-IB246NCQ.js} +2 -2
- package/dist/bundle/{node-sqlite-TSX6XQY2.js → node-sqlite-G2Y5SFJM.js} +9 -9
- package/dist/bundle/oauth-MWBKBI4T.js +22 -0
- package/dist/bundle/{open-3USWHGNR.js → open-WD4GFSJD.js} +8 -8
- package/dist/bundle/{openai-YZ5VGPIP.js → openai-QVM4PMY7.js} +17 -17
- package/dist/bundle/{process-44JS2W7L.js → process-SWPJGPQC.js} +1 -1
- package/dist/bundle/{program-TZLAFKJV.js → program-WHYFAMXR.js} +117 -98
- package/dist/bundle/prompt-OVYCGZB7.js +17 -0
- package/dist/bundle/{reasons-ZK3U3CIN.js → reasons-Q34DQWB6.js} +5 -5
- package/dist/bundle/{recognize-OFW7HWTM.js → recognize-DM3YWHSE.js} +7 -7
- package/dist/bundle/{remote-YBDRZQZ5.js → remote-KXVWRK7J.js} +10 -10
- package/dist/bundle/{rerank-TQQNS5FJ.js → rerank-TINXM3MY.js} +10 -10
- package/dist/bundle/{serve-OPZXMVLH.js → serve-IY2WL656.js} +12 -12
- package/dist/bundle/server-EMWVVT2C.js +70 -0
- package/dist/bundle/{server-2D6DDIK5.js → server-VPY3OWPC.js} +44 -44
- package/dist/bundle/{services-34WKT3NN.js → services-PXNBOCOC.js} +32 -32
- package/dist/bundle/{sqlite-runtime-WPUMKLUV.js → sqlite-runtime-5ZK2CV7Y.js} +9 -9
- package/dist/bundle/{start-ZXUJZ4JV.js → start-LDVCN3DK.js} +7 -7
- package/dist/bundle/{state-AV2RB3AQ.js → state-3MKTT3VS.js} +9 -9
- package/dist/bundle/{store-3M7N2Q5T.js → store-4VQOT5IJ.js} +18 -18
- package/dist/bundle/{store-YKV4GAMS.js → store-7M4MSUJV.js} +20 -20
- package/dist/bundle/store-maintenance-command-NRATYBWD.js +60 -0
- package/dist/bundle/tokens-XUKLM3SL.js +103 -0
- package/dist/commands/config.js +1 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +10 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +16 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +11 -17
- package/dist/config.js.map +1 -1
- package/dist/download.d.ts +3 -2
- package/dist/download.d.ts.map +1 -1
- package/dist/download.js +21 -9
- package/dist/download.js.map +1 -1
- package/dist/google-api.d.ts +3 -1
- package/dist/google-api.d.ts.map +1 -1
- package/dist/google-api.js +27 -7
- package/dist/google-api.js.map +1 -1
- package/dist/login.js +1 -1
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +6 -6
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-77YTRBL6.js +0 -249
- package/dist/bundle/command-contract-NUIWUVYB.js +0 -39
- package/dist/bundle/entry-ZHCNI7XO.js +0 -22
- package/dist/bundle/first-run-3DC2SDWM.js +0 -30
- package/dist/bundle/first-screen-YJF4YODC.js +0 -37
- package/dist/bundle/grants-GWXDH5GM.js +0 -105
- package/dist/bundle/oauth-CEOYXW6C.js +0 -22
- package/dist/bundle/prompt-SG7LAOXW.js +0 -17
- package/dist/bundle/server-R6G2O772.js +0 -70
- package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +0 -60
- package/dist/bundle/tokens-F63RXXEF.js +0 -103
- package/dist/oauth-application.d.ts +0 -5
- package/dist/oauth-application.d.ts.map +0 -1
- package/dist/oauth-application.js +0 -9
- package/dist/oauth-application.js.map +0 -1
- /package/dist/bundle/{chunk-LK2E2ELG.js → chunk-LU3WKZBA.js} +0 -0
|
@@ -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-5W56YMQS.js";
|
|
7
7
|
import {
|
|
8
8
|
chatEventAnswer,
|
|
9
9
|
memberAnswer,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
serveRelay,
|
|
13
13
|
typedQuery,
|
|
14
14
|
withQuery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2RJA4BQB.js";
|
|
16
16
|
import {
|
|
17
17
|
stringWidth,
|
|
18
18
|
wrapAnsi
|
|
@@ -40,24 +40,24 @@ import {
|
|
|
40
40
|
snakeKeys,
|
|
41
41
|
storeTable,
|
|
42
42
|
withoutProviderRefs
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-JVBLXSAA.js";
|
|
44
44
|
import {
|
|
45
45
|
envName
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ECEYAQGN.js";
|
|
47
47
|
import {
|
|
48
48
|
holdLock,
|
|
49
49
|
lockPath,
|
|
50
50
|
releaseLock,
|
|
51
51
|
servingProfiles,
|
|
52
52
|
takeLock
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-Q4XVBKX4.js";
|
|
54
54
|
import {
|
|
55
55
|
holdersOf
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-WIU733D2.js";
|
|
57
57
|
import {
|
|
58
58
|
checkedOptions,
|
|
59
59
|
range
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-AWN22PJK.js";
|
|
61
61
|
import {
|
|
62
62
|
FETCHING,
|
|
63
63
|
RULES_VERSION,
|
|
@@ -70,21 +70,21 @@ import {
|
|
|
70
70
|
senderIsMe,
|
|
71
71
|
servicesFor,
|
|
72
72
|
syncsOneChat
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-XYCCGGKN.js";
|
|
74
74
|
import {
|
|
75
75
|
codeOf,
|
|
76
76
|
currentRun,
|
|
77
77
|
levelFor,
|
|
78
78
|
parseDuration
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-6DN4VPA7.js";
|
|
80
80
|
import {
|
|
81
81
|
failureKey
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-BCWUDTYQ.js";
|
|
83
83
|
import {
|
|
84
84
|
messagesFor,
|
|
85
85
|
systemFor,
|
|
86
86
|
validateImages
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-FE5JJXKA.js";
|
|
88
88
|
import {
|
|
89
89
|
MIGRATIONS,
|
|
90
90
|
drainNoteIndex,
|
|
@@ -113,29 +113,29 @@ import {
|
|
|
113
113
|
storeClients,
|
|
114
114
|
storeContents,
|
|
115
115
|
vectorIndexCounts
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-3UPIJ7DW.js";
|
|
117
117
|
import {
|
|
118
118
|
queryFieldsOf
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-NZ2EIZLX.js";
|
|
120
120
|
import {
|
|
121
121
|
storePath
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-I26VL4W7.js";
|
|
123
123
|
import {
|
|
124
124
|
openCache
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-6SUGANRJ.js";
|
|
126
126
|
import {
|
|
127
127
|
readSecret
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-EPCJUL6M.js";
|
|
129
129
|
import {
|
|
130
130
|
Credentials,
|
|
131
131
|
pathsAreOverridden,
|
|
132
132
|
resolvePaths,
|
|
133
133
|
writeSecurely
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-DCBFNBEB.js";
|
|
135
135
|
import {
|
|
136
136
|
singleLine,
|
|
137
137
|
visibleControls
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-6IBM4Z3V.js";
|
|
139
139
|
import {
|
|
140
140
|
array,
|
|
141
141
|
boolean,
|
|
@@ -159,10 +159,10 @@ import {
|
|
|
159
159
|
transform,
|
|
160
160
|
trim,
|
|
161
161
|
union
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-VYXVPYA3.js";
|
|
163
163
|
import {
|
|
164
164
|
CliError
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-WZ5XK74U.js";
|
|
166
166
|
import {
|
|
167
167
|
__commonJS,
|
|
168
168
|
__name,
|
|
@@ -5502,11 +5502,11 @@ var require_liquid_node = __commonJS({
|
|
|
5502
5502
|
}
|
|
5503
5503
|
});
|
|
5504
5504
|
|
|
5505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5506
5506
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5507
5507
|
import { dirname, resolve } from "node:path";
|
|
5508
5508
|
|
|
5509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5510
5510
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5511
5511
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5512
5512
|
import { Transform } from "node:stream";
|
|
@@ -5613,7 +5613,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5613
5613
|
renameSync(pending, to);
|
|
5614
5614
|
}, "unsealFile");
|
|
5615
5615
|
|
|
5616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5617
5617
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5618
5618
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5619
5619
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5637,7 +5637,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5637
5637
|
};
|
|
5638
5638
|
}, "compatibilityOf");
|
|
5639
5639
|
|
|
5640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5641
5641
|
import { createHash as createHash2 } from "node:crypto";
|
|
5642
5642
|
var COPY_MARK = "__repair_";
|
|
5643
5643
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5891,7 +5891,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5891
5891
|
return found;
|
|
5892
5892
|
}, "deleteCopy");
|
|
5893
5893
|
|
|
5894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5895
5895
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5896
5896
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5897
5897
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5938,7 +5938,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5938
5938
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5939
5939
|
}), "storeInfoCommand");
|
|
5940
5940
|
|
|
5941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5942
5942
|
var ENCRYPT_OPTION = [
|
|
5943
5943
|
"--encrypt",
|
|
5944
5944
|
"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"
|
|
@@ -5957,7 +5957,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5957
5957
|
return password;
|
|
5958
5958
|
}, "passwordOf");
|
|
5959
5959
|
|
|
5960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5961
5961
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5962
5962
|
import { join } from "node:path";
|
|
5963
5963
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6128,7 +6128,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6128
6128
|
}, "problem");
|
|
6129
6129
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6130
6130
|
|
|
6131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6132
6132
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6133
6133
|
import { join as join2 } from "node:path";
|
|
6134
6134
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6181,7 +6181,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6181
6181
|
}, "recordReply");
|
|
6182
6182
|
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");
|
|
6183
6183
|
|
|
6184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6185
6185
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6186
6186
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6187
6187
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6287,7 +6287,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6287
6287
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6288
6288
|
}, "filled");
|
|
6289
6289
|
|
|
6290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6291
6291
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6292
6292
|
var TEMPLATE_LIMITS = {
|
|
6293
6293
|
parse: 32768,
|
|
@@ -6447,7 +6447,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6447
6447
|
}
|
|
6448
6448
|
}, "renderReplyTemplate");
|
|
6449
6449
|
|
|
6450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6451
6451
|
var DRY_RUN_DAYS = 7;
|
|
6452
6452
|
var PAGE = 500;
|
|
6453
6453
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6561,7 +6561,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6561
6561
|
}
|
|
6562
6562
|
}, "storedSince");
|
|
6563
6563
|
|
|
6564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6565
6565
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6566
6566
|
const host = new URL(baseUrl).host;
|
|
6567
6567
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6592,7 +6592,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6592
6592
|
};
|
|
6593
6593
|
}, "embeddingKeys");
|
|
6594
6594
|
|
|
6595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6596
6596
|
var options = strictObject({
|
|
6597
6597
|
temperature: range(0, 2),
|
|
6598
6598
|
top_p: range(0, 1),
|
|
@@ -6641,7 +6641,7 @@ var openai = {
|
|
|
6641
6641
|
}, "complete")
|
|
6642
6642
|
};
|
|
6643
6643
|
|
|
6644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6645
6645
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6646
6646
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6647
6647
|
if (deps.signal?.aborted)
|
|
@@ -6656,7 +6656,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6656
6656
|
if (!adapter && target.provider === "openai")
|
|
6657
6657
|
adapter = openai;
|
|
6658
6658
|
if (!adapter && target.provider === "anthropic")
|
|
6659
|
-
adapter = (await import("./anthropic-
|
|
6659
|
+
adapter = (await import("./anthropic-PPGFISVP.js")).anthropic;
|
|
6660
6660
|
if (!adapter)
|
|
6661
6661
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6662
6662
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6697,7 +6697,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6697
6697
|
}, "complete")
|
|
6698
6698
|
}), "modelGateway");
|
|
6699
6699
|
|
|
6700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6701
6701
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6702
6702
|
import { join as join3 } from "node:path";
|
|
6703
6703
|
var shape = strictObject({
|
|
@@ -6722,7 +6722,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6722
6722
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6723
6723
|
}, "mayModelReply");
|
|
6724
6724
|
|
|
6725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6726
6726
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6727
6727
|
ai: true
|
|
6728
6728
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6769,7 +6769,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6769
6769
|
return result2;
|
|
6770
6770
|
}, "replyRenderer");
|
|
6771
6771
|
|
|
6772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6773
6773
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6774
6774
|
var NO_RULES = "no rules";
|
|
6775
6775
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6862,7 +6862,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6862
6862
|
return { skip: why };
|
|
6863
6863
|
}, "replyTo");
|
|
6864
6864
|
|
|
6865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
6866
6866
|
var START_SYNC_DELAY_MS = 3e4;
|
|
6867
6867
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
6868
6868
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -6939,7 +6939,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
|
|
|
6939
6939
|
};
|
|
6940
6940
|
}, "startSync");
|
|
6941
6941
|
|
|
6942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6943
6943
|
var FIRST_FETCH_MS = 6e4;
|
|
6944
6944
|
var DAY_MS = 864e5;
|
|
6945
6945
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6993,7 +6993,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6993
6993
|
};
|
|
6994
6994
|
}, "memberFetches");
|
|
6995
6995
|
|
|
6996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6997
6997
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6998
6998
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6999
6999
|
if (context.format === "pretty") {
|
|
@@ -7026,7 +7026,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7026
7026
|
return context;
|
|
7027
7027
|
}, "recordDiagnostics");
|
|
7028
7028
|
|
|
7029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7030
7030
|
var STEMS_EVERY_MS = 3e4;
|
|
7031
7031
|
var STEMS_SLICE_MS = 2e3;
|
|
7032
7032
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7066,7 +7066,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7066
7066
|
};
|
|
7067
7067
|
}, "stemFills");
|
|
7068
7068
|
|
|
7069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7070
7070
|
import { styleText } from "node:util";
|
|
7071
7071
|
var TIME_WIDTH = 8;
|
|
7072
7072
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7242,7 +7242,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
|
|
|
7242
7242
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7243
7243
|
}, "editedAt");
|
|
7244
7244
|
|
|
7245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7246
7246
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7247
7247
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7248
7248
|
kind: attachment.kind,
|
|
@@ -7337,7 +7337,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7337
7337
|
locale: messenger.app.locale
|
|
7338
7338
|
}), "viewOf");
|
|
7339
7339
|
|
|
7340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7341
7341
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7342
7342
|
value: value.value,
|
|
7343
7343
|
observed_at: value.observedAt,
|
|
@@ -7404,7 +7404,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7404
7404
|
}
|
|
7405
7405
|
}, "watchEventItem");
|
|
7406
7406
|
|
|
7407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7408
7408
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7409
7409
|
output: { entity: "watch_item" },
|
|
7410
7410
|
effects: REMOTE_READ,
|
|
@@ -7559,7 +7559,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7559
7559
|
}
|
|
7560
7560
|
}, "describe");
|
|
7561
7561
|
|
|
7562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7563
7563
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7564
7564
|
const command = annotate(new Command("serve"), {
|
|
7565
7565
|
output: { entity: "serve_summary" },
|
|
@@ -7823,7 +7823,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7823
7823
|
};
|
|
7824
7824
|
}, "tasking");
|
|
7825
7825
|
|
|
7826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7827
7827
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7828
7828
|
var PATH = "store tables list";
|
|
7829
7829
|
var STORE_TABLES_QUERY = {
|
|
@@ -7866,7 +7866,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7866
7866
|
return tables;
|
|
7867
7867
|
}, "storeTablesCommand");
|
|
7868
7868
|
|
|
7869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7870
7870
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7871
7871
|
var WORD_INDEX = "message_words";
|
|
7872
7872
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -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.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -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-DCBFNBEB.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.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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");
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
visibleControls
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6IBM4Z3V.js";
|
|
6
6
|
import {
|
|
7
7
|
BASE_REASONS,
|
|
8
8
|
COMMON_DETAILS,
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
CRASH_REASON,
|
|
11
11
|
stepOf,
|
|
12
12
|
writes
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VYXVPYA3.js";
|
|
14
14
|
import {
|
|
15
15
|
errorCodes,
|
|
16
16
|
isCliError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WZ5XK74U.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
23
23
|
var EXIT_CODES = {
|
|
24
24
|
validation_error: 2,
|
|
25
25
|
configuration_error: 3,
|
|
@@ -34,12 +34,13 @@ var EXIT_CODES = {
|
|
|
34
34
|
provider_unavailable: 12,
|
|
35
35
|
invalid_response: 13,
|
|
36
36
|
outcome_unknown: 14,
|
|
37
|
+
conflict: 15,
|
|
37
38
|
cancelled: 130
|
|
38
39
|
};
|
|
39
40
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
40
41
|
var GENERIC_FAILURE = 1;
|
|
41
42
|
|
|
42
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
43
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
43
44
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
44
45
|
if (isCliError(failure))
|
|
45
46
|
return failure;
|
|
@@ -8,23 +8,23 @@ import {
|
|
|
8
8
|
installFiles,
|
|
9
9
|
megabytes,
|
|
10
10
|
sharedModelsDirectory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XLFJLZJL.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WZ5XK74U.js";
|
|
18
18
|
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.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
23
23
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
24
24
|
import { availableParallelism } from "node:os";
|
|
25
25
|
import { basename, join as join2 } from "node:path";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
28
28
|
import { createHash } from "node:crypto";
|
|
29
29
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
30
30
|
import { join } from "node:path";
|
|
@@ -207,7 +207,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
207
207
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
208
208
|
}, "openSession");
|
|
209
209
|
|
|
210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
211
211
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
212
212
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
213
213
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|