@wirecat/amo-cli 0.3.0 → 0.4.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/CHANGELOG.md +19 -0
- package/README.md +8 -4
- package/contracts/wirecat.json +13 -13
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-43BMVBX2.js +40 -0
- package/dist/bundle/{all-profiles-PPUN52SP.js → all-profiles-PRNXEZRH.js} +11 -11
- package/dist/bundle/amo.js +28 -28
- package/dist/bundle/{anthropic-RDNDT6ZP.js → anthropic-FDI24DU2.js} +5 -5
- package/dist/bundle/{app-server-MMALJDBP.js → app-server-WAKJVDLN.js} +69 -69
- package/dist/bundle/{bun-Y4FRPURU.js → bun-YPXUXMBI.js} +2 -2
- package/dist/bundle/{bun-sqlite-7NXJGZCO.js → bun-sqlite-UBQ5M47X.js} +6 -6
- package/dist/bundle/{chunk-N4A6E2LL.js → chunk-23AQD7JU.js} +16 -16
- package/dist/bundle/{chunk-TWZF7VO6.js → chunk-2AIG2SSJ.js} +55 -49
- package/dist/bundle/{chunk-PFZ7WG2B.js → chunk-2UJ7ZZZC.js} +3 -3
- package/dist/bundle/{chunk-3YOZTGZ6.js → chunk-3K6T2G52.js} +6 -6
- package/dist/bundle/{chunk-EKNP326Q.js → chunk-3PCVQCCV.js} +2 -2
- package/dist/bundle/{chunk-KKXF6TSS.js → chunk-3WG4MTQI.js} +1 -1
- package/dist/bundle/{chunk-AYR6FIXN.js → chunk-4PQECIU2.js} +2 -2
- package/dist/bundle/{chunk-SJZ52MZE.js → chunk-5HZMXHRH.js} +6 -6
- package/dist/bundle/{chunk-E2DLRLJ5.js → chunk-5II6TAJE.js} +1 -1
- package/dist/bundle/{chunk-FI2TP6TY.js → chunk-5SJEJYQZ.js} +3 -3
- package/dist/bundle/{chunk-4MVTSMWP.js → chunk-6PILR4AX.js} +2 -2
- package/dist/bundle/{chunk-I4QCJZW7.js → chunk-6QMSKJB4.js} +8 -8
- package/dist/bundle/{chunk-V3ZWYMXT.js → chunk-745FMNI5.js} +1 -1
- package/dist/bundle/{chunk-BKTLAXUK.js → chunk-7OVTUADG.js} +8 -8
- package/dist/bundle/{chunk-UOPP6ORQ.js → chunk-A4W7J6VN.js} +30 -20
- package/dist/bundle/{chunk-7SBAHYZW.js → chunk-ABMPZL2P.js} +13 -13
- package/dist/bundle/{chunk-R23DRW2T.js → chunk-AN6IJYH3.js} +5 -5
- package/dist/bundle/{chunk-GCUFGDKE.js → chunk-AP3CWDRK.js} +2 -2
- package/dist/bundle/{chunk-4EYPFFTN.js → chunk-ASU63X5C.js} +2 -2
- package/dist/bundle/{chunk-XI75EKLG.js → chunk-BCIZAUDV.js} +9 -9
- package/dist/bundle/{chunk-5POLHHDZ.js → chunk-CEBX63XY.js} +8 -8
- package/dist/bundle/{chunk-UZLT6VSP.js → chunk-CYHIM5SL.js} +3 -3
- package/dist/bundle/{chunk-H34RBRS3.js → chunk-DWA5TZMP.js} +8 -8
- package/dist/bundle/{chunk-D6UPCAPD.js → chunk-DWD3KDJA.js} +1 -1
- package/dist/bundle/{chunk-7USADF2W.js → chunk-E3EWS6DF.js} +6 -6
- package/dist/bundle/{chunk-EHULZEXQ.js → chunk-EAX5RO7S.js} +1 -1
- package/dist/bundle/{chunk-5DPMNYQT.js → chunk-EBNCUQLV.js} +1 -1
- package/dist/bundle/{chunk-MMOEAH5G.js → chunk-ELAKOEIO.js} +2 -2
- package/dist/bundle/{chunk-SJYVKR54.js → chunk-FEUNZG7U.js} +37 -37
- package/dist/bundle/{chunk-BYVDMPLX.js → chunk-FQRP6JWX.js} +2 -2
- package/dist/bundle/{chunk-MYMBPQPQ.js → chunk-G3LAYJJJ.js} +4 -4
- package/dist/bundle/{chunk-LYRICHEK.js → chunk-GBQ76X6T.js} +2 -2
- package/dist/bundle/{chunk-JZ2AITOE.js → chunk-GJBOZAUD.js} +3 -3
- package/dist/bundle/{chunk-5RXH35ZA.js → chunk-GMHRPX5M.js} +61 -61
- package/dist/bundle/{chunk-HQH4YPO5.js → chunk-GQKEMBM6.js} +67 -30
- package/dist/bundle/{chunk-ZIFEIJRK.js → chunk-HDZNSOV5.js} +7 -7
- package/dist/bundle/{chunk-T6D34X5S.js → chunk-HZZ56JO7.js} +1 -1
- package/dist/bundle/{chunk-ILUREFWJ.js → chunk-IBEHYGG6.js} +8 -8
- package/dist/bundle/{chunk-UT3ODJMI.js → chunk-IPNIF5JE.js} +4 -4
- package/dist/bundle/{chunk-KZDBO2FT.js → chunk-KBAOJISR.js} +7 -7
- package/dist/bundle/{chunk-B4ITT55D.js → chunk-KORZEYZN.js} +1 -1
- package/dist/bundle/{chunk-IEAPNTHT.js → chunk-KQZTX4LM.js} +17 -17
- package/dist/bundle/{chunk-XDT74W5P.js → chunk-KRD375P7.js} +27 -27
- package/dist/bundle/{chunk-ORFLQGWH.js → chunk-LAR2DLTI.js} +4 -4
- package/dist/bundle/{chunk-FPIUFSWK.js → chunk-LZ4IWN43.js} +387 -398
- package/dist/bundle/{chunk-77FP6AWC.js → chunk-M33XHJTM.js} +25 -25
- package/dist/bundle/{chunk-SBQ5MFHM.js → chunk-M54YKD3I.js} +7 -7
- package/dist/bundle/{chunk-VD7HD25M.js → chunk-MW7HUD6R.js} +9 -9
- package/dist/bundle/{chunk-7VSYOMEH.js → chunk-NFWD4QX3.js} +2 -2
- package/dist/bundle/{chunk-VPBSZ4HQ.js → chunk-NKYWQTS2.js} +160 -157
- package/dist/bundle/{chunk-GKP7CKW2.js → chunk-NXNUCGGO.js} +6 -6
- package/dist/bundle/{chunk-YSOGGUK3.js → chunk-O3WE5IGP.js} +6 -6
- package/dist/bundle/{chunk-7Z6NYSAN.js → chunk-OYMHPQF7.js} +4 -4
- package/dist/bundle/{chunk-UA7C57IB.js → chunk-PIOR6PIO.js} +2 -2
- package/dist/bundle/{chunk-W4KY5JF5.js → chunk-PL7TNKAY.js} +2 -2
- package/dist/bundle/{chunk-3NDMVXGS.js → chunk-PLU2IQXC.js} +3 -3
- package/dist/bundle/{chunk-WBWVBEHH.js → chunk-QGFURWEP.js} +1 -1
- package/dist/bundle/{chunk-FPDTIQOK.js → chunk-RQPB2BSH.js} +2 -2
- package/dist/bundle/{chunk-IYUWVMGP.js → chunk-S6DTLAOB.js} +12 -12
- package/dist/bundle/{chunk-ELJGALVX.js → chunk-SCMB4LI6.js} +19 -19
- package/dist/bundle/{chunk-OMH3WP7F.js → chunk-SFZVMKB6.js} +1 -1
- package/dist/bundle/{chunk-VEGNZPQU.js → chunk-SHOSFYI7.js} +18 -18
- package/dist/bundle/{chunk-UM6SDFB6.js → chunk-SMM7GS4Q.js} +1 -1
- package/dist/bundle/{chunk-MPXKBF37.js → chunk-SNBYFQHT.js} +1 -1
- package/dist/bundle/{chunk-2YEDK2XV.js → chunk-SZX7EPPY.js} +4 -4
- package/dist/bundle/{chunk-L2ZQDTDU.js → chunk-TCSVW7BA.js} +1 -1
- package/dist/bundle/{chunk-TCDER3G7.js → chunk-TEGQVVCZ.js} +828 -558
- package/dist/bundle/{chunk-VY27K2SH.js → chunk-TIR3AB35.js} +250 -238
- package/dist/bundle/{chunk-NJ2LJKNH.js → chunk-U46RNOEQ.js} +3 -3
- package/dist/bundle/{chunk-3RP57VDS.js → chunk-UCM7C773.js} +23 -8
- package/dist/bundle/{chunk-7E6QSIRQ.js → chunk-UEN5NWNW.js} +1 -1
- package/dist/bundle/{chunk-Q2YVY7IR.js → chunk-V2QWX6B3.js} +3 -3
- package/dist/bundle/{chunk-L72UALL5.js → chunk-V5SETIQK.js} +1 -1
- package/dist/bundle/{chunk-KEOKH2OZ.js → chunk-VEFAYLKX.js} +61 -61
- package/dist/bundle/{chunk-L3JDQNBC.js → chunk-VG26HDKH.js} +4 -4
- package/dist/bundle/{chunk-VJHOBOJR.js → chunk-VG2ERHFJ.js} +3 -3
- package/dist/bundle/{chunk-XM2G62YF.js → chunk-WAFB3IWJ.js} +5 -7
- package/dist/bundle/{chunk-VFU25P57.js → chunk-WASBOYI2.js} +4 -4
- package/dist/bundle/{chunk-IDQ7BNCZ.js → chunk-WEWJA42Q.js} +12 -12
- package/dist/bundle/{chunk-YVO2YGML.js → chunk-WR2FPZTE.js} +8 -8
- package/dist/bundle/{chunk-JTFAG3BX.js → chunk-XEYT2EQT.js} +6 -6
- package/dist/bundle/{chunk-QHA33ZS6.js → chunk-YFRTEJ6V.js} +7 -7
- package/dist/bundle/{chunk-LOSOWTAZ.js → chunk-YHVHDRED.js} +6 -6
- package/dist/bundle/{chunk-QQT7WUR4.js → chunk-YREKMP24.js} +4 -4
- package/dist/bundle/{chunk-CQ472K6W.js → chunk-Z2B3VNRI.js} +11 -11
- package/dist/bundle/{chunk-CUZISGWH.js → chunk-ZJC2XJQC.js} +13 -13
- package/dist/bundle/{chunk-KTLCQ7GC.js → chunk-ZKRWNL4T.js} +2 -2
- package/dist/bundle/{cli-GAO7LDDA.js → cli-QDPKC2HJ.js} +72 -72
- package/dist/bundle/command-contract-KWNCP3MQ.js +39 -0
- package/dist/bundle/{command-server-entry-BCDJP7XE.js → command-server-entry-TX7WNN7G.js} +28 -28
- package/dist/bundle/{decode-OY2GR442.js → decode-BLPC7OYE.js} +5 -5
- package/dist/bundle/{dispatch-JWEJCBTF.js → dispatch-5JUT55CS.js} +8 -8
- package/dist/bundle/{echarts-AHEPEA5P.js → echarts-54D3FOCL.js} +2 -2
- package/dist/bundle/{embed-RVSUV54Z.js → embed-O7KMDYM7.js} +6 -6
- package/dist/bundle/{embedder-GRZXZUXR.js → embedder-4PE67CLX.js} +9 -9
- package/dist/bundle/{failure-DDCSR54L.js → failure-NNQYTB3Z.js} +2 -2
- package/dist/bundle/{first-run-G3WI4DH4.js → first-run-EAU5SHBI.js} +12 -12
- package/dist/bundle/first-screen-APSNGZYZ.js +39 -0
- package/dist/bundle/{instructions-NWQC5IP4.js → instructions-ONXP5DZQ.js} +1 -1
- package/dist/bundle/{mcp-KGWT6TGO.js → mcp-ZNULRPZ4.js} +2 -2
- package/dist/bundle/meeting-combined-W2XIYXFU.js +24 -0
- package/dist/bundle/{meeting-model-I6T5HIZ5.js → meeting-model-FWIZRKVN.js} +11 -11
- package/dist/bundle/{meeting-semantic-47UA5JBF.js → meeting-semantic-M4YVJ57W.js} +6 -6
- package/dist/bundle/{node-7VXN7F4B.js → node-UTQCYQF5.js} +2 -2
- package/dist/bundle/{node-sqlite-BSEON57L.js → node-sqlite-APJG6MGL.js} +7 -7
- package/dist/bundle/{oauth-V6UAT4YD.js → oauth-TY7RMIBL.js} +7 -7
- package/dist/bundle/{open-7LVAY7ZU.js → open-WDVEQL75.js} +5 -5
- package/dist/bundle/{openai-OIEH342H.js → openai-H5UJHSEZ.js} +15 -15
- package/dist/bundle/{process-PTUCNLZ7.js → process-MGMXXPMY.js} +1 -1
- package/dist/bundle/{program-S5WY5IZP.js → program-IF36C6VR.js} +1096 -1042
- package/dist/bundle/{prompt-7XWTEQ62.js → prompt-4RLIWLMF.js} +5 -5
- package/dist/bundle/{recognize-HGIAJXDR.js → recognize-UIRTMWM4.js} +4 -4
- package/dist/bundle/{remote-X4SVEMHS.js → remote-L3MNWZQK.js} +9 -9
- package/dist/bundle/{rerank-QWM3DQMU.js → rerank-F4KZQTY6.js} +7 -7
- package/dist/bundle/{serve-VVG3TXYT.js → serve-37AUYTWS.js} +9 -9
- package/dist/bundle/server-CRF4QSZR.js +86 -0
- package/dist/bundle/{server-EHYK62BJ.js → server-UBG676ZJ.js} +61 -61
- package/dist/bundle/source-Z7GH7T4B.js +44 -0
- package/dist/bundle/{sqlite-runtime-MCKXDNYC.js → sqlite-runtime-CI3RW7VA.js} +6 -6
- package/dist/bundle/{state-MYNYQJCT.js → state-JOHLSLUO.js} +6 -6
- package/dist/bundle/{store-B7O3F3QB.js → store-2MBG4IUS.js} +22 -22
- package/dist/bundle/{store-FPIU2546.js → store-OSOUXBYL.js} +28 -24
- package/dist/bundle/store-SNW6U32Y.js +34 -0
- package/dist/bundle/store-maintenance-command-W7V54SLT.js +73 -0
- package/dist/bundle/surface-ESJS2FUI.js +72 -0
- package/dist/bundle/writer-BJDQMKUV.js +46 -0
- package/dist/commands/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +38 -77
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +2 -0
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +0 -6
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +9 -34
- package/dist/commands/session.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -2
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/agent-FDNP27SW.js +0 -40
- package/dist/bundle/command-contract-RLIBGIDT.js +0 -39
- package/dist/bundle/first-screen-6MLCMW2U.js +0 -39
- package/dist/bundle/meeting-combined-SVTFVZNJ.js +0 -24
- package/dist/bundle/server-WRPTBVNW.js +0 -86
- package/dist/bundle/source-YISMYLBQ.js +0 -44
- package/dist/bundle/store-A7R2SZVD.js +0 -34
- package/dist/bundle/store-maintenance-command-D55FRTIK.js +0 -73
- package/dist/bundle/surface-3EX6IGHW.js +0 -72
- package/dist/bundle/writer-XDHZ54JD.js +0 -46
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SMM7GS4Q.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SCMB4LI6.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GMHRPX5M.js";
|
|
6
6
|
import {
|
|
7
7
|
readSharedSection,
|
|
8
8
|
sharedConfigPath,
|
|
9
9
|
writeSharedSection
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YFRTEJ6V.js";
|
|
11
11
|
import {
|
|
12
12
|
storePath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZKRWNL4T.js";
|
|
14
14
|
import {
|
|
15
15
|
defineReasons,
|
|
16
16
|
isoTimestamp,
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
safeParse,
|
|
20
20
|
strictObject,
|
|
21
21
|
string
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7OVTUADG.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AP3CWDRK.js";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
|
|
31
31
|
var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
|
|
32
32
|
var SECTION = "chat_sending";
|
|
33
33
|
var Setting = strictObject({
|
|
@@ -56,7 +56,7 @@ var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
|
|
|
56
56
|
}, "chatSendingAllowed");
|
|
57
57
|
var chatSendingAskRefusal = /* @__PURE__ */ __name((what, command, details = {}) => new CliError("confirmation_required", `${what} \u2014 add --yes to send them (an agent may pass yes), or ask the owner to run \`${chatSendingCommand(command, "allowed")}\` so no yes is needed`, { ...details, reason: "chat-sending.ask" }), "chatSendingAskRefusal");
|
|
58
58
|
|
|
59
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
60
60
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
61
61
|
var QUERY = [
|
|
62
62
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -103,6 +103,14 @@ var SIGN_IN = [
|
|
|
103
103
|
validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
|
|
104
104
|
["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
|
|
105
105
|
["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
|
|
106
|
+
["account-remove.account-shared", "conflict", "another profile reads the same account, whose copy the store shares"],
|
|
107
|
+
["session.duplicate", "conflict", "another profile here already signs in to this account as this user"],
|
|
108
|
+
[
|
|
109
|
+
"account-remove.account-unknown",
|
|
110
|
+
"conflict",
|
|
111
|
+
"which account another profile holds could not be read, so --delete-data waits"
|
|
112
|
+
],
|
|
113
|
+
validation("profile.reserved", "the profile name is a folder every CRM account shares; pick another"),
|
|
106
114
|
["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
|
|
107
115
|
["account-remove.path-outside", "configuration_error", "the tool named a path outside its own folders"],
|
|
108
116
|
[
|
|
@@ -138,7 +146,8 @@ var PROVIDER_API = [
|
|
|
138
146
|
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
139
147
|
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
140
148
|
["file.denied", "permission_error", "the file cannot be opened: permission denied"],
|
|
141
|
-
validation("file.too-large", "the file is larger than the limit set for this read")
|
|
149
|
+
validation("file.too-large", "the file is larger than the limit set for this read"),
|
|
150
|
+
validation("file.not-plain-text", "the file's text is extracted on a read; writing it back would replace the file")
|
|
142
151
|
];
|
|
143
152
|
var SFTP = [
|
|
144
153
|
["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
|
|
@@ -254,6 +263,7 @@ var OTHERS = [
|
|
|
254
263
|
validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
|
|
255
264
|
validation("document.changed", "the document changed while it was read; nothing was saved"),
|
|
256
265
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
266
|
+
["document.version-missing", "not_found", "the local copy holds no such version of the document"],
|
|
257
267
|
["document.not-found", "not_found", "no listed document has that reference"],
|
|
258
268
|
["state.unreadable", "configuration_error", "a sync state file cannot be read; move it away and sync again"],
|
|
259
269
|
["profile.busy", "provider_unavailable", "another sync or write holds this profile's local copy"],
|
|
@@ -307,6 +317,8 @@ var OTHERS = [
|
|
|
307
317
|
"the earlier content could not be kept in the version store, so the sync did not replace it"
|
|
308
318
|
],
|
|
309
319
|
["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
|
|
320
|
+
["mirror.local-changed", "conflict", "the local file changed since the conflict was found; nothing was written"],
|
|
321
|
+
["mirror.no-conflict", "not_found", "the path has no recorded conflict; the last sync settled it or never saw one"],
|
|
310
322
|
["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
|
|
311
323
|
["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
|
|
312
324
|
["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
|
|
@@ -675,6 +687,8 @@ var OTHERS = [
|
|
|
675
687
|
validation("identity.agent-unnamed", "an agent's link names the agent, and never as the owner"),
|
|
676
688
|
validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
|
|
677
689
|
["organization.not-found", "not_found", "no stored organization has that id"],
|
|
690
|
+
validation("organization.own", "the organization is one of your own companies and is never deleted"),
|
|
691
|
+
validation("organization.erase-blocked", "an invoice, order, subscription or a row the organization wrote still names it; change those first, nothing was deleted"),
|
|
678
692
|
validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
|
|
679
693
|
validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
|
|
680
694
|
validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
|
|
@@ -807,6 +821,7 @@ var REASONS = defineReasons([
|
|
|
807
821
|
}))
|
|
808
822
|
]);
|
|
809
823
|
var DETAILS = [
|
|
824
|
+
"account",
|
|
810
825
|
"holders",
|
|
811
826
|
"profile",
|
|
812
827
|
"contracts",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
|
|
8
8
|
var fields = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
var readsStdin = /* @__PURE__ */ __name((command, field) => {
|
|
10
10
|
fields.set(command, field);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M33XHJTM.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
strictObject,
|
|
17
17
|
string,
|
|
18
18
|
unknown
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7OVTUADG.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -535,7 +535,7 @@ function toError(value) {
|
|
|
535
535
|
}
|
|
536
536
|
__name(toError, "toError");
|
|
537
537
|
|
|
538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
539
539
|
import { PassThrough, Writable } from "node:stream";
|
|
540
540
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
541
541
|
let rest = "";
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A4W7J6VN.js";
|
|
7
7
|
import {
|
|
8
8
|
chatEventAnswer,
|
|
9
9
|
memberAnswer,
|
|
10
10
|
pollVoteAnswer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WR2FPZTE.js";
|
|
12
12
|
import {
|
|
13
13
|
serveRelay
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XEYT2EQT.js";
|
|
15
15
|
import {
|
|
16
16
|
FETCHING,
|
|
17
17
|
RULES_VERSION,
|
|
@@ -27,18 +27,18 @@ import {
|
|
|
27
27
|
servicesFor,
|
|
28
28
|
syncsOneChat,
|
|
29
29
|
withTimeLimit
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-TIR3AB35.js";
|
|
31
31
|
import {
|
|
32
32
|
newSendId
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2AIG2SSJ.js";
|
|
34
34
|
import {
|
|
35
35
|
capability
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4PQECIU2.js";
|
|
37
37
|
import {
|
|
38
38
|
queryTerms,
|
|
39
39
|
typedQuery,
|
|
40
40
|
withQuery
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ABMPZL2P.js";
|
|
42
42
|
import {
|
|
43
43
|
holdLock,
|
|
44
44
|
lockPath,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
releaseLock,
|
|
47
47
|
servingProfiles,
|
|
48
48
|
takeLock
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-U46RNOEQ.js";
|
|
50
50
|
import {
|
|
51
51
|
Command,
|
|
52
52
|
LOCAL_READ,
|
|
@@ -73,10 +73,10 @@ import {
|
|
|
73
73
|
snakeKeys,
|
|
74
74
|
storeTable,
|
|
75
75
|
withoutProviderRefs
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-NKYWQTS2.js";
|
|
77
77
|
import {
|
|
78
78
|
holdersOf
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-SMM7GS4Q.js";
|
|
80
80
|
import {
|
|
81
81
|
QUICK_HEALTH_CHECKS,
|
|
82
82
|
fts5Tables,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
lossUnknown,
|
|
85
85
|
storeDamageReport,
|
|
86
86
|
storeHealth
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-KQZTX4LM.js";
|
|
88
88
|
import {
|
|
89
89
|
CORPORA,
|
|
90
90
|
MIGRATIONS,
|
|
@@ -122,55 +122,55 @@ import {
|
|
|
122
122
|
storeClients,
|
|
123
123
|
storeContents,
|
|
124
124
|
vectorIndexCounts
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-TEGQVVCZ.js";
|
|
126
126
|
import {
|
|
127
127
|
currentRun,
|
|
128
128
|
readDamageMark,
|
|
129
129
|
readHealthMark,
|
|
130
130
|
readJournalMark,
|
|
131
131
|
recordDeepCheck
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-M33XHJTM.js";
|
|
133
133
|
import {
|
|
134
134
|
failureKey,
|
|
135
135
|
isStoreDamage
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-ELAKOEIO.js";
|
|
137
137
|
import {
|
|
138
138
|
modelAddressAllowed,
|
|
139
139
|
onThisComputer
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-E3EWS6DF.js";
|
|
141
141
|
import {
|
|
142
142
|
renderMessages
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-PIOR6PIO.js";
|
|
144
144
|
import {
|
|
145
145
|
levelFor
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-KBAOJISR.js";
|
|
147
147
|
import {
|
|
148
148
|
formatLocator,
|
|
149
149
|
parseLocator
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-S6DTLAOB.js";
|
|
151
151
|
import {
|
|
152
152
|
queryFieldsOf
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-GMHRPX5M.js";
|
|
154
154
|
import {
|
|
155
155
|
readSharedSection,
|
|
156
156
|
sharedConfigPath,
|
|
157
157
|
writeSharedSection
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-YFRTEJ6V.js";
|
|
159
159
|
import {
|
|
160
160
|
readSecret
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-VG2ERHFJ.js";
|
|
162
162
|
import {
|
|
163
163
|
storePath
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-ZKRWNL4T.js";
|
|
165
165
|
import {
|
|
166
166
|
openCache
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-NXNUCGGO.js";
|
|
168
168
|
import {
|
|
169
169
|
Credentials,
|
|
170
170
|
isMovedRun,
|
|
171
171
|
resolvePaths,
|
|
172
172
|
writeSecurely
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-SCMB4LI6.js";
|
|
174
174
|
import {
|
|
175
175
|
array,
|
|
176
176
|
boolean,
|
|
@@ -192,10 +192,10 @@ import {
|
|
|
192
192
|
string,
|
|
193
193
|
transform,
|
|
194
194
|
trim
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-7OVTUADG.js";
|
|
196
196
|
import {
|
|
197
197
|
CliError
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-AP3CWDRK.js";
|
|
199
199
|
import {
|
|
200
200
|
__commonJS,
|
|
201
201
|
__name,
|
|
@@ -5535,11 +5535,11 @@ var require_liquid_node = __commonJS({
|
|
|
5535
5535
|
}
|
|
5536
5536
|
});
|
|
5537
5537
|
|
|
5538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5539
5539
|
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";
|
|
5540
5540
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5541
5541
|
|
|
5542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5543
5543
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5544
5544
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5545
5545
|
import { Transform } from "node:stream";
|
|
@@ -5646,7 +5646,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5646
5646
|
renameSync(pending, to);
|
|
5647
5647
|
}, "unsealFile");
|
|
5648
5648
|
|
|
5649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5650
5650
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5651
5651
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5652
5652
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5670,7 +5670,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5670
5670
|
};
|
|
5671
5671
|
}, "compatibilityOf");
|
|
5672
5672
|
|
|
5673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5674
5674
|
import { createHash as createHash2 } from "node:crypto";
|
|
5675
5675
|
var COPY_MARK = "__repair_";
|
|
5676
5676
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5924,19 +5924,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5924
5924
|
return found;
|
|
5925
5925
|
}, "deleteCopy");
|
|
5926
5926
|
|
|
5927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5928
5928
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5929
5929
|
|
|
5930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5931
5931
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5932
5932
|
|
|
5933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5934
5934
|
import { execFileSync, spawn } from "node:child_process";
|
|
5935
5935
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5936
5936
|
import { basename, dirname, join } from "node:path";
|
|
5937
5937
|
import { Transform as Transform2 } from "node:stream";
|
|
5938
5938
|
|
|
5939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5940
5940
|
var REFILL_MARGIN_MS = 864e5;
|
|
5941
5941
|
var TIME_KEYS = 1e12;
|
|
5942
5942
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6016,7 +6016,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6016
6016
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6017
6017
|
}, "forgetMail");
|
|
6018
6018
|
|
|
6019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6020
6020
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6021
6021
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6022
6022
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6547,7 +6547,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6547
6547
|
}
|
|
6548
6548
|
}, "recoverLocked");
|
|
6549
6549
|
|
|
6550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6551
6551
|
var COUNTED = [
|
|
6552
6552
|
"accounts",
|
|
6553
6553
|
"chats",
|
|
@@ -6703,7 +6703,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6703
6703
|
return recover;
|
|
6704
6704
|
}, "storeRecoverCommand");
|
|
6705
6705
|
|
|
6706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6707
6707
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6708
6708
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6709
6709
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6753,7 +6753,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
|
|
|
6753
6753
|
return app ? store.addCommand(storeRecoverCommand(app)) : store;
|
|
6754
6754
|
}, "sharedStoreCommand");
|
|
6755
6755
|
|
|
6756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6757
6757
|
var ENCRYPT_OPTION = [
|
|
6758
6758
|
"--encrypt",
|
|
6759
6759
|
"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"
|
|
@@ -6772,7 +6772,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6772
6772
|
return password;
|
|
6773
6773
|
}, "passwordOf");
|
|
6774
6774
|
|
|
6775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6776
6776
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6777
6777
|
import { join as join2 } from "node:path";
|
|
6778
6778
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6943,7 +6943,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6943
6943
|
}, "problem");
|
|
6944
6944
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6945
6945
|
|
|
6946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6947
6947
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6948
6948
|
import { join as join3 } from "node:path";
|
|
6949
6949
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6996,7 +6996,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6996
6996
|
}, "recordReply");
|
|
6997
6997
|
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");
|
|
6998
6998
|
|
|
6999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
7000
7000
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
7001
7001
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
7002
7002
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7102,10 +7102,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7102
7102
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7103
7103
|
}, "filled");
|
|
7104
7104
|
|
|
7105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7106
7106
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7107
7107
|
|
|
7108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7109
7109
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7110
7110
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7111
7111
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7132,7 +7132,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7132
7132
|
return engine;
|
|
7133
7133
|
}, "safeLiquid");
|
|
7134
7134
|
|
|
7135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7136
7136
|
var TEMPLATE_LIMITS = {
|
|
7137
7137
|
parse: 32768,
|
|
7138
7138
|
renders: 2e3,
|
|
@@ -7271,7 +7271,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7271
7271
|
}
|
|
7272
7272
|
}, "renderReplyTemplate");
|
|
7273
7273
|
|
|
7274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7275
7275
|
var DRY_RUN_DAYS = 7;
|
|
7276
7276
|
var PAGE = 500;
|
|
7277
7277
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7385,7 +7385,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7385
7385
|
}
|
|
7386
7386
|
}, "storedSince");
|
|
7387
7387
|
|
|
7388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7389
7389
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7390
7390
|
var DEFAULT_BASE_URL = {
|
|
7391
7391
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7553,7 +7553,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7553
7553
|
}
|
|
7554
7554
|
}, "checkAi");
|
|
7555
7555
|
|
|
7556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7557
7557
|
var HOSTED = {
|
|
7558
7558
|
openai: "https://api.openai.com/v1",
|
|
7559
7559
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7574,7 +7574,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7574
7574
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7575
7575
|
}, "purposeModel");
|
|
7576
7576
|
|
|
7577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7578
7578
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7579
7579
|
import { join as join4 } from "node:path";
|
|
7580
7580
|
var shape = strictObject({
|
|
@@ -7599,7 +7599,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7599
7599
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7600
7600
|
}, "mayModelReply");
|
|
7601
7601
|
|
|
7602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7603
7603
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7604
7604
|
ai: true
|
|
7605
7605
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7647,7 +7647,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7647
7647
|
return result2;
|
|
7648
7648
|
}, "replyRenderer");
|
|
7649
7649
|
|
|
7650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7651
7651
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7652
7652
|
var NO_RULES = "no rules";
|
|
7653
7653
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7740,7 +7740,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7740
7740
|
return { skip: why };
|
|
7741
7741
|
}, "replyTo");
|
|
7742
7742
|
|
|
7743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7744
7744
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7745
7745
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7746
7746
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7817,7 +7817,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7817
7817
|
};
|
|
7818
7818
|
}, "startSync");
|
|
7819
7819
|
|
|
7820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7821
7821
|
var FIRST_FETCH_MS = 6e4;
|
|
7822
7822
|
var DAY_MS = 864e5;
|
|
7823
7823
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7871,7 +7871,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7871
7871
|
};
|
|
7872
7872
|
}, "memberFetches");
|
|
7873
7873
|
|
|
7874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7875
7875
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7876
7876
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7877
7877
|
if (context.format === "pretty") {
|
|
@@ -7904,7 +7904,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7904
7904
|
return context;
|
|
7905
7905
|
}, "recordDiagnostics");
|
|
7906
7906
|
|
|
7907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7908
7908
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7909
7909
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7910
7910
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7990,7 +7990,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7990
7990
|
};
|
|
7991
7991
|
}, "watchOutdated");
|
|
7992
7992
|
|
|
7993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7994
7994
|
var STEMS_EVERY_MS = 3e4;
|
|
7995
7995
|
var STEMS_SLICE_MS = 2e3;
|
|
7996
7996
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -8030,7 +8030,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
8030
8030
|
};
|
|
8031
8031
|
}, "stemFills");
|
|
8032
8032
|
|
|
8033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8034
8034
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8035
8035
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8036
8036
|
kind: attachment.kind,
|
|
@@ -8126,7 +8126,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8126
8126
|
locale: messenger.app.locale
|
|
8127
8127
|
}), "viewOf");
|
|
8128
8128
|
|
|
8129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8130
8130
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8131
8131
|
value: value.value,
|
|
8132
8132
|
observed_at: value.observedAt,
|
|
@@ -8193,7 +8193,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8193
8193
|
}
|
|
8194
8194
|
}, "watchEventItem");
|
|
8195
8195
|
|
|
8196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8197
8197
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8198
8198
|
output: { entity: "watch_item" },
|
|
8199
8199
|
effects: REMOTE_READ,
|
|
@@ -8348,7 +8348,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8348
8348
|
}
|
|
8349
8349
|
}, "describe");
|
|
8350
8350
|
|
|
8351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8352
8352
|
var CURRENT_EVERY_MS = 6e4;
|
|
8353
8353
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8354
8354
|
const command = annotate(new Command("serve"), {
|
|
@@ -8648,7 +8648,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8648
8648
|
};
|
|
8649
8649
|
}, "tasking");
|
|
8650
8650
|
|
|
8651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8652
8652
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8653
8653
|
var PATH = "store tables list";
|
|
8654
8654
|
var STORE_TABLES_QUERY = {
|
|
@@ -8691,7 +8691,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8691
8691
|
return tables;
|
|
8692
8692
|
}, "storeTablesCommand");
|
|
8693
8693
|
|
|
8694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8695
8695
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8696
8696
|
var WORD_INDEX = "message_words";
|
|
8697
8697
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|