@wirecat/tg-cli 0.122.0 → 0.123.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/contracts/wirecat.json +15 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-ZI57T2L5.js → adapter-GAOG65O2.js} +46 -46
- package/dist/bundle/{all-profiles-7VXJF42C.js → all-profiles-HLE6PHNI.js} +8 -8
- package/dist/bundle/{anthropic-DKRXIWVV.js → anthropic-FZC4BS7T.js} +4 -4
- package/dist/bundle/{app-server-F5MKHZ7S.js → app-server-SHZNMV27.js} +40 -40
- package/dist/bundle/{bot-api-F24NWJT3.js → bot-api-LRS2KMDE.js} +46 -46
- package/dist/bundle/{bot-history-U3WM3A7S.js → bot-history-IJ7ZZKW5.js} +16 -16
- package/dist/bundle/{bun-OMTJAXGK.js → bun-FACL53HM.js} +2 -2
- package/dist/bundle/{bun-sqlite-HSYLO46A.js → bun-sqlite-B2MD7RTL.js} +8 -4
- package/dist/bundle/{chunk-ZNPRTCUO.js → chunk-3BUQXB7B.js} +7 -7
- package/dist/bundle/{chunk-DCGGZUNJ.js → chunk-3JISIGLP.js} +2 -2
- package/dist/bundle/{chunk-VDFEWSCS.js → chunk-3P7HWXDJ.js} +3 -3
- package/dist/bundle/{chunk-U6HEZPCR.js → chunk-3S6KZCZ7.js} +1 -1
- package/dist/bundle/{chunk-ARKB3M5X.js → chunk-4DCFLHLN.js} +3 -3
- package/dist/bundle/{chunk-VC6J7X76.js → chunk-5IHYZ6ED.js} +11 -11
- package/dist/bundle/{chunk-7DPWVKYS.js → chunk-5R5HGV2J.js} +2 -2
- package/dist/bundle/{chunk-DTTONQW7.js → chunk-6FK2Z75N.js} +2 -2
- package/dist/bundle/{chunk-GJBGZQHN.js → chunk-6KT5BTWL.js} +162 -149
- package/dist/bundle/{chunk-6LMEIELG.js → chunk-7EFJHLKW.js} +1 -1
- package/dist/bundle/{chunk-N7WDVH2O.js → chunk-ADI5R2MM.js} +29 -29
- package/dist/bundle/{chunk-YFEH7OWG.js → chunk-B6G3TNN4.js} +14 -14
- package/dist/bundle/{chunk-PG3V225O.js → chunk-BAB3ALHZ.js} +27 -24
- package/dist/bundle/{chunk-R2IW6JBV.js → chunk-BGUYYKS3.js} +48 -48
- package/dist/bundle/{chunk-4MFMUBHH.js → chunk-DEMGDKCX.js} +77 -77
- package/dist/bundle/{chunk-Y74WJL3M.js → chunk-E2Z4C6CQ.js} +2 -2
- package/dist/bundle/{chunk-FZKHFTKH.js → chunk-EABZ2CUG.js} +15 -14
- package/dist/bundle/{chunk-SODUFMDW.js → chunk-EISV5YWD.js} +1060 -913
- package/dist/bundle/{chunk-33ELXJRR.js → chunk-ENEMZAIJ.js} +10 -10
- package/dist/bundle/{chunk-7FWU4RON.js → chunk-EOUUI5FI.js} +3 -3
- package/dist/bundle/{chunk-VQL4RVXZ.js → chunk-FFHX7VKP.js} +1 -1
- package/dist/bundle/{chunk-7I6YVQHW.js → chunk-HJLTWT52.js} +1 -1
- package/dist/bundle/{chunk-ZKHXWSKD.js → chunk-I7K4OR5Q.js} +4 -4
- package/dist/bundle/chunk-KKMNMQMW.js +53 -0
- package/dist/bundle/{chunk-FHWUOFWX.js → chunk-MFN5MSIL.js} +3 -3
- package/dist/bundle/{chunk-NE3EGYPD.js → chunk-NYRAW4M5.js} +3 -3
- package/dist/bundle/{chunk-V4BPS7MH.js → chunk-OE5JMZSM.js} +6 -6
- package/dist/bundle/{chunk-W34QQMBK.js → chunk-OOWE2O5U.js} +1 -1
- package/dist/bundle/{chunk-HAR76KJG.js → chunk-PAHSIORC.js} +5 -5
- package/dist/bundle/{chunk-GJFICFQB.js → chunk-PZJXQMSZ.js} +1 -1
- package/dist/bundle/{chunk-7GCVON7M.js → chunk-PZQ2MQFX.js} +5 -5
- package/dist/bundle/{chunk-7X6YLKTK.js → chunk-Q74XVJFT.js} +1 -1
- package/dist/bundle/{chunk-O5A4IS2D.js → chunk-QLB3BFSN.js} +1 -1
- package/dist/bundle/{chunk-CB6AHU6H.js → chunk-QLXKWAET.js} +20 -11
- package/dist/bundle/{chunk-YDMKP7PO.js → chunk-QVMAZVSN.js} +1 -1
- package/dist/bundle/{chunk-CW3C7FSO.js → chunk-RDKPKS2P.js} +1 -1
- package/dist/bundle/{chunk-ALW7ROTM.js → chunk-SCGCDLI7.js} +1 -1
- package/dist/bundle/{chunk-WGGSFGNZ.js → chunk-SMFUKHG2.js} +24 -0
- package/dist/bundle/{chunk-DDSAJKPO.js → chunk-SNEJK4SN.js} +4 -4
- package/dist/bundle/{chunk-4N2WJYLE.js → chunk-STPYSD6W.js} +2 -2
- package/dist/bundle/{chunk-NU4RMUMQ.js → chunk-SWGGYBCW.js} +13 -13
- package/dist/bundle/{chunk-6DLRATDC.js → chunk-T5OO7VDT.js} +302 -260
- package/dist/bundle/{chunk-D3ODL4P7.js → chunk-U5FILNK6.js} +2 -2
- package/dist/bundle/{chunk-2UHANFLM.js → chunk-UB6J5HRW.js} +3 -3
- package/dist/bundle/{chunk-E3MFMMVY.js → chunk-UBFDPLFQ.js} +5 -5
- package/dist/bundle/{chunk-QROAXWDU.js → chunk-V23X3W2W.js} +7 -7
- package/dist/bundle/{chunk-UGEYQWEO.js → chunk-V4722KYX.js} +1 -1
- package/dist/bundle/{chunk-C5CB6RIX.js → chunk-V4JEZFW5.js} +1 -1
- package/dist/bundle/{chunk-2FXA32RJ.js → chunk-VVRWH5VH.js} +7 -7
- package/dist/bundle/{chunk-TKJZENAZ.js → chunk-WA7YED3Y.js} +1 -1
- package/dist/bundle/{chunk-LQRZUNYF.js → chunk-WSLTW6MI.js} +2 -2
- package/dist/bundle/{chunk-FYHFAOPM.js → chunk-XDL4L3OI.js} +9103 -8607
- package/dist/bundle/{chunk-27SVHRHV.js → chunk-Z5HHBTS5.js} +2 -2
- package/dist/bundle/{chunk-MFWWZ6XL.js → chunk-ZJPXRW65.js} +3 -3
- package/dist/bundle/{chunk-FATTEYZH.js → chunk-ZOBRYIUG.js} +1 -1
- package/dist/bundle/{chunk-RFFU6KQ5.js → chunk-ZQ3WGGKK.js} +12 -12
- package/dist/bundle/command-contract-HWSWHMO4.js +33 -0
- package/dist/bundle/{command-server-entry-N32NX4QW.js → command-server-entry-5LKDRLEX.js} +20 -20
- package/dist/bundle/{decode-ZKJWSFXF.js → decode-L4DQDHXA.js} +4 -4
- package/dist/bundle/{dispatch-U2DW6UI7.js → dispatch-PQSCFHEX.js} +1 -1
- package/dist/bundle/{echarts-QLVLIP73.js → echarts-6LES2JIV.js} +2 -2
- package/dist/bundle/{embed-LC6K7P3S.js → embed-T5MLKX75.js} +5 -5
- package/dist/bundle/{embedder-6C3OQBOV.js → embedder-56NMRLC5.js} +8 -8
- package/dist/bundle/{entry-5H6LB3MP.js → entry-U5GV6Y46.js} +7 -7
- package/dist/bundle/{failure-HJD7S5UA.js → failure-BX5HJAQE.js} +1 -1
- package/dist/bundle/{first-run-IOYQ4XQK.js → first-run-ISQ52V3I.js} +8 -8
- package/dist/bundle/first-screen-7L4AMZDO.js +31 -0
- package/dist/bundle/{instructions-SZUMEDY3.js → instructions-CJEXDI7E.js} +1 -1
- package/dist/bundle/{node-V76RRFIA.js → node-QLWTGZW7.js} +2 -2
- package/dist/bundle/{node-sqlite-2DTVOT7L.js → node-sqlite-X2C3RR2Q.js} +9 -5
- package/dist/bundle/{oauth-CT7EBDRY.js → oauth-VP3KMHLX.js} +6 -6
- package/dist/bundle/{open-G3VHOOMV.js → open-GLR5EUZS.js} +4 -4
- package/dist/bundle/{openai-F4K7MVTZ.js → openai-6CDCJ5LQ.js} +12 -12
- package/dist/bundle/{process-XH3KEHSF.js → process-7FABZ3T2.js} +1 -1
- package/dist/bundle/{program-FLGIHTHM.js → program-KUIAHJDX.js} +49 -49
- package/dist/bundle/{prompt-JWQ6UQ6R.js → prompt-XPHIZMD2.js} +4 -4
- package/dist/bundle/{proxy-transport-ENU2SJYT.js → proxy-transport-IIB7ZXIS.js} +4 -4
- package/dist/bundle/{recognize-Z26T3SYD.js → recognize-FVFYI3XX.js} +3 -3
- package/dist/bundle/{remote-7KHT6V3O.js → remote-3AMCG2P4.js} +6 -6
- package/dist/bundle/{rerank-6QVI74QY.js → rerank-XV4E25ML.js} +6 -6
- package/dist/bundle/{serve-WYDZTONY.js → serve-NVSZA4UN.js} +8 -8
- package/dist/bundle/{server-Y4J2NCFA.js → server-MBMPHRJE.js} +31 -31
- package/dist/bundle/server-MHVGYRQZ.js +61 -0
- package/dist/bundle/{state-YCXBKOD2.js → state-JBMB2QUR.js} +5 -5
- package/dist/bundle/{store-QECSDJRP.js → store-T4SCYTY2.js} +11 -11
- package/dist/bundle/store-maintenance-command-F7WQMTMP.js +49 -0
- package/dist/bundle/tg.js +6 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-Y52T5EMB.js +0 -35
- package/dist/bundle/command-contract-247AKZTE.js +0 -33
- package/dist/bundle/first-screen-NVK7PFX4.js +0 -31
- package/dist/bundle/server-UXQT7LZT.js +0 -61
- package/dist/bundle/store-maintenance-command-5YW6TRJA.js +0 -49
|
@@ -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-EABZ2CUG.js";
|
|
7
7
|
import {
|
|
8
8
|
FETCHING,
|
|
9
9
|
RULES_VERSION,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
typedQuery,
|
|
28
28
|
withQuery,
|
|
29
29
|
withTimeLimit
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-T5OO7VDT.js";
|
|
31
31
|
import {
|
|
32
32
|
QUICK_HEALTH_CHECKS,
|
|
33
33
|
fts5Tables,
|
|
@@ -35,21 +35,21 @@ import {
|
|
|
35
35
|
lossUnknown,
|
|
36
36
|
storeDamageReport,
|
|
37
37
|
storeHealth
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-I7K4OR5Q.js";
|
|
39
39
|
import {
|
|
40
40
|
holdLock,
|
|
41
41
|
lockPath,
|
|
42
42
|
releaseLock,
|
|
43
43
|
servingProfiles,
|
|
44
44
|
takeLock
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MFN5MSIL.js";
|
|
46
46
|
import {
|
|
47
47
|
stringWidth,
|
|
48
48
|
wrapAnsi
|
|
49
49
|
} from "./chunk-2ABQZVK4.js";
|
|
50
50
|
import {
|
|
51
51
|
readSecret
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-WSLTW6MI.js";
|
|
53
53
|
import {
|
|
54
54
|
CORPORA,
|
|
55
55
|
MIGRATIONS,
|
|
@@ -84,10 +84,10 @@ import {
|
|
|
84
84
|
storeClients,
|
|
85
85
|
storeContents,
|
|
86
86
|
vectorIndexCounts
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-XDL4L3OI.js";
|
|
88
88
|
import {
|
|
89
89
|
openCache
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-UBFDPLFQ.js";
|
|
91
91
|
import {
|
|
92
92
|
Command,
|
|
93
93
|
LOCAL_READ,
|
|
@@ -113,10 +113,10 @@ import {
|
|
|
113
113
|
snakeKeys,
|
|
114
114
|
storeTable,
|
|
115
115
|
withoutProviderRefs
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-6KT5BTWL.js";
|
|
117
117
|
import {
|
|
118
118
|
holdersOf
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-QLB3BFSN.js";
|
|
120
120
|
import {
|
|
121
121
|
currentRun,
|
|
122
122
|
formatLocator,
|
|
@@ -126,18 +126,18 @@ import {
|
|
|
126
126
|
readHealthMark,
|
|
127
127
|
readJournalMark,
|
|
128
128
|
recordDeepCheck
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-DEMGDKCX.js";
|
|
130
130
|
import {
|
|
131
131
|
failureKey,
|
|
132
132
|
isStoreDamage
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-Z5HHBTS5.js";
|
|
134
134
|
import {
|
|
135
135
|
storePath
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-KKMNMQMW.js";
|
|
137
137
|
import {
|
|
138
138
|
resolvePaths,
|
|
139
139
|
writeSecurely
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-3S6KZCZ7.js";
|
|
141
141
|
import {
|
|
142
142
|
array,
|
|
143
143
|
boolean,
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
string,
|
|
159
159
|
transform,
|
|
160
160
|
trim
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-SMFUKHG2.js";
|
|
162
162
|
import {
|
|
163
163
|
CliError,
|
|
164
164
|
singleLine,
|
|
@@ -5503,11 +5503,11 @@ var require_liquid_node = __commonJS({
|
|
|
5503
5503
|
}
|
|
5504
5504
|
});
|
|
5505
5505
|
|
|
5506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5507
5507
|
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";
|
|
5508
5508
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5509
5509
|
|
|
5510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5511
5511
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5512
5512
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5513
5513
|
import { Transform } from "node:stream";
|
|
@@ -5614,7 +5614,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5614
5614
|
renameSync(pending, to);
|
|
5615
5615
|
}, "unsealFile");
|
|
5616
5616
|
|
|
5617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5618
5618
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5619
5619
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5620
5620
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5638,7 +5638,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5638
5638
|
};
|
|
5639
5639
|
}, "compatibilityOf");
|
|
5640
5640
|
|
|
5641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5642
5642
|
import { createHash as createHash2 } from "node:crypto";
|
|
5643
5643
|
var COPY_MARK = "__repair_";
|
|
5644
5644
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5892,19 +5892,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5892
5892
|
return found;
|
|
5893
5893
|
}, "deleteCopy");
|
|
5894
5894
|
|
|
5895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5896
5896
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5897
5897
|
|
|
5898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5899
5899
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5900
5900
|
|
|
5901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5902
5902
|
import { execFileSync, spawn } from "node:child_process";
|
|
5903
5903
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5904
5904
|
import { basename, dirname, join } from "node:path";
|
|
5905
5905
|
import { Transform as Transform2 } from "node:stream";
|
|
5906
5906
|
|
|
5907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5908
5908
|
var REFILL_MARGIN_MS = 864e5;
|
|
5909
5909
|
var TIME_KEYS = 1e12;
|
|
5910
5910
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -5984,7 +5984,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
5984
5984
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
5985
5985
|
}, "forgetMail");
|
|
5986
5986
|
|
|
5987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5988
5988
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
5989
5989
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
5990
5990
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6512,7 +6512,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6512
6512
|
}
|
|
6513
6513
|
}, "recoverLocked");
|
|
6514
6514
|
|
|
6515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6516
6516
|
var COUNTED = [
|
|
6517
6517
|
"accounts",
|
|
6518
6518
|
"chats",
|
|
@@ -6668,7 +6668,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6668
6668
|
return recover;
|
|
6669
6669
|
}, "storeRecoverCommand");
|
|
6670
6670
|
|
|
6671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6672
6672
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6673
6673
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6674
6674
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6714,7 +6714,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6714
6714
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6715
6715
|
}), "storeInfoCommand");
|
|
6716
6716
|
|
|
6717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6718
6718
|
var ENCRYPT_OPTION = [
|
|
6719
6719
|
"--encrypt",
|
|
6720
6720
|
"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"
|
|
@@ -6733,7 +6733,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6733
6733
|
return password;
|
|
6734
6734
|
}, "passwordOf");
|
|
6735
6735
|
|
|
6736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6737
6737
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6738
6738
|
import { join as join2 } from "node:path";
|
|
6739
6739
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6904,7 +6904,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6904
6904
|
}, "problem");
|
|
6905
6905
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6906
6906
|
|
|
6907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6908
6908
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6909
6909
|
import { join as join3 } from "node:path";
|
|
6910
6910
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6957,7 +6957,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6957
6957
|
}, "recordReply");
|
|
6958
6958
|
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");
|
|
6959
6959
|
|
|
6960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6961
6961
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6962
6962
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6963
6963
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7063,10 +7063,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7063
7063
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7064
7064
|
}, "filled");
|
|
7065
7065
|
|
|
7066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7067
7067
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7068
7068
|
|
|
7069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7070
7070
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7071
7071
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7072
7072
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7093,7 +7093,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7093
7093
|
return engine;
|
|
7094
7094
|
}, "safeLiquid");
|
|
7095
7095
|
|
|
7096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7097
7097
|
var TEMPLATE_LIMITS = {
|
|
7098
7098
|
parse: 32768,
|
|
7099
7099
|
renders: 2e3,
|
|
@@ -7232,7 +7232,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7232
7232
|
}
|
|
7233
7233
|
}, "renderReplyTemplate");
|
|
7234
7234
|
|
|
7235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7236
7236
|
var DRY_RUN_DAYS = 7;
|
|
7237
7237
|
var PAGE = 500;
|
|
7238
7238
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7346,7 +7346,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7346
7346
|
}
|
|
7347
7347
|
}, "storedSince");
|
|
7348
7348
|
|
|
7349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7350
7350
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7351
7351
|
import { join as join4 } from "node:path";
|
|
7352
7352
|
var shape = strictObject({
|
|
@@ -7371,7 +7371,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7371
7371
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7372
7372
|
}, "mayModelReply");
|
|
7373
7373
|
|
|
7374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7375
7375
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7376
7376
|
ai: true
|
|
7377
7377
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7418,7 +7418,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7418
7418
|
return result2;
|
|
7419
7419
|
}, "replyRenderer");
|
|
7420
7420
|
|
|
7421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7422
7422
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7423
7423
|
var NO_RULES = "no rules";
|
|
7424
7424
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7511,7 +7511,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7511
7511
|
return { skip: why };
|
|
7512
7512
|
}, "replyTo");
|
|
7513
7513
|
|
|
7514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7515
7515
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7516
7516
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7517
7517
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7588,7 +7588,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7588
7588
|
};
|
|
7589
7589
|
}, "startSync");
|
|
7590
7590
|
|
|
7591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7592
7592
|
var FIRST_FETCH_MS = 6e4;
|
|
7593
7593
|
var DAY_MS = 864e5;
|
|
7594
7594
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7642,7 +7642,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7642
7642
|
};
|
|
7643
7643
|
}, "memberFetches");
|
|
7644
7644
|
|
|
7645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7646
7646
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7647
7647
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7648
7648
|
if (context.format === "pretty") {
|
|
@@ -7675,7 +7675,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7675
7675
|
return context;
|
|
7676
7676
|
}, "recordDiagnostics");
|
|
7677
7677
|
|
|
7678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7679
7679
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7680
7680
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7681
7681
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7761,7 +7761,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7761
7761
|
};
|
|
7762
7762
|
}, "watchOutdated");
|
|
7763
7763
|
|
|
7764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7765
7765
|
var STEMS_EVERY_MS = 3e4;
|
|
7766
7766
|
var STEMS_SLICE_MS = 2e3;
|
|
7767
7767
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7801,7 +7801,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7801
7801
|
};
|
|
7802
7802
|
}, "stemFills");
|
|
7803
7803
|
|
|
7804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7805
7805
|
import { styleText } from "node:util";
|
|
7806
7806
|
var TIME_WIDTH = 8;
|
|
7807
7807
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7977,7 +7977,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
7977
7977
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7978
7978
|
}, "editedAt");
|
|
7979
7979
|
|
|
7980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7981
7981
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7982
7982
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7983
7983
|
kind: attachment.kind,
|
|
@@ -8072,7 +8072,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8072
8072
|
locale: messenger.app.locale
|
|
8073
8073
|
}), "viewOf");
|
|
8074
8074
|
|
|
8075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8076
8076
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8077
8077
|
value: value.value,
|
|
8078
8078
|
observed_at: value.observedAt,
|
|
@@ -8139,7 +8139,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8139
8139
|
}
|
|
8140
8140
|
}, "watchEventItem");
|
|
8141
8141
|
|
|
8142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8143
8143
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8144
8144
|
output: { entity: "watch_item" },
|
|
8145
8145
|
effects: REMOTE_READ,
|
|
@@ -8294,7 +8294,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8294
8294
|
}
|
|
8295
8295
|
}, "describe");
|
|
8296
8296
|
|
|
8297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8298
8298
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8299
8299
|
const command = annotate(new Command("serve"), {
|
|
8300
8300
|
output: { entity: "serve_summary" },
|
|
@@ -8577,7 +8577,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8577
8577
|
};
|
|
8578
8578
|
}, "tasking");
|
|
8579
8579
|
|
|
8580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8581
8581
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8582
8582
|
var PATH = "store tables list";
|
|
8583
8583
|
var STORE_TABLES_QUERY = {
|
|
@@ -8620,7 +8620,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8620
8620
|
return tables;
|
|
8621
8621
|
}, "storeTablesCommand");
|
|
8622
8622
|
|
|
8623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8624
8624
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8625
8625
|
var WORD_INDEX = "message_words";
|
|
8626
8626
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|