@wirecat/cli-template 0.17.0 → 0.18.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 +25 -0
- package/bin/release +10 -3
- package/dist/bin/clidev.js +2 -2
- package/dist/bundle/{all-profiles-CCT2XPJL.js → all-profiles-I2I5Y47S.js} +7 -7
- package/dist/bundle/{anthropic-QLLP7EE4.js → anthropic-6KWLOH3O.js} +4 -4
- package/dist/bundle/{app-server-ELI5TGL7.js → app-server-WDHIM77I.js} +42 -39
- package/dist/bundle/{bun-C7JS2V7G.js → bun-NQS22GBW.js} +2 -2
- package/dist/bundle/{bun-sqlite-OM72TCYT.js → bun-sqlite-ZHYZDAFU.js} +3 -3
- package/dist/bundle/{chunk-6VCFDEHT.js → chunk-43KXTQB6.js} +1 -1
- package/dist/bundle/{chunk-RGKXMVOZ.js → chunk-4DHYD37E.js} +3 -3
- package/dist/bundle/{chunk-2Y5NBD7U.js → chunk-64DNKCG6.js} +4 -4
- package/dist/bundle/{chunk-XKL5FRH3.js → chunk-6HV2ZUJ7.js} +3 -3
- package/dist/bundle/{chunk-ASO23RNM.js → chunk-6K7LOCZA.js} +76 -24
- package/dist/bundle/{chunk-LN53L2V5.js → chunk-ALOTPATU.js} +11 -11
- package/dist/bundle/{chunk-EQDVQN4E.js → chunk-AQGUIORH.js} +224 -223
- package/dist/bundle/{chunk-QLBS6OC2.js → chunk-CAX65NS4.js} +400 -295
- package/dist/bundle/{chunk-RUHNHEAF.js → chunk-CZB5RLXN.js} +3 -3
- package/dist/bundle/{chunk-SQOXYNKF.js → chunk-E5O6R3NL.js} +1 -1
- package/dist/bundle/{chunk-GG5PXNMH.js → chunk-EMPBFRAG.js} +28 -25
- package/dist/bundle/{chunk-FF3AGTHY.js → chunk-ERHKHYWL.js} +6 -6
- package/dist/bundle/{chunk-S465TCR3.js → chunk-F2KGCZQP.js} +8 -8
- package/dist/bundle/{chunk-QJS4WWYK.js → chunk-FGQC6DQK.js} +63 -63
- package/dist/bundle/{chunk-AUVPTFUS.js → chunk-FPC4ESDC.js} +1 -1
- package/dist/bundle/{chunk-BXZRTMXA.js → chunk-G7JA7YXK.js} +5 -5
- package/dist/bundle/{chunk-BOCIYBBO.js → chunk-GBXTIWAE.js} +20 -20
- package/dist/bundle/{chunk-O6PBO4BU.js → chunk-HMP5CI4F.js} +4 -2
- package/dist/bundle/{chunk-R5IY4O25.js → chunk-I5HN34YA.js} +4 -4
- package/dist/bundle/{chunk-WRLOK7XC.js → chunk-IKFNRGSZ.js} +3 -3
- package/dist/bundle/{chunk-KRXN3FV3.js → chunk-IKGARE4J.js} +1 -1
- package/dist/bundle/{chunk-YIH3PYWJ.js → chunk-JECGG4TM.js} +1 -1
- package/dist/bundle/{chunk-MLSN3UP4.js → chunk-KMYKWHFH.js} +26 -26
- package/dist/bundle/{chunk-WKUJCPSP.js → chunk-KSABL7M2.js} +43 -43
- package/dist/bundle/{chunk-GUCMIUNB.js → chunk-KWQSDU3D.js} +2 -2
- package/dist/bundle/{chunk-6PHTRAZA.js → chunk-L4U3V7OU.js} +1 -1
- package/dist/bundle/{chunk-UW4PJZVJ.js → chunk-MJSZEF7M.js} +167 -156
- package/dist/bundle/{chunk-R5CPFSPI.js → chunk-MVWHCXYA.js} +7 -7
- package/dist/bundle/{chunk-XS56LIQ7.js → chunk-NVALUKZU.js} +4 -4
- package/dist/bundle/{chunk-AKUMR7PE.js → chunk-Q5J3LKRL.js} +2 -2
- package/dist/bundle/{chunk-33JGD2CR.js → chunk-QHXHJ3BK.js} +3 -3
- package/dist/bundle/{chunk-7OQF5ZMN.js → chunk-RKZJ7ZKU.js} +1 -1
- package/dist/bundle/{chunk-3VVIEZRY.js → chunk-RQPDYAHW.js} +2 -2
- package/dist/bundle/{chunk-HVAEHUSZ.js → chunk-RSCHWXF5.js} +2 -2
- package/dist/bundle/{chunk-WQBBSVZM.js → chunk-RYBCV3CX.js} +2 -2
- package/dist/bundle/{chunk-RT46AWIH.js → chunk-T6ZLWN7E.js} +1 -1
- package/dist/bundle/{chunk-QVPTZDRA.js → chunk-T7657XL5.js} +2 -2
- package/dist/bundle/{chunk-DVLM23HB.js → chunk-TH6AVNNH.js} +2 -2
- package/dist/bundle/{chunk-X44ZT64I.js → chunk-TMFSNTR2.js} +3 -3
- package/dist/bundle/{chunk-J2RUBXCI.js → chunk-UESBF7HN.js} +6 -6
- package/dist/bundle/{chunk-ZRNBKTPP.js → chunk-UGPJDNVX.js} +26 -26
- package/dist/bundle/{chunk-LFLN6PVS.js → chunk-UXLB5I2B.js} +4 -4
- package/dist/bundle/{chunk-ITPFCKCL.js → chunk-VDV3WS4O.js} +13 -13
- package/dist/bundle/{chunk-URPKIONS.js → chunk-VDXS7GR7.js} +8 -8
- package/dist/bundle/{chunk-E4KQOKQ5.js → chunk-YLN6DBJV.js} +1 -1
- package/dist/bundle/{chunk-SQKP6V4S.js → chunk-YMGJJG3W.js} +17 -13
- package/dist/bundle/clidev.js +3 -3
- package/dist/bundle/{command-contract-RV5ZOEAT.js → command-contract-JGOS34WS.js} +11 -11
- package/dist/bundle/{decode-V7HNHZBC.js → decode-HHZMCEZF.js} +3 -3
- package/dist/bundle/{echarts-Y42YP2OL.js → echarts-LYV2DLKU.js} +2 -2
- package/dist/bundle/{embed-JSQZL7JF.js → embed-BPN3SCZ7.js} +4 -4
- package/dist/bundle/{embedder-7BHRCXWL.js → embedder-NZAL7DVD.js} +7 -7
- package/dist/bundle/{first-run-BJ36KGST.js → first-run-OKN7MVLP.js} +8 -8
- package/dist/bundle/first-screen-6XGF2AKF.js +26 -0
- package/dist/bundle/{instructions-UWERND54.js → instructions-N2HYCEWN.js} +1 -1
- package/dist/bundle/{mcp-P4FSBSRS.js → mcp-OGWFYUDR.js} +2 -2
- package/dist/bundle/{node-PZDNPKN7.js → node-MIHFH7T4.js} +2 -2
- package/dist/bundle/{node-sqlite-4F5NLRNT.js → node-sqlite-FF2SFXPZ.js} +4 -4
- package/dist/bundle/{oauth-VDXNA3DK.js → oauth-72XUHG3K.js} +5 -5
- package/dist/bundle/{open-EUJRQQNS.js → open-HL6SSRKY.js} +3 -3
- package/dist/bundle/{openai-EIBV2K72.js → openai-DSWDZHQA.js} +12 -12
- package/dist/bundle/{process-XD5ZIFIL.js → process-5EQF2SZN.js} +1 -1
- package/dist/bundle/{program-TJTVMIOX.js → program-QPXFRATG.js} +386 -290
- package/dist/bundle/{prompt-LYUZNHDK.js → prompt-VVRJDKQK.js} +3 -3
- package/dist/bundle/{recognize-LQMHLOD5.js → recognize-T6RIVTQL.js} +2 -2
- package/dist/bundle/{remote-34HUWSZI.js → remote-7Z3C3FOG.js} +5 -5
- package/dist/bundle/{rerank-ONBASQ5Z.js → rerank-RUFDP7NP.js} +5 -5
- package/dist/bundle/{serve-UJ7FDYAM.js → serve-YZQDRGZW.js} +7 -7
- package/dist/bundle/server-NDSKEME6.js +52 -0
- package/dist/bundle/{server-GNT76BXM.js → server-WSFS656N.js} +28 -28
- package/dist/bundle/{state-IW5OO6IZ.js → state-GOQ4J5RS.js} +4 -4
- package/dist/bundle/{store-55UB27H2.js → store-KRGXTPKQ.js} +10 -10
- package/dist/bundle/store-maintenance-command-FNNZ5YCX.js +42 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/dev/skills/release/SKILL.md +3 -2
- package/kit/dist/new.js +2 -2
- package/package.json +4 -4
- package/pnpm-workspace.yaml +2 -0
- package/src/run-scope.test.ts +31 -0
- package/src/version.ts +1 -1
- package/dist/bundle/first-screen-5YHQVNY4.js +0 -26
- package/dist/bundle/server-J4YIXKMI.js +0 -52
- package/dist/bundle/store-maintenance-command-BLDKUZ3L.js +0 -42
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
providerErrorKey,
|
|
11
11
|
renderEvent,
|
|
12
12
|
runContextOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-F2KGCZQP.js";
|
|
14
14
|
import {
|
|
15
15
|
permissionCeiling
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6HV2ZUJ7.js";
|
|
17
17
|
import {
|
|
18
18
|
carries
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FPC4ESDC.js";
|
|
20
20
|
import {
|
|
21
21
|
FACT_STATUSES,
|
|
22
22
|
FACT_TYPES,
|
|
@@ -67,17 +67,17 @@ import {
|
|
|
67
67
|
text,
|
|
68
68
|
time,
|
|
69
69
|
untrusted
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-FGQC6DQK.js";
|
|
71
71
|
import {
|
|
72
72
|
sharedConfigPath
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-G7JA7YXK.js";
|
|
74
74
|
import {
|
|
75
75
|
filesPresent,
|
|
76
76
|
sharedModelsDirectory
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-UXLB5I2B.js";
|
|
78
78
|
import {
|
|
79
79
|
storePath
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-Q5J3LKRL.js";
|
|
81
81
|
import {
|
|
82
82
|
COMPACT_FLAG,
|
|
83
83
|
CliError,
|
|
@@ -144,12 +144,12 @@ import {
|
|
|
144
144
|
visibleControls,
|
|
145
145
|
writeSecurely,
|
|
146
146
|
writes
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-KMYKWHFH.js";
|
|
148
148
|
import {
|
|
149
149
|
__name
|
|
150
150
|
} from "./chunk-ZVVMGPBJ.js";
|
|
151
151
|
|
|
152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
153
153
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
154
154
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
155
155
|
const name = envName(app, "READ_ONLY");
|
|
@@ -160,7 +160,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
|
|
|
160
160
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
161
161
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
162
162
|
|
|
163
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.80.
|
|
163
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
164
164
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
165
165
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
166
166
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3661,7 +3661,7 @@ __name(useColor, "useColor");
|
|
|
3661
3661
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3662
3662
|
var program = new Command();
|
|
3663
3663
|
|
|
3664
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.80.
|
|
3664
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3665
3665
|
var argumentInfoSchema = object({
|
|
3666
3666
|
name: string(),
|
|
3667
3667
|
required: boolean(),
|
|
@@ -3735,7 +3735,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3735
3735
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3736
3736
|
});
|
|
3737
3737
|
|
|
3738
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.80.
|
|
3738
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3739
3739
|
import { isDeepStrictEqual } from "node:util";
|
|
3740
3740
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3741
3741
|
var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidden");
|
|
@@ -3844,7 +3844,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
3844
3844
|
return result;
|
|
3845
3845
|
}, "sharedCommand");
|
|
3846
3846
|
|
|
3847
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.80.
|
|
3847
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3848
3848
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3849
3849
|
let command = root;
|
|
3850
3850
|
const path2 = [];
|
|
@@ -3862,7 +3862,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3862
3862
|
}
|
|
3863
3863
|
}, "refuseJoinedPath");
|
|
3864
3864
|
|
|
3865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
3866
3866
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
3867
3867
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
3868
3868
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4258,7 +4258,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4258
4258
|
}
|
|
4259
4259
|
}, "assertRetentionEvidenceRead");
|
|
4260
4260
|
|
|
4261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
4262
4262
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4263
4263
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
4264
4264
|
messageId: message2.id,
|
|
@@ -4364,7 +4364,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4364
4364
|
}, "guardedWrite");
|
|
4365
4365
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4366
4366
|
|
|
4367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4368
4368
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4369
4369
|
try {
|
|
4370
4370
|
return work();
|
|
@@ -4391,7 +4391,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4391
4391
|
return projectFields(value, fields);
|
|
4392
4392
|
}), "projectFields");
|
|
4393
4393
|
|
|
4394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4395
4395
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4396
4396
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4397
4397
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4574,7 +4574,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4574
4574
|
}
|
|
4575
4575
|
}, "withAbort");
|
|
4576
4576
|
|
|
4577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4578
4578
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4579
4579
|
import { join } from "node:path";
|
|
4580
4580
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4596,7 +4596,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4596
4596
|
}, "profilesWithAccounts");
|
|
4597
4597
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4598
4598
|
|
|
4599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4600
4600
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4601
4601
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4602
4602
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -4632,7 +4632,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4632
4632
|
return value;
|
|
4633
4633
|
}, "atDetail");
|
|
4634
4634
|
|
|
4635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/output.js
|
|
4636
4636
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
4637
4637
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
4638
4638
|
if (other)
|
|
@@ -4696,7 +4696,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4696
4696
|
}, "warn")
|
|
4697
4697
|
}), "silence");
|
|
4698
4698
|
|
|
4699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4700
4700
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4701
4701
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4702
4702
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4730,7 +4730,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4730
4730
|
cache: "cache.answered"
|
|
4731
4731
|
};
|
|
4732
4732
|
|
|
4733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4734
4734
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4735
4735
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4736
4736
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4743,13 +4743,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4743
4743
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4744
4744
|
}), "snakeLogger");
|
|
4745
4745
|
|
|
4746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4747
4747
|
import { randomUUID } from "node:crypto";
|
|
4748
4748
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4749
4749
|
import { userInfo } from "node:os";
|
|
4750
4750
|
import { join as join2, sep } from "node:path";
|
|
4751
4751
|
|
|
4752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4753
4753
|
var diagnostic = {
|
|
4754
4754
|
event: true,
|
|
4755
4755
|
operation: true,
|
|
@@ -4819,7 +4819,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4819
4819
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4820
4820
|
].sort();
|
|
4821
4821
|
|
|
4822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4823
4823
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4824
4824
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4825
4825
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5172,7 +5172,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5172
5172
|
};
|
|
5173
5173
|
}, "metadataOf");
|
|
5174
5174
|
|
|
5175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5176
5176
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5177
5177
|
import { randomBytes } from "node:crypto";
|
|
5178
5178
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5210,7 +5210,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
5210
5210
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5211
5211
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5212
5212
|
|
|
5213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5214
5214
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5215
5215
|
const recording = startRecording(options);
|
|
5216
5216
|
try {
|
|
@@ -5395,7 +5395,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5395
5395
|
return void 0;
|
|
5396
5396
|
}, "partialOutcome");
|
|
5397
5397
|
|
|
5398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5399
5399
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
5400
5400
|
if (ms2 === void 0)
|
|
5401
5401
|
return body();
|
|
@@ -5421,7 +5421,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
5421
5421
|
}
|
|
5422
5422
|
}, "withDeadline");
|
|
5423
5423
|
|
|
5424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5425
5425
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5426
5426
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5427
5427
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5490,10 +5490,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5490
5490
|
return void 0;
|
|
5491
5491
|
}, "sampleCommand");
|
|
5492
5492
|
|
|
5493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5494
5494
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5495
5495
|
|
|
5496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5497
5497
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5498
5498
|
try {
|
|
5499
5499
|
const url2 = new URL(value);
|
|
@@ -5503,7 +5503,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5503
5503
|
}
|
|
5504
5504
|
}, "endpoint");
|
|
5505
5505
|
|
|
5506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5507
5507
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5508
5508
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5509
5509
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5572,7 +5572,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5572
5572
|
};
|
|
5573
5573
|
}, "modelTarget");
|
|
5574
5574
|
|
|
5575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5576
5576
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5577
5577
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5578
5578
|
var AI_FIELDS = {
|
|
@@ -5616,7 +5616,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5616
5616
|
};
|
|
5617
5617
|
}, "resolveAISettings");
|
|
5618
5618
|
|
|
5619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5620
5620
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5621
5621
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5622
5622
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5630,7 +5630,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5630
5630
|
return ms2;
|
|
5631
5631
|
}, "parseDuration");
|
|
5632
5632
|
|
|
5633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5634
5634
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5635
5635
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5636
5636
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5789,7 +5789,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5789
5789
|
var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
|
|
5790
5790
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5791
5791
|
|
|
5792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5793
5793
|
var HISTORY_MAX_DAYS = 1095;
|
|
5794
5794
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5795
5795
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -5836,7 +5836,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5836
5836
|
return { batch: { ...batch, messages }, skipped };
|
|
5837
5837
|
}, "limitBatch");
|
|
5838
5838
|
|
|
5839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
5840
5840
|
import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
5841
5841
|
import { join as join3 } from "node:path";
|
|
5842
5842
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -5925,10 +5925,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
5925
5925
|
return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
5926
5926
|
}, "registryProfiles");
|
|
5927
5927
|
|
|
5928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5929
5929
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
5930
5930
|
|
|
5931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
5932
5932
|
var REPAIR_WORDS = {
|
|
5933
5933
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
5934
5934
|
comment: "a comment, which JSON does not allow",
|
|
@@ -6169,7 +6169,7 @@ ${parts.join(",\n")}
|
|
|
6169
6169
|
${indent}${close}`;
|
|
6170
6170
|
}, "serialise");
|
|
6171
6171
|
|
|
6172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6173
6173
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6174
6174
|
var SECTIONS = ["personal", "bot"];
|
|
6175
6175
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -6463,7 +6463,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6463
6463
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6464
6464
|
}, "readConfigFile");
|
|
6465
6465
|
|
|
6466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6467
6467
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6468
6468
|
import { dirname, join as join4 } from "node:path";
|
|
6469
6469
|
var DEFAULT_CONFIG = {
|
|
@@ -6492,7 +6492,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6492
6492
|
}
|
|
6493
6493
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6494
6494
|
|
|
6495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6496
6496
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6497
6497
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6498
6498
|
const path2 = key.split(".");
|
|
@@ -6514,7 +6514,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
6514
6514
|
return { config, added };
|
|
6515
6515
|
}, "withSettingDefaults");
|
|
6516
6516
|
|
|
6517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6518
6518
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6519
6519
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6520
6520
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -7024,7 +7024,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
7024
7024
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
7025
7025
|
}, "given");
|
|
7026
7026
|
|
|
7027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
7028
7028
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
7029
7029
|
const slot = environmentOf(command).exit;
|
|
7030
7030
|
if (slot)
|
|
@@ -7037,6 +7037,10 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
|
|
|
7037
7037
|
environments.set(program2, environment);
|
|
7038
7038
|
}, "provide");
|
|
7039
7039
|
var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
|
|
7040
|
+
var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
|
|
7041
|
+
const overrides = environmentOf(command).agent?.overrides ?? [];
|
|
7042
|
+
return overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags;
|
|
7043
|
+
}, "withAgentLevels");
|
|
7040
7044
|
var secretInputOf = /* @__PURE__ */ __name((command) => {
|
|
7041
7045
|
const { stdin, stderr } = environmentOf(command);
|
|
7042
7046
|
return { ...stdin ? { input: stdin } : {}, ...stderr ? { output: stderr } : {} };
|
|
@@ -7063,9 +7067,7 @@ var outputFor = /* @__PURE__ */ __name((command) => {
|
|
|
7063
7067
|
var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
7064
7068
|
const environment = environmentOf(command);
|
|
7065
7069
|
const env = environment.env ?? process.env;
|
|
7066
|
-
const
|
|
7067
|
-
const overrides = environment.agent?.overrides ?? [];
|
|
7068
|
-
const settings = resolveSettings(overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags, { env });
|
|
7070
|
+
const settings = resolveSettings(withAgentLevels(command, command.optsWithGlobals()), { env });
|
|
7069
7071
|
const { renderer, format, color, streams, compact, full } = resolveOutput({
|
|
7070
7072
|
...settings,
|
|
7071
7073
|
env,
|
|
@@ -7137,7 +7139,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
7137
7139
|
return words.join(" ");
|
|
7138
7140
|
}, "commandPath");
|
|
7139
7141
|
|
|
7140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
7141
7143
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
7142
7144
|
var FETCH = { remote: "read", local: "write" };
|
|
7143
7145
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -7261,7 +7263,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
7261
7263
|
throw readOnlyRefusal(lock, what);
|
|
7262
7264
|
}, "refuseUnderReadOnly");
|
|
7263
7265
|
|
|
7264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
7265
7267
|
var account = strictObject({
|
|
7266
7268
|
provider: text,
|
|
7267
7269
|
id,
|
|
@@ -7271,7 +7273,7 @@ var account = strictObject({
|
|
|
7271
7273
|
scope: optional(picklist(["personal", "work"]))
|
|
7272
7274
|
});
|
|
7273
7275
|
|
|
7274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
7275
7277
|
var accountSession = strictObject({
|
|
7276
7278
|
current: boolean(),
|
|
7277
7279
|
client: nullable(text),
|
|
@@ -7281,7 +7283,7 @@ var accountSession = strictObject({
|
|
|
7281
7283
|
created_at: optional(nullable(time))
|
|
7282
7284
|
});
|
|
7283
7285
|
|
|
7284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
7285
7287
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
7286
7288
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
7287
7289
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -7299,7 +7301,7 @@ var accountPrivacy = strictObject({
|
|
|
7299
7301
|
});
|
|
7300
7302
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
7301
7303
|
|
|
7302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
7303
7305
|
var accountProfile = strictObject({
|
|
7304
7306
|
profile: id,
|
|
7305
7307
|
current: boolean(),
|
|
@@ -7311,7 +7313,7 @@ var accountProfile = strictObject({
|
|
|
7311
7313
|
bot: optional(literal(true))
|
|
7312
7314
|
});
|
|
7313
7315
|
|
|
7314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
7315
7317
|
var milliseconds = pipe(number(), minValue(0));
|
|
7316
7318
|
var counterReading = strictObject({
|
|
7317
7319
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7323,7 +7325,7 @@ var counterReading = strictObject({
|
|
|
7323
7325
|
});
|
|
7324
7326
|
var selection = record(string(), unknown());
|
|
7325
7327
|
|
|
7326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7327
7329
|
var adminRow = strictObject({
|
|
7328
7330
|
ref: reference,
|
|
7329
7331
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7376,7 +7378,7 @@ var adminReport = strictObject({
|
|
|
7376
7378
|
rows: array(adminRow)
|
|
7377
7379
|
});
|
|
7378
7380
|
|
|
7379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7380
7382
|
var closeSuggestion = strictObject({
|
|
7381
7383
|
as: picklist(["done", "dismissed"]),
|
|
7382
7384
|
/** The agent's name. */
|
|
@@ -7438,7 +7440,7 @@ var task = strictObject({
|
|
|
7438
7440
|
updated_at: optional(time)
|
|
7439
7441
|
});
|
|
7440
7442
|
|
|
7441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7442
7444
|
var agendaChat = strictObject({
|
|
7443
7445
|
chat: reference,
|
|
7444
7446
|
title: nullable(text),
|
|
@@ -7508,11 +7510,11 @@ var agenda = strictObject({
|
|
|
7508
7510
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7509
7511
|
});
|
|
7510
7512
|
|
|
7511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7512
7514
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7513
7515
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7514
7516
|
|
|
7515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7516
7518
|
var attachment = strictObject({
|
|
7517
7519
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7518
7520
|
message: optional(reference),
|
|
@@ -7550,7 +7552,7 @@ var attachment = strictObject({
|
|
|
7550
7552
|
});
|
|
7551
7553
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7552
7554
|
|
|
7553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7554
7556
|
var actionableError = objectWithRest({
|
|
7555
7557
|
code: text,
|
|
7556
7558
|
message: text,
|
|
@@ -7567,7 +7569,7 @@ var batchResult = strictObject({
|
|
|
7567
7569
|
max_error_percent: count
|
|
7568
7570
|
});
|
|
7569
7571
|
|
|
7570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7571
7573
|
var extractionItem = strictObject({
|
|
7572
7574
|
ref: reference,
|
|
7573
7575
|
attachment: count,
|
|
@@ -7600,7 +7602,7 @@ var extractionReport = strictObject({
|
|
|
7600
7602
|
cursor: optional(text)
|
|
7601
7603
|
});
|
|
7602
7604
|
|
|
7603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7604
7606
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7605
7607
|
var attachmentBytes = strictObject({
|
|
7606
7608
|
ref: reference,
|
|
@@ -7628,7 +7630,7 @@ var attachmentTextChange = strictObject({
|
|
|
7628
7630
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7629
7631
|
});
|
|
7630
7632
|
|
|
7631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7632
7634
|
var chart = strictObject({
|
|
7633
7635
|
version: literal(1),
|
|
7634
7636
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7643,7 +7645,7 @@ var chart = strictObject({
|
|
|
7643
7645
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7644
7646
|
});
|
|
7645
7647
|
|
|
7646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7647
7649
|
var member = strictObject({
|
|
7648
7650
|
id,
|
|
7649
7651
|
name: nullable(text),
|
|
@@ -7666,7 +7668,7 @@ var member = strictObject({
|
|
|
7666
7668
|
check: optional(record(string(), unknown()))
|
|
7667
7669
|
});
|
|
7668
7670
|
|
|
7669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7670
7672
|
var setting = optional(nullable(boolean()));
|
|
7671
7673
|
var chat = strictObject({
|
|
7672
7674
|
ref: reference,
|
|
@@ -7707,7 +7709,7 @@ var chat = strictObject({
|
|
|
7707
7709
|
members: optional(array(member))
|
|
7708
7710
|
});
|
|
7709
7711
|
|
|
7710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7711
7713
|
var named2 = strictObject({
|
|
7712
7714
|
id,
|
|
7713
7715
|
title: nullable(text),
|
|
@@ -7730,7 +7732,7 @@ var folder = strictObject({
|
|
|
7730
7732
|
excluded_chats: optional(array(named2))
|
|
7731
7733
|
});
|
|
7732
7734
|
|
|
7733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7734
7736
|
var inviteLink = strictObject({
|
|
7735
7737
|
link: text,
|
|
7736
7738
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7746,7 +7748,7 @@ var inviteLink = strictObject({
|
|
|
7746
7748
|
joined_count: optional(count)
|
|
7747
7749
|
});
|
|
7748
7750
|
|
|
7749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7750
7752
|
var operated = { operation_id: id, chat_id: id };
|
|
7751
7753
|
var group = strictObject({
|
|
7752
7754
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7826,7 +7828,7 @@ var chatFolderOrder = strictObject({
|
|
|
7826
7828
|
folders: array(strictObject({ id, title: text }))
|
|
7827
7829
|
});
|
|
7828
7830
|
|
|
7829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7830
7832
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7831
7833
|
var chatRemoval = strictObject(operated2);
|
|
7832
7834
|
var chatMuting = strictObject({
|
|
@@ -7837,7 +7839,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7837
7839
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7838
7840
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7839
7841
|
|
|
7840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7841
7843
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7842
7844
|
var chatEvent = strictObject({
|
|
7843
7845
|
chat_id: id,
|
|
@@ -7854,7 +7856,7 @@ var chatEvent = strictObject({
|
|
|
7854
7856
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7855
7857
|
});
|
|
7856
7858
|
|
|
7857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7858
7860
|
var chatMetadata = strictObject({
|
|
7859
7861
|
chat_id: id,
|
|
7860
7862
|
title: nullable(text),
|
|
@@ -7869,7 +7871,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7869
7871
|
has_more: boolean()
|
|
7870
7872
|
});
|
|
7871
7873
|
|
|
7872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7873
7875
|
var action = picklist(["report", "delete", "remove"]);
|
|
7874
7876
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7875
7877
|
var chatRules = strictObject({
|
|
@@ -7906,7 +7908,7 @@ var chatModeration = strictObject({
|
|
|
7906
7908
|
}))
|
|
7907
7909
|
});
|
|
7908
7910
|
|
|
7909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7910
7912
|
var optionalCount = optional(count);
|
|
7911
7913
|
var minutes = nullable(number());
|
|
7912
7914
|
var chatStats = strictObject({
|
|
@@ -7980,7 +7982,7 @@ var taskStats = strictObject({
|
|
|
7980
7982
|
}))
|
|
7981
7983
|
});
|
|
7982
7984
|
|
|
7983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7984
7986
|
var memberCount = strictObject({
|
|
7985
7987
|
day: pipe(text, isoDate()),
|
|
7986
7988
|
participants: nullable(count),
|
|
@@ -8003,7 +8005,7 @@ var chatTracking = strictObject({
|
|
|
8003
8005
|
tracked: boolean()
|
|
8004
8006
|
});
|
|
8005
8007
|
|
|
8006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
8007
8009
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8008
8010
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
8009
8011
|
var profileFields = {
|
|
@@ -8041,7 +8043,7 @@ var profileFields = {
|
|
|
8041
8043
|
}))
|
|
8042
8044
|
};
|
|
8043
8045
|
|
|
8044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
8045
8047
|
var contact = strictObject({
|
|
8046
8048
|
ref: reference,
|
|
8047
8049
|
id,
|
|
@@ -8072,7 +8074,7 @@ var contact = strictObject({
|
|
|
8072
8074
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8073
8075
|
});
|
|
8074
8076
|
|
|
8075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
8076
8078
|
var WEIGHTS = {
|
|
8077
8079
|
bot: 3,
|
|
8078
8080
|
scam: 3,
|
|
@@ -8097,7 +8099,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
8097
8099
|
var DIGITS = /\d{5,}/;
|
|
8098
8100
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
8099
8101
|
|
|
8100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
8101
8103
|
var linkedIdentity = strictObject({
|
|
8102
8104
|
provider: text,
|
|
8103
8105
|
id,
|
|
@@ -8138,7 +8140,7 @@ var contactCheck = strictObject({
|
|
|
8138
8140
|
checked_at: time
|
|
8139
8141
|
});
|
|
8140
8142
|
|
|
8141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
8142
8144
|
var quoted = strictObject({
|
|
8143
8145
|
id,
|
|
8144
8146
|
sender_id: nullable(id),
|
|
@@ -8257,7 +8259,7 @@ var message = strictObject({
|
|
|
8257
8259
|
provider_metadata: providerMetadata
|
|
8258
8260
|
});
|
|
8259
8261
|
|
|
8260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
8261
8263
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
8262
8264
|
var contextMessage = strictObject({
|
|
8263
8265
|
locator: reference,
|
|
@@ -8455,7 +8457,7 @@ var contactPreparation = strictObject({
|
|
|
8455
8457
|
})
|
|
8456
8458
|
});
|
|
8457
8459
|
|
|
8458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8459
8461
|
var contactNote = strictObject({
|
|
8460
8462
|
id,
|
|
8461
8463
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8467,13 +8469,13 @@ var contactNote = strictObject({
|
|
|
8467
8469
|
updated_at: time
|
|
8468
8470
|
});
|
|
8469
8471
|
|
|
8470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8471
8473
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8472
8474
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8473
8475
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8474
8476
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8475
8477
|
|
|
8476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8477
8479
|
var conversation = strictObject({
|
|
8478
8480
|
id,
|
|
8479
8481
|
chat: reference,
|
|
@@ -8488,7 +8490,7 @@ var conversation = strictObject({
|
|
|
8488
8490
|
rules_version: count
|
|
8489
8491
|
});
|
|
8490
8492
|
|
|
8491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8492
8494
|
var conversationBuild = strictObject({
|
|
8493
8495
|
chat: id,
|
|
8494
8496
|
messages: count,
|
|
@@ -8513,7 +8515,7 @@ var catchUpPreparation = strictObject({
|
|
|
8513
8515
|
prepared: optional(conversationPreparation)
|
|
8514
8516
|
});
|
|
8515
8517
|
|
|
8516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8517
8519
|
var conversationDetails = union([
|
|
8518
8520
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8519
8521
|
message
|
|
@@ -8603,7 +8605,7 @@ var conversationHit = strictObject({
|
|
|
8603
8605
|
stale: boolean()
|
|
8604
8606
|
});
|
|
8605
8607
|
|
|
8606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8607
8609
|
var counters = strictObject({
|
|
8608
8610
|
cutoff: time,
|
|
8609
8611
|
max_age_ms: milliseconds,
|
|
@@ -8633,7 +8635,7 @@ var counterRefresh = strictObject({
|
|
|
8633
8635
|
complete: optional(boolean())
|
|
8634
8636
|
});
|
|
8635
8637
|
|
|
8636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
8637
8639
|
var nullableText = nullable(text);
|
|
8638
8640
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
8639
8641
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -8662,6 +8664,14 @@ var deal = strictObject({
|
|
|
8662
8664
|
/** The CRM account it is a copy from; `null` for the owner's own. */
|
|
8663
8665
|
account: crmAccount,
|
|
8664
8666
|
external_id: nullableText,
|
|
8667
|
+
/** A CRM copy's assignee, the identity `<account>/user/<id>`. */
|
|
8668
|
+
assignee: nullableText,
|
|
8669
|
+
/** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
|
|
8670
|
+
provider_metadata: record(string(), strictObject({
|
|
8671
|
+
label: nullable(string()),
|
|
8672
|
+
value: unknown(),
|
|
8673
|
+
option_id: optional(union([string(), array(string())]))
|
|
8674
|
+
})),
|
|
8665
8675
|
people: array(strictObject({ ...party.entries, role: picklist(["owner", "contact", "decision-maker"]) })),
|
|
8666
8676
|
author: strictObject({
|
|
8667
8677
|
type: picklist(["person", "bot"]),
|
|
@@ -8712,7 +8722,7 @@ var stage = strictObject({
|
|
|
8712
8722
|
untrusted
|
|
8713
8723
|
});
|
|
8714
8724
|
|
|
8715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8716
8726
|
var document = strictObject({
|
|
8717
8727
|
ref: reference,
|
|
8718
8728
|
id,
|
|
@@ -8727,7 +8737,7 @@ var document = strictObject({
|
|
|
8727
8737
|
owners: optional(array(text))
|
|
8728
8738
|
});
|
|
8729
8739
|
|
|
8730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8731
8741
|
var documentLink = strictObject({
|
|
8732
8742
|
ref: reference,
|
|
8733
8743
|
url: text,
|
|
@@ -8738,7 +8748,7 @@ var documentLink = strictObject({
|
|
|
8738
8748
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8739
8749
|
});
|
|
8740
8750
|
|
|
8741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8742
8752
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8743
8753
|
var contribution = strictObject({
|
|
8744
8754
|
message: evidenceMessage,
|
|
@@ -8768,7 +8778,7 @@ var retentionStay = strictObject({
|
|
|
8768
8778
|
});
|
|
8769
8779
|
var evidence = union([contribution, retentionStay]);
|
|
8770
8780
|
|
|
8771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8772
8782
|
var fact = strictObject({
|
|
8773
8783
|
ref: reference,
|
|
8774
8784
|
id,
|
|
@@ -8798,7 +8808,7 @@ var fact = strictObject({
|
|
|
8798
8808
|
updated_at: time
|
|
8799
8809
|
});
|
|
8800
8810
|
|
|
8801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8802
8812
|
var hit = strictObject({
|
|
8803
8813
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
|
|
8804
8814
|
ref: reference,
|
|
@@ -8836,7 +8846,7 @@ var hit = strictObject({
|
|
|
8836
8846
|
untrusted
|
|
8837
8847
|
});
|
|
8838
8848
|
|
|
8839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8840
8850
|
var identity = strictObject({
|
|
8841
8851
|
ref: reference,
|
|
8842
8852
|
provider: text,
|
|
@@ -8849,7 +8859,7 @@ var identity = strictObject({
|
|
|
8849
8859
|
person: optional(nullable(reference))
|
|
8850
8860
|
});
|
|
8851
8861
|
|
|
8852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8853
8863
|
var imageEmbedding = strictObject({
|
|
8854
8864
|
model: text,
|
|
8855
8865
|
embedded: count,
|
|
@@ -8858,13 +8868,13 @@ var imageEmbedding = strictObject({
|
|
|
8858
8868
|
more: boolean()
|
|
8859
8869
|
});
|
|
8860
8870
|
|
|
8861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8862
8872
|
import { spawn } from "node:child_process";
|
|
8863
8873
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8864
8874
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8865
8875
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8866
8876
|
|
|
8867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8868
8878
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8869
8879
|
const total = input.total ?? null;
|
|
8870
8880
|
const updated = input.updatedAt ?? null;
|
|
@@ -8880,7 +8890,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8880
8890
|
};
|
|
8881
8891
|
}, "progressOf");
|
|
8882
8892
|
|
|
8883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8884
8894
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8885
8895
|
const run = currentRun();
|
|
8886
8896
|
const trace = traceId ?? run.traceId;
|
|
@@ -8894,7 +8904,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8894
8904
|
}));
|
|
8895
8905
|
}, "recordLogFor");
|
|
8896
8906
|
|
|
8897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8898
8908
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8899
8909
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8900
8910
|
const out = openSync(log, "a", 384);
|
|
@@ -9049,7 +9059,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
9049
9059
|
return { job: id6, pid, chat: input.chat, log };
|
|
9050
9060
|
}, "startArchiveJob");
|
|
9051
9061
|
|
|
9052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
9053
9063
|
var problem = strictObject({ code: text, message: text });
|
|
9054
9064
|
var job = strictObject({
|
|
9055
9065
|
id,
|
|
@@ -9072,7 +9082,7 @@ var job = strictObject({
|
|
|
9072
9082
|
error: optional(problem)
|
|
9073
9083
|
});
|
|
9074
9084
|
|
|
9075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
9076
9086
|
var joinRequest = strictObject({
|
|
9077
9087
|
person_id: id,
|
|
9078
9088
|
name: nullable(text),
|
|
@@ -9083,7 +9093,7 @@ var joinRequest = strictObject({
|
|
|
9083
9093
|
about: optional(text)
|
|
9084
9094
|
});
|
|
9085
9095
|
|
|
9086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
9087
9097
|
var botProfile = strictObject({
|
|
9088
9098
|
name: text,
|
|
9089
9099
|
token: text,
|
|
@@ -9176,7 +9186,7 @@ var stickerInventory = strictObject({
|
|
|
9176
9186
|
url: optional(nullable(text))
|
|
9177
9187
|
});
|
|
9178
9188
|
|
|
9179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
9180
9190
|
var pollVote = strictObject({
|
|
9181
9191
|
person_id: id,
|
|
9182
9192
|
name: nullable(text),
|
|
@@ -9186,7 +9196,7 @@ var pollVote = strictObject({
|
|
|
9186
9196
|
voted_at: time
|
|
9187
9197
|
});
|
|
9188
9198
|
|
|
9189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
9190
9200
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
9191
9201
|
var observation = strictObject({
|
|
9192
9202
|
value: pipe(number(), minValue(0)),
|
|
@@ -9228,7 +9238,7 @@ var serveSummary = strictObject({
|
|
|
9228
9238
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
9229
9239
|
});
|
|
9230
9240
|
|
|
9231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
9232
9242
|
var mailCounts = strictObject({
|
|
9233
9243
|
by: picklist(["day", "week", "sender"]),
|
|
9234
9244
|
received: count,
|
|
@@ -9243,7 +9253,7 @@ var mailCounts = strictObject({
|
|
|
9243
9253
|
}))
|
|
9244
9254
|
});
|
|
9245
9255
|
|
|
9246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
9247
9257
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
9248
9258
|
var base = { id, evidence: array(evidence2) };
|
|
9249
9259
|
var finding = variant("kind", [
|
|
@@ -9387,7 +9397,7 @@ var mailFindings = strictObject({
|
|
|
9387
9397
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9388
9398
|
});
|
|
9389
9399
|
|
|
9390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9391
9401
|
var mediaArchive = strictObject({
|
|
9392
9402
|
directory: text,
|
|
9393
9403
|
chats: count,
|
|
@@ -9419,7 +9429,7 @@ var mediaArchiveTimer = union([
|
|
|
9419
9429
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9420
9430
|
]);
|
|
9421
9431
|
|
|
9422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9423
9433
|
var preparationId = pipe(string(), minLength(1));
|
|
9424
9434
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9425
9435
|
var preparationTime = nullable(isoTime);
|
|
@@ -9511,7 +9521,7 @@ var preparationMeeting = strictObject({
|
|
|
9511
9521
|
updated_at: isoTime
|
|
9512
9522
|
});
|
|
9513
9523
|
|
|
9514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9515
9525
|
var meetingEvidence = preparationEvidence;
|
|
9516
9526
|
var meetingPersonContext = strictObject({
|
|
9517
9527
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9533,7 +9543,7 @@ var meetingPersonContext = strictObject({
|
|
|
9533
9543
|
})
|
|
9534
9544
|
});
|
|
9535
9545
|
|
|
9536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9537
9547
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9538
9548
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9539
9549
|
var finding2 = variant("kind", [
|
|
@@ -9571,7 +9581,7 @@ var meetingFindings = strictObject({
|
|
|
9571
9581
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9572
9582
|
});
|
|
9573
9583
|
|
|
9574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9575
9585
|
var communicationCoverage = strictObject({
|
|
9576
9586
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9577
9587
|
query: string(),
|
|
@@ -9616,7 +9626,7 @@ var preparationCommunications = strictObject({
|
|
|
9616
9626
|
}))
|
|
9617
9627
|
});
|
|
9618
9628
|
|
|
9619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9620
9630
|
var meetingPreparation = strictObject({
|
|
9621
9631
|
communications: optional(preparationCommunications),
|
|
9622
9632
|
schema_version: literal(1),
|
|
@@ -9729,7 +9739,7 @@ var meetingPreparation = strictObject({
|
|
|
9729
9739
|
})
|
|
9730
9740
|
});
|
|
9731
9741
|
|
|
9732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9733
9743
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9734
9744
|
var id3 = pipe(string(), minLength(1));
|
|
9735
9745
|
var text3 = string();
|
|
@@ -9793,7 +9803,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9793
9803
|
})
|
|
9794
9804
|
});
|
|
9795
9805
|
|
|
9796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9797
9807
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9798
9808
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9799
9809
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9823,7 +9833,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9823
9833
|
})
|
|
9824
9834
|
});
|
|
9825
9835
|
|
|
9826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9827
9837
|
var text4 = string();
|
|
9828
9838
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9829
9839
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9840,7 +9850,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9840
9850
|
persistence: literal("proposal-only")
|
|
9841
9851
|
});
|
|
9842
9852
|
|
|
9843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9844
9854
|
var memory = strictObject({
|
|
9845
9855
|
ref: reference,
|
|
9846
9856
|
id,
|
|
@@ -9867,7 +9877,7 @@ var memory = strictObject({
|
|
|
9867
9877
|
updated_at: time
|
|
9868
9878
|
});
|
|
9869
9879
|
|
|
9870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9871
9881
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9872
9882
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9873
9883
|
var mention = strictObject({
|
|
@@ -9910,13 +9920,13 @@ var mentionRebuild = strictObject({
|
|
|
9910
9920
|
mentions: count
|
|
9911
9921
|
});
|
|
9912
9922
|
|
|
9913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9914
9924
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9915
9925
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9916
9926
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9917
9927
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9918
9928
|
|
|
9919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9920
9930
|
var messageTranscript = strictObject({
|
|
9921
9931
|
message_id: id,
|
|
9922
9932
|
text,
|
|
@@ -9974,7 +9984,7 @@ var evidencePacket = strictObject({
|
|
|
9974
9984
|
}))
|
|
9975
9985
|
});
|
|
9976
9986
|
|
|
9977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9978
9988
|
var messageThread = strictObject({
|
|
9979
9989
|
ref: reference,
|
|
9980
9990
|
chat: id,
|
|
@@ -9991,7 +10001,7 @@ var messageThread = strictObject({
|
|
|
9991
10001
|
});
|
|
9992
10002
|
var messageContext = union([message, messageThread]);
|
|
9993
10003
|
|
|
9994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9995
10005
|
var messageCounts = strictObject({
|
|
9996
10006
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9997
10007
|
total: count,
|
|
@@ -10004,7 +10014,7 @@ var messageCounts = strictObject({
|
|
|
10004
10014
|
}))
|
|
10005
10015
|
});
|
|
10006
10016
|
|
|
10007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
10008
10018
|
var messageLink = strictObject({
|
|
10009
10019
|
ref: reference,
|
|
10010
10020
|
url: nullable(text),
|
|
@@ -10021,7 +10031,7 @@ var messageLink = strictObject({
|
|
|
10021
10031
|
})))
|
|
10022
10032
|
});
|
|
10023
10033
|
|
|
10024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
10025
10035
|
var savedMessageFile = strictObject({
|
|
10026
10036
|
kind: text,
|
|
10027
10037
|
path: text,
|
|
@@ -10108,7 +10118,7 @@ var messageSyncAll = strictObject({
|
|
|
10108
10118
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
10109
10119
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
10110
10120
|
|
|
10111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
10112
10122
|
var messageWrite = strictObject({
|
|
10113
10123
|
operation_id: id,
|
|
10114
10124
|
message,
|
|
@@ -10123,7 +10133,7 @@ var draftWrite = strictObject({
|
|
|
10123
10133
|
});
|
|
10124
10134
|
var messageSend = union([messageWrite, draftWrite]);
|
|
10125
10135
|
|
|
10126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
10127
10137
|
var model2 = strictObject({
|
|
10128
10138
|
id,
|
|
10129
10139
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -10140,7 +10150,7 @@ var model2 = strictObject({
|
|
|
10140
10150
|
path: text
|
|
10141
10151
|
});
|
|
10142
10152
|
|
|
10143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
10144
10154
|
var source = picklist(["environment", "keyring", "file"]);
|
|
10145
10155
|
var modelKey = strictObject({
|
|
10146
10156
|
provider: text,
|
|
@@ -10150,7 +10160,7 @@ var modelKey = strictObject({
|
|
|
10150
10160
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
10151
10161
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
10152
10162
|
|
|
10153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
10154
10164
|
var link = {
|
|
10155
10165
|
target_text: nullable(text),
|
|
10156
10166
|
kind: text,
|
|
@@ -10191,7 +10201,7 @@ var note = strictObject({
|
|
|
10191
10201
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
10192
10202
|
});
|
|
10193
10203
|
|
|
10194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
10195
10205
|
var versus = strictObject({ current: number(), previous: number() });
|
|
10196
10206
|
var person = { person_ref: reference, name: nullable(text) };
|
|
10197
10207
|
var graph = strictObject({
|
|
@@ -10225,14 +10235,14 @@ var officialStats = strictObject({
|
|
|
10225
10235
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
10226
10236
|
});
|
|
10227
10237
|
|
|
10228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
10229
10239
|
var person2 = strictObject({
|
|
10230
10240
|
ref: reference,
|
|
10231
10241
|
name: nullable(text),
|
|
10232
10242
|
identities: optional(array(identity))
|
|
10233
10243
|
});
|
|
10234
10244
|
|
|
10235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
10236
10246
|
var poll = strictObject({
|
|
10237
10247
|
chat_id: id,
|
|
10238
10248
|
message_id: id,
|
|
@@ -10248,11 +10258,11 @@ var poll = strictObject({
|
|
|
10248
10258
|
});
|
|
10249
10259
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10250
10260
|
|
|
10251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10252
10262
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10253
10263
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10254
10264
|
|
|
10255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10256
10266
|
var figures = record(string(), number());
|
|
10257
10267
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10258
10268
|
var rankingRow = strictObject({
|
|
@@ -10299,7 +10309,7 @@ var ranking = strictObject({
|
|
|
10299
10309
|
rows: array(rankingRow)
|
|
10300
10310
|
});
|
|
10301
10311
|
|
|
10302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10303
10313
|
var reaction = strictObject({
|
|
10304
10314
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10305
10315
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10307,7 +10317,7 @@ var reaction = strictObject({
|
|
|
10307
10317
|
reacted_at: time
|
|
10308
10318
|
});
|
|
10309
10319
|
|
|
10310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10311
10321
|
var reactionChange = strictObject({
|
|
10312
10322
|
operation_id: id,
|
|
10313
10323
|
chat_id: id,
|
|
@@ -10315,7 +10325,7 @@ var reactionChange = strictObject({
|
|
|
10315
10325
|
reaction: nullable(text)
|
|
10316
10326
|
});
|
|
10317
10327
|
|
|
10318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10319
10329
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10320
10330
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10321
10331
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10326,7 +10336,7 @@ var recipientChange = strictObject({
|
|
|
10326
10336
|
...partial(recipientOff).entries
|
|
10327
10337
|
});
|
|
10328
10338
|
|
|
10329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10330
10340
|
var events = array(record(string(), unknown()));
|
|
10331
10341
|
var recordedRun = strictObject({
|
|
10332
10342
|
run_id: id,
|
|
@@ -10398,7 +10408,7 @@ var runHit = strictObject({
|
|
|
10398
10408
|
});
|
|
10399
10409
|
var runLocation = strictObject({ path: text });
|
|
10400
10410
|
|
|
10401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10402
10412
|
var relationship = strictObject({
|
|
10403
10413
|
id,
|
|
10404
10414
|
from: reference,
|
|
@@ -10415,7 +10425,7 @@ var relationship = strictObject({
|
|
|
10415
10425
|
created_at: time
|
|
10416
10426
|
});
|
|
10417
10427
|
|
|
10418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10419
10429
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10420
10430
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10421
10431
|
var responseTimes = strictObject({
|
|
@@ -10432,7 +10442,7 @@ var waitingChats = strictObject({
|
|
|
10432
10442
|
by_kind: strictObject({ private: count, group: count })
|
|
10433
10443
|
});
|
|
10434
10444
|
|
|
10435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10436
10446
|
var retentionCohort = strictObject({
|
|
10437
10447
|
/** The first day of the joining day or week. */
|
|
10438
10448
|
cohort: text,
|
|
@@ -10480,7 +10490,7 @@ var retention = strictObject({
|
|
|
10480
10490
|
rows: array(retentionCohort)
|
|
10481
10491
|
});
|
|
10482
10492
|
|
|
10483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10484
10494
|
var savedSearch = strictObject({
|
|
10485
10495
|
id,
|
|
10486
10496
|
/** `null` for a run in the history. */
|
|
@@ -10497,7 +10507,7 @@ var savedSearch = strictObject({
|
|
|
10497
10507
|
});
|
|
10498
10508
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10499
10509
|
|
|
10500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10501
10511
|
var sendAttempt = strictObject({
|
|
10502
10512
|
at: time,
|
|
10503
10513
|
profile: text,
|
|
@@ -10525,7 +10535,7 @@ var sendAttempt = strictObject({
|
|
|
10525
10535
|
error_code: optional(text)
|
|
10526
10536
|
});
|
|
10527
10537
|
|
|
10528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10529
10539
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10530
10540
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10531
10541
|
var infoSchema = strictObject({
|
|
@@ -10746,7 +10756,7 @@ var storeRepair = union([
|
|
|
10746
10756
|
]);
|
|
10747
10757
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10748
10758
|
|
|
10749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10750
10760
|
var range = strictObject({ from: number(), to: number() });
|
|
10751
10761
|
var storeChatStatus = strictObject({
|
|
10752
10762
|
chat_id: id,
|
|
@@ -10844,7 +10854,7 @@ var storeJobRetry = union([
|
|
|
10844
10854
|
]);
|
|
10845
10855
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10846
10856
|
|
|
10847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10848
10858
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10849
10859
|
var storeTable = strictObject({
|
|
10850
10860
|
name: text,
|
|
@@ -10853,7 +10863,7 @@ var storeTable = strictObject({
|
|
|
10853
10863
|
bytes: optional(nullable(count))
|
|
10854
10864
|
});
|
|
10855
10865
|
|
|
10856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10857
10867
|
var tagTarget = variant("type", [
|
|
10858
10868
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10859
10869
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10884,7 +10894,7 @@ var automaticTags = strictObject({
|
|
|
10884
10894
|
dry_run: boolean()
|
|
10885
10895
|
});
|
|
10886
10896
|
|
|
10887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10888
10898
|
var tagging = strictObject({
|
|
10889
10899
|
tag: text,
|
|
10890
10900
|
type: picklist(TAG_TYPES),
|
|
@@ -10897,7 +10907,7 @@ var tagging = strictObject({
|
|
|
10897
10907
|
created_at: time
|
|
10898
10908
|
});
|
|
10899
10909
|
|
|
10900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10901
10911
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10902
10912
|
var taskPair = strictObject({
|
|
10903
10913
|
task: nullable(side),
|
|
@@ -10920,7 +10930,7 @@ var taskPair = strictObject({
|
|
|
10920
10930
|
created_at: time
|
|
10921
10931
|
});
|
|
10922
10932
|
|
|
10923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10924
10934
|
var nullableTime = nullable(time);
|
|
10925
10935
|
var link2 = strictObject({
|
|
10926
10936
|
id,
|
|
@@ -11094,7 +11104,7 @@ var taskReview = strictObject({
|
|
|
11094
11104
|
untrusted
|
|
11095
11105
|
});
|
|
11096
11106
|
|
|
11097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
11098
11108
|
var topic = strictObject({
|
|
11099
11109
|
id,
|
|
11100
11110
|
title: text,
|
|
@@ -11108,7 +11118,7 @@ var topic = strictObject({
|
|
|
11108
11118
|
untrusted
|
|
11109
11119
|
});
|
|
11110
11120
|
|
|
11111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
11112
11122
|
var ENTITIES = {
|
|
11113
11123
|
sync_progress: progress,
|
|
11114
11124
|
deal,
|
|
@@ -11394,7 +11404,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11394
11404
|
return [name, definition];
|
|
11395
11405
|
})), "entityDefinitions");
|
|
11396
11406
|
|
|
11397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11398
11408
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11399
11409
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11400
11410
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11428,7 +11438,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11428
11438
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11429
11439
|
}, "answerRow");
|
|
11430
11440
|
|
|
11431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11432
11442
|
import { join as join6 } from "node:path";
|
|
11433
11443
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11434
11444
|
var IMAGE_MODELS = [
|
|
@@ -11482,7 +11492,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11482
11492
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11483
11493
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11484
11494
|
|
|
11485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11486
11496
|
var STEPS2 = defineSteps([
|
|
11487
11497
|
...STEPS,
|
|
11488
11498
|
{
|
|
@@ -11763,7 +11773,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11763
11773
|
].join(" ");
|
|
11764
11774
|
}, "stepLine");
|
|
11765
11775
|
|
|
11766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11767
11777
|
var where = [{ field: "ref" }];
|
|
11768
11778
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11769
11779
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11855,7 +11865,7 @@ var STATUS_ROWS = {
|
|
|
11855
11865
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11856
11866
|
};
|
|
11857
11867
|
|
|
11858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11859
11869
|
var TEXT_CHARS = 400;
|
|
11860
11870
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11861
11871
|
var messageRow = {
|
|
@@ -12221,7 +12231,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12221
12231
|
return lines.concat(footerOf(body)).join("\n");
|
|
12222
12232
|
}, "compactText");
|
|
12223
12233
|
|
|
12224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12225
12235
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12226
12236
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12227
12237
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12279,7 +12289,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12279
12289
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12280
12290
|
}, "largeAnswerSteps");
|
|
12281
12291
|
|
|
12282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12283
12293
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12284
12294
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12285
12295
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12293,7 +12303,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12293
12303
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12294
12304
|
}, "strip");
|
|
12295
12305
|
|
|
12296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12297
12307
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12298
12308
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12299
12309
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12591,6 +12601,7 @@ export {
|
|
|
12591
12601
|
setExitCode,
|
|
12592
12602
|
provide,
|
|
12593
12603
|
environmentOf,
|
|
12604
|
+
withAgentLevels,
|
|
12594
12605
|
secretInputOf,
|
|
12595
12606
|
outputFor,
|
|
12596
12607
|
baseContext,
|