@wirecat/drive-cli 0.50.0 → 0.51.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-WQTVOCIS.js → all-profiles-H3APJWSO.js} +5 -5
- package/dist/bundle/{anthropic-YCA2AWIJ.js → anthropic-P7DXFYFE.js} +3 -3
- package/dist/bundle/{app-server-ZQOYUQJH.js → app-server-IQUR7ZC2.js} +46 -46
- package/dist/bundle/{bun-5NFIDHGM.js → bun-LZUEW2ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-OAQE4M2E.js → bun-sqlite-6LUE7UA6.js} +2 -2
- package/dist/bundle/{chunk-P6VN5UB4.js → chunk-2TPENYCK.js} +3 -3
- package/dist/bundle/{chunk-M6FQOGUW.js → chunk-35IHF562.js} +244 -244
- package/dist/bundle/{chunk-3XX52F42.js → chunk-3KTDFSSK.js} +1 -1
- package/dist/bundle/{chunk-RTIMGPLN.js → chunk-4GFAOETW.js} +2 -2
- package/dist/bundle/{chunk-QNLD7Y6Z.js → chunk-4YG2FZ53.js} +5 -5
- package/dist/bundle/{chunk-QBECV7NO.js → chunk-5C7RKU7O.js} +30 -30
- package/dist/bundle/{chunk-652YTDT5.js → chunk-6FXFYXTR.js} +10 -10
- package/dist/bundle/{chunk-FSAM4Y2S.js → chunk-7LYVWMKD.js} +7 -7
- package/dist/bundle/{chunk-KZEOWOZV.js → chunk-7ZNM6KXP.js} +5 -5
- package/dist/bundle/{chunk-M2D4FXKY.js → chunk-AKW5MNQP.js} +4 -4
- package/dist/bundle/{chunk-Z54E5LKF.js → chunk-AUW45JPI.js} +5 -5
- package/dist/bundle/{chunk-DTHWL5YU.js → chunk-BMI5VCR4.js} +2 -2
- package/dist/bundle/{chunk-ZKGYW63J.js → chunk-BVDAP3FQ.js} +3 -3
- package/dist/bundle/{chunk-2M5XEGVE.js → chunk-CT6Z6Z64.js} +319 -235
- package/dist/bundle/{chunk-QY3LK3OT.js → chunk-CX7HQ6KK.js} +4 -4
- package/dist/bundle/{chunk-3HNUH632.js → chunk-D222O57O.js} +3 -3
- package/dist/bundle/{chunk-ZXD2I5ZQ.js → chunk-D3UFQC7K.js} +46 -46
- package/dist/bundle/{chunk-NHRJW3PH.js → chunk-DDD3FS6G.js} +1 -1
- package/dist/bundle/{chunk-CTIQ77AB.js → chunk-DEVPGI27.js} +15 -15
- package/dist/bundle/{chunk-JSMPSOEM.js → chunk-F3PPSIKI.js} +1 -1
- package/dist/bundle/{chunk-AO3NCZNT.js → chunk-FCZ762RV.js} +7 -7
- package/dist/bundle/{chunk-CEUEXMIR.js → chunk-FV5WG4WU.js} +25 -25
- package/dist/bundle/{chunk-24TOKSZE.js → chunk-GK2VUKQY.js} +2 -2
- package/dist/bundle/{chunk-JA2YY7D4.js → chunk-HBRTKJ3J.js} +6 -6
- package/dist/bundle/{chunk-CCEVICWU.js → chunk-HYT3FJVB.js} +3 -3
- package/dist/bundle/{chunk-KYMGVMOS.js → chunk-I7EP3VPJ.js} +1 -1
- package/dist/bundle/{chunk-VAK2Q2XG.js → chunk-J2S7QDOP.js} +12 -12
- package/dist/bundle/{chunk-5Z63NTC7.js → chunk-JI5KFKTL.js} +4 -4
- package/dist/bundle/{chunk-4OLWMHS6.js → chunk-K3EK4MTU.js} +1 -1
- package/dist/bundle/{chunk-4J7UGHPK.js → chunk-K6JSVXDN.js} +4 -4
- package/dist/bundle/{chunk-MMOG7ZVF.js → chunk-LLMHJE5Q.js} +1 -1
- package/dist/bundle/{chunk-JHBX53SK.js → chunk-LZKPT7GY.js} +32 -32
- package/dist/bundle/{chunk-T7UZHKAS.js → chunk-MPTD5P53.js} +1 -1
- package/dist/bundle/{chunk-UVPKSZSC.js → chunk-N33EOINW.js} +4 -4
- package/dist/bundle/{chunk-LNWRRK2H.js → chunk-NO34DAIB.js} +5 -5
- package/dist/bundle/{chunk-5OMLYNYB.js → chunk-NRWDEBJB.js} +7 -7
- package/dist/bundle/{chunk-C4PNAHI4.js → chunk-NVHPYKYC.js} +10 -10
- package/dist/bundle/{chunk-5ZJHQ4TN.js → chunk-OASIFIXM.js} +1 -1
- package/dist/bundle/{chunk-KEQ35HQQ.js → chunk-OQVJQSEH.js} +2 -2
- package/dist/bundle/{chunk-INVF3GXW.js → chunk-POFLDSTX.js} +8 -8
- package/dist/bundle/{chunk-IUZ4PT2V.js → chunk-PQGIV36R.js} +1 -1
- package/dist/bundle/{chunk-XEETGCOC.js → chunk-PRBPVOW4.js} +1 -1
- package/dist/bundle/{chunk-IFM2APQB.js → chunk-PT6XDCOY.js} +1 -1
- package/dist/bundle/{chunk-ZP735UUT.js → chunk-Q5CLTK5R.js} +1 -1
- package/dist/bundle/{chunk-QSDXVUJG.js → chunk-SRIPLP7N.js} +4 -4
- package/dist/bundle/{chunk-Q27HCATD.js → chunk-SRONUWOM.js} +262 -247
- package/dist/bundle/{chunk-OL22OOIW.js → chunk-SZWQFR5X.js} +3 -3
- package/dist/bundle/{chunk-XGJUEH5C.js → chunk-TEH76MZK.js} +16 -16
- package/dist/bundle/{chunk-HURI56SB.js → chunk-TSZJXI4N.js} +18 -18
- package/dist/bundle/{chunk-4SSUKRO4.js → chunk-TVJU245P.js} +1 -1
- package/dist/bundle/{chunk-E656DAZT.js → chunk-U3OS6V6S.js} +1 -1
- package/dist/bundle/{chunk-IGG4RBIZ.js → chunk-U7DPS46V.js} +96 -96
- package/dist/bundle/{chunk-6E4PFCQ4.js → chunk-UM4E2OFL.js} +1 -1
- package/dist/bundle/{chunk-OQEBGY74.js → chunk-UMY4IQE2.js} +43 -43
- package/dist/bundle/{chunk-POD2GHQB.js → chunk-UW7VXKKZ.js} +17 -17
- package/dist/bundle/{chunk-TATRMMOG.js → chunk-VCPS7Q2W.js} +2 -2
- package/dist/bundle/{chunk-EXYEDKTX.js → chunk-VH4GVA2N.js} +1 -1
- package/dist/bundle/{chunk-VAETCXRI.js → chunk-WACVI3CS.js} +8 -8
- package/dist/bundle/{chunk-BUALWXBT.js → chunk-WX2NQO2D.js} +1 -1
- package/dist/bundle/{chunk-3CQNJKJT.js → chunk-WYWXOIGT.js} +1 -1
- package/dist/bundle/{chunk-7SYSC7KX.js → chunk-XBENRRBS.js} +2 -2
- package/dist/bundle/{chunk-ZJBRKR42.js → chunk-XCXUP76D.js} +25 -25
- package/dist/bundle/{chunk-5WN7JHQE.js → chunk-XE2GEE3E.js} +25 -25
- package/dist/bundle/{chunk-R7XMCREL.js → chunk-XXLTVVMT.js} +18 -18
- package/dist/bundle/{chunk-6DDXB5WB.js → chunk-Y4YBW5S4.js} +1 -1
- package/dist/bundle/{chunk-IA6LNKCF.js → chunk-YLC4JVQZ.js} +3 -3
- package/dist/bundle/{chunk-FABKIQ24.js → chunk-YVQJPLPU.js} +2 -2
- package/dist/bundle/{chunk-4VLUX3V5.js → chunk-YXHMEFL7.js} +1 -1
- package/dist/bundle/{chunk-53UWCVSU.js → chunk-Z3GWVRW3.js} +1 -1
- package/dist/bundle/{chunk-YROVFHPJ.js → chunk-Z6KTSXE3.js} +1 -1
- package/dist/bundle/{chunk-Q3VG3UYV.js → chunk-ZKAAFY4C.js} +9 -9
- package/dist/bundle/command-contract-R6CGYG7L.js +38 -0
- package/dist/bundle/{decode-YZRTP54O.js → decode-4EENADOV.js} +2 -2
- package/dist/bundle/drive.js +4 -4
- package/dist/bundle/{echarts-C6HUK2FL.js → echarts-ZFC37XW7.js} +2 -2
- package/dist/bundle/{embed-QRQ7ITFC.js → embed-UZMNP26C.js} +3 -3
- package/dist/bundle/{embedder-EZDB3JPA.js → embedder-7VDWDBKF.js} +6 -6
- package/dist/bundle/{entry-4WQQKSYG.js → entry-JJKCHVIK.js} +4 -4
- package/dist/bundle/{failure-EEJGMWEP.js → failure-VBQBKCD5.js} +11 -11
- package/dist/bundle/{first-run-ZAS4OV3T.js → first-run-FJTEUJBF.js} +5 -5
- package/dist/bundle/first-screen-NSPQWNMQ.js +36 -0
- package/dist/bundle/{google-KNILTIDW.js → google-JBJASYKY.js} +4 -4
- package/dist/bundle/google-api-2FKF4UUN.js +82 -0
- package/dist/bundle/{identity-VBCGUXT5.js → identity-XE73ALJH.js} +2 -2
- package/dist/bundle/{instructions-II4M2WL3.js → instructions-Q4ASITKO.js} +1 -1
- package/dist/bundle/{login-4JACQVMD.js → login-BD2WQT5F.js} +54 -54
- package/dist/bundle/{mcp-6ZIAWU3N.js → mcp-G6U2Q63E.js} +68 -68
- package/dist/bundle/mcp-H3XD47NW.js +95 -0
- package/dist/bundle/{node-LIN7L4VQ.js → node-CYM7VXFR.js} +2 -2
- package/dist/bundle/{node-sqlite-VAH4KZN3.js → node-sqlite-RK4MHW57.js} +2 -2
- package/dist/bundle/{oauth-QUE3VCTU.js → oauth-CQXQRHJR.js} +4 -4
- package/dist/bundle/{open-DQ3EVYPB.js → open-WSE4NBD2.js} +1 -1
- package/dist/bundle/{process-46XDWPVW.js → process-7HHZZZLA.js} +1 -1
- package/dist/bundle/{program-X3CZ4XDN.js → program-ZMQYZNV5.js} +77 -77
- package/dist/bundle/{prompt-SAZYCZV3.js → prompt-YSBBQJGF.js} +2 -2
- package/dist/bundle/{recognize-SSBOHOTW.js → recognize-AZKGPCAS.js} +1 -1
- package/dist/bundle/{remote-EL3FWCQE.js → remote-EYSK3XKD.js} +4 -4
- package/dist/bundle/{rerank-RPIQRJIW.js → rerank-LOW6VIDF.js} +4 -4
- package/dist/bundle/{serve-AX44DIKK.js → serve-UJ52HGA7.js} +6 -6
- package/dist/bundle/server-CA2VLY25.js +56 -0
- package/dist/bundle/server-TW75RDEP.js +69 -0
- package/dist/bundle/{services-K4UOEMQD.js → services-B4QUSCFN.js} +22 -22
- package/dist/bundle/{sqlite-runtime-N7N3EYGH.js → sqlite-runtime-GEURBVK5.js} +2 -2
- package/dist/bundle/{state-C3S5FD7V.js → state-OJNSKOXO.js} +3 -3
- package/dist/bundle/{store-4N3NBUGX.js → store-62SBP45X.js} +10 -10
- package/dist/bundle/{store-QV4ZNEQ3.js → store-FTS2HVVB.js} +12 -12
- package/dist/bundle/store-maintenance-command-FQMB3R4E.js +57 -0
- package/dist/bundle/tokens-JALZUGEM.js +103 -0
- package/dist/commands/search.js +1 -1
- package/dist/commands/search.js.map +1 -1
- package/dist/contract-overrides.js +1 -1
- package/dist/contract-overrides.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/command-contract-TAWVO2G3.js +0 -38
- package/dist/bundle/first-screen-6ICWD2N3.js +0 -36
- package/dist/bundle/google-api-CZACYX5T.js +0 -82
- package/dist/bundle/mcp-2BR2EX7L.js +0 -95
- package/dist/bundle/server-DCJIGUW2.js +0 -56
- package/dist/bundle/server-WWQSQBFT.js +0 -69
- package/dist/bundle/store-maintenance-command-QL4AECBD.js +0 -57
- package/dist/bundle/tokens-Y7HCOXOA.js +0 -103
- /package/dist/bundle/{chunk-VDZZ46RT.js → chunk-UO5O3665.js} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z6KTSXE3.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-EY4CUQW2.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
14
14
|
import { createHash, randomUUID } from "node:crypto";
|
|
15
15
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
16
16
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -18,7 +18,7 @@ import { dirname, join } from "node:path";
|
|
|
18
18
|
import { Readable, Transform } from "node:stream";
|
|
19
19
|
import { pipeline } from "node:stream/promises";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
22
22
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
23
23
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
24
24
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -142,7 +142,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
142
142
|
return model;
|
|
143
143
|
}, "speechModel");
|
|
144
144
|
|
|
145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
146
146
|
var sharedModelsDirectory = /* @__PURE__ */ __name((kind, env = process.env) => join(wirecatDirectory(env), "models", kind), "sharedModelsDirectory");
|
|
147
147
|
var modelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("audio", env), "modelsDirectory");
|
|
148
148
|
var STALL_MS = 6e4;
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
failureContext
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-K3EK4MTU.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U3OS6V6S.js";
|
|
9
9
|
import {
|
|
10
10
|
REASONS
|
|
11
11
|
} from "./chunk-P3T2SZW2.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
CommanderError,
|
|
18
18
|
metaOf
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BVDAP3FQ.js";
|
|
20
20
|
import {
|
|
21
21
|
errorObjectOf,
|
|
22
22
|
errorRecordOf,
|
|
@@ -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-XCXUP76D.js";
|
|
7
7
|
import {
|
|
8
8
|
chatEventAnswer,
|
|
9
9
|
memberAnswer,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
serveRelay,
|
|
13
13
|
typedQuery,
|
|
14
14
|
withQuery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UW7VXKKZ.js";
|
|
16
16
|
import {
|
|
17
17
|
renderMessages
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OASIFIXM.js";
|
|
19
19
|
import {
|
|
20
20
|
holdLock,
|
|
21
21
|
lockPath,
|
|
22
22
|
releaseLock,
|
|
23
23
|
servingProfiles,
|
|
24
24
|
takeLock
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4GFAOETW.js";
|
|
26
26
|
import {
|
|
27
27
|
RULES_VERSION,
|
|
28
28
|
applyTaskRulesOnArrival,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
senderIsMe,
|
|
33
33
|
servicesFor,
|
|
34
34
|
syncsOneChat
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CT6Z6Z64.js";
|
|
36
36
|
import {
|
|
37
37
|
LOCAL_READ,
|
|
38
38
|
LOCAL_WRITE,
|
|
@@ -54,39 +54,39 @@ import {
|
|
|
54
54
|
snakeKeys,
|
|
55
55
|
storeTable,
|
|
56
56
|
withoutProviderRefs
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-5C7RKU7O.js";
|
|
58
58
|
import {
|
|
59
59
|
Command,
|
|
60
60
|
annotate
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-BVDAP3FQ.js";
|
|
62
62
|
import {
|
|
63
63
|
holdersOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-Z3GWVRW3.js";
|
|
65
65
|
import {
|
|
66
66
|
codeOf,
|
|
67
67
|
currentRun
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-XXLTVVMT.js";
|
|
69
69
|
import {
|
|
70
70
|
failureKey
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-LLMHJE5Q.js";
|
|
72
72
|
import {
|
|
73
73
|
levelFor
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-Y4YBW5S4.js";
|
|
75
75
|
import {
|
|
76
76
|
envName
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-DDD3FS6G.js";
|
|
78
78
|
import {
|
|
79
79
|
readSecret
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-VCPS7Q2W.js";
|
|
81
81
|
import {
|
|
82
82
|
checkedOptions,
|
|
83
83
|
range
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-PT6XDCOY.js";
|
|
85
85
|
import {
|
|
86
86
|
messagesFor,
|
|
87
87
|
systemFor,
|
|
88
88
|
validateImages
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-PQGIV36R.js";
|
|
90
90
|
import {
|
|
91
91
|
MIGRATIONS,
|
|
92
92
|
drainNoteIndex,
|
|
@@ -113,20 +113,20 @@ import {
|
|
|
113
113
|
storeClients,
|
|
114
114
|
storeContents,
|
|
115
115
|
vectorIndexCounts
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-SRONUWOM.js";
|
|
117
117
|
import {
|
|
118
118
|
formatLocator,
|
|
119
119
|
parseLocator
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-7ZNM6KXP.js";
|
|
121
121
|
import {
|
|
122
122
|
queryFieldsOf
|
|
123
123
|
} from "./chunk-G75FZQAZ.js";
|
|
124
124
|
import {
|
|
125
125
|
storePath
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-Z6KTSXE3.js";
|
|
127
127
|
import {
|
|
128
128
|
openCache
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-NO34DAIB.js";
|
|
130
130
|
import {
|
|
131
131
|
Credentials,
|
|
132
132
|
pathsAreOverridden,
|
|
@@ -5497,11 +5497,11 @@ var require_liquid_node = __commonJS({
|
|
|
5497
5497
|
}
|
|
5498
5498
|
});
|
|
5499
5499
|
|
|
5500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5501
5501
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5502
5502
|
import { dirname, resolve } from "node:path";
|
|
5503
5503
|
|
|
5504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5505
5505
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5506
5506
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5507
5507
|
import { Transform } from "node:stream";
|
|
@@ -5608,7 +5608,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5608
5608
|
renameSync(pending, to);
|
|
5609
5609
|
}, "unsealFile");
|
|
5610
5610
|
|
|
5611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5612
5612
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5613
5613
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5614
5614
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5632,7 +5632,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5632
5632
|
};
|
|
5633
5633
|
}, "compatibilityOf");
|
|
5634
5634
|
|
|
5635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5636
5636
|
import { createHash as createHash2 } from "node:crypto";
|
|
5637
5637
|
var COPY_MARK = "__repair_";
|
|
5638
5638
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5886,7 +5886,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5886
5886
|
return found;
|
|
5887
5887
|
}, "deleteCopy");
|
|
5888
5888
|
|
|
5889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5890
5890
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5891
5891
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5892
5892
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5933,7 +5933,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5933
5933
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5934
5934
|
}), "storeInfoCommand");
|
|
5935
5935
|
|
|
5936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5937
5937
|
var ENCRYPT_OPTION = [
|
|
5938
5938
|
"--encrypt",
|
|
5939
5939
|
"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"
|
|
@@ -5952,7 +5952,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5952
5952
|
return password;
|
|
5953
5953
|
}, "passwordOf");
|
|
5954
5954
|
|
|
5955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5956
5956
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5957
5957
|
import { join } from "node:path";
|
|
5958
5958
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6123,7 +6123,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6123
6123
|
}, "problem");
|
|
6124
6124
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6125
6125
|
|
|
6126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6127
6127
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6128
6128
|
import { join as join2 } from "node:path";
|
|
6129
6129
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6176,7 +6176,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6176
6176
|
}, "recordReply");
|
|
6177
6177
|
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");
|
|
6178
6178
|
|
|
6179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6180
6180
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6181
6181
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6182
6182
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6282,7 +6282,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6282
6282
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6283
6283
|
}, "filled");
|
|
6284
6284
|
|
|
6285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6286
6286
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6287
6287
|
var TEMPLATE_LIMITS = {
|
|
6288
6288
|
parse: 32768,
|
|
@@ -6442,7 +6442,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6442
6442
|
}
|
|
6443
6443
|
}, "renderReplyTemplate");
|
|
6444
6444
|
|
|
6445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6446
6446
|
var DRY_RUN_DAYS = 7;
|
|
6447
6447
|
var PAGE = 500;
|
|
6448
6448
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6556,7 +6556,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6556
6556
|
}
|
|
6557
6557
|
}, "storedSince");
|
|
6558
6558
|
|
|
6559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6560
6560
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6561
6561
|
const host = new URL(baseUrl).host;
|
|
6562
6562
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6587,7 +6587,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6587
6587
|
};
|
|
6588
6588
|
}, "embeddingKeys");
|
|
6589
6589
|
|
|
6590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6591
6591
|
var options = strictObject({
|
|
6592
6592
|
temperature: range(0, 2),
|
|
6593
6593
|
top_p: range(0, 1),
|
|
@@ -6636,7 +6636,7 @@ var openai = {
|
|
|
6636
6636
|
}, "complete")
|
|
6637
6637
|
};
|
|
6638
6638
|
|
|
6639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6640
6640
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6641
6641
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6642
6642
|
if (deps.signal?.aborted)
|
|
@@ -6651,7 +6651,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6651
6651
|
if (!adapter && target.provider === "openai")
|
|
6652
6652
|
adapter = openai;
|
|
6653
6653
|
if (!adapter && target.provider === "anthropic")
|
|
6654
|
-
adapter = (await import("./anthropic-
|
|
6654
|
+
adapter = (await import("./anthropic-P7DXFYFE.js")).anthropic;
|
|
6655
6655
|
if (!adapter)
|
|
6656
6656
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6657
6657
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6692,7 +6692,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6692
6692
|
}, "complete")
|
|
6693
6693
|
}), "modelGateway");
|
|
6694
6694
|
|
|
6695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6696
6696
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6697
6697
|
import { join as join3 } from "node:path";
|
|
6698
6698
|
var shape = strictObject({
|
|
@@ -6717,7 +6717,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6717
6717
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6718
6718
|
}, "mayModelReply");
|
|
6719
6719
|
|
|
6720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6721
6721
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6722
6722
|
ai: true
|
|
6723
6723
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6764,7 +6764,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6764
6764
|
return result2;
|
|
6765
6765
|
}, "replyRenderer");
|
|
6766
6766
|
|
|
6767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6768
6768
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6769
6769
|
var NO_RULES = "no rules";
|
|
6770
6770
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6857,7 +6857,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6857
6857
|
return { skip: why };
|
|
6858
6858
|
}, "replyTo");
|
|
6859
6859
|
|
|
6860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6861
6861
|
var FIRST_FETCH_MS = 6e4;
|
|
6862
6862
|
var DAY_MS = 864e5;
|
|
6863
6863
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6911,7 +6911,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6911
6911
|
};
|
|
6912
6912
|
}, "memberFetches");
|
|
6913
6913
|
|
|
6914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6915
6915
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6916
6916
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6917
6917
|
if (context.format === "pretty") {
|
|
@@ -6944,7 +6944,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
6944
6944
|
return context;
|
|
6945
6945
|
}, "recordDiagnostics");
|
|
6946
6946
|
|
|
6947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
6948
6948
|
var STEMS_EVERY_MS = 3e4;
|
|
6949
6949
|
var STEMS_SLICE_MS = 2e3;
|
|
6950
6950
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -6984,7 +6984,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
6984
6984
|
};
|
|
6985
6985
|
}, "stemFills");
|
|
6986
6986
|
|
|
6987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
6988
6988
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
6989
6989
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
6990
6990
|
kind: attachment.kind,
|
|
@@ -7079,7 +7079,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7079
7079
|
locale: messenger.app.locale
|
|
7080
7080
|
}), "viewOf");
|
|
7081
7081
|
|
|
7082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7083
7083
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7084
7084
|
value: value.value,
|
|
7085
7085
|
observed_at: value.observedAt,
|
|
@@ -7146,7 +7146,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7146
7146
|
}
|
|
7147
7147
|
}, "watchEventItem");
|
|
7148
7148
|
|
|
7149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7150
7150
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7151
7151
|
output: { entity: "watch_item" },
|
|
7152
7152
|
effects: REMOTE_READ,
|
|
@@ -7301,7 +7301,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7301
7301
|
}
|
|
7302
7302
|
}, "describe");
|
|
7303
7303
|
|
|
7304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7305
7305
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7306
7306
|
const command = annotate(new Command("serve"), {
|
|
7307
7307
|
output: { entity: "serve_summary" },
|
|
@@ -7517,7 +7517,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7517
7517
|
};
|
|
7518
7518
|
}, "tasking");
|
|
7519
7519
|
|
|
7520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7521
7521
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7522
7522
|
var PATH = "store tables list";
|
|
7523
7523
|
var STORE_TABLES_QUERY = {
|
|
@@ -7560,7 +7560,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7560
7560
|
return tables;
|
|
7561
7561
|
}, "storeTablesCommand");
|
|
7562
7562
|
|
|
7563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7564
7564
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7565
7565
|
var WORD_INDEX = "message_words";
|
|
7566
7566
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
organization,
|
|
5
5
|
project,
|
|
6
6
|
reminder
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SZWQFR5X.js";
|
|
8
8
|
import {
|
|
9
9
|
MIGRATIONS,
|
|
10
10
|
SnapshotBudget,
|
|
@@ -28,19 +28,19 @@ import {
|
|
|
28
28
|
tagMemberIds,
|
|
29
29
|
thingOf,
|
|
30
30
|
write
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SRONUWOM.js";
|
|
32
32
|
import {
|
|
33
33
|
filesAccountSql,
|
|
34
34
|
folderProviderOf,
|
|
35
35
|
folderProviderSql,
|
|
36
36
|
isDocumentAccountProvider
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7ZNM6KXP.js";
|
|
38
38
|
import {
|
|
39
39
|
queryFieldsOf
|
|
40
40
|
} from "./chunk-G75FZQAZ.js";
|
|
41
41
|
import {
|
|
42
42
|
fold
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-FCZ762RV.js";
|
|
44
44
|
import {
|
|
45
45
|
CliError
|
|
46
46
|
} from "./chunk-EY4CUQW2.js";
|
|
@@ -48,11 +48,11 @@ import {
|
|
|
48
48
|
__name
|
|
49
49
|
} from "./chunk-ZVVMGPBJ.js";
|
|
50
50
|
|
|
51
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
52
52
|
import { realpathSync, statSync } from "node:fs";
|
|
53
53
|
import { resolve } from "node:path";
|
|
54
54
|
|
|
55
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
55
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
|
|
56
56
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
57
57
|
const creatable = /* @__PURE__ */ new Set();
|
|
58
58
|
let people = 0, identities = 0;
|
|
@@ -115,11 +115,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
115
115
|
}
|
|
116
116
|
}, "copyPeople");
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
|
|
119
119
|
import { createHash } from "node:crypto";
|
|
120
120
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
|
|
123
123
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
124
124
|
const colon = collection.indexOf(":");
|
|
125
125
|
const provider = collection.slice(0, colon);
|
|
@@ -163,7 +163,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
163
163
|
};
|
|
164
164
|
}, "currentCollection");
|
|
165
165
|
|
|
166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
|
|
167
167
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
168
168
|
const mappings = /* @__PURE__ */ new Map();
|
|
169
169
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -330,7 +330,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
330
330
|
};
|
|
331
331
|
}, "planTransfer");
|
|
332
332
|
|
|
333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
334
334
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
335
335
|
var MAX_ENTITIES = 1e3;
|
|
336
336
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -492,7 +492,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
492
492
|
};
|
|
493
493
|
}), "transferSnapshot");
|
|
494
494
|
|
|
495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
|
|
496
496
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
497
497
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
498
498
|
return provider ?? null;
|
|
@@ -664,7 +664,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
664
664
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
665
665
|
}, "remapEntity");
|
|
666
666
|
|
|
667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
668
668
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
669
669
|
for (const value of [options.source, options.destination, options.collection])
|
|
670
670
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -760,7 +760,7 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
|
|
|
760
760
|
}
|
|
761
761
|
}, "applyDocumentTransfer");
|
|
762
762
|
|
|
763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
764
764
|
var ORGANIZATIONS_QUERY = {
|
|
765
765
|
entity: "organization",
|
|
766
766
|
backend: "sql",
|
|
@@ -795,7 +795,7 @@ var REMINDERS_QUERY = {
|
|
|
795
795
|
})
|
|
796
796
|
};
|
|
797
797
|
|
|
798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
799
799
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
800
800
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
801
801
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -817,7 +817,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
817
817
|
}
|
|
818
818
|
}, "previewProjectAnnotationSnapshot");
|
|
819
819
|
|
|
820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
821
821
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
822
822
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
823
823
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/search/languages.js
|
|
11
11
|
var LANGUAGES = [
|
|
12
12
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
13
13
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -15,12 +15,12 @@ var LANGUAGES = [
|
|
|
15
15
|
];
|
|
16
16
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
19
19
|
var NORMALIZER_VERSION = 1;
|
|
20
20
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
21
21
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
|
|
24
24
|
var BaseStemmer = class {
|
|
25
25
|
static {
|
|
26
26
|
__name(this, "BaseStemmer");
|
|
@@ -395,7 +395,7 @@ var BaseStemmer = class {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
|
|
399
399
|
var a_0 = [
|
|
400
400
|
["arsen", -1],
|
|
401
401
|
["commun", -1],
|
|
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1096
1096
|
stemWord = this.stem;
|
|
1097
1097
|
};
|
|
1098
1098
|
|
|
1099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
|
|
1100
1100
|
var a_02 = [
|
|
1101
1101
|
["\u0432", 1],
|
|
1102
1102
|
["\u0438\u0432", 2, 1],
|
|
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1519
1519
|
stemWord = this.stem;
|
|
1520
1520
|
};
|
|
1521
1521
|
|
|
1522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
|
|
1523
1523
|
var a_03 = [
|
|
1524
1524
|
["", 6],
|
|
1525
1525
|
["\xE1", 1, 1],
|
|
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2195
2195
|
stemWord = this.stem;
|
|
2196
2196
|
};
|
|
2197
2197
|
|
|
2198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/search/stem.js
|
|
2199
2199
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2200
2200
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2201
2201
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|