@wirecat/cli-template 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/.github/workflows/ci.yml +18 -0
  2. package/.github/workflows/release-pr.yml +37 -0
  3. package/CHANGELOG.md +39 -0
  4. package/bin/release +17 -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-I2I5Y47S.js} +7 -7
  9. package/dist/bundle/{anthropic-5RN7BGDI.js → anthropic-6KWLOH3O.js} +4 -4
  10. package/dist/bundle/{app-server-WGTKZQKJ.js → app-server-WDHIM77I.js} +42 -39
  11. package/dist/bundle/{bun-ILPS6AYA.js → bun-NQS22GBW.js} +2 -2
  12. package/dist/bundle/{bun-sqlite-WK2IGBGD.js → bun-sqlite-ZHYZDAFU.js} +3 -3
  13. package/dist/bundle/{chunk-VS5LGSTM.js → chunk-43KXTQB6.js} +1 -1
  14. package/dist/bundle/{chunk-C3GNOEJP.js → chunk-4DHYD37E.js} +3 -3
  15. package/dist/bundle/{chunk-ADFSSIV4.js → chunk-64DNKCG6.js} +4 -4
  16. package/dist/bundle/{chunk-ATHZEV2Z.js → chunk-6HV2ZUJ7.js} +3 -3
  17. package/dist/bundle/{chunk-BPMKAZSS.js → chunk-6K7LOCZA.js} +204 -79
  18. package/dist/bundle/{chunk-YNROUY3R.js → chunk-ALOTPATU.js} +11 -11
  19. package/dist/bundle/{chunk-ZSY4WAGI.js → chunk-AQGUIORH.js} +303 -261
  20. package/dist/bundle/{chunk-EA3TMI4A.js → chunk-CAX65NS4.js} +2477 -1235
  21. package/dist/bundle/{chunk-MEXT6XDP.js → chunk-CZB5RLXN.js} +3 -3
  22. package/dist/bundle/{chunk-VPCXYY46.js → chunk-E5O6R3NL.js} +1 -1
  23. package/dist/bundle/{chunk-TXHCL75B.js → chunk-EMPBFRAG.js} +32 -26
  24. package/dist/bundle/{chunk-RFJKNFVF.js → chunk-ERHKHYWL.js} +6 -6
  25. package/dist/bundle/{chunk-ORV4EGNC.js → chunk-F2KGCZQP.js} +8 -8
  26. package/dist/bundle/{chunk-5KAYQKBK.js → chunk-FGQC6DQK.js} +63 -63
  27. package/dist/bundle/{chunk-VOTEB3AN.js → chunk-FPC4ESDC.js} +1 -1
  28. package/dist/bundle/{chunk-QGOOPPEW.js → chunk-G7JA7YXK.js} +5 -5
  29. package/dist/bundle/{chunk-JJZCPBH3.js → chunk-GBXTIWAE.js} +53 -44
  30. package/dist/bundle/{chunk-3MDNAYQA.js → chunk-HMP5CI4F.js} +4 -2
  31. package/dist/bundle/{chunk-2MWNE4L3.js → chunk-I5HN34YA.js} +4 -4
  32. package/dist/bundle/{chunk-LRHX62ZF.js → chunk-IKFNRGSZ.js} +3 -3
  33. package/dist/bundle/{chunk-7Z4HR6GO.js → chunk-IKGARE4J.js} +1 -1
  34. package/dist/bundle/{chunk-3WDYHOAF.js → chunk-JECGG4TM.js} +1 -1
  35. package/dist/bundle/{chunk-WDWP5N6M.js → chunk-KMYKWHFH.js} +26 -26
  36. package/dist/bundle/{chunk-ENDBOYQR.js → chunk-KSABL7M2.js} +89 -45
  37. package/dist/bundle/{chunk-DEHBTFIC.js → chunk-KWQSDU3D.js} +2 -2
  38. package/dist/bundle/{chunk-CGFQT3LQ.js → chunk-L4U3V7OU.js} +1 -1
  39. package/dist/bundle/{chunk-HTYLT6ME.js → chunk-MJSZEF7M.js} +296 -173
  40. package/dist/bundle/{chunk-OGTRPW2K.js → chunk-MVWHCXYA.js} +7 -7
  41. package/dist/bundle/{chunk-ETJXPB6A.js → chunk-NVALUKZU.js} +4 -4
  42. package/dist/bundle/{chunk-6WOJIAYA.js → chunk-Q5J3LKRL.js} +2 -2
  43. package/dist/bundle/{chunk-7EUX7AZV.js → chunk-QHXHJ3BK.js} +3 -3
  44. package/dist/bundle/{chunk-NENYWEXF.js → chunk-RKZJ7ZKU.js} +1 -1
  45. package/dist/bundle/{chunk-JFXWLQ2L.js → chunk-RQPDYAHW.js} +2 -2
  46. package/dist/bundle/{chunk-RYOAQCVJ.js → chunk-RSCHWXF5.js} +2 -2
  47. package/dist/bundle/{chunk-FMO6F5Q2.js → chunk-RYBCV3CX.js} +2 -2
  48. package/dist/bundle/{chunk-G45R7M42.js → chunk-T6ZLWN7E.js} +1 -1
  49. package/dist/bundle/{chunk-5HHIPDNW.js → chunk-T7657XL5.js} +2 -2
  50. package/dist/bundle/{chunk-SKBRW5U3.js → chunk-TH6AVNNH.js} +2 -2
  51. package/dist/bundle/{chunk-MBBOINK4.js → chunk-TMFSNTR2.js} +3 -3
  52. package/dist/bundle/{chunk-Z5NL6YNU.js → chunk-UESBF7HN.js} +6 -6
  53. package/dist/bundle/{chunk-EILS4BTQ.js → chunk-UGPJDNVX.js} +26 -26
  54. package/dist/bundle/{chunk-OF56L2JU.js → chunk-UXLB5I2B.js} +4 -4
  55. package/dist/bundle/{chunk-CTBHQRX6.js → chunk-VDV3WS4O.js} +13 -13
  56. package/dist/bundle/{chunk-NVPWZF67.js → chunk-VDXS7GR7.js} +8 -8
  57. package/dist/bundle/{chunk-YIVY2WI3.js → chunk-YLN6DBJV.js} +1 -1
  58. package/dist/bundle/{chunk-WM5AMTRY.js → chunk-YMGJJG3W.js} +31 -13
  59. package/dist/bundle/clidev.js +3 -3
  60. package/dist/bundle/{command-contract-ZDU73EPH.js → command-contract-JGOS34WS.js} +11 -11
  61. package/dist/bundle/{decode-QMLOGZ6R.js → decode-HHZMCEZF.js} +3 -3
  62. package/dist/bundle/{echarts-DRDGGHJT.js → echarts-LYV2DLKU.js} +2 -2
  63. package/dist/bundle/{embed-PIR2LJR2.js → embed-BPN3SCZ7.js} +4 -4
  64. package/dist/bundle/{embedder-6KBRPAEQ.js → embedder-NZAL7DVD.js} +7 -7
  65. package/dist/bundle/{first-run-JO3CMY3Z.js → first-run-OKN7MVLP.js} +8 -8
  66. package/dist/bundle/first-screen-6XGF2AKF.js +26 -0
  67. package/dist/bundle/{instructions-EOQOXY6V.js → instructions-N2HYCEWN.js} +1 -1
  68. package/dist/bundle/{mcp-7HBLFGCW.js → mcp-OGWFYUDR.js} +2 -2
  69. package/dist/bundle/{node-52WF2326.js → node-MIHFH7T4.js} +2 -2
  70. package/dist/bundle/{node-sqlite-LIK6OYNF.js → node-sqlite-FF2SFXPZ.js} +4 -4
  71. package/dist/bundle/{oauth-7FVF7HQQ.js → oauth-72XUHG3K.js} +5 -5
  72. package/dist/bundle/{open-CRZDEATN.js → open-HL6SSRKY.js} +3 -3
  73. package/dist/bundle/{openai-WAJ6WREQ.js → openai-DSWDZHQA.js} +12 -12
  74. package/dist/bundle/{process-YIQPKLZI.js → process-5EQF2SZN.js} +1 -1
  75. package/dist/bundle/{program-ZFFFPBRS.js → program-QPXFRATG.js} +970 -503
  76. package/dist/bundle/{prompt-QQIVHO3M.js → prompt-VVRJDKQK.js} +3 -3
  77. package/dist/bundle/{recognize-4KLBZDEC.js → recognize-T6RIVTQL.js} +2 -2
  78. package/dist/bundle/{remote-BABMZTHA.js → remote-7Z3C3FOG.js} +5 -5
  79. package/dist/bundle/{rerank-P3IQQJIL.js → rerank-RUFDP7NP.js} +5 -5
  80. package/dist/bundle/{serve-25SSAKRZ.js → serve-YZQDRGZW.js} +7 -7
  81. package/dist/bundle/server-NDSKEME6.js +52 -0
  82. package/dist/bundle/{server-P4XUYY5A.js → server-WSFS656N.js} +28 -28
  83. package/dist/bundle/{state-QCQALQBJ.js → state-GOQ4J5RS.js} +4 -4
  84. package/dist/bundle/{store-ZECPRGGH.js → store-KRGXTPKQ.js} +12 -10
  85. package/dist/bundle/store-maintenance-command-FNNZ5YCX.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 +10 -3
  94. package/docs/dev/skills/release/fresh-audit.md +1 -1
  95. package/kit/dist/new.js +2 -1
  96. package/package.json +4 -4
  97. package/pnpm-workspace.yaml +2 -0
  98. package/src/commands/session.ts +1 -1
  99. package/src/program.ts +1 -0
  100. package/src/run-scope.test.ts +31 -0
  101. package/src/version.ts +1 -1
  102. package/dist/bundle/first-screen-3T5IXTFL.js +0 -26
  103. package/dist/bundle/server-G4GCDMYI.js +0 -52
  104. 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-F2KGCZQP.js";
14
14
  import {
15
15
  permissionCeiling
16
- } from "./chunk-ATHZEV2Z.js";
16
+ } from "./chunk-6HV2ZUJ7.js";
17
17
  import {
18
18
  carries
19
- } from "./chunk-VOTEB3AN.js";
19
+ } from "./chunk-FPC4ESDC.js";
20
20
  import {
21
21
  FACT_STATUSES,
22
22
  FACT_TYPES,
@@ -67,17 +67,17 @@ import {
67
67
  text,
68
68
  time,
69
69
  untrusted
70
- } from "./chunk-5KAYQKBK.js";
70
+ } from "./chunk-FGQC6DQK.js";
71
71
  import {
72
72
  sharedConfigPath
73
- } from "./chunk-QGOOPPEW.js";
73
+ } from "./chunk-G7JA7YXK.js";
74
74
  import {
75
75
  filesPresent,
76
76
  sharedModelsDirectory
77
- } from "./chunk-OF56L2JU.js";
77
+ } from "./chunk-UXLB5I2B.js";
78
78
  import {
79
79
  storePath
80
- } from "./chunk-6WOJIAYA.js";
80
+ } from "./chunk-Q5J3LKRL.js";
81
81
  import {
82
82
  COMPACT_FLAG,
83
83
  CliError,
@@ -144,12 +144,12 @@ import {
144
144
  visibleControls,
145
145
  writeSecurely,
146
146
  writes
147
- } from "./chunk-WDWP5N6M.js";
147
+ } from "./chunk-KMYKWHFH.js";
148
148
  import {
149
149
  __name
150
150
  } from "./chunk-ZVVMGPBJ.js";
151
151
 
152
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/ports/app.js
153
153
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
154
154
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
155
155
  const name = envName(app, "READ_ONLY");
@@ -160,7 +160,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
160
160
  var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
161
161
  var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
162
162
 
163
- // node_modules/.pnpm/@wirecat+cli-base@0.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.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
164
164
  var labels = /* @__PURE__ */ new WeakMap();
165
165
  var annotate = /* @__PURE__ */ __name((command, meta) => {
166
166
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3661,7 +3661,7 @@ __name(useColor, "useColor");
3661
3661
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3662
3662
  var program = new Command();
3663
3663
 
3664
- // node_modules/.pnpm/@wirecat+cli-base@0.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.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3665
3665
  var argumentInfoSchema = object({
3666
3666
  name: string(),
3667
3667
  required: boolean(),
@@ -3735,7 +3735,7 @@ var commandsDocumentSchema = strictObject({
3735
3735
  exit_codes: record(string(), pipe(number(), integer()))
3736
3736
  });
3737
3737
 
3738
- // node_modules/.pnpm/@wirecat+cli-base@0.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.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3739
3739
  import { isDeepStrictEqual } from "node:util";
3740
3740
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3741
3741
  var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidden");
@@ -3844,7 +3844,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
3844
3844
  return result;
3845
3845
  }, "sharedCommand");
3846
3846
 
3847
- // node_modules/.pnpm/@wirecat+cli-base@0.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.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3848
3848
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3849
3849
  let command = root;
3850
3850
  const path2 = [];
@@ -3862,7 +3862,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3862
3862
  }
3863
3863
  }, "refuseJoinedPath");
3864
3864
 
3865
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/permissions.js
3866
3866
  var LEVELS = ["deny", "readonly", "ask", "allow"];
3867
3867
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
3868
3868
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -4258,7 +4258,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
4258
4258
  }
4259
4259
  }, "assertRetentionEvidenceRead");
4260
4260
 
4261
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/guarded.js
4262
4262
  import { AsyncLocalStorage } from "node:async_hooks";
4263
4263
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
4264
4264
  messageId: message2.id,
@@ -4364,7 +4364,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
4364
4364
  }, "guardedWrite");
4365
4365
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
4366
4366
 
4367
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4368
4368
  var named = /* @__PURE__ */ __name((work) => {
4369
4369
  try {
4370
4370
  return work();
@@ -4391,7 +4391,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
4391
4391
  return projectFields(value, fields);
4392
4392
  }), "projectFields");
4393
4393
 
4394
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/execution.js
4395
4395
  var DEFAULT_COMMAND_MS = 3e4;
4396
4396
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4397
4397
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4574,7 +4574,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4574
4574
  }
4575
4575
  }, "withAbort");
4576
4576
 
4577
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4578
4578
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4579
4579
  import { join } from "node:path";
4580
4580
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4596,7 +4596,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4596
4596
  }, "profilesWithAccounts");
4597
4597
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4598
4598
 
4599
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/output-detail.js
4600
4600
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
4601
4601
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
4602
4602
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -4632,7 +4632,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
4632
4632
  return value;
4633
4633
  }, "atDetail");
4634
4634
 
4635
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/output.js
4636
4636
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
4637
4637
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
4638
4638
  if (other)
@@ -4696,7 +4696,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
4696
4696
  }, "warn")
4697
4697
  }), "silence");
4698
4698
 
4699
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4700
4700
  var CORE_LOG_EVENTS = defineLogEvents([
4701
4701
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4702
4702
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4730,7 +4730,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4730
4730
  cache: "cache.answered"
4731
4731
  };
4732
4732
 
4733
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4734
4734
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4735
4735
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4736
4736
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4743,13 +4743,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4743
4743
  error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
4744
4744
  }), "snakeLogger");
4745
4745
 
4746
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/run.js
4747
4747
  import { randomUUID } from "node:crypto";
4748
4748
  import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
4749
4749
  import { userInfo } from "node:os";
4750
4750
  import { join as join2, sep } from "node:path";
4751
4751
 
4752
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4753
4753
  var diagnostic = {
4754
4754
  event: true,
4755
4755
  operation: true,
@@ -4819,7 +4819,7 @@ var LOG_ATTRIBUTES = [
4819
4819
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
4820
4820
  ].sort();
4821
4821
 
4822
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/run.js
4823
4823
  var KEEP_RUNS_FOR_DAYS = 30;
4824
4824
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
4825
4825
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -5172,7 +5172,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
5172
5172
  };
5173
5173
  }, "metadataOf");
5174
5174
 
5175
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/scope.js
5176
5176
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
5177
5177
  import { randomBytes } from "node:crypto";
5178
5178
  var scopes = new AsyncLocalStorage2();
@@ -5210,7 +5210,7 @@ var attempts = new AsyncLocalStorage2();
5210
5210
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
5211
5211
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
5212
5212
 
5213
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/recording.js
5214
5214
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
5215
5215
  const recording = startRecording(options);
5216
5216
  try {
@@ -5395,7 +5395,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
5395
5395
  return void 0;
5396
5396
  }, "partialOutcome");
5397
5397
 
5398
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5399
5399
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5400
5400
  if (ms2 === void 0)
5401
5401
  return body();
@@ -5421,7 +5421,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5421
5421
  }
5422
5422
  }, "withDeadline");
5423
5423
 
5424
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/profile.js
5425
5425
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
5426
5426
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
5427
5427
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5490,10 +5490,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5490
5490
  return void 0;
5491
5491
  }, "sampleCommand");
5492
5492
 
5493
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/settings.js
5494
5494
  import { existsSync as existsSync4 } from "node:fs";
5495
5495
 
5496
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5497
5497
  var endpoint = /* @__PURE__ */ __name((value) => {
5498
5498
  try {
5499
5499
  const url2 = new URL(value);
@@ -5503,7 +5503,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
5503
5503
  }
5504
5504
  }, "endpoint");
5505
5505
 
5506
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/models/settings.js
5507
5507
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5508
5508
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5509
5509
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5572,7 +5572,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5572
5572
  };
5573
5573
  }, "modelTarget");
5574
5574
 
5575
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5576
5576
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5577
5577
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5578
5578
  var AI_FIELDS = {
@@ -5616,7 +5616,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5616
5616
  };
5617
5617
  }, "resolveAISettings");
5618
5618
 
5619
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/domain/duration.js
5620
5620
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5621
5621
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5622
5622
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5630,7 +5630,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5630
5630
  return ms2;
5631
5631
  }, "parseDuration");
5632
5632
 
5633
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5634
5634
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5635
5635
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5636
5636
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -5789,7 +5789,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
5789
5789
  var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
5790
5790
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5791
5791
 
5792
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5793
5793
  var HISTORY_MAX_DAYS = 1095;
5794
5794
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5795
5795
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -5836,7 +5836,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5836
5836
  return { batch: { ...batch, messages }, skipped };
5837
5837
  }, "limitBatch");
5838
5838
 
5839
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5840
5840
  import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
5841
5841
  import { join as join3 } from "node:path";
5842
5842
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -5925,10 +5925,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
5925
5925
  return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
5926
5926
  }, "registryProfiles");
5927
5927
 
5928
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5929
5929
  import { readFileSync as readFileSync4 } from "node:fs";
5930
5930
 
5931
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5932
5932
  var REPAIR_WORDS = {
5933
5933
  byte_order_mark: "an invisible byte-order mark at the start",
5934
5934
  comment: "a comment, which JSON does not allow",
@@ -6169,7 +6169,7 @@ ${parts.join(",\n")}
6169
6169
  ${indent}${close}`;
6170
6170
  }, "serialise");
6171
6171
 
6172
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
6173
6173
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6174
6174
  var SECTIONS = ["personal", "bot"];
6175
6175
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -6463,7 +6463,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
6463
6463
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
6464
6464
  }, "readConfigFile");
6465
6465
 
6466
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6467
6467
  import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
6468
6468
  import { dirname, join as join4 } from "node:path";
6469
6469
  var DEFAULT_CONFIG = {
@@ -6492,7 +6492,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
6492
6492
  }
6493
6493
  __name(ensureDefaultConfig, "ensureDefaultConfig");
6494
6494
 
6495
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
6496
6496
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6497
6497
  var parentOf = /* @__PURE__ */ __name((config, key) => {
6498
6498
  const path2 = key.split(".");
@@ -6514,7 +6514,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
6514
6514
  return { config, added };
6515
6515
  }, "withSettingDefaults");
6516
6516
 
6517
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/settings.js
6518
6518
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
6519
6519
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
6520
6520
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -7024,7 +7024,7 @@ var given = /* @__PURE__ */ __name((value) => {
7024
7024
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
7025
7025
  }, "given");
7026
7026
 
7027
- // node_modules/.pnpm/@wirecat+cli-core@0.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/context.js
7028
7028
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
7029
7029
  const slot = environmentOf(command).exit;
7030
7030
  if (slot)
@@ -7037,6 +7037,10 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
7037
7037
  environments.set(program2, environment);
7038
7038
  }, "provide");
7039
7039
  var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
7040
+ var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
7041
+ const overrides = environmentOf(command).agent?.overrides ?? [];
7042
+ return overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags;
7043
+ }, "withAgentLevels");
7040
7044
  var secretInputOf = /* @__PURE__ */ __name((command) => {
7041
7045
  const { stdin, stderr } = environmentOf(command);
7042
7046
  return { ...stdin ? { input: stdin } : {}, ...stderr ? { output: stderr } : {} };
@@ -7063,9 +7067,7 @@ var outputFor = /* @__PURE__ */ __name((command) => {
7063
7067
  var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
7064
7068
  const environment = environmentOf(command);
7065
7069
  const env = environment.env ?? process.env;
7066
- const flags = command.optsWithGlobals();
7067
- const overrides = environment.agent?.overrides ?? [];
7068
- const settings = resolveSettings(overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags, { env });
7070
+ const settings = resolveSettings(withAgentLevels(command, command.optsWithGlobals()), { env });
7069
7071
  const { renderer, format, color, streams, compact, full } = resolveOutput({
7070
7072
  ...settings,
7071
7073
  env,
@@ -7137,7 +7139,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
7137
7139
  return words.join(" ");
7138
7140
  }, "commandPath");
7139
7141
 
7140
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7142
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/effects.js
7141
7143
  var REMOTE_READ = { remote: "read", local: "read" };
7142
7144
  var FETCH = { remote: "read", local: "write" };
7143
7145
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -7261,7 +7263,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
7261
7263
  throw readOnlyRefusal(lock, what);
7262
7264
  }, "refuseUnderReadOnly");
7263
7265
 
7264
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7266
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/account.js
7265
7267
  var account = strictObject({
7266
7268
  provider: text,
7267
7269
  id,
@@ -7271,7 +7273,7 @@ var account = strictObject({
7271
7273
  scope: optional(picklist(["personal", "work"]))
7272
7274
  });
7273
7275
 
7274
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7276
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/account-session.js
7275
7277
  var accountSession = strictObject({
7276
7278
  current: boolean(),
7277
7279
  client: nullable(text),
@@ -7281,7 +7283,7 @@ var accountSession = strictObject({
7281
7283
  created_at: optional(nullable(time))
7282
7284
  });
7283
7285
 
7284
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7286
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/account-change.js
7285
7287
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
7286
7288
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
7287
7289
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -7299,7 +7301,7 @@ var accountPrivacy = strictObject({
7299
7301
  });
7300
7302
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
7301
7303
 
7302
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7304
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
7303
7305
  var accountProfile = strictObject({
7304
7306
  profile: id,
7305
7307
  current: boolean(),
@@ -7311,7 +7313,7 @@ var accountProfile = strictObject({
7311
7313
  bot: optional(literal(true))
7312
7314
  });
7313
7315
 
7314
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7316
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
7315
7317
  var milliseconds = pipe(number(), minValue(0));
7316
7318
  var counterReading = strictObject({
7317
7319
  counter: picklist(["views", "reactions", "comments"]),
@@ -7323,7 +7325,7 @@ var counterReading = strictObject({
7323
7325
  });
7324
7326
  var selection = record(string(), unknown());
7325
7327
 
7326
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7328
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7327
7329
  var adminRow = strictObject({
7328
7330
  ref: reference,
7329
7331
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -7376,7 +7378,7 @@ var adminReport = strictObject({
7376
7378
  rows: array(adminRow)
7377
7379
  });
7378
7380
 
7379
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7381
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/task.js
7380
7382
  var closeSuggestion = strictObject({
7381
7383
  as: picklist(["done", "dismissed"]),
7382
7384
  /** The agent's name. */
@@ -7438,7 +7440,7 @@ var task = strictObject({
7438
7440
  updated_at: optional(time)
7439
7441
  });
7440
7442
 
7441
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7443
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7442
7444
  var agendaChat = strictObject({
7443
7445
  chat: reference,
7444
7446
  title: nullable(text),
@@ -7508,11 +7510,11 @@ var agenda = strictObject({
7508
7510
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
7509
7511
  });
7510
7512
 
7511
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7513
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7512
7514
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7513
7515
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7514
7516
 
7515
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7517
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7516
7518
  var attachment = strictObject({
7517
7519
  /** The message it came with, as a locator; absent inside that message. */
7518
7520
  message: optional(reference),
@@ -7550,7 +7552,7 @@ var attachment = strictObject({
7550
7552
  });
7551
7553
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
7552
7554
 
7553
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7555
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
7554
7556
  var actionableError = objectWithRest({
7555
7557
  code: text,
7556
7558
  message: text,
@@ -7567,7 +7569,7 @@ var batchResult = strictObject({
7567
7569
  max_error_percent: count
7568
7570
  });
7569
7571
 
7570
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7572
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7571
7573
  var extractionItem = strictObject({
7572
7574
  ref: reference,
7573
7575
  attachment: count,
@@ -7600,7 +7602,7 @@ var extractionReport = strictObject({
7600
7602
  cursor: optional(text)
7601
7603
  });
7602
7604
 
7603
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7605
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7604
7606
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7605
7607
  var attachmentBytes = strictObject({
7606
7608
  ref: reference,
@@ -7628,7 +7630,7 @@ var attachmentTextChange = strictObject({
7628
7630
  replaced: nullable(picklist(["extracted", "agent"]))
7629
7631
  });
7630
7632
 
7631
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7633
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chart.js
7632
7634
  var chart = strictObject({
7633
7635
  version: literal(1),
7634
7636
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7643,7 +7645,7 @@ var chart = strictObject({
7643
7645
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7644
7646
  });
7645
7647
 
7646
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7648
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/member.js
7647
7649
  var member = strictObject({
7648
7650
  id,
7649
7651
  name: nullable(text),
@@ -7666,7 +7668,7 @@ var member = strictObject({
7666
7668
  check: optional(record(string(), unknown()))
7667
7669
  });
7668
7670
 
7669
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7671
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat.js
7670
7672
  var setting = optional(nullable(boolean()));
7671
7673
  var chat = strictObject({
7672
7674
  ref: reference,
@@ -7707,7 +7709,7 @@ var chat = strictObject({
7707
7709
  members: optional(array(member))
7708
7710
  });
7709
7711
 
7710
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7712
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/folder.js
7711
7713
  var named2 = strictObject({
7712
7714
  id,
7713
7715
  title: nullable(text),
@@ -7730,7 +7732,7 @@ var folder = strictObject({
7730
7732
  excluded_chats: optional(array(named2))
7731
7733
  });
7732
7734
 
7733
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7735
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7734
7736
  var inviteLink = strictObject({
7735
7737
  link: text,
7736
7738
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7746,7 +7748,7 @@ var inviteLink = strictObject({
7746
7748
  joined_count: optional(count)
7747
7749
  });
7748
7750
 
7749
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7751
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7750
7752
  var operated = { operation_id: id, chat_id: id };
7751
7753
  var group = strictObject({
7752
7754
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7826,7 +7828,7 @@ var chatFolderOrder = strictObject({
7826
7828
  folders: array(strictObject({ id, title: text }))
7827
7829
  });
7828
7830
 
7829
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7831
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7830
7832
  var operated2 = { operation_id: id, chat_id: id };
7831
7833
  var chatRemoval = strictObject(operated2);
7832
7834
  var chatMuting = strictObject({
@@ -7837,7 +7839,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7837
7839
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7838
7840
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7839
7841
 
7840
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7842
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7841
7843
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7842
7844
  var chatEvent = strictObject({
7843
7845
  chat_id: id,
@@ -7854,7 +7856,7 @@ var chatEvent = strictObject({
7854
7856
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7855
7857
  });
7856
7858
 
7857
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7859
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7858
7860
  var chatMetadata = strictObject({
7859
7861
  chat_id: id,
7860
7862
  title: nullable(text),
@@ -7869,7 +7871,7 @@ var chatMetadataRefresh = strictObject({
7869
7871
  has_more: boolean()
7870
7872
  });
7871
7873
 
7872
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7874
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7873
7875
  var action = picklist(["report", "delete", "remove"]);
7874
7876
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7875
7877
  var chatRules = strictObject({
@@ -7906,7 +7908,7 @@ var chatModeration = strictObject({
7906
7908
  }))
7907
7909
  });
7908
7910
 
7909
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7911
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7910
7912
  var optionalCount = optional(count);
7911
7913
  var minutes = nullable(number());
7912
7914
  var chatStats = strictObject({
@@ -7980,7 +7982,7 @@ var taskStats = strictObject({
7980
7982
  }))
7981
7983
  });
7982
7984
 
7983
- // node_modules/.pnpm/@wirecat+cli-core@0.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
7985
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7984
7986
  var memberCount = strictObject({
7985
7987
  day: pipe(text, isoDate()),
7986
7988
  participants: nullable(count),
@@ -8003,7 +8005,7 @@ var chatTracking = strictObject({
8003
8005
  tracked: boolean()
8004
8006
  });
8005
8007
 
8006
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8008
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
8007
8009
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
8008
8010
  var contactSync = strictObject({ added: count, changed: count, known: count });
8009
8011
  var profileFields = {
@@ -8041,7 +8043,7 @@ var profileFields = {
8041
8043
  }))
8042
8044
  };
8043
8045
 
8044
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8046
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact.js
8045
8047
  var contact = strictObject({
8046
8048
  ref: reference,
8047
8049
  id,
@@ -8072,7 +8074,7 @@ var contact = strictObject({
8072
8074
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
8073
8075
  });
8074
8076
 
8075
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8077
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
8076
8078
  var WEIGHTS = {
8077
8079
  bot: 3,
8078
8080
  scam: 3,
@@ -8097,7 +8099,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
8097
8099
  var DIGITS = /\d{5,}/;
8098
8100
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
8099
8101
 
8100
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8102
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
8101
8103
  var linkedIdentity = strictObject({
8102
8104
  provider: text,
8103
8105
  id,
@@ -8138,7 +8140,7 @@ var contactCheck = strictObject({
8138
8140
  checked_at: time
8139
8141
  });
8140
8142
 
8141
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8143
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message.js
8142
8144
  var quoted = strictObject({
8143
8145
  id,
8144
8146
  sender_id: nullable(id),
@@ -8257,7 +8259,7 @@ var message = strictObject({
8257
8259
  provider_metadata: providerMetadata
8258
8260
  });
8259
8261
 
8260
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8262
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
8261
8263
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
8262
8264
  var contextMessage = strictObject({
8263
8265
  locator: reference,
@@ -8455,7 +8457,7 @@ var contactPreparation = strictObject({
8455
8457
  })
8456
8458
  });
8457
8459
 
8458
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8460
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8459
8461
  var contactNote = strictObject({
8460
8462
  id,
8461
8463
  /** The contact, as a `contact:` reference. */
@@ -8467,13 +8469,13 @@ var contactNote = strictObject({
8467
8469
  updated_at: time
8468
8470
  });
8469
8471
 
8470
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8472
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8471
8473
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
8472
8474
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
8473
8475
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
8474
8476
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
8475
8477
 
8476
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8478
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8477
8479
  var conversation = strictObject({
8478
8480
  id,
8479
8481
  chat: reference,
@@ -8488,7 +8490,7 @@ var conversation = strictObject({
8488
8490
  rules_version: count
8489
8491
  });
8490
8492
 
8491
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8493
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8492
8494
  var conversationBuild = strictObject({
8493
8495
  chat: id,
8494
8496
  messages: count,
@@ -8513,7 +8515,7 @@ var catchUpPreparation = strictObject({
8513
8515
  prepared: optional(conversationPreparation)
8514
8516
  });
8515
8517
 
8516
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8518
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8517
8519
  var conversationDetails = union([
8518
8520
  strictObject({ ...conversation.entries, messages: array(message) }),
8519
8521
  message
@@ -8603,7 +8605,7 @@ var conversationHit = strictObject({
8603
8605
  stale: boolean()
8604
8606
  });
8605
8607
 
8606
- // node_modules/.pnpm/@wirecat+cli-core@0.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
8608
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/counters.js
8607
8609
  var counters = strictObject({
8608
8610
  cutoff: time,
8609
8611
  max_age_ms: milliseconds,
@@ -8633,7 +8635,94 @@ var counterRefresh = strictObject({
8633
8635
  complete: optional(boolean())
8634
8636
  });
8635
8637
 
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
8638
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/deal.js
8639
+ var nullableText = nullable(text);
8640
+ var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
8641
+ var outcome = picklist(["open", "won", "lost"]);
8642
+ var crmAccount = nullable(strictObject({ provider: text, account: text }));
8643
+ var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
8644
+ var deal = strictObject({
8645
+ id,
8646
+ ref: reference,
8647
+ kind: picklist(["deal", "lead"]),
8648
+ title: text,
8649
+ /** One line with the stage, amount and status. */
8650
+ summary: text,
8651
+ pipeline: reference,
8652
+ pipeline_name: text,
8653
+ stage: text,
8654
+ status: outcome,
8655
+ organization: nullable(party),
8656
+ currency: nullableText,
8657
+ amount: nullableText,
8658
+ close_date: day2,
8659
+ closed_date: day2,
8660
+ closed_reason: nullableText,
8661
+ rank: nullable(number()),
8662
+ /** A lead's deal, once it became one. */
8663
+ deal: nullable(reference),
8664
+ /** The CRM account it is a copy from; `null` for the owner's own. */
8665
+ account: crmAccount,
8666
+ external_id: nullableText,
8667
+ /** A CRM copy's assignee, the identity `<account>/user/<id>`. */
8668
+ assignee: nullableText,
8669
+ /** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
8670
+ provider_metadata: record(string(), strictObject({
8671
+ label: nullable(string()),
8672
+ value: unknown(),
8673
+ option_id: optional(union([string(), array(string())]))
8674
+ })),
8675
+ people: array(strictObject({ ...party.entries, role: picklist(["owner", "contact", "decision-maker"]) })),
8676
+ author: strictObject({
8677
+ type: picklist(["person", "bot"]),
8678
+ id,
8679
+ name: nullableText,
8680
+ kind: nullable(picklist(["agent", "rule"]))
8681
+ }),
8682
+ model: nullableText,
8683
+ source: text,
8684
+ reason: nullableText,
8685
+ evidence: array(reference),
8686
+ project: nullable(reference),
8687
+ project_name: nullableText,
8688
+ created_at: time,
8689
+ updated_at: time,
8690
+ untrusted
8691
+ });
8692
+ var lead = deal;
8693
+ var pipelineStage = strictObject({
8694
+ name: text,
8695
+ position: count,
8696
+ outcome,
8697
+ external_id: nullableText,
8698
+ /** Open deals or leads in it now. */
8699
+ open: count,
8700
+ /** With a funnel: rows that got this far, and the share of them that reached the next stage. */
8701
+ reached: optional(count),
8702
+ conversion: optional(nullable(number()))
8703
+ });
8704
+ var pipeline = strictObject({
8705
+ id,
8706
+ ref: reference,
8707
+ name: text,
8708
+ kind: picklist(["deal", "lead"]),
8709
+ account: crmAccount,
8710
+ external_id: nullableText,
8711
+ stages: array(pipelineStage),
8712
+ created_at: time,
8713
+ totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
8714
+ since: optional(day2),
8715
+ untrusted
8716
+ });
8717
+ var stage = strictObject({
8718
+ ...pipelineStage.entries,
8719
+ pipeline: reference,
8720
+ pipeline_name: text,
8721
+ kind: picklist(["deal", "lead"]),
8722
+ untrusted
8723
+ });
8724
+
8725
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/document.js
8637
8726
  var document = strictObject({
8638
8727
  ref: reference,
8639
8728
  id,
@@ -8648,7 +8737,7 @@ var document = strictObject({
8648
8737
  owners: optional(array(text))
8649
8738
  });
8650
8739
 
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
8740
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8652
8741
  var documentLink = strictObject({
8653
8742
  ref: reference,
8654
8743
  url: text,
@@ -8659,7 +8748,7 @@ var documentLink = strictObject({
8659
8748
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8660
8749
  });
8661
8750
 
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
8751
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8663
8752
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8664
8753
  var contribution = strictObject({
8665
8754
  message: evidenceMessage,
@@ -8689,7 +8778,7 @@ var retentionStay = strictObject({
8689
8778
  });
8690
8779
  var evidence = union([contribution, retentionStay]);
8691
8780
 
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
8781
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/fact.js
8693
8782
  var fact = strictObject({
8694
8783
  ref: reference,
8695
8784
  id,
@@ -8719,9 +8808,9 @@ var fact = strictObject({
8719
8808
  updated_at: time
8720
8809
  });
8721
8810
 
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
8811
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/hit.js
8723
8812
  var hit = strictObject({
8724
- kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
8813
+ kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
8725
8814
  ref: reference,
8726
8815
  provider: text,
8727
8816
  url: optional(text),
@@ -8757,7 +8846,7 @@ var hit = strictObject({
8757
8846
  untrusted
8758
8847
  });
8759
8848
 
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
8849
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/identity.js
8761
8850
  var identity = strictObject({
8762
8851
  ref: reference,
8763
8852
  provider: text,
@@ -8770,7 +8859,7 @@ var identity = strictObject({
8770
8859
  person: optional(nullable(reference))
8771
8860
  });
8772
8861
 
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
8862
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8774
8863
  var imageEmbedding = strictObject({
8775
8864
  model: text,
8776
8865
  embedded: count,
@@ -8779,13 +8868,13 @@ var imageEmbedding = strictObject({
8779
8868
  more: boolean()
8780
8869
  });
8781
8870
 
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
8871
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8783
8872
  import { spawn } from "node:child_process";
8784
8873
  import { randomBytes as randomBytes2 } from "node:crypto";
8785
8874
  import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
8786
8875
  import { dirname as dirname2, join as join5 } from "node:path";
8787
8876
 
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
8877
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8789
8878
  var progressOf = /* @__PURE__ */ __name((input) => {
8790
8879
  const total = input.total ?? null;
8791
8880
  const updated = input.updatedAt ?? null;
@@ -8801,7 +8890,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8801
8890
  };
8802
8891
  }, "progressOf");
8803
8892
 
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
8893
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8805
8894
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8806
8895
  const run = currentRun();
8807
8896
  const trace = traceId ?? run.traceId;
@@ -8815,7 +8904,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8815
8904
  }));
8816
8905
  }, "recordLogFor");
8817
8906
 
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
8907
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8819
8908
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8820
8909
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8821
8910
  const out = openSync(log, "a", 384);
@@ -8865,11 +8954,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
8865
8954
  const job2 = readJob(dir, id6);
8866
8955
  if (!job2)
8867
8956
  return;
8868
- const outcome3 = stateOf(job2);
8957
+ const outcome4 = stateOf(job2);
8869
8958
  recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
8870
8959
  event: "job.exit",
8871
8960
  job: id6,
8872
- outcome: outcome3,
8961
+ outcome: outcome4,
8873
8962
  ...job2.error ? { errorCode: job2.error.code } : {}
8874
8963
  });
8875
8964
  }, "finishJob");
@@ -8970,7 +9059,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8970
9059
  return { job: id6, pid, chat: input.chat, log };
8971
9060
  }, "startArchiveJob");
8972
9061
 
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
9062
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/job.js
8974
9063
  var problem = strictObject({ code: text, message: text });
8975
9064
  var job = strictObject({
8976
9065
  id,
@@ -8993,7 +9082,7 @@ var job = strictObject({
8993
9082
  error: optional(problem)
8994
9083
  });
8995
9084
 
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
9085
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8997
9086
  var joinRequest = strictObject({
8998
9087
  person_id: id,
8999
9088
  name: nullable(text),
@@ -9004,7 +9093,7 @@ var joinRequest = strictObject({
9004
9093
  about: optional(text)
9005
9094
  });
9006
9095
 
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
9096
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/list-results.js
9008
9097
  var botProfile = strictObject({
9009
9098
  name: text,
9010
9099
  token: text,
@@ -9035,6 +9124,10 @@ var scheduledJob = strictObject({
9035
9124
  name: text,
9036
9125
  kind: picklist(["command", "agent"]),
9037
9126
  when: text,
9127
+ /** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
9128
+ notify: optional(picklist(["always", "failures", "never"])),
9129
+ /** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
9130
+ to: optional(array(text)),
9038
9131
  last: nullable(strictObject({
9039
9132
  at: time,
9040
9133
  exit_code: number(),
@@ -9046,7 +9139,19 @@ var scheduledJob = strictObject({
9046
9139
  failures: optional(number()),
9047
9140
  cost_usd: optional(number()),
9048
9141
  /** 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 }))
9142
+ skipped: optional(strictObject({
9143
+ at: time,
9144
+ why: text,
9145
+ /** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
9146
+ reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
9147
+ })),
9148
+ /** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
9149
+ deliveries: optional(array(strictObject({
9150
+ to: text,
9151
+ ok: boolean(),
9152
+ reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/))),
9153
+ error: optional(text)
9154
+ })))
9050
9155
  })),
9051
9156
  /** Agent schedules: what today's runs cost, in US dollars. */
9052
9157
  spent_today_usd: optional(number()),
@@ -9081,7 +9186,7 @@ var stickerInventory = strictObject({
9081
9186
  url: optional(nullable(text))
9082
9187
  });
9083
9188
 
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
9189
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
9085
9190
  var pollVote = strictObject({
9086
9191
  person_id: id,
9087
9192
  name: nullable(text),
@@ -9091,7 +9196,7 @@ var pollVote = strictObject({
9091
9196
  voted_at: time
9092
9197
  });
9093
9198
 
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
9199
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/listener.js
9095
9200
  var reactions = unwrap(unwrap(message.entries.reactions));
9096
9201
  var observation = strictObject({
9097
9202
  value: pipe(number(), minValue(0)),
@@ -9133,7 +9238,7 @@ var serveSummary = strictObject({
9133
9238
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
9134
9239
  });
9135
9240
 
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
9241
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
9137
9242
  var mailCounts = strictObject({
9138
9243
  by: picklist(["day", "week", "sender"]),
9139
9244
  received: count,
@@ -9148,7 +9253,7 @@ var mailCounts = strictObject({
9148
9253
  }))
9149
9254
  });
9150
9255
 
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
9256
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
9152
9257
  var evidence2 = strictObject({ reference, fingerprint: text });
9153
9258
  var base = { id, evidence: array(evidence2) };
9154
9259
  var finding = variant("kind", [
@@ -9272,7 +9377,7 @@ var finding = variant("kind", [
9272
9377
  reason: text
9273
9378
  })
9274
9379
  ]);
9275
- var outcome = strictObject({
9380
+ var outcome2 = strictObject({
9276
9381
  id,
9277
9382
  fingerprint: text,
9278
9383
  status: picklist(["accepted", "rejected"]),
@@ -9288,11 +9393,11 @@ var mailFindings = strictObject({
9288
9393
  author,
9289
9394
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
9290
9395
  decided_at: nullable(time),
9291
- previous: array(outcome),
9292
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
9396
+ previous: array(outcome2),
9397
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
9293
9398
  });
9294
9399
 
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
9400
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9296
9401
  var mediaArchive = strictObject({
9297
9402
  directory: text,
9298
9403
  chats: count,
@@ -9324,7 +9429,7 @@ var mediaArchiveTimer = union([
9324
9429
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
9325
9430
  ]);
9326
9431
 
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
9432
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9328
9433
  var preparationId = pipe(string(), minLength(1));
9329
9434
  var preparationCount = pipe(number(), integer(), minValue(0));
9330
9435
  var preparationTime = nullable(isoTime);
@@ -9416,7 +9521,7 @@ var preparationMeeting = strictObject({
9416
9521
  updated_at: isoTime
9417
9522
  });
9418
9523
 
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
9524
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9420
9525
  var meetingEvidence = preparationEvidence;
9421
9526
  var meetingPersonContext = strictObject({
9422
9527
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -9438,7 +9543,7 @@ var meetingPersonContext = strictObject({
9438
9543
  })
9439
9544
  });
9440
9545
 
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
9546
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9442
9547
  var evidence3 = strictObject({ reference, fingerprint: text });
9443
9548
  var base2 = { id, project: reference, evidence: array(evidence3) };
9444
9549
  var finding2 = variant("kind", [
@@ -9456,7 +9561,7 @@ var finding2 = variant("kind", [
9456
9561
  assignee_evidence: optional(array(reference))
9457
9562
  })
9458
9563
  ]);
9459
- var outcome2 = strictObject({
9564
+ var outcome3 = strictObject({
9460
9565
  id,
9461
9566
  fingerprint: text,
9462
9567
  status: picklist(["accepted", "rejected"]),
@@ -9472,11 +9577,11 @@ var meetingFindings = strictObject({
9472
9577
  author,
9473
9578
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
9474
9579
  decided_at: nullable(time),
9475
- previous: array(outcome2),
9476
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
9580
+ previous: array(outcome3),
9581
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
9477
9582
  });
9478
9583
 
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
9584
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9480
9585
  var communicationCoverage = strictObject({
9481
9586
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
9482
9587
  query: string(),
@@ -9521,7 +9626,7 @@ var preparationCommunications = strictObject({
9521
9626
  }))
9522
9627
  });
9523
9628
 
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
9629
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9525
9630
  var meetingPreparation = strictObject({
9526
9631
  communications: optional(preparationCommunications),
9527
9632
  schema_version: literal(1),
@@ -9634,7 +9739,7 @@ var meetingPreparation = strictObject({
9634
9739
  })
9635
9740
  });
9636
9741
 
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
9742
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9638
9743
  var count4 = pipe(number(), integer(), minValue(0));
9639
9744
  var id3 = pipe(string(), minLength(1));
9640
9745
  var text3 = string();
@@ -9698,7 +9803,7 @@ var meetingProjectCandidates = strictObject({
9698
9803
  })
9699
9804
  });
9700
9805
 
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
9806
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9702
9807
  var count5 = pipe(number(), integer(), minValue(0));
9703
9808
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9704
9809
  var meetingSeriesInventory = strictObject({
@@ -9728,7 +9833,7 @@ var meetingSeriesInventory = strictObject({
9728
9833
  })
9729
9834
  });
9730
9835
 
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
9836
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9732
9837
  var text4 = string();
9733
9838
  var id5 = pipe(number(), integer(), minValue(1));
9734
9839
  var revision = picklist(["current", "superseded"]);
@@ -9745,7 +9850,7 @@ var meetingTaskProposal = strictObject({
9745
9850
  persistence: literal("proposal-only")
9746
9851
  });
9747
9852
 
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
9853
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/memory.js
9749
9854
  var memory = strictObject({
9750
9855
  ref: reference,
9751
9856
  id,
@@ -9772,7 +9877,7 @@ var memory = strictObject({
9772
9877
  updated_at: time
9773
9878
  });
9774
9879
 
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
9880
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/mention.js
9776
9881
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9777
9882
  var status = picklist(["found", "linked", "dismissed"]);
9778
9883
  var mention = strictObject({
@@ -9815,13 +9920,13 @@ var mentionRebuild = strictObject({
9815
9920
  mentions: count
9816
9921
  });
9817
9922
 
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
9923
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9819
9924
  var operated3 = { operation_id: id, chat_id: id };
9820
9925
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9821
9926
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9822
9927
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9823
9928
 
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
9929
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9825
9930
  var messageTranscript = strictObject({
9826
9931
  message_id: id,
9827
9932
  text,
@@ -9879,7 +9984,7 @@ var evidencePacket = strictObject({
9879
9984
  }))
9880
9985
  });
9881
9986
 
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
9987
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9883
9988
  var messageThread = strictObject({
9884
9989
  ref: reference,
9885
9990
  chat: id,
@@ -9896,7 +10001,7 @@ var messageThread = strictObject({
9896
10001
  });
9897
10002
  var messageContext = union([message, messageThread]);
9898
10003
 
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
10004
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9900
10005
  var messageCounts = strictObject({
9901
10006
  by: picklist(["chat", "sender", "day", "hour"]),
9902
10007
  total: count,
@@ -9909,7 +10014,7 @@ var messageCounts = strictObject({
9909
10014
  }))
9910
10015
  });
9911
10016
 
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
10017
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9913
10018
  var messageLink = strictObject({
9914
10019
  ref: reference,
9915
10020
  url: nullable(text),
@@ -9926,7 +10031,7 @@ var messageLink = strictObject({
9926
10031
  })))
9927
10032
  });
9928
10033
 
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
10034
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9930
10035
  var savedMessageFile = strictObject({
9931
10036
  kind: text,
9932
10037
  path: text,
@@ -10013,7 +10118,7 @@ var messageSyncAll = strictObject({
10013
10118
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
10014
10119
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
10015
10120
 
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
10121
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/message-write.js
10017
10122
  var messageWrite = strictObject({
10018
10123
  operation_id: id,
10019
10124
  message,
@@ -10028,7 +10133,7 @@ var draftWrite = strictObject({
10028
10133
  });
10029
10134
  var messageSend = union([messageWrite, draftWrite]);
10030
10135
 
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
10136
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/model.js
10032
10137
  var model2 = strictObject({
10033
10138
  id,
10034
10139
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -10045,7 +10150,7 @@ var model2 = strictObject({
10045
10150
  path: text
10046
10151
  });
10047
10152
 
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
10153
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/model-key.js
10049
10154
  var source = picklist(["environment", "keyring", "file"]);
10050
10155
  var modelKey = strictObject({
10051
10156
  provider: text,
@@ -10055,7 +10160,7 @@ var modelKey = strictObject({
10055
10160
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
10056
10161
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
10057
10162
 
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
10163
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/note.js
10059
10164
  var link = {
10060
10165
  target_text: nullable(text),
10061
10166
  kind: text,
@@ -10096,7 +10201,7 @@ var note = strictObject({
10096
10201
  backlinks: optional(array(strictObject({ from: reference, ...link })))
10097
10202
  });
10098
10203
 
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
10204
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
10100
10205
  var versus = strictObject({ current: number(), previous: number() });
10101
10206
  var person = { person_ref: reference, name: nullable(text) };
10102
10207
  var graph = strictObject({
@@ -10130,14 +10235,14 @@ var officialStats = strictObject({
10130
10235
  graphs: record(string(), union([graph, strictObject({ error: text })]))
10131
10236
  });
10132
10237
 
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
10238
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/person.js
10134
10239
  var person2 = strictObject({
10135
10240
  ref: reference,
10136
10241
  name: nullable(text),
10137
10242
  identities: optional(array(identity))
10138
10243
  });
10139
10244
 
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
10245
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/poll.js
10141
10246
  var poll = strictObject({
10142
10247
  chat_id: id,
10143
10248
  message_id: id,
@@ -10153,11 +10258,11 @@ var poll = strictObject({
10153
10258
  });
10154
10259
  var pollChange = strictObject({ operation_id: id, poll });
10155
10260
 
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
10261
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
10157
10262
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
10158
10263
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
10159
10264
 
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
10265
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/ranking.js
10161
10266
  var figures = record(string(), number());
10162
10267
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
10163
10268
  var rankingRow = strictObject({
@@ -10204,7 +10309,7 @@ var ranking = strictObject({
10204
10309
  rows: array(rankingRow)
10205
10310
  });
10206
10311
 
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
10312
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/reaction.js
10208
10313
  var reaction = strictObject({
10209
10314
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
10210
10315
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -10212,7 +10317,7 @@ var reaction = strictObject({
10212
10317
  reacted_at: time
10213
10318
  });
10214
10319
 
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
10320
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10216
10321
  var reactionChange = strictObject({
10217
10322
  operation_id: id,
10218
10323
  chat_id: id,
@@ -10220,7 +10325,7 @@ var reactionChange = strictObject({
10220
10325
  reaction: nullable(text)
10221
10326
  });
10222
10327
 
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
10328
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10224
10329
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
10225
10330
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
10226
10331
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -10231,7 +10336,7 @@ var recipientChange = strictObject({
10231
10336
  ...partial(recipientOff).entries
10232
10337
  });
10233
10338
 
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
10339
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10235
10340
  var events = array(record(string(), unknown()));
10236
10341
  var recordedRun = strictObject({
10237
10342
  run_id: id,
@@ -10303,7 +10408,7 @@ var runHit = strictObject({
10303
10408
  });
10304
10409
  var runLocation = strictObject({ path: text });
10305
10410
 
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
10411
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10307
10412
  var relationship = strictObject({
10308
10413
  id,
10309
10414
  from: reference,
@@ -10320,7 +10425,7 @@ var relationship = strictObject({
10320
10425
  created_at: time
10321
10426
  });
10322
10427
 
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
10428
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10324
10429
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
10325
10430
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
10326
10431
  var responseTimes = strictObject({
@@ -10337,7 +10442,7 @@ var waitingChats = strictObject({
10337
10442
  by_kind: strictObject({ private: count, group: count })
10338
10443
  });
10339
10444
 
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
10445
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/retention.js
10341
10446
  var retentionCohort = strictObject({
10342
10447
  /** The first day of the joining day or week. */
10343
10448
  cohort: text,
@@ -10385,7 +10490,7 @@ var retention = strictObject({
10385
10490
  rows: array(retentionCohort)
10386
10491
  });
10387
10492
 
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
10493
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10389
10494
  var savedSearch = strictObject({
10390
10495
  id,
10391
10496
  /** `null` for a run in the history. */
@@ -10402,7 +10507,7 @@ var savedSearch = strictObject({
10402
10507
  });
10403
10508
  var searchHistoryClear = strictObject({ cleared: count });
10404
10509
 
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
10510
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10406
10511
  var sendAttempt = strictObject({
10407
10512
  at: time,
10408
10513
  profile: text,
@@ -10430,7 +10535,7 @@ var sendAttempt = strictObject({
10430
10535
  error_code: optional(text)
10431
10536
  });
10432
10537
 
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
10538
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10434
10539
  var absent = strictObject({ path: text, exists: literal(false) });
10435
10540
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
10436
10541
  var infoSchema = strictObject({
@@ -10585,12 +10690,25 @@ var storeBackup = strictObject({
10585
10690
  encrypted: optional(literal(true))
10586
10691
  });
10587
10692
  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
- });
10693
+ var storeRestore = union([
10694
+ strictObject({
10695
+ path: text,
10696
+ restored_from: text,
10697
+ kept_at: nullable(text),
10698
+ schema: count
10699
+ }),
10700
+ /** From a rollback copy: its tables put back in place, the store returned to `schema` from `was`. */
10701
+ strictObject({
10702
+ path: text,
10703
+ restored_from: text,
10704
+ rolled_back: literal(true),
10705
+ schema: count,
10706
+ was: count,
10707
+ tables: array(strictObject({ table: text, rows: count })),
10708
+ rebuilt: array(text),
10709
+ foreign_key_violations: count
10710
+ })
10711
+ ]);
10594
10712
  var storeReset = union([
10595
10713
  strictObject({ ...absent.entries, reset: literal(false) }),
10596
10714
  strictObject({
@@ -10638,7 +10756,7 @@ var storeRepair = union([
10638
10756
  ]);
10639
10757
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
10640
10758
 
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
10759
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10642
10760
  var range = strictObject({ from: number(), to: number() });
10643
10761
  var storeChatStatus = strictObject({
10644
10762
  chat_id: id,
@@ -10736,7 +10854,7 @@ var storeJobRetry = union([
10736
10854
  ]);
10737
10855
  var storeJobClear = strictObject({ cleared: array(id) });
10738
10856
 
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
10857
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10740
10858
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10741
10859
  var storeTable = strictObject({
10742
10860
  name: text,
@@ -10745,7 +10863,7 @@ var storeTable = strictObject({
10745
10863
  bytes: optional(nullable(count))
10746
10864
  });
10747
10865
 
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
10866
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10749
10867
  var tagTarget = variant("type", [
10750
10868
  strictObject({ type: literal("chat"), chat_id: id }),
10751
10869
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10776,7 +10894,7 @@ var automaticTags = strictObject({
10776
10894
  dry_run: boolean()
10777
10895
  });
10778
10896
 
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
10897
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10780
10898
  var tagging = strictObject({
10781
10899
  tag: text,
10782
10900
  type: picklist(TAG_TYPES),
@@ -10789,7 +10907,7 @@ var tagging = strictObject({
10789
10907
  created_at: time
10790
10908
  });
10791
10909
 
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
10910
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10793
10911
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10794
10912
  var taskPair = strictObject({
10795
10913
  task: nullable(side),
@@ -10812,7 +10930,7 @@ var taskPair = strictObject({
10812
10930
  created_at: time
10813
10931
  });
10814
10932
 
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
10933
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10816
10934
  var nullableTime = nullable(time);
10817
10935
  var link2 = strictObject({
10818
10936
  id,
@@ -10986,7 +11104,7 @@ var taskReview = strictObject({
10986
11104
  untrusted
10987
11105
  });
10988
11106
 
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
11107
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/topic.js
10990
11108
  var topic = strictObject({
10991
11109
  id,
10992
11110
  title: text,
@@ -11000,9 +11118,13 @@ var topic = strictObject({
11000
11118
  untrusted
11001
11119
  });
11002
11120
 
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
11121
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/entities/index.js
11004
11122
  var ENTITIES = {
11005
11123
  sync_progress: progress,
11124
+ deal,
11125
+ lead,
11126
+ pipeline,
11127
+ stage,
11006
11128
  ...MEETING_RESULT_ENTITIES,
11007
11129
  message,
11008
11130
  message_context: messageContext,
@@ -11282,7 +11404,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
11282
11404
  return [name, definition];
11283
11405
  })), "entityDefinitions");
11284
11406
 
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
11407
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11286
11408
  var schemas = /* @__PURE__ */ new WeakMap();
11287
11409
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
11288
11410
  if (Object.hasOwn(ENTITIES, name))
@@ -11316,7 +11438,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
11316
11438
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
11317
11439
  }, "answerRow");
11318
11440
 
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
11441
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11320
11442
  import { join as join6 } from "node:path";
11321
11443
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
11322
11444
  var IMAGE_MODELS = [
@@ -11370,7 +11492,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
11370
11492
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11371
11493
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11372
11494
 
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
11495
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/steps.js
11374
11496
  var STEPS2 = defineSteps([
11375
11497
  ...STEPS,
11376
11498
  {
@@ -11651,7 +11773,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11651
11773
  ].join(" ");
11652
11774
  }, "stepLine");
11653
11775
 
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
11776
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11655
11777
  var where = [{ field: "ref" }];
11656
11778
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11657
11779
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11743,7 +11865,7 @@ var STATUS_ROWS = {
11743
11865
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11744
11866
  };
11745
11867
 
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
11868
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/compact.js
11747
11869
  var TEXT_CHARS = 400;
11748
11870
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11749
11871
  var messageRow = {
@@ -11928,8 +12050,8 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
11928
12050
  const parts = clock.parts(iso);
11929
12051
  if (!parts)
11930
12052
  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 };
12053
+ const day3 = parts.date.slice(5);
12054
+ return column.as === "day" ? { text: day3, date: parts.date } : { text: `${day3} ${parts.time}`, date: parts.date, time: parts.time };
11933
12055
  }
11934
12056
  case "count":
11935
12057
  return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
@@ -12109,7 +12231,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
12109
12231
  return lines.concat(footerOf(body)).join("\n");
12110
12232
  }, "compactText");
12111
12233
 
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
12234
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12113
12235
  var SOFT_OUTPUT_BYTES = 256 * 1024;
12114
12236
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
12115
12237
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -12167,7 +12289,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
12167
12289
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
12168
12290
  }, "largeAnswerSteps");
12169
12291
 
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
12292
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12171
12293
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
12172
12294
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
12173
12295
  var strip = /* @__PURE__ */ __name((value) => {
@@ -12181,7 +12303,7 @@ var strip = /* @__PURE__ */ __name((value) => {
12181
12303
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
12182
12304
  }, "strip");
12183
12305
 
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
12306
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12185
12307
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
12186
12308
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
12187
12309
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -12479,6 +12601,7 @@ export {
12479
12601
  setExitCode,
12480
12602
  provide,
12481
12603
  environmentOf,
12604
+ withAgentLevels,
12482
12605
  secretInputOf,
12483
12606
  outputFor,
12484
12607
  baseContext,