@wirecat/mail-cli 0.2.0 → 0.3.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 +7 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-7WILOT5E.js → all-profiles-52LCOKSL.js} +5 -5
- package/dist/bundle/{anthropic-NHWLIMEZ.js → anthropic-HPW7PLTT.js} +3 -3
- package/dist/bundle/{app-server-XDMYCJLV.js → app-server-Y7XSPVHJ.js} +39 -39
- package/dist/bundle/{bun-GTG5IYLQ.js → bun-B7YXDIMT.js} +2 -2
- package/dist/bundle/{bun-sqlite-KGH5F33G.js → bun-sqlite-TTTKY7H2.js} +2 -2
- package/dist/bundle/{chunk-MABCR67K.js → chunk-37MSU5O6.js} +1 -1
- package/dist/bundle/{chunk-CT7NG7BI.js → chunk-3RDTVH3H.js} +3 -3
- package/dist/bundle/{chunk-TMVIQJCG.js → chunk-4PXWXI2U.js} +2 -2
- package/dist/bundle/{chunk-4I3YT5KK.js → chunk-4UOEUEZZ.js} +4 -4
- package/dist/bundle/{chunk-7LKJDJNS.js → chunk-5LY3OS7U.js} +1 -1
- package/dist/bundle/{chunk-H5BW7454.js → chunk-5SSFYIFF.js} +4 -4
- package/dist/bundle/{chunk-MDVXIPA3.js → chunk-732GKOLO.js} +10 -10
- package/dist/bundle/{chunk-ZNYJG4AY.js → chunk-C2THROZU.js} +42 -42
- package/dist/bundle/{chunk-DDMJ3RVO.js → chunk-C6E3VFUX.js} +2 -2
- package/dist/bundle/{chunk-QJHCKFFC.js → chunk-DKKCQMDM.js} +16 -16
- package/dist/bundle/{chunk-7REG25RM.js → chunk-FGNTGLWA.js} +3 -3
- package/dist/bundle/{chunk-GQKYSGIA.js → chunk-FUXSKWWJ.js} +46 -46
- package/dist/bundle/{chunk-EKE3R36Y.js → chunk-FX77WAQL.js} +6 -6
- package/dist/bundle/{chunk-H7NUGJPV.js → chunk-GX2M3AOO.js} +2 -2
- package/dist/bundle/{chunk-QUSZWBZF.js → chunk-H2JVXO5V.js} +32 -22
- package/dist/bundle/{chunk-77VHMI3A.js → chunk-HS25KDT3.js} +1 -1
- package/dist/bundle/{chunk-H66ZMBDD.js → chunk-I2ARI6FI.js} +1 -1
- package/dist/bundle/{chunk-D7UZXUSB.js → chunk-IXHLMSHV.js} +2 -2
- package/dist/bundle/{chunk-BUOSCMCD.js → chunk-JDOOPGKW.js} +2 -2
- package/dist/bundle/{chunk-VWO3XXSF.js → chunk-JHNLU42I.js} +1 -1
- package/dist/bundle/{chunk-6HIW7IJL.js → chunk-JXYFIUVX.js} +4 -4
- package/dist/bundle/{chunk-HJRUFT5Y.js → chunk-K6SIGXRS.js} +5 -5
- package/dist/bundle/{chunk-WJ3LUWRN.js → chunk-KALDYMKJ.js} +3 -3
- package/dist/bundle/{chunk-BKZEYTLU.js → chunk-KXVZ373I.js} +358 -303
- package/dist/bundle/{chunk-VRQRBVKT.js → chunk-LCA5KC34.js} +43 -43
- package/dist/bundle/{chunk-76IKLP2M.js → chunk-LJDOPCPW.js} +96 -91
- package/dist/bundle/{chunk-GPAAQ6LY.js → chunk-MHNEMDH3.js} +13 -13
- package/dist/bundle/{chunk-5FLW25US.js → chunk-MXUUQXMA.js} +5 -5
- package/dist/bundle/{chunk-ETPT7TPW.js → chunk-N5WIUNOT.js} +1 -1
- package/dist/bundle/{chunk-UZR3IKS7.js → chunk-O2F54PUO.js} +1 -1
- package/dist/bundle/{chunk-H7XOHNRY.js → chunk-O3DRPTWF.js} +1 -1
- package/dist/bundle/{chunk-5JOKRFWE.js → chunk-PL6UPJIL.js} +1 -1
- package/dist/bundle/{chunk-SVNTRF5O.js → chunk-PYIJCWCH.js} +11 -11
- package/dist/bundle/{chunk-THVLMTH7.js → chunk-QTWIZKUI.js} +26 -26
- package/dist/bundle/{chunk-QUGFBY7O.js → chunk-RMYYKBFW.js} +7 -7
- package/dist/bundle/{chunk-2X4WYZPA.js → chunk-RORC2FW7.js} +2 -2
- package/dist/bundle/{chunk-S2GSU4MT.js → chunk-RVIMMCHF.js} +9 -9
- package/dist/bundle/{chunk-STC45HZX.js → chunk-RZCFEASJ.js} +196 -196
- package/dist/bundle/{chunk-QLYHLW54.js → chunk-SRMJ6LLC.js} +5 -5
- package/dist/bundle/{chunk-AJIT2T3F.js → chunk-TL7PE6JU.js} +6 -6
- package/dist/bundle/{chunk-BPF7IXJT.js → chunk-TLZWUADZ.js} +5 -5
- package/dist/bundle/{chunk-Y5WA7AOA.js → chunk-TNQOKGJS.js} +21 -21
- package/dist/bundle/{chunk-Z6F7EXT2.js → chunk-V7NZTJKU.js} +7 -7
- package/dist/bundle/{chunk-Y6KUKIQZ.js → chunk-VTJDEWMB.js} +2 -2
- package/dist/bundle/{chunk-YQAUH3PN.js → chunk-X7TFD5SX.js} +1 -1
- package/dist/bundle/{chunk-R5JD4GMA.js → chunk-XD3TL4BK.js} +1 -1
- package/dist/bundle/{chunk-7QEE5I7H.js → chunk-XQVGIW4R.js} +2 -2
- package/dist/bundle/{chunk-AROBJF5P.js → chunk-Y2HGQK7A.js} +1 -1
- package/dist/bundle/{chunk-ZKH5CHGI.js → chunk-YVIX7FHL.js} +5 -5
- package/dist/bundle/{chunk-VBLFQJY3.js → chunk-ZIJJNH47.js} +1 -1
- package/dist/bundle/{command-contract-Y42ULKE5.js → command-contract-3HA7CZEQ.js} +13 -13
- package/dist/bundle/{decode-L4X542L3.js → decode-VLI3MAXE.js} +2 -2
- package/dist/bundle/{dist-WKIRHOLK.js → dist-C7LAAMNF.js} +14 -14
- package/dist/bundle/{echarts-G6QLXR4X.js → echarts-POTU3SHN.js} +2 -2
- package/dist/bundle/{embed-E33ZBHQR.js → embed-J2DEEEUF.js} +3 -3
- package/dist/bundle/{embedder-EMBCIVGF.js → embedder-5N56V7YJ.js} +6 -6
- package/dist/bundle/{first-run-WF2HF5FI.js → first-run-XILZE4PI.js} +5 -5
- package/dist/bundle/{first-screen-DZFOUUZC.js → first-screen-43VLEDWZ.js} +14 -14
- package/dist/bundle/{instructions-DUH7265J.js → instructions-B7AUZXPL.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-73PKCCE7.js → node-SZAO6HTA.js} +2 -2
- package/dist/bundle/{node-sqlite-FDD5N6GC.js → node-sqlite-O34FFLRV.js} +2 -2
- package/dist/bundle/{oauth-ND3K2F7B.js → oauth-YYTLIPJT.js} +4 -4
- package/dist/bundle/{open-FZYY6TKE.js → open-SWJGI6H4.js} +1 -1
- package/dist/bundle/{openai-BXOF6XIM.js → openai-GYXWCQOV.js} +10 -10
- package/dist/bundle/{process-TXIK4VJP.js → process-GLVWCUMK.js} +1 -1
- package/dist/bundle/{program-2SUR4WOS.js → program-HW73TGIF.js} +306 -289
- package/dist/bundle/{prompt-I5GCP73M.js → prompt-OZLHHGCD.js} +2 -2
- package/dist/bundle/{recognize-ILYEKXVB.js → recognize-RDQSGHC5.js} +1 -1
- package/dist/bundle/{remote-SSPZEAJ7.js → remote-BKU5P3GK.js} +4 -4
- package/dist/bundle/{rerank-NAO5RMGB.js → rerank-EQIXYHKB.js} +4 -4
- package/dist/bundle/{serve-UDXIEQKC.js → serve-S6K5HKWG.js} +6 -6
- package/dist/bundle/{server-KTPELKAN.js → server-4VRVHPQC.js} +31 -31
- package/dist/bundle/server-WK6DRJX2.js +63 -0
- package/dist/bundle/{sqlite-runtime-AONFLND6.js → sqlite-runtime-OOE455YM.js} +2 -2
- package/dist/bundle/{state-I4PLX3UB.js → state-OLPOJ2TY.js} +3 -3
- package/dist/bundle/{store-ZPPRXGPY.js → store-6AVCPLH4.js} +9 -9
- package/dist/bundle/{store-OHQH3MGN.js → store-WFV26CWY.js} +11 -11
- package/dist/bundle/store-maintenance-command-S6235I3W.js +52 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +8 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-UZFSEKNJ.js +0 -63
- package/dist/bundle/store-maintenance-command-QOYXEBT6.js +0 -52
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5SSFYIFF.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -24,38 +24,38 @@ import {
|
|
|
24
24
|
providerErrorKey,
|
|
25
25
|
renderEvent,
|
|
26
26
|
runContextOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RMYYKBFW.js";
|
|
28
28
|
import {
|
|
29
29
|
permissionCeiling
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-XQVGIW4R.js";
|
|
31
31
|
import {
|
|
32
32
|
count,
|
|
33
33
|
id,
|
|
34
34
|
text,
|
|
35
35
|
time
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FGNTGLWA.js";
|
|
37
37
|
import {
|
|
38
38
|
PRIORITY_LABELS,
|
|
39
39
|
TASK_ORIGINS,
|
|
40
40
|
TASK_STATES,
|
|
41
41
|
TASK_TYPES
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-FX77WAQL.js";
|
|
43
43
|
import {
|
|
44
44
|
FIELD_TYPES,
|
|
45
45
|
QUERY_BACKENDS,
|
|
46
46
|
TAG_TYPES,
|
|
47
47
|
describeQuery
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-C2THROZU.js";
|
|
49
49
|
import {
|
|
50
50
|
sharedConfigPath
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JXYFIUVX.js";
|
|
52
52
|
import {
|
|
53
53
|
filesPresent,
|
|
54
54
|
sharedModelsDirectory
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-3RDTVH3H.js";
|
|
56
56
|
import {
|
|
57
57
|
storePath
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-PL6UPJIL.js";
|
|
59
59
|
import {
|
|
60
60
|
configFilePath,
|
|
61
61
|
createRecordLog,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
__name
|
|
114
114
|
} from "./chunk-ZVVMGPBJ.js";
|
|
115
115
|
|
|
116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
117
117
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
118
118
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
119
119
|
const name = envName(app, "READ_ONLY");
|
|
@@ -3824,7 +3824,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3824
3824
|
}
|
|
3825
3825
|
}, "refuseJoinedPath");
|
|
3826
3826
|
|
|
3827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3828
3828
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3829
3829
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
3830
3830
|
messageId: message.id,
|
|
@@ -3930,7 +3930,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
3930
3930
|
}, "guardedWrite");
|
|
3931
3931
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
3932
3932
|
|
|
3933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
3934
3934
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
3935
3935
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
3936
3936
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4112,7 +4112,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4112
4112
|
}
|
|
4113
4113
|
}, "withAbort");
|
|
4114
4114
|
|
|
4115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4116
4116
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4117
4117
|
import { join } from "node:path";
|
|
4118
4118
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4134,7 +4134,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4134
4134
|
}, "profilesWithAccounts");
|
|
4135
4135
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4136
4136
|
|
|
4137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4138
4138
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4139
4139
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4140
4140
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -4177,7 +4177,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
4177
4177
|
};
|
|
4178
4178
|
}, "runBudget");
|
|
4179
4179
|
|
|
4180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4181
4181
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4182
4182
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4183
4183
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4211,7 +4211,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4211
4211
|
cache: "cache.answered"
|
|
4212
4212
|
};
|
|
4213
4213
|
|
|
4214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4215
4215
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4216
4216
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4217
4217
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4224,13 +4224,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4224
4224
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
4225
4225
|
}), "snakeLogger");
|
|
4226
4226
|
|
|
4227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4228
4228
|
import { randomUUID } from "node:crypto";
|
|
4229
4229
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4230
4230
|
import { userInfo } from "node:os";
|
|
4231
4231
|
import { join as join2, sep } from "node:path";
|
|
4232
4232
|
|
|
4233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4234
4234
|
var diagnostic = {
|
|
4235
4235
|
event: true,
|
|
4236
4236
|
operation: true,
|
|
@@ -4300,7 +4300,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4300
4300
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4301
4301
|
].sort();
|
|
4302
4302
|
|
|
4303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4304
4304
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4305
4305
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4306
4306
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -4653,7 +4653,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
4653
4653
|
};
|
|
4654
4654
|
}, "metadataOf");
|
|
4655
4655
|
|
|
4656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
4657
4657
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
4658
4658
|
import { randomBytes } from "node:crypto";
|
|
4659
4659
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -4689,7 +4689,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
|
|
|
4689
4689
|
var attempts = new AsyncLocalStorage2();
|
|
4690
4690
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
4691
4691
|
|
|
4692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4693
4693
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4694
4694
|
const recording = startRecording(options);
|
|
4695
4695
|
try {
|
|
@@ -4874,7 +4874,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4874
4874
|
return void 0;
|
|
4875
4875
|
}, "partialOutcome");
|
|
4876
4876
|
|
|
4877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4878
4878
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
4879
4879
|
if (ms === void 0)
|
|
4880
4880
|
return body();
|
|
@@ -4900,7 +4900,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
4900
4900
|
}
|
|
4901
4901
|
}, "withDeadline");
|
|
4902
4902
|
|
|
4903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4904
4904
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4905
4905
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4906
4906
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4969,10 +4969,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4969
4969
|
return void 0;
|
|
4970
4970
|
}, "sampleCommand");
|
|
4971
4971
|
|
|
4972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
4973
4973
|
import { existsSync as existsSync3 } from "node:fs";
|
|
4974
4974
|
|
|
4975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
4976
4976
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
4977
4977
|
try {
|
|
4978
4978
|
const url2 = new URL(value);
|
|
@@ -4982,7 +4982,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
4982
4982
|
}
|
|
4983
4983
|
}, "endpoint");
|
|
4984
4984
|
|
|
4985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4986
4986
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4987
4987
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4988
4988
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5051,7 +5051,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5051
5051
|
};
|
|
5052
5052
|
}, "modelTarget");
|
|
5053
5053
|
|
|
5054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5055
5055
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5056
5056
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5057
5057
|
var AI_FIELDS = {
|
|
@@ -5095,7 +5095,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5095
5095
|
};
|
|
5096
5096
|
}, "resolveAISettings");
|
|
5097
5097
|
|
|
5098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5099
5099
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5100
5100
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5101
5101
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -5109,7 +5109,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
5109
5109
|
return ms;
|
|
5110
5110
|
}, "parseDuration");
|
|
5111
5111
|
|
|
5112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5113
5113
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5114
5114
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5115
5115
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5268,7 +5268,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
5268
5268
|
var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
|
|
5269
5269
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5270
5270
|
|
|
5271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5272
5272
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5273
5273
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5274
5274
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -5558,7 +5558,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5558
5558
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5559
5559
|
}, "readConfigFile");
|
|
5560
5560
|
|
|
5561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5562
5562
|
import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5563
5563
|
import { dirname, join as join3 } from "node:path";
|
|
5564
5564
|
var DEFAULT_CONFIG = {
|
|
@@ -5587,7 +5587,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5587
5587
|
}
|
|
5588
5588
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5589
5589
|
|
|
5590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5591
5591
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5592
5592
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5593
5593
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5977,7 +5977,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5977
5977
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5978
5978
|
}, "given");
|
|
5979
5979
|
|
|
5980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5981
5981
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
5982
5982
|
const { deadline, signal, app } = environmentOf(command);
|
|
5983
5983
|
const now = deadline?.();
|
|
@@ -6094,7 +6094,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6094
6094
|
return words.join(" ");
|
|
6095
6095
|
}, "commandPath");
|
|
6096
6096
|
|
|
6097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6098
6098
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6099
6099
|
var FETCH = { remote: "read", local: "write" };
|
|
6100
6100
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6196,7 +6196,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6196
6196
|
throw readOnlyRefusal(lock, what);
|
|
6197
6197
|
}, "refuseUnderReadOnly");
|
|
6198
6198
|
|
|
6199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
6200
6200
|
import { join as join4 } from "node:path";
|
|
6201
6201
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
6202
6202
|
var IMAGE_MODELS = [
|
|
@@ -6250,7 +6250,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
6250
6250
|
var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
|
|
6251
6251
|
var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
|
|
6252
6252
|
|
|
6253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
6254
6254
|
var STEPS2 = defineSteps([
|
|
6255
6255
|
...STEPS,
|
|
6256
6256
|
{
|
|
@@ -6517,7 +6517,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
6517
6517
|
].join(" ");
|
|
6518
6518
|
}, "stepLine");
|
|
6519
6519
|
|
|
6520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
6521
6521
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
6522
6522
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
6523
6523
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -6531,7 +6531,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
6531
6531
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
6532
6532
|
}, "strip");
|
|
6533
6533
|
|
|
6534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
6535
6535
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
6536
6536
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
6537
6537
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -6665,7 +6665,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
6665
6665
|
renderer.result(item);
|
|
6666
6666
|
}, "printItem");
|
|
6667
6667
|
|
|
6668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
6669
6669
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
6670
6670
|
var storeTable = strictObject({
|
|
6671
6671
|
name: text,
|
|
@@ -6674,7 +6674,7 @@ var storeTable = strictObject({
|
|
|
6674
6674
|
bytes: optional(nullable(count))
|
|
6675
6675
|
});
|
|
6676
6676
|
|
|
6677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
6678
6678
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6679
6679
|
const run = currentRun();
|
|
6680
6680
|
const trace = traceId ?? run.traceId;
|
|
@@ -6688,7 +6688,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6688
6688
|
}));
|
|
6689
6689
|
}, "recordLogFor");
|
|
6690
6690
|
|
|
6691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6692
6692
|
var attachment = strictObject({
|
|
6693
6693
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6694
6694
|
message: optional(reference),
|
|
@@ -6725,7 +6725,7 @@ var attachment = strictObject({
|
|
|
6725
6725
|
}))))
|
|
6726
6726
|
});
|
|
6727
6727
|
|
|
6728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6729
6729
|
var closeSuggestion = strictObject({
|
|
6730
6730
|
as: picklist(["done", "dismissed"]),
|
|
6731
6731
|
/** The agent's name. */
|
|
@@ -6778,7 +6778,7 @@ var task = strictObject({
|
|
|
6778
6778
|
updated_at: optional(time)
|
|
6779
6779
|
});
|
|
6780
6780
|
|
|
6781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6782
6782
|
var agendaChat = strictObject({
|
|
6783
6783
|
chat: reference,
|
|
6784
6784
|
title: nullable(text),
|
|
@@ -6848,7 +6848,7 @@ var agenda = strictObject({
|
|
|
6848
6848
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6849
6849
|
});
|
|
6850
6850
|
|
|
6851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
6852
6852
|
var WEIGHTS = {
|
|
6853
6853
|
bot: 3,
|
|
6854
6854
|
scam: 3,
|
|
@@ -6873,7 +6873,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
6873
6873
|
var DIGITS = /\d{5,}/;
|
|
6874
6874
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
6875
6875
|
|
|
6876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
6877
6877
|
var conversation = strictObject({
|
|
6878
6878
|
id,
|
|
6879
6879
|
chat: reference,
|
|
@@ -6888,7 +6888,7 @@ var conversation = strictObject({
|
|
|
6888
6888
|
rules_version: count
|
|
6889
6889
|
});
|
|
6890
6890
|
|
|
6891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
6892
6892
|
var tagging = strictObject({
|
|
6893
6893
|
tag: text,
|
|
6894
6894
|
type: picklist(TAG_TYPES),
|
|
@@ -7,7 +7,7 @@ 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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
11
11
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
12
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
13
13
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -22,7 +22,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
22
22
|
}
|
|
23
23
|
__name(closeTask, "closeTask");
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
26
26
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
27
27
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
28
28
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -49,7 +49,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
49
49
|
}, "priorityOf");
|
|
50
50
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
51
51
|
|
|
52
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
53
53
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
54
54
|
async function find(id) {
|
|
55
55
|
const task = await store.get(id);
|
|
@@ -109,13 +109,13 @@ function median(values) {
|
|
|
109
109
|
}
|
|
110
110
|
__name(median, "median");
|
|
111
111
|
|
|
112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
113
113
|
function matches(task, filter) {
|
|
114
114
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
115
115
|
}
|
|
116
116
|
__name(matches, "matches");
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
119
119
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
120
120
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
121
121
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
@@ -124,7 +124,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
124
124
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
125
125
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
126
126
|
|
|
127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
128
128
|
var LINK_KINDS = [
|
|
129
129
|
"links-to",
|
|
130
130
|
"blocked-by",
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RMYYKBFW.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|