@wirecat/cli-template 0.15.0 → 0.17.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/.github/workflows/ci.yml +35 -0
- package/.github/workflows/release-pr.yml +37 -0
- package/AGENTS.md +56 -2
- package/CHANGELOG.md +50 -0
- package/README.md +12 -4
- package/bin/release +10 -3
- package/biome.json +8 -2
- package/contracts/mcp-tools.json +2 -2
- package/contracts/plan.json +2 -1
- package/dist/bin/clidev.js +2 -2
- package/dist/bundle/{chunk-LU4A2T7Y.js → all-profiles-CCT2XPJL.js} +10 -7
- package/dist/bundle/{anthropic-ICTW7CNQ.js → anthropic-QLLP7EE4.js} +4 -4
- package/dist/bundle/{app-server-OW5LT5XV.js → app-server-ELI5TGL7.js} +36 -37
- package/dist/bundle/{bun-ILPS6AYA.js → bun-C7JS2V7G.js} +2 -2
- package/dist/bundle/{bun-sqlite-JE6FJFQT.js → bun-sqlite-OM72TCYT.js} +3 -3
- package/dist/bundle/{chunk-7F5VMLVK.js → chunk-2Y5NBD7U.js} +4 -4
- package/dist/bundle/chunk-33JGD2CR.js +141 -0
- package/dist/bundle/{chunk-F34HGYWF.js → chunk-3VVIEZRY.js} +2 -2
- package/dist/bundle/{chunk-CGFQT3LQ.js → chunk-6PHTRAZA.js} +1 -1
- package/dist/bundle/{chunk-VS5LGSTM.js → chunk-6VCFDEHT.js} +1 -1
- package/dist/bundle/{chunk-NENYWEXF.js → chunk-7OQF5ZMN.js} +1 -1
- package/dist/bundle/{chunk-62JRF2JA.js → chunk-AKUMR7PE.js} +2 -2
- package/dist/bundle/{chunk-7UPBPE3Z.js → chunk-ASO23RNM.js} +152 -79
- package/dist/bundle/{chunk-VOTEB3AN.js → chunk-AUVPTFUS.js} +1 -1
- package/dist/bundle/{chunk-KLFYY7KC.js → chunk-BOCIYBBO.js} +53 -44
- package/dist/bundle/{chunk-TJJ2XSJP.js → chunk-BXZRTMXA.js} +5 -5
- package/dist/bundle/{chunk-66VMJGV6.js → chunk-DVLM23HB.js} +2 -2
- package/dist/bundle/{chunk-YIVY2WI3.js → chunk-E4KQOKQ5.js} +1 -1
- package/dist/bundle/{chunk-GHF72SHT.js → chunk-EQDVQN4E.js} +306 -258
- package/dist/bundle/{chunk-NH6LZ3H3.js → chunk-FF3AGTHY.js} +6 -6
- package/dist/bundle/{chunk-NG7MOJBT.js → chunk-GG5PXNMH.js} +61 -21
- package/dist/bundle/{chunk-LFLSV353.js → chunk-GUCMIUNB.js} +2 -2
- package/dist/bundle/{chunk-R5RYPD23.js → chunk-HVAEHUSZ.js} +2 -2
- package/dist/bundle/{chunk-PIJUGF5F.js → chunk-ITPFCKCL.js} +13 -13
- package/dist/bundle/{chunk-DQIBGCF3.js → chunk-J2RUBXCI.js} +6 -6
- package/dist/bundle/{chunk-7Z4HR6GO.js → chunk-KRXN3FV3.js} +1 -1
- package/dist/bundle/{chunk-45244QQ6.js → chunk-LFLN6PVS.js} +4 -4
- package/dist/bundle/{chunk-MWUHBEDN.js → chunk-LN53L2V5.js} +11 -11
- package/dist/bundle/{chunk-IOJ2DTCY.js → chunk-MLSN3UP4.js} +28 -26
- package/dist/bundle/{chunk-3MDNAYQA.js → chunk-O6PBO4BU.js} +1 -1
- package/dist/bundle/{chunk-YOJLIVGO.js → chunk-QJS4WWYK.js} +63 -63
- package/dist/bundle/{chunk-NVNUUHT5.js → chunk-QLBS6OC2.js} +2362 -1225
- package/dist/bundle/{chunk-2DAXUNTS.js → chunk-QVPTZDRA.js} +2 -2
- package/dist/bundle/{chunk-4MU2UM4C.js → chunk-R5CPFSPI.js} +7 -7
- package/dist/bundle/{chunk-AS2PJNQ2.js → chunk-R5IY4O25.js} +4 -4
- package/dist/bundle/{chunk-DZLHY4IA.js → chunk-RGKXMVOZ.js} +3 -3
- package/dist/bundle/{chunk-G45R7M42.js → chunk-RT46AWIH.js} +1 -1
- package/dist/bundle/{chunk-NRZV7K4M.js → chunk-RUHNHEAF.js} +3 -3
- package/dist/bundle/{chunk-VXOR76ZL.js → chunk-S465TCR3.js} +8 -8
- package/dist/bundle/{chunk-NVGOHYTE.js → chunk-SQKP6V4S.js} +27 -13
- package/dist/bundle/{chunk-FC53WQHG.js → chunk-SQOXYNKF.js} +1 -1
- package/dist/bundle/{chunk-R2JKPHH5.js → chunk-URPKIONS.js} +8 -8
- package/dist/bundle/{chunk-VVGPAHUN.js → chunk-UW4PJZVJ.js} +298 -170
- package/dist/bundle/{chunk-EX2FV7YJ.js → chunk-WKUJCPSP.js} +89 -45
- package/dist/bundle/{chunk-LATYBJ4T.js → chunk-WQBBSVZM.js} +2 -2
- package/dist/bundle/{chunk-G7W53MQP.js → chunk-WRLOK7XC.js} +3 -3
- package/dist/bundle/{chunk-SOYOOU2D.js → chunk-X44ZT64I.js} +3 -3
- package/dist/bundle/{chunk-U6QD3J3F.js → chunk-XKL5FRH3.js} +3 -3
- package/dist/bundle/{chunk-6AW4DDK4.js → chunk-XS56LIQ7.js} +4 -4
- package/dist/bundle/{chunk-3WDYHOAF.js → chunk-YIH3PYWJ.js} +1 -1
- package/dist/bundle/{chunk-5GTMQTQH.js → chunk-ZRNBKTPP.js} +27 -29
- package/dist/bundle/clidev.js +3 -3
- package/dist/bundle/{command-contract-3MPKXBVL.js → command-contract-RV5ZOEAT.js} +11 -11
- package/dist/bundle/{decode-NXB5UKMO.js → decode-V7HNHZBC.js} +3 -3
- package/dist/bundle/{echarts-DRDGGHJT.js → echarts-Y42YP2OL.js} +2 -2
- package/dist/bundle/{embed-IKZ24BMC.js → embed-JSQZL7JF.js} +4 -4
- package/dist/bundle/{embedder-GMQ24DOQ.js → embedder-7BHRCXWL.js} +7 -7
- package/dist/bundle/{first-run-PURIGDLD.js → first-run-BJ36KGST.js} +8 -8
- package/dist/bundle/first-screen-5YHQVNY4.js +26 -0
- package/dist/bundle/{instructions-EOQOXY6V.js → instructions-UWERND54.js} +1 -1
- package/dist/bundle/{mcp-7HBLFGCW.js → mcp-P4FSBSRS.js} +2 -2
- package/dist/bundle/{node-52WF2326.js → node-PZDNPKN7.js} +2 -2
- package/dist/bundle/{node-sqlite-73Z4SFOA.js → node-sqlite-4F5NLRNT.js} +4 -4
- package/dist/bundle/{oauth-EVTPAMZP.js → oauth-VDXNA3DK.js} +5 -5
- package/dist/bundle/{open-46WZAPJ3.js → open-EUJRQQNS.js} +3 -3
- package/dist/bundle/{openai-GWRDAHDU.js → openai-EIBV2K72.js} +14 -35
- package/dist/bundle/{process-YIQPKLZI.js → process-XD5ZIFIL.js} +1 -1
- package/dist/bundle/{program-37NVH5YJ.js → program-TJTVMIOX.js} +3067 -736
- package/dist/bundle/{prompt-IVEYRLS5.js → prompt-LYUZNHDK.js} +3 -3
- package/dist/bundle/{recognize-WVEKHODM.js → recognize-LQMHLOD5.js} +2 -2
- package/dist/bundle/{remote-4K5VPMC7.js → remote-34HUWSZI.js} +5 -5
- package/dist/bundle/{rerank-V24UJZYJ.js → rerank-ONBASQ5Z.js} +5 -5
- package/dist/bundle/{chunk-EMHCXXNJ.js → serve-UJ7FDYAM.js} +8 -6
- package/dist/bundle/{chunk-KJ3UADR3.js → server-GNT76BXM.js} +29 -9
- package/dist/bundle/server-J4YIXKMI.js +52 -0
- package/dist/bundle/{state-ZPYGECVP.js → state-IW5OO6IZ.js} +4 -4
- package/dist/bundle/{store-6JQCLPQF.js → store-55UB27H2.js} +12 -10
- package/dist/bundle/store-maintenance-command-BLDKUZ3L.js +42 -0
- package/dist/commands/comments.d.ts +3 -0
- package/dist/commands/comments.d.ts.map +1 -0
- package/dist/commands/comments.js +114 -0
- package/dist/commands/comments.js.map +1 -0
- package/dist/commands/session.d.ts +3 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +96 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/context.d.ts +83 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +58 -0
- package/dist/context.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +25 -4
- package/dist/program.js.map +1 -1
- package/dist/sample/comments.d.ts +61 -0
- package/dist/sample/comments.d.ts.map +1 -0
- package/dist/sample/comments.js +39 -0
- package/dist/sample/comments.js.map +1 -0
- package/dist/sample/transport.d.ts +42 -0
- package/dist/sample/transport.d.ts.map +1 -0
- package/dist/sample/transport.js +152 -0
- package/dist/sample/transport.js.map +1 -0
- package/dist/token.d.ts +16 -0
- package/dist/token.d.ts.map +1 -0
- package/dist/token.js +32 -0
- package/dist/token.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/commands.md +234 -12
- package/docs/configuration.md +1 -1
- package/docs/dev/reference-clis.md +3 -2
- package/docs/dev/skills/release/SKILL.md +9 -3
- package/docs/dev/skills/release/fresh-audit.md +1 -1
- package/docs/dev/test-matrix.md +36 -5
- package/docs/index.md +4 -3
- package/docs/security.md +4 -2
- package/kit/dist/new.js +7 -3
- package/lint/overrides.json +9 -1
- package/package.json +6 -7
- package/scripts/test-matrix-untested.ts +19 -0
- package/skills/clidev-cli/SKILL.md +1 -1
- package/src/commands/comments.ts +167 -0
- package/src/commands/session.ts +144 -0
- package/src/comments.test.ts +258 -0
- package/src/context.ts +78 -0
- package/src/mcp.test.ts +71 -76
- package/src/program.test.ts +9 -16
- package/src/program.ts +29 -4
- package/src/sample/comments.ts +51 -0
- package/src/sample/transport.test.ts +117 -0
- package/src/sample/transport.ts +184 -0
- package/src/testing/fake-comments.ts +167 -0
- package/src/testing/harness.ts +51 -0
- package/src/token.ts +42 -0
- package/src/version.ts +1 -1
- package/dist/bundle/all-profiles-NVB2HT2S.js +0 -24
- package/dist/bundle/chunk-GUFPQZUA.js +0 -48
- package/dist/bundle/chunk-NL2DQPT7.js +0 -2
- package/dist/bundle/first-screen-B2CF2CET.js +0 -26
- package/dist/bundle/mcp-ASNYBQ5B.js +0 -152
- package/dist/bundle/mcp-EY2NUYDQ.js +0 -82
- package/dist/bundle/serve-PJWSOV7F.js +0 -19
- package/dist/bundle/server-3TPCEZ6P.js +0 -40
- package/dist/bundle/server-GQX5MZTT.js +0 -53
- package/dist/bundle/store-maintenance-command-ND4ADMGC.js +0 -42
- package/dist/commands/doctor.d.ts +0 -77
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -74
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -3
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -97
- package/dist/commands/mcp.js.map +0 -1
- package/dist/mcp.d.ts +0 -29
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -98
- package/dist/mcp.js.map +0 -1
- package/src/commands/doctor.ts +0 -86
- package/src/commands/mcp.ts +0 -130
- package/src/mcp-http.test.ts +0 -172
- package/src/mcp.ts +0 -140
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
providerErrorKey,
|
|
11
11
|
renderEvent,
|
|
12
12
|
runContextOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-S465TCR3.js";
|
|
14
14
|
import {
|
|
15
15
|
permissionCeiling
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XKL5FRH3.js";
|
|
17
17
|
import {
|
|
18
18
|
carries
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AUVPTFUS.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-QJS4WWYK.js";
|
|
71
71
|
import {
|
|
72
72
|
sharedConfigPath
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-BXZRTMXA.js";
|
|
74
74
|
import {
|
|
75
75
|
filesPresent,
|
|
76
76
|
sharedModelsDirectory
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-LFLN6PVS.js";
|
|
78
78
|
import {
|
|
79
79
|
storePath
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-AKUMR7PE.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-MLSN3UP4.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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.
|
|
163
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.3_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.
|
|
3664
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.3_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.
|
|
3738
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.3_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.
|
|
3847
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.3_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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/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();
|
|
@@ -5190,6 +5190,7 @@ var currentRun = /* @__PURE__ */ __name(() => {
|
|
|
5190
5190
|
return processScope;
|
|
5191
5191
|
}, "currentRun");
|
|
5192
5192
|
var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
|
|
5193
|
+
var runEvent = /* @__PURE__ */ __name((event2) => scopes.getStore()?.events?.(event2), "runEvent");
|
|
5193
5194
|
var typedCommand = /* @__PURE__ */ __name((tool, words, profile = currentRun().profile) => [tool, profile, words].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
|
|
5194
5195
|
var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
|
|
5195
5196
|
processScope = scope;
|
|
@@ -5207,8 +5208,9 @@ var childTrace = /* @__PURE__ */ __name(() => {
|
|
|
5207
5208
|
}, "childTrace");
|
|
5208
5209
|
var attempts = new AsyncLocalStorage2();
|
|
5209
5210
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5211
|
+
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5210
5212
|
|
|
5211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5212
5214
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5213
5215
|
const recording = startRecording(options);
|
|
5214
5216
|
try {
|
|
@@ -5393,7 +5395,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5393
5395
|
return void 0;
|
|
5394
5396
|
}, "partialOutcome");
|
|
5395
5397
|
|
|
5396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5397
5399
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
5398
5400
|
if (ms2 === void 0)
|
|
5399
5401
|
return body();
|
|
@@ -5419,7 +5421,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
5419
5421
|
}
|
|
5420
5422
|
}, "withDeadline");
|
|
5421
5423
|
|
|
5422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5423
5425
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5424
5426
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5425
5427
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5455,6 +5457,11 @@ var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */
|
|
|
5455
5457
|
return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
|
|
5456
5458
|
}, "liftProfile");
|
|
5457
5459
|
var valuedOptions = /* @__PURE__ */ __name((program2) => new Set(program2.options.filter((option) => option.required).flatMap((option) => [option.long, option.short].filter((flag2) => flag2 !== void 0))), "valuedOptions");
|
|
5460
|
+
var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
|
|
5461
|
+
if (words.has(profile)) {
|
|
5462
|
+
throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words].sort().join(", "));
|
|
5463
|
+
}
|
|
5464
|
+
}, "refuseCommandName");
|
|
5458
5465
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
5459
5466
|
let root = command;
|
|
5460
5467
|
while (root.parent)
|
|
@@ -5483,10 +5490,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5483
5490
|
return void 0;
|
|
5484
5491
|
}, "sampleCommand");
|
|
5485
5492
|
|
|
5486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5487
5494
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5488
5495
|
|
|
5489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5490
5497
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5491
5498
|
try {
|
|
5492
5499
|
const url2 = new URL(value);
|
|
@@ -5496,7 +5503,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5496
5503
|
}
|
|
5497
5504
|
}, "endpoint");
|
|
5498
5505
|
|
|
5499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5500
5507
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5501
5508
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5502
5509
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5565,7 +5572,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5565
5572
|
};
|
|
5566
5573
|
}, "modelTarget");
|
|
5567
5574
|
|
|
5568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5569
5576
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5570
5577
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5571
5578
|
var AI_FIELDS = {
|
|
@@ -5609,7 +5616,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5609
5616
|
};
|
|
5610
5617
|
}, "resolveAISettings");
|
|
5611
5618
|
|
|
5612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5613
5620
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5614
5621
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5615
5622
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5623,7 +5630,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5623
5630
|
return ms2;
|
|
5624
5631
|
}, "parseDuration");
|
|
5625
5632
|
|
|
5626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5627
5634
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5628
5635
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5629
5636
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5782,7 +5789,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5782
5789
|
var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
|
|
5783
5790
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5784
5791
|
|
|
5785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5786
5793
|
var HISTORY_MAX_DAYS = 1095;
|
|
5787
5794
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5788
5795
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -5829,7 +5836,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5829
5836
|
return { batch: { ...batch, messages }, skipped };
|
|
5830
5837
|
}, "limitBatch");
|
|
5831
5838
|
|
|
5832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
5833
5840
|
import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
5834
5841
|
import { join as join3 } from "node:path";
|
|
5835
5842
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -5918,10 +5925,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
5918
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));
|
|
5919
5926
|
}, "registryProfiles");
|
|
5920
5927
|
|
|
5921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5922
5929
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
5923
5930
|
|
|
5924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
5925
5932
|
var REPAIR_WORDS = {
|
|
5926
5933
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
5927
5934
|
comment: "a comment, which JSON does not allow",
|
|
@@ -6162,7 +6169,7 @@ ${parts.join(",\n")}
|
|
|
6162
6169
|
${indent}${close}`;
|
|
6163
6170
|
}, "serialise");
|
|
6164
6171
|
|
|
6165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6166
6173
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6167
6174
|
var SECTIONS = ["personal", "bot"];
|
|
6168
6175
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -6456,7 +6463,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6456
6463
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6457
6464
|
}, "readConfigFile");
|
|
6458
6465
|
|
|
6459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6460
6467
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6461
6468
|
import { dirname, join as join4 } from "node:path";
|
|
6462
6469
|
var DEFAULT_CONFIG = {
|
|
@@ -6485,7 +6492,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6485
6492
|
}
|
|
6486
6493
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6487
6494
|
|
|
6488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6489
6496
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6490
6497
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6491
6498
|
const path2 = key.split(".");
|
|
@@ -6507,7 +6514,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
6507
6514
|
return { config, added };
|
|
6508
6515
|
}, "withSettingDefaults");
|
|
6509
6516
|
|
|
6510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6511
6518
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6512
6519
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6513
6520
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -7017,7 +7024,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
7017
7024
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
7018
7025
|
}, "given");
|
|
7019
7026
|
|
|
7020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
7021
7028
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
7022
7029
|
const slot = environmentOf(command).exit;
|
|
7023
7030
|
if (slot)
|
|
@@ -7130,7 +7137,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
7130
7137
|
return words.join(" ");
|
|
7131
7138
|
}, "commandPath");
|
|
7132
7139
|
|
|
7133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
7134
7141
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
7135
7142
|
var FETCH = { remote: "read", local: "write" };
|
|
7136
7143
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -7156,6 +7163,10 @@ var changesAuthorityNow = /* @__PURE__ */ __name((command) => {
|
|
|
7156
7163
|
return unless === void 0 || command.opts()[unless] !== true;
|
|
7157
7164
|
}, "changesAuthorityNow");
|
|
7158
7165
|
var LOGIN = /* @__PURE__ */ new WeakSet();
|
|
7166
|
+
var logsInOrOut = /* @__PURE__ */ __name((command) => {
|
|
7167
|
+
LOGIN.add(command);
|
|
7168
|
+
return command;
|
|
7169
|
+
}, "logsInOrOut");
|
|
7159
7170
|
var isLogin = /* @__PURE__ */ __name((command) => LOGIN.has(command), "isLogin");
|
|
7160
7171
|
var KEPT_UNDER_LOCK = /* @__PURE__ */ new WeakSet();
|
|
7161
7172
|
var destroysNothing = /* @__PURE__ */ __name((command) => {
|
|
@@ -7250,7 +7261,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
7250
7261
|
throw readOnlyRefusal(lock, what);
|
|
7251
7262
|
}, "refuseUnderReadOnly");
|
|
7252
7263
|
|
|
7253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
7254
7265
|
var account = strictObject({
|
|
7255
7266
|
provider: text,
|
|
7256
7267
|
id,
|
|
@@ -7260,7 +7271,7 @@ var account = strictObject({
|
|
|
7260
7271
|
scope: optional(picklist(["personal", "work"]))
|
|
7261
7272
|
});
|
|
7262
7273
|
|
|
7263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
7264
7275
|
var accountSession = strictObject({
|
|
7265
7276
|
current: boolean(),
|
|
7266
7277
|
client: nullable(text),
|
|
@@ -7270,7 +7281,7 @@ var accountSession = strictObject({
|
|
|
7270
7281
|
created_at: optional(nullable(time))
|
|
7271
7282
|
});
|
|
7272
7283
|
|
|
7273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
7274
7285
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
7275
7286
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
7276
7287
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -7288,7 +7299,7 @@ var accountPrivacy = strictObject({
|
|
|
7288
7299
|
});
|
|
7289
7300
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
7290
7301
|
|
|
7291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
7292
7303
|
var accountProfile = strictObject({
|
|
7293
7304
|
profile: id,
|
|
7294
7305
|
current: boolean(),
|
|
@@ -7300,7 +7311,7 @@ var accountProfile = strictObject({
|
|
|
7300
7311
|
bot: optional(literal(true))
|
|
7301
7312
|
});
|
|
7302
7313
|
|
|
7303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
7304
7315
|
var milliseconds = pipe(number(), minValue(0));
|
|
7305
7316
|
var counterReading = strictObject({
|
|
7306
7317
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7312,7 +7323,7 @@ var counterReading = strictObject({
|
|
|
7312
7323
|
});
|
|
7313
7324
|
var selection = record(string(), unknown());
|
|
7314
7325
|
|
|
7315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7316
7327
|
var adminRow = strictObject({
|
|
7317
7328
|
ref: reference,
|
|
7318
7329
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7365,7 +7376,7 @@ var adminReport = strictObject({
|
|
|
7365
7376
|
rows: array(adminRow)
|
|
7366
7377
|
});
|
|
7367
7378
|
|
|
7368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7369
7380
|
var closeSuggestion = strictObject({
|
|
7370
7381
|
as: picklist(["done", "dismissed"]),
|
|
7371
7382
|
/** The agent's name. */
|
|
@@ -7427,7 +7438,7 @@ var task = strictObject({
|
|
|
7427
7438
|
updated_at: optional(time)
|
|
7428
7439
|
});
|
|
7429
7440
|
|
|
7430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7431
7442
|
var agendaChat = strictObject({
|
|
7432
7443
|
chat: reference,
|
|
7433
7444
|
title: nullable(text),
|
|
@@ -7497,11 +7508,11 @@ var agenda = strictObject({
|
|
|
7497
7508
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7498
7509
|
});
|
|
7499
7510
|
|
|
7500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7501
7512
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7502
7513
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7503
7514
|
|
|
7504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7505
7516
|
var attachment = strictObject({
|
|
7506
7517
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7507
7518
|
message: optional(reference),
|
|
@@ -7539,7 +7550,7 @@ var attachment = strictObject({
|
|
|
7539
7550
|
});
|
|
7540
7551
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7541
7552
|
|
|
7542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7543
7554
|
var actionableError = objectWithRest({
|
|
7544
7555
|
code: text,
|
|
7545
7556
|
message: text,
|
|
@@ -7556,7 +7567,7 @@ var batchResult = strictObject({
|
|
|
7556
7567
|
max_error_percent: count
|
|
7557
7568
|
});
|
|
7558
7569
|
|
|
7559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7560
7571
|
var extractionItem = strictObject({
|
|
7561
7572
|
ref: reference,
|
|
7562
7573
|
attachment: count,
|
|
@@ -7589,7 +7600,7 @@ var extractionReport = strictObject({
|
|
|
7589
7600
|
cursor: optional(text)
|
|
7590
7601
|
});
|
|
7591
7602
|
|
|
7592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7593
7604
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7594
7605
|
var attachmentBytes = strictObject({
|
|
7595
7606
|
ref: reference,
|
|
@@ -7617,7 +7628,7 @@ var attachmentTextChange = strictObject({
|
|
|
7617
7628
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7618
7629
|
});
|
|
7619
7630
|
|
|
7620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7621
7632
|
var chart = strictObject({
|
|
7622
7633
|
version: literal(1),
|
|
7623
7634
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7632,7 +7643,7 @@ var chart = strictObject({
|
|
|
7632
7643
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7633
7644
|
});
|
|
7634
7645
|
|
|
7635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7636
7647
|
var member = strictObject({
|
|
7637
7648
|
id,
|
|
7638
7649
|
name: nullable(text),
|
|
@@ -7655,7 +7666,7 @@ var member = strictObject({
|
|
|
7655
7666
|
check: optional(record(string(), unknown()))
|
|
7656
7667
|
});
|
|
7657
7668
|
|
|
7658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7659
7670
|
var setting = optional(nullable(boolean()));
|
|
7660
7671
|
var chat = strictObject({
|
|
7661
7672
|
ref: reference,
|
|
@@ -7696,7 +7707,7 @@ var chat = strictObject({
|
|
|
7696
7707
|
members: optional(array(member))
|
|
7697
7708
|
});
|
|
7698
7709
|
|
|
7699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7700
7711
|
var named2 = strictObject({
|
|
7701
7712
|
id,
|
|
7702
7713
|
title: nullable(text),
|
|
@@ -7719,7 +7730,7 @@ var folder = strictObject({
|
|
|
7719
7730
|
excluded_chats: optional(array(named2))
|
|
7720
7731
|
});
|
|
7721
7732
|
|
|
7722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7723
7734
|
var inviteLink = strictObject({
|
|
7724
7735
|
link: text,
|
|
7725
7736
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7735,7 +7746,7 @@ var inviteLink = strictObject({
|
|
|
7735
7746
|
joined_count: optional(count)
|
|
7736
7747
|
});
|
|
7737
7748
|
|
|
7738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7739
7750
|
var operated = { operation_id: id, chat_id: id };
|
|
7740
7751
|
var group = strictObject({
|
|
7741
7752
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7815,7 +7826,7 @@ var chatFolderOrder = strictObject({
|
|
|
7815
7826
|
folders: array(strictObject({ id, title: text }))
|
|
7816
7827
|
});
|
|
7817
7828
|
|
|
7818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7819
7830
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7820
7831
|
var chatRemoval = strictObject(operated2);
|
|
7821
7832
|
var chatMuting = strictObject({
|
|
@@ -7826,7 +7837,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7826
7837
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7827
7838
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7828
7839
|
|
|
7829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7830
7841
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7831
7842
|
var chatEvent = strictObject({
|
|
7832
7843
|
chat_id: id,
|
|
@@ -7843,7 +7854,7 @@ var chatEvent = strictObject({
|
|
|
7843
7854
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7844
7855
|
});
|
|
7845
7856
|
|
|
7846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7847
7858
|
var chatMetadata = strictObject({
|
|
7848
7859
|
chat_id: id,
|
|
7849
7860
|
title: nullable(text),
|
|
@@ -7858,7 +7869,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7858
7869
|
has_more: boolean()
|
|
7859
7870
|
});
|
|
7860
7871
|
|
|
7861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7862
7873
|
var action = picklist(["report", "delete", "remove"]);
|
|
7863
7874
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7864
7875
|
var chatRules = strictObject({
|
|
@@ -7895,7 +7906,7 @@ var chatModeration = strictObject({
|
|
|
7895
7906
|
}))
|
|
7896
7907
|
});
|
|
7897
7908
|
|
|
7898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7899
7910
|
var optionalCount = optional(count);
|
|
7900
7911
|
var minutes = nullable(number());
|
|
7901
7912
|
var chatStats = strictObject({
|
|
@@ -7969,7 +7980,7 @@ var taskStats = strictObject({
|
|
|
7969
7980
|
}))
|
|
7970
7981
|
});
|
|
7971
7982
|
|
|
7972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7973
7984
|
var memberCount = strictObject({
|
|
7974
7985
|
day: pipe(text, isoDate()),
|
|
7975
7986
|
participants: nullable(count),
|
|
@@ -7992,7 +8003,7 @@ var chatTracking = strictObject({
|
|
|
7992
8003
|
tracked: boolean()
|
|
7993
8004
|
});
|
|
7994
8005
|
|
|
7995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7996
8007
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7997
8008
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7998
8009
|
var profileFields = {
|
|
@@ -8030,7 +8041,7 @@ var profileFields = {
|
|
|
8030
8041
|
}))
|
|
8031
8042
|
};
|
|
8032
8043
|
|
|
8033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
8034
8045
|
var contact = strictObject({
|
|
8035
8046
|
ref: reference,
|
|
8036
8047
|
id,
|
|
@@ -8061,7 +8072,7 @@ var contact = strictObject({
|
|
|
8061
8072
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8062
8073
|
});
|
|
8063
8074
|
|
|
8064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
8065
8076
|
var WEIGHTS = {
|
|
8066
8077
|
bot: 3,
|
|
8067
8078
|
scam: 3,
|
|
@@ -8086,7 +8097,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
8086
8097
|
var DIGITS = /\d{5,}/;
|
|
8087
8098
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
8088
8099
|
|
|
8089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
8090
8101
|
var linkedIdentity = strictObject({
|
|
8091
8102
|
provider: text,
|
|
8092
8103
|
id,
|
|
@@ -8127,7 +8138,7 @@ var contactCheck = strictObject({
|
|
|
8127
8138
|
checked_at: time
|
|
8128
8139
|
});
|
|
8129
8140
|
|
|
8130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
8131
8142
|
var quoted = strictObject({
|
|
8132
8143
|
id,
|
|
8133
8144
|
sender_id: nullable(id),
|
|
@@ -8246,7 +8257,7 @@ var message = strictObject({
|
|
|
8246
8257
|
provider_metadata: providerMetadata
|
|
8247
8258
|
});
|
|
8248
8259
|
|
|
8249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
8250
8261
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
8251
8262
|
var contextMessage = strictObject({
|
|
8252
8263
|
locator: reference,
|
|
@@ -8444,7 +8455,7 @@ var contactPreparation = strictObject({
|
|
|
8444
8455
|
})
|
|
8445
8456
|
});
|
|
8446
8457
|
|
|
8447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8448
8459
|
var contactNote = strictObject({
|
|
8449
8460
|
id,
|
|
8450
8461
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8456,13 +8467,13 @@ var contactNote = strictObject({
|
|
|
8456
8467
|
updated_at: time
|
|
8457
8468
|
});
|
|
8458
8469
|
|
|
8459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8460
8471
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8461
8472
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8462
8473
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8463
8474
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8464
8475
|
|
|
8465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8466
8477
|
var conversation = strictObject({
|
|
8467
8478
|
id,
|
|
8468
8479
|
chat: reference,
|
|
@@ -8477,7 +8488,7 @@ var conversation = strictObject({
|
|
|
8477
8488
|
rules_version: count
|
|
8478
8489
|
});
|
|
8479
8490
|
|
|
8480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8481
8492
|
var conversationBuild = strictObject({
|
|
8482
8493
|
chat: id,
|
|
8483
8494
|
messages: count,
|
|
@@ -8502,7 +8513,7 @@ var catchUpPreparation = strictObject({
|
|
|
8502
8513
|
prepared: optional(conversationPreparation)
|
|
8503
8514
|
});
|
|
8504
8515
|
|
|
8505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8506
8517
|
var conversationDetails = union([
|
|
8507
8518
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8508
8519
|
message
|
|
@@ -8592,7 +8603,7 @@ var conversationHit = strictObject({
|
|
|
8592
8603
|
stale: boolean()
|
|
8593
8604
|
});
|
|
8594
8605
|
|
|
8595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8596
8607
|
var counters = strictObject({
|
|
8597
8608
|
cutoff: time,
|
|
8598
8609
|
max_age_ms: milliseconds,
|
|
@@ -8622,7 +8633,86 @@ var counterRefresh = strictObject({
|
|
|
8622
8633
|
complete: optional(boolean())
|
|
8623
8634
|
});
|
|
8624
8635
|
|
|
8625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
8637
|
+
var nullableText = nullable(text);
|
|
8638
|
+
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
8639
|
+
var outcome = picklist(["open", "won", "lost"]);
|
|
8640
|
+
var crmAccount = nullable(strictObject({ provider: text, account: text }));
|
|
8641
|
+
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
8642
|
+
var deal = strictObject({
|
|
8643
|
+
id,
|
|
8644
|
+
ref: reference,
|
|
8645
|
+
kind: picklist(["deal", "lead"]),
|
|
8646
|
+
title: text,
|
|
8647
|
+
/** One line with the stage, amount and status. */
|
|
8648
|
+
summary: text,
|
|
8649
|
+
pipeline: reference,
|
|
8650
|
+
pipeline_name: text,
|
|
8651
|
+
stage: text,
|
|
8652
|
+
status: outcome,
|
|
8653
|
+
organization: nullable(party),
|
|
8654
|
+
currency: nullableText,
|
|
8655
|
+
amount: nullableText,
|
|
8656
|
+
close_date: day2,
|
|
8657
|
+
closed_date: day2,
|
|
8658
|
+
closed_reason: nullableText,
|
|
8659
|
+
rank: nullable(number()),
|
|
8660
|
+
/** A lead's deal, once it became one. */
|
|
8661
|
+
deal: nullable(reference),
|
|
8662
|
+
/** The CRM account it is a copy from; `null` for the owner's own. */
|
|
8663
|
+
account: crmAccount,
|
|
8664
|
+
external_id: nullableText,
|
|
8665
|
+
people: array(strictObject({ ...party.entries, role: picklist(["owner", "contact", "decision-maker"]) })),
|
|
8666
|
+
author: strictObject({
|
|
8667
|
+
type: picklist(["person", "bot"]),
|
|
8668
|
+
id,
|
|
8669
|
+
name: nullableText,
|
|
8670
|
+
kind: nullable(picklist(["agent", "rule"]))
|
|
8671
|
+
}),
|
|
8672
|
+
model: nullableText,
|
|
8673
|
+
source: text,
|
|
8674
|
+
reason: nullableText,
|
|
8675
|
+
evidence: array(reference),
|
|
8676
|
+
project: nullable(reference),
|
|
8677
|
+
project_name: nullableText,
|
|
8678
|
+
created_at: time,
|
|
8679
|
+
updated_at: time,
|
|
8680
|
+
untrusted
|
|
8681
|
+
});
|
|
8682
|
+
var lead = deal;
|
|
8683
|
+
var pipelineStage = strictObject({
|
|
8684
|
+
name: text,
|
|
8685
|
+
position: count,
|
|
8686
|
+
outcome,
|
|
8687
|
+
external_id: nullableText,
|
|
8688
|
+
/** Open deals or leads in it now. */
|
|
8689
|
+
open: count,
|
|
8690
|
+
/** With a funnel: rows that got this far, and the share of them that reached the next stage. */
|
|
8691
|
+
reached: optional(count),
|
|
8692
|
+
conversion: optional(nullable(number()))
|
|
8693
|
+
});
|
|
8694
|
+
var pipeline = strictObject({
|
|
8695
|
+
id,
|
|
8696
|
+
ref: reference,
|
|
8697
|
+
name: text,
|
|
8698
|
+
kind: picklist(["deal", "lead"]),
|
|
8699
|
+
account: crmAccount,
|
|
8700
|
+
external_id: nullableText,
|
|
8701
|
+
stages: array(pipelineStage),
|
|
8702
|
+
created_at: time,
|
|
8703
|
+
totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
|
|
8704
|
+
since: optional(day2),
|
|
8705
|
+
untrusted
|
|
8706
|
+
});
|
|
8707
|
+
var stage = strictObject({
|
|
8708
|
+
...pipelineStage.entries,
|
|
8709
|
+
pipeline: reference,
|
|
8710
|
+
pipeline_name: text,
|
|
8711
|
+
kind: picklist(["deal", "lead"]),
|
|
8712
|
+
untrusted
|
|
8713
|
+
});
|
|
8714
|
+
|
|
8715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8626
8716
|
var document = strictObject({
|
|
8627
8717
|
ref: reference,
|
|
8628
8718
|
id,
|
|
@@ -8637,7 +8727,7 @@ var document = strictObject({
|
|
|
8637
8727
|
owners: optional(array(text))
|
|
8638
8728
|
});
|
|
8639
8729
|
|
|
8640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8641
8731
|
var documentLink = strictObject({
|
|
8642
8732
|
ref: reference,
|
|
8643
8733
|
url: text,
|
|
@@ -8648,7 +8738,7 @@ var documentLink = strictObject({
|
|
|
8648
8738
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8649
8739
|
});
|
|
8650
8740
|
|
|
8651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8652
8742
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8653
8743
|
var contribution = strictObject({
|
|
8654
8744
|
message: evidenceMessage,
|
|
@@ -8678,7 +8768,7 @@ var retentionStay = strictObject({
|
|
|
8678
8768
|
});
|
|
8679
8769
|
var evidence = union([contribution, retentionStay]);
|
|
8680
8770
|
|
|
8681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8682
8772
|
var fact = strictObject({
|
|
8683
8773
|
ref: reference,
|
|
8684
8774
|
id,
|
|
@@ -8708,9 +8798,9 @@ var fact = strictObject({
|
|
|
8708
8798
|
updated_at: time
|
|
8709
8799
|
});
|
|
8710
8800
|
|
|
8711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8712
8802
|
var hit = strictObject({
|
|
8713
|
-
kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
|
|
8803
|
+
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
|
|
8714
8804
|
ref: reference,
|
|
8715
8805
|
provider: text,
|
|
8716
8806
|
url: optional(text),
|
|
@@ -8746,7 +8836,7 @@ var hit = strictObject({
|
|
|
8746
8836
|
untrusted
|
|
8747
8837
|
});
|
|
8748
8838
|
|
|
8749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8750
8840
|
var identity = strictObject({
|
|
8751
8841
|
ref: reference,
|
|
8752
8842
|
provider: text,
|
|
@@ -8759,7 +8849,7 @@ var identity = strictObject({
|
|
|
8759
8849
|
person: optional(nullable(reference))
|
|
8760
8850
|
});
|
|
8761
8851
|
|
|
8762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8763
8853
|
var imageEmbedding = strictObject({
|
|
8764
8854
|
model: text,
|
|
8765
8855
|
embedded: count,
|
|
@@ -8768,13 +8858,13 @@ var imageEmbedding = strictObject({
|
|
|
8768
8858
|
more: boolean()
|
|
8769
8859
|
});
|
|
8770
8860
|
|
|
8771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8772
8862
|
import { spawn } from "node:child_process";
|
|
8773
8863
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8774
8864
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8775
8865
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8776
8866
|
|
|
8777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8778
8868
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8779
8869
|
const total = input.total ?? null;
|
|
8780
8870
|
const updated = input.updatedAt ?? null;
|
|
@@ -8790,7 +8880,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8790
8880
|
};
|
|
8791
8881
|
}, "progressOf");
|
|
8792
8882
|
|
|
8793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8794
8884
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8795
8885
|
const run = currentRun();
|
|
8796
8886
|
const trace = traceId ?? run.traceId;
|
|
@@ -8804,7 +8894,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8804
8894
|
}));
|
|
8805
8895
|
}, "recordLogFor");
|
|
8806
8896
|
|
|
8807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8808
8898
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8809
8899
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8810
8900
|
const out = openSync(log, "a", 384);
|
|
@@ -8854,11 +8944,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
|
|
|
8854
8944
|
const job2 = readJob(dir, id6);
|
|
8855
8945
|
if (!job2)
|
|
8856
8946
|
return;
|
|
8857
|
-
const
|
|
8947
|
+
const outcome4 = stateOf(job2);
|
|
8858
8948
|
recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
|
|
8859
8949
|
event: "job.exit",
|
|
8860
8950
|
job: id6,
|
|
8861
|
-
outcome:
|
|
8951
|
+
outcome: outcome4,
|
|
8862
8952
|
...job2.error ? { errorCode: job2.error.code } : {}
|
|
8863
8953
|
});
|
|
8864
8954
|
}, "finishJob");
|
|
@@ -8959,7 +9049,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8959
9049
|
return { job: id6, pid, chat: input.chat, log };
|
|
8960
9050
|
}, "startArchiveJob");
|
|
8961
9051
|
|
|
8962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8963
9053
|
var problem = strictObject({ code: text, message: text });
|
|
8964
9054
|
var job = strictObject({
|
|
8965
9055
|
id,
|
|
@@ -8982,7 +9072,7 @@ var job = strictObject({
|
|
|
8982
9072
|
error: optional(problem)
|
|
8983
9073
|
});
|
|
8984
9074
|
|
|
8985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8986
9076
|
var joinRequest = strictObject({
|
|
8987
9077
|
person_id: id,
|
|
8988
9078
|
name: nullable(text),
|
|
@@ -8993,7 +9083,7 @@ var joinRequest = strictObject({
|
|
|
8993
9083
|
about: optional(text)
|
|
8994
9084
|
});
|
|
8995
9085
|
|
|
8996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8997
9087
|
var botProfile = strictObject({
|
|
8998
9088
|
name: text,
|
|
8999
9089
|
token: text,
|
|
@@ -9024,6 +9114,10 @@ var scheduledJob = strictObject({
|
|
|
9024
9114
|
name: text,
|
|
9025
9115
|
kind: picklist(["command", "agent"]),
|
|
9026
9116
|
when: text,
|
|
9117
|
+
/** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
|
|
9118
|
+
notify: optional(picklist(["always", "failures", "never"])),
|
|
9119
|
+
/** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
|
|
9120
|
+
to: optional(array(text)),
|
|
9027
9121
|
last: nullable(strictObject({
|
|
9028
9122
|
at: time,
|
|
9029
9123
|
exit_code: number(),
|
|
@@ -9035,7 +9129,19 @@ var scheduledJob = strictObject({
|
|
|
9035
9129
|
failures: optional(number()),
|
|
9036
9130
|
cost_usd: optional(number()),
|
|
9037
9131
|
/** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
|
|
9038
|
-
skipped: optional(strictObject({
|
|
9132
|
+
skipped: optional(strictObject({
|
|
9133
|
+
at: time,
|
|
9134
|
+
why: text,
|
|
9135
|
+
/** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
|
|
9136
|
+
reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
|
|
9137
|
+
})),
|
|
9138
|
+
/** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
|
|
9139
|
+
deliveries: optional(array(strictObject({
|
|
9140
|
+
to: text,
|
|
9141
|
+
ok: boolean(),
|
|
9142
|
+
reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/))),
|
|
9143
|
+
error: optional(text)
|
|
9144
|
+
})))
|
|
9039
9145
|
})),
|
|
9040
9146
|
/** Agent schedules: what today's runs cost, in US dollars. */
|
|
9041
9147
|
spent_today_usd: optional(number()),
|
|
@@ -9070,7 +9176,7 @@ var stickerInventory = strictObject({
|
|
|
9070
9176
|
url: optional(nullable(text))
|
|
9071
9177
|
});
|
|
9072
9178
|
|
|
9073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
9074
9180
|
var pollVote = strictObject({
|
|
9075
9181
|
person_id: id,
|
|
9076
9182
|
name: nullable(text),
|
|
@@ -9080,7 +9186,7 @@ var pollVote = strictObject({
|
|
|
9080
9186
|
voted_at: time
|
|
9081
9187
|
});
|
|
9082
9188
|
|
|
9083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
9084
9190
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
9085
9191
|
var observation = strictObject({
|
|
9086
9192
|
value: pipe(number(), minValue(0)),
|
|
@@ -9122,7 +9228,7 @@ var serveSummary = strictObject({
|
|
|
9122
9228
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
9123
9229
|
});
|
|
9124
9230
|
|
|
9125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
9126
9232
|
var mailCounts = strictObject({
|
|
9127
9233
|
by: picklist(["day", "week", "sender"]),
|
|
9128
9234
|
received: count,
|
|
@@ -9137,7 +9243,7 @@ var mailCounts = strictObject({
|
|
|
9137
9243
|
}))
|
|
9138
9244
|
});
|
|
9139
9245
|
|
|
9140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
9141
9247
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
9142
9248
|
var base = { id, evidence: array(evidence2) };
|
|
9143
9249
|
var finding = variant("kind", [
|
|
@@ -9261,7 +9367,7 @@ var finding = variant("kind", [
|
|
|
9261
9367
|
reason: text
|
|
9262
9368
|
})
|
|
9263
9369
|
]);
|
|
9264
|
-
var
|
|
9370
|
+
var outcome2 = strictObject({
|
|
9265
9371
|
id,
|
|
9266
9372
|
fingerprint: text,
|
|
9267
9373
|
status: picklist(["accepted", "rejected"]),
|
|
@@ -9277,11 +9383,11 @@ var mailFindings = strictObject({
|
|
|
9277
9383
|
author,
|
|
9278
9384
|
decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
|
|
9279
9385
|
decided_at: nullable(time),
|
|
9280
|
-
previous: array(
|
|
9281
|
-
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(
|
|
9386
|
+
previous: array(outcome2),
|
|
9387
|
+
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9282
9388
|
});
|
|
9283
9389
|
|
|
9284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9285
9391
|
var mediaArchive = strictObject({
|
|
9286
9392
|
directory: text,
|
|
9287
9393
|
chats: count,
|
|
@@ -9313,7 +9419,7 @@ var mediaArchiveTimer = union([
|
|
|
9313
9419
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9314
9420
|
]);
|
|
9315
9421
|
|
|
9316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9317
9423
|
var preparationId = pipe(string(), minLength(1));
|
|
9318
9424
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9319
9425
|
var preparationTime = nullable(isoTime);
|
|
@@ -9405,7 +9511,7 @@ var preparationMeeting = strictObject({
|
|
|
9405
9511
|
updated_at: isoTime
|
|
9406
9512
|
});
|
|
9407
9513
|
|
|
9408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9409
9515
|
var meetingEvidence = preparationEvidence;
|
|
9410
9516
|
var meetingPersonContext = strictObject({
|
|
9411
9517
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9427,7 +9533,7 @@ var meetingPersonContext = strictObject({
|
|
|
9427
9533
|
})
|
|
9428
9534
|
});
|
|
9429
9535
|
|
|
9430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9431
9537
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9432
9538
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9433
9539
|
var finding2 = variant("kind", [
|
|
@@ -9445,7 +9551,7 @@ var finding2 = variant("kind", [
|
|
|
9445
9551
|
assignee_evidence: optional(array(reference))
|
|
9446
9552
|
})
|
|
9447
9553
|
]);
|
|
9448
|
-
var
|
|
9554
|
+
var outcome3 = strictObject({
|
|
9449
9555
|
id,
|
|
9450
9556
|
fingerprint: text,
|
|
9451
9557
|
status: picklist(["accepted", "rejected"]),
|
|
@@ -9461,11 +9567,11 @@ var meetingFindings = strictObject({
|
|
|
9461
9567
|
author,
|
|
9462
9568
|
decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
|
|
9463
9569
|
decided_at: nullable(time),
|
|
9464
|
-
previous: array(
|
|
9465
|
-
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(
|
|
9570
|
+
previous: array(outcome3),
|
|
9571
|
+
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9466
9572
|
});
|
|
9467
9573
|
|
|
9468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9469
9575
|
var communicationCoverage = strictObject({
|
|
9470
9576
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9471
9577
|
query: string(),
|
|
@@ -9510,7 +9616,7 @@ var preparationCommunications = strictObject({
|
|
|
9510
9616
|
}))
|
|
9511
9617
|
});
|
|
9512
9618
|
|
|
9513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9514
9620
|
var meetingPreparation = strictObject({
|
|
9515
9621
|
communications: optional(preparationCommunications),
|
|
9516
9622
|
schema_version: literal(1),
|
|
@@ -9623,7 +9729,7 @@ var meetingPreparation = strictObject({
|
|
|
9623
9729
|
})
|
|
9624
9730
|
});
|
|
9625
9731
|
|
|
9626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9627
9733
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9628
9734
|
var id3 = pipe(string(), minLength(1));
|
|
9629
9735
|
var text3 = string();
|
|
@@ -9687,7 +9793,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9687
9793
|
})
|
|
9688
9794
|
});
|
|
9689
9795
|
|
|
9690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9691
9797
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9692
9798
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9693
9799
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9717,7 +9823,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9717
9823
|
})
|
|
9718
9824
|
});
|
|
9719
9825
|
|
|
9720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9721
9827
|
var text4 = string();
|
|
9722
9828
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9723
9829
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9734,7 +9840,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9734
9840
|
persistence: literal("proposal-only")
|
|
9735
9841
|
});
|
|
9736
9842
|
|
|
9737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9738
9844
|
var memory = strictObject({
|
|
9739
9845
|
ref: reference,
|
|
9740
9846
|
id,
|
|
@@ -9761,7 +9867,7 @@ var memory = strictObject({
|
|
|
9761
9867
|
updated_at: time
|
|
9762
9868
|
});
|
|
9763
9869
|
|
|
9764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9765
9871
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9766
9872
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9767
9873
|
var mention = strictObject({
|
|
@@ -9804,13 +9910,13 @@ var mentionRebuild = strictObject({
|
|
|
9804
9910
|
mentions: count
|
|
9805
9911
|
});
|
|
9806
9912
|
|
|
9807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9808
9914
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9809
9915
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9810
9916
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9811
9917
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9812
9918
|
|
|
9813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9814
9920
|
var messageTranscript = strictObject({
|
|
9815
9921
|
message_id: id,
|
|
9816
9922
|
text,
|
|
@@ -9868,7 +9974,7 @@ var evidencePacket = strictObject({
|
|
|
9868
9974
|
}))
|
|
9869
9975
|
});
|
|
9870
9976
|
|
|
9871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9872
9978
|
var messageThread = strictObject({
|
|
9873
9979
|
ref: reference,
|
|
9874
9980
|
chat: id,
|
|
@@ -9885,7 +9991,7 @@ var messageThread = strictObject({
|
|
|
9885
9991
|
});
|
|
9886
9992
|
var messageContext = union([message, messageThread]);
|
|
9887
9993
|
|
|
9888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9889
9995
|
var messageCounts = strictObject({
|
|
9890
9996
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9891
9997
|
total: count,
|
|
@@ -9898,7 +10004,7 @@ var messageCounts = strictObject({
|
|
|
9898
10004
|
}))
|
|
9899
10005
|
});
|
|
9900
10006
|
|
|
9901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9902
10008
|
var messageLink = strictObject({
|
|
9903
10009
|
ref: reference,
|
|
9904
10010
|
url: nullable(text),
|
|
@@ -9915,7 +10021,7 @@ var messageLink = strictObject({
|
|
|
9915
10021
|
})))
|
|
9916
10022
|
});
|
|
9917
10023
|
|
|
9918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9919
10025
|
var savedMessageFile = strictObject({
|
|
9920
10026
|
kind: text,
|
|
9921
10027
|
path: text,
|
|
@@ -10002,7 +10108,7 @@ var messageSyncAll = strictObject({
|
|
|
10002
10108
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
10003
10109
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
10004
10110
|
|
|
10005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
10006
10112
|
var messageWrite = strictObject({
|
|
10007
10113
|
operation_id: id,
|
|
10008
10114
|
message,
|
|
@@ -10017,7 +10123,7 @@ var draftWrite = strictObject({
|
|
|
10017
10123
|
});
|
|
10018
10124
|
var messageSend = union([messageWrite, draftWrite]);
|
|
10019
10125
|
|
|
10020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
10021
10127
|
var model2 = strictObject({
|
|
10022
10128
|
id,
|
|
10023
10129
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -10034,7 +10140,7 @@ var model2 = strictObject({
|
|
|
10034
10140
|
path: text
|
|
10035
10141
|
});
|
|
10036
10142
|
|
|
10037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
10038
10144
|
var source = picklist(["environment", "keyring", "file"]);
|
|
10039
10145
|
var modelKey = strictObject({
|
|
10040
10146
|
provider: text,
|
|
@@ -10044,7 +10150,7 @@ var modelKey = strictObject({
|
|
|
10044
10150
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
10045
10151
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
10046
10152
|
|
|
10047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
10048
10154
|
var link = {
|
|
10049
10155
|
target_text: nullable(text),
|
|
10050
10156
|
kind: text,
|
|
@@ -10085,7 +10191,7 @@ var note = strictObject({
|
|
|
10085
10191
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
10086
10192
|
});
|
|
10087
10193
|
|
|
10088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
10089
10195
|
var versus = strictObject({ current: number(), previous: number() });
|
|
10090
10196
|
var person = { person_ref: reference, name: nullable(text) };
|
|
10091
10197
|
var graph = strictObject({
|
|
@@ -10119,14 +10225,14 @@ var officialStats = strictObject({
|
|
|
10119
10225
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
10120
10226
|
});
|
|
10121
10227
|
|
|
10122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
10123
10229
|
var person2 = strictObject({
|
|
10124
10230
|
ref: reference,
|
|
10125
10231
|
name: nullable(text),
|
|
10126
10232
|
identities: optional(array(identity))
|
|
10127
10233
|
});
|
|
10128
10234
|
|
|
10129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
10130
10236
|
var poll = strictObject({
|
|
10131
10237
|
chat_id: id,
|
|
10132
10238
|
message_id: id,
|
|
@@ -10142,11 +10248,11 @@ var poll = strictObject({
|
|
|
10142
10248
|
});
|
|
10143
10249
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10144
10250
|
|
|
10145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10146
10252
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10147
10253
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10148
10254
|
|
|
10149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10150
10256
|
var figures = record(string(), number());
|
|
10151
10257
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10152
10258
|
var rankingRow = strictObject({
|
|
@@ -10193,7 +10299,7 @@ var ranking = strictObject({
|
|
|
10193
10299
|
rows: array(rankingRow)
|
|
10194
10300
|
});
|
|
10195
10301
|
|
|
10196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10197
10303
|
var reaction = strictObject({
|
|
10198
10304
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10199
10305
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10201,7 +10307,7 @@ var reaction = strictObject({
|
|
|
10201
10307
|
reacted_at: time
|
|
10202
10308
|
});
|
|
10203
10309
|
|
|
10204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10205
10311
|
var reactionChange = strictObject({
|
|
10206
10312
|
operation_id: id,
|
|
10207
10313
|
chat_id: id,
|
|
@@ -10209,7 +10315,7 @@ var reactionChange = strictObject({
|
|
|
10209
10315
|
reaction: nullable(text)
|
|
10210
10316
|
});
|
|
10211
10317
|
|
|
10212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10213
10319
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10214
10320
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10215
10321
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10220,7 +10326,7 @@ var recipientChange = strictObject({
|
|
|
10220
10326
|
...partial(recipientOff).entries
|
|
10221
10327
|
});
|
|
10222
10328
|
|
|
10223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10224
10330
|
var events = array(record(string(), unknown()));
|
|
10225
10331
|
var recordedRun = strictObject({
|
|
10226
10332
|
run_id: id,
|
|
@@ -10292,7 +10398,7 @@ var runHit = strictObject({
|
|
|
10292
10398
|
});
|
|
10293
10399
|
var runLocation = strictObject({ path: text });
|
|
10294
10400
|
|
|
10295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10296
10402
|
var relationship = strictObject({
|
|
10297
10403
|
id,
|
|
10298
10404
|
from: reference,
|
|
@@ -10309,7 +10415,7 @@ var relationship = strictObject({
|
|
|
10309
10415
|
created_at: time
|
|
10310
10416
|
});
|
|
10311
10417
|
|
|
10312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10313
10419
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10314
10420
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10315
10421
|
var responseTimes = strictObject({
|
|
@@ -10326,7 +10432,7 @@ var waitingChats = strictObject({
|
|
|
10326
10432
|
by_kind: strictObject({ private: count, group: count })
|
|
10327
10433
|
});
|
|
10328
10434
|
|
|
10329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10330
10436
|
var retentionCohort = strictObject({
|
|
10331
10437
|
/** The first day of the joining day or week. */
|
|
10332
10438
|
cohort: text,
|
|
@@ -10374,7 +10480,7 @@ var retention = strictObject({
|
|
|
10374
10480
|
rows: array(retentionCohort)
|
|
10375
10481
|
});
|
|
10376
10482
|
|
|
10377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10378
10484
|
var savedSearch = strictObject({
|
|
10379
10485
|
id,
|
|
10380
10486
|
/** `null` for a run in the history. */
|
|
@@ -10391,7 +10497,7 @@ var savedSearch = strictObject({
|
|
|
10391
10497
|
});
|
|
10392
10498
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10393
10499
|
|
|
10394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10395
10501
|
var sendAttempt = strictObject({
|
|
10396
10502
|
at: time,
|
|
10397
10503
|
profile: text,
|
|
@@ -10419,7 +10525,7 @@ var sendAttempt = strictObject({
|
|
|
10419
10525
|
error_code: optional(text)
|
|
10420
10526
|
});
|
|
10421
10527
|
|
|
10422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10423
10529
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10424
10530
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10425
10531
|
var infoSchema = strictObject({
|
|
@@ -10574,12 +10680,25 @@ var storeBackup = strictObject({
|
|
|
10574
10680
|
encrypted: optional(literal(true))
|
|
10575
10681
|
});
|
|
10576
10682
|
var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
|
|
10577
|
-
var storeRestore =
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10683
|
+
var storeRestore = union([
|
|
10684
|
+
strictObject({
|
|
10685
|
+
path: text,
|
|
10686
|
+
restored_from: text,
|
|
10687
|
+
kept_at: nullable(text),
|
|
10688
|
+
schema: count
|
|
10689
|
+
}),
|
|
10690
|
+
/** From a rollback copy: its tables put back in place, the store returned to `schema` from `was`. */
|
|
10691
|
+
strictObject({
|
|
10692
|
+
path: text,
|
|
10693
|
+
restored_from: text,
|
|
10694
|
+
rolled_back: literal(true),
|
|
10695
|
+
schema: count,
|
|
10696
|
+
was: count,
|
|
10697
|
+
tables: array(strictObject({ table: text, rows: count })),
|
|
10698
|
+
rebuilt: array(text),
|
|
10699
|
+
foreign_key_violations: count
|
|
10700
|
+
})
|
|
10701
|
+
]);
|
|
10583
10702
|
var storeReset = union([
|
|
10584
10703
|
strictObject({ ...absent.entries, reset: literal(false) }),
|
|
10585
10704
|
strictObject({
|
|
@@ -10627,7 +10746,7 @@ var storeRepair = union([
|
|
|
10627
10746
|
]);
|
|
10628
10747
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10629
10748
|
|
|
10630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10631
10750
|
var range = strictObject({ from: number(), to: number() });
|
|
10632
10751
|
var storeChatStatus = strictObject({
|
|
10633
10752
|
chat_id: id,
|
|
@@ -10725,7 +10844,7 @@ var storeJobRetry = union([
|
|
|
10725
10844
|
]);
|
|
10726
10845
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10727
10846
|
|
|
10728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10729
10848
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10730
10849
|
var storeTable = strictObject({
|
|
10731
10850
|
name: text,
|
|
@@ -10734,7 +10853,7 @@ var storeTable = strictObject({
|
|
|
10734
10853
|
bytes: optional(nullable(count))
|
|
10735
10854
|
});
|
|
10736
10855
|
|
|
10737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10738
10857
|
var tagTarget = variant("type", [
|
|
10739
10858
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10740
10859
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10765,7 +10884,7 @@ var automaticTags = strictObject({
|
|
|
10765
10884
|
dry_run: boolean()
|
|
10766
10885
|
});
|
|
10767
10886
|
|
|
10768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10769
10888
|
var tagging = strictObject({
|
|
10770
10889
|
tag: text,
|
|
10771
10890
|
type: picklist(TAG_TYPES),
|
|
@@ -10778,7 +10897,7 @@ var tagging = strictObject({
|
|
|
10778
10897
|
created_at: time
|
|
10779
10898
|
});
|
|
10780
10899
|
|
|
10781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10782
10901
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10783
10902
|
var taskPair = strictObject({
|
|
10784
10903
|
task: nullable(side),
|
|
@@ -10801,7 +10920,7 @@ var taskPair = strictObject({
|
|
|
10801
10920
|
created_at: time
|
|
10802
10921
|
});
|
|
10803
10922
|
|
|
10804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10805
10924
|
var nullableTime = nullable(time);
|
|
10806
10925
|
var link2 = strictObject({
|
|
10807
10926
|
id,
|
|
@@ -10975,7 +11094,7 @@ var taskReview = strictObject({
|
|
|
10975
11094
|
untrusted
|
|
10976
11095
|
});
|
|
10977
11096
|
|
|
10978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10979
11098
|
var topic = strictObject({
|
|
10980
11099
|
id,
|
|
10981
11100
|
title: text,
|
|
@@ -10989,9 +11108,13 @@ var topic = strictObject({
|
|
|
10989
11108
|
untrusted
|
|
10990
11109
|
});
|
|
10991
11110
|
|
|
10992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10993
11112
|
var ENTITIES = {
|
|
10994
11113
|
sync_progress: progress,
|
|
11114
|
+
deal,
|
|
11115
|
+
lead,
|
|
11116
|
+
pipeline,
|
|
11117
|
+
stage,
|
|
10995
11118
|
...MEETING_RESULT_ENTITIES,
|
|
10996
11119
|
message,
|
|
10997
11120
|
message_context: messageContext,
|
|
@@ -11271,7 +11394,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11271
11394
|
return [name, definition];
|
|
11272
11395
|
})), "entityDefinitions");
|
|
11273
11396
|
|
|
11274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11275
11398
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11276
11399
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11277
11400
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11305,7 +11428,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11305
11428
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11306
11429
|
}, "answerRow");
|
|
11307
11430
|
|
|
11308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11309
11432
|
import { join as join6 } from "node:path";
|
|
11310
11433
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11311
11434
|
var IMAGE_MODELS = [
|
|
@@ -11359,7 +11482,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11359
11482
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11360
11483
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11361
11484
|
|
|
11362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11363
11486
|
var STEPS2 = defineSteps([
|
|
11364
11487
|
...STEPS,
|
|
11365
11488
|
{
|
|
@@ -11640,7 +11763,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11640
11763
|
].join(" ");
|
|
11641
11764
|
}, "stepLine");
|
|
11642
11765
|
|
|
11643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11644
11767
|
var where = [{ field: "ref" }];
|
|
11645
11768
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11646
11769
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11732,7 +11855,7 @@ var STATUS_ROWS = {
|
|
|
11732
11855
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11733
11856
|
};
|
|
11734
11857
|
|
|
11735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11736
11859
|
var TEXT_CHARS = 400;
|
|
11737
11860
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11738
11861
|
var messageRow = {
|
|
@@ -11917,8 +12040,8 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
|
|
|
11917
12040
|
const parts = clock.parts(iso);
|
|
11918
12041
|
if (!parts)
|
|
11919
12042
|
return { text: clean(iso) };
|
|
11920
|
-
const
|
|
11921
|
-
return column.as === "day" ? { text:
|
|
12043
|
+
const day3 = parts.date.slice(5);
|
|
12044
|
+
return column.as === "day" ? { text: day3, date: parts.date } : { text: `${day3} ${parts.time}`, date: parts.date, time: parts.time };
|
|
11922
12045
|
}
|
|
11923
12046
|
case "count":
|
|
11924
12047
|
return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
|
|
@@ -12098,7 +12221,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12098
12221
|
return lines.concat(footerOf(body)).join("\n");
|
|
12099
12222
|
}, "compactText");
|
|
12100
12223
|
|
|
12101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12102
12225
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12103
12226
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12104
12227
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12156,7 +12279,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12156
12279
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12157
12280
|
}, "largeAnswerSteps");
|
|
12158
12281
|
|
|
12159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12160
12283
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12161
12284
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12162
12285
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12170,7 +12293,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12170
12293
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12171
12294
|
}, "strip");
|
|
12172
12295
|
|
|
12173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12174
12297
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12175
12298
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12176
12299
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12353,6 +12476,7 @@ export {
|
|
|
12353
12476
|
readEvents,
|
|
12354
12477
|
currentRun,
|
|
12355
12478
|
inRun,
|
|
12479
|
+
runEvent,
|
|
12356
12480
|
typedCommand,
|
|
12357
12481
|
useAsProcessRun,
|
|
12358
12482
|
processRun,
|
|
@@ -12360,6 +12484,7 @@ export {
|
|
|
12360
12484
|
traceOf,
|
|
12361
12485
|
childTrace,
|
|
12362
12486
|
withAttempt,
|
|
12487
|
+
currentAttempt,
|
|
12363
12488
|
recordLogFor,
|
|
12364
12489
|
spawnDetached,
|
|
12365
12490
|
jobsDir,
|
|
@@ -12433,6 +12558,7 @@ export {
|
|
|
12433
12558
|
commandWords,
|
|
12434
12559
|
liftProfile,
|
|
12435
12560
|
valuedOptions,
|
|
12561
|
+
refuseCommandName,
|
|
12436
12562
|
rootOf,
|
|
12437
12563
|
sampleCommand,
|
|
12438
12564
|
TEXT_MODELS,
|
|
@@ -12456,6 +12582,7 @@ export {
|
|
|
12456
12582
|
issueMessage,
|
|
12457
12583
|
rememberAccount,
|
|
12458
12584
|
recalledAccount,
|
|
12585
|
+
profilesHere,
|
|
12459
12586
|
NONE_NAMED,
|
|
12460
12587
|
namedProfile,
|
|
12461
12588
|
NoProfileHere,
|
|
@@ -12477,6 +12604,7 @@ export {
|
|
|
12477
12604
|
changesAuthority,
|
|
12478
12605
|
changesAuthorityAt,
|
|
12479
12606
|
changesAuthorityNow,
|
|
12607
|
+
logsInOrOut,
|
|
12480
12608
|
isLogin,
|
|
12481
12609
|
destroysNothing,
|
|
12482
12610
|
admittedUnderLock,
|