@wirecat/mail-cli 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/README.md +37 -11
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-TKMBELRZ.js → all-profiles-7WILOT5E.js} +5 -5
- package/dist/bundle/{anthropic-7LMUAEIZ.js → anthropic-NHWLIMEZ.js} +3 -3
- package/dist/bundle/{app-server-JGMIJDD4.js → app-server-XDMYCJLV.js} +39 -39
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-GTG5IYLQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-Z54LEHVM.js → bun-sqlite-KGH5F33G.js} +2 -2
- package/dist/bundle/{chunk-JVMVLITS.js → chunk-2X4WYZPA.js} +4 -2
- package/dist/bundle/{chunk-GN62YOT5.js → chunk-4I3YT5KK.js} +4 -4
- package/dist/bundle/{chunk-MS53RALV.js → chunk-5FLW25US.js} +5 -5
- package/dist/bundle/{chunk-FZ5FXIG6.js → chunk-5JOKRFWE.js} +1 -1
- package/dist/bundle/{chunk-KHTO2Q6E.js → chunk-6HIW7IJL.js} +4 -4
- package/dist/bundle/{chunk-TVREDYX4.js → chunk-76IKLP2M.js} +95 -91
- package/dist/bundle/{chunk-ZANYM66S.js → chunk-77VHMI3A.js} +1 -1
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-7LKJDJNS.js} +1 -1
- package/dist/bundle/{chunk-WLFLBWNH.js → chunk-7QEE5I7H.js} +2 -2
- package/dist/bundle/{chunk-6MAZWSC3.js → chunk-7REG25RM.js} +3 -3
- package/dist/bundle/{chunk-TWTATDM7.js → chunk-AJIT2T3F.js} +6 -6
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-AROBJF5P.js} +1 -1
- package/dist/bundle/{chunk-NK7EB63L.js → chunk-BKZEYTLU.js} +849 -440
- package/dist/bundle/{chunk-4FEMINO2.js → chunk-BPF7IXJT.js} +5 -5
- package/dist/bundle/{chunk-BTQX2ZSZ.js → chunk-BUOSCMCD.js} +2 -2
- package/dist/bundle/{chunk-5NYMNSSO.js → chunk-CT7NG7BI.js} +3 -3
- package/dist/bundle/{chunk-TWPDVUBR.js → chunk-D7UZXUSB.js} +2 -2
- package/dist/bundle/{chunk-OTUOZ33L.js → chunk-DDMJ3RVO.js} +2 -2
- package/dist/bundle/{chunk-3KEVLSNN.js → chunk-EKE3R36Y.js} +46 -8
- package/dist/bundle/{chunk-YO4CUH5E.js → chunk-ETPT7TPW.js} +1 -1
- package/dist/bundle/{chunk-3KOA73LS.js → chunk-GPAAQ6LY.js} +14 -14
- package/dist/bundle/{chunk-GQQJOH7A.js → chunk-GQKYSGIA.js} +58 -46
- package/dist/bundle/{chunk-QLEUNU6G.js → chunk-H5BW7454.js} +4 -4
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-H66ZMBDD.js} +1 -1
- package/dist/bundle/{chunk-VEIZZRQ5.js → chunk-H7NUGJPV.js} +12 -3
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-H7XOHNRY.js} +1 -1
- package/dist/bundle/{chunk-F6D6PJ34.js → chunk-HJRUFT5Y.js} +5 -5
- package/dist/bundle/{chunk-5WGEUDE4.js → chunk-MABCR67K.js} +1 -1
- package/dist/bundle/{chunk-IK5TH3O7.js → chunk-MDVXIPA3.js} +10 -10
- package/dist/bundle/{chunk-YPQQ5J4X.js → chunk-QJHCKFFC.js} +16 -16
- package/dist/bundle/{chunk-Z34ICZA3.js → chunk-QLYHLW54.js} +5 -5
- package/dist/bundle/{chunk-7SXGLT6T.js → chunk-QUGFBY7O.js} +9 -8
- package/dist/bundle/{chunk-CEW6KIFA.js → chunk-QUSZWBZF.js} +21 -21
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-R5JD4GMA.js} +1 -1
- package/dist/bundle/{chunk-K4FVKPDQ.js → chunk-S2GSU4MT.js} +9 -9
- package/dist/bundle/{chunk-T6464KYA.js → chunk-STC45HZX.js} +204 -203
- package/dist/bundle/{chunk-75CWWETH.js → chunk-SVNTRF5O.js} +11 -11
- package/dist/bundle/{chunk-GWDCKUBI.js → chunk-THVLMTH7.js} +30 -29
- package/dist/bundle/{chunk-4E7BN3TC.js → chunk-TMVIQJCG.js} +2 -2
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-UZR3IKS7.js} +1 -1
- package/dist/bundle/{chunk-CH6RXYAX.js → chunk-VBLFQJY3.js} +1 -1
- package/dist/bundle/{chunk-GAH7N7HO.js → chunk-VRQRBVKT.js} +44 -44
- package/dist/bundle/{chunk-GK4M2SUP.js → chunk-VWO3XXSF.js} +1 -1
- package/dist/bundle/{chunk-QQB7WT7R.js → chunk-WJ3LUWRN.js} +3 -3
- package/dist/bundle/{chunk-3E3WA2L6.js → chunk-Y5WA7AOA.js} +21 -21
- package/dist/bundle/{chunk-TE5U5OAM.js → chunk-Y6KUKIQZ.js} +2 -2
- package/dist/bundle/{chunk-J6MSJLIW.js → chunk-YQAUH3PN.js} +1 -1
- package/dist/bundle/{chunk-MNOIRJEO.js → chunk-Z6F7EXT2.js} +7 -7
- package/dist/bundle/{chunk-WXAXYJJ7.js → chunk-ZKH5CHGI.js} +5 -5
- package/dist/bundle/{chunk-UH4DDRHA.js → chunk-ZNYJG4AY.js} +42 -42
- package/dist/bundle/{command-contract-WU434ZUL.js → command-contract-Y42ULKE5.js} +13 -13
- package/dist/bundle/{decode-YB3ZDTES.js → decode-L4X542L3.js} +2 -2
- package/dist/bundle/{dist-X36THCOF.js → dist-HFUVURJG.js} +1 -1
- package/dist/bundle/{dist-A6GKSKFC.js → dist-WKIRHOLK.js} +14 -14
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-G6QLXR4X.js} +2 -2
- package/dist/bundle/{embed-LWNHIRBQ.js → embed-E33ZBHQR.js} +3 -3
- package/dist/bundle/{embedder-2LYD3U37.js → embedder-EMBCIVGF.js} +6 -6
- package/dist/bundle/{first-run-N3HJKGU7.js → first-run-WF2HF5FI.js} +5 -5
- package/dist/bundle/{first-screen-4U2DMV3G.js → first-screen-DZFOUUZC.js} +14 -14
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-DUH7265J.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-GFOH6FKP.js → node-73PKCCE7.js} +2 -2
- package/dist/bundle/{node-sqlite-NBXQXBIU.js → node-sqlite-FDD5N6GC.js} +2 -2
- package/dist/bundle/{oauth-56EFO5AQ.js → oauth-ND3K2F7B.js} +4 -4
- package/dist/bundle/{open-2V7QZQJP.js → open-FZYY6TKE.js} +1 -1
- package/dist/bundle/{openai-V3SVACVL.js → openai-BXOF6XIM.js} +10 -10
- package/dist/bundle/{process-XVDX4SPD.js → process-TXIK4VJP.js} +1 -1
- package/dist/bundle/{program-ILID6EAT.js → program-2SUR4WOS.js} +1700 -1459
- package/dist/bundle/{prompt-YKWAI222.js → prompt-I5GCP73M.js} +2 -2
- package/dist/bundle/{recognize-PAR66KVM.js → recognize-ILYEKXVB.js} +1 -1
- package/dist/bundle/{remote-CE43TKXC.js → remote-SSPZEAJ7.js} +4 -4
- package/dist/bundle/{rerank-M7S7P2TW.js → rerank-NAO5RMGB.js} +4 -4
- package/dist/bundle/{serve-ENPMIV6J.js → serve-UDXIEQKC.js} +6 -6
- package/dist/bundle/{server-MBEZLVKZ.js → server-KTPELKAN.js} +31 -31
- package/dist/bundle/server-UZFSEKNJ.js +63 -0
- package/dist/bundle/{sqlite-runtime-HVGDHBJJ.js → sqlite-runtime-AONFLND6.js} +2 -2
- package/dist/bundle/{state-QZSOSKBD.js → state-I4PLX3UB.js} +3 -3
- package/dist/bundle/{store-UJ7SNKXI.js → store-OHQH3MGN.js} +30 -12
- package/dist/bundle/{store-2BUX6LVX.js → store-ZPPRXGPY.js} +9 -9
- package/dist/bundle/store-maintenance-command-QOYXEBT6.js +52 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +6 -5
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/context.d.ts +19 -8
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +14 -10
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/folders.js +4 -4
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/login.d.ts +2 -2
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +3 -5
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/mailbox.d.ts +2 -1
- package/dist/commands/mailbox.d.ts.map +1 -1
- package/dist/commands/mailbox.js.map +1 -1
- package/dist/commands/session-start.d.ts +3 -0
- package/dist/commands/session-start.d.ts.map +1 -0
- package/dist/commands/session-start.js +117 -0
- package/dist/commands/session-start.js.map +1 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +9 -117
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +8 -20
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +49 -26
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -0
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts +4 -15
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +19 -92
- package/dist/discovery.js.map +1 -1
- package/dist/mail/backend.d.ts +36 -0
- package/dist/mail/backend.d.ts.map +1 -0
- package/dist/mail/backend.js +2 -0
- package/dist/mail/backend.js.map +1 -0
- package/dist/mail/imap/account.d.ts +5 -0
- package/dist/mail/imap/account.d.ts.map +1 -0
- package/dist/mail/imap/account.js +41 -0
- package/dist/mail/imap/account.js.map +1 -0
- package/dist/mail/imap/connection.d.ts +62 -0
- package/dist/mail/imap/connection.d.ts.map +1 -0
- package/dist/mail/imap/connection.js +188 -0
- package/dist/mail/imap/connection.js.map +1 -0
- package/dist/mail/{imap-errors.d.ts → imap/errors.d.ts} +1 -1
- package/dist/mail/imap/errors.d.ts.map +1 -0
- package/dist/mail/{imap-errors.js → imap/errors.js} +1 -1
- package/dist/mail/imap/errors.js.map +1 -0
- package/dist/mail/imap/index.d.ts +7 -0
- package/dist/mail/imap/index.d.ts.map +1 -0
- package/dist/mail/imap/index.js +11 -0
- package/dist/mail/imap/index.js.map +1 -0
- package/dist/mail/{imap-messages.d.ts → imap/messages.d.ts} +9 -9
- package/dist/mail/imap/messages.d.ts.map +1 -0
- package/dist/mail/imap/messages.js +66 -0
- package/dist/mail/imap/messages.js.map +1 -0
- package/dist/mail/imap/read.d.ts +7 -0
- package/dist/mail/imap/read.d.ts.map +1 -0
- package/dist/mail/imap/read.js +164 -0
- package/dist/mail/imap/read.js.map +1 -0
- package/dist/mail/rethread.d.ts +15 -0
- package/dist/mail/rethread.d.ts.map +1 -0
- package/dist/mail/rethread.js +52 -0
- package/dist/mail/rethread.js.map +1 -0
- package/dist/profile.d.ts +2 -1
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +1 -0
- package/dist/profile.js.map +1 -1
- package/dist/providers.d.ts +126 -26
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +141 -72
- package/dist/providers.js.map +1 -1
- package/dist/secret.d.ts +2 -1
- package/dist/secret.d.ts.map +1 -1
- package/dist/secret.js +1 -0
- package/dist/secret.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- package/skills/mail-cli/SKILL.md +8 -0
- package/dist/bundle/server-JRTHUCVY.js +0 -63
- package/dist/bundle/store-maintenance-command-I7V5C44K.js +0 -52
- package/dist/commands/doctor.d.ts +0 -77
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -74
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -3
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -97
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -3
- package/dist/commands/setup.d.ts.map +0 -1
- package/dist/commands/setup.js +0 -156
- package/dist/commands/setup.js.map +0 -1
- package/dist/mail/imap-errors.d.ts.map +0 -1
- package/dist/mail/imap-errors.js.map +0 -1
- package/dist/mail/imap-messages.d.ts.map +0 -1
- package/dist/mail/imap-messages.js +0 -66
- package/dist/mail/imap-messages.js.map +0 -1
- package/dist/mail/imap.d.ts +0 -67
- package/dist/mail/imap.d.ts.map +0 -1
- package/dist/mail/imap.js +0 -348
- package/dist/mail/imap.js.map +0 -1
- package/dist/mail/parse.d.ts +0 -18
- package/dist/mail/parse.d.ts.map +0 -1
- package/dist/mail/parse.js +0 -31
- package/dist/mail/parse.js.map +0 -1
- package/dist/mail/port.d.ts +0 -50
- package/dist/mail/port.d.ts.map +0 -1
- package/dist/mail/port.js +0 -4
- package/dist/mail/port.js.map +0 -1
- package/dist/mcp.d.ts +0 -29
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -98
- package/dist/mcp.js.map +0 -1
- package/dist/sync.d.ts +0 -26
- package/dist/sync.d.ts.map +0 -1
- package/dist/sync.js +0 -75
- package/dist/sync.js.map +0 -1
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-H5BW7454.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -24,37 +24,38 @@ import {
|
|
|
24
24
|
providerErrorKey,
|
|
25
25
|
renderEvent,
|
|
26
26
|
runContextOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QUGFBY7O.js";
|
|
28
28
|
import {
|
|
29
29
|
permissionCeiling
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7QEE5I7H.js";
|
|
31
31
|
import {
|
|
32
32
|
count,
|
|
33
33
|
id,
|
|
34
34
|
text,
|
|
35
35
|
time
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7REG25RM.js";
|
|
37
37
|
import {
|
|
38
|
+
PRIORITY_LABELS,
|
|
38
39
|
TASK_ORIGINS,
|
|
39
40
|
TASK_STATES,
|
|
40
41
|
TASK_TYPES
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-EKE3R36Y.js";
|
|
42
43
|
import {
|
|
43
44
|
FIELD_TYPES,
|
|
44
45
|
QUERY_BACKENDS,
|
|
45
46
|
TAG_TYPES,
|
|
46
47
|
describeQuery
|
|
47
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ZNYJG4AY.js";
|
|
48
49
|
import {
|
|
49
50
|
sharedConfigPath
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-6HIW7IJL.js";
|
|
51
52
|
import {
|
|
52
53
|
filesPresent,
|
|
53
54
|
sharedModelsDirectory
|
|
54
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-CT7NG7BI.js";
|
|
55
56
|
import {
|
|
56
57
|
storePath
|
|
57
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-5JOKRFWE.js";
|
|
58
59
|
import {
|
|
59
60
|
configFilePath,
|
|
60
61
|
createRecordLog,
|
|
@@ -112,7 +113,7 @@ import {
|
|
|
112
113
|
__name
|
|
113
114
|
} from "./chunk-ZVVMGPBJ.js";
|
|
114
115
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
116
117
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
117
118
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
118
119
|
const name = envName(app, "READ_ONLY");
|
|
@@ -3823,7 +3824,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3823
3824
|
}
|
|
3824
3825
|
}, "refuseJoinedPath");
|
|
3825
3826
|
|
|
3826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3827
3828
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3828
3829
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
3829
3830
|
messageId: message.id,
|
|
@@ -3929,7 +3930,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
3929
3930
|
}, "guardedWrite");
|
|
3930
3931
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
3931
3932
|
|
|
3932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
3933
3934
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
3934
3935
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
3935
3936
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4111,7 +4112,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4111
4112
|
}
|
|
4112
4113
|
}, "withAbort");
|
|
4113
4114
|
|
|
4114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4115
4116
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4116
4117
|
import { join } from "node:path";
|
|
4117
4118
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4133,7 +4134,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4133
4134
|
}, "profilesWithAccounts");
|
|
4134
4135
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4135
4136
|
|
|
4136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4137
4138
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4138
4139
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4139
4140
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -4176,7 +4177,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
4176
4177
|
};
|
|
4177
4178
|
}, "runBudget");
|
|
4178
4179
|
|
|
4179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4180
4181
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4181
4182
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4182
4183
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4210,7 +4211,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4210
4211
|
cache: "cache.answered"
|
|
4211
4212
|
};
|
|
4212
4213
|
|
|
4213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4214
4215
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4215
4216
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4216
4217
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4223,13 +4224,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4223
4224
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
4224
4225
|
}), "snakeLogger");
|
|
4225
4226
|
|
|
4226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4227
4228
|
import { randomUUID } from "node:crypto";
|
|
4228
4229
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4229
4230
|
import { userInfo } from "node:os";
|
|
4230
4231
|
import { join as join2, sep } from "node:path";
|
|
4231
4232
|
|
|
4232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4233
4234
|
var diagnostic = {
|
|
4234
4235
|
event: true,
|
|
4235
4236
|
operation: true,
|
|
@@ -4299,7 +4300,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4299
4300
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4300
4301
|
].sort();
|
|
4301
4302
|
|
|
4302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4303
4304
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4304
4305
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4305
4306
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -4652,7 +4653,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
4652
4653
|
};
|
|
4653
4654
|
}, "metadataOf");
|
|
4654
4655
|
|
|
4655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
4656
4657
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
4657
4658
|
import { randomBytes } from "node:crypto";
|
|
4658
4659
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -4688,7 +4689,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
|
|
|
4688
4689
|
var attempts = new AsyncLocalStorage2();
|
|
4689
4690
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
4690
4691
|
|
|
4691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4692
4693
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4693
4694
|
const recording = startRecording(options);
|
|
4694
4695
|
try {
|
|
@@ -4873,7 +4874,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4873
4874
|
return void 0;
|
|
4874
4875
|
}, "partialOutcome");
|
|
4875
4876
|
|
|
4876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4877
4878
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
4878
4879
|
if (ms === void 0)
|
|
4879
4880
|
return body();
|
|
@@ -4899,7 +4900,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
4899
4900
|
}
|
|
4900
4901
|
}, "withDeadline");
|
|
4901
4902
|
|
|
4902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4903
4904
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4904
4905
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4905
4906
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4968,10 +4969,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4968
4969
|
return void 0;
|
|
4969
4970
|
}, "sampleCommand");
|
|
4970
4971
|
|
|
4971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
4972
4973
|
import { existsSync as existsSync3 } from "node:fs";
|
|
4973
4974
|
|
|
4974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
4975
4976
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
4976
4977
|
try {
|
|
4977
4978
|
const url2 = new URL(value);
|
|
@@ -4981,7 +4982,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
4981
4982
|
}
|
|
4982
4983
|
}, "endpoint");
|
|
4983
4984
|
|
|
4984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4985
4986
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4986
4987
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4987
4988
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5050,7 +5051,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5050
5051
|
};
|
|
5051
5052
|
}, "modelTarget");
|
|
5052
5053
|
|
|
5053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5054
5055
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5055
5056
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5056
5057
|
var AI_FIELDS = {
|
|
@@ -5094,7 +5095,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5094
5095
|
};
|
|
5095
5096
|
}, "resolveAISettings");
|
|
5096
5097
|
|
|
5097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5098
5099
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5099
5100
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5100
5101
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -5108,7 +5109,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
5108
5109
|
return ms;
|
|
5109
5110
|
}, "parseDuration");
|
|
5110
5111
|
|
|
5111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5112
5113
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5113
5114
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5114
5115
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5267,7 +5268,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
5267
5268
|
var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
|
|
5268
5269
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5269
5270
|
|
|
5270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5271
5272
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5272
5273
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5273
5274
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -5557,7 +5558,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5557
5558
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5558
5559
|
}, "readConfigFile");
|
|
5559
5560
|
|
|
5560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5561
5562
|
import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5562
5563
|
import { dirname, join as join3 } from "node:path";
|
|
5563
5564
|
var DEFAULT_CONFIG = {
|
|
@@ -5586,7 +5587,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5586
5587
|
}
|
|
5587
5588
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5588
5589
|
|
|
5589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5590
5591
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5591
5592
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5592
5593
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5976,7 +5977,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5976
5977
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5977
5978
|
}, "given");
|
|
5978
5979
|
|
|
5979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5980
5981
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
5981
5982
|
const { deadline, signal, app } = environmentOf(command);
|
|
5982
5983
|
const now = deadline?.();
|
|
@@ -6093,7 +6094,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6093
6094
|
return words.join(" ");
|
|
6094
6095
|
}, "commandPath");
|
|
6095
6096
|
|
|
6096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6097
6098
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6098
6099
|
var FETCH = { remote: "read", local: "write" };
|
|
6099
6100
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6195,7 +6196,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6195
6196
|
throw readOnlyRefusal(lock, what);
|
|
6196
6197
|
}, "refuseUnderReadOnly");
|
|
6197
6198
|
|
|
6198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
6199
6200
|
import { join as join4 } from "node:path";
|
|
6200
6201
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
6201
6202
|
var IMAGE_MODELS = [
|
|
@@ -6249,7 +6250,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
6249
6250
|
var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
|
|
6250
6251
|
var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
|
|
6251
6252
|
|
|
6252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
6253
6254
|
var STEPS2 = defineSteps([
|
|
6254
6255
|
...STEPS,
|
|
6255
6256
|
{
|
|
@@ -6516,7 +6517,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
6516
6517
|
].join(" ");
|
|
6517
6518
|
}, "stepLine");
|
|
6518
6519
|
|
|
6519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
6520
6521
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
6521
6522
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
6522
6523
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -6530,7 +6531,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
6530
6531
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
6531
6532
|
}, "strip");
|
|
6532
6533
|
|
|
6533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
6534
6535
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
6535
6536
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
6536
6537
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -6664,7 +6665,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
6664
6665
|
renderer.result(item);
|
|
6665
6666
|
}, "printItem");
|
|
6666
6667
|
|
|
6667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
6668
6669
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
6669
6670
|
var storeTable = strictObject({
|
|
6670
6671
|
name: text,
|
|
@@ -6673,7 +6674,7 @@ var storeTable = strictObject({
|
|
|
6673
6674
|
bytes: optional(nullable(count))
|
|
6674
6675
|
});
|
|
6675
6676
|
|
|
6676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
6677
6678
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6678
6679
|
const run = currentRun();
|
|
6679
6680
|
const trace = traceId ?? run.traceId;
|
|
@@ -6687,7 +6688,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6687
6688
|
}));
|
|
6688
6689
|
}, "recordLogFor");
|
|
6689
6690
|
|
|
6690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6691
6692
|
var attachment = strictObject({
|
|
6692
6693
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6693
6694
|
message: optional(reference),
|
|
@@ -6724,7 +6725,7 @@ var attachment = strictObject({
|
|
|
6724
6725
|
}))))
|
|
6725
6726
|
});
|
|
6726
6727
|
|
|
6727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6728
6729
|
var closeSuggestion = strictObject({
|
|
6729
6730
|
as: picklist(["done", "dismissed"]),
|
|
6730
6731
|
/** The agent's name. */
|
|
@@ -6750,7 +6751,18 @@ var task = strictObject({
|
|
|
6750
6751
|
chat: optional(nullable(reference)),
|
|
6751
6752
|
/** The message it came from. */
|
|
6752
6753
|
source_message: optional(nullable(reference)),
|
|
6754
|
+
/** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
|
|
6753
6755
|
priority: optional(nullable(number())),
|
|
6756
|
+
priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
|
|
6757
|
+
/** The agent working on it, apart from its assignees and its claim. */
|
|
6758
|
+
agent: optional(nullable(text)),
|
|
6759
|
+
/** Give it back with `--revision` to refuse a write made on a stale copy. */
|
|
6760
|
+
revision: optional(number()),
|
|
6761
|
+
assignments: optional(array(strictObject({ to: reference, role: picklist(["assignee", "reviewer", "watcher"]) }))),
|
|
6762
|
+
/** Open work whose blocked-by tasks are all done. */
|
|
6763
|
+
ready: optional(boolean()),
|
|
6764
|
+
/** The blocked-by tasks not done yet: open (any open state), dismissed, or unavailable. */
|
|
6765
|
+
blocked_by: optional(array(strictObject({ task: reference, state: picklist(["open", "dismissed", "unavailable"]) }))),
|
|
6754
6766
|
parent: optional(nullable(reference)),
|
|
6755
6767
|
due_at: optional(nullable(time)),
|
|
6756
6768
|
closed_at: optional(nullable(time)),
|
|
@@ -6766,7 +6778,7 @@ var task = strictObject({
|
|
|
6766
6778
|
updated_at: optional(time)
|
|
6767
6779
|
});
|
|
6768
6780
|
|
|
6769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6770
6782
|
var agendaChat = strictObject({
|
|
6771
6783
|
chat: reference,
|
|
6772
6784
|
title: nullable(text),
|
|
@@ -6836,7 +6848,7 @@ var agenda = strictObject({
|
|
|
6836
6848
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6837
6849
|
});
|
|
6838
6850
|
|
|
6839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
6840
6852
|
var WEIGHTS = {
|
|
6841
6853
|
bot: 3,
|
|
6842
6854
|
scam: 3,
|
|
@@ -6861,7 +6873,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
6861
6873
|
var DIGITS = /\d{5,}/;
|
|
6862
6874
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
6863
6875
|
|
|
6864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
6865
6877
|
var conversation = strictObject({
|
|
6866
6878
|
id,
|
|
6867
6879
|
chat: reference,
|
|
@@ -6876,7 +6888,7 @@ var conversation = strictObject({
|
|
|
6876
6888
|
rules_version: count
|
|
6877
6889
|
});
|
|
6878
6890
|
|
|
6879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
6880
6892
|
var tagging = strictObject({
|
|
6881
6893
|
tag: text,
|
|
6882
6894
|
type: picklist(TAG_TYPES),
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
18
18
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
19
19
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
20
20
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -403,7 +403,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
403
403
|
}
|
|
404
404
|
}, "assertRetentionEvidenceRead");
|
|
405
405
|
|
|
406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
407
407
|
var named = /* @__PURE__ */ __name((work) => {
|
|
408
408
|
try {
|
|
409
409
|
return work();
|
|
@@ -430,7 +430,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
430
430
|
return projectFields(value, fields);
|
|
431
431
|
}), "projectFields");
|
|
432
432
|
|
|
433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
434
434
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
435
435
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
436
436
|
var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
@@ -460,7 +460,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
460
460
|
return value;
|
|
461
461
|
}, "atDetail");
|
|
462
462
|
|
|
463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/output.js
|
|
464
464
|
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
|
|
465
465
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
466
466
|
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -27,8 +27,9 @@ import {
|
|
|
27
27
|
} from "./chunk-5D4AEUVA.js";
|
|
28
28
|
import {
|
|
29
29
|
agentOf,
|
|
30
|
-
clientHash
|
|
31
|
-
|
|
30
|
+
clientHash,
|
|
31
|
+
currentCaller
|
|
32
|
+
} from "./chunk-QUGFBY7O.js";
|
|
32
33
|
import {
|
|
33
34
|
__name
|
|
34
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -540,7 +541,14 @@ function toError(value) {
|
|
|
540
541
|
}
|
|
541
542
|
__name(toError, "toError");
|
|
542
543
|
|
|
543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
545
|
+
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
|
+
const client = caller?.agent?.client?.name;
|
|
547
|
+
if (client && client !== "unknown")
|
|
548
|
+
return client;
|
|
549
|
+
const kind = caller?.agent?.kind;
|
|
550
|
+
return kind && kind !== "mcp-client" ? kind : fallback;
|
|
551
|
+
}, "callingAgent");
|
|
544
552
|
var CALLER_META_KEY = "wirecat.dev/caller";
|
|
545
553
|
var PROXY_CLIENT_NAME = "all-profiles";
|
|
546
554
|
var NAME = /^[\w .@()/+-]{1,64}$/;
|
|
@@ -624,6 +632,7 @@ var passedOn = /* @__PURE__ */ __name((value, tool) => {
|
|
|
624
632
|
export {
|
|
625
633
|
StdioServerTransport,
|
|
626
634
|
serveStdio,
|
|
635
|
+
callingAgent,
|
|
627
636
|
CALLER_META_KEY,
|
|
628
637
|
PROXY_CLIENT_NAME,
|
|
629
638
|
callerOf
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
11
11
|
var PRAGMAS = `
|
|
12
12
|
PRAGMA busy_timeout = 5000;
|
|
13
13
|
PRAGMA journal_mode = WAL;
|
|
14
14
|
PRAGMA foreign_keys = ON;
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
18
18
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
19
19
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
20
20
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
35
35
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
36
36
|
}, "isSqliteWarning");
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
39
39
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
40
40
|
const database = await openFile(path);
|
|
41
41
|
try {
|
|
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
48
|
}, "openCache");
|
|
49
49
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
50
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
51
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-KGH5F33G.js");
|
|
52
52
|
return await openWithBunSqlite(path);
|
|
53
53
|
}, "openUnderBun");
|
|
54
54
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
55
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
56
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-FDD5N6GC.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -8,25 +8,25 @@ import {
|
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7QEE5I7H.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Z6F7EXT2.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6HIW7IJL.js";
|
|
19
19
|
import {
|
|
20
20
|
installerOf
|
|
21
21
|
} from "./chunk-QX7RCLRS.js";
|
|
22
22
|
import {
|
|
23
23
|
storePath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5JOKRFWE.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-ZPPRXGPY.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-FZYY6TKE.js"),
|
|
117
|
+
import("./store-maintenance-command-QOYXEBT6.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-DZFOUUZC.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-I5GCP73M.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|