@wirecat/cli-template 0.16.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.
Files changed (102) hide show
  1. package/.github/workflows/ci.yml +18 -0
  2. package/.github/workflows/release-pr.yml +37 -0
  3. package/CHANGELOG.md +14 -0
  4. package/bin/release +10 -3
  5. package/biome.json +6 -0
  6. package/contracts/plan.json +2 -1
  7. package/dist/bin/clidev.js +2 -2
  8. package/dist/bundle/{all-profiles-FS7AEOE7.js → all-profiles-CCT2XPJL.js} +7 -7
  9. package/dist/bundle/{anthropic-5RN7BGDI.js → anthropic-QLLP7EE4.js} +4 -4
  10. package/dist/bundle/{app-server-WGTKZQKJ.js → app-server-ELI5TGL7.js} +36 -36
  11. package/dist/bundle/{bun-ILPS6AYA.js → bun-C7JS2V7G.js} +2 -2
  12. package/dist/bundle/{bun-sqlite-WK2IGBGD.js → bun-sqlite-OM72TCYT.js} +3 -3
  13. package/dist/bundle/{chunk-ADFSSIV4.js → chunk-2Y5NBD7U.js} +4 -4
  14. package/dist/bundle/{chunk-7EUX7AZV.js → chunk-33JGD2CR.js} +3 -3
  15. package/dist/bundle/{chunk-JFXWLQ2L.js → chunk-3VVIEZRY.js} +2 -2
  16. package/dist/bundle/{chunk-CGFQT3LQ.js → chunk-6PHTRAZA.js} +1 -1
  17. package/dist/bundle/{chunk-VS5LGSTM.js → chunk-6VCFDEHT.js} +1 -1
  18. package/dist/bundle/{chunk-NENYWEXF.js → chunk-7OQF5ZMN.js} +1 -1
  19. package/dist/bundle/{chunk-6WOJIAYA.js → chunk-AKUMR7PE.js} +2 -2
  20. package/dist/bundle/{chunk-BPMKAZSS.js → chunk-ASO23RNM.js} +152 -79
  21. package/dist/bundle/{chunk-VOTEB3AN.js → chunk-AUVPTFUS.js} +1 -1
  22. package/dist/bundle/{chunk-JJZCPBH3.js → chunk-BOCIYBBO.js} +53 -44
  23. package/dist/bundle/{chunk-QGOOPPEW.js → chunk-BXZRTMXA.js} +5 -5
  24. package/dist/bundle/{chunk-SKBRW5U3.js → chunk-DVLM23HB.js} +2 -2
  25. package/dist/bundle/{chunk-YIVY2WI3.js → chunk-E4KQOKQ5.js} +1 -1
  26. package/dist/bundle/{chunk-ZSY4WAGI.js → chunk-EQDVQN4E.js} +299 -258
  27. package/dist/bundle/{chunk-RFJKNFVF.js → chunk-FF3AGTHY.js} +6 -6
  28. package/dist/bundle/{chunk-TXHCL75B.js → chunk-GG5PXNMH.js} +25 -22
  29. package/dist/bundle/{chunk-DEHBTFIC.js → chunk-GUCMIUNB.js} +2 -2
  30. package/dist/bundle/{chunk-RYOAQCVJ.js → chunk-HVAEHUSZ.js} +2 -2
  31. package/dist/bundle/{chunk-CTBHQRX6.js → chunk-ITPFCKCL.js} +13 -13
  32. package/dist/bundle/{chunk-Z5NL6YNU.js → chunk-J2RUBXCI.js} +6 -6
  33. package/dist/bundle/{chunk-7Z4HR6GO.js → chunk-KRXN3FV3.js} +1 -1
  34. package/dist/bundle/{chunk-OF56L2JU.js → chunk-LFLN6PVS.js} +4 -4
  35. package/dist/bundle/{chunk-YNROUY3R.js → chunk-LN53L2V5.js} +11 -11
  36. package/dist/bundle/{chunk-WDWP5N6M.js → chunk-MLSN3UP4.js} +26 -26
  37. package/dist/bundle/{chunk-3MDNAYQA.js → chunk-O6PBO4BU.js} +1 -1
  38. package/dist/bundle/{chunk-5KAYQKBK.js → chunk-QJS4WWYK.js} +63 -63
  39. package/dist/bundle/{chunk-EA3TMI4A.js → chunk-QLBS6OC2.js} +2362 -1225
  40. package/dist/bundle/{chunk-5HHIPDNW.js → chunk-QVPTZDRA.js} +2 -2
  41. package/dist/bundle/{chunk-OGTRPW2K.js → chunk-R5CPFSPI.js} +7 -7
  42. package/dist/bundle/{chunk-2MWNE4L3.js → chunk-R5IY4O25.js} +4 -4
  43. package/dist/bundle/{chunk-C3GNOEJP.js → chunk-RGKXMVOZ.js} +3 -3
  44. package/dist/bundle/{chunk-G45R7M42.js → chunk-RT46AWIH.js} +1 -1
  45. package/dist/bundle/{chunk-MEXT6XDP.js → chunk-RUHNHEAF.js} +3 -3
  46. package/dist/bundle/{chunk-ORV4EGNC.js → chunk-S465TCR3.js} +8 -8
  47. package/dist/bundle/{chunk-WM5AMTRY.js → chunk-SQKP6V4S.js} +27 -13
  48. package/dist/bundle/{chunk-VPCXYY46.js → chunk-SQOXYNKF.js} +1 -1
  49. package/dist/bundle/{chunk-NVPWZF67.js → chunk-URPKIONS.js} +8 -8
  50. package/dist/bundle/{chunk-HTYLT6ME.js → chunk-UW4PJZVJ.js} +282 -170
  51. package/dist/bundle/{chunk-ENDBOYQR.js → chunk-WKUJCPSP.js} +89 -45
  52. package/dist/bundle/{chunk-FMO6F5Q2.js → chunk-WQBBSVZM.js} +2 -2
  53. package/dist/bundle/{chunk-LRHX62ZF.js → chunk-WRLOK7XC.js} +3 -3
  54. package/dist/bundle/{chunk-MBBOINK4.js → chunk-X44ZT64I.js} +3 -3
  55. package/dist/bundle/{chunk-ATHZEV2Z.js → chunk-XKL5FRH3.js} +3 -3
  56. package/dist/bundle/{chunk-ETJXPB6A.js → chunk-XS56LIQ7.js} +4 -4
  57. package/dist/bundle/{chunk-3WDYHOAF.js → chunk-YIH3PYWJ.js} +1 -1
  58. package/dist/bundle/{chunk-EILS4BTQ.js → chunk-ZRNBKTPP.js} +26 -26
  59. package/dist/bundle/clidev.js +3 -3
  60. package/dist/bundle/{command-contract-ZDU73EPH.js → command-contract-RV5ZOEAT.js} +11 -11
  61. package/dist/bundle/{decode-QMLOGZ6R.js → decode-V7HNHZBC.js} +3 -3
  62. package/dist/bundle/{echarts-DRDGGHJT.js → echarts-Y42YP2OL.js} +2 -2
  63. package/dist/bundle/{embed-PIR2LJR2.js → embed-JSQZL7JF.js} +4 -4
  64. package/dist/bundle/{embedder-6KBRPAEQ.js → embedder-7BHRCXWL.js} +7 -7
  65. package/dist/bundle/{first-run-JO3CMY3Z.js → first-run-BJ36KGST.js} +8 -8
  66. package/dist/bundle/first-screen-5YHQVNY4.js +26 -0
  67. package/dist/bundle/{instructions-EOQOXY6V.js → instructions-UWERND54.js} +1 -1
  68. package/dist/bundle/{mcp-7HBLFGCW.js → mcp-P4FSBSRS.js} +2 -2
  69. package/dist/bundle/{node-52WF2326.js → node-PZDNPKN7.js} +2 -2
  70. package/dist/bundle/{node-sqlite-LIK6OYNF.js → node-sqlite-4F5NLRNT.js} +4 -4
  71. package/dist/bundle/{oauth-7FVF7HQQ.js → oauth-VDXNA3DK.js} +5 -5
  72. package/dist/bundle/{open-CRZDEATN.js → open-EUJRQQNS.js} +3 -3
  73. package/dist/bundle/{openai-WAJ6WREQ.js → openai-EIBV2K72.js} +12 -12
  74. package/dist/bundle/{process-YIQPKLZI.js → process-XD5ZIFIL.js} +1 -1
  75. package/dist/bundle/{program-ZFFFPBRS.js → program-TJTVMIOX.js} +866 -495
  76. package/dist/bundle/{prompt-QQIVHO3M.js → prompt-LYUZNHDK.js} +3 -3
  77. package/dist/bundle/{recognize-4KLBZDEC.js → recognize-LQMHLOD5.js} +2 -2
  78. package/dist/bundle/{remote-BABMZTHA.js → remote-34HUWSZI.js} +5 -5
  79. package/dist/bundle/{rerank-P3IQQJIL.js → rerank-ONBASQ5Z.js} +5 -5
  80. package/dist/bundle/{serve-25SSAKRZ.js → serve-UJ7FDYAM.js} +7 -7
  81. package/dist/bundle/{server-P4XUYY5A.js → server-GNT76BXM.js} +28 -28
  82. package/dist/bundle/server-J4YIXKMI.js +52 -0
  83. package/dist/bundle/{state-QCQALQBJ.js → state-IW5OO6IZ.js} +4 -4
  84. package/dist/bundle/{store-ZECPRGGH.js → store-55UB27H2.js} +12 -10
  85. package/dist/bundle/store-maintenance-command-BLDKUZ3L.js +42 -0
  86. package/dist/commands/session.js +1 -1
  87. package/dist/commands/session.js.map +1 -1
  88. package/dist/program.d.ts.map +1 -1
  89. package/dist/program.js +1 -0
  90. package/dist/program.js.map +1 -1
  91. package/dist/version.d.ts +1 -1
  92. package/dist/version.js +1 -1
  93. package/docs/dev/skills/release/SKILL.md +9 -3
  94. package/docs/dev/skills/release/fresh-audit.md +1 -1
  95. package/kit/dist/new.js +1 -0
  96. package/package.json +4 -4
  97. package/src/commands/session.ts +1 -1
  98. package/src/program.ts +1 -0
  99. package/src/version.ts +1 -1
  100. package/dist/bundle/first-screen-3T5IXTFL.js +0 -26
  101. package/dist/bundle/server-G4GCDMYI.js +0 -52
  102. package/dist/bundle/store-maintenance-command-ECUO5G6L.js +0 -42
@@ -10,13 +10,13 @@ import {
10
10
  providerErrorKey,
11
11
  renderEvent,
12
12
  runContextOf
13
- } from "./chunk-ORV4EGNC.js";
13
+ } from "./chunk-S465TCR3.js";
14
14
  import {
15
15
  permissionCeiling
16
- } from "./chunk-ATHZEV2Z.js";
16
+ } from "./chunk-XKL5FRH3.js";
17
17
  import {
18
18
  carries
19
- } from "./chunk-VOTEB3AN.js";
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-5KAYQKBK.js";
70
+ } from "./chunk-QJS4WWYK.js";
71
71
  import {
72
72
  sharedConfigPath
73
- } from "./chunk-QGOOPPEW.js";
73
+ } from "./chunk-BXZRTMXA.js";
74
74
  import {
75
75
  filesPresent,
76
76
  sharedModelsDirectory
77
- } from "./chunk-OF56L2JU.js";
77
+ } from "./chunk-LFLN6PVS.js";
78
78
  import {
79
79
  storePath
80
- } from "./chunk-6WOJIAYA.js";
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-WDWP5N6M.js";
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/ports/app.js
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.77.1_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
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.77.1_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
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.77.1_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
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.77.1_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
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/sends/permissions.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/sends/guarded.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/execution.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/output-detail.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/output.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/runs/log-events.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/runs/run.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/runs/run.js
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.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/runs/scope.js
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();
@@ -5210,7 +5210,7 @@ var attempts = new AsyncLocalStorage2();
5210
5210
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
5211
5211
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
5212
5212
 
5213
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/runs/recording.js
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
5214
5214
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
5215
5215
  const recording = startRecording(options);
5216
5216
  try {
@@ -5395,7 +5395,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
5395
5395
  return void 0;
5396
5396
  }, "partialOutcome");
5397
5397
 
5398
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/deadline.js
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
5399
5399
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5400
5400
  if (ms2 === void 0)
5401
5401
  return body();
@@ -5421,7 +5421,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5421
5421
  }
5422
5422
  }, "withDeadline");
5423
5423
 
5424
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/profile.js
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
5425
5425
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
5426
5426
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
5427
5427
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5490,10 +5490,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5490
5490
  return void 0;
5491
5491
  }, "sampleCommand");
5492
5492
 
5493
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/settings.js
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
5494
5494
  import { existsSync as existsSync4 } from "node:fs";
5495
5495
 
5496
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/models/endpoint.js
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
5497
5497
  var endpoint = /* @__PURE__ */ __name((value) => {
5498
5498
  try {
5499
5499
  const url2 = new URL(value);
@@ -5503,7 +5503,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
5503
5503
  }
5504
5504
  }, "endpoint");
5505
5505
 
5506
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/models/settings.js
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
5507
5507
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5508
5508
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5509
5509
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5572,7 +5572,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5572
5572
  };
5573
5573
  }, "modelTarget");
5574
5574
 
5575
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/analysis/settings.js
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
5576
5576
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5577
5577
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5578
5578
  var AI_FIELDS = {
@@ -5616,7 +5616,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5616
5616
  };
5617
5617
  }, "resolveAISettings");
5618
5618
 
5619
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/domain/duration.js
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
5620
5620
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5621
5621
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5622
5622
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5630,7 +5630,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5630
5630
  return ms2;
5631
5631
  }, "parseDuration");
5632
5632
 
5633
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/embeddings/models.js
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
5634
5634
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5635
5635
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5636
5636
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -5789,7 +5789,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
5789
5789
  var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
5790
5790
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5791
5791
 
5792
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/services/history-limits.js
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
5793
5793
  var HISTORY_MAX_DAYS = 1095;
5794
5794
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5795
5795
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -5836,7 +5836,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5836
5836
  return { batch: { ...batch, messages }, skipped };
5837
5837
  }, "limitBatch");
5838
5838
 
5839
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
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
5840
5840
  import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
5841
5841
  import { join as join3 } from "node:path";
5842
5842
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -5925,10 +5925,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
5925
5925
  return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
5926
5926
  }, "registryProfiles");
5927
5927
 
5928
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
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
5929
5929
  import { readFileSync as readFileSync4 } from "node:fs";
5930
5930
 
5931
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
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
5932
5932
  var REPAIR_WORDS = {
5933
5933
  byte_order_mark: "an invisible byte-order mark at the start",
5934
5934
  comment: "a comment, which JSON does not allow",
@@ -6169,7 +6169,7 @@ ${parts.join(",\n")}
6169
6169
  ${indent}${close}`;
6170
6170
  }, "serialise");
6171
6171
 
6172
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
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
6173
6173
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6174
6174
  var SECTIONS = ["personal", "bot"];
6175
6175
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -6463,7 +6463,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
6463
6463
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
6464
6464
  }, "readConfigFile");
6465
6465
 
6466
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/default-config.js
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
6467
6467
  import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
6468
6468
  import { dirname, join as join4 } from "node:path";
6469
6469
  var DEFAULT_CONFIG = {
@@ -6492,7 +6492,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
6492
6492
  }
6493
6493
  __name(ensureDefaultConfig, "ensureDefaultConfig");
6494
6494
 
6495
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
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
6496
6496
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6497
6497
  var parentOf = /* @__PURE__ */ __name((config, key) => {
6498
6498
  const path2 = key.split(".");
@@ -6514,7 +6514,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
6514
6514
  return { config, added };
6515
6515
  }, "withSettingDefaults");
6516
6516
 
6517
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/settings.js
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
6518
6518
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
6519
6519
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
6520
6520
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -7024,7 +7024,7 @@ var given = /* @__PURE__ */ __name((value) => {
7024
7024
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
7025
7025
  }, "given");
7026
7026
 
7027
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/context.js
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
7028
7028
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
7029
7029
  const slot = environmentOf(command).exit;
7030
7030
  if (slot)
@@ -7137,7 +7137,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
7137
7137
  return words.join(" ");
7138
7138
  }, "commandPath");
7139
7139
 
7140
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/effects.js
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
7141
7141
  var REMOTE_READ = { remote: "read", local: "read" };
7142
7142
  var FETCH = { remote: "read", local: "write" };
7143
7143
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -7261,7 +7261,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
7261
7261
  throw readOnlyRefusal(lock, what);
7262
7262
  }, "refuseUnderReadOnly");
7263
7263
 
7264
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/account.js
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
7265
7265
  var account = strictObject({
7266
7266
  provider: text,
7267
7267
  id,
@@ -7271,7 +7271,7 @@ var account = strictObject({
7271
7271
  scope: optional(picklist(["personal", "work"]))
7272
7272
  });
7273
7273
 
7274
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/account-session.js
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
7275
7275
  var accountSession = strictObject({
7276
7276
  current: boolean(),
7277
7277
  client: nullable(text),
@@ -7281,7 +7281,7 @@ var accountSession = strictObject({
7281
7281
  created_at: optional(nullable(time))
7282
7282
  });
7283
7283
 
7284
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/account-change.js
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
7285
7285
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
7286
7286
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
7287
7287
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -7299,7 +7299,7 @@ var accountPrivacy = strictObject({
7299
7299
  });
7300
7300
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
7301
7301
 
7302
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
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
7303
7303
  var accountProfile = strictObject({
7304
7304
  profile: id,
7305
7305
  current: boolean(),
@@ -7311,7 +7311,7 @@ var accountProfile = strictObject({
7311
7311
  bot: optional(literal(true))
7312
7312
  });
7313
7313
 
7314
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
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
7315
7315
  var milliseconds = pipe(number(), minValue(0));
7316
7316
  var counterReading = strictObject({
7317
7317
  counter: picklist(["views", "reactions", "comments"]),
@@ -7323,7 +7323,7 @@ var counterReading = strictObject({
7323
7323
  });
7324
7324
  var selection = record(string(), unknown());
7325
7325
 
7326
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
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
7327
7327
  var adminRow = strictObject({
7328
7328
  ref: reference,
7329
7329
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -7376,7 +7376,7 @@ var adminReport = strictObject({
7376
7376
  rows: array(adminRow)
7377
7377
  });
7378
7378
 
7379
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/task.js
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
7380
7380
  var closeSuggestion = strictObject({
7381
7381
  as: picklist(["done", "dismissed"]),
7382
7382
  /** The agent's name. */
@@ -7438,7 +7438,7 @@ var task = strictObject({
7438
7438
  updated_at: optional(time)
7439
7439
  });
7440
7440
 
7441
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/agenda.js
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
7442
7442
  var agendaChat = strictObject({
7443
7443
  chat: reference,
7444
7444
  title: nullable(text),
@@ -7508,11 +7508,11 @@ var agenda = strictObject({
7508
7508
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
7509
7509
  });
7510
7510
 
7511
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
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
7512
7512
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7513
7513
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7514
7514
 
7515
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/attachment.js
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
7516
7516
  var attachment = strictObject({
7517
7517
  /** The message it came with, as a locator; absent inside that message. */
7518
7518
  message: optional(reference),
@@ -7550,7 +7550,7 @@ var attachment = strictObject({
7550
7550
  });
7551
7551
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
7552
7552
 
7553
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
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
7554
7554
  var actionableError = objectWithRest({
7555
7555
  code: text,
7556
7556
  message: text,
@@ -7567,7 +7567,7 @@ var batchResult = strictObject({
7567
7567
  max_error_percent: count
7568
7568
  });
7569
7569
 
7570
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
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
7571
7571
  var extractionItem = strictObject({
7572
7572
  ref: reference,
7573
7573
  attachment: count,
@@ -7600,7 +7600,7 @@ var extractionReport = strictObject({
7600
7600
  cursor: optional(text)
7601
7601
  });
7602
7602
 
7603
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
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
7604
7604
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7605
7605
  var attachmentBytes = strictObject({
7606
7606
  ref: reference,
@@ -7628,7 +7628,7 @@ var attachmentTextChange = strictObject({
7628
7628
  replaced: nullable(picklist(["extracted", "agent"]))
7629
7629
  });
7630
7630
 
7631
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/chart.js
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
7632
7632
  var chart = strictObject({
7633
7633
  version: literal(1),
7634
7634
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7643,7 +7643,7 @@ var chart = strictObject({
7643
7643
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7644
7644
  });
7645
7645
 
7646
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/member.js
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
7647
7647
  var member = strictObject({
7648
7648
  id,
7649
7649
  name: nullable(text),
@@ -7666,7 +7666,7 @@ var member = strictObject({
7666
7666
  check: optional(record(string(), unknown()))
7667
7667
  });
7668
7668
 
7669
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/chat.js
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
7670
7670
  var setting = optional(nullable(boolean()));
7671
7671
  var chat = strictObject({
7672
7672
  ref: reference,
@@ -7707,7 +7707,7 @@ var chat = strictObject({
7707
7707
  members: optional(array(member))
7708
7708
  });
7709
7709
 
7710
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/folder.js
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
7711
7711
  var named2 = strictObject({
7712
7712
  id,
7713
7713
  title: nullable(text),
@@ -7730,7 +7730,7 @@ var folder = strictObject({
7730
7730
  excluded_chats: optional(array(named2))
7731
7731
  });
7732
7732
 
7733
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
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
7734
7734
  var inviteLink = strictObject({
7735
7735
  link: text,
7736
7736
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7746,7 +7746,7 @@ var inviteLink = strictObject({
7746
7746
  joined_count: optional(count)
7747
7747
  });
7748
7748
 
7749
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
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
7750
7750
  var operated = { operation_id: id, chat_id: id };
7751
7751
  var group = strictObject({
7752
7752
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7826,7 +7826,7 @@ var chatFolderOrder = strictObject({
7826
7826
  folders: array(strictObject({ id, title: text }))
7827
7827
  });
7828
7828
 
7829
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
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
7830
7830
  var operated2 = { operation_id: id, chat_id: id };
7831
7831
  var chatRemoval = strictObject(operated2);
7832
7832
  var chatMuting = strictObject({
@@ -7837,7 +7837,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7837
7837
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7838
7838
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7839
7839
 
7840
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
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
7841
7841
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7842
7842
  var chatEvent = strictObject({
7843
7843
  chat_id: id,
@@ -7854,7 +7854,7 @@ var chatEvent = strictObject({
7854
7854
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7855
7855
  });
7856
7856
 
7857
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
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
7858
7858
  var chatMetadata = strictObject({
7859
7859
  chat_id: id,
7860
7860
  title: nullable(text),
@@ -7869,7 +7869,7 @@ var chatMetadataRefresh = strictObject({
7869
7869
  has_more: boolean()
7870
7870
  });
7871
7871
 
7872
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
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
7873
7873
  var action = picklist(["report", "delete", "remove"]);
7874
7874
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7875
7875
  var chatRules = strictObject({
@@ -7906,7 +7906,7 @@ var chatModeration = strictObject({
7906
7906
  }))
7907
7907
  });
7908
7908
 
7909
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
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
7910
7910
  var optionalCount = optional(count);
7911
7911
  var minutes = nullable(number());
7912
7912
  var chatStats = strictObject({
@@ -7980,7 +7980,7 @@ var taskStats = strictObject({
7980
7980
  }))
7981
7981
  });
7982
7982
 
7983
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
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
7984
7984
  var memberCount = strictObject({
7985
7985
  day: pipe(text, isoDate()),
7986
7986
  participants: nullable(count),
@@ -8003,7 +8003,7 @@ var chatTracking = strictObject({
8003
8003
  tracked: boolean()
8004
8004
  });
8005
8005
 
8006
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
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
8007
8007
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
8008
8008
  var contactSync = strictObject({ added: count, changed: count, known: count });
8009
8009
  var profileFields = {
@@ -8041,7 +8041,7 @@ var profileFields = {
8041
8041
  }))
8042
8042
  };
8043
8043
 
8044
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/contact.js
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
8045
8045
  var contact = strictObject({
8046
8046
  ref: reference,
8047
8047
  id,
@@ -8072,7 +8072,7 @@ var contact = strictObject({
8072
8072
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
8073
8073
  });
8074
8074
 
8075
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
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
8076
8076
  var WEIGHTS = {
8077
8077
  bot: 3,
8078
8078
  scam: 3,
@@ -8097,7 +8097,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
8097
8097
  var DIGITS = /\d{5,}/;
8098
8098
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
8099
8099
 
8100
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
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
8101
8101
  var linkedIdentity = strictObject({
8102
8102
  provider: text,
8103
8103
  id,
@@ -8138,7 +8138,7 @@ var contactCheck = strictObject({
8138
8138
  checked_at: time
8139
8139
  });
8140
8140
 
8141
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/message.js
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
8142
8142
  var quoted = strictObject({
8143
8143
  id,
8144
8144
  sender_id: nullable(id),
@@ -8257,7 +8257,7 @@ var message = strictObject({
8257
8257
  provider_metadata: providerMetadata
8258
8258
  });
8259
8259
 
8260
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
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
8261
8261
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
8262
8262
  var contextMessage = strictObject({
8263
8263
  locator: reference,
@@ -8455,7 +8455,7 @@ var contactPreparation = strictObject({
8455
8455
  })
8456
8456
  });
8457
8457
 
8458
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
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
8459
8459
  var contactNote = strictObject({
8460
8460
  id,
8461
8461
  /** The contact, as a `contact:` reference. */
@@ -8467,13 +8467,13 @@ var contactNote = strictObject({
8467
8467
  updated_at: time
8468
8468
  });
8469
8469
 
8470
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
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
8471
8471
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
8472
8472
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
8473
8473
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
8474
8474
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
8475
8475
 
8476
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/conversation.js
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
8477
8477
  var conversation = strictObject({
8478
8478
  id,
8479
8479
  chat: reference,
@@ -8488,7 +8488,7 @@ var conversation = strictObject({
8488
8488
  rules_version: count
8489
8489
  });
8490
8490
 
8491
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
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
8492
8492
  var conversationBuild = strictObject({
8493
8493
  chat: id,
8494
8494
  messages: count,
@@ -8513,7 +8513,7 @@ var catchUpPreparation = strictObject({
8513
8513
  prepared: optional(conversationPreparation)
8514
8514
  });
8515
8515
 
8516
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
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
8517
8517
  var conversationDetails = union([
8518
8518
  strictObject({ ...conversation.entries, messages: array(message) }),
8519
8519
  message
@@ -8603,7 +8603,7 @@ var conversationHit = strictObject({
8603
8603
  stale: boolean()
8604
8604
  });
8605
8605
 
8606
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/counters.js
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
8607
8607
  var counters = strictObject({
8608
8608
  cutoff: time,
8609
8609
  max_age_ms: milliseconds,
@@ -8633,7 +8633,86 @@ var counterRefresh = strictObject({
8633
8633
  complete: optional(boolean())
8634
8634
  });
8635
8635
 
8636
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/document.js
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
8637
8716
  var document = strictObject({
8638
8717
  ref: reference,
8639
8718
  id,
@@ -8648,7 +8727,7 @@ var document = strictObject({
8648
8727
  owners: optional(array(text))
8649
8728
  });
8650
8729
 
8651
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/document-link.js
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
8652
8731
  var documentLink = strictObject({
8653
8732
  ref: reference,
8654
8733
  url: text,
@@ -8659,7 +8738,7 @@ var documentLink = strictObject({
8659
8738
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8660
8739
  });
8661
8740
 
8662
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/evidence.js
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
8663
8742
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8664
8743
  var contribution = strictObject({
8665
8744
  message: evidenceMessage,
@@ -8689,7 +8768,7 @@ var retentionStay = strictObject({
8689
8768
  });
8690
8769
  var evidence = union([contribution, retentionStay]);
8691
8770
 
8692
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/fact.js
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
8693
8772
  var fact = strictObject({
8694
8773
  ref: reference,
8695
8774
  id,
@@ -8719,9 +8798,9 @@ var fact = strictObject({
8719
8798
  updated_at: time
8720
8799
  });
8721
8800
 
8722
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/hit.js
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
8723
8802
  var hit = strictObject({
8724
- kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
8803
+ kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
8725
8804
  ref: reference,
8726
8805
  provider: text,
8727
8806
  url: optional(text),
@@ -8757,7 +8836,7 @@ var hit = strictObject({
8757
8836
  untrusted
8758
8837
  });
8759
8838
 
8760
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/identity.js
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
8761
8840
  var identity = strictObject({
8762
8841
  ref: reference,
8763
8842
  provider: text,
@@ -8770,7 +8849,7 @@ var identity = strictObject({
8770
8849
  person: optional(nullable(reference))
8771
8850
  });
8772
8851
 
8773
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
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
8774
8853
  var imageEmbedding = strictObject({
8775
8854
  model: text,
8776
8855
  embedded: count,
@@ -8779,13 +8858,13 @@ var imageEmbedding = strictObject({
8779
8858
  more: boolean()
8780
8859
  });
8781
8860
 
8782
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
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
8783
8862
  import { spawn } from "node:child_process";
8784
8863
  import { randomBytes as randomBytes2 } from "node:crypto";
8785
8864
  import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
8786
8865
  import { dirname as dirname2, join as join5 } from "node:path";
8787
8866
 
8788
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
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
8789
8868
  var progressOf = /* @__PURE__ */ __name((input) => {
8790
8869
  const total = input.total ?? null;
8791
8870
  const updated = input.updatedAt ?? null;
@@ -8801,7 +8880,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8801
8880
  };
8802
8881
  }, "progressOf");
8803
8882
 
8804
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/runs/record-log.js
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
8805
8884
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8806
8885
  const run = currentRun();
8807
8886
  const trace = traceId ?? run.traceId;
@@ -8815,7 +8894,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8815
8894
  }));
8816
8895
  }, "recordLogFor");
8817
8896
 
8818
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
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
8819
8898
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8820
8899
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8821
8900
  const out = openSync(log, "a", 384);
@@ -8865,11 +8944,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
8865
8944
  const job2 = readJob(dir, id6);
8866
8945
  if (!job2)
8867
8946
  return;
8868
- const outcome3 = stateOf(job2);
8947
+ const outcome4 = stateOf(job2);
8869
8948
  recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
8870
8949
  event: "job.exit",
8871
8950
  job: id6,
8872
- outcome: outcome3,
8951
+ outcome: outcome4,
8873
8952
  ...job2.error ? { errorCode: job2.error.code } : {}
8874
8953
  });
8875
8954
  }, "finishJob");
@@ -8970,7 +9049,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8970
9049
  return { job: id6, pid, chat: input.chat, log };
8971
9050
  }, "startArchiveJob");
8972
9051
 
8973
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/job.js
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
8974
9053
  var problem = strictObject({ code: text, message: text });
8975
9054
  var job = strictObject({
8976
9055
  id,
@@ -8993,7 +9072,7 @@ var job = strictObject({
8993
9072
  error: optional(problem)
8994
9073
  });
8995
9074
 
8996
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/join-request.js
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
8997
9076
  var joinRequest = strictObject({
8998
9077
  person_id: id,
8999
9078
  name: nullable(text),
@@ -9004,7 +9083,7 @@ var joinRequest = strictObject({
9004
9083
  about: optional(text)
9005
9084
  });
9006
9085
 
9007
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/list-results.js
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
9008
9087
  var botProfile = strictObject({
9009
9088
  name: text,
9010
9089
  token: text,
@@ -9035,6 +9114,10 @@ var scheduledJob = strictObject({
9035
9114
  name: text,
9036
9115
  kind: picklist(["command", "agent"]),
9037
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)),
9038
9121
  last: nullable(strictObject({
9039
9122
  at: time,
9040
9123
  exit_code: number(),
@@ -9046,7 +9129,19 @@ var scheduledJob = strictObject({
9046
9129
  failures: optional(number()),
9047
9130
  cost_usd: optional(number()),
9048
9131
  /** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
9049
- skipped: optional(strictObject({ at: time, why: text }))
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
+ })))
9050
9145
  })),
9051
9146
  /** Agent schedules: what today's runs cost, in US dollars. */
9052
9147
  spent_today_usd: optional(number()),
@@ -9081,7 +9176,7 @@ var stickerInventory = strictObject({
9081
9176
  url: optional(nullable(text))
9082
9177
  });
9083
9178
 
9084
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
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
9085
9180
  var pollVote = strictObject({
9086
9181
  person_id: id,
9087
9182
  name: nullable(text),
@@ -9091,7 +9186,7 @@ var pollVote = strictObject({
9091
9186
  voted_at: time
9092
9187
  });
9093
9188
 
9094
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/listener.js
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
9095
9190
  var reactions = unwrap(unwrap(message.entries.reactions));
9096
9191
  var observation = strictObject({
9097
9192
  value: pipe(number(), minValue(0)),
@@ -9133,7 +9228,7 @@ var serveSummary = strictObject({
9133
9228
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
9134
9229
  });
9135
9230
 
9136
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
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
9137
9232
  var mailCounts = strictObject({
9138
9233
  by: picklist(["day", "week", "sender"]),
9139
9234
  received: count,
@@ -9148,7 +9243,7 @@ var mailCounts = strictObject({
9148
9243
  }))
9149
9244
  });
9150
9245
 
9151
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
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
9152
9247
  var evidence2 = strictObject({ reference, fingerprint: text });
9153
9248
  var base = { id, evidence: array(evidence2) };
9154
9249
  var finding = variant("kind", [
@@ -9272,7 +9367,7 @@ var finding = variant("kind", [
9272
9367
  reason: text
9273
9368
  })
9274
9369
  ]);
9275
- var outcome = strictObject({
9370
+ var outcome2 = strictObject({
9276
9371
  id,
9277
9372
  fingerprint: text,
9278
9373
  status: picklist(["accepted", "rejected"]),
@@ -9288,11 +9383,11 @@ var mailFindings = strictObject({
9288
9383
  author,
9289
9384
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
9290
9385
  decided_at: nullable(time),
9291
- previous: array(outcome),
9292
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
9386
+ previous: array(outcome2),
9387
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
9293
9388
  });
9294
9389
 
9295
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
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
9296
9391
  var mediaArchive = strictObject({
9297
9392
  directory: text,
9298
9393
  chats: count,
@@ -9324,7 +9419,7 @@ var mediaArchiveTimer = union([
9324
9419
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
9325
9420
  ]);
9326
9421
 
9327
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
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
9328
9423
  var preparationId = pipe(string(), minLength(1));
9329
9424
  var preparationCount = pipe(number(), integer(), minValue(0));
9330
9425
  var preparationTime = nullable(isoTime);
@@ -9416,7 +9511,7 @@ var preparationMeeting = strictObject({
9416
9511
  updated_at: isoTime
9417
9512
  });
9418
9513
 
9419
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
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
9420
9515
  var meetingEvidence = preparationEvidence;
9421
9516
  var meetingPersonContext = strictObject({
9422
9517
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -9438,7 +9533,7 @@ var meetingPersonContext = strictObject({
9438
9533
  })
9439
9534
  });
9440
9535
 
9441
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
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
9442
9537
  var evidence3 = strictObject({ reference, fingerprint: text });
9443
9538
  var base2 = { id, project: reference, evidence: array(evidence3) };
9444
9539
  var finding2 = variant("kind", [
@@ -9456,7 +9551,7 @@ var finding2 = variant("kind", [
9456
9551
  assignee_evidence: optional(array(reference))
9457
9552
  })
9458
9553
  ]);
9459
- var outcome2 = strictObject({
9554
+ var outcome3 = strictObject({
9460
9555
  id,
9461
9556
  fingerprint: text,
9462
9557
  status: picklist(["accepted", "rejected"]),
@@ -9472,11 +9567,11 @@ var meetingFindings = strictObject({
9472
9567
  author,
9473
9568
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
9474
9569
  decided_at: nullable(time),
9475
- previous: array(outcome2),
9476
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
9570
+ previous: array(outcome3),
9571
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
9477
9572
  });
9478
9573
 
9479
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
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
9480
9575
  var communicationCoverage = strictObject({
9481
9576
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
9482
9577
  query: string(),
@@ -9521,7 +9616,7 @@ var preparationCommunications = strictObject({
9521
9616
  }))
9522
9617
  });
9523
9618
 
9524
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
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
9525
9620
  var meetingPreparation = strictObject({
9526
9621
  communications: optional(preparationCommunications),
9527
9622
  schema_version: literal(1),
@@ -9634,7 +9729,7 @@ var meetingPreparation = strictObject({
9634
9729
  })
9635
9730
  });
9636
9731
 
9637
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
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
9638
9733
  var count4 = pipe(number(), integer(), minValue(0));
9639
9734
  var id3 = pipe(string(), minLength(1));
9640
9735
  var text3 = string();
@@ -9698,7 +9793,7 @@ var meetingProjectCandidates = strictObject({
9698
9793
  })
9699
9794
  });
9700
9795
 
9701
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
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
9702
9797
  var count5 = pipe(number(), integer(), minValue(0));
9703
9798
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9704
9799
  var meetingSeriesInventory = strictObject({
@@ -9728,7 +9823,7 @@ var meetingSeriesInventory = strictObject({
9728
9823
  })
9729
9824
  });
9730
9825
 
9731
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
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
9732
9827
  var text4 = string();
9733
9828
  var id5 = pipe(number(), integer(), minValue(1));
9734
9829
  var revision = picklist(["current", "superseded"]);
@@ -9745,7 +9840,7 @@ var meetingTaskProposal = strictObject({
9745
9840
  persistence: literal("proposal-only")
9746
9841
  });
9747
9842
 
9748
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/memory.js
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
9749
9844
  var memory = strictObject({
9750
9845
  ref: reference,
9751
9846
  id,
@@ -9772,7 +9867,7 @@ var memory = strictObject({
9772
9867
  updated_at: time
9773
9868
  });
9774
9869
 
9775
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/mention.js
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
9776
9871
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9777
9872
  var status = picklist(["found", "linked", "dismissed"]);
9778
9873
  var mention = strictObject({
@@ -9815,13 +9910,13 @@ var mentionRebuild = strictObject({
9815
9910
  mentions: count
9816
9911
  });
9817
9912
 
9818
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/message-change.js
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
9819
9914
  var operated3 = { operation_id: id, chat_id: id };
9820
9915
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9821
9916
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9822
9917
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9823
9918
 
9824
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/message-read.js
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
9825
9920
  var messageTranscript = strictObject({
9826
9921
  message_id: id,
9827
9922
  text,
@@ -9879,7 +9974,7 @@ var evidencePacket = strictObject({
9879
9974
  }))
9880
9975
  });
9881
9976
 
9882
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/message-context.js
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
9883
9978
  var messageThread = strictObject({
9884
9979
  ref: reference,
9885
9980
  chat: id,
@@ -9896,7 +9991,7 @@ var messageThread = strictObject({
9896
9991
  });
9897
9992
  var messageContext = union([message, messageThread]);
9898
9993
 
9899
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
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
9900
9995
  var messageCounts = strictObject({
9901
9996
  by: picklist(["chat", "sender", "day", "hour"]),
9902
9997
  total: count,
@@ -9909,7 +10004,7 @@ var messageCounts = strictObject({
9909
10004
  }))
9910
10005
  });
9911
10006
 
9912
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/message-link.js
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
9913
10008
  var messageLink = strictObject({
9914
10009
  ref: reference,
9915
10010
  url: nullable(text),
@@ -9926,7 +10021,7 @@ var messageLink = strictObject({
9926
10021
  })))
9927
10022
  });
9928
10023
 
9929
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
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
9930
10025
  var savedMessageFile = strictObject({
9931
10026
  kind: text,
9932
10027
  path: text,
@@ -10013,7 +10108,7 @@ var messageSyncAll = strictObject({
10013
10108
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
10014
10109
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
10015
10110
 
10016
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/message-write.js
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
10017
10112
  var messageWrite = strictObject({
10018
10113
  operation_id: id,
10019
10114
  message,
@@ -10028,7 +10123,7 @@ var draftWrite = strictObject({
10028
10123
  });
10029
10124
  var messageSend = union([messageWrite, draftWrite]);
10030
10125
 
10031
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/model.js
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
10032
10127
  var model2 = strictObject({
10033
10128
  id,
10034
10129
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -10045,7 +10140,7 @@ var model2 = strictObject({
10045
10140
  path: text
10046
10141
  });
10047
10142
 
10048
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/model-key.js
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
10049
10144
  var source = picklist(["environment", "keyring", "file"]);
10050
10145
  var modelKey = strictObject({
10051
10146
  provider: text,
@@ -10055,7 +10150,7 @@ var modelKey = strictObject({
10055
10150
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
10056
10151
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
10057
10152
 
10058
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/note.js
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
10059
10154
  var link = {
10060
10155
  target_text: nullable(text),
10061
10156
  kind: text,
@@ -10096,7 +10191,7 @@ var note = strictObject({
10096
10191
  backlinks: optional(array(strictObject({ from: reference, ...link })))
10097
10192
  });
10098
10193
 
10099
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
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
10100
10195
  var versus = strictObject({ current: number(), previous: number() });
10101
10196
  var person = { person_ref: reference, name: nullable(text) };
10102
10197
  var graph = strictObject({
@@ -10130,14 +10225,14 @@ var officialStats = strictObject({
10130
10225
  graphs: record(string(), union([graph, strictObject({ error: text })]))
10131
10226
  });
10132
10227
 
10133
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/person.js
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
10134
10229
  var person2 = strictObject({
10135
10230
  ref: reference,
10136
10231
  name: nullable(text),
10137
10232
  identities: optional(array(identity))
10138
10233
  });
10139
10234
 
10140
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/poll.js
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
10141
10236
  var poll = strictObject({
10142
10237
  chat_id: id,
10143
10238
  message_id: id,
@@ -10153,11 +10248,11 @@ var poll = strictObject({
10153
10248
  });
10154
10249
  var pollChange = strictObject({ operation_id: id, poll });
10155
10250
 
10156
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
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
10157
10252
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
10158
10253
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
10159
10254
 
10160
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/ranking.js
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
10161
10256
  var figures = record(string(), number());
10162
10257
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
10163
10258
  var rankingRow = strictObject({
@@ -10204,7 +10299,7 @@ var ranking = strictObject({
10204
10299
  rows: array(rankingRow)
10205
10300
  });
10206
10301
 
10207
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/reaction.js
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
10208
10303
  var reaction = strictObject({
10209
10304
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
10210
10305
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -10212,7 +10307,7 @@ var reaction = strictObject({
10212
10307
  reacted_at: time
10213
10308
  });
10214
10309
 
10215
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
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
10216
10311
  var reactionChange = strictObject({
10217
10312
  operation_id: id,
10218
10313
  chat_id: id,
@@ -10220,7 +10315,7 @@ var reactionChange = strictObject({
10220
10315
  reaction: nullable(text)
10221
10316
  });
10222
10317
 
10223
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/recipient.js
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
10224
10319
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
10225
10320
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
10226
10321
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -10231,7 +10326,7 @@ var recipientChange = strictObject({
10231
10326
  ...partial(recipientOff).entries
10232
10327
  });
10233
10328
 
10234
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
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
10235
10330
  var events = array(record(string(), unknown()));
10236
10331
  var recordedRun = strictObject({
10237
10332
  run_id: id,
@@ -10303,7 +10398,7 @@ var runHit = strictObject({
10303
10398
  });
10304
10399
  var runLocation = strictObject({ path: text });
10305
10400
 
10306
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/relationship.js
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
10307
10402
  var relationship = strictObject({
10308
10403
  id,
10309
10404
  from: reference,
@@ -10320,7 +10415,7 @@ var relationship = strictObject({
10320
10415
  created_at: time
10321
10416
  });
10322
10417
 
10323
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
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
10324
10419
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
10325
10420
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
10326
10421
  var responseTimes = strictObject({
@@ -10337,7 +10432,7 @@ var waitingChats = strictObject({
10337
10432
  by_kind: strictObject({ private: count, group: count })
10338
10433
  });
10339
10434
 
10340
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/retention.js
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
10341
10436
  var retentionCohort = strictObject({
10342
10437
  /** The first day of the joining day or week. */
10343
10438
  cohort: text,
@@ -10385,7 +10480,7 @@ var retention = strictObject({
10385
10480
  rows: array(retentionCohort)
10386
10481
  });
10387
10482
 
10388
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
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
10389
10484
  var savedSearch = strictObject({
10390
10485
  id,
10391
10486
  /** `null` for a run in the history. */
@@ -10402,7 +10497,7 @@ var savedSearch = strictObject({
10402
10497
  });
10403
10498
  var searchHistoryClear = strictObject({ cleared: count });
10404
10499
 
10405
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
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
10406
10501
  var sendAttempt = strictObject({
10407
10502
  at: time,
10408
10503
  profile: text,
@@ -10430,7 +10525,7 @@ var sendAttempt = strictObject({
10430
10525
  error_code: optional(text)
10431
10526
  });
10432
10527
 
10433
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
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
10434
10529
  var absent = strictObject({ path: text, exists: literal(false) });
10435
10530
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
10436
10531
  var infoSchema = strictObject({
@@ -10585,12 +10680,25 @@ var storeBackup = strictObject({
10585
10680
  encrypted: optional(literal(true))
10586
10681
  });
10587
10682
  var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
10588
- var storeRestore = strictObject({
10589
- path: text,
10590
- restored_from: text,
10591
- kept_at: nullable(text),
10592
- schema: count
10593
- });
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
+ ]);
10594
10702
  var storeReset = union([
10595
10703
  strictObject({ ...absent.entries, reset: literal(false) }),
10596
10704
  strictObject({
@@ -10638,7 +10746,7 @@ var storeRepair = union([
10638
10746
  ]);
10639
10747
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
10640
10748
 
10641
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/store-records.js
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
10642
10750
  var range = strictObject({ from: number(), to: number() });
10643
10751
  var storeChatStatus = strictObject({
10644
10752
  chat_id: id,
@@ -10736,7 +10844,7 @@ var storeJobRetry = union([
10736
10844
  ]);
10737
10845
  var storeJobClear = strictObject({ cleared: array(id) });
10738
10846
 
10739
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/store-table.js
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
10740
10848
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10741
10849
  var storeTable = strictObject({
10742
10850
  name: text,
@@ -10745,7 +10853,7 @@ var storeTable = strictObject({
10745
10853
  bytes: optional(nullable(count))
10746
10854
  });
10747
10855
 
10748
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
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
10749
10857
  var tagTarget = variant("type", [
10750
10858
  strictObject({ type: literal("chat"), chat_id: id }),
10751
10859
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10776,7 +10884,7 @@ var automaticTags = strictObject({
10776
10884
  dry_run: boolean()
10777
10885
  });
10778
10886
 
10779
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/tagging.js
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
10780
10888
  var tagging = strictObject({
10781
10889
  tag: text,
10782
10890
  type: picklist(TAG_TYPES),
@@ -10789,7 +10897,7 @@ var tagging = strictObject({
10789
10897
  created_at: time
10790
10898
  });
10791
10899
 
10792
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
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
10793
10901
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10794
10902
  var taskPair = strictObject({
10795
10903
  task: nullable(side),
@@ -10812,7 +10920,7 @@ var taskPair = strictObject({
10812
10920
  created_at: time
10813
10921
  });
10814
10922
 
10815
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/task-results.js
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
10816
10924
  var nullableTime = nullable(time);
10817
10925
  var link2 = strictObject({
10818
10926
  id,
@@ -10986,7 +11094,7 @@ var taskReview = strictObject({
10986
11094
  untrusted
10987
11095
  });
10988
11096
 
10989
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/topic.js
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
10990
11098
  var topic = strictObject({
10991
11099
  id,
10992
11100
  title: text,
@@ -11000,9 +11108,13 @@ var topic = strictObject({
11000
11108
  untrusted
11001
11109
  });
11002
11110
 
11003
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/entities/index.js
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
11004
11112
  var ENTITIES = {
11005
11113
  sync_progress: progress,
11114
+ deal,
11115
+ lead,
11116
+ pipeline,
11117
+ stage,
11006
11118
  ...MEETING_RESULT_ENTITIES,
11007
11119
  message,
11008
11120
  message_context: messageContext,
@@ -11282,7 +11394,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
11282
11394
  return [name, definition];
11283
11395
  })), "entityDefinitions");
11284
11396
 
11285
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
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
11286
11398
  var schemas = /* @__PURE__ */ new WeakMap();
11287
11399
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
11288
11400
  if (Object.hasOwn(ENTITIES, name))
@@ -11316,7 +11428,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
11316
11428
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
11317
11429
  }, "answerRow");
11318
11430
 
11319
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/images/picture/models.js
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
11320
11432
  import { join as join6 } from "node:path";
11321
11433
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
11322
11434
  var IMAGE_MODELS = [
@@ -11370,7 +11482,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
11370
11482
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11371
11483
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11372
11484
 
11373
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/steps.js
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
11374
11486
  var STEPS2 = defineSteps([
11375
11487
  ...STEPS,
11376
11488
  {
@@ -11651,7 +11763,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11651
11763
  ].join(" ");
11652
11764
  }, "stepLine");
11653
11765
 
11654
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
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
11655
11767
  var where = [{ field: "ref" }];
11656
11768
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11657
11769
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11743,7 +11855,7 @@ var STATUS_ROWS = {
11743
11855
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11744
11856
  };
11745
11857
 
11746
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/compact.js
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
11747
11859
  var TEXT_CHARS = 400;
11748
11860
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11749
11861
  var messageRow = {
@@ -11928,8 +12040,8 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
11928
12040
  const parts = clock.parts(iso);
11929
12041
  if (!parts)
11930
12042
  return { text: clean(iso) };
11931
- const day2 = parts.date.slice(5);
11932
- return column.as === "day" ? { text: day2, date: parts.date } : { text: `${day2} ${parts.time}`, date: parts.date, time: parts.time };
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 };
11933
12045
  }
11934
12046
  case "count":
11935
12047
  return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
@@ -12109,7 +12221,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
12109
12221
  return lines.concat(footerOf(body)).join("\n");
12110
12222
  }, "compactText");
12111
12223
 
12112
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
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
12113
12225
  var SOFT_OUTPUT_BYTES = 256 * 1024;
12114
12226
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
12115
12227
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -12167,7 +12279,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
12167
12279
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
12168
12280
  }, "largeAnswerSteps");
12169
12281
 
12170
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
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
12171
12283
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
12172
12284
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
12173
12285
  var strip = /* @__PURE__ */ __name((value) => {
@@ -12181,7 +12293,7 @@ var strip = /* @__PURE__ */ __name((value) => {
12181
12293
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
12182
12294
  }, "strip");
12183
12295
 
12184
- // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/envelope.js
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
12185
12297
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
12186
12298
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
12187
12299
  var listOf = /* @__PURE__ */ __name((command, input) => {