@wirecat/tg-cli 0.107.0 → 0.108.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-PN5AXCJ7.js → adapter-YFWRJWL5.js} +37 -37
- package/dist/bundle/{all-profiles-SDHNKZQQ.js → all-profiles-GQIZSF4W.js} +5 -5
- package/dist/bundle/{anthropic-F3BXQLYB.js → anthropic-BKWEDKPU.js} +3 -3
- package/dist/bundle/{app-server-XDKMWVCD.js → app-server-RJV7ICLH.js} +34 -34
- package/dist/bundle/{bot-api-YXJL4CEV.js → bot-api-2PAH2JZ3.js} +38 -38
- package/dist/bundle/{bot-history-SDLHR7PV.js → bot-history-DPPZ43F4.js} +10 -10
- package/dist/bundle/{bun-SMH7PKUS.js → bun-Q7COX3Z5.js} +2 -2
- package/dist/bundle/{bun-sqlite-KB6PSTWH.js → bun-sqlite-YI4AYZXO.js} +2 -2
- package/dist/bundle/{chunk-P5KMLJQR.js → chunk-26PWIQPP.js} +194 -194
- package/dist/bundle/{chunk-465FPHSG.js → chunk-3562DVQ7.js} +7 -7
- package/dist/bundle/{chunk-GJS26XEB.js → chunk-3GXKJKIC.js} +4 -4
- package/dist/bundle/{chunk-VMKPRAIB.js → chunk-3HYDKCXB.js} +4 -4
- package/dist/bundle/{chunk-44UANKAI.js → chunk-4RDMNNVO.js} +14 -9
- package/dist/bundle/{chunk-STGY3EAZ.js → chunk-5HPXENE5.js} +1 -1
- package/dist/bundle/{chunk-BMXGEQDA.js → chunk-5P27JGGA.js} +4 -4
- package/dist/bundle/{chunk-DBZVF73F.js → chunk-6MZ2ZBX4.js} +2 -2
- package/dist/bundle/{chunk-YA44IPCS.js → chunk-6QTUYMGX.js} +1 -1
- package/dist/bundle/{chunk-CJJVFGFX.js → chunk-76OSISA3.js} +1 -1
- package/dist/bundle/{chunk-GGAG3G7B.js → chunk-77OOX2OE.js} +47 -47
- package/dist/bundle/{chunk-53QVFV34.js → chunk-AOUB2QFP.js} +1 -1
- package/dist/bundle/{chunk-PYRJO6B3.js → chunk-AS2BVZU3.js} +3 -3
- package/dist/bundle/{chunk-AWBJSYX6.js → chunk-B7TFWNKJ.js} +1 -1
- package/dist/bundle/{chunk-A4DS5ANQ.js → chunk-BL72ZIBV.js} +1 -1
- package/dist/bundle/{chunk-REJM262E.js → chunk-BOSMBW4I.js} +10 -10
- package/dist/bundle/{chunk-JAWXJILO.js → chunk-BT6PWDM6.js} +2 -2
- package/dist/bundle/{chunk-TEHAIU6I.js → chunk-CVWF3BFK.js} +42 -42
- package/dist/bundle/{chunk-NSQL3YRD.js → chunk-CZANI3DM.js} +20 -20
- package/dist/bundle/{chunk-BGVODG6P.js → chunk-D6DBVPES.js} +2 -2
- package/dist/bundle/{chunk-NUVHRCUK.js → chunk-DNOJKQXQ.js} +255 -247
- package/dist/bundle/{chunk-BYDDYOF4.js → chunk-DUWTG2GE.js} +7 -7
- package/dist/bundle/{chunk-53RW4KLL.js → chunk-EBB7RFCW.js} +1 -1
- package/dist/bundle/{chunk-X7M7YZPF.js → chunk-EWL3ZFOI.js} +5 -5
- package/dist/bundle/{chunk-NMTFZNFU.js → chunk-F67VPIJL.js} +26 -26
- package/dist/bundle/{chunk-WXIGT6FY.js → chunk-KQFR7ZAA.js} +11 -11
- package/dist/bundle/{chunk-RGNKRI5T.js → chunk-KZPZFPGB.js} +20 -20
- package/dist/bundle/{chunk-YSDA3EWT.js → chunk-LY2LFJMU.js} +92 -92
- package/dist/bundle/{chunk-5QBTHR57.js → chunk-LYLGLFWY.js} +2 -2
- package/dist/bundle/{chunk-KROO42KC.js → chunk-NCXCBVHO.js} +5 -5
- package/dist/bundle/{chunk-JZOXKRDG.js → chunk-OB5PPPXH.js} +6 -6
- package/dist/bundle/{chunk-IY7IEM56.js → chunk-ON67U6WV.js} +4 -4
- package/dist/bundle/{chunk-3UEFJ75D.js → chunk-PCMW3PW6.js} +1 -1
- package/dist/bundle/{chunk-NCWB3KXP.js → chunk-PQHYM2XC.js} +1 -1
- package/dist/bundle/{chunk-TKCZYJAT.js → chunk-QVIT6SQ5.js} +1779 -1519
- package/dist/bundle/{chunk-H4LIQVPN.js → chunk-R5YOKYTE.js} +9 -9
- package/dist/bundle/{chunk-LA2OUJK5.js → chunk-REI5TPS3.js} +8 -8
- package/dist/bundle/{chunk-P5UG655O.js → chunk-SONKULUF.js} +2 -2
- package/dist/bundle/{chunk-WFG7KFM4.js → chunk-TVA3NXXO.js} +1 -1
- package/dist/bundle/{chunk-6FSG6QZH.js → chunk-VK2YLSK7.js} +1 -1
- package/dist/bundle/{chunk-MOZX3JX3.js → chunk-WEDWIXIC.js} +2 -2
- package/dist/bundle/{chunk-TFV4UPQZ.js → chunk-WKSLGPZQ.js} +3 -3
- package/dist/bundle/{chunk-DFZBGU4G.js → chunk-WUF64WOG.js} +4 -4
- package/dist/bundle/{chunk-P4A27ETD.js → chunk-XZXOGHU5.js} +70 -46
- package/dist/bundle/{chunk-OIHAM73W.js → chunk-YJ6GFFEE.js} +1 -1
- package/dist/bundle/{chunk-WS3S7DXT.js → chunk-ZHHVNTBJ.js} +1 -1
- package/dist/bundle/{chunk-O7VQHFMZ.js → chunk-ZYBDAZFO.js} +1 -1
- package/dist/bundle/{command-contract-B4DA4MXP.js → command-contract-5GJV6EHG.js} +12 -12
- package/dist/bundle/{decode-WEP3HD56.js → decode-ZFAFVFWX.js} +2 -2
- package/dist/bundle/{echarts-MRMILSAF.js → echarts-SVXNTKGV.js} +2 -2
- package/dist/bundle/{embed-LCLTUVUD.js → embed-V755YE7O.js} +3 -3
- package/dist/bundle/{embedder-O4WNEXUC.js → embedder-MQAPNQBH.js} +6 -6
- package/dist/bundle/{entry-7HDX6BDR.js → entry-ULQ3VOMQ.js} +3 -3
- package/dist/bundle/{first-run-M7YVVQJS.js → first-run-64BTWXDR.js} +5 -5
- package/dist/bundle/{first-screen-MXW3UZFB.js → first-screen-YZCH4TEV.js} +13 -13
- package/dist/bundle/{identity-EEMHQOTN.js → identity-PW45VBUU.js} +1 -1
- package/dist/bundle/{instructions-YIH3J4TI.js → instructions-G3ZUIRRH.js} +1 -1
- package/dist/bundle/{node-YWT7RFN6.js → node-IDJXLZSX.js} +2 -2
- package/dist/bundle/node-sqlite-W22J37MG.js +62 -0
- package/dist/bundle/{oauth-CADZB7TT.js → oauth-Q52LBXDE.js} +4 -4
- package/dist/bundle/{open-AMRU27KK.js → open-YLD7VHEC.js} +1 -1
- package/dist/bundle/{process-JC76J5UD.js → process-OBESF2XG.js} +1 -1
- package/dist/bundle/{program-FI6MTY2V.js → program-EBMWHOKQ.js} +40 -40
- package/dist/bundle/{prompt-SPYTHKHN.js → prompt-FHHQF3MG.js} +2 -2
- package/dist/bundle/{recognize-G5VVM6MU.js → recognize-QNHKHGKM.js} +1 -1
- package/dist/bundle/{remote-Z3HW42CH.js → remote-RVZWRCCT.js} +4 -4
- package/dist/bundle/{rerank-QJ5NLZUU.js → rerank-KG2USEME.js} +4 -4
- package/dist/bundle/{serve-3I4C6Y5X.js → serve-I4MJKEQ4.js} +6 -6
- package/dist/bundle/server-AXMWFPNT.js +55 -0
- package/dist/bundle/{server-2L4BONHN.js → server-GV7SV3L6.js} +26 -26
- package/dist/bundle/{state-IXZYPH46.js → state-AJKHWFBU.js} +3 -3
- package/dist/bundle/{store-KS4XIA2R.js → store-L3HFSSGJ.js} +7 -7
- package/dist/bundle/store-maintenance-command-Y22ARSDR.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/node-sqlite-LVHTONMA.js +0 -46
- package/dist/bundle/server-7TJ337SR.js +0 -55
- package/dist/bundle/store-maintenance-command-I3L24P22.js +0 -44
|
@@ -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-CZANI3DM.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-26PWIQPP.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-77OOX2OE.js";
|
|
55
55
|
import {
|
|
56
56
|
failureKey
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-DUWTG2GE.js";
|
|
58
58
|
import {
|
|
59
59
|
envName
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-PCMW3PW6.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-BT6PWDM6.js";
|
|
68
68
|
import {
|
|
69
69
|
holdersOf
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-PQHYM2XC.js";
|
|
71
71
|
import {
|
|
72
72
|
checkedOptions,
|
|
73
73
|
range
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-ZYBDAZFO.js";
|
|
75
75
|
import {
|
|
76
76
|
messagesFor,
|
|
77
77
|
systemFor,
|
|
78
78
|
validateImages
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-6QTUYMGX.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-QVIT6SQ5.js";
|
|
109
109
|
import {
|
|
110
110
|
queryFieldsOf
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-XZXOGHU5.js";
|
|
112
112
|
import {
|
|
113
113
|
storePath
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-EBB7RFCW.js";
|
|
115
115
|
import {
|
|
116
116
|
openCache
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-NCXCBVHO.js";
|
|
118
118
|
import {
|
|
119
119
|
readSecret
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-D6DBVPES.js";
|
|
121
121
|
import {
|
|
122
122
|
Credentials,
|
|
123
123
|
pathsAreOverridden,
|
|
@@ -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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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-BKWEDKPU.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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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) => {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
refuseLacking,
|
|
11
11
|
servicesFor,
|
|
12
12
|
throughWrapper
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-26PWIQPP.js";
|
|
14
14
|
import {
|
|
15
15
|
CEILING_KEY,
|
|
16
16
|
LOG_ATTRIBUTES,
|
|
@@ -34,21 +34,21 @@ import {
|
|
|
34
34
|
rememberAccount,
|
|
35
35
|
rootOf2 as rootOf,
|
|
36
36
|
skipFlagFor
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-77OOX2OE.js";
|
|
38
38
|
import {
|
|
39
39
|
isCliFailure,
|
|
40
40
|
providerErrorKey
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-DUWTG2GE.js";
|
|
42
42
|
import {
|
|
43
43
|
MESSENGER_CHANGE_REFUSAL,
|
|
44
44
|
readOnlyRefusal
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-PCMW3PW6.js";
|
|
46
46
|
import {
|
|
47
47
|
servingProfiles
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-BT6PWDM6.js";
|
|
49
49
|
import {
|
|
50
50
|
openStore
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-QVIT6SQ5.js";
|
|
52
52
|
import {
|
|
53
53
|
logRecordOf,
|
|
54
54
|
realSleep,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
__name
|
|
63
63
|
} from "./chunk-ZVVMGPBJ.js";
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
66
66
|
import { openSync } from "node:fs";
|
|
67
67
|
import { createInterface } from "node:readline";
|
|
68
68
|
import { ReadStream } from "node:tty";
|
|
@@ -117,10 +117,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
117
117
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
118
118
|
}, "terminalAsker");
|
|
119
119
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
121
121
|
import { randomUUID } from "node:crypto";
|
|
122
122
|
|
|
123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
124
124
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
125
125
|
import { dirname, join } from "node:path";
|
|
126
126
|
var MOST_DEADLINES = 50;
|
|
@@ -204,11 +204,11 @@ var FloodMemory = class {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
208
208
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
209
209
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
210
210
|
|
|
211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
212
212
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
213
213
|
import { dirname as dirname2 } from "node:path";
|
|
214
214
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -275,7 +275,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
275
275
|
}
|
|
276
276
|
}, "lockTime");
|
|
277
277
|
|
|
278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
279
279
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
280
280
|
var SendJournal = class {
|
|
281
281
|
static {
|
|
@@ -352,7 +352,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
352
352
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
353
353
|
}, "withSendId");
|
|
354
354
|
|
|
355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
356
356
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
357
357
|
import { join as join3 } from "node:path";
|
|
358
358
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -464,7 +464,7 @@ var RecipientList = class {
|
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
|
|
467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
468
468
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
469
469
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
470
470
|
"attachments.extract",
|
|
@@ -657,7 +657,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
657
657
|
}), "guardFor");
|
|
658
658
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
659
659
|
|
|
660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
661
661
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
662
662
|
import { join as join4 } from "node:path";
|
|
663
663
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -716,7 +716,7 @@ var Pacer = class {
|
|
|
716
716
|
}
|
|
717
717
|
};
|
|
718
718
|
|
|
719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
720
720
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
721
721
|
const words = [];
|
|
722
722
|
for (let at = command; at?.parent; at = at.parent)
|
|
@@ -776,7 +776,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
776
776
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
777
777
|
}, "refuseUnknownPermissionKeys");
|
|
778
778
|
|
|
779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
780
780
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
781
781
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
782
782
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -895,7 +895,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
895
895
|
});
|
|
896
896
|
}, "flooded");
|
|
897
897
|
|
|
898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
899
899
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
900
900
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
901
901
|
const write = currentOperation();
|
|
@@ -994,7 +994,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
994
994
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
995
995
|
}, "byPart");
|
|
996
996
|
|
|
997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
998
998
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
999
999
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
|
|
1000
1000
|
let warned = false;
|
|
@@ -1486,7 +1486,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1486
1486
|
}
|
|
1487
1487
|
}, "keep");
|
|
1488
1488
|
|
|
1489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1490
1490
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1491
1491
|
let opened;
|
|
1492
1492
|
return {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AOUB2QFP.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-67SRVSPU.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|