@wirecat/mail-cli 0.15.0 → 0.16.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 +11 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-PKXL5TKP.js → all-profiles-TUDREUUW.js} +6 -6
- package/dist/bundle/{anthropic-DFDNZU7C.js → anthropic-KQOVSP6C.js} +3 -3
- package/dist/bundle/{app-server-WOZAOCKX.js → app-server-QK7PKVT7.js} +40 -40
- package/dist/bundle/{bun-DKZAL6ML.js → bun-2NMWL5YB.js} +2 -2
- package/dist/bundle/{bun-sqlite-2A7FS5GD.js → bun-sqlite-Y4FP6SDX.js} +2 -2
- package/dist/bundle/{chunk-WIU733D2.js → chunk-3CVDHJER.js} +1 -1
- package/dist/bundle/{chunk-QJQV6KG2.js → chunk-3ZJE5TIG.js} +1 -1
- package/dist/bundle/{chunk-FEWWBU2I.js → chunk-4IEDXIUN.js} +208 -210
- package/dist/bundle/{chunk-WTDYN3TQ.js → chunk-4IIH5PXR.js} +26 -26
- package/dist/bundle/{chunk-YWIU4HOT.js → chunk-5FPQGUJA.js} +1 -1
- package/dist/bundle/{chunk-U3VX3UUC.js → chunk-6DVPPLAN.js} +3 -3
- package/dist/bundle/{chunk-IA6U76ZY.js → chunk-7LMTWOTP.js} +1 -1
- package/dist/bundle/{chunk-YRHXVXLQ.js → chunk-ANFIIXBL.js} +1 -1
- package/dist/bundle/{chunk-QSGT4ZH4.js → chunk-ARDUJR5Z.js} +1 -1
- package/dist/bundle/{chunk-BKF7XIJ5.js → chunk-B2NDDA2W.js} +8 -8
- package/dist/bundle/{chunk-BIKMEGC7.js → chunk-CGH6UH3T.js} +7 -7
- package/dist/bundle/{chunk-4HVY3QPF.js → chunk-CRYWPLJP.js} +1 -1
- package/dist/bundle/{chunk-LRBAQSU3.js → chunk-CT2MIWXY.js} +2 -2
- package/dist/bundle/{chunk-JQTIB4WJ.js → chunk-DDQXDX4U.js} +4 -4
- package/dist/bundle/{chunk-NNLYS4IR.js → chunk-DKIAHQRN.js} +7 -7
- package/dist/bundle/{chunk-XKUAEYJV.js → chunk-EBEYU7RW.js} +9 -9
- package/dist/bundle/{chunk-6AYJDBHT.js → chunk-EZIJPXDZ.js} +5 -5
- package/dist/bundle/{chunk-NDZK466U.js → chunk-FHY664YS.js} +3 -3
- package/dist/bundle/{chunk-4YECCESG.js → chunk-FROWEHK7.js} +2 -2
- package/dist/bundle/{chunk-73SQQXSU.js → chunk-GAYW2JRW.js} +7 -7
- package/dist/bundle/{chunk-KJYCA6IC.js → chunk-GIKNAOER.js} +3 -3
- package/dist/bundle/{chunk-M5DF6QNT.js → chunk-HN3EDDVX.js} +12 -12
- package/dist/bundle/{chunk-RFDP45QO.js → chunk-HVAXTTOT.js} +2 -2
- package/dist/bundle/{chunk-M5VHTDJZ.js → chunk-I3K6JG4I.js} +16 -16
- package/dist/bundle/{chunk-SPQY3PJX.js → chunk-IJYYD2JU.js} +296 -169
- package/dist/bundle/{chunk-K4N5UG64.js → chunk-K2OQCQ2N.js} +4 -4
- package/dist/bundle/{chunk-3MKCLPQV.js → chunk-KJV3BI7S.js} +9 -9
- package/dist/bundle/{chunk-HGOYQUT7.js → chunk-KMZRXGTF.js} +1 -1
- package/dist/bundle/{chunk-XGNC5OJG.js → chunk-LMN7SYX4.js} +1 -1
- package/dist/bundle/{chunk-6Z7VBDFR.js → chunk-M24BGP7M.js} +1 -1
- package/dist/bundle/{chunk-5W7D5H2R.js → chunk-M6O4DH5F.js} +1 -1
- package/dist/bundle/{chunk-R6UG66IM.js → chunk-MLWN27HF.js} +214 -214
- package/dist/bundle/{chunk-P4SV3VKP.js → chunk-N7DLDEFU.js} +2 -2
- package/dist/bundle/{chunk-LARQTWIL.js → chunk-OYB3FUYQ.js} +1 -1
- package/dist/bundle/{chunk-RBNL3DBQ.js → chunk-POS35G6D.js} +1 -1
- package/dist/bundle/{chunk-PI5P457W.js → chunk-PWTEWT4M.js} +4 -4
- package/dist/bundle/{chunk-BY5S3JEZ.js → chunk-PYX6K527.js} +44 -44
- package/dist/bundle/{chunk-2BHY4GFP.js → chunk-Q4T2HBZP.js} +2 -2
- package/dist/bundle/{chunk-QTD3BVS5.js → chunk-R6SBRHVG.js} +5 -5
- package/dist/bundle/{chunk-OJEIUOMW.js → chunk-RPEW7E3S.js} +10 -10
- package/dist/bundle/{chunk-OZVGHHFZ.js → chunk-TTOKDZQX.js} +1 -1
- package/dist/bundle/{chunk-4TPNRJER.js → chunk-UBLFUQ7O.js} +6 -6
- package/dist/bundle/{chunk-4XRIALMN.js → chunk-VD6GZ3W2.js} +1 -1
- package/dist/bundle/{chunk-VQQFOA4O.js → chunk-VP5FL5JQ.js} +6 -6
- package/dist/bundle/{chunk-PXLVTHMH.js → chunk-VTJ5TMGN.js} +2 -2
- package/dist/bundle/{chunk-5C3L2QER.js → chunk-WKHHCCJE.js} +21 -21
- package/dist/bundle/{chunk-2A4Z3WOC.js → chunk-X7EBOXBY.js} +278 -274
- package/dist/bundle/{chunk-SRHKHE4C.js → chunk-XAANQN4R.js} +13 -13
- package/dist/bundle/{chunk-ENZTLYTS.js → chunk-XEIGKPYU.js} +6 -3
- package/dist/bundle/{chunk-4DGOI6JB.js → chunk-YGJO5VNR.js} +22 -22
- package/dist/bundle/{chunk-A6O3WHBD.js → chunk-ZNW4E3SG.js} +2 -2
- package/dist/bundle/{chunk-WOV3ABQR.js → chunk-ZS6YKNYS.js} +3 -3
- package/dist/bundle/{command-contract-4E4NYRR7.js → command-contract-GVNLRXWS.js} +13 -13
- package/dist/bundle/{decode-LX4FPSI7.js → decode-WCS4KOHV.js} +2 -2
- package/dist/bundle/{dist-HQIZDYNQ.js → dist-FL422DTA.js} +10 -10
- package/dist/bundle/{echarts-BGBPRGR5.js → echarts-45D6USAX.js} +2 -2
- package/dist/bundle/{embed-ASAE3H5I.js → embed-4B4ATLCN.js} +3 -3
- package/dist/bundle/{embedder-QYDZRKBX.js → embedder-ASWGJXNV.js} +6 -6
- package/dist/bundle/{first-run-EFNNGFCB.js → first-run-5K3UD4BU.js} +5 -5
- package/dist/bundle/{first-screen-XHM3TT6G.js → first-screen-NNX54MYC.js} +14 -14
- package/dist/bundle/{instructions-6LPDSKAD.js → instructions-6EFSPC7C.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-IB246NCQ.js → node-OXC26QXO.js} +2 -2
- package/dist/bundle/{node-sqlite-UROXM4VR.js → node-sqlite-PXHZAG7Y.js} +3 -3
- package/dist/bundle/{oauth-VSCKHS4T.js → oauth-YK2QLC7U.js} +4 -4
- package/dist/bundle/{open-R4LVB63T.js → open-SABDXZ4B.js} +2 -2
- package/dist/bundle/{openai-MKCEOFKL.js → openai-DPURPXEU.js} +10 -10
- package/dist/bundle/{process-SWPJGPQC.js → process-YWPAOI6G.js} +1 -1
- package/dist/bundle/{program-CJ2YDRUY.js → program-L43S7DRF.js} +1351 -1223
- package/dist/bundle/{prompt-TWWJ5VAM.js → prompt-GKVNFGFE.js} +2 -2
- package/dist/bundle/{recognize-XMO5ETQU.js → recognize-344YDSLX.js} +1 -1
- package/dist/bundle/{remote-N6VAWJWE.js → remote-53UZUJJU.js} +4 -4
- package/dist/bundle/{rerank-XNAMC6FH.js → rerank-PAIRND6R.js} +4 -4
- package/dist/bundle/{serve-IJ32WEBH.js → serve-DZSO7LJK.js} +6 -6
- package/dist/bundle/{server-KEYSE5OL.js → server-EGG3V67I.js} +32 -32
- package/dist/bundle/server-SGGMRV2K.js +64 -0
- package/dist/bundle/{sqlite-runtime-NFBRN7OF.js → sqlite-runtime-ZQ6F3VYZ.js} +3 -3
- package/dist/bundle/{state-7WPJEW2Z.js → state-LXPOWLZ5.js} +3 -3
- package/dist/bundle/{store-PKQCNACC.js → store-4ZMSK5R5.js} +11 -11
- package/dist/bundle/{store-KHVHOGQR.js → store-PHT75I6S.js} +13 -13
- package/dist/bundle/store-maintenance-command-C6ONZNRX.js +54 -0
- package/dist/commands/context.d.ts +1 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/config.d.ts +3 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -1
- package/dist/config.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-CRVR4L2E.js +0 -64
- package/dist/bundle/store-maintenance-command-5MODJN6R.js +0 -54
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DDQXDX4U.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -24,17 +24,17 @@ import {
|
|
|
24
24
|
providerErrorKey,
|
|
25
25
|
renderEvent,
|
|
26
26
|
runContextOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DKIAHQRN.js";
|
|
28
28
|
import {
|
|
29
29
|
permissionCeiling
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZNW4E3SG.js";
|
|
31
31
|
import {
|
|
32
32
|
carries
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3CVDHJER.js";
|
|
34
34
|
import {
|
|
35
35
|
filesPresent,
|
|
36
36
|
sharedModelsDirectory
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ZS6YKNYS.js";
|
|
38
38
|
import {
|
|
39
39
|
author,
|
|
40
40
|
count,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
text,
|
|
49
49
|
time,
|
|
50
50
|
untrusted
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-GIKNAOER.js";
|
|
52
52
|
import {
|
|
53
53
|
FACT_STATUSES,
|
|
54
54
|
LINK_KINDS,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
TASK_TYPES,
|
|
65
65
|
TASK_VERDICTS,
|
|
66
66
|
WORK_TASK_TYPES
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-UBLFUQ7O.js";
|
|
68
68
|
import {
|
|
69
69
|
FACT_TYPES,
|
|
70
70
|
FIELD_TYPES,
|
|
@@ -86,13 +86,13 @@ import {
|
|
|
86
86
|
meetingStats,
|
|
87
87
|
meetingSummary,
|
|
88
88
|
meetingTranscript
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-4IEDXIUN.js";
|
|
90
90
|
import {
|
|
91
91
|
sharedConfigPath
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-K2OQCQ2N.js";
|
|
93
93
|
import {
|
|
94
94
|
storePath
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-TTOKDZQX.js";
|
|
96
96
|
import {
|
|
97
97
|
configFilePath,
|
|
98
98
|
createRecordLog,
|
|
@@ -164,13 +164,14 @@ import {
|
|
|
164
164
|
__name
|
|
165
165
|
} from "./chunk-ZVVMGPBJ.js";
|
|
166
166
|
|
|
167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
168
168
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
169
169
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
170
170
|
const name = envName(app, "READ_ONLY");
|
|
171
171
|
const value = env[name];
|
|
172
172
|
return value === void 0 || value.trim() === "" || value === "0" ? void 0 : name;
|
|
173
173
|
}, "readOnlyLockOf");
|
|
174
|
+
var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLDER"), "mailHolderVariable");
|
|
174
175
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
175
176
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
176
177
|
|
|
@@ -3876,7 +3877,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3876
3877
|
}
|
|
3877
3878
|
}, "refuseJoinedPath");
|
|
3878
3879
|
|
|
3879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3880
3881
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3881
3882
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3882
3883
|
messageId: message2.id,
|
|
@@ -3982,7 +3983,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
3982
3983
|
}, "guardedWrite");
|
|
3983
3984
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
3984
3985
|
|
|
3985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
3986
3987
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
3987
3988
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
3988
3989
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4165,7 +4166,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4165
4166
|
}
|
|
4166
4167
|
}, "withAbort");
|
|
4167
4168
|
|
|
4168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4169
4170
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4170
4171
|
import { join } from "node:path";
|
|
4171
4172
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4187,7 +4188,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4187
4188
|
}, "profilesWithAccounts");
|
|
4188
4189
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4189
4190
|
|
|
4190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4191
4192
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4192
4193
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4193
4194
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -4230,7 +4231,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
4230
4231
|
};
|
|
4231
4232
|
}, "runBudget");
|
|
4232
4233
|
|
|
4233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4234
4235
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4235
4236
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4236
4237
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4264,7 +4265,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4264
4265
|
cache: "cache.answered"
|
|
4265
4266
|
};
|
|
4266
4267
|
|
|
4267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4268
4269
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4269
4270
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4270
4271
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4277,13 +4278,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4277
4278
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4278
4279
|
}), "snakeLogger");
|
|
4279
4280
|
|
|
4280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4281
4282
|
import { randomUUID } from "node:crypto";
|
|
4282
4283
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4283
4284
|
import { userInfo } from "node:os";
|
|
4284
4285
|
import { join as join2, sep } from "node:path";
|
|
4285
4286
|
|
|
4286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4287
4288
|
var diagnostic = {
|
|
4288
4289
|
event: true,
|
|
4289
4290
|
operation: true,
|
|
@@ -4353,7 +4354,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4353
4354
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4354
4355
|
].sort();
|
|
4355
4356
|
|
|
4356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4357
4358
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4358
4359
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4359
4360
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -4706,7 +4707,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
4706
4707
|
};
|
|
4707
4708
|
}, "metadataOf");
|
|
4708
4709
|
|
|
4709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
4710
4711
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
4711
4712
|
import { randomBytes } from "node:crypto";
|
|
4712
4713
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -4744,7 +4745,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
4744
4745
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
4745
4746
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
4746
4747
|
|
|
4747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4748
4749
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4749
4750
|
const recording = startRecording(options);
|
|
4750
4751
|
try {
|
|
@@ -4929,7 +4930,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4929
4930
|
return void 0;
|
|
4930
4931
|
}, "partialOutcome");
|
|
4931
4932
|
|
|
4932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4933
4934
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
4934
4935
|
if (ms2 === void 0)
|
|
4935
4936
|
return body();
|
|
@@ -4955,7 +4956,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
4955
4956
|
}
|
|
4956
4957
|
}, "withDeadline");
|
|
4957
4958
|
|
|
4958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4959
4960
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4960
4961
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4961
4962
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5024,10 +5025,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5024
5025
|
return void 0;
|
|
5025
5026
|
}, "sampleCommand");
|
|
5026
5027
|
|
|
5027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5028
|
-
import { existsSync as
|
|
5028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5029
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
5029
5030
|
|
|
5030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5031
5032
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5032
5033
|
try {
|
|
5033
5034
|
const url2 = new URL(value);
|
|
@@ -5037,7 +5038,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5037
5038
|
}
|
|
5038
5039
|
}, "endpoint");
|
|
5039
5040
|
|
|
5040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5041
5042
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5042
5043
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5043
5044
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5106,7 +5107,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5106
5107
|
};
|
|
5107
5108
|
}, "modelTarget");
|
|
5108
5109
|
|
|
5109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5110
5111
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5111
5112
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5112
5113
|
var AI_FIELDS = {
|
|
@@ -5150,7 +5151,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5150
5151
|
};
|
|
5151
5152
|
}, "resolveAISettings");
|
|
5152
5153
|
|
|
5153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5154
5155
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5155
5156
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5156
5157
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5164,7 +5165,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5164
5165
|
return ms2;
|
|
5165
5166
|
}, "parseDuration");
|
|
5166
5167
|
|
|
5167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5168
5169
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5169
5170
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5170
5171
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5323,7 +5324,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5323
5324
|
var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
|
|
5324
5325
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5325
5326
|
|
|
5326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5327
5328
|
var HISTORY_MAX_DAYS = 1095;
|
|
5328
5329
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5329
5330
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -5370,10 +5371,99 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5370
5371
|
return { batch: { ...batch, messages }, skipped };
|
|
5371
5372
|
}, "limitBatch");
|
|
5372
5373
|
|
|
5373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5374
|
-
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
5375
|
+
import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
5376
|
+
import { join as join3 } from "node:path";
|
|
5377
|
+
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
5378
|
+
var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
|
|
5379
|
+
const directory = botsDirectory(app, env);
|
|
5380
|
+
return {
|
|
5381
|
+
registry: join3(directory, `${profile}.json`),
|
|
5382
|
+
recipients: join3(directory, "recipients", `${profile}.json`),
|
|
5383
|
+
journal: join3(directory, "sends", `${profile}.jsonl`),
|
|
5384
|
+
updates: join3(directory, "updates", `${profile}.json`),
|
|
5385
|
+
presses: join3(directory, "presses", `${profile}.json`),
|
|
5386
|
+
checks: join3(directory, "checks", `${profile}.json`)
|
|
5387
|
+
};
|
|
5388
|
+
}, "botFiles");
|
|
5389
|
+
var ChatRegistry = class {
|
|
5390
|
+
static {
|
|
5391
|
+
__name(this, "ChatRegistry");
|
|
5392
|
+
}
|
|
5393
|
+
#path;
|
|
5394
|
+
constructor(app, profile, env = process.env) {
|
|
5395
|
+
this.#path = botFiles(app, profile, env).registry;
|
|
5396
|
+
}
|
|
5397
|
+
list(filter = {}) {
|
|
5398
|
+
const { chats } = this.#read();
|
|
5399
|
+
return (Array.isArray(chats) ? chats : []).filter((chat2) => (filter.id === void 0 || chat2.id === filter.id) && (filter.kind === void 0 || chat2.kind === filter.kind) && (filter.title === void 0 || chat2.title?.toLocaleLowerCase() === filter.title?.toLocaleLowerCase()));
|
|
5400
|
+
}
|
|
5401
|
+
/** The bot's own user id, once any command has learned it — the key its messages are stored under. */
|
|
5402
|
+
botId() {
|
|
5403
|
+
const { botId } = this.#read();
|
|
5404
|
+
return typeof botId === "string" ? botId : void 0;
|
|
5405
|
+
}
|
|
5406
|
+
rememberBot(id6) {
|
|
5407
|
+
const file = this.#read();
|
|
5408
|
+
if (file.botId !== id6)
|
|
5409
|
+
this.#write({ ...file, botId: id6 });
|
|
5410
|
+
}
|
|
5411
|
+
/** Makes this bot known to `bot list` before it has seen any chat. */
|
|
5412
|
+
touch() {
|
|
5413
|
+
if (!existsSync2(this.#path))
|
|
5414
|
+
writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
|
|
5415
|
+
`, 384);
|
|
5416
|
+
}
|
|
5417
|
+
/** Newer facts win; a chat seen only as an id keeps the title it had. */
|
|
5418
|
+
observe(chats, now = /* @__PURE__ */ new Date()) {
|
|
5419
|
+
if (chats.length === 0)
|
|
5420
|
+
return;
|
|
5421
|
+
const byId = new Map(this.list().map((chat2) => [chat2.id, chat2]));
|
|
5422
|
+
const at2 = now.toISOString();
|
|
5423
|
+
for (const chat2 of chats) {
|
|
5424
|
+
const known = byId.get(chat2.id);
|
|
5425
|
+
const defined = Object.fromEntries(Object.entries(chat2).filter(([, value]) => value !== void 0 && value !== null));
|
|
5426
|
+
byId.set(chat2.id, {
|
|
5427
|
+
title: null,
|
|
5428
|
+
kind: "unknown",
|
|
5429
|
+
unreadCount: null,
|
|
5430
|
+
lastMessageAt: null,
|
|
5431
|
+
participantsCount: null,
|
|
5432
|
+
...known,
|
|
5433
|
+
...defined,
|
|
5434
|
+
id: chat2.id,
|
|
5435
|
+
firstSeenAt: known?.firstSeenAt ?? at2,
|
|
5436
|
+
lastSeenAt: at2
|
|
5437
|
+
});
|
|
5438
|
+
}
|
|
5439
|
+
this.#write({ ...this.#read(), chats: [...byId.values()] });
|
|
5440
|
+
}
|
|
5441
|
+
#read() {
|
|
5442
|
+
if (!existsSync2(this.#path))
|
|
5443
|
+
return {};
|
|
5444
|
+
try {
|
|
5445
|
+
const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
|
|
5446
|
+
return parsed && typeof parsed === "object" ? parsed : {};
|
|
5447
|
+
} catch {
|
|
5448
|
+
return {};
|
|
5449
|
+
}
|
|
5450
|
+
}
|
|
5451
|
+
#write(file) {
|
|
5452
|
+
writeSecurely(this.#path, `${JSON.stringify(file, null, 2)}
|
|
5453
|
+
`, 384);
|
|
5454
|
+
}
|
|
5455
|
+
};
|
|
5456
|
+
var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
5457
|
+
const directory = botsDirectory(app, env);
|
|
5458
|
+
if (!existsSync2(directory))
|
|
5459
|
+
return [];
|
|
5460
|
+
return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
5461
|
+
}, "registryProfiles");
|
|
5375
5462
|
|
|
5376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5464
|
+
import { readFileSync as readFileSync4 } from "node:fs";
|
|
5465
|
+
|
|
5466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
5377
5467
|
var REPAIR_WORDS = {
|
|
5378
5468
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
5379
5469
|
comment: "a comment, which JSON does not allow",
|
|
@@ -5614,7 +5704,7 @@ ${parts.join(",\n")}
|
|
|
5614
5704
|
${indent}${close}`;
|
|
5615
5705
|
}, "serialise");
|
|
5616
5706
|
|
|
5617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5618
5708
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5619
5709
|
var SECTIONS = ["personal", "bot"];
|
|
5620
5710
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -5888,7 +5978,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
|
|
|
5888
5978
|
var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
|
|
5889
5979
|
var readConfigText = /* @__PURE__ */ __name((path2) => {
|
|
5890
5980
|
try {
|
|
5891
|
-
return { text:
|
|
5981
|
+
return { text: readFileSync4(path2, "utf8") };
|
|
5892
5982
|
} catch (error) {
|
|
5893
5983
|
const code = error.code;
|
|
5894
5984
|
if (code === "ENOENT")
|
|
@@ -5908,20 +5998,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5908
5998
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5909
5999
|
}, "readConfigFile");
|
|
5910
6000
|
|
|
5911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5912
|
-
import { existsSync as
|
|
5913
|
-
import { dirname, join as
|
|
6001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6002
|
+
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6003
|
+
import { dirname, join as join4 } from "node:path";
|
|
5914
6004
|
var DEFAULT_CONFIG = {
|
|
5915
6005
|
defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
|
|
5916
6006
|
profiles: {}
|
|
5917
6007
|
};
|
|
5918
6008
|
function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
5919
|
-
if (
|
|
6009
|
+
if (existsSync3(path2))
|
|
5920
6010
|
return;
|
|
5921
6011
|
const directory = dirname(path2);
|
|
5922
6012
|
mkdirSync2(directory, { recursive: true, mode: 448 });
|
|
5923
|
-
const temporary = mkdtempSync(
|
|
5924
|
-
const candidate =
|
|
6013
|
+
const temporary = mkdtempSync(join4(directory, ".config-"));
|
|
6014
|
+
const candidate = join4(temporary, "config.json");
|
|
5925
6015
|
try {
|
|
5926
6016
|
writeFileSync2(candidate, `${JSON.stringify(config, null, 2)}
|
|
5927
6017
|
`, { flag: "wx", mode: 384 });
|
|
@@ -5937,7 +6027,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5937
6027
|
}
|
|
5938
6028
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5939
6029
|
|
|
5940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
5941
6031
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5942
6032
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
5943
6033
|
const path2 = key.split(".");
|
|
@@ -5959,7 +6049,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
5959
6049
|
return { config, added };
|
|
5960
6050
|
}, "withSettingDefaults");
|
|
5961
6051
|
|
|
5962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5963
6053
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5964
6054
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5965
6055
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6185,6 +6275,15 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6185
6275
|
throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
|
|
6186
6276
|
}, "unnamed");
|
|
6187
6277
|
const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
|
|
6278
|
+
const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
|
|
6279
|
+
const accountsOf = /* @__PURE__ */ __name((config, env, bots) => {
|
|
6280
|
+
const personal = /* @__PURE__ */ new Set([
|
|
6281
|
+
...Object.keys(config.personal?.profiles ?? {}),
|
|
6282
|
+
...profilesWithAccounts(app, env),
|
|
6283
|
+
...extension.profiles?.(env) ?? []
|
|
6284
|
+
]);
|
|
6285
|
+
return profilesOf(config, env).filter((name) => !bots.includes(name) || personal.has(name));
|
|
6286
|
+
}, "accountsOf");
|
|
6188
6287
|
const resolveSettings = /* @__PURE__ */ __name((flags = {}, options = {}) => {
|
|
6189
6288
|
const env = options.env ?? process.env;
|
|
6190
6289
|
const configPath = configPathFor(options);
|
|
@@ -6206,6 +6305,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6206
6305
|
], void 0);
|
|
6207
6306
|
const profile = locked(named2.value === void 0 ? unnamed(config, env, options.needsProfile !== false) : { value: named2.value, from: named2.from }, lock);
|
|
6208
6307
|
const kind2 = options.kind ?? "personal";
|
|
6308
|
+
const bots = botsOf(config, env);
|
|
6209
6309
|
const name = usableProfileName(profile.value);
|
|
6210
6310
|
const configured = config.profiles[name] ?? {};
|
|
6211
6311
|
const shared = config.defaults ?? {};
|
|
@@ -6297,9 +6397,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6297
6397
|
updateCheck: updateCheck.value,
|
|
6298
6398
|
skillHint: skillHint.value,
|
|
6299
6399
|
configPath,
|
|
6300
|
-
configFound:
|
|
6400
|
+
configFound: existsSync4(configPath),
|
|
6301
6401
|
configuredProfiles: namedProfiles(config),
|
|
6302
6402
|
profilesHere: profilesOf(config, env),
|
|
6403
|
+
accountProfiles: accountsOf(config, env, bots),
|
|
6404
|
+
botProfiles: bots,
|
|
6303
6405
|
sources: {
|
|
6304
6406
|
...ai.sources,
|
|
6305
6407
|
profile: profile.from,
|
|
@@ -6382,10 +6484,20 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6382
6484
|
if (kind2 !== "bot" && botOnlyKeys.includes(setting2)) {
|
|
6383
6485
|
throw new CliError("validation_error", `${setting2} is a bot's setting \u2014 add --bot`);
|
|
6384
6486
|
}
|
|
6385
|
-
const changed = structuredClone(raw);
|
|
6386
|
-
setAt(changed, at2, level2 === void 0 ? parseValue(value) : value.trim());
|
|
6387
6487
|
const had = new Set(before.map((issue) => issue.at.join(".")));
|
|
6388
|
-
const
|
|
6488
|
+
const tried = /* @__PURE__ */ __name((typed2) => {
|
|
6489
|
+
const changed2 = structuredClone(raw);
|
|
6490
|
+
setAt(changed2, at2, typed2);
|
|
6491
|
+
const added2 = schemaIssues(changed2, readSchema, context2(path2)).find((issue) => !had.has(issue.at.join(".")) || issue.at.join(".") === at2.join("."));
|
|
6492
|
+
return { changed: changed2, added: added2 };
|
|
6493
|
+
}, "tried");
|
|
6494
|
+
const parsed = level2 === void 0 ? parseValue(value) : value.trim();
|
|
6495
|
+
let { changed, added } = tried(parsed);
|
|
6496
|
+
if (added && typeof parsed !== "string") {
|
|
6497
|
+
const asText = tried(value.trim());
|
|
6498
|
+
if (!asText.added)
|
|
6499
|
+
({ changed, added } = asText);
|
|
6500
|
+
}
|
|
6389
6501
|
if (added)
|
|
6390
6502
|
throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
|
|
6391
6503
|
const checked = safeParse(readSchema, changed);
|
|
@@ -6447,7 +6559,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6447
6559
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6448
6560
|
}, "given");
|
|
6449
6561
|
|
|
6450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6451
6563
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
6452
6564
|
const { deadline, signal, app } = environmentOf(command);
|
|
6453
6565
|
const now = deadline?.();
|
|
@@ -6570,7 +6682,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6570
6682
|
return words.join(" ");
|
|
6571
6683
|
}, "commandPath");
|
|
6572
6684
|
|
|
6573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6574
6686
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6575
6687
|
var FETCH = { remote: "read", local: "write" };
|
|
6576
6688
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6618,6 +6730,14 @@ var isProposal = /* @__PURE__ */ __name((command) => {
|
|
|
6618
6730
|
const path2 = pathOf2(command).join(" ");
|
|
6619
6731
|
return PROPOSE_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
|
|
6620
6732
|
}, "isProposal");
|
|
6733
|
+
var LOCKED_AUTHORITY_COMMANDS = ["rules add"];
|
|
6734
|
+
var NARROWS = /* @__PURE__ */ new WeakSet();
|
|
6735
|
+
var admittedUnderLock = /* @__PURE__ */ __name((command) => {
|
|
6736
|
+
if (!NARROWS.has(command))
|
|
6737
|
+
return false;
|
|
6738
|
+
const path2 = pathOf2(command).join(" ");
|
|
6739
|
+
return LOCKED_AUTHORITY_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
|
|
6740
|
+
}, "admittedUnderLock");
|
|
6621
6741
|
var STORE_WRITES = /* @__PURE__ */ new WeakSet();
|
|
6622
6742
|
var changesStore = /* @__PURE__ */ __name((command) => {
|
|
6623
6743
|
STORE_WRITES.add(command);
|
|
@@ -6690,7 +6810,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6690
6810
|
throw readOnlyRefusal(lock, what);
|
|
6691
6811
|
}, "refuseUnderReadOnly");
|
|
6692
6812
|
|
|
6693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6694
6814
|
var account = strictObject({
|
|
6695
6815
|
provider: text,
|
|
6696
6816
|
id,
|
|
@@ -6700,7 +6820,7 @@ var account = strictObject({
|
|
|
6700
6820
|
scope: optional(picklist(["personal", "work"]))
|
|
6701
6821
|
});
|
|
6702
6822
|
|
|
6703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6704
6824
|
var accountSession = strictObject({
|
|
6705
6825
|
current: boolean(),
|
|
6706
6826
|
client: nullable(text),
|
|
@@ -6710,7 +6830,7 @@ var accountSession = strictObject({
|
|
|
6710
6830
|
created_at: optional(nullable(time))
|
|
6711
6831
|
});
|
|
6712
6832
|
|
|
6713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6714
6834
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6715
6835
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6716
6836
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6728,17 +6848,19 @@ var accountPrivacy = strictObject({
|
|
|
6728
6848
|
});
|
|
6729
6849
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
6730
6850
|
|
|
6731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6732
6852
|
var accountProfile = strictObject({
|
|
6733
6853
|
profile: id,
|
|
6734
6854
|
current: boolean(),
|
|
6735
6855
|
account: nullable(id),
|
|
6736
6856
|
name: nullable(text),
|
|
6737
6857
|
/** False for a profile with no session on this computer; absent when the messenger does not say. */
|
|
6738
|
-
signed_in: optional(boolean())
|
|
6858
|
+
signed_in: optional(boolean()),
|
|
6859
|
+
/** True when the same name is a bot profile too (`<tool> <profile> bot …`); absent otherwise. */
|
|
6860
|
+
bot: optional(literal(true))
|
|
6739
6861
|
});
|
|
6740
6862
|
|
|
6741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6742
6864
|
var milliseconds = pipe(number(), minValue(0));
|
|
6743
6865
|
var counterReading = strictObject({
|
|
6744
6866
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6750,7 +6872,7 @@ var counterReading = strictObject({
|
|
|
6750
6872
|
});
|
|
6751
6873
|
var selection = record(string(), unknown());
|
|
6752
6874
|
|
|
6753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6754
6876
|
var adminRow = strictObject({
|
|
6755
6877
|
ref: reference,
|
|
6756
6878
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6803,7 +6925,7 @@ var adminReport = strictObject({
|
|
|
6803
6925
|
rows: array(adminRow)
|
|
6804
6926
|
});
|
|
6805
6927
|
|
|
6806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6807
6929
|
var closeSuggestion = strictObject({
|
|
6808
6930
|
as: picklist(["done", "dismissed"]),
|
|
6809
6931
|
/** The agent's name. */
|
|
@@ -6861,7 +6983,7 @@ var task = strictObject({
|
|
|
6861
6983
|
updated_at: optional(time)
|
|
6862
6984
|
});
|
|
6863
6985
|
|
|
6864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6865
6987
|
var agendaChat = strictObject({
|
|
6866
6988
|
chat: reference,
|
|
6867
6989
|
title: nullable(text),
|
|
@@ -6931,11 +7053,11 @@ var agenda = strictObject({
|
|
|
6931
7053
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6932
7054
|
});
|
|
6933
7055
|
|
|
6934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
6935
7057
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
6936
7058
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
6937
7059
|
|
|
6938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6939
7061
|
var attachment = strictObject({
|
|
6940
7062
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6941
7063
|
message: optional(reference),
|
|
@@ -6973,7 +7095,7 @@ var attachment = strictObject({
|
|
|
6973
7095
|
});
|
|
6974
7096
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
6975
7097
|
|
|
6976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
6977
7099
|
var actionableError = objectWithRest({
|
|
6978
7100
|
code: text,
|
|
6979
7101
|
message: text,
|
|
@@ -6990,7 +7112,7 @@ var batchResult = strictObject({
|
|
|
6990
7112
|
max_error_percent: count
|
|
6991
7113
|
});
|
|
6992
7114
|
|
|
6993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
6994
7116
|
var extractionItem = strictObject({
|
|
6995
7117
|
ref: reference,
|
|
6996
7118
|
attachment: count,
|
|
@@ -7023,7 +7145,7 @@ var extractionReport = strictObject({
|
|
|
7023
7145
|
cursor: optional(text)
|
|
7024
7146
|
});
|
|
7025
7147
|
|
|
7026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7027
7149
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7028
7150
|
var attachmentBytes = strictObject({
|
|
7029
7151
|
ref: reference,
|
|
@@ -7051,7 +7173,7 @@ var attachmentTextChange = strictObject({
|
|
|
7051
7173
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7052
7174
|
});
|
|
7053
7175
|
|
|
7054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7055
7177
|
var chart = strictObject({
|
|
7056
7178
|
version: literal(1),
|
|
7057
7179
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7066,7 +7188,7 @@ var chart = strictObject({
|
|
|
7066
7188
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7067
7189
|
});
|
|
7068
7190
|
|
|
7069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7070
7192
|
var member = strictObject({
|
|
7071
7193
|
id,
|
|
7072
7194
|
name: nullable(text),
|
|
@@ -7089,7 +7211,7 @@ var member = strictObject({
|
|
|
7089
7211
|
check: optional(record(string(), unknown()))
|
|
7090
7212
|
});
|
|
7091
7213
|
|
|
7092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7093
7215
|
var setting = optional(nullable(boolean()));
|
|
7094
7216
|
var chat = strictObject({
|
|
7095
7217
|
ref: reference,
|
|
@@ -7130,7 +7252,7 @@ var chat = strictObject({
|
|
|
7130
7252
|
members: optional(array(member))
|
|
7131
7253
|
});
|
|
7132
7254
|
|
|
7133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7134
7256
|
var named = strictObject({
|
|
7135
7257
|
id,
|
|
7136
7258
|
title: nullable(text),
|
|
@@ -7153,7 +7275,7 @@ var folder = strictObject({
|
|
|
7153
7275
|
excluded_chats: optional(array(named))
|
|
7154
7276
|
});
|
|
7155
7277
|
|
|
7156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7157
7279
|
var inviteLink = strictObject({
|
|
7158
7280
|
link: text,
|
|
7159
7281
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7169,7 +7291,7 @@ var inviteLink = strictObject({
|
|
|
7169
7291
|
joined_count: optional(count)
|
|
7170
7292
|
});
|
|
7171
7293
|
|
|
7172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7173
7295
|
var operated = { operation_id: id, chat_id: id };
|
|
7174
7296
|
var group = strictObject({
|
|
7175
7297
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7249,7 +7371,7 @@ var chatFolderOrder = strictObject({
|
|
|
7249
7371
|
folders: array(strictObject({ id, title: text }))
|
|
7250
7372
|
});
|
|
7251
7373
|
|
|
7252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7253
7375
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7254
7376
|
var chatRemoval = strictObject(operated2);
|
|
7255
7377
|
var chatMuting = strictObject({
|
|
@@ -7260,7 +7382,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7260
7382
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7261
7383
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7262
7384
|
|
|
7263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7264
7386
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7265
7387
|
var chatEvent = strictObject({
|
|
7266
7388
|
chat_id: id,
|
|
@@ -7277,7 +7399,7 @@ var chatEvent = strictObject({
|
|
|
7277
7399
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7278
7400
|
});
|
|
7279
7401
|
|
|
7280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7281
7403
|
var chatMetadata = strictObject({
|
|
7282
7404
|
chat_id: id,
|
|
7283
7405
|
title: nullable(text),
|
|
@@ -7292,7 +7414,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7292
7414
|
has_more: boolean()
|
|
7293
7415
|
});
|
|
7294
7416
|
|
|
7295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7296
7418
|
var action = picklist(["report", "delete", "remove"]);
|
|
7297
7419
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7298
7420
|
var chatRules = strictObject({
|
|
@@ -7329,7 +7451,7 @@ var chatModeration = strictObject({
|
|
|
7329
7451
|
}))
|
|
7330
7452
|
});
|
|
7331
7453
|
|
|
7332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7333
7455
|
var optionalCount = optional(count);
|
|
7334
7456
|
var minutes = nullable(number());
|
|
7335
7457
|
var chatStats = strictObject({
|
|
@@ -7403,7 +7525,7 @@ var taskStats = strictObject({
|
|
|
7403
7525
|
}))
|
|
7404
7526
|
});
|
|
7405
7527
|
|
|
7406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7407
7529
|
var memberCount = strictObject({
|
|
7408
7530
|
day: pipe(text, isoDate()),
|
|
7409
7531
|
participants: nullable(count),
|
|
@@ -7426,7 +7548,7 @@ var chatTracking = strictObject({
|
|
|
7426
7548
|
tracked: boolean()
|
|
7427
7549
|
});
|
|
7428
7550
|
|
|
7429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7430
7552
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7431
7553
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7432
7554
|
var profileFields = {
|
|
@@ -7464,7 +7586,7 @@ var profileFields = {
|
|
|
7464
7586
|
}))
|
|
7465
7587
|
};
|
|
7466
7588
|
|
|
7467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7468
7590
|
var contact = strictObject({
|
|
7469
7591
|
ref: reference,
|
|
7470
7592
|
id,
|
|
@@ -7495,7 +7617,7 @@ var contact = strictObject({
|
|
|
7495
7617
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7496
7618
|
});
|
|
7497
7619
|
|
|
7498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7499
7621
|
var WEIGHTS = {
|
|
7500
7622
|
bot: 3,
|
|
7501
7623
|
scam: 3,
|
|
@@ -7520,7 +7642,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7520
7642
|
var DIGITS = /\d{5,}/;
|
|
7521
7643
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7522
7644
|
|
|
7523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
7524
7646
|
var linkedIdentity = strictObject({
|
|
7525
7647
|
provider: text,
|
|
7526
7648
|
id,
|
|
@@ -7561,7 +7683,7 @@ var contactCheck = strictObject({
|
|
|
7561
7683
|
checked_at: time
|
|
7562
7684
|
});
|
|
7563
7685
|
|
|
7564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
7565
7687
|
var quoted = strictObject({
|
|
7566
7688
|
id,
|
|
7567
7689
|
sender_id: nullable(id),
|
|
@@ -7680,7 +7802,7 @@ var message = strictObject({
|
|
|
7680
7802
|
provider_metadata: providerMetadata
|
|
7681
7803
|
});
|
|
7682
7804
|
|
|
7683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7684
7806
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7685
7807
|
var contextMessage = strictObject({
|
|
7686
7808
|
locator: reference,
|
|
@@ -7878,7 +8000,7 @@ var contactPreparation = strictObject({
|
|
|
7878
8000
|
})
|
|
7879
8001
|
});
|
|
7880
8002
|
|
|
7881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
7882
8004
|
var contactNote = strictObject({
|
|
7883
8005
|
id,
|
|
7884
8006
|
/** The contact, as a `contact:` reference. */
|
|
@@ -7890,13 +8012,13 @@ var contactNote = strictObject({
|
|
|
7890
8012
|
updated_at: time
|
|
7891
8013
|
});
|
|
7892
8014
|
|
|
7893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
7894
8016
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7895
8017
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
7896
8018
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
7897
8019
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
7898
8020
|
|
|
7899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
7900
8022
|
var conversation = strictObject({
|
|
7901
8023
|
id,
|
|
7902
8024
|
chat: reference,
|
|
@@ -7911,7 +8033,7 @@ var conversation = strictObject({
|
|
|
7911
8033
|
rules_version: count
|
|
7912
8034
|
});
|
|
7913
8035
|
|
|
7914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
7915
8037
|
var conversationBuild = strictObject({
|
|
7916
8038
|
chat: id,
|
|
7917
8039
|
messages: count,
|
|
@@ -7936,7 +8058,7 @@ var catchUpPreparation = strictObject({
|
|
|
7936
8058
|
prepared: optional(conversationPreparation)
|
|
7937
8059
|
});
|
|
7938
8060
|
|
|
7939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
7940
8062
|
var conversationDetails = union([
|
|
7941
8063
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
7942
8064
|
message
|
|
@@ -8026,7 +8148,7 @@ var conversationHit = strictObject({
|
|
|
8026
8148
|
stale: boolean()
|
|
8027
8149
|
});
|
|
8028
8150
|
|
|
8029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8030
8152
|
var counters = strictObject({
|
|
8031
8153
|
cutoff: time,
|
|
8032
8154
|
max_age_ms: milliseconds,
|
|
@@ -8056,7 +8178,7 @@ var counterRefresh = strictObject({
|
|
|
8056
8178
|
complete: optional(boolean())
|
|
8057
8179
|
});
|
|
8058
8180
|
|
|
8059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8060
8182
|
var document = strictObject({
|
|
8061
8183
|
ref: reference,
|
|
8062
8184
|
id,
|
|
@@ -8071,7 +8193,7 @@ var document = strictObject({
|
|
|
8071
8193
|
owners: optional(array(text))
|
|
8072
8194
|
});
|
|
8073
8195
|
|
|
8074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8075
8197
|
var documentLink = strictObject({
|
|
8076
8198
|
ref: reference,
|
|
8077
8199
|
url: text,
|
|
@@ -8082,7 +8204,7 @@ var documentLink = strictObject({
|
|
|
8082
8204
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8083
8205
|
});
|
|
8084
8206
|
|
|
8085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8086
8208
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8087
8209
|
var contribution = strictObject({
|
|
8088
8210
|
message: evidenceMessage,
|
|
@@ -8112,7 +8234,7 @@ var retentionStay = strictObject({
|
|
|
8112
8234
|
});
|
|
8113
8235
|
var evidence = union([contribution, retentionStay]);
|
|
8114
8236
|
|
|
8115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8116
8238
|
var fact = strictObject({
|
|
8117
8239
|
ref: reference,
|
|
8118
8240
|
id,
|
|
@@ -8142,7 +8264,7 @@ var fact = strictObject({
|
|
|
8142
8264
|
updated_at: time
|
|
8143
8265
|
});
|
|
8144
8266
|
|
|
8145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8146
8268
|
var hit = strictObject({
|
|
8147
8269
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
|
|
8148
8270
|
ref: reference,
|
|
@@ -8180,7 +8302,7 @@ var hit = strictObject({
|
|
|
8180
8302
|
untrusted
|
|
8181
8303
|
});
|
|
8182
8304
|
|
|
8183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8184
8306
|
var identity = strictObject({
|
|
8185
8307
|
ref: reference,
|
|
8186
8308
|
provider: text,
|
|
@@ -8193,7 +8315,7 @@ var identity = strictObject({
|
|
|
8193
8315
|
person: optional(nullable(reference))
|
|
8194
8316
|
});
|
|
8195
8317
|
|
|
8196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8197
8319
|
var imageEmbedding = strictObject({
|
|
8198
8320
|
model: text,
|
|
8199
8321
|
embedded: count,
|
|
@@ -8202,13 +8324,13 @@ var imageEmbedding = strictObject({
|
|
|
8202
8324
|
more: boolean()
|
|
8203
8325
|
});
|
|
8204
8326
|
|
|
8205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8206
8328
|
import { spawn } from "node:child_process";
|
|
8207
8329
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8208
|
-
import { closeSync, existsSync as
|
|
8209
|
-
import { dirname as dirname2, join as
|
|
8330
|
+
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8331
|
+
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8210
8332
|
|
|
8211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8212
8334
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8213
8335
|
const total = input.total ?? null;
|
|
8214
8336
|
const updated = input.updatedAt ?? null;
|
|
@@ -8224,7 +8346,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8224
8346
|
};
|
|
8225
8347
|
}, "progressOf");
|
|
8226
8348
|
|
|
8227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8228
8350
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8229
8351
|
const run = currentRun();
|
|
8230
8352
|
const trace = traceId ?? run.traceId;
|
|
@@ -8238,7 +8360,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8238
8360
|
}));
|
|
8239
8361
|
}, "recordLogFor");
|
|
8240
8362
|
|
|
8241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8242
8364
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8243
8365
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8244
8366
|
const out = openSync(log, "a", 384);
|
|
@@ -8254,23 +8376,23 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
|
8254
8376
|
closeSync(out);
|
|
8255
8377
|
}
|
|
8256
8378
|
}, "spawnDetached");
|
|
8257
|
-
var jobsDir = /* @__PURE__ */ __name((app, env) =>
|
|
8258
|
-
var jobPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
8379
|
+
var jobsDir = /* @__PURE__ */ __name((app, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
|
|
8380
|
+
var jobPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.json`), "jobPath");
|
|
8259
8381
|
var saveJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
8260
8382
|
mkdirSync3(dir, { recursive: true, mode: 448 });
|
|
8261
8383
|
writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
|
|
8262
8384
|
`, 384);
|
|
8263
8385
|
}, "saveJob");
|
|
8264
8386
|
var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
8265
|
-
if (!/^[\w-]+$/.test(id6) || !
|
|
8387
|
+
if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
|
|
8266
8388
|
return void 0;
|
|
8267
8389
|
try {
|
|
8268
|
-
return JSON.parse(
|
|
8390
|
+
return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
|
|
8269
8391
|
} catch {
|
|
8270
8392
|
return void 0;
|
|
8271
8393
|
}
|
|
8272
8394
|
}, "readJob");
|
|
8273
|
-
var recordsPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
8395
|
+
var recordsPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.jsonl`), "recordsPath");
|
|
8274
8396
|
var tracedJob = /* @__PURE__ */ __name((env) => {
|
|
8275
8397
|
const trace = childTrace();
|
|
8276
8398
|
return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
|
|
@@ -8307,7 +8429,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
|
8307
8429
|
if (dirname2(job2.log) === dir)
|
|
8308
8430
|
rmSync3(job2.log, { force: true });
|
|
8309
8431
|
}, "removeJob");
|
|
8310
|
-
var listJobs = /* @__PURE__ */ __name((dir) =>
|
|
8432
|
+
var listJobs = /* @__PURE__ */ __name((dir) => existsSync5(dir) ? readdirSync4(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
|
|
8311
8433
|
var jobDetails = /* @__PURE__ */ __name((job2) => ({
|
|
8312
8434
|
job: job2.id,
|
|
8313
8435
|
profile: job2.profile,
|
|
@@ -8373,7 +8495,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8373
8495
|
const startedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
8374
8496
|
const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes2(3).toString("hex")}`;
|
|
8375
8497
|
mkdirSync3(dir, { recursive: true, mode: 448 });
|
|
8376
|
-
const log =
|
|
8498
|
+
const log = join5(dir, `${id6}.log`);
|
|
8377
8499
|
const job2 = {
|
|
8378
8500
|
id: id6,
|
|
8379
8501
|
chat: input.chat,
|
|
@@ -8393,7 +8515,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8393
8515
|
return { job: id6, pid, chat: input.chat, log };
|
|
8394
8516
|
}, "startArchiveJob");
|
|
8395
8517
|
|
|
8396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8397
8519
|
var problem = strictObject({ code: text, message: text });
|
|
8398
8520
|
var job = strictObject({
|
|
8399
8521
|
id,
|
|
@@ -8416,7 +8538,7 @@ var job = strictObject({
|
|
|
8416
8538
|
error: optional(problem)
|
|
8417
8539
|
});
|
|
8418
8540
|
|
|
8419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8420
8542
|
var joinRequest = strictObject({
|
|
8421
8543
|
person_id: id,
|
|
8422
8544
|
name: nullable(text),
|
|
@@ -8427,7 +8549,7 @@ var joinRequest = strictObject({
|
|
|
8427
8549
|
about: optional(text)
|
|
8428
8550
|
});
|
|
8429
8551
|
|
|
8430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8431
8553
|
var botProfile = strictObject({
|
|
8432
8554
|
name: text,
|
|
8433
8555
|
token: text,
|
|
@@ -8495,7 +8617,7 @@ var stickerInventory = strictObject({
|
|
|
8495
8617
|
url: optional(nullable(text))
|
|
8496
8618
|
});
|
|
8497
8619
|
|
|
8498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8499
8621
|
var pollVote = strictObject({
|
|
8500
8622
|
person_id: id,
|
|
8501
8623
|
name: nullable(text),
|
|
@@ -8505,7 +8627,7 @@ var pollVote = strictObject({
|
|
|
8505
8627
|
voted_at: time
|
|
8506
8628
|
});
|
|
8507
8629
|
|
|
8508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8509
8631
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8510
8632
|
var observation = strictObject({
|
|
8511
8633
|
value: pipe(number(), minValue(0)),
|
|
@@ -8547,7 +8669,7 @@ var serveSummary = strictObject({
|
|
|
8547
8669
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8548
8670
|
});
|
|
8549
8671
|
|
|
8550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8551
8673
|
var mailCounts = strictObject({
|
|
8552
8674
|
by: picklist(["day", "week", "sender"]),
|
|
8553
8675
|
received: count,
|
|
@@ -8562,7 +8684,7 @@ var mailCounts = strictObject({
|
|
|
8562
8684
|
}))
|
|
8563
8685
|
});
|
|
8564
8686
|
|
|
8565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8566
8688
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8567
8689
|
var base = { id, evidence: array(evidence2) };
|
|
8568
8690
|
var finding = variant("kind", [
|
|
@@ -8628,7 +8750,7 @@ var mailFindings = strictObject({
|
|
|
8628
8750
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
|
|
8629
8751
|
});
|
|
8630
8752
|
|
|
8631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8632
8754
|
var mediaArchive = strictObject({
|
|
8633
8755
|
directory: text,
|
|
8634
8756
|
chats: count,
|
|
@@ -8660,7 +8782,7 @@ var mediaArchiveTimer = union([
|
|
|
8660
8782
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
8661
8783
|
]);
|
|
8662
8784
|
|
|
8663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
8664
8786
|
var preparationId = pipe(string(), minLength(1));
|
|
8665
8787
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
8666
8788
|
var preparationTime = nullable(isoTime);
|
|
@@ -8752,7 +8874,7 @@ var preparationMeeting = strictObject({
|
|
|
8752
8874
|
updated_at: isoTime
|
|
8753
8875
|
});
|
|
8754
8876
|
|
|
8755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
8756
8878
|
var meetingEvidence = preparationEvidence;
|
|
8757
8879
|
var meetingPersonContext = strictObject({
|
|
8758
8880
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -8774,7 +8896,7 @@ var meetingPersonContext = strictObject({
|
|
|
8774
8896
|
})
|
|
8775
8897
|
});
|
|
8776
8898
|
|
|
8777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
8778
8900
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
8779
8901
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
8780
8902
|
var finding2 = variant("kind", [
|
|
@@ -8812,7 +8934,7 @@ var meetingFindings = strictObject({
|
|
|
8812
8934
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8813
8935
|
});
|
|
8814
8936
|
|
|
8815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
8816
8938
|
var communicationCoverage = strictObject({
|
|
8817
8939
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
8818
8940
|
query: string(),
|
|
@@ -8857,7 +8979,7 @@ var preparationCommunications = strictObject({
|
|
|
8857
8979
|
}))
|
|
8858
8980
|
});
|
|
8859
8981
|
|
|
8860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
8861
8983
|
var meetingPreparation = strictObject({
|
|
8862
8984
|
communications: optional(preparationCommunications),
|
|
8863
8985
|
schema_version: literal(1),
|
|
@@ -8970,7 +9092,7 @@ var meetingPreparation = strictObject({
|
|
|
8970
9092
|
})
|
|
8971
9093
|
});
|
|
8972
9094
|
|
|
8973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
8974
9096
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
8975
9097
|
var id3 = pipe(string(), minLength(1));
|
|
8976
9098
|
var text3 = string();
|
|
@@ -9034,7 +9156,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9034
9156
|
})
|
|
9035
9157
|
});
|
|
9036
9158
|
|
|
9037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9038
9160
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9039
9161
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9040
9162
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9064,7 +9186,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9064
9186
|
})
|
|
9065
9187
|
});
|
|
9066
9188
|
|
|
9067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9068
9190
|
var text4 = string();
|
|
9069
9191
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9070
9192
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9081,7 +9203,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9081
9203
|
persistence: literal("proposal-only")
|
|
9082
9204
|
});
|
|
9083
9205
|
|
|
9084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9085
9207
|
var memory = strictObject({
|
|
9086
9208
|
ref: reference,
|
|
9087
9209
|
id,
|
|
@@ -9108,7 +9230,7 @@ var memory = strictObject({
|
|
|
9108
9230
|
updated_at: time
|
|
9109
9231
|
});
|
|
9110
9232
|
|
|
9111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9112
9234
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9113
9235
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9114
9236
|
var mention = strictObject({
|
|
@@ -9151,13 +9273,13 @@ var mentionRebuild = strictObject({
|
|
|
9151
9273
|
mentions: count
|
|
9152
9274
|
});
|
|
9153
9275
|
|
|
9154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9155
9277
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9156
9278
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9157
9279
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9158
9280
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9159
9281
|
|
|
9160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9161
9283
|
var messageTranscript = strictObject({
|
|
9162
9284
|
message_id: id,
|
|
9163
9285
|
text,
|
|
@@ -9215,7 +9337,7 @@ var evidencePacket = strictObject({
|
|
|
9215
9337
|
}))
|
|
9216
9338
|
});
|
|
9217
9339
|
|
|
9218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9219
9341
|
var messageThread = strictObject({
|
|
9220
9342
|
ref: reference,
|
|
9221
9343
|
chat: id,
|
|
@@ -9232,7 +9354,7 @@ var messageThread = strictObject({
|
|
|
9232
9354
|
});
|
|
9233
9355
|
var messageContext = union([message, messageThread]);
|
|
9234
9356
|
|
|
9235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9236
9358
|
var messageCounts = strictObject({
|
|
9237
9359
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9238
9360
|
total: count,
|
|
@@ -9245,7 +9367,7 @@ var messageCounts = strictObject({
|
|
|
9245
9367
|
}))
|
|
9246
9368
|
});
|
|
9247
9369
|
|
|
9248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9249
9371
|
var messageLink = strictObject({
|
|
9250
9372
|
ref: reference,
|
|
9251
9373
|
url: nullable(text),
|
|
@@ -9262,7 +9384,7 @@ var messageLink = strictObject({
|
|
|
9262
9384
|
})))
|
|
9263
9385
|
});
|
|
9264
9386
|
|
|
9265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9266
9388
|
var savedMessageFile = strictObject({
|
|
9267
9389
|
kind: text,
|
|
9268
9390
|
path: text,
|
|
@@ -9349,7 +9471,7 @@ var messageSyncAll = strictObject({
|
|
|
9349
9471
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9350
9472
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9351
9473
|
|
|
9352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9353
9475
|
var messageWrite = strictObject({
|
|
9354
9476
|
operation_id: id,
|
|
9355
9477
|
message,
|
|
@@ -9364,7 +9486,7 @@ var draftWrite = strictObject({
|
|
|
9364
9486
|
});
|
|
9365
9487
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9366
9488
|
|
|
9367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9368
9490
|
var model2 = strictObject({
|
|
9369
9491
|
id,
|
|
9370
9492
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9381,7 +9503,7 @@ var model2 = strictObject({
|
|
|
9381
9503
|
path: text
|
|
9382
9504
|
});
|
|
9383
9505
|
|
|
9384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9385
9507
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9386
9508
|
var modelKey = strictObject({
|
|
9387
9509
|
provider: text,
|
|
@@ -9391,7 +9513,7 @@ var modelKey = strictObject({
|
|
|
9391
9513
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9392
9514
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9393
9515
|
|
|
9394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9395
9517
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9396
9518
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9397
9519
|
var graph = strictObject({
|
|
@@ -9425,14 +9547,14 @@ var officialStats = strictObject({
|
|
|
9425
9547
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9426
9548
|
});
|
|
9427
9549
|
|
|
9428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9429
9551
|
var person2 = strictObject({
|
|
9430
9552
|
ref: reference,
|
|
9431
9553
|
name: nullable(text),
|
|
9432
9554
|
identities: optional(array(identity))
|
|
9433
9555
|
});
|
|
9434
9556
|
|
|
9435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9436
9558
|
var poll = strictObject({
|
|
9437
9559
|
chat_id: id,
|
|
9438
9560
|
message_id: id,
|
|
@@ -9448,11 +9570,11 @@ var poll = strictObject({
|
|
|
9448
9570
|
});
|
|
9449
9571
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9450
9572
|
|
|
9451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9452
9574
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9453
9575
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9454
9576
|
|
|
9455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9456
9578
|
var figures = record(string(), number());
|
|
9457
9579
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9458
9580
|
var rankingRow = strictObject({
|
|
@@ -9499,7 +9621,7 @@ var ranking = strictObject({
|
|
|
9499
9621
|
rows: array(rankingRow)
|
|
9500
9622
|
});
|
|
9501
9623
|
|
|
9502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9503
9625
|
var reaction = strictObject({
|
|
9504
9626
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9505
9627
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9507,7 +9629,7 @@ var reaction = strictObject({
|
|
|
9507
9629
|
reacted_at: time
|
|
9508
9630
|
});
|
|
9509
9631
|
|
|
9510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9511
9633
|
var reactionChange = strictObject({
|
|
9512
9634
|
operation_id: id,
|
|
9513
9635
|
chat_id: id,
|
|
@@ -9515,7 +9637,7 @@ var reactionChange = strictObject({
|
|
|
9515
9637
|
reaction: nullable(text)
|
|
9516
9638
|
});
|
|
9517
9639
|
|
|
9518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9519
9641
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9520
9642
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9521
9643
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9526,7 +9648,7 @@ var recipientChange = strictObject({
|
|
|
9526
9648
|
...partial(recipientOff).entries
|
|
9527
9649
|
});
|
|
9528
9650
|
|
|
9529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9530
9652
|
var events = array(record(string(), unknown()));
|
|
9531
9653
|
var recordedRun = strictObject({
|
|
9532
9654
|
run_id: id,
|
|
@@ -9598,7 +9720,7 @@ var runHit = strictObject({
|
|
|
9598
9720
|
});
|
|
9599
9721
|
var runLocation = strictObject({ path: text });
|
|
9600
9722
|
|
|
9601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9602
9724
|
var relationship = strictObject({
|
|
9603
9725
|
id,
|
|
9604
9726
|
from: reference,
|
|
@@ -9615,7 +9737,7 @@ var relationship = strictObject({
|
|
|
9615
9737
|
created_at: time
|
|
9616
9738
|
});
|
|
9617
9739
|
|
|
9618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
9619
9741
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9620
9742
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9621
9743
|
var responseTimes = strictObject({
|
|
@@ -9632,7 +9754,7 @@ var waitingChats = strictObject({
|
|
|
9632
9754
|
by_kind: strictObject({ private: count, group: count })
|
|
9633
9755
|
});
|
|
9634
9756
|
|
|
9635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9636
9758
|
var retentionCohort = strictObject({
|
|
9637
9759
|
/** The first day of the joining day or week. */
|
|
9638
9760
|
cohort: text,
|
|
@@ -9680,7 +9802,7 @@ var retention = strictObject({
|
|
|
9680
9802
|
rows: array(retentionCohort)
|
|
9681
9803
|
});
|
|
9682
9804
|
|
|
9683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
9684
9806
|
var savedSearch = strictObject({
|
|
9685
9807
|
id,
|
|
9686
9808
|
/** `null` for a run in the history. */
|
|
@@ -9697,7 +9819,7 @@ var savedSearch = strictObject({
|
|
|
9697
9819
|
});
|
|
9698
9820
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
9699
9821
|
|
|
9700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
9701
9823
|
var sendAttempt = strictObject({
|
|
9702
9824
|
at: time,
|
|
9703
9825
|
profile: text,
|
|
@@ -9725,7 +9847,7 @@ var sendAttempt = strictObject({
|
|
|
9725
9847
|
error_code: optional(text)
|
|
9726
9848
|
});
|
|
9727
9849
|
|
|
9728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
9729
9851
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
9730
9852
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
9731
9853
|
var infoSchema = strictObject({
|
|
@@ -9933,7 +10055,7 @@ var storeRepair = union([
|
|
|
9933
10055
|
]);
|
|
9934
10056
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
9935
10057
|
|
|
9936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
9937
10059
|
var range = strictObject({ from: number(), to: number() });
|
|
9938
10060
|
var storeChatStatus = strictObject({
|
|
9939
10061
|
chat_id: id,
|
|
@@ -10031,7 +10153,7 @@ var storeJobRetry = union([
|
|
|
10031
10153
|
]);
|
|
10032
10154
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10033
10155
|
|
|
10034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10035
10157
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10036
10158
|
var storeTable = strictObject({
|
|
10037
10159
|
name: text,
|
|
@@ -10040,7 +10162,7 @@ var storeTable = strictObject({
|
|
|
10040
10162
|
bytes: optional(nullable(count))
|
|
10041
10163
|
});
|
|
10042
10164
|
|
|
10043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10044
10166
|
var tagTarget = variant("type", [
|
|
10045
10167
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10046
10168
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10071,7 +10193,7 @@ var automaticTags = strictObject({
|
|
|
10071
10193
|
dry_run: boolean()
|
|
10072
10194
|
});
|
|
10073
10195
|
|
|
10074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10075
10197
|
var tagging = strictObject({
|
|
10076
10198
|
tag: text,
|
|
10077
10199
|
type: picklist(TAG_TYPES),
|
|
@@ -10084,7 +10206,7 @@ var tagging = strictObject({
|
|
|
10084
10206
|
created_at: time
|
|
10085
10207
|
});
|
|
10086
10208
|
|
|
10087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10088
10210
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10089
10211
|
var taskPair = strictObject({
|
|
10090
10212
|
task: nullable(side),
|
|
@@ -10107,7 +10229,7 @@ var taskPair = strictObject({
|
|
|
10107
10229
|
created_at: time
|
|
10108
10230
|
});
|
|
10109
10231
|
|
|
10110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10111
10233
|
var nullableTime = nullable(time);
|
|
10112
10234
|
var link = strictObject({
|
|
10113
10235
|
id,
|
|
@@ -10277,7 +10399,7 @@ var taskReview = strictObject({
|
|
|
10277
10399
|
untrusted
|
|
10278
10400
|
});
|
|
10279
10401
|
|
|
10280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10281
10403
|
var topic = strictObject({
|
|
10282
10404
|
id,
|
|
10283
10405
|
title: text,
|
|
@@ -10291,7 +10413,7 @@ var topic = strictObject({
|
|
|
10291
10413
|
untrusted
|
|
10292
10414
|
});
|
|
10293
10415
|
|
|
10294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10295
10417
|
var ENTITIES = {
|
|
10296
10418
|
sync_progress: progress,
|
|
10297
10419
|
...MEETING_RESULT_ENTITIES,
|
|
@@ -10573,7 +10695,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10573
10695
|
return [name, definition];
|
|
10574
10696
|
})), "entityDefinitions");
|
|
10575
10697
|
|
|
10576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10577
10699
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10578
10700
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10579
10701
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10607,8 +10729,8 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10607
10729
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10608
10730
|
}, "answerRow");
|
|
10609
10731
|
|
|
10610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10611
|
-
import { join as
|
|
10732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
10733
|
+
import { join as join6 } from "node:path";
|
|
10612
10734
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
10613
10735
|
var IMAGE_MODELS = [
|
|
10614
10736
|
{
|
|
@@ -10658,10 +10780,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
|
|
|
10658
10780
|
return found;
|
|
10659
10781
|
}, "imageModel");
|
|
10660
10782
|
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
10661
|
-
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file,
|
|
10783
|
+
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
10662
10784
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
10663
10785
|
|
|
10664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10665
10787
|
var STEPS2 = defineSteps([
|
|
10666
10788
|
...STEPS,
|
|
10667
10789
|
{
|
|
@@ -10942,7 +11064,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
10942
11064
|
].join(" ");
|
|
10943
11065
|
}, "stepLine");
|
|
10944
11066
|
|
|
10945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
10946
11068
|
var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
|
|
10947
11069
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
10948
11070
|
var STATUS_SIGNAL_ROWS = {
|
|
@@ -11051,7 +11173,7 @@ var STATUS_ROWS = {
|
|
|
11051
11173
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11052
11174
|
};
|
|
11053
11175
|
|
|
11054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11055
11177
|
var TEXT_CHARS = 400;
|
|
11056
11178
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11057
11179
|
var messageRow = {
|
|
@@ -11387,7 +11509,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11387
11509
|
return lines.concat(footerOf(body)).join("\n");
|
|
11388
11510
|
}, "compactText");
|
|
11389
11511
|
|
|
11390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11391
11513
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11392
11514
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11393
11515
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11445,7 +11567,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11445
11567
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11446
11568
|
}, "largeAnswerSteps");
|
|
11447
11569
|
|
|
11448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11449
11571
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11450
11572
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11451
11573
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11459,7 +11581,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11459
11581
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11460
11582
|
}, "strip");
|
|
11461
11583
|
|
|
11462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11463
11585
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11464
11586
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11465
11587
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -11629,6 +11751,7 @@ export {
|
|
|
11629
11751
|
progressOf,
|
|
11630
11752
|
envName,
|
|
11631
11753
|
readOnlyLockOf,
|
|
11754
|
+
mailHolderVariable,
|
|
11632
11755
|
MESSENGER_CHANGE_REFUSAL,
|
|
11633
11756
|
readOnlyRefusal,
|
|
11634
11757
|
logAttributes,
|
|
@@ -11722,6 +11845,9 @@ export {
|
|
|
11722
11845
|
meaningFloor,
|
|
11723
11846
|
historyWindow,
|
|
11724
11847
|
limitBatch,
|
|
11848
|
+
botFiles,
|
|
11849
|
+
ChatRegistry,
|
|
11850
|
+
registryProfiles,
|
|
11725
11851
|
REPAIR_WORDS,
|
|
11726
11852
|
repairConfigText,
|
|
11727
11853
|
permissionIssues,
|
|
@@ -11758,6 +11884,7 @@ export {
|
|
|
11758
11884
|
isLogin,
|
|
11759
11885
|
destroysNothing,
|
|
11760
11886
|
proposesOnly,
|
|
11887
|
+
admittedUnderLock,
|
|
11761
11888
|
changesStore,
|
|
11762
11889
|
readsOverMcpAt,
|
|
11763
11890
|
isStoreChange,
|