@wirecat/cli-memo 0.131.21 → 0.131.23
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/README.md +3 -3
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-EZLU6CY7.js → all-profiles-VIPS6NHI.js} +7 -7
- package/dist/bundle/{anthropic-XC34PJH5.js → anthropic-2QZHSXBA.js} +5 -5
- package/dist/bundle/{app-server-26YPLJ7M.js → app-server-NTSADYGW.js} +38 -38
- package/dist/bundle/auto-MJWSDIMF.js +86 -0
- package/dist/bundle/{bun-CKGKUKW5.js → bun-KF5QK2YN.js} +2 -2
- package/dist/bundle/{bun-sqlite-S6KUSMTC.js → bun-sqlite-XUCC2PWC.js} +4 -4
- package/dist/bundle/{chunk-YAUDFROV.js → chunk-24P36RXS.js} +466 -337
- package/dist/bundle/{chunk-NELE7AIX.js → chunk-2IKXEL4V.js} +1 -1
- package/dist/bundle/{program-3ZTQ5FEM.js → chunk-32FPXLNY.js} +877 -11207
- package/dist/bundle/{chunk-R26CXR5Z.js → chunk-37NN65PB.js} +5 -5
- package/dist/bundle/{chunk-7NEWBM2O.js → chunk-44NQLD5C.js} +6 -6
- package/dist/bundle/{chunk-UXCSNSUU.js → chunk-46WO42ZW.js} +316 -255
- package/dist/bundle/{chunk-TMNHNZVA.js → chunk-4DKMYDLT.js} +42 -22
- package/dist/bundle/{chunk-INURBEAO.js → chunk-4QY7XOVI.js} +13 -13
- package/dist/bundle/{chunk-RNXYDBQO.js → chunk-5M4KSMYN.js} +52 -52
- package/dist/bundle/{chunk-EAYYWS67.js → chunk-5WCEWK2F.js} +11 -11
- package/dist/bundle/{chunk-KUNA6MQZ.js → chunk-6EZ7XGRG.js} +1 -1
- package/dist/bundle/{chunk-NWB5NAGB.js → chunk-6I7XGWGH.js} +5 -5
- package/dist/bundle/{chunk-PF3ALSAV.js → chunk-6PXE6QSQ.js} +1 -1
- package/dist/bundle/{chunk-DZSWKA3K.js → chunk-7PQOYNMA.js} +1 -1
- package/dist/bundle/{chunk-SMDWUPXE.js → chunk-AETJWLHX.js} +3 -3
- package/dist/bundle/{chunk-ZCKU6WMX.js → chunk-AHFMQAJT.js} +10 -10
- package/dist/bundle/{chunk-CP5N3KH3.js → chunk-BIYSJBQR.js} +4 -4
- package/dist/bundle/{chunk-E5FQ7U7L.js → chunk-BSDOH7DN.js} +2 -2
- package/dist/bundle/{chunk-VECICKTE.js → chunk-BSR4QZW5.js} +2 -2
- package/dist/bundle/{chunk-2TBIVKBH.js → chunk-CKLCJ6O7.js} +5 -5
- package/dist/bundle/{chunk-LGNS4JVK.js → chunk-CTT5VK66.js} +5 -5
- package/dist/bundle/{chunk-VXHN3SWW.js → chunk-DIELPPLF.js} +2 -2
- package/dist/bundle/{chunk-2NJUPIAO.js → chunk-DIP3ENSY.js} +1 -1
- package/dist/bundle/{chunk-THGFFQCK.js → chunk-FXF34MI2.js} +2 -2
- package/dist/bundle/{chunk-JXH22ZGA.js → chunk-G4GEARGN.js} +9 -9
- package/dist/bundle/{chunk-QMMUPDRK.js → chunk-GDGY2KIX.js} +4 -4
- package/dist/bundle/{chunk-OUF6RCRZ.js → chunk-GQOFHKUX.js} +5 -5
- package/dist/bundle/{chunk-5RBLNI6C.js → chunk-H76MIWB2.js} +4 -4
- package/dist/bundle/{chunk-GV2FSWFS.js → chunk-HBXZ7WIV.js} +7 -7
- package/dist/bundle/{chunk-NOG5O2NS.js → chunk-IJI62T4U.js} +28 -28
- package/dist/bundle/{chunk-3V4WIGWC.js → chunk-JCCL7RGH.js} +2 -2
- package/dist/bundle/{chunk-RC7TIYUZ.js → chunk-JDNA36EX.js} +8 -8
- package/dist/bundle/{chunk-YUFUUQUO.js → chunk-JRJIFGU2.js} +4 -4
- package/dist/bundle/{chunk-EG2OMKWH.js → chunk-JY4LVWGZ.js} +12 -0
- package/dist/bundle/{chunk-IRDGD3QQ.js → chunk-KQ5P5NLL.js} +1 -1
- package/dist/bundle/{chunk-7F6FGMCC.js → chunk-L6FKTS3L.js} +7 -7
- package/dist/bundle/{chunk-VQM3H422.js → chunk-MJWFSOJN.js} +362 -179
- package/dist/bundle/{chunk-B3YV6Z7Y.js → chunk-N5L6YYYW.js} +2 -2
- package/dist/bundle/{chunk-CCOYC6HL.js → chunk-NY4IKP35.js} +2 -2
- package/dist/bundle/{chunk-FFWK5NEZ.js → chunk-O7OI5V7W.js} +7 -7
- package/dist/bundle/{chunk-RHJC4PHV.js → chunk-PDQFWOR5.js} +3 -3
- package/dist/bundle/{chunk-JJ3C5AYK.js → chunk-QFO6K6CW.js} +45 -45
- package/dist/bundle/{chunk-WUCQ56RP.js → chunk-QSN5NUVL.js} +2 -2
- package/dist/bundle/{chunk-7MLWSUEK.js → chunk-QWRBAQZ7.js} +1 -1
- package/dist/bundle/{chunk-DNGHE2Q4.js → chunk-QZXHMQCM.js} +1 -1
- package/dist/bundle/{chunk-WEOFWTWZ.js → chunk-R4V63U6A.js} +3 -3
- package/dist/bundle/{chunk-BB2MGFOZ.js → chunk-RE5SEGSR.js} +3 -3
- package/dist/bundle/{chunk-LR5EY5JY.js → chunk-STZMKXK5.js} +3 -3
- package/dist/bundle/{chunk-CDZZ2DZO.js → chunk-T4LW6UYQ.js} +1 -1
- package/dist/bundle/{chunk-AIIQ7YU4.js → chunk-UJEO3VWA.js} +1 -1
- package/dist/bundle/{chunk-SXGAIQ5X.js → chunk-UMWR5PKA.js} +12 -12
- package/dist/bundle/{chunk-J4GC33JU.js → chunk-UQA5UFJ2.js} +1 -1
- package/dist/bundle/{chunk-ZD3STMY7.js → chunk-V5ZID7KC.js} +1 -1
- package/dist/bundle/{chunk-XPRYBLTS.js → chunk-V7Y5FOYJ.js} +2 -2
- package/dist/bundle/{chunk-J55Z6EJ3.js → chunk-W53TRO7J.js} +1006 -280
- package/dist/bundle/{chunk-MCPDL5YU.js → chunk-XRJIQC6P.js} +1 -1
- package/dist/bundle/{chunk-MHDLZCEO.js → chunk-XTARXRP6.js} +8 -8
- package/dist/bundle/{chunk-XA6YO24S.js → chunk-YKZNFSQE.js} +1 -1
- package/dist/bundle/{chunk-PO5C7VNC.js → chunk-Z6YD3YK4.js} +21 -21
- package/dist/bundle/{chunk-RG6ITTLQ.js → chunk-Z7XHH2Q5.js} +14 -14
- package/dist/bundle/{chunk-OJRLTJRS.js → chunk-ZCPUKUST.js} +1 -1
- package/dist/bundle/{command-contract-TMVGYSQQ.js → command-contract-XBYNZVP5.js} +13 -13
- package/dist/bundle/{decode-6XSZIZAA.js → decode-LFASKQPE.js} +4 -4
- package/dist/bundle/{dispatch-VUMQPYMA.js → dispatch-MELZFYOS.js} +1 -1
- package/dist/bundle/{echarts-NGS4QG4E.js → echarts-5AB3LFVD.js} +2 -2
- package/dist/bundle/{embed-YNH5M6UL.js → embed-6KQN523T.js} +5 -5
- package/dist/bundle/{embedder-LLNK4JF4.js → embedder-7SGPMINO.js} +8 -8
- package/dist/bundle/{entry-DO6ZBFIS.js → entry-CNZGHHZB.js} +6 -6
- package/dist/bundle/failure-LJAYEPTS.js +66 -0
- package/dist/bundle/{failure-Z2FXWIBY.js → failure-RBNZBCZJ.js} +1 -1
- package/dist/bundle/{first-run-BXFQN6M5.js → first-run-UI6UT4OR.js} +8 -8
- package/dist/bundle/first-screen-3WDPZZXV.js +30 -0
- package/dist/bundle/{instructions-4EJ4BBWD.js → instructions-52W6ZQTU.js} +1 -1
- package/dist/bundle/mcp-JIOYIKWO.js +90 -0
- package/dist/bundle/memo.js +9 -9
- package/dist/bundle/{node-QQXKQWNC.js → node-TL2PBNKO.js} +2 -2
- package/dist/bundle/{node-sqlite-GJI2GMLW.js → node-sqlite-64QIEQ37.js} +5 -5
- package/dist/bundle/{oauth-Q5VGUPUR.js → oauth-GH7GLGEJ.js} +6 -6
- package/dist/bundle/{open-NSXIYF3N.js → open-PCKU5XOH.js} +4 -4
- package/dist/bundle/{openai-LHH7MSGQ.js → openai-P5QVLTF6.js} +9 -9
- package/dist/bundle/{process-PI6XUJWP.js → process-PWAGP6YY.js} +1 -1
- package/dist/bundle/program-D7OTNHGU.js +10947 -0
- package/dist/bundle/{prompt-VFXA7IKL.js → prompt-FNBKJZLM.js} +4 -4
- package/dist/bundle/{recognize-UWAARXOH.js → recognize-5TKRMMA2.js} +3 -3
- package/dist/bundle/{remote-KGEVCB2Q.js → remote-XZJ7ZAKJ.js} +6 -6
- package/dist/bundle/{rerank-SCBTCBPO.js → rerank-JUH3QHX7.js} +6 -6
- package/dist/bundle/{serve-WPVKVR24.js → serve-JP6U3PUO.js} +8 -8
- package/dist/bundle/server-5M4YI3V4.js +48 -0
- package/dist/bundle/{server-BMQBWBBN.js → server-VXI43PF5.js} +53 -53
- package/dist/bundle/server-XAHF22CQ.js +61 -0
- package/dist/bundle/{setup-FGSVWQ32.js → setup-YLI4S4TW.js} +42 -42
- package/dist/bundle/{state-KGHS4C6J.js → state-G4NEN2OZ.js} +5 -5
- package/dist/bundle/{store-VCVOIQES.js → store-NHFLFHD5.js} +11 -11
- package/dist/bundle/store-maintenance-command-6UEORZWI.js +48 -0
- package/dist/bundle/update-6SD2JZUC.js +69 -0
- package/dist/config-command.d.ts.map +1 -1
- package/dist/config-command.js +23 -2
- package/dist/config-command.js.map +1 -1
- package/dist/config.d.ts +11 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +50 -3
- package/dist/config.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +7 -1
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +8 -52
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/project-gather-command.d.ts.map +1 -1
- package/dist/knowledge/project-gather-command.js +32 -19
- package/dist/knowledge/project-gather-command.js.map +1 -1
- package/dist/knowledge/relationships-scan.d.ts +8 -0
- package/dist/knowledge/relationships-scan.d.ts.map +1 -0
- package/dist/knowledge/relationships-scan.js +95 -0
- package/dist/knowledge/relationships-scan.js.map +1 -0
- package/dist/mail/review-command.d.ts.map +1 -1
- package/dist/mail/review-command.js +6 -0
- package/dist/mail/review-command.js.map +1 -1
- package/dist/review/kinds.js +2 -2
- package/dist/review/kinds.js.map +1 -1
- package/dist/store/source-list.d.ts +2 -0
- package/dist/store/source-list.d.ts.map +1 -1
- package/dist/store/source-list.js +6 -0
- package/dist/store/source-list.js.map +1 -1
- package/dist/tasks/command.js +2 -2
- package/dist/tasks/command.js.map +1 -1
- package/dist/tasks/tasks.d.ts +1 -1
- package/dist/tasks/tasks.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/cli-memo/SKILL.md +1 -1
- package/dist/bundle/auto-QHTPHGNA.js +0 -86
- package/dist/bundle/chunk-CRZSJHAK.js +0 -412
- package/dist/bundle/failure-LHMJNFY6.js +0 -66
- package/dist/bundle/first-screen-56KZKY77.js +0 -30
- package/dist/bundle/mcp-A4HPKQK5.js +0 -90
- package/dist/bundle/server-NQK5EX7P.js +0 -48
- package/dist/bundle/server-UN43Y6BY.js +0 -61
- package/dist/bundle/store-maintenance-command-QTEWWDST.js +0 -48
- package/dist/bundle/update-XC6KAVCK.js +0 -69
- /package/dist/bundle/{chunk-YYQN5ES2.js → chunk-WX2WLEEF.js} +0 -0
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
providerErrorKey,
|
|
11
11
|
renderEvent,
|
|
12
12
|
runContextOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JDNA36EX.js";
|
|
14
14
|
import {
|
|
15
15
|
permissionCeiling
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AETJWLHX.js";
|
|
17
17
|
import {
|
|
18
18
|
envName,
|
|
19
19
|
readOnlyLockOf,
|
|
20
20
|
readOnlyRefusal
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2IKXEL4V.js";
|
|
22
22
|
import {
|
|
23
23
|
carries
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UJEO3VWA.js";
|
|
25
25
|
import {
|
|
26
26
|
FACT_STATUSES,
|
|
27
27
|
FACT_TYPES,
|
|
@@ -56,17 +56,17 @@ import {
|
|
|
56
56
|
meetingStats,
|
|
57
57
|
meetingSummary,
|
|
58
58
|
meetingTranscript
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-5M4KSMYN.js";
|
|
60
60
|
import {
|
|
61
61
|
sharedConfigPath
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-CKLCJ6O7.js";
|
|
63
63
|
import {
|
|
64
64
|
filesPresent,
|
|
65
65
|
sharedModelsDirectory
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-STZMKXK5.js";
|
|
67
67
|
import {
|
|
68
68
|
storePath
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-DIELPPLF.js";
|
|
70
70
|
import {
|
|
71
71
|
configFilePath,
|
|
72
72
|
createRecordLog,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
saveConfigFile,
|
|
80
80
|
traceIdOf,
|
|
81
81
|
writeSecurely
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-T4LW6UYQ.js";
|
|
83
83
|
import {
|
|
84
84
|
COMPACT_FLAG,
|
|
85
85
|
EXIT_CODES,
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
unwrap,
|
|
135
135
|
variant,
|
|
136
136
|
writes
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-JY4LVWGZ.js";
|
|
138
138
|
import {
|
|
139
139
|
CliError,
|
|
140
140
|
isCliError,
|
|
@@ -3931,11 +3931,11 @@ var commandsDocument = /* @__PURE__ */ __name((root, about) => ({
|
|
|
3931
3931
|
exit_codes: { ok: 0, internal_error: GENERIC_FAILURE, ...EXIT_CODES }
|
|
3932
3932
|
}), "commandsDocument");
|
|
3933
3933
|
|
|
3934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3935
3935
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3936
|
-
var sentIds = /* @__PURE__ */ __name((
|
|
3936
|
+
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3937
3937
|
messageId: message2.id,
|
|
3938
|
-
...message2.chatId && message2.chatId !==
|
|
3938
|
+
...message2.chatId && message2.chatId !== typed2 ? { resultChatId: message2.chatId } : {}
|
|
3939
3939
|
}), "sentIds");
|
|
3940
3940
|
var current = new AsyncLocalStorage();
|
|
3941
3941
|
var writesInFlight = new AsyncLocalStorage();
|
|
@@ -4037,7 +4037,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4037
4037
|
}, "guardedWrite");
|
|
4038
4038
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4039
4039
|
|
|
4040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4041
4041
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4042
4042
|
try {
|
|
4043
4043
|
return work();
|
|
@@ -4064,7 +4064,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4064
4064
|
return projectFields(value, fields);
|
|
4065
4065
|
}), "projectFields");
|
|
4066
4066
|
|
|
4067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4068
4068
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4069
4069
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
4070
4070
|
var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
|
|
@@ -4086,7 +4086,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4086
4086
|
}
|
|
4087
4087
|
}, "withAbort");
|
|
4088
4088
|
|
|
4089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4090
4090
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4091
4091
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4092
4092
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4482,7 +4482,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4482
4482
|
}
|
|
4483
4483
|
}, "assertRetentionEvidenceRead");
|
|
4484
4484
|
|
|
4485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4486
4486
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4487
4487
|
import { join } from "node:path";
|
|
4488
4488
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4504,12 +4504,12 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4504
4504
|
}, "profilesWithAccounts");
|
|
4505
4505
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4506
4506
|
|
|
4507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4508
4508
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4509
4509
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4510
4510
|
var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
|
|
4511
4511
|
|
|
4512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4513
4513
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4514
4514
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4515
4515
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -4545,7 +4545,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4545
4545
|
return value;
|
|
4546
4546
|
}, "atDetail");
|
|
4547
4547
|
|
|
4548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/output.js
|
|
4549
4549
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
4550
4550
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
4551
4551
|
if (other)
|
|
@@ -4609,7 +4609,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4609
4609
|
}, "warn")
|
|
4610
4610
|
}), "silence");
|
|
4611
4611
|
|
|
4612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4613
4613
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4614
4614
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4615
4615
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4643,7 +4643,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4643
4643
|
cache: "cache.answered"
|
|
4644
4644
|
};
|
|
4645
4645
|
|
|
4646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4647
4647
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4648
4648
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4649
4649
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4656,13 +4656,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4656
4656
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4657
4657
|
}), "snakeLogger");
|
|
4658
4658
|
|
|
4659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4660
4660
|
import { randomUUID } from "node:crypto";
|
|
4661
4661
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4662
4662
|
import { userInfo } from "node:os";
|
|
4663
4663
|
import { join as join2, sep } from "node:path";
|
|
4664
4664
|
|
|
4665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4666
4666
|
var diagnostic = {
|
|
4667
4667
|
event: true,
|
|
4668
4668
|
operation: true,
|
|
@@ -4732,7 +4732,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4732
4732
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4733
4733
|
].sort();
|
|
4734
4734
|
|
|
4735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4736
4736
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4737
4737
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4738
4738
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5085,7 +5085,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5085
5085
|
};
|
|
5086
5086
|
}, "metadataOf");
|
|
5087
5087
|
|
|
5088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5089
5089
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5090
5090
|
import { randomBytes } from "node:crypto";
|
|
5091
5091
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5122,7 +5122,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
5122
5122
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5123
5123
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5124
5124
|
|
|
5125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5126
5126
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5127
5127
|
const recording = startRecording(options);
|
|
5128
5128
|
try {
|
|
@@ -5307,7 +5307,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5307
5307
|
return void 0;
|
|
5308
5308
|
}, "partialOutcome");
|
|
5309
5309
|
|
|
5310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5311
5311
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
5312
5312
|
if (ms === void 0)
|
|
5313
5313
|
return body();
|
|
@@ -5333,7 +5333,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
5333
5333
|
}
|
|
5334
5334
|
}, "withDeadline");
|
|
5335
5335
|
|
|
5336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5337
5337
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5338
5338
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5339
5339
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5375,10 +5375,10 @@ var rootOf = /* @__PURE__ */ __name((command) => {
|
|
|
5375
5375
|
return root;
|
|
5376
5376
|
}, "rootOf");
|
|
5377
5377
|
|
|
5378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5379
5379
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5380
5380
|
|
|
5381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5382
5382
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5383
5383
|
try {
|
|
5384
5384
|
const url2 = new URL(value);
|
|
@@ -5388,7 +5388,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5388
5388
|
}
|
|
5389
5389
|
}, "endpoint");
|
|
5390
5390
|
|
|
5391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5392
5392
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5393
5393
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5394
5394
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5457,7 +5457,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5457
5457
|
};
|
|
5458
5458
|
}, "modelTarget");
|
|
5459
5459
|
|
|
5460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5461
5461
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5462
5462
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5463
5463
|
var AI_FIELDS = {
|
|
@@ -5501,7 +5501,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5501
5501
|
};
|
|
5502
5502
|
}, "resolveAISettings");
|
|
5503
5503
|
|
|
5504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5505
5505
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5506
5506
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5507
5507
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5515,7 +5515,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5515
5515
|
return ms;
|
|
5516
5516
|
}, "parseDuration");
|
|
5517
5517
|
|
|
5518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5519
5519
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5520
5520
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5521
5521
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5674,7 +5674,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5674
5674
|
var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
|
|
5675
5675
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5676
5676
|
|
|
5677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5678
5678
|
var HISTORY_MAX_DAYS = 1095;
|
|
5679
5679
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5680
5680
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -5721,10 +5721,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5721
5721
|
return { batch: { ...batch, messages }, skipped };
|
|
5722
5722
|
}, "limitBatch");
|
|
5723
5723
|
|
|
5724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5725
5725
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5726
5726
|
|
|
5727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
5728
5728
|
var REPAIR_WORDS = {
|
|
5729
5729
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
5730
5730
|
comment: "a comment, which JSON does not allow",
|
|
@@ -5965,7 +5965,7 @@ ${parts.join(",\n")}
|
|
|
5965
5965
|
${indent}${close}`;
|
|
5966
5966
|
}, "serialise");
|
|
5967
5967
|
|
|
5968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5969
5969
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5970
5970
|
var SECTIONS = ["personal", "bot"];
|
|
5971
5971
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -6260,7 +6260,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6260
6260
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6261
6261
|
}, "readConfigFile");
|
|
6262
6262
|
|
|
6263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6264
6264
|
import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6265
6265
|
import { dirname, join as join3 } from "node:path";
|
|
6266
6266
|
var DEFAULT_CONFIG = {
|
|
@@ -6289,7 +6289,40 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6289
6289
|
}
|
|
6290
6290
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6291
6291
|
|
|
6292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6293
|
+
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6294
|
+
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6295
|
+
const path2 = key.split(".");
|
|
6296
|
+
const leaf = path2.pop();
|
|
6297
|
+
return { node: path2.reduce((node, part) => isNode2(node) ? node[part] : void 0, config), leaf };
|
|
6298
|
+
}, "parentOf");
|
|
6299
|
+
var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
6300
|
+
if (raw !== void 0 && !isNode2(raw))
|
|
6301
|
+
return { config: raw, added: [] };
|
|
6302
|
+
const config = raw === void 0 ? {} : structuredClone(raw);
|
|
6303
|
+
const added = [];
|
|
6304
|
+
for (const setting2 of declared) {
|
|
6305
|
+
const { node, leaf } = parentOf(config, setting2.key);
|
|
6306
|
+
if (!isNode2(node) || Object.hasOwn(node, leaf))
|
|
6307
|
+
continue;
|
|
6308
|
+
node[leaf] = setting2.default;
|
|
6309
|
+
added.push(setting2.key);
|
|
6310
|
+
}
|
|
6311
|
+
return { config, added };
|
|
6312
|
+
}, "withSettingDefaults");
|
|
6313
|
+
var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((setting2) => {
|
|
6314
|
+
const { node, leaf } = isNode2(raw) ? parentOf(raw, setting2.key) : { node: void 0, leaf: "" };
|
|
6315
|
+
const written = isNode2(node) && Object.hasOwn(node, leaf);
|
|
6316
|
+
return {
|
|
6317
|
+
setting: setting2.key,
|
|
6318
|
+
value: written ? node[leaf] : setting2.default,
|
|
6319
|
+
default: setting2.default,
|
|
6320
|
+
from: written ? "config file" : "default",
|
|
6321
|
+
description: setting2.description
|
|
6322
|
+
};
|
|
6323
|
+
}), "settingRows");
|
|
6324
|
+
|
|
6325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6293
6326
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6294
6327
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6295
6328
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6359,6 +6392,65 @@ var SHARED_DEFAULTS_ONLY = {
|
|
|
6359
6392
|
update_check: optional(flag),
|
|
6360
6393
|
skill_hint: optional(flag)
|
|
6361
6394
|
};
|
|
6395
|
+
var SHARED_SETTINGS = [
|
|
6396
|
+
{ key: "limit", default: DEFAULT_LIMIT, description: "how many items a list shows at once" },
|
|
6397
|
+
{ key: "keep_runs_for_days", default: DEFAULT_KEEP_RUNS_FOR_DAYS, description: "days a run is kept" },
|
|
6398
|
+
{
|
|
6399
|
+
key: "sends_per_hour",
|
|
6400
|
+
default: DEFAULT_SENDS_PER_HOUR,
|
|
6401
|
+
description: "the most messages an account sends in an hour; a bot has none unless its section sets one"
|
|
6402
|
+
},
|
|
6403
|
+
{ key: "update_check", default: true, description: "check once a day for a newer version" },
|
|
6404
|
+
{
|
|
6405
|
+
key: "skill_hint",
|
|
6406
|
+
default: true,
|
|
6407
|
+
description: "tell an agent once a day that `skill install` would give it this tool's guide"
|
|
6408
|
+
},
|
|
6409
|
+
{ key: "record", default: true, description: "keep every run in runs list; false keeps failed runs only" },
|
|
6410
|
+
{
|
|
6411
|
+
key: "record_input",
|
|
6412
|
+
default: true,
|
|
6413
|
+
description: `keep what was typed in a run's command line: true, false, or "failed" for failed runs only`
|
|
6414
|
+
},
|
|
6415
|
+
{
|
|
6416
|
+
key: "keep_successful_runs_for_days",
|
|
6417
|
+
default: KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
6418
|
+
description: "days a successful run is kept"
|
|
6419
|
+
},
|
|
6420
|
+
{ key: "runs_size_limit_mb", default: RUNS_SIZE_LIMIT_MB, description: "the most megabytes all runs may take" },
|
|
6421
|
+
{ key: "sender_colors", default: false, description: "color each sender's name in a conversation" },
|
|
6422
|
+
{ key: "search_catch_up", default: false, description: "prepare local search after a gaps repair" },
|
|
6423
|
+
{
|
|
6424
|
+
key: "history_dialog_days",
|
|
6425
|
+
default: DEFAULT_HISTORY_LIMITS.dialogDays,
|
|
6426
|
+
description: "days of a one-to-one chat's pushed history the store keeps"
|
|
6427
|
+
},
|
|
6428
|
+
{
|
|
6429
|
+
key: "history_group_days",
|
|
6430
|
+
default: DEFAULT_HISTORY_LIMITS.groupDays,
|
|
6431
|
+
description: "days of a group's pushed history the store keeps"
|
|
6432
|
+
},
|
|
6433
|
+
{
|
|
6434
|
+
key: "history_group_members_max",
|
|
6435
|
+
default: DEFAULT_HISTORY_LIMITS.groupMembersMax,
|
|
6436
|
+
description: "a group with more people than this keeps no pushed history"
|
|
6437
|
+
},
|
|
6438
|
+
{
|
|
6439
|
+
key: "picture_search",
|
|
6440
|
+
default: false,
|
|
6441
|
+
description: "search and images embed read the pictures themselves, with a model on this computer"
|
|
6442
|
+
},
|
|
6443
|
+
{
|
|
6444
|
+
key: "search_reranker",
|
|
6445
|
+
default: DEFAULT_RERANK_MODEL,
|
|
6446
|
+
description: "the reranker that orders search's first hits, or off"
|
|
6447
|
+
},
|
|
6448
|
+
{
|
|
6449
|
+
key: "embedding_provider",
|
|
6450
|
+
default: AI_DEFAULTS.embeddingProvider,
|
|
6451
|
+
description: "local or openai: what turns text into vectors for search by meaning"
|
|
6452
|
+
}
|
|
6453
|
+
];
|
|
6362
6454
|
var NONE_NAMED = "none named";
|
|
6363
6455
|
var NO_PROFILE = "default";
|
|
6364
6456
|
var namedProfile = /* @__PURE__ */ __name((settings) => settings.sources?.profile === NONE_NAMED ? void 0 : settings.profile, "namedProfile");
|
|
@@ -6411,12 +6503,14 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6411
6503
|
const defaultsOnlyKeys = Object.keys(defaultsOnly);
|
|
6412
6504
|
const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
|
|
6413
6505
|
const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting2) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting2) || app.sends === true && setting2 === "sends_per_hour");
|
|
6506
|
+
const readSchema = extension.schema ?? schema2;
|
|
6507
|
+
const declaredSettings = [...SHARED_SETTINGS, ...extension.settings ?? []].filter(({ key, default: value }) => allSettings.includes(key) && safeParse(readSchema, { defaults: { [key]: value } }).success).map((setting2) => ({ ...setting2, key: `defaults.${setting2.key}` }));
|
|
6508
|
+
const withDefaults = /* @__PURE__ */ __name((raw, except = []) => withSettingDefaults(isScope(raw) && !Object.hasOwn(raw, "defaults") ? { ...raw, defaults: {} } : raw, declaredSettings.filter(({ key }) => !except.includes(key))), "withDefaults");
|
|
6414
6509
|
const PROFILE = envName(app, "PROFILE");
|
|
6415
6510
|
const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
|
|
6416
6511
|
const TIMEOUT = envName(app, "TIMEOUT");
|
|
6417
6512
|
const REQUESTS_PER_MINUTE = envName(app, "REQUESTS_PER_MINUTE");
|
|
6418
6513
|
const configPathFor = /* @__PURE__ */ __name(({ env = process.env, configDir }) => configFilePath(configDir ?? resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).config), "configPathFor");
|
|
6419
|
-
const readSchema = extension.schema ?? schema2;
|
|
6420
6514
|
const context2 = /* @__PURE__ */ __name((file) => ({ file, tool: app.command }), "context");
|
|
6421
6515
|
const loadConfig = /* @__PURE__ */ __name((path2) => {
|
|
6422
6516
|
const read = readConfigText(path2);
|
|
@@ -6452,7 +6546,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6452
6546
|
const configPath = configPathFor(options);
|
|
6453
6547
|
try {
|
|
6454
6548
|
if (!options.readOnly)
|
|
6455
|
-
ensureDefaultConfig(configPath);
|
|
6549
|
+
ensureDefaultConfig(configPath, withDefaults(DEFAULT_CONFIG).config);
|
|
6456
6550
|
} catch (error) {
|
|
6457
6551
|
throw new CliError("configuration_error", error instanceof Error ? error.message : String(error));
|
|
6458
6552
|
}
|
|
@@ -6630,7 +6724,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6630
6724
|
throw new CliError("validation_error", `${setting2} has no problem to remove \u2014 name the profile, or add --defaults, to unset a setting`);
|
|
6631
6725
|
if (!known && valueAt(raw, at2) === void 0)
|
|
6632
6726
|
throw new CliError("validation_error", `no setting called "${setting2}" \u2014 one of: ${allSettings.join(", ")}`);
|
|
6633
|
-
saveConfigFile(path2, withoutPath(raw, at2).config);
|
|
6727
|
+
saveConfigFile(path2, withDefaults(withoutPath(raw, at2).config, [at2.join(".")]).config);
|
|
6634
6728
|
return null;
|
|
6635
6729
|
}
|
|
6636
6730
|
if (!known)
|
|
@@ -6651,13 +6745,24 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6651
6745
|
if (added)
|
|
6652
6746
|
throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
|
|
6653
6747
|
const checked = safeParse(readSchema, changed);
|
|
6654
|
-
saveConfigFile(path2, checked.success ? checked.output : changed);
|
|
6748
|
+
saveConfigFile(path2, withDefaults(checked.success ? checked.output : changed).config);
|
|
6655
6749
|
return valueAt(checked.success ? checked.output : changed, at2) ?? null;
|
|
6656
6750
|
}, "changeSetting");
|
|
6751
|
+
const migrate = /* @__PURE__ */ __name((path2) => {
|
|
6752
|
+
const read = readConfigFile(path2);
|
|
6753
|
+
if ("issue" in read)
|
|
6754
|
+
throw new CliError("configuration_error", issueMessage([read.issue]));
|
|
6755
|
+
const { config, added } = withDefaults(read.raw);
|
|
6756
|
+
if (added.length > 0)
|
|
6757
|
+
saveConfigFile(path2, config);
|
|
6758
|
+
return added;
|
|
6759
|
+
}, "migrate");
|
|
6657
6760
|
return {
|
|
6658
6761
|
resolveSettings,
|
|
6659
6762
|
configuredProfiles,
|
|
6660
6763
|
changeSetting,
|
|
6764
|
+
migrate,
|
|
6765
|
+
declaredSettings,
|
|
6661
6766
|
allSettings,
|
|
6662
6767
|
defaultsOnlyKeys,
|
|
6663
6768
|
schema: schema2,
|
|
@@ -6698,7 +6803,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6698
6803
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6699
6804
|
}, "given");
|
|
6700
6805
|
|
|
6701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6702
6807
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
6703
6808
|
const slot = environmentOf(command).exit;
|
|
6704
6809
|
if (slot)
|
|
@@ -6811,7 +6916,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6811
6916
|
return words.join(" ");
|
|
6812
6917
|
}, "commandPath");
|
|
6813
6918
|
|
|
6814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6815
6920
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6816
6921
|
var FETCH = { remote: "read", local: "write" };
|
|
6817
6922
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6918,7 +7023,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6918
7023
|
throw readOnlyRefusal(lock, what);
|
|
6919
7024
|
}, "refuseUnderReadOnly");
|
|
6920
7025
|
|
|
6921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
6922
7027
|
var text = string();
|
|
6923
7028
|
var id = pipe(string(), minLength(1));
|
|
6924
7029
|
var time = isoTime;
|
|
@@ -6942,7 +7047,7 @@ var author = strictObject({
|
|
|
6942
7047
|
name: nullable(text)
|
|
6943
7048
|
});
|
|
6944
7049
|
|
|
6945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6946
7051
|
var account = strictObject({
|
|
6947
7052
|
provider: text,
|
|
6948
7053
|
id,
|
|
@@ -6952,7 +7057,7 @@ var account = strictObject({
|
|
|
6952
7057
|
scope: optional(picklist(["personal", "work"]))
|
|
6953
7058
|
});
|
|
6954
7059
|
|
|
6955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6956
7061
|
var accountSession = strictObject({
|
|
6957
7062
|
current: boolean(),
|
|
6958
7063
|
client: nullable(text),
|
|
@@ -6962,7 +7067,7 @@ var accountSession = strictObject({
|
|
|
6962
7067
|
created_at: optional(nullable(time))
|
|
6963
7068
|
});
|
|
6964
7069
|
|
|
6965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6966
7071
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6967
7072
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6968
7073
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6980,7 +7085,7 @@ var accountPrivacy = strictObject({
|
|
|
6980
7085
|
});
|
|
6981
7086
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
6982
7087
|
|
|
6983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6984
7089
|
var accountProfile = strictObject({
|
|
6985
7090
|
profile: id,
|
|
6986
7091
|
current: boolean(),
|
|
@@ -6990,7 +7095,7 @@ var accountProfile = strictObject({
|
|
|
6990
7095
|
signed_in: optional(boolean())
|
|
6991
7096
|
});
|
|
6992
7097
|
|
|
6993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6994
7099
|
var milliseconds = pipe(number(), minValue(0));
|
|
6995
7100
|
var counterReading = strictObject({
|
|
6996
7101
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7002,7 +7107,7 @@ var counterReading = strictObject({
|
|
|
7002
7107
|
});
|
|
7003
7108
|
var selection = record(string(), unknown());
|
|
7004
7109
|
|
|
7005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7006
7111
|
var adminRow = strictObject({
|
|
7007
7112
|
ref: reference,
|
|
7008
7113
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7055,7 +7160,7 @@ var adminReport = strictObject({
|
|
|
7055
7160
|
rows: array(adminRow)
|
|
7056
7161
|
});
|
|
7057
7162
|
|
|
7058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7059
7164
|
var closeSuggestion = strictObject({
|
|
7060
7165
|
as: picklist(["done", "dismissed"]),
|
|
7061
7166
|
/** The agent's name. */
|
|
@@ -7113,7 +7218,7 @@ var task = strictObject({
|
|
|
7113
7218
|
updated_at: optional(time)
|
|
7114
7219
|
});
|
|
7115
7220
|
|
|
7116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7117
7222
|
var agendaChat = strictObject({
|
|
7118
7223
|
chat: reference,
|
|
7119
7224
|
title: nullable(text),
|
|
@@ -7183,11 +7288,11 @@ var agenda = strictObject({
|
|
|
7183
7288
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7184
7289
|
});
|
|
7185
7290
|
|
|
7186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7187
7292
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7188
7293
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7189
7294
|
|
|
7190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7191
7296
|
var attachment = strictObject({
|
|
7192
7297
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7193
7298
|
message: optional(reference),
|
|
@@ -7225,7 +7330,7 @@ var attachment = strictObject({
|
|
|
7225
7330
|
});
|
|
7226
7331
|
var hitFile = strictObject({ position: count2, kind: text, name: optional(text), size: optional(count2) });
|
|
7227
7332
|
|
|
7228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7229
7334
|
var actionableError = objectWithRest({
|
|
7230
7335
|
code: text,
|
|
7231
7336
|
message: text,
|
|
@@ -7242,7 +7347,7 @@ var batchResult = strictObject({
|
|
|
7242
7347
|
max_error_percent: count2
|
|
7243
7348
|
});
|
|
7244
7349
|
|
|
7245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7246
7351
|
var extractionItem = strictObject({
|
|
7247
7352
|
ref: reference,
|
|
7248
7353
|
attachment: count2,
|
|
@@ -7275,7 +7380,7 @@ var extractionReport = strictObject({
|
|
|
7275
7380
|
cursor: optional(text)
|
|
7276
7381
|
});
|
|
7277
7382
|
|
|
7278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7279
7384
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7280
7385
|
var attachmentBytes = strictObject({
|
|
7281
7386
|
ref: reference,
|
|
@@ -7303,7 +7408,7 @@ var attachmentTextChange = strictObject({
|
|
|
7303
7408
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7304
7409
|
});
|
|
7305
7410
|
|
|
7306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7307
7412
|
var chart = strictObject({
|
|
7308
7413
|
version: literal(1),
|
|
7309
7414
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7318,7 +7423,7 @@ var chart = strictObject({
|
|
|
7318
7423
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count2, height: count2 }))
|
|
7319
7424
|
});
|
|
7320
7425
|
|
|
7321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7322
7427
|
var member = strictObject({
|
|
7323
7428
|
id,
|
|
7324
7429
|
name: nullable(text),
|
|
@@ -7341,7 +7446,7 @@ var member = strictObject({
|
|
|
7341
7446
|
check: optional(record(string(), unknown()))
|
|
7342
7447
|
});
|
|
7343
7448
|
|
|
7344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7345
7450
|
var setting = optional(nullable(boolean()));
|
|
7346
7451
|
var chat = strictObject({
|
|
7347
7452
|
ref: reference,
|
|
@@ -7382,7 +7487,7 @@ var chat = strictObject({
|
|
|
7382
7487
|
members: optional(array(member))
|
|
7383
7488
|
});
|
|
7384
7489
|
|
|
7385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7386
7491
|
var named2 = strictObject({
|
|
7387
7492
|
id,
|
|
7388
7493
|
title: nullable(text),
|
|
@@ -7405,7 +7510,7 @@ var folder = strictObject({
|
|
|
7405
7510
|
excluded_chats: optional(array(named2))
|
|
7406
7511
|
});
|
|
7407
7512
|
|
|
7408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7409
7514
|
var inviteLink = strictObject({
|
|
7410
7515
|
link: text,
|
|
7411
7516
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7421,7 +7526,7 @@ var inviteLink = strictObject({
|
|
|
7421
7526
|
joined_count: optional(count2)
|
|
7422
7527
|
});
|
|
7423
7528
|
|
|
7424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7425
7530
|
var operated = { operation_id: id, chat_id: id };
|
|
7426
7531
|
var group = strictObject({
|
|
7427
7532
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7501,7 +7606,7 @@ var chatFolderOrder = strictObject({
|
|
|
7501
7606
|
folders: array(strictObject({ id, title: text }))
|
|
7502
7607
|
});
|
|
7503
7608
|
|
|
7504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7505
7610
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7506
7611
|
var chatRemoval = strictObject(operated2);
|
|
7507
7612
|
var chatMuting = strictObject({
|
|
@@ -7512,7 +7617,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7512
7617
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7513
7618
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7514
7619
|
|
|
7515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7516
7621
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7517
7622
|
var chatEvent = strictObject({
|
|
7518
7623
|
chat_id: id,
|
|
@@ -7529,7 +7634,7 @@ var chatEvent = strictObject({
|
|
|
7529
7634
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7530
7635
|
});
|
|
7531
7636
|
|
|
7532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7533
7638
|
var chatMetadata = strictObject({
|
|
7534
7639
|
chat_id: id,
|
|
7535
7640
|
title: nullable(text),
|
|
@@ -7544,7 +7649,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7544
7649
|
has_more: boolean()
|
|
7545
7650
|
});
|
|
7546
7651
|
|
|
7547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7548
7653
|
var action = picklist(["report", "delete", "remove"]);
|
|
7549
7654
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7550
7655
|
var chatRules = strictObject({
|
|
@@ -7581,7 +7686,7 @@ var chatModeration = strictObject({
|
|
|
7581
7686
|
}))
|
|
7582
7687
|
});
|
|
7583
7688
|
|
|
7584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7585
7690
|
var optionalCount = optional(count2);
|
|
7586
7691
|
var minutes = nullable(number());
|
|
7587
7692
|
var chatStats = strictObject({
|
|
@@ -7643,7 +7748,7 @@ var taskStats = strictObject({
|
|
|
7643
7748
|
}))
|
|
7644
7749
|
});
|
|
7645
7750
|
|
|
7646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7647
7752
|
var memberCount = strictObject({
|
|
7648
7753
|
day: pipe(text, isoDate()),
|
|
7649
7754
|
participants: nullable(count2),
|
|
@@ -7666,7 +7771,7 @@ var chatTracking = strictObject({
|
|
|
7666
7771
|
tracked: boolean()
|
|
7667
7772
|
});
|
|
7668
7773
|
|
|
7669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7670
7775
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7671
7776
|
var contactSync = strictObject({ added: count2, changed: count2, known: count2 });
|
|
7672
7777
|
var profileFields = {
|
|
@@ -7704,7 +7809,7 @@ var profileFields = {
|
|
|
7704
7809
|
}))
|
|
7705
7810
|
};
|
|
7706
7811
|
|
|
7707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7708
7813
|
var contact = strictObject({
|
|
7709
7814
|
ref: reference,
|
|
7710
7815
|
id,
|
|
@@ -7735,7 +7840,7 @@ var contact = strictObject({
|
|
|
7735
7840
|
notes: optional(array(strictObject({ id, text, revision: count2, created_at: time, updated_at: time })))
|
|
7736
7841
|
});
|
|
7737
7842
|
|
|
7738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7739
7844
|
var WEIGHTS = {
|
|
7740
7845
|
bot: 3,
|
|
7741
7846
|
scam: 3,
|
|
@@ -7760,7 +7865,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7760
7865
|
var DIGITS = /\d{5,}/;
|
|
7761
7866
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7762
7867
|
|
|
7763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
7764
7869
|
var linkedIdentity = strictObject({
|
|
7765
7870
|
provider: text,
|
|
7766
7871
|
id,
|
|
@@ -7801,7 +7906,7 @@ var contactCheck = strictObject({
|
|
|
7801
7906
|
checked_at: time
|
|
7802
7907
|
});
|
|
7803
7908
|
|
|
7804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
7805
7910
|
var quoted = strictObject({
|
|
7806
7911
|
id,
|
|
7807
7912
|
sender_id: nullable(id),
|
|
@@ -7920,7 +8025,7 @@ var message = strictObject({
|
|
|
7920
8025
|
provider_metadata: providerMetadata
|
|
7921
8026
|
});
|
|
7922
8027
|
|
|
7923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7924
8029
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7925
8030
|
var contextMessage = strictObject({
|
|
7926
8031
|
locator: reference,
|
|
@@ -8118,7 +8223,7 @@ var contactPreparation = strictObject({
|
|
|
8118
8223
|
})
|
|
8119
8224
|
});
|
|
8120
8225
|
|
|
8121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8122
8227
|
var contactNote = strictObject({
|
|
8123
8228
|
id,
|
|
8124
8229
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8130,13 +8235,13 @@ var contactNote = strictObject({
|
|
|
8130
8235
|
updated_at: time
|
|
8131
8236
|
});
|
|
8132
8237
|
|
|
8133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8134
8239
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8135
8240
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8136
8241
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8137
8242
|
var contactImport = strictObject({ operation_id: id, sent: count2, recognised: array(addressBookPerson) });
|
|
8138
8243
|
|
|
8139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8140
8245
|
var conversation = strictObject({
|
|
8141
8246
|
id,
|
|
8142
8247
|
chat: reference,
|
|
@@ -8151,7 +8256,7 @@ var conversation = strictObject({
|
|
|
8151
8256
|
rules_version: count2
|
|
8152
8257
|
});
|
|
8153
8258
|
|
|
8154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8155
8260
|
var conversationBuild = strictObject({
|
|
8156
8261
|
chat: id,
|
|
8157
8262
|
messages: count2,
|
|
@@ -8176,7 +8281,7 @@ var catchUpPreparation = strictObject({
|
|
|
8176
8281
|
prepared: optional(conversationPreparation)
|
|
8177
8282
|
});
|
|
8178
8283
|
|
|
8179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8180
8285
|
var conversationDetails = union([
|
|
8181
8286
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8182
8287
|
message
|
|
@@ -8266,7 +8371,7 @@ var conversationHit = strictObject({
|
|
|
8266
8371
|
stale: boolean()
|
|
8267
8372
|
});
|
|
8268
8373
|
|
|
8269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8270
8375
|
var counters = strictObject({
|
|
8271
8376
|
cutoff: time,
|
|
8272
8377
|
max_age_ms: milliseconds,
|
|
@@ -8296,7 +8401,7 @@ var counterRefresh = strictObject({
|
|
|
8296
8401
|
complete: optional(boolean())
|
|
8297
8402
|
});
|
|
8298
8403
|
|
|
8299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8300
8405
|
var document = strictObject({
|
|
8301
8406
|
ref: reference,
|
|
8302
8407
|
id,
|
|
@@ -8311,7 +8416,7 @@ var document = strictObject({
|
|
|
8311
8416
|
owners: optional(array(text))
|
|
8312
8417
|
});
|
|
8313
8418
|
|
|
8314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8315
8420
|
var documentLink = strictObject({
|
|
8316
8421
|
ref: reference,
|
|
8317
8422
|
url: text,
|
|
@@ -8322,7 +8427,7 @@ var documentLink = strictObject({
|
|
|
8322
8427
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8323
8428
|
});
|
|
8324
8429
|
|
|
8325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8326
8431
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8327
8432
|
var contribution = strictObject({
|
|
8328
8433
|
message: evidenceMessage,
|
|
@@ -8352,7 +8457,7 @@ var retentionStay = strictObject({
|
|
|
8352
8457
|
});
|
|
8353
8458
|
var evidence = union([contribution, retentionStay]);
|
|
8354
8459
|
|
|
8355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8356
8461
|
var fact = strictObject({
|
|
8357
8462
|
ref: reference,
|
|
8358
8463
|
id,
|
|
@@ -8382,7 +8487,7 @@ var fact = strictObject({
|
|
|
8382
8487
|
updated_at: time
|
|
8383
8488
|
});
|
|
8384
8489
|
|
|
8385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8386
8491
|
var hit = strictObject({
|
|
8387
8492
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
|
|
8388
8493
|
ref: reference,
|
|
@@ -8420,7 +8525,7 @@ var hit = strictObject({
|
|
|
8420
8525
|
untrusted
|
|
8421
8526
|
});
|
|
8422
8527
|
|
|
8423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8424
8529
|
var identity = strictObject({
|
|
8425
8530
|
ref: reference,
|
|
8426
8531
|
provider: text,
|
|
@@ -8433,7 +8538,7 @@ var identity = strictObject({
|
|
|
8433
8538
|
person: optional(nullable(reference))
|
|
8434
8539
|
});
|
|
8435
8540
|
|
|
8436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8437
8542
|
var imageEmbedding = strictObject({
|
|
8438
8543
|
model: text,
|
|
8439
8544
|
embedded: count2,
|
|
@@ -8442,13 +8547,13 @@ var imageEmbedding = strictObject({
|
|
|
8442
8547
|
more: boolean()
|
|
8443
8548
|
});
|
|
8444
8549
|
|
|
8445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8446
8551
|
import { spawn } from "node:child_process";
|
|
8447
8552
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8448
8553
|
import { closeSync, existsSync as existsSync4, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8449
8554
|
import { dirname as dirname2, join as join4 } from "node:path";
|
|
8450
8555
|
|
|
8451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8452
8557
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8453
8558
|
const total = input.total ?? null;
|
|
8454
8559
|
const updated = input.updatedAt ?? null;
|
|
@@ -8464,7 +8569,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8464
8569
|
};
|
|
8465
8570
|
}, "progressOf");
|
|
8466
8571
|
|
|
8467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8468
8573
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8469
8574
|
const run = currentRun();
|
|
8470
8575
|
const trace = traceId ?? run.traceId;
|
|
@@ -8478,7 +8583,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8478
8583
|
}));
|
|
8479
8584
|
}, "recordLogFor");
|
|
8480
8585
|
|
|
8481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8482
8587
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8483
8588
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8484
8589
|
const out = openSync(log, "a", 384);
|
|
@@ -8633,7 +8738,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8633
8738
|
return { job: id6, pid, chat: input.chat, log };
|
|
8634
8739
|
}, "startArchiveJob");
|
|
8635
8740
|
|
|
8636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8637
8742
|
var problem = strictObject({ code: text, message: text });
|
|
8638
8743
|
var job = strictObject({
|
|
8639
8744
|
id,
|
|
@@ -8656,7 +8761,7 @@ var job = strictObject({
|
|
|
8656
8761
|
error: optional(problem)
|
|
8657
8762
|
});
|
|
8658
8763
|
|
|
8659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8660
8765
|
var joinRequest = strictObject({
|
|
8661
8766
|
person_id: id,
|
|
8662
8767
|
name: nullable(text),
|
|
@@ -8667,7 +8772,7 @@ var joinRequest = strictObject({
|
|
|
8667
8772
|
about: optional(text)
|
|
8668
8773
|
});
|
|
8669
8774
|
|
|
8670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
8671
8776
|
var organization = strictObject({
|
|
8672
8777
|
id,
|
|
8673
8778
|
ref: reference,
|
|
@@ -8697,7 +8802,7 @@ var reminder = strictObject({
|
|
|
8697
8802
|
receipt: nullable(text)
|
|
8698
8803
|
});
|
|
8699
8804
|
|
|
8700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8701
8806
|
var botProfile = strictObject({
|
|
8702
8807
|
name: text,
|
|
8703
8808
|
token: text,
|
|
@@ -8765,7 +8870,7 @@ var stickerInventory = strictObject({
|
|
|
8765
8870
|
url: optional(nullable(text))
|
|
8766
8871
|
});
|
|
8767
8872
|
|
|
8768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8769
8874
|
var pollVote = strictObject({
|
|
8770
8875
|
person_id: id,
|
|
8771
8876
|
name: nullable(text),
|
|
@@ -8775,7 +8880,7 @@ var pollVote = strictObject({
|
|
|
8775
8880
|
voted_at: time
|
|
8776
8881
|
});
|
|
8777
8882
|
|
|
8778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8779
8884
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8780
8885
|
var observation = strictObject({
|
|
8781
8886
|
value: pipe(number(), minValue(0)),
|
|
@@ -8817,7 +8922,7 @@ var serveSummary = strictObject({
|
|
|
8817
8922
|
tasks: optional(strictObject({ added: count2, closed: count2, review: count2 }))
|
|
8818
8923
|
});
|
|
8819
8924
|
|
|
8820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8821
8926
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8822
8927
|
var base = { id, evidence: array(evidence2) };
|
|
8823
8928
|
var finding = variant("kind", [
|
|
@@ -8883,7 +8988,7 @@ var mailFindings = strictObject({
|
|
|
8883
8988
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
|
|
8884
8989
|
});
|
|
8885
8990
|
|
|
8886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8887
8992
|
var mediaArchive = strictObject({
|
|
8888
8993
|
directory: text,
|
|
8889
8994
|
chats: count2,
|
|
@@ -8915,7 +9020,7 @@ var mediaArchiveTimer = union([
|
|
|
8915
9020
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
8916
9021
|
]);
|
|
8917
9022
|
|
|
8918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
8919
9024
|
var preparationId = pipe(string(), minLength(1));
|
|
8920
9025
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
8921
9026
|
var preparationTime = nullable(isoTime);
|
|
@@ -9007,7 +9112,7 @@ var preparationMeeting = strictObject({
|
|
|
9007
9112
|
updated_at: isoTime
|
|
9008
9113
|
});
|
|
9009
9114
|
|
|
9010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9011
9116
|
var meetingEvidence = preparationEvidence;
|
|
9012
9117
|
var meetingPersonContext = strictObject({
|
|
9013
9118
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9029,7 +9134,7 @@ var meetingPersonContext = strictObject({
|
|
|
9029
9134
|
})
|
|
9030
9135
|
});
|
|
9031
9136
|
|
|
9032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9033
9138
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9034
9139
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9035
9140
|
var finding2 = variant("kind", [
|
|
@@ -9067,7 +9172,7 @@ var meetingFindings = strictObject({
|
|
|
9067
9172
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9068
9173
|
});
|
|
9069
9174
|
|
|
9070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9071
9176
|
var communicationCoverage = strictObject({
|
|
9072
9177
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9073
9178
|
query: string(),
|
|
@@ -9112,7 +9217,7 @@ var preparationCommunications = strictObject({
|
|
|
9112
9217
|
}))
|
|
9113
9218
|
});
|
|
9114
9219
|
|
|
9115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9116
9221
|
var meetingPreparation = strictObject({
|
|
9117
9222
|
communications: optional(preparationCommunications),
|
|
9118
9223
|
schema_version: literal(1),
|
|
@@ -9225,7 +9330,7 @@ var meetingPreparation = strictObject({
|
|
|
9225
9330
|
})
|
|
9226
9331
|
});
|
|
9227
9332
|
|
|
9228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9229
9334
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9230
9335
|
var id3 = pipe(string(), minLength(1));
|
|
9231
9336
|
var text3 = string();
|
|
@@ -9289,7 +9394,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9289
9394
|
})
|
|
9290
9395
|
});
|
|
9291
9396
|
|
|
9292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9293
9398
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9294
9399
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9295
9400
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9319,7 +9424,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9319
9424
|
})
|
|
9320
9425
|
});
|
|
9321
9426
|
|
|
9322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9323
9428
|
var text4 = string();
|
|
9324
9429
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9325
9430
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9336,7 +9441,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9336
9441
|
persistence: literal("proposal-only")
|
|
9337
9442
|
});
|
|
9338
9443
|
|
|
9339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9340
9445
|
var memory = strictObject({
|
|
9341
9446
|
ref: reference,
|
|
9342
9447
|
id,
|
|
@@ -9363,7 +9468,7 @@ var memory = strictObject({
|
|
|
9363
9468
|
updated_at: time
|
|
9364
9469
|
});
|
|
9365
9470
|
|
|
9366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9367
9472
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9368
9473
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9369
9474
|
var mention = strictObject({
|
|
@@ -9406,13 +9511,13 @@ var mentionRebuild = strictObject({
|
|
|
9406
9511
|
mentions: count2
|
|
9407
9512
|
});
|
|
9408
9513
|
|
|
9409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9410
9515
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9411
9516
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9412
9517
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9413
9518
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9414
9519
|
|
|
9415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9416
9521
|
var messageTranscript = strictObject({
|
|
9417
9522
|
message_id: id,
|
|
9418
9523
|
text,
|
|
@@ -9470,7 +9575,7 @@ var evidencePacket = strictObject({
|
|
|
9470
9575
|
}))
|
|
9471
9576
|
});
|
|
9472
9577
|
|
|
9473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9474
9579
|
var messageThread = strictObject({
|
|
9475
9580
|
ref: reference,
|
|
9476
9581
|
chat: id,
|
|
@@ -9487,7 +9592,7 @@ var messageThread = strictObject({
|
|
|
9487
9592
|
});
|
|
9488
9593
|
var messageContext = union([message, messageThread]);
|
|
9489
9594
|
|
|
9490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9491
9596
|
var messageCounts = strictObject({
|
|
9492
9597
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9493
9598
|
total: count2,
|
|
@@ -9500,7 +9605,7 @@ var messageCounts = strictObject({
|
|
|
9500
9605
|
}))
|
|
9501
9606
|
});
|
|
9502
9607
|
|
|
9503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9504
9609
|
var messageLink = strictObject({
|
|
9505
9610
|
ref: reference,
|
|
9506
9611
|
url: nullable(text),
|
|
@@ -9517,7 +9622,7 @@ var messageLink = strictObject({
|
|
|
9517
9622
|
})))
|
|
9518
9623
|
});
|
|
9519
9624
|
|
|
9520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9521
9626
|
var savedMessageFile = strictObject({
|
|
9522
9627
|
kind: text,
|
|
9523
9628
|
path: text,
|
|
@@ -9604,7 +9709,7 @@ var messageSyncAll = strictObject({
|
|
|
9604
9709
|
var messageSyncStarted = strictObject({ job: id, pid: count2, chat: text, log: text });
|
|
9605
9710
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9606
9711
|
|
|
9607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9608
9713
|
var messageWrite = strictObject({
|
|
9609
9714
|
operation_id: id,
|
|
9610
9715
|
message,
|
|
@@ -9619,7 +9724,7 @@ var draftWrite = strictObject({
|
|
|
9619
9724
|
});
|
|
9620
9725
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9621
9726
|
|
|
9622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9623
9728
|
var model2 = strictObject({
|
|
9624
9729
|
id,
|
|
9625
9730
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9636,7 +9741,7 @@ var model2 = strictObject({
|
|
|
9636
9741
|
path: text
|
|
9637
9742
|
});
|
|
9638
9743
|
|
|
9639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9640
9745
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9641
9746
|
var modelKey = strictObject({
|
|
9642
9747
|
provider: text,
|
|
@@ -9646,7 +9751,7 @@ var modelKey = strictObject({
|
|
|
9646
9751
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9647
9752
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9648
9753
|
|
|
9649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
9650
9755
|
var link = {
|
|
9651
9756
|
target_text: nullable(text),
|
|
9652
9757
|
kind: text,
|
|
@@ -9687,7 +9792,7 @@ var note = strictObject({
|
|
|
9687
9792
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
9688
9793
|
});
|
|
9689
9794
|
|
|
9690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9691
9796
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9692
9797
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9693
9798
|
var graph = strictObject({
|
|
@@ -9721,14 +9826,14 @@ var officialStats = strictObject({
|
|
|
9721
9826
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9722
9827
|
});
|
|
9723
9828
|
|
|
9724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9725
9830
|
var person2 = strictObject({
|
|
9726
9831
|
ref: reference,
|
|
9727
9832
|
name: nullable(text),
|
|
9728
9833
|
identities: optional(array(identity))
|
|
9729
9834
|
});
|
|
9730
9835
|
|
|
9731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9732
9837
|
var poll = strictObject({
|
|
9733
9838
|
chat_id: id,
|
|
9734
9839
|
message_id: id,
|
|
@@ -9744,11 +9849,11 @@ var poll = strictObject({
|
|
|
9744
9849
|
});
|
|
9745
9850
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9746
9851
|
|
|
9747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9748
9853
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9749
9854
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9750
9855
|
|
|
9751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9752
9857
|
var figures = record(string(), number());
|
|
9753
9858
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9754
9859
|
var rankingRow = strictObject({
|
|
@@ -9795,7 +9900,7 @@ var ranking = strictObject({
|
|
|
9795
9900
|
rows: array(rankingRow)
|
|
9796
9901
|
});
|
|
9797
9902
|
|
|
9798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9799
9904
|
var reaction = strictObject({
|
|
9800
9905
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9801
9906
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9803,7 +9908,7 @@ var reaction = strictObject({
|
|
|
9803
9908
|
reacted_at: time
|
|
9804
9909
|
});
|
|
9805
9910
|
|
|
9806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9807
9912
|
var reactionChange = strictObject({
|
|
9808
9913
|
operation_id: id,
|
|
9809
9914
|
chat_id: id,
|
|
@@ -9811,7 +9916,7 @@ var reactionChange = strictObject({
|
|
|
9811
9916
|
reaction: nullable(text)
|
|
9812
9917
|
});
|
|
9813
9918
|
|
|
9814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9815
9920
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9816
9921
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9817
9922
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9822,7 +9927,7 @@ var recipientChange = strictObject({
|
|
|
9822
9927
|
...partial(recipientOff).entries
|
|
9823
9928
|
});
|
|
9824
9929
|
|
|
9825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9826
9931
|
var events = array(record(string(), unknown()));
|
|
9827
9932
|
var recordedRun = strictObject({
|
|
9828
9933
|
run_id: id,
|
|
@@ -9894,7 +9999,7 @@ var runHit = strictObject({
|
|
|
9894
9999
|
});
|
|
9895
10000
|
var runLocation = strictObject({ path: text });
|
|
9896
10001
|
|
|
9897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9898
10003
|
var relationship = strictObject({
|
|
9899
10004
|
id,
|
|
9900
10005
|
from: reference,
|
|
@@ -9911,7 +10016,24 @@ var relationship = strictObject({
|
|
|
9911
10016
|
created_at: time
|
|
9912
10017
|
});
|
|
9913
10018
|
|
|
9914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10020
|
+
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10021
|
+
var figures2 = { replies: count2, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10022
|
+
var responseTimes = strictObject({
|
|
10023
|
+
who: picklist(["me", "others"]),
|
|
10024
|
+
...figures2,
|
|
10025
|
+
buckets: strictObject({ under_5m: count2, under_1h: count2, under_1d: count2, over_1d: count2 }),
|
|
10026
|
+
/** One row per calendar day of the reply; empty with `--by total`. */
|
|
10027
|
+
rows: array(strictObject({ key: text, ...figures2 }))
|
|
10028
|
+
});
|
|
10029
|
+
var waitingChats = strictObject({
|
|
10030
|
+
chats: count2,
|
|
10031
|
+
messages: count2,
|
|
10032
|
+
oldest_at: nullable(time),
|
|
10033
|
+
by_kind: strictObject({ private: count2, group: count2 })
|
|
10034
|
+
});
|
|
10035
|
+
|
|
10036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9915
10037
|
var retentionCohort = strictObject({
|
|
9916
10038
|
/** The first day of the joining day or week. */
|
|
9917
10039
|
cohort: text,
|
|
@@ -9959,7 +10081,7 @@ var retention = strictObject({
|
|
|
9959
10081
|
rows: array(retentionCohort)
|
|
9960
10082
|
});
|
|
9961
10083
|
|
|
9962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
9963
10085
|
var savedSearch = strictObject({
|
|
9964
10086
|
id,
|
|
9965
10087
|
/** `null` for a run in the history. */
|
|
@@ -9976,7 +10098,7 @@ var savedSearch = strictObject({
|
|
|
9976
10098
|
});
|
|
9977
10099
|
var searchHistoryClear = strictObject({ cleared: count2 });
|
|
9978
10100
|
|
|
9979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
9980
10102
|
var sendAttempt = strictObject({
|
|
9981
10103
|
at: time,
|
|
9982
10104
|
profile: text,
|
|
@@ -10004,7 +10126,7 @@ var sendAttempt = strictObject({
|
|
|
10004
10126
|
error_code: optional(text)
|
|
10005
10127
|
});
|
|
10006
10128
|
|
|
10007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10008
10130
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10009
10131
|
var schema = strictObject({ version: count2, min_compatible: count2, writable: boolean(), speaks: count2 });
|
|
10010
10132
|
var infoSchema = strictObject({
|
|
@@ -10212,7 +10334,7 @@ var storeRepair = union([
|
|
|
10212
10334
|
]);
|
|
10213
10335
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count2 }) });
|
|
10214
10336
|
|
|
10215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10216
10338
|
var range = strictObject({ from: number(), to: number() });
|
|
10217
10339
|
var storeChatStatus = strictObject({
|
|
10218
10340
|
chat_id: id,
|
|
@@ -10303,7 +10425,7 @@ var storeJobRetry = union([
|
|
|
10303
10425
|
]);
|
|
10304
10426
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10305
10427
|
|
|
10306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10307
10429
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10308
10430
|
var storeTable = strictObject({
|
|
10309
10431
|
name: text,
|
|
@@ -10312,7 +10434,7 @@ var storeTable = strictObject({
|
|
|
10312
10434
|
bytes: optional(nullable(count2))
|
|
10313
10435
|
});
|
|
10314
10436
|
|
|
10315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10316
10438
|
var tagTarget = variant("type", [
|
|
10317
10439
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10318
10440
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10343,7 +10465,7 @@ var automaticTags = strictObject({
|
|
|
10343
10465
|
dry_run: boolean()
|
|
10344
10466
|
});
|
|
10345
10467
|
|
|
10346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10347
10469
|
var tagging = strictObject({
|
|
10348
10470
|
tag: text,
|
|
10349
10471
|
type: picklist(TAG_TYPES),
|
|
@@ -10356,7 +10478,7 @@ var tagging = strictObject({
|
|
|
10356
10478
|
created_at: time
|
|
10357
10479
|
});
|
|
10358
10480
|
|
|
10359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10360
10482
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10361
10483
|
var taskPair = strictObject({
|
|
10362
10484
|
task: nullable(side),
|
|
@@ -10379,7 +10501,7 @@ var taskPair = strictObject({
|
|
|
10379
10501
|
created_at: time
|
|
10380
10502
|
});
|
|
10381
10503
|
|
|
10382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10383
10505
|
var nullableTime = nullable(time);
|
|
10384
10506
|
var link2 = strictObject({
|
|
10385
10507
|
id,
|
|
@@ -10549,7 +10671,7 @@ var taskReview = strictObject({
|
|
|
10549
10671
|
untrusted
|
|
10550
10672
|
});
|
|
10551
10673
|
|
|
10552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10553
10675
|
var topic = strictObject({
|
|
10554
10676
|
id,
|
|
10555
10677
|
title: text,
|
|
@@ -10563,7 +10685,7 @@ var topic = strictObject({
|
|
|
10563
10685
|
untrusted
|
|
10564
10686
|
});
|
|
10565
10687
|
|
|
10566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10567
10689
|
var ENTITIES = {
|
|
10568
10690
|
sync_progress: progress,
|
|
10569
10691
|
...MEETING_RESULT_ENTITIES,
|
|
@@ -10816,6 +10938,8 @@ var ENTITIES = {
|
|
|
10816
10938
|
topic,
|
|
10817
10939
|
folder,
|
|
10818
10940
|
message_counts: messageCounts,
|
|
10941
|
+
response_times: responseTimes,
|
|
10942
|
+
waiting_chats: waitingChats,
|
|
10819
10943
|
ranking,
|
|
10820
10944
|
admin_report: adminReport,
|
|
10821
10945
|
analysis_consent: analysisConsent,
|
|
@@ -10837,7 +10961,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10837
10961
|
return [name, definition];
|
|
10838
10962
|
})), "entityDefinitions");
|
|
10839
10963
|
|
|
10840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10841
10965
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10842
10966
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10843
10967
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10871,7 +10995,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10871
10995
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10872
10996
|
}, "answerRow");
|
|
10873
10997
|
|
|
10874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
10875
10999
|
import { join as join5 } from "node:path";
|
|
10876
11000
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
10877
11001
|
var IMAGE_MODELS = [
|
|
@@ -10925,7 +11049,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
10925
11049
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
10926
11050
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
10927
11051
|
|
|
10928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10929
11053
|
var STEPS2 = defineSteps([
|
|
10930
11054
|
...STEPS,
|
|
10931
11055
|
{
|
|
@@ -11147,7 +11271,7 @@ var STEPS2 = defineSteps([
|
|
|
11147
11271
|
}
|
|
11148
11272
|
]);
|
|
11149
11273
|
var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
11150
|
-
const definition = STEPS2.find((
|
|
11274
|
+
const definition = STEPS2.find((step2) => step2.id === id6);
|
|
11151
11275
|
if (!definition)
|
|
11152
11276
|
throw new Error(`no step "${id6}"`);
|
|
11153
11277
|
const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
|
|
@@ -11170,34 +11294,34 @@ var commandAt = /* @__PURE__ */ __name((root, path2) => {
|
|
|
11170
11294
|
at2 = at2?.commands.find((one) => one.name() === word || one.aliases().includes(word));
|
|
11171
11295
|
return at2 === root ? void 0 : at2;
|
|
11172
11296
|
}, "commandAt");
|
|
11173
|
-
var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((
|
|
11174
|
-
var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((
|
|
11175
|
-
if (
|
|
11176
|
-
return
|
|
11177
|
-
const effects = targets(
|
|
11178
|
-
return { ...
|
|
11297
|
+
var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((step2) => step2.kind === "user_action" || commandAt(root, step2.command) !== void 0).slice(0, MAX_NEXT_STEPS), judgedTargets(root)), "runnable");
|
|
11298
|
+
var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
|
|
11299
|
+
if (step2.kind === "user_action")
|
|
11300
|
+
return step2;
|
|
11301
|
+
const effects = targets(step2.command)?.effects;
|
|
11302
|
+
return { ...step2, safe_to_auto_execute: effects !== void 0 && !writes(effects) };
|
|
11179
11303
|
}), "withSafety");
|
|
11180
|
-
var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((
|
|
11304
|
+
var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: stepLine(root, step2) } : step2), "withLines");
|
|
11181
11305
|
var kebab = /* @__PURE__ */ __name((name) => name.replaceAll("_", "-"), "kebab");
|
|
11182
11306
|
var quoted2 = /* @__PURE__ */ __name((value) => {
|
|
11183
11307
|
const text5 = String(value);
|
|
11184
11308
|
return /^[\w@:./+-]+$/.test(text5) ? text5 : JSON.stringify(text5);
|
|
11185
11309
|
}, "quoted");
|
|
11186
|
-
var stepLine = /* @__PURE__ */ __name((root,
|
|
11187
|
-
const command = commandAt(root,
|
|
11310
|
+
var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
11311
|
+
const command = commandAt(root, step2.command);
|
|
11188
11312
|
const positional = new Set(command?.registeredArguments.map((argument) => argument.name()) ?? []);
|
|
11189
|
-
const args = Object.entries(
|
|
11313
|
+
const args = Object.entries(step2.args).filter(([, value]) => value !== void 0 && value !== false);
|
|
11190
11314
|
const profile = root.getOptionValue("profile");
|
|
11191
11315
|
return [
|
|
11192
11316
|
root.name(),
|
|
11193
11317
|
...typeof profile === "string" && profile !== "" ? [quoted2(profile)] : [],
|
|
11194
|
-
|
|
11195
|
-
...(command?.registeredArguments ?? []).flatMap((argument) =>
|
|
11318
|
+
step2.command,
|
|
11319
|
+
...(command?.registeredArguments ?? []).flatMap((argument) => step2.args[argument.name()] === void 0 ? [] : [quoted2(step2.args[argument.name()])]),
|
|
11196
11320
|
...args.filter(([name]) => !positional.has(name)).map(([name, value]) => value === true ? `--${kebab(name)}` : `--${kebab(name)} ${quoted2(value)}`)
|
|
11197
11321
|
].join(" ");
|
|
11198
11322
|
}, "stepLine");
|
|
11199
11323
|
|
|
11200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11201
11325
|
var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
|
|
11202
11326
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11203
11327
|
var STATUS_SIGNAL_ROWS = {
|
|
@@ -11306,7 +11430,7 @@ var STATUS_ROWS = {
|
|
|
11306
11430
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11307
11431
|
};
|
|
11308
11432
|
|
|
11309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11310
11434
|
var TEXT_CHARS = 400;
|
|
11311
11435
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11312
11436
|
var messageRow = {
|
|
@@ -11586,20 +11710,20 @@ var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "", whole = []) =>
|
|
|
11586
11710
|
var footerOf = /* @__PURE__ */ __name((body) => {
|
|
11587
11711
|
const lines = [];
|
|
11588
11712
|
const steps = body.next ?? [];
|
|
11589
|
-
const lineOf2 = /* @__PURE__ */ __name((
|
|
11713
|
+
const lineOf2 = /* @__PURE__ */ __name((step2) => step2.kind === "command" ? step2.line ?? step2.command : void 0, "lineOf");
|
|
11590
11714
|
if ("items" in body && body.page.has_more) {
|
|
11591
|
-
const more = steps.find((
|
|
11715
|
+
const more = steps.find((step2) => step2.step === "page.next");
|
|
11592
11716
|
const line = more?.kind === "command" ? more.line : void 0;
|
|
11593
11717
|
const page2 = body.page;
|
|
11594
11718
|
lines.push(`# more: ${clean(line ?? (page2.mode === "cursor" && page2.next_cursor ? `--cursor ${page2.next_cursor}` : page2.mode === "page" && page2.next_page ? `--page ${page2.next_page}` : "raise --limit"))}`);
|
|
11595
11719
|
}
|
|
11596
11720
|
for (const missing of body.missing ?? [])
|
|
11597
11721
|
lines.push(`# missing: ${clean(missing.field)}: ${clean(missing.why)}`);
|
|
11598
|
-
for (const
|
|
11599
|
-
if (
|
|
11722
|
+
for (const step2 of steps) {
|
|
11723
|
+
if (step2.step === "page.next" && "items" in body)
|
|
11600
11724
|
continue;
|
|
11601
|
-
const line = lineOf2(
|
|
11602
|
-
lines.push(`# next: ${clean(
|
|
11725
|
+
const line = lineOf2(step2);
|
|
11726
|
+
lines.push(`# next: ${clean(step2.why)}${line ? `: ${clean(line)}` : ""}`);
|
|
11603
11727
|
}
|
|
11604
11728
|
if (body.meta?.complete === false) {
|
|
11605
11729
|
const issues = (body.meta.issues ?? []).map((issue) => `${clean(issue.source)}: ${clean(String(issue.code))}`);
|
|
@@ -11642,7 +11766,54 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11642
11766
|
return lines.concat(footerOf(body)).join("\n");
|
|
11643
11767
|
}, "compactText");
|
|
11644
11768
|
|
|
11645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11770
|
+
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11771
|
+
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11772
|
+
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
11773
|
+
var snake3 = /* @__PURE__ */ __name((name) => name.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
11774
|
+
var typed = /* @__PURE__ */ __name((command, key) => command.getOptionValueSource(key) === "cli", "typed");
|
|
11775
|
+
var typedArgs = /* @__PURE__ */ __name((command) => {
|
|
11776
|
+
const root = rootOf2(command);
|
|
11777
|
+
if (root.getOptionValue("fields") !== void 0)
|
|
11778
|
+
return void 0;
|
|
11779
|
+
if (command.options.some((option) => option.negate && typed(command, option.attributeName())))
|
|
11780
|
+
return void 0;
|
|
11781
|
+
const positional = command.registeredArguments.flatMap((argument, index) => {
|
|
11782
|
+
const value = command.processedArgs[index];
|
|
11783
|
+
const word = Array.isArray(value) ? value.join(" ") : value;
|
|
11784
|
+
return word === void 0 || word === "" ? [] : [[argument.name(), word]];
|
|
11785
|
+
});
|
|
11786
|
+
const own = command.options.map((option) => option.attributeName()).filter((key) => typed(command, key)).map((key) => [snake3(key), command.getOptionValue(key)]);
|
|
11787
|
+
const global = CARRIED.filter((key) => typed(root, key)).map((key) => [snake3(key), root.getOptionValue(key)]);
|
|
11788
|
+
return Object.fromEntries([...positional, ...own, ...global]);
|
|
11789
|
+
}, "typedArgs");
|
|
11790
|
+
var declaresRow = /* @__PURE__ */ __name((command) => {
|
|
11791
|
+
const { rows: rows2 } = environmentOf(command);
|
|
11792
|
+
return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
|
|
11793
|
+
}, "declaresRow");
|
|
11794
|
+
var pathOf3 = /* @__PURE__ */ __name((command) => {
|
|
11795
|
+
const words = [];
|
|
11796
|
+
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
11797
|
+
words.unshift(at2.name());
|
|
11798
|
+
return words.join(" ");
|
|
11799
|
+
}, "pathOf");
|
|
11800
|
+
var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
|
|
11801
|
+
kind: "command",
|
|
11802
|
+
step: id6,
|
|
11803
|
+
command: pathOf3(command),
|
|
11804
|
+
args,
|
|
11805
|
+
why,
|
|
11806
|
+
safe_to_auto_execute: true
|
|
11807
|
+
}), "step");
|
|
11808
|
+
var compactStep = /* @__PURE__ */ __name((command, args, why) => rootOf2(command).getOptionValue("compact") === true || !declaresRow(command) ? [] : [
|
|
11809
|
+
step(command, "output.compact", { ...Object.fromEntries(Object.entries(args).filter(([key]) => !NOT_WITH_COMPACT.has(key))), compact: true }, why)
|
|
11810
|
+
], "compactStep");
|
|
11811
|
+
var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
11812
|
+
const args = typedArgs(command);
|
|
11813
|
+
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11814
|
+
}, "largeAnswerSteps");
|
|
11815
|
+
|
|
11816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11646
11817
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11647
11818
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11648
11819
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11656,7 +11827,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11656
11827
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11657
11828
|
}, "strip");
|
|
11658
11829
|
|
|
11659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11660
11831
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11661
11832
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11662
11833
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -11699,7 +11870,7 @@ var itemOf = /* @__PURE__ */ __name((item, { next = [], missing, meta } = {}) =>
|
|
|
11699
11870
|
};
|
|
11700
11871
|
return body;
|
|
11701
11872
|
}, "itemOf");
|
|
11702
|
-
var
|
|
11873
|
+
var snake4 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
11703
11874
|
var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
|
|
11704
11875
|
const kept = new Set(verbatim);
|
|
11705
11876
|
const convert = /* @__PURE__ */ __name((value) => {
|
|
@@ -11710,7 +11881,7 @@ var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
|
|
|
11710
11881
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => {
|
|
11711
11882
|
if (inner === void 0)
|
|
11712
11883
|
return [];
|
|
11713
|
-
const name =
|
|
11884
|
+
const name = snake4(key);
|
|
11714
11885
|
return [[name, kept.has(key) || kept.has(name) ? inner : convert(inner)]];
|
|
11715
11886
|
}));
|
|
11716
11887
|
}, "convert");
|
|
@@ -11750,7 +11921,16 @@ var sealed = /* @__PURE__ */ __name((value) => {
|
|
|
11750
11921
|
const { meta, ...rest } = withoutProviderRefs(value);
|
|
11751
11922
|
return { ...rest, meta: metaNow(meta) };
|
|
11752
11923
|
}, "sealed");
|
|
11753
|
-
var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((
|
|
11924
|
+
var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: `${step2.line ?? stepLine(root, step2)} ${COMPACT_FLAG}` } : step2), "compactSteps");
|
|
11925
|
+
var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
|
|
11926
|
+
if ((body.next?.length ?? 0) >= MAX_NEXT_STEPS)
|
|
11927
|
+
return body;
|
|
11928
|
+
const added = largeAnswerSteps(command);
|
|
11929
|
+
if (added.length === 0 || Buffer.byteLength(JSON.stringify(body)) <= SOFT_OUTPUT_BYTES)
|
|
11930
|
+
return body;
|
|
11931
|
+
const root = rootOf2(command);
|
|
11932
|
+
return { ...body, next: [...body.next ?? [], ...withLines(root, runnable(root, added))] };
|
|
11933
|
+
}, "withLargeAnswerStep");
|
|
11754
11934
|
var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body : { items: [body.item], page: { mode: "page", limit: 1, has_more: false }, meta: body.meta }), "linesOf");
|
|
11755
11935
|
var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
|
|
11756
11936
|
var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
|
|
@@ -11762,9 +11942,10 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
11762
11942
|
const kept = withoutProviderRefs({ ...body, ...next.length > 0 ? { next } : {} });
|
|
11763
11943
|
if (next.length === 0)
|
|
11764
11944
|
delete kept.next;
|
|
11765
|
-
const
|
|
11945
|
+
const sealedBody = sealed(kept);
|
|
11766
11946
|
const environment = environmentOf(command);
|
|
11767
11947
|
const drawn = compact && !environment.agent;
|
|
11948
|
+
const whole = format === "json" && !drawn && !environment.agent ? withLargeAnswerStep(command, sealedBody) : sealedBody;
|
|
11768
11949
|
if (drawn) {
|
|
11769
11950
|
const lined = whole.next ? { ...whole, next: compactSteps(root, whole.next) } : whole;
|
|
11770
11951
|
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -11784,8 +11965,8 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
11784
11965
|
setExitCode(command, code);
|
|
11785
11966
|
if (drawn || format === "json")
|
|
11786
11967
|
return;
|
|
11787
|
-
for (const
|
|
11788
|
-
renderer.note(
|
|
11968
|
+
for (const step2 of next)
|
|
11969
|
+
renderer.note(step2.kind === "command" ? `\u2192 ${step2.why}: ${stepLine(root, step2)}` : `\u2192 ${step2.why}`);
|
|
11789
11970
|
}, "renderAnswer");
|
|
11790
11971
|
var renderDocument = /* @__PURE__ */ __name(({ renderer }, document2) => renderer.result(document2), "renderDocument");
|
|
11791
11972
|
var itemAnswer = /* @__PURE__ */ __name((item) => sealed(itemOf(item)), "itemAnswer");
|
|
@@ -11900,6 +12081,8 @@ export {
|
|
|
11900
12081
|
readConfigFile,
|
|
11901
12082
|
rememberAccount,
|
|
11902
12083
|
recalledAccount,
|
|
12084
|
+
withSettingDefaults,
|
|
12085
|
+
settingRows,
|
|
11903
12086
|
NONE_NAMED,
|
|
11904
12087
|
namedProfile,
|
|
11905
12088
|
NoProfileHere,
|
|
@@ -12009,7 +12192,6 @@ export {
|
|
|
12009
12192
|
rowsOfEntity,
|
|
12010
12193
|
rowShapeOf,
|
|
12011
12194
|
compactText,
|
|
12012
|
-
withoutProviderRefs,
|
|
12013
12195
|
IMAGE_MODELS,
|
|
12014
12196
|
DEFAULT_IMAGE_MODEL,
|
|
12015
12197
|
imageModel,
|
|
@@ -12022,6 +12204,7 @@ export {
|
|
|
12022
12204
|
commandAt,
|
|
12023
12205
|
runnable,
|
|
12024
12206
|
stepLine,
|
|
12207
|
+
withoutProviderRefs,
|
|
12025
12208
|
answerSchema,
|
|
12026
12209
|
listOf,
|
|
12027
12210
|
itemOf,
|