@wirecat/tg-cli 0.108.0 → 0.109.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-YFWRJWL5.js → adapter-6JLFYFL5.js} +45 -44
- package/dist/bundle/{all-profiles-GQIZSF4W.js → all-profiles-X7Y3T5S4.js} +8 -8
- package/dist/bundle/{anthropic-BKWEDKPU.js → anthropic-LGVXAADT.js} +5 -5
- package/dist/bundle/{app-server-RJV7ICLH.js → app-server-UI3AFSJX.js} +40 -39
- package/dist/bundle/{bot-api-2PAH2JZ3.js → bot-api-TQYRNYJQ.js} +46 -45
- package/dist/bundle/{bot-history-DPPZ43F4.js → bot-history-DDNTNMNB.js} +15 -15
- package/dist/bundle/{bun-Q7COX3Z5.js → bun-WXGS6HML.js} +2 -2
- package/dist/bundle/{bun-sqlite-YI4AYZXO.js → bun-sqlite-M6JEXKRT.js} +4 -4
- package/dist/bundle/{chunk-PQHYM2XC.js → chunk-25VC6U3A.js} +1 -1
- package/dist/bundle/{chunk-DNOJKQXQ.js → chunk-2ILQYCBY.js} +377 -286
- package/dist/bundle/{chunk-EWL3ZFOI.js → chunk-3PEZWXKO.js} +6 -6
- package/dist/bundle/{chunk-LY2LFJMU.js → chunk-4R4AH6FM.js} +117 -94
- package/dist/bundle/{chunk-CVWF3BFK.js → chunk-5SUFMBU5.js} +44 -44
- package/dist/bundle/chunk-76C5SSMR.js +379 -0
- package/dist/bundle/{chunk-5HPXENE5.js → chunk-7AJ2IESO.js} +1 -1
- package/dist/bundle/{chunk-PCMW3PW6.js → chunk-7T7ILNCU.js} +2 -2
- package/dist/bundle/{chunk-ZYBDAZFO.js → chunk-AD3QPYI3.js} +2 -2
- package/dist/bundle/{chunk-ON67U6WV.js → chunk-AGVKIJB7.js} +6 -6
- package/dist/bundle/{chunk-YJ6GFFEE.js → chunk-BESIMQ5U.js} +1 -1
- package/dist/bundle/{chunk-76OSISA3.js → chunk-BHPCZCX7.js} +2 -2
- package/dist/bundle/{chunk-3GXKJKIC.js → chunk-BZIZLEJN.js} +4 -4
- package/dist/bundle/{chunk-BOSMBW4I.js → chunk-C3RX3UOE.js} +11 -11
- package/dist/bundle/{chunk-KQFR7ZAA.js → chunk-CH2ESVV5.js} +22 -22
- package/dist/bundle/{chunk-WUF64WOG.js → chunk-CHI6D4D6.js} +4 -4
- package/dist/bundle/{chunk-DUWTG2GE.js → chunk-CVLDXFRP.js} +8 -8
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-DLAFGSTN.js} +1 -1
- package/dist/bundle/{chunk-XZXOGHU5.js → chunk-DO33KAMM.js} +71 -60
- package/dist/bundle/{chunk-77OOX2OE.js → chunk-DZVYGBZB.js} +79 -56
- package/dist/bundle/{chunk-WAGDZB62.js → chunk-GUFM5RLW.js} +2 -2
- package/dist/bundle/{chunk-REI5TPS3.js → chunk-IGIPIO4J.js} +11 -11
- package/dist/bundle/{chunk-LYLGLFWY.js → chunk-INYO2QFW.js} +3 -3
- package/dist/bundle/{chunk-3HYDKCXB.js → chunk-IULYECPC.js} +12 -12
- package/dist/bundle/{chunk-6MZ2ZBX4.js → chunk-IV2QWSPG.js} +2 -2
- package/dist/bundle/{chunk-6QTUYMGX.js → chunk-KHKC236O.js} +2 -2
- package/dist/bundle/{chunk-QVIT6SQ5.js → chunk-M62LF3QE.js} +613 -381
- package/dist/bundle/{chunk-KZPZFPGB.js → chunk-MF6NKU3Z.js} +81 -30
- package/dist/bundle/{chunk-WEDWIXIC.js → chunk-N56WXUCW.js} +2 -2
- package/dist/bundle/{chunk-T4SDOYPY.js → chunk-N5FSRC6H.js} +117 -70
- package/dist/bundle/{chunk-FG2QTYEF.js → chunk-NAVNCM5K.js} +1 -1
- package/dist/bundle/{chunk-F67VPIJL.js → chunk-OHLMHBDI.js} +28 -28
- package/dist/bundle/{chunk-SONKULUF.js → chunk-P55L4S6N.js} +3 -3
- package/dist/bundle/{chunk-OB5PPPXH.js → chunk-P57R2P75.js} +7 -7
- package/dist/bundle/{chunk-5P27JGGA.js → chunk-P5ILJ7MN.js} +5 -5
- package/dist/bundle/{chunk-AS2BVZU3.js → chunk-QQF7RDLR.js} +49 -24
- package/dist/bundle/{chunk-WKSLGPZQ.js → chunk-RD2NLJSU.js} +16 -4
- package/dist/bundle/{chunk-NCXCBVHO.js → chunk-S7B6MTXX.js} +6 -6
- package/dist/bundle/{chunk-CZANI3DM.js → chunk-SH63Q4QR.js} +22 -22
- package/dist/bundle/{chunk-BT6PWDM6.js → chunk-TMXNMO66.js} +3 -3
- package/dist/bundle/{chunk-4RDMNNVO.js → chunk-UIPBAT2T.js} +26 -14
- package/dist/bundle/{chunk-EBB7RFCW.js → chunk-UUQ3BH2Z.js} +2 -2
- package/dist/bundle/{chunk-VMU4SGCE.js → chunk-VFVMB3NV.js} +8 -6
- package/dist/bundle/{chunk-B7TFWNKJ.js → chunk-VYR2IIWW.js} +1 -1
- package/dist/bundle/{chunk-AOUB2QFP.js → chunk-WHYS6OSG.js} +2 -2
- package/dist/bundle/{chunk-ZHHVNTBJ.js → chunk-WNTXIQMB.js} +2 -2
- package/dist/bundle/{chunk-26PWIQPP.js → chunk-XJVGCCQE.js} +666 -782
- package/dist/bundle/{chunk-67SRVSPU.js → chunk-XMMWKHNY.js} +26 -9
- package/dist/bundle/{chunk-BL72ZIBV.js → chunk-YXCQ4DLZ.js} +1 -1
- package/dist/bundle/{chunk-3562DVQ7.js → chunk-YYOIULA2.js} +8 -8
- package/dist/bundle/{chunk-TVA3NXXO.js → chunk-ZFMS5G4H.js} +2 -2
- package/dist/bundle/{chunk-D6DBVPES.js → chunk-ZHP44EML.js} +3 -3
- package/dist/bundle/{chunk-VK2YLSK7.js → chunk-ZMZKZL3Y.js} +1 -1
- package/dist/bundle/{chunk-R5YOKYTE.js → chunk-ZUOS7QUB.js} +11 -11
- package/dist/bundle/command-contract-E2MWR3T3.js +32 -0
- package/dist/bundle/{decode-ZFAFVFWX.js → decode-RKPOGPBE.js} +19 -17
- package/dist/bundle/{echarts-SVXNTKGV.js → echarts-H5QQRBHI.js} +2 -2
- package/dist/bundle/{embed-V755YE7O.js → embed-7TVAPNP7.js} +5 -5
- package/dist/bundle/{embedder-MQAPNQBH.js → embedder-YOOHWWN6.js} +8 -8
- package/dist/bundle/{entry-ULQ3VOMQ.js → entry-SAKW5HEZ.js} +5 -5
- package/dist/bundle/{first-run-64BTWXDR.js → first-run-C744N572.js} +9 -9
- package/dist/bundle/first-screen-7GKUEIWS.js +30 -0
- package/dist/bundle/{identity-PW45VBUU.js → identity-NRWTZIQ4.js} +3 -3
- package/dist/bundle/{instructions-G3ZUIRRH.js → instructions-6LWRAW47.js} +1 -1
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-WSGVVZWI.js} +2 -2
- package/dist/bundle/{node-IDJXLZSX.js → node-XN4PIVWW.js} +2 -2
- package/dist/bundle/{node-sqlite-W22J37MG.js → node-sqlite-PCBGROGQ.js} +4 -4
- package/dist/bundle/{oauth-Q52LBXDE.js → oauth-PX6NGHUV.js} +6 -6
- package/dist/bundle/{open-YLD7VHEC.js → open-BKJGJ6GX.js} +3 -3
- package/dist/bundle/openai-MJP7CZXP.js +250 -0
- package/dist/bundle/{process-OBESF2XG.js → process-4PRR3MLT.js} +1 -1
- package/dist/bundle/{program-EBMWHOKQ.js → program-7YZUO42B.js} +48 -47
- package/dist/bundle/{prompt-FHHQF3MG.js → prompt-CILSZC2R.js} +4 -4
- package/dist/bundle/{proxy-transport-YSBYG26I.js → proxy-transport-FWGKTYBL.js} +4 -4
- package/dist/bundle/{recognize-QNHKHGKM.js → recognize-AVFDJAIL.js} +5 -3
- package/dist/bundle/{remote-RVZWRCCT.js → remote-2VYXGOM4.js} +6 -6
- package/dist/bundle/{rerank-KG2USEME.js → rerank-6FU2JPCD.js} +6 -6
- package/dist/bundle/{serve-I4MJKEQ4.js → serve-3YQOHBR6.js} +8 -8
- package/dist/bundle/server-S2K4YDDG.js +56 -0
- package/dist/bundle/{server-GV7SV3L6.js → server-TPK3LNEX.js} +32 -31
- package/dist/bundle/{state-AJKHWFBU.js → state-LLUNBLZE.js} +5 -5
- package/dist/bundle/{store-L3HFSSGJ.js → store-27FQ743G.js} +10 -10
- package/dist/bundle/store-maintenance-command-AFJMKEBK.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-5GJV6EHG.js +0 -32
- package/dist/bundle/first-screen-YZCH4TEV.js +0 -30
- package/dist/bundle/server-AXMWFPNT.js +0 -55
- package/dist/bundle/store-maintenance-command-Y22ARSDR.js +0 -44
- /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-62EDJKGP.js} +0 -0
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SH63Q4QR.js";
|
|
7
7
|
import {
|
|
8
8
|
RULES_VERSION,
|
|
9
9
|
applyTaskRulesOnArrival,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
syncsOneChat,
|
|
21
21
|
typedQuery,
|
|
22
22
|
withQuery
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XJVGCCQE.js";
|
|
24
24
|
import {
|
|
25
25
|
stringWidth,
|
|
26
26
|
wrapAnsi
|
|
@@ -51,32 +51,32 @@ import {
|
|
|
51
51
|
snakeKeys,
|
|
52
52
|
storeTable,
|
|
53
53
|
withoutProviderRefs
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-DZVYGBZB.js";
|
|
55
55
|
import {
|
|
56
56
|
failureKey
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-CVLDXFRP.js";
|
|
58
58
|
import {
|
|
59
59
|
envName
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-7T7ILNCU.js";
|
|
61
61
|
import {
|
|
62
62
|
holdLock,
|
|
63
63
|
lockPath,
|
|
64
64
|
releaseLock,
|
|
65
65
|
servingProfiles,
|
|
66
66
|
takeLock
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-TMXNMO66.js";
|
|
68
68
|
import {
|
|
69
69
|
holdersOf
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-25VC6U3A.js";
|
|
71
71
|
import {
|
|
72
72
|
checkedOptions,
|
|
73
73
|
range
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-AD3QPYI3.js";
|
|
75
75
|
import {
|
|
76
76
|
messagesFor,
|
|
77
77
|
systemFor,
|
|
78
78
|
validateImages
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-KHKC236O.js";
|
|
80
80
|
import {
|
|
81
81
|
MIGRATIONS,
|
|
82
82
|
drainNoteIndex,
|
|
@@ -105,19 +105,19 @@ import {
|
|
|
105
105
|
storeClients,
|
|
106
106
|
storeContents,
|
|
107
107
|
vectorIndexCounts
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-M62LF3QE.js";
|
|
109
109
|
import {
|
|
110
110
|
queryFieldsOf
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-DO33KAMM.js";
|
|
112
112
|
import {
|
|
113
113
|
storePath
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-UUQ3BH2Z.js";
|
|
115
115
|
import {
|
|
116
116
|
openCache
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-S7B6MTXX.js";
|
|
118
118
|
import {
|
|
119
119
|
readSecret
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-ZHP44EML.js";
|
|
121
121
|
import {
|
|
122
122
|
Credentials,
|
|
123
123
|
pathsAreOverridden,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
singleLine,
|
|
126
126
|
visibleControls,
|
|
127
127
|
writeSecurely
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-N5FSRC6H.js";
|
|
129
129
|
import {
|
|
130
130
|
CliError,
|
|
131
131
|
array,
|
|
@@ -150,7 +150,7 @@ import {
|
|
|
150
150
|
transform,
|
|
151
151
|
trim,
|
|
152
152
|
union
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-XMMWKHNY.js";
|
|
154
154
|
import {
|
|
155
155
|
__commonJS,
|
|
156
156
|
__name,
|
|
@@ -5490,11 +5490,11 @@ var require_liquid_node = __commonJS({
|
|
|
5490
5490
|
}
|
|
5491
5491
|
});
|
|
5492
5492
|
|
|
5493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5494
5494
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5495
5495
|
import { dirname, resolve } from "node:path";
|
|
5496
5496
|
|
|
5497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5498
5498
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5499
5499
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5500
5500
|
import { Transform } from "node:stream";
|
|
@@ -5601,7 +5601,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5601
5601
|
renameSync(pending, to);
|
|
5602
5602
|
}, "unsealFile");
|
|
5603
5603
|
|
|
5604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5605
5605
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5606
5606
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5607
5607
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5625,7 +5625,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5625
5625
|
};
|
|
5626
5626
|
}, "compatibilityOf");
|
|
5627
5627
|
|
|
5628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5629
5629
|
import { createHash as createHash2 } from "node:crypto";
|
|
5630
5630
|
var COPY_MARK = "__repair_";
|
|
5631
5631
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5879,7 +5879,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5879
5879
|
return found;
|
|
5880
5880
|
}, "deleteCopy");
|
|
5881
5881
|
|
|
5882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5883
5883
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5884
5884
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5885
5885
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5926,7 +5926,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5926
5926
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5927
5927
|
}), "storeInfoCommand");
|
|
5928
5928
|
|
|
5929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5930
5930
|
var ENCRYPT_OPTION = [
|
|
5931
5931
|
"--encrypt",
|
|
5932
5932
|
"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"
|
|
@@ -5945,7 +5945,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5945
5945
|
return password;
|
|
5946
5946
|
}, "passwordOf");
|
|
5947
5947
|
|
|
5948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5949
5949
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5950
5950
|
import { join } from "node:path";
|
|
5951
5951
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6116,7 +6116,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6116
6116
|
}, "problem");
|
|
6117
6117
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6118
6118
|
|
|
6119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6120
6120
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6121
6121
|
import { join as join2 } from "node:path";
|
|
6122
6122
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6169,7 +6169,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6169
6169
|
}, "recordReply");
|
|
6170
6170
|
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");
|
|
6171
6171
|
|
|
6172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6173
6173
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6174
6174
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6175
6175
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6275,7 +6275,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6275
6275
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6276
6276
|
}, "filled");
|
|
6277
6277
|
|
|
6278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6279
6279
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6280
6280
|
var TEMPLATE_LIMITS = {
|
|
6281
6281
|
parse: 32768,
|
|
@@ -6435,7 +6435,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6435
6435
|
}
|
|
6436
6436
|
}, "renderReplyTemplate");
|
|
6437
6437
|
|
|
6438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6439
6439
|
var DRY_RUN_DAYS = 7;
|
|
6440
6440
|
var PAGE = 500;
|
|
6441
6441
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6549,7 +6549,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6549
6549
|
}
|
|
6550
6550
|
}, "storedSince");
|
|
6551
6551
|
|
|
6552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6553
6553
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6554
6554
|
const host = new URL(baseUrl).host;
|
|
6555
6555
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6580,7 +6580,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6580
6580
|
};
|
|
6581
6581
|
}, "embeddingKeys");
|
|
6582
6582
|
|
|
6583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6584
6584
|
var options = strictObject({
|
|
6585
6585
|
temperature: range(0, 2),
|
|
6586
6586
|
top_p: range(0, 1),
|
|
@@ -6629,7 +6629,7 @@ var openai = {
|
|
|
6629
6629
|
}, "complete")
|
|
6630
6630
|
};
|
|
6631
6631
|
|
|
6632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6633
6633
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6634
6634
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6635
6635
|
if (deps.signal?.aborted)
|
|
@@ -6644,7 +6644,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6644
6644
|
if (!adapter && target.provider === "openai")
|
|
6645
6645
|
adapter = openai;
|
|
6646
6646
|
if (!adapter && target.provider === "anthropic")
|
|
6647
|
-
adapter = (await import("./anthropic-
|
|
6647
|
+
adapter = (await import("./anthropic-LGVXAADT.js")).anthropic;
|
|
6648
6648
|
if (!adapter)
|
|
6649
6649
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6650
6650
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6685,7 +6685,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6685
6685
|
}, "complete")
|
|
6686
6686
|
}), "modelGateway");
|
|
6687
6687
|
|
|
6688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6689
6689
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6690
6690
|
import { join as join3 } from "node:path";
|
|
6691
6691
|
var shape = strictObject({
|
|
@@ -6710,7 +6710,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6710
6710
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6711
6711
|
}, "mayModelReply");
|
|
6712
6712
|
|
|
6713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6714
6714
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6715
6715
|
ai: true
|
|
6716
6716
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6757,7 +6757,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6757
6757
|
return result2;
|
|
6758
6758
|
}, "replyRenderer");
|
|
6759
6759
|
|
|
6760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6761
6761
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6762
6762
|
var NO_RULES = "no rules";
|
|
6763
6763
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6850,7 +6850,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6850
6850
|
return { skip: why };
|
|
6851
6851
|
}, "replyTo");
|
|
6852
6852
|
|
|
6853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6854
6854
|
var FIRST_FETCH_MS = 6e4;
|
|
6855
6855
|
var DAY_MS = 864e5;
|
|
6856
6856
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6904,7 +6904,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6904
6904
|
};
|
|
6905
6905
|
}, "memberFetches");
|
|
6906
6906
|
|
|
6907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6908
6908
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6909
6909
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6910
6910
|
if (context.format === "pretty") {
|
|
@@ -6937,7 +6937,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
6937
6937
|
return context;
|
|
6938
6938
|
}, "recordDiagnostics");
|
|
6939
6939
|
|
|
6940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
6941
6941
|
var STEMS_EVERY_MS = 3e4;
|
|
6942
6942
|
var STEMS_SLICE_MS = 2e3;
|
|
6943
6943
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -6977,7 +6977,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
6977
6977
|
};
|
|
6978
6978
|
}, "stemFills");
|
|
6979
6979
|
|
|
6980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
6981
6981
|
import { styleText } from "node:util";
|
|
6982
6982
|
var TIME_WIDTH = 8;
|
|
6983
6983
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7153,7 +7153,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
|
|
|
7153
7153
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7154
7154
|
}, "editedAt");
|
|
7155
7155
|
|
|
7156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7157
7157
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7158
7158
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7159
7159
|
kind: attachment.kind,
|
|
@@ -7248,7 +7248,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7248
7248
|
locale: messenger.app.locale
|
|
7249
7249
|
}), "viewOf");
|
|
7250
7250
|
|
|
7251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7252
7252
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7253
7253
|
value: value.value,
|
|
7254
7254
|
observed_at: value.observedAt,
|
|
@@ -7315,7 +7315,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7315
7315
|
}
|
|
7316
7316
|
}, "watchEventItem");
|
|
7317
7317
|
|
|
7318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7319
7319
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7320
7320
|
output: { entity: "watch_item" },
|
|
7321
7321
|
effects: REMOTE_READ,
|
|
@@ -7470,7 +7470,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7470
7470
|
}
|
|
7471
7471
|
}, "describe");
|
|
7472
7472
|
|
|
7473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7474
7474
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7475
7475
|
const command = annotate(new Command("serve"), {
|
|
7476
7476
|
output: { entity: "serve_summary" },
|
|
@@ -7686,7 +7686,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7686
7686
|
};
|
|
7687
7687
|
}, "tasking");
|
|
7688
7688
|
|
|
7689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7690
7690
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7691
7691
|
var PATH = "store tables list";
|
|
7692
7692
|
var STORE_TABLES_QUERY = {
|
|
@@ -7729,7 +7729,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7729
7729
|
return tables;
|
|
7730
7730
|
}, "storeTablesCommand");
|
|
7731
7731
|
|
|
7732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7733
7733
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7734
7734
|
var WORD_INDEX = "message_words";
|
|
7735
7735
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|