@wirecat/tg-cli 0.130.0 → 0.131.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/tg.js +2 -2
- package/dist/bundle/{adapter-2XFPXBTA.js → adapter-TA637IRT.js} +51 -51
- package/dist/bundle/{all-profiles-GXFPZLYU.js → all-profiles-7M3GBCB6.js} +5 -5
- package/dist/bundle/{anthropic-FHS5XNK5.js → anthropic-P3THLZWO.js} +2 -2
- package/dist/bundle/{app-server-IZMFSFP2.js → app-server-OE5EAXIY.js} +45 -45
- package/dist/bundle/{bot-api-V3ZJ75KE.js → bot-api-WYR2C4A5.js} +52 -52
- package/dist/bundle/{bot-history-EJQOD4AQ.js → bot-history-PKJTHU7L.js} +16 -16
- package/dist/bundle/{bun-GBAZFRCV.js → bun-XMZJDDEA.js} +2 -2
- package/dist/bundle/{bun-sqlite-JB4BX6X7.js → bun-sqlite-F5RWCB2N.js} +3 -3
- package/dist/bundle/{chunk-XXW6PFAX.js → chunk-2OXR2MRV.js} +1 -1
- package/dist/bundle/{chunk-HHUK3XO5.js → chunk-2TOJQQKS.js} +1 -1
- package/dist/bundle/{chunk-TGRB4SSZ.js → chunk-2U6XE4HI.js} +4 -4
- package/dist/bundle/{chunk-6M3FAHPS.js → chunk-34PRGA7E.js} +2 -2
- package/dist/bundle/{chunk-4BJAQNJ5.js → chunk-43KSYUZU.js} +5 -5
- package/dist/bundle/{chunk-66UG67CE.js → chunk-5AJ5RLJW.js} +10 -10
- package/dist/bundle/{chunk-7F3LOHRB.js → chunk-5N7TJ6TJ.js} +154 -151
- package/dist/bundle/{chunk-QJDHRBXL.js → chunk-5ZIT6JXP.js} +6 -6
- package/dist/bundle/{chunk-RZPMFVWM.js → chunk-6BPM3LNR.js} +5 -5
- package/dist/bundle/{chunk-EUL7HMUL.js → chunk-6O5AD3GA.js} +1 -1
- package/dist/bundle/{chunk-PWQKGFS2.js → chunk-6TJTQ4I4.js} +28 -28
- package/dist/bundle/{chunk-KY3JLXW2.js → chunk-76UAXRDY.js} +2 -2
- package/dist/bundle/{chunk-OJMDKWWL.js → chunk-AEIDEIVB.js} +355 -321
- package/dist/bundle/{chunk-M327UNS6.js → chunk-AJQ6JFLY.js} +5 -5
- package/dist/bundle/{chunk-VTJ3AOTT.js → chunk-BFERGEBI.js} +16 -16
- package/dist/bundle/{chunk-42LRWOTT.js → chunk-BXW6FGLD.js} +11 -11
- package/dist/bundle/{chunk-MVFSWKTM.js → chunk-EXMJDHBM.js} +10 -10
- package/dist/bundle/{chunk-S5UTBEV3.js → chunk-EZBMLKBK.js} +35 -34
- package/dist/bundle/{chunk-NRCY3WBC.js → chunk-GNIROVSK.js} +1 -1
- package/dist/bundle/{chunk-C4ALE7CH.js → chunk-H655CMXJ.js} +1 -1
- package/dist/bundle/{chunk-OKTRB4ZQ.js → chunk-ITYDJIRC.js} +1 -1
- package/dist/bundle/{chunk-QDEP2QOA.js → chunk-IULSIKEM.js} +2 -2
- package/dist/bundle/{chunk-FH4YIBBH.js → chunk-J2QQZVEN.js} +2 -2
- package/dist/bundle/{chunk-OWVQMK7G.js → chunk-JDLNI7BU.js} +518 -382
- package/dist/bundle/{chunk-B5RGPZDZ.js → chunk-JF4AJNCE.js} +5 -5
- package/dist/bundle/{chunk-2LPODKIF.js → chunk-JSE4OBYI.js} +16 -114
- package/dist/bundle/{chunk-SZB5WRMI.js → chunk-L2SMUTJY.js} +1 -1
- package/dist/bundle/{chunk-RAFK5KXU.js → chunk-LDSTUBLY.js} +7 -7
- package/dist/bundle/{chunk-XHX5D5VE.js → chunk-LEPDRO3O.js} +147 -62
- package/dist/bundle/{chunk-IV6SIKVH.js → chunk-LJO6MMQG.js} +3 -3
- package/dist/bundle/{chunk-LQPZDDDP.js → chunk-LTP4BYHJ.js} +5 -5
- package/dist/bundle/{chunk-QBNEWEJC.js → chunk-LWSOCKOD.js} +2 -2
- package/dist/bundle/{chunk-F6CV4KUN.js → chunk-MYC3M4BY.js} +2 -2
- package/dist/bundle/{chunk-I5PILOTU.js → chunk-NOZZHEMD.js} +1 -1
- package/dist/bundle/{chunk-ZRQQOGAZ.js → chunk-NTORQXAS.js} +3 -3
- package/dist/bundle/{chunk-LPT5T6PU.js → chunk-NXNSEFGR.js} +22 -22
- package/dist/bundle/{chunk-3XMUP55N.js → chunk-O73DZURO.js} +9 -9
- package/dist/bundle/{chunk-2JZJPVBH.js → chunk-O7X6RM5R.js} +4 -4
- package/dist/bundle/{chunk-FIO5NMK3.js → chunk-OOSX7K7G.js} +6 -6
- package/dist/bundle/{chunk-IRWSZJYL.js → chunk-OPG54IFH.js} +51 -51
- package/dist/bundle/{chunk-O2ULG7OO.js → chunk-OX5EAUKF.js} +2 -2
- package/dist/bundle/{chunk-RPWYTOLI.js → chunk-P6KGEZIS.js} +1 -1
- package/dist/bundle/{chunk-QFVIHBLD.js → chunk-PD4RREQB.js} +1 -1
- package/dist/bundle/{chunk-IBSHQWIJ.js → chunk-PHGH5N4C.js} +1 -1
- package/dist/bundle/{chunk-EB2JE722.js → chunk-QGFUUJPL.js} +1 -1
- package/dist/bundle/{chunk-GYCKRIRK.js → chunk-S2IET7WM.js} +2 -2
- package/dist/bundle/{chunk-BMSS3PCY.js → chunk-SLT2PBFP.js} +13 -13
- package/dist/bundle/{chunk-CKJ73EF3.js → chunk-SQ2JLZFK.js} +1 -1
- package/dist/bundle/{chunk-GSHTLLCJ.js → chunk-SS5H2XAT.js} +2 -2
- package/dist/bundle/{chunk-VSPSHBAC.js → chunk-TT6OHNV2.js} +1 -1
- package/dist/bundle/{chunk-6WGAWISN.js → chunk-UGYC2FV5.js} +1 -1
- package/dist/bundle/{chunk-6JBRQ6PM.js → chunk-UUNQV4YL.js} +48 -13
- package/dist/bundle/{chunk-X5H5NERR.js → chunk-VNJZXV7E.js} +4 -4
- package/dist/bundle/{chunk-MS6YEIG5.js → chunk-VVUUP5NF.js} +12 -12
- package/dist/bundle/{chunk-QJLCEOAP.js → chunk-WG6UZJ3E.js} +1 -1
- package/dist/bundle/{chunk-GGGBPWUS.js → chunk-WUIKJJ5A.js} +7 -7
- package/dist/bundle/{chunk-3KZG63EH.js → chunk-XC2YJDDK.js} +2 -2
- package/dist/bundle/{chunk-SYZXOEHY.js → chunk-YJ4BPNWI.js} +3 -3
- package/dist/bundle/{chunk-G2SMVYBU.js → chunk-YZTMQE62.js} +1 -1
- package/dist/bundle/{chunk-VXWDQDRU.js → chunk-Z2TCTTPJ.js} +497 -410
- package/dist/bundle/command-contract-DAQYQF6R.js +37 -0
- package/dist/bundle/{command-server-entry-YR6ONDWO.js → command-server-entry-6FH3RXJ2.js} +23 -23
- package/dist/bundle/{decode-VUKGWFSW.js → decode-UBRT2QDP.js} +2 -2
- package/dist/bundle/{echarts-GOV5M733.js → echarts-PG45GQLR.js} +2 -2
- package/dist/bundle/{embed-2IVIYNAJ.js → embed-BUQDSZ57.js} +3 -3
- package/dist/bundle/{embedder-2HU7JYZK.js → embedder-TXA3EV7O.js} +6 -6
- package/dist/bundle/{entry-CSTCXYI5.js → entry-JWIEF57D.js} +6 -6
- package/dist/bundle/{first-run-3IZGXZT5.js → first-run-5VTHKMK5.js} +6 -6
- package/dist/bundle/first-screen-PTHIZ5ZF.js +35 -0
- package/dist/bundle/{instructions-YSXV6FAC.js → instructions-ZMEPWTFO.js} +1 -1
- package/dist/bundle/{meeting-combined-X4E3LSIJ.js → meeting-combined-DU3RJR6X.js} +10 -10
- package/dist/bundle/{meeting-model-FQBDHGRU.js → meeting-model-5FVNZCTL.js} +8 -8
- package/dist/bundle/{meeting-semantic-ONNEOJX5.js → meeting-semantic-HUMYFMO7.js} +2 -2
- package/dist/bundle/{node-FMQWCZRS.js → node-N4DQQJKK.js} +2 -2
- package/dist/bundle/{node-sqlite-YN5OKOC6.js → node-sqlite-MG4KFXYY.js} +4 -4
- package/dist/bundle/{oauth-EW7PTZVT.js → oauth-NKDSXEH6.js} +4 -4
- package/dist/bundle/{open-Q2RDY344.js → open-DV2YUU2M.js} +2 -2
- package/dist/bundle/{openai-STON6G3O.js → openai-FEKMZOUJ.js} +12 -12
- package/dist/bundle/{process-OQUC2TW3.js → process-QZS3TE6A.js} +1 -1
- package/dist/bundle/{program-N5BT75OC.js → program-FNDGXEVS.js} +56 -56
- package/dist/bundle/{prompt-WHVF7UTW.js → prompt-C7RSBNH5.js} +2 -2
- package/dist/bundle/{recognize-YDQWMXNI.js → recognize-5BL763FS.js} +1 -1
- package/dist/bundle/{remote-477LQHP6.js → remote-CXAKRC7X.js} +6 -6
- package/dist/bundle/{rerank-4YPB26FG.js → rerank-XAEXY5A4.js} +4 -4
- package/dist/bundle/{serve-FXJNUOTS.js → serve-JLZGFTZH.js} +6 -6
- package/dist/bundle/{server-2S6HFBGR.js → server-GF3TV2U7.js} +37 -37
- package/dist/bundle/server-GLPEWUYT.js +69 -0
- package/dist/bundle/{sqlite-runtime-RXYNJYMC.js → sqlite-runtime-3OVQ7OTM.js} +3 -3
- package/dist/bundle/{state-I2GGYGRL.js → state-FGJKQKC2.js} +3 -3
- package/dist/bundle/{store-VQXIB6KV.js → store-2J5VJZQY.js} +13 -13
- package/dist/bundle/{store-KX3AAQZH.js → store-WYLMNAAQ.js} +15 -15
- package/dist/bundle/store-maintenance-command-QN6QH6RA.js +60 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/tg-cli/SKILL.md +11 -9
- package/dist/bundle/command-contract-G752BLKA.js +0 -37
- package/dist/bundle/first-screen-7QSNCZIK.js +0 -35
- package/dist/bundle/server-UOSUTZNE.js +0 -69
- package/dist/bundle/store-maintenance-command-LW2MMDLY.js +0 -60
|
@@ -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-JSE4OBYI.js";
|
|
7
7
|
import {
|
|
8
8
|
FETCHING,
|
|
9
9
|
RULES_VERSION,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
typedQuery,
|
|
29
29
|
withQuery,
|
|
30
30
|
withTimeLimit
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JDLNI7BU.js";
|
|
32
32
|
import {
|
|
33
33
|
stringWidth,
|
|
34
34
|
wrapAnsi
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
releaseLock,
|
|
40
40
|
servingProfiles,
|
|
41
41
|
takeLock
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-OX5EAUKF.js";
|
|
43
43
|
import {
|
|
44
44
|
QUICK_HEALTH_CHECKS,
|
|
45
45
|
fts5Tables,
|
|
@@ -47,10 +47,10 @@ import {
|
|
|
47
47
|
lossUnknown,
|
|
48
48
|
storeDamageReport,
|
|
49
49
|
storeHealth
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-BFERGEBI.js";
|
|
51
51
|
import {
|
|
52
52
|
readSecret
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-34PRGA7E.js";
|
|
54
54
|
import {
|
|
55
55
|
CORPORA,
|
|
56
56
|
MIGRATIONS,
|
|
@@ -85,10 +85,10 @@ import {
|
|
|
85
85
|
storeClients,
|
|
86
86
|
storeContents,
|
|
87
87
|
vectorIndexCounts
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-Z2TCTTPJ.js";
|
|
89
89
|
import {
|
|
90
90
|
openCache
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-AJQ6JFLY.js";
|
|
92
92
|
import {
|
|
93
93
|
Command,
|
|
94
94
|
LOCAL_READ,
|
|
@@ -116,14 +116,14 @@ import {
|
|
|
116
116
|
snakeKeys,
|
|
117
117
|
storeTable,
|
|
118
118
|
withoutProviderRefs
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-5N7TJ6TJ.js";
|
|
120
120
|
import {
|
|
121
121
|
holdersOf
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-PD4RREQB.js";
|
|
123
123
|
import {
|
|
124
124
|
modelAddressAllowed,
|
|
125
125
|
onThisComputer
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-P6KGEZIS.js";
|
|
127
127
|
import {
|
|
128
128
|
currentRun,
|
|
129
129
|
formatLocator,
|
|
@@ -132,22 +132,22 @@ import {
|
|
|
132
132
|
readHealthMark,
|
|
133
133
|
readJournalMark,
|
|
134
134
|
recordDeepCheck
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-EZBMLKBK.js";
|
|
136
136
|
import {
|
|
137
137
|
failureKey,
|
|
138
138
|
isStoreDamage
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-LWSOCKOD.js";
|
|
140
140
|
import {
|
|
141
141
|
readSharedSection,
|
|
142
142
|
sharedConfigPath,
|
|
143
143
|
writeSharedSection
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-JF4AJNCE.js";
|
|
145
145
|
import {
|
|
146
146
|
queryFieldsOf
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-LEPDRO3O.js";
|
|
148
148
|
import {
|
|
149
149
|
storePath
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-TT6OHNV2.js";
|
|
151
151
|
import {
|
|
152
152
|
Credentials,
|
|
153
153
|
isMovedRun,
|
|
@@ -5520,11 +5520,11 @@ var require_liquid_node = __commonJS({
|
|
|
5520
5520
|
}
|
|
5521
5521
|
});
|
|
5522
5522
|
|
|
5523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5524
5524
|
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";
|
|
5525
5525
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5526
5526
|
|
|
5527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5528
5528
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5529
5529
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5530
5530
|
import { Transform } from "node:stream";
|
|
@@ -5631,7 +5631,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5631
5631
|
renameSync(pending, to);
|
|
5632
5632
|
}, "unsealFile");
|
|
5633
5633
|
|
|
5634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5635
5635
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5636
5636
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5637
5637
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5655,7 +5655,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5655
5655
|
};
|
|
5656
5656
|
}, "compatibilityOf");
|
|
5657
5657
|
|
|
5658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5659
5659
|
import { createHash as createHash2 } from "node:crypto";
|
|
5660
5660
|
var COPY_MARK = "__repair_";
|
|
5661
5661
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5909,19 +5909,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5909
5909
|
return found;
|
|
5910
5910
|
}, "deleteCopy");
|
|
5911
5911
|
|
|
5912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5913
5913
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5914
5914
|
|
|
5915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5916
5916
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5917
5917
|
|
|
5918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5919
5919
|
import { execFileSync, spawn } from "node:child_process";
|
|
5920
5920
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5921
5921
|
import { basename, dirname, join } from "node:path";
|
|
5922
5922
|
import { Transform as Transform2 } from "node:stream";
|
|
5923
5923
|
|
|
5924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5925
5925
|
var REFILL_MARGIN_MS = 864e5;
|
|
5926
5926
|
var TIME_KEYS = 1e12;
|
|
5927
5927
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6001,7 +6001,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6001
6001
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6002
6002
|
}, "forgetMail");
|
|
6003
6003
|
|
|
6004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6005
6005
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6006
6006
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6007
6007
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6529,7 +6529,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6529
6529
|
}
|
|
6530
6530
|
}, "recoverLocked");
|
|
6531
6531
|
|
|
6532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6533
6533
|
var COUNTED = [
|
|
6534
6534
|
"accounts",
|
|
6535
6535
|
"chats",
|
|
@@ -6685,7 +6685,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6685
6685
|
return recover;
|
|
6686
6686
|
}, "storeRecoverCommand");
|
|
6687
6687
|
|
|
6688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6689
6689
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6690
6690
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6691
6691
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6731,7 +6731,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6731
6731
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6732
6732
|
}), "storeInfoCommand");
|
|
6733
6733
|
|
|
6734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6735
6735
|
var ENCRYPT_OPTION = [
|
|
6736
6736
|
"--encrypt",
|
|
6737
6737
|
"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"
|
|
@@ -6750,7 +6750,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6750
6750
|
return password;
|
|
6751
6751
|
}, "passwordOf");
|
|
6752
6752
|
|
|
6753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6754
6754
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6755
6755
|
import { join as join2 } from "node:path";
|
|
6756
6756
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6921,7 +6921,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6921
6921
|
}, "problem");
|
|
6922
6922
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6923
6923
|
|
|
6924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6925
6925
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6926
6926
|
import { join as join3 } from "node:path";
|
|
6927
6927
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6974,7 +6974,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6974
6974
|
}, "recordReply");
|
|
6975
6975
|
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");
|
|
6976
6976
|
|
|
6977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6978
6978
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6979
6979
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6980
6980
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7080,10 +7080,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7080
7080
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7081
7081
|
}, "filled");
|
|
7082
7082
|
|
|
7083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7084
7084
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7085
7085
|
|
|
7086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7087
7087
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7088
7088
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7089
7089
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7110,7 +7110,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7110
7110
|
return engine;
|
|
7111
7111
|
}, "safeLiquid");
|
|
7112
7112
|
|
|
7113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7114
7114
|
var TEMPLATE_LIMITS = {
|
|
7115
7115
|
parse: 32768,
|
|
7116
7116
|
renders: 2e3,
|
|
@@ -7249,7 +7249,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7249
7249
|
}
|
|
7250
7250
|
}, "renderReplyTemplate");
|
|
7251
7251
|
|
|
7252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7253
7253
|
var DRY_RUN_DAYS = 7;
|
|
7254
7254
|
var PAGE = 500;
|
|
7255
7255
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7363,7 +7363,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7363
7363
|
}
|
|
7364
7364
|
}, "storedSince");
|
|
7365
7365
|
|
|
7366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7367
7367
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7368
7368
|
var DEFAULT_BASE_URL = {
|
|
7369
7369
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7513,7 +7513,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7513
7513
|
}
|
|
7514
7514
|
}, "checkAi");
|
|
7515
7515
|
|
|
7516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7517
7517
|
var HOSTED = {
|
|
7518
7518
|
openai: "https://api.openai.com/v1",
|
|
7519
7519
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7534,7 +7534,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7534
7534
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7535
7535
|
}, "purposeModel");
|
|
7536
7536
|
|
|
7537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7538
7538
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7539
7539
|
import { join as join4 } from "node:path";
|
|
7540
7540
|
var shape = strictObject({
|
|
@@ -7559,7 +7559,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7559
7559
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7560
7560
|
}, "mayModelReply");
|
|
7561
7561
|
|
|
7562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7563
7563
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7564
7564
|
ai: true
|
|
7565
7565
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7607,7 +7607,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7607
7607
|
return result2;
|
|
7608
7608
|
}, "replyRenderer");
|
|
7609
7609
|
|
|
7610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7611
7611
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7612
7612
|
var NO_RULES = "no rules";
|
|
7613
7613
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7700,7 +7700,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7700
7700
|
return { skip: why };
|
|
7701
7701
|
}, "replyTo");
|
|
7702
7702
|
|
|
7703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7704
7704
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7705
7705
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7706
7706
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7777,7 +7777,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7777
7777
|
};
|
|
7778
7778
|
}, "startSync");
|
|
7779
7779
|
|
|
7780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7781
7781
|
var FIRST_FETCH_MS = 6e4;
|
|
7782
7782
|
var DAY_MS = 864e5;
|
|
7783
7783
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7831,7 +7831,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7831
7831
|
};
|
|
7832
7832
|
}, "memberFetches");
|
|
7833
7833
|
|
|
7834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7835
7835
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7836
7836
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7837
7837
|
if (context.format === "pretty") {
|
|
@@ -7864,7 +7864,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7864
7864
|
return context;
|
|
7865
7865
|
}, "recordDiagnostics");
|
|
7866
7866
|
|
|
7867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7868
7868
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7869
7869
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7870
7870
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7950,7 +7950,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7950
7950
|
};
|
|
7951
7951
|
}, "watchOutdated");
|
|
7952
7952
|
|
|
7953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7954
7954
|
var STEMS_EVERY_MS = 3e4;
|
|
7955
7955
|
var STEMS_SLICE_MS = 2e3;
|
|
7956
7956
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7990,7 +7990,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7990
7990
|
};
|
|
7991
7991
|
}, "stemFills");
|
|
7992
7992
|
|
|
7993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7994
7994
|
import { styleText } from "node:util";
|
|
7995
7995
|
var TIME_WIDTH = 8;
|
|
7996
7996
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -8166,7 +8166,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
8166
8166
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
8167
8167
|
}, "editedAt");
|
|
8168
8168
|
|
|
8169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8170
8170
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8171
8171
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8172
8172
|
kind: attachment.kind,
|
|
@@ -8262,7 +8262,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8262
8262
|
locale: messenger.app.locale
|
|
8263
8263
|
}), "viewOf");
|
|
8264
8264
|
|
|
8265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8266
8266
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8267
8267
|
value: value.value,
|
|
8268
8268
|
observed_at: value.observedAt,
|
|
@@ -8329,7 +8329,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8329
8329
|
}
|
|
8330
8330
|
}, "watchEventItem");
|
|
8331
8331
|
|
|
8332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8333
8333
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8334
8334
|
output: { entity: "watch_item" },
|
|
8335
8335
|
effects: REMOTE_READ,
|
|
@@ -8484,7 +8484,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8484
8484
|
}
|
|
8485
8485
|
}, "describe");
|
|
8486
8486
|
|
|
8487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8488
8488
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8489
8489
|
const command = annotate(new Command("serve"), {
|
|
8490
8490
|
output: { entity: "serve_summary" },
|
|
@@ -8770,7 +8770,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8770
8770
|
};
|
|
8771
8771
|
}, "tasking");
|
|
8772
8772
|
|
|
8773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8774
8774
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8775
8775
|
var PATH = "store tables list";
|
|
8776
8776
|
var STORE_TABLES_QUERY = {
|
|
@@ -8813,7 +8813,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8813
8813
|
return tables;
|
|
8814
8814
|
}, "storeTablesCommand");
|
|
8815
8815
|
|
|
8816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8817
8817
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8818
8818
|
var WORD_INDEX = "message_words";
|
|
8819
8819
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PD4RREQB.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -132,7 +132,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
|
132
132
|
}, "parseRateLimitReset");
|
|
133
133
|
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
134
134
|
|
|
135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
136
136
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
137
137
|
try {
|
|
138
138
|
const url = new URL(value);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
12
12
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
13
13
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
14
14
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EZBMLKBK.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
unknown
|
|
19
19
|
} from "./chunk-AUNNJDVD.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UUNQV4YL.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YJ4BPNWI.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
refuseLacking,
|
|
19
19
|
servicesFor,
|
|
20
20
|
storeModeDeps
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JDLNI7BU.js";
|
|
22
22
|
import {
|
|
23
23
|
MAX_BUFFERED_INPUT
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YZTMQE62.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_OUTPUT_BYTES,
|
|
27
27
|
ENTITIES,
|
|
@@ -42,25 +42,25 @@ import {
|
|
|
42
42
|
refuseStoreChange,
|
|
43
43
|
sealed,
|
|
44
44
|
startRecording
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-5N7TJ6TJ.js";
|
|
46
46
|
import {
|
|
47
47
|
currentCaller,
|
|
48
48
|
keepsSuccess,
|
|
49
49
|
runContextOf,
|
|
50
50
|
withCaller
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-5ZIT6JXP.js";
|
|
52
52
|
import {
|
|
53
53
|
enclosingTraceId,
|
|
54
54
|
inRun,
|
|
55
55
|
newRunId,
|
|
56
56
|
traceOf
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-EZBMLKBK.js";
|
|
58
58
|
import {
|
|
59
59
|
storeDamaged
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-LWSOCKOD.js";
|
|
61
61
|
import {
|
|
62
62
|
queryDescription
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-LEPDRO3O.js";
|
|
64
64
|
import {
|
|
65
65
|
captureStreams,
|
|
66
66
|
traceIdOf
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
__name
|
|
113
113
|
} from "./chunk-ZVVMGPBJ.js";
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
116
116
|
import { Readable } from "node:stream";
|
|
117
117
|
|
|
118
118
|
// node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
@@ -3307,7 +3307,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3307
3307
|
]
|
|
3308
3308
|
});
|
|
3309
3309
|
|
|
3310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3311
3311
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3312
3312
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3313
3313
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3534,7 +3534,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3534
3534
|
}
|
|
3535
3535
|
}, "runCommandForAgent");
|
|
3536
3536
|
|
|
3537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3538
3538
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3539
3539
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3540
3540
|
var message = pipe(
|
|
@@ -3793,7 +3793,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3793
3793
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3794
3794
|
}, "failed");
|
|
3795
3795
|
|
|
3796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3797
3797
|
import { randomUUID } from "node:crypto";
|
|
3798
3798
|
var MATCHES = 8;
|
|
3799
3799
|
var ANSWER = answerSchema();
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-5XR7K42U.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2U6XE4HI.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -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.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { realpathSync } from "node:fs";
|
|
12
12
|
import { userInfo } from "node:os";
|
|
13
13
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|