@wirecat/drive-cli 0.69.0 → 0.71.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 +3 -2
- package/contracts/wirecat.json +14 -13
- package/dist/age.d.ts +0 -36
- package/dist/age.d.ts.map +1 -1
- package/dist/age.js +0 -22
- package/dist/age.js.map +1 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-B4A737YW.js → all-profiles-3QJG2NAN.js} +13 -13
- package/dist/bundle/{anthropic-RZGPDESM.js → anthropic-PSWTEU6G.js} +8 -8
- package/dist/bundle/{app-server-OWEW7DY5.js → app-server-PVTA6ABR.js} +66 -58
- package/dist/bundle/{bun-V5QLYBZU.js → bun-LU5LP3JI.js} +2 -2
- package/dist/bundle/{bun-sqlite-KHLHXXGH.js → bun-sqlite-PYMKLBRU.js} +9 -9
- package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-22QQUKWA.js} +1 -1
- package/dist/bundle/{chunk-3YKAFLXY.js → chunk-26DHFMGZ.js} +2 -2
- package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-2BVVU7GG.js} +1 -1
- package/dist/bundle/{chunk-7JKECODO.js → chunk-2LHAVY4U.js} +1 -11
- package/dist/bundle/{chunk-HEBZCKMU.js → chunk-2PUNKUYJ.js} +4389 -4709
- package/dist/bundle/chunk-2UUWXPOB.js +31 -0
- package/dist/bundle/{chunk-KUQDBWPU.js → chunk-35SCQ4VI.js} +31 -32
- package/dist/bundle/{chunk-O6PD7RZY.js → chunk-3EBBLKIT.js} +4 -4
- package/dist/bundle/{chunk-PV3AWPHR.js → chunk-3N2OFXB5.js} +5 -5
- package/dist/bundle/{chunk-SY2HLH5R.js → chunk-3UGYFXH6.js} +82 -25
- package/dist/bundle/{chunk-OUM4ZO53.js → chunk-4HWJOU7N.js} +1 -1
- package/dist/bundle/{chunk-6D44YQ5X.js → chunk-4PA4DHYV.js} +6 -6
- package/dist/bundle/{chunk-EA2OB75T.js → chunk-4QNW4NK6.js} +1 -1
- package/dist/bundle/{chunk-GK6KXBL6.js → chunk-6SJOTNHF.js} +4 -4
- package/dist/bundle/{chunk-NVDR72GP.js → chunk-6TNNT2MQ.js} +250 -174
- package/dist/bundle/{chunk-4YECZ6CN.js → chunk-6W763DZN.js} +12 -12
- package/dist/bundle/{chunk-IQ2QU2X6.js → chunk-6XFIITOG.js} +1024 -598
- package/dist/bundle/{chunk-AD7VI3XU.js → chunk-72C4YOCH.js} +7 -7
- package/dist/bundle/{chunk-6EL5AVXX.js → chunk-7PDHGZN4.js} +4 -4
- package/dist/bundle/{chunk-22SH77TG.js → chunk-ACUAV6VX.js} +64 -64
- package/dist/bundle/{chunk-BBJVV4E2.js → chunk-ASMMG72J.js} +68 -38
- package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-B5KSXHJ7.js} +1 -1
- package/dist/bundle/{chunk-BVVXYZSU.js → chunk-BKSQBBYG.js} +9 -9
- package/dist/bundle/{chunk-5SJZDEIO.js → chunk-CJLVYIOP.js} +21 -21
- package/dist/bundle/chunk-COJSWDNU.js +170 -0
- package/dist/bundle/{chunk-GTDCP5OG.js → chunk-COOOO5B3.js} +4 -4
- package/dist/bundle/{chunk-LUZRVBQR.js → chunk-D5TGYUVU.js} +6 -6
- package/dist/bundle/{chunk-CZ4UEXCE.js → chunk-EOEU3AZN.js} +6 -6
- package/dist/bundle/{chunk-CU6RATZH.js → chunk-FCS26CYQ.js} +4 -4
- package/dist/bundle/{chunk-LRCSDAYK.js → chunk-FJH7DJWK.js} +4 -4
- package/dist/bundle/{chunk-U3RXH6RY.js → chunk-FP54WSIR.js} +4 -4
- package/dist/bundle/{chunk-3URYKAJP.js → chunk-FT3LN3HP.js} +1 -1
- package/dist/bundle/{chunk-CDSB7WVG.js → chunk-GBKNJWOZ.js} +8 -8
- package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-GOWXXYEF.js} +2 -2
- package/dist/bundle/{chunk-PB6NWKH3.js → chunk-GPQ44Y2R.js} +2 -2
- package/dist/bundle/{chunk-E7URRFBB.js → chunk-GZ2D4KXG.js} +10 -15
- package/dist/bundle/{chunk-376ZGVUZ.js → chunk-HKY7X6NY.js} +4 -4
- package/dist/bundle/{chunk-6XNTELM5.js → chunk-HL52XXZX.js} +1 -1
- package/dist/bundle/{chunk-533XOW74.js → chunk-HMS6EEQL.js} +3 -3
- package/dist/bundle/{chunk-F5UUJU6R.js → chunk-I4RWW3UD.js} +49 -4
- package/dist/bundle/{chunk-TZ75K6R7.js → chunk-ICDCAQ6K.js} +8 -8
- package/dist/bundle/{chunk-WOUIHZRI.js → chunk-J5Q5FS2N.js} +18 -75
- package/dist/bundle/{chunk-EL2E3ABX.js → chunk-JDV7HNNQ.js} +13 -13
- package/dist/bundle/{chunk-ZUG67442.js → chunk-JZHBZOJR.js} +3 -3
- package/dist/bundle/{chunk-SEJBS7SI.js → chunk-KGERXYTV.js} +1 -1
- package/dist/bundle/{chunk-5TK2YQCO.js → chunk-KGYVHPGE.js} +2 -2
- package/dist/bundle/{chunk-HCZYJMBP.js → chunk-KYKW2W6X.js} +1 -1
- package/dist/bundle/{chunk-RLGQMMYE.js → chunk-L46C6HQ7.js} +35 -13
- package/dist/bundle/chunk-LXKYKRHD.js +387 -0
- package/dist/bundle/{chunk-N4ACIIQB.js → chunk-MIA7P6FZ.js} +2 -2
- package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-MNLL5YLM.js} +2 -2
- package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-OF422U5D.js} +21 -16
- package/dist/bundle/{chunk-JRFKCYMW.js → chunk-OJSBWP3F.js} +23 -6
- package/dist/bundle/{chunk-MHXZ62CU.js → chunk-P7CUM5IB.js} +1 -1
- package/dist/bundle/{chunk-I55XYREN.js → chunk-PRW6SYA3.js} +1094 -2526
- package/dist/bundle/chunk-Q7DOMFJ4.js +259 -0
- package/dist/bundle/{chunk-3RLRJHAI.js → chunk-QETR5HIZ.js} +12081 -12607
- package/dist/bundle/{chunk-QJGFQRTL.js → chunk-QFR2PNJN.js} +12 -12
- package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-QNRRK3CN.js} +2 -2
- package/dist/bundle/{chunk-5B5NOAIA.js → chunk-QXC6IEH6.js} +45 -45
- package/dist/bundle/{chunk-T6X6EZ5N.js → chunk-RESDD3Q4.js} +3 -3
- package/dist/bundle/chunk-RJOQH5YY.js +1979 -0
- package/dist/bundle/{chunk-AMQGKMLZ.js → chunk-RWDKMU74.js} +3 -3
- package/dist/bundle/{chunk-VUPWDCYV.js → chunk-SAKO3P4H.js} +1 -1
- package/dist/bundle/{chunk-GHFBT2ZM.js → chunk-SDKQNOL5.js} +6 -6
- package/dist/bundle/{chunk-25FT44S3.js → chunk-SERXSCN3.js} +287 -569
- package/dist/bundle/{chunk-2DS2TDGW.js → chunk-TAFHYHKA.js} +20 -118
- package/dist/bundle/{chunk-XVH3WZSZ.js → chunk-TAUBRNC5.js} +53 -53
- package/dist/bundle/{chunk-2VFAXC6O.js → chunk-UDMNY63V.js} +22 -19
- package/dist/bundle/{chunk-EWUQIUTB.js → chunk-UTO2GO4P.js} +5 -5
- package/dist/bundle/{chunk-V4FMN5A6.js → chunk-WVDCCYS3.js} +17 -17
- package/dist/bundle/chunk-X4TIMMKJ.js +16 -0
- package/dist/bundle/chunk-XF4EXO2C.js +335 -0
- package/dist/bundle/{chunk-OOIAJRKQ.js → chunk-XMMFBPGC.js} +2 -2
- package/dist/bundle/{chunk-4ZFO2CVH.js → chunk-Y2NWGNUB.js} +5 -5
- package/dist/bundle/{chunk-IJCUAKR5.js → chunk-YJIGGUPI.js} +4 -4
- package/dist/bundle/{chunk-L342KHIZ.js → chunk-YMJ6IDGT.js} +6 -6
- package/dist/bundle/{chunk-WNMPIRRF.js → chunk-YPFWNVHV.js} +3 -3
- package/dist/bundle/{chunk-T4FMXDDV.js → chunk-YPNWIB6H.js} +3 -3
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-YVI5SQPY.js} +1 -1
- package/dist/bundle/{chunk-RWQ7T4Y5.js → chunk-Z3KUSRCF.js} +2 -2
- package/dist/bundle/{chunk-WQOGHND4.js → chunk-Z56QFOBR.js} +1 -1
- package/dist/bundle/chunk-ZCR3IRZ2.js +823 -0
- package/dist/bundle/{chunk-SYUXKV2E.js → chunk-ZM63SUHG.js} +2 -2
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-ZZ32DXTH.js} +1 -1
- package/dist/bundle/{cli-BS4L3HAP.js → cli-556DERZL.js} +88 -69
- package/dist/bundle/command-contract-VRTOAV6W.js +43 -0
- package/dist/bundle/{command-server-entry-CJ2CV7ZV.js → command-server-entry-AYLGNZWD.js} +33 -30
- package/dist/bundle/decode-QU24MWMN.js +299 -0
- package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-4KODNOXV.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-QIXLXS3G.js → echarts-BXX4OQWC.js} +2 -2
- package/dist/bundle/{embed-YNZW5X6M.js → embed-KG27KG3D.js} +9 -9
- package/dist/bundle/{embedder-LRC2PKTS.js → embedder-IPAVUQUV.js} +12 -12
- package/dist/bundle/entry-MVXQETWS.js +25 -0
- package/dist/bundle/{failure-X6PSLVSO.js → failure-ESL7ETL4.js} +4 -4
- package/dist/bundle/first-run-4UVLW2WR.js +31 -0
- package/dist/bundle/first-screen-JAKAIINI.js +41 -0
- package/dist/bundle/google-22NXXJX5.js +45 -0
- package/dist/bundle/{google-api-7JDZDCWE.js → google-api-VCDBSNOW.js} +70 -62
- package/dist/bundle/grants-MQMTVCRQ.js +118 -0
- package/dist/bundle/{identity-E43WKN5F.js → identity-LOWMVGZY.js} +6 -6
- package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-2VECIDXF.js} +1 -1
- package/dist/bundle/{login-RBDJPQAG.js → login-7GBONT7V.js} +78 -70
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-O6ACR2DX.js} +2 -2
- package/dist/bundle/meeting-combined-LVP4AZKA.js +27 -0
- package/dist/bundle/meeting-model-RAY5XDXZ.js +29 -0
- package/dist/bundle/meeting-semantic-G7PFOKU7.js +25 -0
- package/dist/bundle/{node-IEVT2FSJ.js → node-MPEQSFI3.js} +2 -2
- package/dist/bundle/{node-sqlite-IENH4TRX.js → node-sqlite-OLQMAYB4.js} +10 -10
- package/dist/bundle/oauth-SGH2I2BY.js +22 -0
- package/dist/bundle/{open-TZ5H7NYM.js → open-OXTE672W.js} +8 -8
- package/dist/bundle/{openai-XF2KB7W2.js → openai-EB3TPIZY.js} +32 -30
- package/dist/bundle/{process-6Q23D3TO.js → process-F6TKXWWA.js} +1 -1
- package/dist/bundle/{program-D5XWOHV5.js → program-4IFDZ7FM.js} +1356 -1338
- package/dist/bundle/{prompt-KUC5D4GX.js → prompt-F5RRHPN2.js} +8 -8
- package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-UORHJDHK.js} +5 -5
- package/dist/bundle/{recognize-DPFW7HO3.js → recognize-DAVNZND3.js} +7 -7
- package/dist/bundle/{remote-MODTSUNH.js → remote-D5EYYIAU.js} +13 -13
- package/dist/bundle/{rerank-JK7SERLE.js → rerank-CND2GVLZ.js} +10 -10
- package/dist/bundle/{serve-BV2WHZLW.js → serve-ZHSPUIGX.js} +12 -12
- package/dist/bundle/server-DUVJWP3Q.js +80 -0
- package/dist/bundle/{server-N3WPEU7Z.js → server-YMAK4LHC.js} +54 -46
- package/dist/bundle/{services-SV6CFUCS.js → services-ZILSFJ6E.js} +79 -54
- package/dist/bundle/{sqlite-runtime-RZ5PLZVQ.js → sqlite-runtime-S5VPMZQH.js} +9 -9
- package/dist/bundle/{start-C6EXYXAL.js → start-CR6X25RT.js} +7 -7
- package/dist/bundle/{state-RAZIREVG.js → state-YFPHVIIJ.js} +9 -9
- package/dist/bundle/{store-DQKJKX2G.js → store-CL4ZJZRI.js} +23 -19
- package/dist/bundle/{store-2DLGLYS6.js → store-UODRT6X4.js} +31 -26
- package/dist/bundle/store-maintenance-command-DY5XIBWR.js +72 -0
- package/dist/bundle/tokens-AF7QOFOF.js +118 -0
- package/dist/catalog.d.ts +0 -28
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +0 -82
- package/dist/catalog.js.map +1 -1
- package/dist/commands/catalog.d.ts +3 -8
- package/dist/commands/catalog.d.ts.map +1 -1
- package/dist/commands/catalog.js +36 -109
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/context.d.ts +3 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +20 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +30 -72
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/folders.d.ts +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +45 -48
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -21
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +3 -241
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/mirrors.d.ts +2 -2
- package/dist/commands/mirrors.d.ts.map +1 -1
- package/dist/commands/mirrors.js +46 -202
- package/dist/commands/mirrors.js.map +1 -1
- package/dist/commands/search.d.ts +1 -3
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +20 -42
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +36 -53
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/dist/contract-overrides.d.ts +0 -2
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -317
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +4 -3
- package/dist/knowledge.js.map +1 -1
- package/dist/list-queries.d.ts +0 -31
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +0 -36
- package/dist/list-queries.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +5 -5
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -10
- package/dist/reasons.js.map +1 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +1 -2
- package/dist/sync.js.map +1 -1
- package/dist/transcripts.d.ts +0 -6
- package/dist/transcripts.d.ts.map +1 -1
- package/dist/transcripts.js +0 -13
- package/dist/transcripts.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/command-contract-HYURWSD6.js +0 -40
- package/dist/bundle/decode-E2NM5SSM.js +0 -165
- package/dist/bundle/entry-2IMSWRJU.js +0 -25
- package/dist/bundle/first-run-7CPHQDM5.js +0 -30
- package/dist/bundle/first-screen-OKZ7GMFR.js +0 -38
- package/dist/bundle/google-WDKDBDD4.js +0 -45
- package/dist/bundle/grants-AU25GWKF.js +0 -110
- package/dist/bundle/oauth-3JGSN47Z.js +0 -22
- package/dist/bundle/server-6YDI4Y36.js +0 -72
- package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +0 -64
- package/dist/bundle/tokens-LY3WML55.js +0 -110
- package/dist/knowledge-query.d.ts +0 -77
- package/dist/knowledge-query.d.ts.map +0 -1
- package/dist/knowledge-query.js +0 -104
- package/dist/knowledge-query.js.map +0 -1
- package/dist/bundle/{chunk-XWBPP2HX.js → chunk-VKE77B3F.js} +0 -0
- package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
|
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
secretNamed,
|
|
5
5
|
withoutSecrets
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SAKO3P4H.js";
|
|
7
7
|
import {
|
|
8
8
|
isCliFailure
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-26DHFMGZ.js";
|
|
10
10
|
import {
|
|
11
11
|
isContentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KGYVHPGE.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
18
18
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
19
19
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
20
20
|
if (event.event === "store")
|
|
@@ -66,11 +66,11 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
66
66
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
67
67
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
70
70
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
71
71
|
import { createHash } from "node:crypto";
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
74
74
|
import { homedir } from "node:os";
|
|
75
75
|
var MESSAGE_AT_MOST = 500;
|
|
76
76
|
var CAUSES_AT_MOST = 5;
|
|
@@ -183,7 +183,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
183
183
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
184
184
|
}, "redactText");
|
|
185
185
|
|
|
186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
187
187
|
var REDACTED = "[redacted]";
|
|
188
188
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
189
189
|
if (!record)
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
describeOptions,
|
|
8
8
|
keyForCommand,
|
|
9
9
|
metaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SERXSCN3.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonSchemaOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OJSBWP3F.js";
|
|
14
14
|
import {
|
|
15
15
|
CliError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4QNW4NK6.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
22
22
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
23
23
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
24
24
|
const entity = answerEntitySchema(command);
|
|
@@ -2,17 +2,24 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
sharedModel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ICDCAQ6K.js";
|
|
6
6
|
import {
|
|
7
7
|
answerOf,
|
|
8
8
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TAFHYHKA.js";
|
|
10
10
|
import {
|
|
11
11
|
chatEventAnswer,
|
|
12
12
|
memberAnswer,
|
|
13
13
|
pollVoteAnswer,
|
|
14
14
|
serveRelay
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L46C6HQ7.js";
|
|
16
|
+
import {
|
|
17
|
+
holdLock,
|
|
18
|
+
lockPath,
|
|
19
|
+
releaseLock,
|
|
20
|
+
servingProfiles,
|
|
21
|
+
takeLock
|
|
22
|
+
} from "./chunk-RESDD3Q4.js";
|
|
16
23
|
import {
|
|
17
24
|
FETCHING,
|
|
18
25
|
RULES_VERSION,
|
|
@@ -29,24 +36,17 @@ import {
|
|
|
29
36
|
syncsOneChat,
|
|
30
37
|
typedQuery,
|
|
31
38
|
withQuery
|
|
32
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-2PUNKUYJ.js";
|
|
33
40
|
import {
|
|
34
41
|
embeddingKeys,
|
|
35
42
|
endpointKeyName,
|
|
36
43
|
modelGateway,
|
|
37
44
|
withTimeLimit
|
|
38
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-QXC6IEH6.js";
|
|
39
46
|
import {
|
|
40
47
|
stringWidth,
|
|
41
48
|
wrapAnsi
|
|
42
49
|
} from "./chunk-HTQTIKWP.js";
|
|
43
|
-
import {
|
|
44
|
-
holdLock,
|
|
45
|
-
lockPath,
|
|
46
|
-
releaseLock,
|
|
47
|
-
servingProfiles,
|
|
48
|
-
takeLock
|
|
49
|
-
} from "./chunk-T6X6EZ5N.js";
|
|
50
50
|
import {
|
|
51
51
|
QUICK_HEALTH_CHECKS,
|
|
52
52
|
fts5Tables,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
lossUnknown,
|
|
55
55
|
storeDamageReport,
|
|
56
56
|
storeHealth
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-WVDCCYS3.js";
|
|
58
58
|
import {
|
|
59
59
|
Command,
|
|
60
60
|
LOCAL_READ,
|
|
@@ -81,16 +81,16 @@ import {
|
|
|
81
81
|
snakeKeys,
|
|
82
82
|
storeTable,
|
|
83
83
|
withoutProviderRefs
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-SERXSCN3.js";
|
|
85
85
|
import {
|
|
86
86
|
modelTarget
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-I4RWW3UD.js";
|
|
88
88
|
import {
|
|
89
89
|
holdersOf
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-Z56QFOBR.js";
|
|
91
91
|
import {
|
|
92
92
|
readSecret
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-YPNWIB6H.js";
|
|
94
94
|
import {
|
|
95
95
|
CORPORA,
|
|
96
96
|
MIGRATIONS,
|
|
@@ -125,10 +125,10 @@ import {
|
|
|
125
125
|
storeClients,
|
|
126
126
|
storeContents,
|
|
127
127
|
vectorIndexCounts
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-QETR5HIZ.js";
|
|
129
129
|
import {
|
|
130
130
|
openCache
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-4PA4DHYV.js";
|
|
132
132
|
import {
|
|
133
133
|
currentRun,
|
|
134
134
|
formatLocator,
|
|
@@ -137,25 +137,25 @@ import {
|
|
|
137
137
|
readHealthMark,
|
|
138
138
|
readJournalMark,
|
|
139
139
|
recordDeepCheck
|
|
140
|
-
} from "./chunk-
|
|
141
|
-
import {
|
|
142
|
-
queryFieldsOf
|
|
143
|
-
} from "./chunk-UPCEHSIZ.js";
|
|
140
|
+
} from "./chunk-RJOQH5YY.js";
|
|
144
141
|
import {
|
|
145
142
|
failureKey,
|
|
146
143
|
isStoreDamage
|
|
147
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-26DHFMGZ.js";
|
|
145
|
+
import {
|
|
146
|
+
queryFieldsOf
|
|
147
|
+
} from "./chunk-OF422U5D.js";
|
|
148
148
|
import {
|
|
149
149
|
storePath
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-Z3KUSRCF.js";
|
|
151
151
|
import {
|
|
152
152
|
resolvePaths,
|
|
153
153
|
writeSecurely
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-CJLVYIOP.js";
|
|
155
155
|
import {
|
|
156
156
|
singleLine,
|
|
157
157
|
visibleControls
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-KYKW2W6X.js";
|
|
159
159
|
import {
|
|
160
160
|
array,
|
|
161
161
|
boolean,
|
|
@@ -176,10 +176,10 @@ import {
|
|
|
176
176
|
string,
|
|
177
177
|
transform,
|
|
178
178
|
trim
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-OJSBWP3F.js";
|
|
180
180
|
import {
|
|
181
181
|
CliError
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-4QNW4NK6.js";
|
|
183
183
|
import {
|
|
184
184
|
__commonJS,
|
|
185
185
|
__name,
|
|
@@ -5519,11 +5519,11 @@ var require_liquid_node = __commonJS({
|
|
|
5519
5519
|
}
|
|
5520
5520
|
});
|
|
5521
5521
|
|
|
5522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5523
5523
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5524
5524
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5525
5525
|
|
|
5526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5527
5527
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5528
5528
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5529
5529
|
import { Transform } from "node:stream";
|
|
@@ -5630,7 +5630,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5630
5630
|
renameSync(pending, to);
|
|
5631
5631
|
}, "unsealFile");
|
|
5632
5632
|
|
|
5633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5634
5634
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5635
5635
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5636
5636
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5654,7 +5654,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5654
5654
|
};
|
|
5655
5655
|
}, "compatibilityOf");
|
|
5656
5656
|
|
|
5657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5658
5658
|
import { createHash as createHash2 } from "node:crypto";
|
|
5659
5659
|
var COPY_MARK = "__repair_";
|
|
5660
5660
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5908,19 +5908,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5908
5908
|
return found;
|
|
5909
5909
|
}, "deleteCopy");
|
|
5910
5910
|
|
|
5911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5912
5912
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5913
5913
|
|
|
5914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5915
5915
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5916
5916
|
|
|
5917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5918
5918
|
import { execFileSync, spawn } from "node:child_process";
|
|
5919
5919
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5920
5920
|
import { basename, dirname, join } from "node:path";
|
|
5921
5921
|
import { Transform as Transform2 } from "node:stream";
|
|
5922
5922
|
|
|
5923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5924
5924
|
var REFILL_MARGIN_MS = 864e5;
|
|
5925
5925
|
var TIME_KEYS = 1e12;
|
|
5926
5926
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6000,7 +6000,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6000
6000
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6001
6001
|
}, "forgetMail");
|
|
6002
6002
|
|
|
6003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6004
6004
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6005
6005
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6006
6006
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6528,7 +6528,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6528
6528
|
}
|
|
6529
6529
|
}, "recoverLocked");
|
|
6530
6530
|
|
|
6531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6532
6532
|
var COUNTED = [
|
|
6533
6533
|
"accounts",
|
|
6534
6534
|
"chats",
|
|
@@ -6684,7 +6684,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6684
6684
|
return recover;
|
|
6685
6685
|
}, "storeRecoverCommand");
|
|
6686
6686
|
|
|
6687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6688
6688
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6689
6689
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6690
6690
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6734,7 +6734,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
|
|
|
6734
6734
|
return app ? store.addCommand(storeRecoverCommand(app)) : store;
|
|
6735
6735
|
}, "sharedStoreCommand");
|
|
6736
6736
|
|
|
6737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6738
6738
|
var ENCRYPT_OPTION = [
|
|
6739
6739
|
"--encrypt",
|
|
6740
6740
|
"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"
|
|
@@ -6753,7 +6753,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6753
6753
|
return password;
|
|
6754
6754
|
}, "passwordOf");
|
|
6755
6755
|
|
|
6756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6757
6757
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6758
6758
|
import { join as join2 } from "node:path";
|
|
6759
6759
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6924,7 +6924,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6924
6924
|
}, "problem");
|
|
6925
6925
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6926
6926
|
|
|
6927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6928
6928
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6929
6929
|
import { join as join3 } from "node:path";
|
|
6930
6930
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6977,7 +6977,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6977
6977
|
}, "recordReply");
|
|
6978
6978
|
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");
|
|
6979
6979
|
|
|
6980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6981
6981
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6982
6982
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6983
6983
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7083,10 +7083,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7083
7083
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7084
7084
|
}, "filled");
|
|
7085
7085
|
|
|
7086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7087
7087
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7088
7088
|
|
|
7089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7090
7090
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7091
7091
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7092
7092
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7113,7 +7113,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7113
7113
|
return engine;
|
|
7114
7114
|
}, "safeLiquid");
|
|
7115
7115
|
|
|
7116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7117
7117
|
var TEMPLATE_LIMITS = {
|
|
7118
7118
|
parse: 32768,
|
|
7119
7119
|
renders: 2e3,
|
|
@@ -7252,7 +7252,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7252
7252
|
}
|
|
7253
7253
|
}, "renderReplyTemplate");
|
|
7254
7254
|
|
|
7255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7256
7256
|
var DRY_RUN_DAYS = 7;
|
|
7257
7257
|
var PAGE = 500;
|
|
7258
7258
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7366,7 +7366,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7366
7366
|
}
|
|
7367
7367
|
}, "storedSince");
|
|
7368
7368
|
|
|
7369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7370
7370
|
var HOSTED = {
|
|
7371
7371
|
openai: "https://api.openai.com/v1",
|
|
7372
7372
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7387,7 +7387,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7387
7387
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7388
7388
|
}, "purposeModel");
|
|
7389
7389
|
|
|
7390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7391
7391
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7392
7392
|
import { join as join4 } from "node:path";
|
|
7393
7393
|
var shape = strictObject({
|
|
@@ -7412,7 +7412,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7412
7412
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7413
7413
|
}, "mayModelReply");
|
|
7414
7414
|
|
|
7415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7416
7416
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7417
7417
|
ai: true
|
|
7418
7418
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7460,7 +7460,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7460
7460
|
return result2;
|
|
7461
7461
|
}, "replyRenderer");
|
|
7462
7462
|
|
|
7463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7464
7464
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7465
7465
|
var NO_RULES = "no rules";
|
|
7466
7466
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7553,7 +7553,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7553
7553
|
return { skip: why };
|
|
7554
7554
|
}, "replyTo");
|
|
7555
7555
|
|
|
7556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7557
7557
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7558
7558
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7559
7559
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7630,7 +7630,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7630
7630
|
};
|
|
7631
7631
|
}, "startSync");
|
|
7632
7632
|
|
|
7633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7634
7634
|
var FIRST_FETCH_MS = 6e4;
|
|
7635
7635
|
var DAY_MS = 864e5;
|
|
7636
7636
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7684,7 +7684,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7684
7684
|
};
|
|
7685
7685
|
}, "memberFetches");
|
|
7686
7686
|
|
|
7687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7688
7688
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7689
7689
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7690
7690
|
if (context.format === "pretty") {
|
|
@@ -7717,7 +7717,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7717
7717
|
return context;
|
|
7718
7718
|
}, "recordDiagnostics");
|
|
7719
7719
|
|
|
7720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7721
7721
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7722
7722
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7723
7723
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7803,7 +7803,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7803
7803
|
};
|
|
7804
7804
|
}, "watchOutdated");
|
|
7805
7805
|
|
|
7806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7807
7807
|
var STEMS_EVERY_MS = 3e4;
|
|
7808
7808
|
var STEMS_SLICE_MS = 2e3;
|
|
7809
7809
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7843,7 +7843,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7843
7843
|
};
|
|
7844
7844
|
}, "stemFills");
|
|
7845
7845
|
|
|
7846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7847
7847
|
import { styleText } from "node:util";
|
|
7848
7848
|
var TIME_WIDTH = 8;
|
|
7849
7849
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -8019,7 +8019,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
8019
8019
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
8020
8020
|
}, "editedAt");
|
|
8021
8021
|
|
|
8022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8023
8023
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8024
8024
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8025
8025
|
kind: attachment.kind,
|
|
@@ -8115,7 +8115,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8115
8115
|
locale: messenger.app.locale
|
|
8116
8116
|
}), "viewOf");
|
|
8117
8117
|
|
|
8118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8119
8119
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8120
8120
|
value: value.value,
|
|
8121
8121
|
observed_at: value.observedAt,
|
|
@@ -8182,7 +8182,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8182
8182
|
}
|
|
8183
8183
|
}, "watchEventItem");
|
|
8184
8184
|
|
|
8185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8186
8186
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8187
8187
|
output: { entity: "watch_item" },
|
|
8188
8188
|
effects: REMOTE_READ,
|
|
@@ -8337,7 +8337,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8337
8337
|
}
|
|
8338
8338
|
}, "describe");
|
|
8339
8339
|
|
|
8340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8341
8341
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8342
8342
|
const command = annotate(new Command("serve"), {
|
|
8343
8343
|
output: { entity: "serve_summary" },
|
|
@@ -8623,7 +8623,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8623
8623
|
};
|
|
8624
8624
|
}, "tasking");
|
|
8625
8625
|
|
|
8626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8627
8627
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8628
8628
|
var PATH = "store tables list";
|
|
8629
8629
|
var STORE_TABLES_QUERY = {
|
|
@@ -8666,7 +8666,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8666
8666
|
return tables;
|
|
8667
8667
|
}, "storeTablesCommand");
|
|
8668
8668
|
|
|
8669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8670
8670
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8671
8671
|
var WORD_INDEX = "message_words";
|
|
8672
8672
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|