@wirecat/drive-cli 0.55.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-I5KJKZPF.js → all-profiles-7LSZ3CC3.js} +9 -9
- package/dist/bundle/{anthropic-DPM7BRKX.js → anthropic-3QRM4QXB.js} +5 -5
- package/dist/bundle/{app-server-FTGLOZ2K.js → app-server-WWNMUHID.js} +48 -48
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-NIIYUR5F.js} +2 -2
- package/dist/bundle/{bun-sqlite-7JJX6OUT.js → bun-sqlite-GSLSN3OT.js} +4 -4
- package/dist/bundle/{chunk-NPMVPKBD.js → chunk-2QLLKDE5.js} +48 -47
- package/dist/bundle/{chunk-P4ABC6C4.js → chunk-2ULJW5BA.js} +2 -2
- package/dist/bundle/{chunk-AR2HRFQO.js → chunk-373WJIHE.js} +2 -2
- package/dist/bundle/{chunk-K2DMCTTF.js → chunk-3BXSLNWW.js} +129 -97
- package/dist/bundle/{chunk-BO7ZKZCH.js → chunk-4F2VRJZE.js} +121 -46
- package/dist/bundle/{chunk-NDUYK676.js → chunk-4UQLL6RJ.js} +10 -9
- package/dist/bundle/{chunk-NFOUG7ES.js → chunk-566W4Q6L.js} +2 -2
- package/dist/bundle/{chunk-E7RDXCV2.js → chunk-5KNIVHP6.js} +5 -5
- package/dist/bundle/{chunk-VXZULAWV.js → chunk-64E6QXXQ.js} +14 -13
- package/dist/bundle/{chunk-FNDQFFLP.js → chunk-6CFSDU56.js} +11 -11
- package/dist/bundle/{chunk-ORRQDSDH.js → chunk-6ZA4NR5H.js} +3 -3
- package/dist/bundle/{chunk-PFTIYWOK.js → chunk-7SNS443B.js} +4 -4
- package/dist/bundle/{chunk-JPFF6MNK.js → chunk-AHBUTDS7.js} +8 -8
- package/dist/bundle/{chunk-TIEEVT2Z.js → chunk-AKPFH3KC.js} +1 -1
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-AL7MY7MW.js} +1 -1
- package/dist/bundle/{chunk-RMQGFLT2.js → chunk-B3TPS7BW.js} +6 -6
- package/dist/bundle/{chunk-2DZMGPUC.js → chunk-B64EY2SC.js} +123 -34
- package/dist/bundle/{chunk-2OGANEKA.js → chunk-CD736BG3.js} +2 -2
- package/dist/bundle/{chunk-C4QKY33N.js → chunk-CGCQNYB3.js} +2 -2
- package/dist/bundle/{chunk-2KARCTUU.js → chunk-EE7R457T.js} +949 -581
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-EFEI724Z.js} +1 -1
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-EFX6FIDM.js} +1 -1
- package/dist/bundle/{chunk-DNJ43DT5.js → chunk-ELIYJXIY.js} +2 -2
- package/dist/bundle/{chunk-NPKFXGYG.js → chunk-EN7OZ5JH.js} +41 -23
- package/dist/bundle/{chunk-IXXVCKWL.js → chunk-G34Y5RAC.js} +26 -26
- package/dist/bundle/{chunk-TBD362SJ.js → chunk-GIQFBXQN.js} +11 -7
- package/dist/bundle/{chunk-KWKRTYRL.js → chunk-GKHUHRSL.js} +4 -4
- package/dist/bundle/{chunk-VGTDXEYD.js → chunk-HNUSPNUQ.js} +26 -13
- package/dist/bundle/{chunk-XTNEYXAQ.js → chunk-IJ2S53WJ.js} +5 -5
- package/dist/bundle/{chunk-FUKJQZED.js → chunk-ISK4K7UE.js} +1 -1
- package/dist/bundle/{chunk-YP5FDMTG.js → chunk-J2HGHSLX.js} +2 -2
- package/dist/bundle/{chunk-ULPS2OAL.js → chunk-JIGMCW4C.js} +4 -4
- package/dist/bundle/{chunk-ALMQEGYO.js → chunk-JLKNUFL2.js} +2 -2
- package/dist/bundle/{chunk-UDWMRZL6.js → chunk-JUKVJ7M2.js} +21 -21
- package/dist/bundle/{chunk-LAVWTS4P.js → chunk-KHNDZNQA.js} +5333 -5108
- package/dist/bundle/{chunk-GB5YM5HK.js → chunk-KM4Y55ZE.js} +5 -5
- package/dist/bundle/{chunk-CP6M5P4X.js → chunk-KYNTSA6K.js} +3 -3
- package/dist/bundle/{chunk-4XRLPQ3N.js → chunk-L4BBK7UX.js} +2 -2
- package/dist/bundle/chunk-LBFFI6FE.js +247 -0
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-LSSIVBQI.js} +1 -1
- package/dist/bundle/{chunk-D6SRTPCV.js → chunk-NLLWLCUZ.js} +2 -2
- package/dist/bundle/{chunk-6OJMA4ZT.js → chunk-O5KDIVGE.js} +389 -255
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-OOR6PEHV.js} +1 -1
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-OYNSFQ7K.js} +1 -1
- package/dist/bundle/{chunk-67A2YFAT.js → chunk-OZJMZSFB.js} +4 -4
- package/dist/bundle/{chunk-GC4JNVYF.js → chunk-Q3TMNETS.js} +98 -37
- package/dist/bundle/{chunk-5DEEBWDI.js → chunk-QAT6UXZZ.js} +38 -37
- package/dist/bundle/{chunk-VY3TYRCK.js → chunk-R5GJZPRF.js} +114 -59
- package/dist/bundle/{chunk-4I7EBJJV.js → chunk-RAEKC6TV.js} +6 -6
- package/dist/bundle/{chunk-HNR2BJJU.js → chunk-RB674T6L.js} +75 -17
- package/dist/bundle/{chunk-NCCL4QWR.js → chunk-SRNXTXJN.js} +3 -3
- package/dist/bundle/{chunk-TD4RAOMZ.js → chunk-TKVSJV5P.js} +3 -3
- package/dist/bundle/{chunk-W6DMCGMK.js → chunk-TR5656OS.js} +47 -22
- package/dist/bundle/{chunk-VY2AUZMJ.js → chunk-TZHCS5MG.js} +2 -2
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-U2RSVKR5.js} +1 -1
- package/dist/bundle/{chunk-IDK5QUBJ.js → chunk-UKMFPBAO.js} +4 -4
- package/dist/bundle/{chunk-GIRVMZD3.js → chunk-VTJF2L5E.js} +16 -16
- package/dist/bundle/{chunk-AQNY57J2.js → chunk-W5FOPSJZ.js} +7 -7
- package/dist/bundle/{chunk-FKHWVVMV.js → chunk-W6FYYQ2J.js} +3 -3
- package/dist/bundle/{chunk-VVMCGF5X.js → chunk-WAVJWGUC.js} +1811 -883
- package/dist/bundle/{chunk-FDM3JMQZ.js → chunk-WBYCUBYM.js} +89 -36
- package/dist/bundle/{chunk-TIVC4DB5.js → chunk-WJOKTIOJ.js} +2 -2
- package/dist/bundle/{chunk-7MVKSPEG.js → chunk-WJPVGXKA.js} +6 -6
- package/dist/bundle/{chunk-N4VNUOOD.js → chunk-XGNADVIA.js} +18 -18
- package/dist/bundle/{chunk-J6XLM4QW.js → chunk-XJVK7ETL.js} +28 -10
- package/dist/bundle/{chunk-3K4H2DTA.js → chunk-YZ6SYLDC.js} +12 -3
- package/dist/bundle/command-contract-XIACCAZL.js +35 -0
- package/dist/bundle/{decode-3LX3BLZM.js → decode-5MHMPYKE.js} +4 -4
- package/dist/bundle/drive.js +6 -6
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-CLB22SZS.js} +2 -2
- package/dist/bundle/{embed-FICTRZJL.js → embed-TF66ODAR.js} +5 -5
- package/dist/bundle/{embedder-DSMRCRSH.js → embedder-EDWOIAC2.js} +8 -8
- package/dist/bundle/{entry-4ZX3BNXK.js → entry-CWYCQ53A.js} +8 -6
- package/dist/bundle/{first-run-GRBQ3SQ5.js → first-run-YIH7EHJI.js} +9 -9
- package/dist/bundle/first-screen-THH3XD5Y.js +33 -0
- package/dist/bundle/{google-QV2B2KZA.js → google-A4F2WFO4.js} +9 -9
- package/dist/bundle/{google-api-EVO7F3WB.js → google-api-ZXGQOJUI.js} +51 -51
- package/dist/bundle/grants-3Z7DG3W3.js +98 -0
- package/dist/bundle/{identity-TKAX75OT.js → identity-4IO7WGG4.js} +4 -4
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-BXZZNAMS.js} +1 -1
- package/dist/bundle/{login-R2YEAKEM.js → login-A4QHJ5DA.js} +57 -57
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-VVMPUDSL.js} +2 -2
- package/dist/bundle/{node-GFOH6FKP.js → node-R6ZNQ3NT.js} +2 -2
- package/dist/bundle/{node-sqlite-NZIBED3C.js → node-sqlite-AFQTE4XZ.js} +4 -4
- package/dist/bundle/{oauth-WUHT2JII.js → oauth-46XBJBML.js} +6 -6
- package/dist/bundle/{open-INBNHORD.js → open-WJCRBIP7.js} +3 -3
- package/dist/bundle/{openai-BMREUGJP.js → openai-3TIBDWZA.js} +13 -13
- package/dist/bundle/{process-XVDX4SPD.js → process-P36JP33R.js} +1 -1
- package/dist/bundle/{program-DUWFQOSL.js → program-AHZH65IT.js} +85 -77
- package/dist/bundle/{prompt-S7GHCPGR.js → prompt-FFGBIT4A.js} +4 -4
- package/dist/bundle/{reasons-T24V3AYS.js → reasons-VHCVYH54.js} +3 -3
- package/dist/bundle/{recognize-T3DABMW5.js → recognize-4EAKIMON.js} +3 -3
- package/dist/bundle/{remote-ASYGFT6E.js → remote-HX3JP4EH.js} +6 -6
- package/dist/bundle/{rerank-BQ5U252K.js → rerank-BW3A4PUU.js} +6 -6
- package/dist/bundle/{serve-JMLNKCUZ.js → serve-YYOOLIBS.js} +8 -8
- package/dist/bundle/{server-5E6RC7GZ.js → server-G6XTEEFI.js} +38 -38
- package/dist/bundle/server-YKYEUIJT.js +63 -0
- package/dist/bundle/{services-NFB3XSON.js → services-OAPILZOW.js} +45 -25
- package/dist/bundle/{sqlite-runtime-TAMYMQFR.js → sqlite-runtime-GTXDK4PE.js} +4 -4
- package/dist/bundle/{state-DS4G3ZXV.js → state-XG335LGZ.js} +5 -5
- package/dist/bundle/{store-MLMKYJLC.js → store-7KOXJNQP.js} +14 -12
- package/dist/bundle/{store-HAS2LRFE.js → store-N53SJOPS.js} +33 -15
- package/dist/bundle/store-maintenance-command-W3TI52X2.js +52 -0
- package/dist/bundle/tokens-P7TEHKDD.js +96 -0
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +10 -2
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -12
- package/dist/config.js.map +1 -1
- package/dist/profile-lock.js +2 -2
- package/dist/profile-lock.js.map +1 -1
- package/dist/reasons.js +1 -1
- package/dist/reasons.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-3NAVOBGH.js +0 -331
- package/dist/bundle/command-contract-VXLGE6NV.js +0 -35
- package/dist/bundle/first-screen-JK3MZVCU.js +0 -33
- package/dist/bundle/grants-B642KK5M.js +0 -98
- package/dist/bundle/server-QI4C3CQT.js +0 -63
- package/dist/bundle/store-maintenance-command-LI3JR22B.js +0 -52
- package/dist/bundle/tokens-UMSAYGOH.js +0 -96
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-HPXYN7F3.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-B64EY2SC.js";
|
|
7
7
|
import {
|
|
8
8
|
chatEventAnswer,
|
|
9
9
|
memberAnswer,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
serveRelay,
|
|
13
13
|
typedQuery,
|
|
14
14
|
withQuery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EN7OZ5JH.js";
|
|
16
16
|
import {
|
|
17
17
|
holdLock,
|
|
18
18
|
lockPath,
|
|
19
19
|
releaseLock,
|
|
20
20
|
servingProfiles,
|
|
21
21
|
takeLock
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SRNXTXJN.js";
|
|
23
23
|
import {
|
|
24
24
|
RULES_VERSION,
|
|
25
25
|
applyTaskRulesOnArrival,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
senderIsMe,
|
|
30
30
|
servicesFor,
|
|
31
31
|
syncsOneChat
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-KHNDZNQA.js";
|
|
33
33
|
import {
|
|
34
34
|
stringWidth,
|
|
35
35
|
wrapAnsi
|
|
@@ -57,33 +57,33 @@ import {
|
|
|
57
57
|
snakeKeys,
|
|
58
58
|
storeTable,
|
|
59
59
|
withoutProviderRefs
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-4F2VRJZE.js";
|
|
61
61
|
import {
|
|
62
62
|
holdersOf
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-U2RSVKR5.js";
|
|
64
64
|
import {
|
|
65
65
|
codeOf,
|
|
66
66
|
currentRun,
|
|
67
67
|
levelFor
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-TR5656OS.js";
|
|
69
69
|
import {
|
|
70
70
|
failureKey
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-2ULJW5BA.js";
|
|
72
72
|
import {
|
|
73
73
|
envName
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-JLKNUFL2.js";
|
|
75
75
|
import {
|
|
76
76
|
readSecret
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-W6FYYQ2J.js";
|
|
78
78
|
import {
|
|
79
79
|
checkedOptions,
|
|
80
80
|
range
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-L4BBK7UX.js";
|
|
82
82
|
import {
|
|
83
83
|
messagesFor,
|
|
84
84
|
systemFor,
|
|
85
85
|
validateImages
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-ELIYJXIY.js";
|
|
87
87
|
import {
|
|
88
88
|
MIGRATIONS,
|
|
89
89
|
drainNoteIndex,
|
|
@@ -112,16 +112,16 @@ import {
|
|
|
112
112
|
storeClients,
|
|
113
113
|
storeContents,
|
|
114
114
|
vectorIndexCounts
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-WAVJWGUC.js";
|
|
116
116
|
import {
|
|
117
117
|
queryFieldsOf
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-XJVK7ETL.js";
|
|
119
119
|
import {
|
|
120
120
|
storePath
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-CGCQNYB3.js";
|
|
122
122
|
import {
|
|
123
123
|
openCache
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-WJPVGXKA.js";
|
|
125
125
|
import {
|
|
126
126
|
Credentials,
|
|
127
127
|
pathsAreOverridden,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
singleLine,
|
|
130
130
|
visibleControls,
|
|
131
131
|
writeSecurely
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-XGNADVIA.js";
|
|
133
133
|
import {
|
|
134
134
|
CliError,
|
|
135
135
|
array,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
transform,
|
|
155
155
|
trim,
|
|
156
156
|
union
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-GIQFBXQN.js";
|
|
158
158
|
import {
|
|
159
159
|
__commonJS,
|
|
160
160
|
__name,
|
|
@@ -5494,11 +5494,11 @@ var require_liquid_node = __commonJS({
|
|
|
5494
5494
|
}
|
|
5495
5495
|
});
|
|
5496
5496
|
|
|
5497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5498
5498
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5499
5499
|
import { dirname, resolve } from "node:path";
|
|
5500
5500
|
|
|
5501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5502
5502
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5503
5503
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5504
5504
|
import { Transform } from "node:stream";
|
|
@@ -5605,7 +5605,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5605
5605
|
renameSync(pending, to);
|
|
5606
5606
|
}, "unsealFile");
|
|
5607
5607
|
|
|
5608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5609
5609
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5610
5610
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5611
5611
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5629,7 +5629,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5629
5629
|
};
|
|
5630
5630
|
}, "compatibilityOf");
|
|
5631
5631
|
|
|
5632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5633
5633
|
import { createHash as createHash2 } from "node:crypto";
|
|
5634
5634
|
var COPY_MARK = "__repair_";
|
|
5635
5635
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5883,7 +5883,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5883
5883
|
return found;
|
|
5884
5884
|
}, "deleteCopy");
|
|
5885
5885
|
|
|
5886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5887
5887
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5888
5888
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5889
5889
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5930,7 +5930,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5930
5930
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5931
5931
|
}), "storeInfoCommand");
|
|
5932
5932
|
|
|
5933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5934
5934
|
var ENCRYPT_OPTION = [
|
|
5935
5935
|
"--encrypt",
|
|
5936
5936
|
"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"
|
|
@@ -5949,7 +5949,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5949
5949
|
return password;
|
|
5950
5950
|
}, "passwordOf");
|
|
5951
5951
|
|
|
5952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5953
5953
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5954
5954
|
import { join } from "node:path";
|
|
5955
5955
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6120,7 +6120,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6120
6120
|
}, "problem");
|
|
6121
6121
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6122
6122
|
|
|
6123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6124
6124
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6125
6125
|
import { join as join2 } from "node:path";
|
|
6126
6126
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6173,7 +6173,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6173
6173
|
}, "recordReply");
|
|
6174
6174
|
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");
|
|
6175
6175
|
|
|
6176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6177
6177
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6178
6178
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6179
6179
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6279,7 +6279,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6279
6279
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6280
6280
|
}, "filled");
|
|
6281
6281
|
|
|
6282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6283
6283
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6284
6284
|
var TEMPLATE_LIMITS = {
|
|
6285
6285
|
parse: 32768,
|
|
@@ -6439,7 +6439,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6439
6439
|
}
|
|
6440
6440
|
}, "renderReplyTemplate");
|
|
6441
6441
|
|
|
6442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6443
6443
|
var DRY_RUN_DAYS = 7;
|
|
6444
6444
|
var PAGE = 500;
|
|
6445
6445
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6553,7 +6553,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6553
6553
|
}
|
|
6554
6554
|
}, "storedSince");
|
|
6555
6555
|
|
|
6556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6557
6557
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6558
6558
|
const host = new URL(baseUrl).host;
|
|
6559
6559
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6579,12 +6579,12 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6579
6579
|
const shared = ["openai", "anthropic"].includes(provider) ? env[`${provider.toUpperCase()}_API_KEY`]?.trim() : void 0;
|
|
6580
6580
|
return shared ? { key: shared, source: "env" } : void 0;
|
|
6581
6581
|
}, "read"),
|
|
6582
|
-
write: /* @__PURE__ */ __name((provider, key) => credentials(provider).write(account(provider), key), "write"),
|
|
6582
|
+
write: /* @__PURE__ */ __name((provider, key) => credentials(provider).write(account(provider), key, { signIn: true }), "write"),
|
|
6583
6583
|
remove: /* @__PURE__ */ __name((provider) => credentials(provider).remove(account(provider)), "remove")
|
|
6584
6584
|
};
|
|
6585
6585
|
}, "embeddingKeys");
|
|
6586
6586
|
|
|
6587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6588
6588
|
var options = strictObject({
|
|
6589
6589
|
temperature: range(0, 2),
|
|
6590
6590
|
top_p: range(0, 1),
|
|
@@ -6633,7 +6633,7 @@ var openai = {
|
|
|
6633
6633
|
}, "complete")
|
|
6634
6634
|
};
|
|
6635
6635
|
|
|
6636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6637
6637
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6638
6638
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6639
6639
|
if (deps.signal?.aborted)
|
|
@@ -6648,7 +6648,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6648
6648
|
if (!adapter && target.provider === "openai")
|
|
6649
6649
|
adapter = openai;
|
|
6650
6650
|
if (!adapter && target.provider === "anthropic")
|
|
6651
|
-
adapter = (await import("./anthropic-
|
|
6651
|
+
adapter = (await import("./anthropic-3QRM4QXB.js")).anthropic;
|
|
6652
6652
|
if (!adapter)
|
|
6653
6653
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6654
6654
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6689,7 +6689,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6689
6689
|
}, "complete")
|
|
6690
6690
|
}), "modelGateway");
|
|
6691
6691
|
|
|
6692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6693
6693
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6694
6694
|
import { join as join3 } from "node:path";
|
|
6695
6695
|
var shape = strictObject({
|
|
@@ -6714,7 +6714,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6714
6714
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6715
6715
|
}, "mayModelReply");
|
|
6716
6716
|
|
|
6717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6718
6718
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6719
6719
|
ai: true
|
|
6720
6720
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6761,7 +6761,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6761
6761
|
return result2;
|
|
6762
6762
|
}, "replyRenderer");
|
|
6763
6763
|
|
|
6764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6765
6765
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6766
6766
|
var NO_RULES = "no rules";
|
|
6767
6767
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6854,7 +6854,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6854
6854
|
return { skip: why };
|
|
6855
6855
|
}, "replyTo");
|
|
6856
6856
|
|
|
6857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6858
6858
|
var FIRST_FETCH_MS = 6e4;
|
|
6859
6859
|
var DAY_MS = 864e5;
|
|
6860
6860
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6908,7 +6908,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6908
6908
|
};
|
|
6909
6909
|
}, "memberFetches");
|
|
6910
6910
|
|
|
6911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6912
6912
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6913
6913
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6914
6914
|
if (context.format === "pretty") {
|
|
@@ -6941,7 +6941,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
6941
6941
|
return context;
|
|
6942
6942
|
}, "recordDiagnostics");
|
|
6943
6943
|
|
|
6944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
6945
6945
|
var STEMS_EVERY_MS = 3e4;
|
|
6946
6946
|
var STEMS_SLICE_MS = 2e3;
|
|
6947
6947
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -6981,7 +6981,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
6981
6981
|
};
|
|
6982
6982
|
}, "stemFills");
|
|
6983
6983
|
|
|
6984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
6985
6985
|
import { styleText } from "node:util";
|
|
6986
6986
|
var TIME_WIDTH = 8;
|
|
6987
6987
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7157,7 +7157,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
|
|
|
7157
7157
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7158
7158
|
}, "editedAt");
|
|
7159
7159
|
|
|
7160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7161
7161
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7162
7162
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7163
7163
|
kind: attachment.kind,
|
|
@@ -7252,7 +7252,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7252
7252
|
locale: messenger.app.locale
|
|
7253
7253
|
}), "viewOf");
|
|
7254
7254
|
|
|
7255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7256
7256
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7257
7257
|
value: value.value,
|
|
7258
7258
|
observed_at: value.observedAt,
|
|
@@ -7319,7 +7319,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7319
7319
|
}
|
|
7320
7320
|
}, "watchEventItem");
|
|
7321
7321
|
|
|
7322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7323
7323
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7324
7324
|
output: { entity: "watch_item" },
|
|
7325
7325
|
effects: REMOTE_READ,
|
|
@@ -7474,7 +7474,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7474
7474
|
}
|
|
7475
7475
|
}, "describe");
|
|
7476
7476
|
|
|
7477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7478
7478
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7479
7479
|
const command = annotate(new Command("serve"), {
|
|
7480
7480
|
output: { entity: "serve_summary" },
|
|
@@ -7690,7 +7690,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7690
7690
|
};
|
|
7691
7691
|
}, "tasking");
|
|
7692
7692
|
|
|
7693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7694
7694
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7695
7695
|
var PATH = "store tables list";
|
|
7696
7696
|
var STORE_TABLES_QUERY = {
|
|
@@ -7733,7 +7733,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7733
7733
|
return tables;
|
|
7734
7734
|
}, "storeTablesCommand");
|
|
7735
7735
|
|
|
7736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7737
7737
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7738
7738
|
var WORD_INDEX = "message_words";
|
|
7739
7739
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -8349,6 +8349,7 @@ export {
|
|
|
8349
8349
|
writeReplyConsent,
|
|
8350
8350
|
replyModelIdentity,
|
|
8351
8351
|
replyRenderer,
|
|
8352
|
+
DAY_MS,
|
|
8352
8353
|
renderMessages,
|
|
8353
8354
|
messageItem,
|
|
8354
8355
|
messageItems,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
errorCodes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GIQFBXQN.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.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
11
11
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
12
12
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
13
13
|
const { code, exitCode } = value ?? {};
|
|
@@ -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-GIQFBXQN.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.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
11
11
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
12
12
|
var MAX_TEXT_CHARS = 2e6;
|
|
13
13
|
var ATTACHMENT_LIMIT_ENV = [
|