@wirecat/mail-cli 0.7.0 → 0.8.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 (115) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-SI67TKZM.js → all-profiles-MXGDUBAM.js} +9 -9
  4. package/dist/bundle/{anthropic-DALMLC3Y.js → anthropic-A2QA4W7L.js} +6 -6
  5. package/dist/bundle/{app-server-XOH327Z2.js → app-server-PMIMK6FK.js} +48 -48
  6. package/dist/bundle/{bun-ORL67CJ6.js → bun-3UW3LFNL.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-DGXFNFHI.js → bun-sqlite-TGFZFKAX.js} +5 -5
  8. package/dist/bundle/{chunk-IYZHM3ZN.js → chunk-2KZJWBXB.js} +3 -3
  9. package/dist/bundle/{chunk-2M4K7HYR.js → chunk-2MQXXPPK.js} +17 -17
  10. package/dist/bundle/{chunk-VBOMKZ4E.js → chunk-4QDBMYK4.js} +70 -53
  11. package/dist/bundle/{chunk-23IEVVL2.js → chunk-5PWKPRTD.js} +4 -4
  12. package/dist/bundle/{chunk-RQVWZBW3.js → chunk-5W74YMCK.js} +3 -3
  13. package/dist/bundle/{chunk-7K6KJWTO.js → chunk-6J3DKKOV.js} +12 -12
  14. package/dist/bundle/{chunk-4NYWHINR.js → chunk-6JK46V5X.js} +6 -6
  15. package/dist/bundle/{chunk-CAKBG5FC.js → chunk-6U6Z3GXR.js} +6 -6
  16. package/dist/bundle/{chunk-V4TDG4KF.js → chunk-7JUTNCQX.js} +14 -14
  17. package/dist/bundle/{chunk-6XNPXAJU.js → chunk-AO3XYONW.js} +23 -23
  18. package/dist/bundle/{chunk-JFMUI4H6.js → chunk-BCDPLG7T.js} +1 -1
  19. package/dist/bundle/{chunk-PDL4UREY.js → chunk-BEUQ2X7U.js} +8 -8
  20. package/dist/bundle/{chunk-DXGMPMFP.js → chunk-CMNFLAUG.js} +4 -4
  21. package/dist/bundle/{chunk-U6UJ3HRS.js → chunk-CRS63C3T.js} +2 -2
  22. package/dist/bundle/{chunk-SQLCCKEL.js → chunk-DLB2JPLU.js} +1 -1
  23. package/dist/bundle/{chunk-XQJWMBDY.js → chunk-DM4ULDS3.js} +6 -6
  24. package/dist/bundle/{chunk-BGUMGCUY.js → chunk-DYCPBLUC.js} +2 -2
  25. package/dist/bundle/{chunk-3TYEJRMZ.js → chunk-EN3UZPGB.js} +4 -4
  26. package/dist/bundle/{chunk-DKQWTQVY.js → chunk-EU35YQXE.js} +23 -23
  27. package/dist/bundle/{chunk-GJUUTUK4.js → chunk-EVO77D3Y.js} +8 -8
  28. package/dist/bundle/{chunk-S4YUR4S3.js → chunk-FSBKLJXM.js} +219 -206
  29. package/dist/bundle/{chunk-EYT33MM3.js → chunk-J5RKMQ6A.js} +46 -46
  30. package/dist/bundle/{chunk-ZNGQ3NZ4.js → chunk-J6ACLZKV.js} +9 -9
  31. package/dist/bundle/{chunk-45KA5667.js → chunk-KBKEZV4L.js} +13 -13
  32. package/dist/bundle/{chunk-73OJJGZE.js → chunk-KEZHPPMI.js} +17 -3
  33. package/dist/bundle/{chunk-4ULY3GDL.js → chunk-KF4YULWC.js} +10 -10
  34. package/dist/bundle/{chunk-HFJNEXU7.js → chunk-L2ZHPIFC.js} +2 -2
  35. package/dist/bundle/{chunk-BM445GYF.js → chunk-L3KMVMRJ.js} +2 -2
  36. package/dist/bundle/{chunk-FTFNWGIR.js → chunk-LN7TNZIS.js} +8 -8
  37. package/dist/bundle/{chunk-NXJLC2WK.js → chunk-NAIJNJZZ.js} +12 -8
  38. package/dist/bundle/{chunk-5JEYIHS6.js → chunk-NEBO3NZU.js} +3 -3
  39. package/dist/bundle/{chunk-VNJMO5F6.js → chunk-NI6WX55Z.js} +2 -2
  40. package/dist/bundle/{chunk-M2JCUVCJ.js → chunk-NSODLSEL.js} +94 -94
  41. package/dist/bundle/{chunk-6RMMAUUW.js → chunk-NWKLBZN5.js} +30 -30
  42. package/dist/bundle/{chunk-5BSEGMNE.js → chunk-OAQ4UB6V.js} +4 -4
  43. package/dist/bundle/{chunk-FUB3X25H.js → chunk-PEF637VV.js} +4 -4
  44. package/dist/bundle/{chunk-NNIXREJH.js → chunk-PXCIM6D5.js} +7 -7
  45. package/dist/bundle/{chunk-6LK7KTWB.js → chunk-Q5DOXSBM.js} +1 -1
  46. package/dist/bundle/{chunk-35KD2CI2.js → chunk-QBBKSCQD.js} +286 -252
  47. package/dist/bundle/{chunk-MHQKHWCJ.js → chunk-RFWTPSJX.js} +34 -28
  48. package/dist/bundle/{chunk-QZBT6BOU.js → chunk-ROZBXOES.js} +1 -1
  49. package/dist/bundle/{chunk-AP7V256W.js → chunk-RVZ4JIRR.js} +1 -1
  50. package/dist/bundle/{chunk-MMXMVGA6.js → chunk-SZ5PKNDF.js} +7 -7
  51. package/dist/bundle/{chunk-VSHJWTX5.js → chunk-TCWJYOZV.js} +6 -6
  52. package/dist/bundle/{chunk-HV3EIYX4.js → chunk-TMQA4KR7.js} +1 -1
  53. package/dist/bundle/{chunk-VKPWP3AK.js → chunk-U4IF2MOB.js} +2 -2
  54. package/dist/bundle/{chunk-ZKCNMW7G.js → chunk-UR6WHUJF.js} +2 -2
  55. package/dist/bundle/{chunk-MCJ7LKYR.js → chunk-VGR3AGAC.js} +6 -6
  56. package/dist/bundle/{chunk-R5MML3FC.js → chunk-VSDVH2M2.js} +67 -59
  57. package/dist/bundle/{chunk-E3DRM6YP.js → chunk-W5J6I5GW.js} +3 -3
  58. package/dist/bundle/{chunk-FPOGVDLS.js → chunk-W7H3PZ67.js} +2 -2
  59. package/dist/bundle/{chunk-BEMLGWY4.js → chunk-WS4L47DG.js} +1 -1
  60. package/dist/bundle/{chunk-ZKZABB4K.js → chunk-WWNAQ75T.js} +3 -3
  61. package/dist/bundle/{chunk-Q44AYEOB.js → chunk-XWNCXFR5.js} +2 -2
  62. package/dist/bundle/{chunk-LZ5J3UXD.js → chunk-YS2WUWY7.js} +4 -4
  63. package/dist/bundle/{chunk-OHTR4WFO.js → chunk-Z5GDZ3QF.js} +2 -2
  64. package/dist/bundle/{chunk-Q2C3VMSU.js → chunk-ZISFMUYB.js} +18 -18
  65. package/dist/bundle/{chunk-3GZK5GTU.js → chunk-ZKAT6I2I.js} +1 -1
  66. package/dist/bundle/command-contract-Q32SL5KX.js +34 -0
  67. package/dist/bundle/{decode-KOBURZIQ.js → decode-NF4TGOR3.js} +5 -5
  68. package/dist/bundle/{dispatch-GDAH4JHS.js → dispatch-5C6XNGEE.js} +8 -8
  69. package/dist/bundle/{dist-T7HMT675.js → dist-DVYY3YFG.js} +13 -13
  70. package/dist/bundle/{echarts-LEWTQO6H.js → echarts-F3USGP5B.js} +2 -2
  71. package/dist/bundle/{embed-PUFE4BSQ.js → embed-2RXV3BEC.js} +6 -6
  72. package/dist/bundle/{embedder-3G4BQQ6X.js → embedder-I2SJMC6N.js} +9 -9
  73. package/dist/bundle/{failure-6COJAO7T.js → failure-YRGRZBTX.js} +2 -2
  74. package/dist/bundle/{first-run-FLXOC53U.js → first-run-3GA7YCKZ.js} +11 -11
  75. package/dist/bundle/first-screen-JFIXKYAK.js +32 -0
  76. package/dist/bundle/{instructions-HGSXDCBT.js → instructions-VHI5CWH5.js} +1 -1
  77. package/dist/bundle/mail.js +12 -12
  78. package/dist/bundle/{mcp-GAPDLFWA.js → mcp-B25MZCS7.js} +2 -2
  79. package/dist/bundle/{node-5Z7PS4F5.js → node-4RBB3RDY.js} +2 -2
  80. package/dist/bundle/{node-sqlite-OAW7APIX.js → node-sqlite-FWYX3P2D.js} +5 -5
  81. package/dist/bundle/{oauth-ZFZWPAJN.js → oauth-6JKKRGLX.js} +7 -7
  82. package/dist/bundle/{open-ZQMBZVH4.js → open-7JSNC3MR.js} +4 -4
  83. package/dist/bundle/{openai-XT2RIXAK.js → openai-ASLWL3D6.js} +14 -14
  84. package/dist/bundle/{process-VVEQIHPE.js → process-AB2D2G2Q.js} +1 -1
  85. package/dist/bundle/{program-RD3BBDNY.js → program-ZJPQ3IDU.js} +447 -382
  86. package/dist/bundle/{prompt-PU7GE4Z4.js → prompt-JDFVQR3L.js} +5 -5
  87. package/dist/bundle/{recognize-AG4A3KUK.js → recognize-PKYA4HRC.js} +4 -4
  88. package/dist/bundle/{remote-D6TQ6T7F.js → remote-USBVVO4O.js} +7 -7
  89. package/dist/bundle/{rerank-GO24HJPF.js → rerank-UBMV6KO6.js} +7 -7
  90. package/dist/bundle/{serve-WCHJAH6G.js → serve-SVS3YOYS.js} +9 -9
  91. package/dist/bundle/{server-CAVNBG3P.js → server-7PZMYXY6.js} +38 -38
  92. package/dist/bundle/server-KA7Q5XCL.js +63 -0
  93. package/dist/bundle/{sqlite-runtime-ANXC4AW2.js → sqlite-runtime-IDPTXAM7.js} +5 -5
  94. package/dist/bundle/{state-EGJ66A62.js → state-6G2TSVP7.js} +6 -6
  95. package/dist/bundle/{store-OON7FCMQ.js → store-7A464D4X.js} +15 -15
  96. package/dist/bundle/{store-SBFA444C.js → store-L56GFI4P.js} +13 -13
  97. package/dist/bundle/store-maintenance-command-2LM4GOI3.js +52 -0
  98. package/dist/commands/read.d.ts.map +1 -1
  99. package/dist/commands/read.js +1 -0
  100. package/dist/commands/read.js.map +1 -1
  101. package/dist/commands/server-search.d.ts.map +1 -1
  102. package/dist/commands/server-search.js +3 -2
  103. package/dist/commands/server-search.js.map +1 -1
  104. package/dist/providers.d.ts +8 -0
  105. package/dist/providers.d.ts.map +1 -1
  106. package/dist/providers.js +2 -0
  107. package/dist/providers.js.map +1 -1
  108. package/dist/version.d.ts +1 -1
  109. package/dist/version.js +1 -1
  110. package/package.json +3 -3
  111. package/dist/bundle/command-contract-CB5BII3S.js +0 -34
  112. package/dist/bundle/first-screen-VUZEDSQW.js +0 -32
  113. package/dist/bundle/server-5KJJ3D6P.js +0 -63
  114. package/dist/bundle/store-maintenance-command-UEOJLYMJ.js +0 -52
  115. /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-EKRM2QJB.js} +0 -0
@@ -13,7 +13,7 @@ import {
13
13
  permissionOverrides,
14
14
  projectFields,
15
15
  resolveOutput
16
- } from "./chunk-VSHJWTX5.js";
16
+ } from "./chunk-TCWJYOZV.js";
17
17
  import {
18
18
  currentCaller,
19
19
  endpointTemplate,
@@ -24,38 +24,38 @@ import {
24
24
  providerErrorKey,
25
25
  renderEvent,
26
26
  runContextOf
27
- } from "./chunk-ZNGQ3NZ4.js";
27
+ } from "./chunk-J6ACLZKV.js";
28
28
  import {
29
29
  permissionCeiling
30
- } from "./chunk-IYZHM3ZN.js";
30
+ } from "./chunk-2KZJWBXB.js";
31
31
  import {
32
32
  count,
33
33
  id,
34
34
  text,
35
35
  time
36
- } from "./chunk-5BSEGMNE.js";
36
+ } from "./chunk-OAQ4UB6V.js";
37
37
  import {
38
38
  PRIORITY_LABELS,
39
39
  TASK_ORIGINS,
40
40
  TASK_STATES,
41
41
  TASK_TYPES
42
- } from "./chunk-MMXMVGA6.js";
42
+ } from "./chunk-SZ5PKNDF.js";
43
43
  import {
44
44
  FIELD_TYPES,
45
45
  QUERY_BACKENDS,
46
46
  TAG_TYPES,
47
47
  describeQuery
48
- } from "./chunk-VBOMKZ4E.js";
48
+ } from "./chunk-4QDBMYK4.js";
49
49
  import {
50
50
  sharedConfigPath
51
- } from "./chunk-4NYWHINR.js";
51
+ } from "./chunk-6JK46V5X.js";
52
52
  import {
53
53
  filesPresent,
54
54
  sharedModelsDirectory
55
- } from "./chunk-3TYEJRMZ.js";
55
+ } from "./chunk-EN3UZPGB.js";
56
56
  import {
57
57
  storePath
58
- } from "./chunk-Q44AYEOB.js";
58
+ } from "./chunk-XWNCXFR5.js";
59
59
  import {
60
60
  configFilePath,
61
61
  createRecordLog,
@@ -65,7 +65,7 @@ import {
65
65
  saveConfigFile,
66
66
  traceIdOf,
67
67
  writeSecurely
68
- } from "./chunk-Q2C3VMSU.js";
68
+ } from "./chunk-ZISFMUYB.js";
69
69
  import {
70
70
  MAX_NEXT_STEPS,
71
71
  STEPS,
@@ -104,16 +104,16 @@ import {
104
104
  union,
105
105
  unknown,
106
106
  writes
107
- } from "./chunk-NXJLC2WK.js";
107
+ } from "./chunk-NAIJNJZZ.js";
108
108
  import {
109
109
  CliError,
110
110
  isCliError
111
- } from "./chunk-BM445GYF.js";
111
+ } from "./chunk-L3KMVMRJ.js";
112
112
  import {
113
113
  __name
114
114
  } from "./chunk-ZVVMGPBJ.js";
115
115
 
116
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/ports/app.js
116
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/ports/app.js
117
117
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
118
118
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
119
119
  const name = envName(app, "READ_ONLY");
@@ -123,7 +123,7 @@ var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
123
123
  var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
124
124
  var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
125
125
 
126
- // node_modules/.pnpm/@wirecat+cli-base@0.71.0_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
126
+ // node_modules/.pnpm/@wirecat+cli-base@0.72.0_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
127
127
  var labels = /* @__PURE__ */ new WeakMap();
128
128
  var annotate = /* @__PURE__ */ __name((command, meta) => {
129
129
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3624,7 +3624,7 @@ __name(useColor, "useColor");
3624
3624
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3625
3625
  var program = new Command();
3626
3626
 
3627
- // node_modules/.pnpm/@wirecat+cli-base@0.71.0_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
3627
+ // node_modules/.pnpm/@wirecat+cli-base@0.72.0_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
3628
3628
  var argumentInfoSchema = object({
3629
3629
  name: string(),
3630
3630
  required: boolean(),
@@ -3653,7 +3653,8 @@ var fieldInfoSchema = object({
3653
3653
  example: string(),
3654
3654
  relation: optional(string()),
3655
3655
  native: optional(boolean()),
3656
- placement: optional(literal("and"))
3656
+ placement: optional(literal("and")),
3657
+ negatable: optional(boolean())
3657
3658
  });
3658
3659
  var commandInfoSchema = object({
3659
3660
  path: array(string()),
@@ -3697,7 +3698,7 @@ var commandsDocumentSchema = strictObject({
3697
3698
  exit_codes: record(string(), pipe(number(), integer()))
3698
3699
  });
3699
3700
 
3700
- // node_modules/.pnpm/@wirecat+cli-base@0.71.0_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
3701
+ // node_modules/.pnpm/@wirecat+cli-base@0.72.0_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
3701
3702
  import { isDeepStrictEqual } from "node:util";
3702
3703
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3703
3704
  var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidden");
@@ -3806,7 +3807,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
3806
3807
  return result;
3807
3808
  }, "sharedCommand");
3808
3809
 
3809
- // node_modules/.pnpm/@wirecat+cli-base@0.71.0_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
3810
+ // node_modules/.pnpm/@wirecat+cli-base@0.72.0_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
3810
3811
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3811
3812
  let command = root;
3812
3813
  const path2 = [];
@@ -3824,7 +3825,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3824
3825
  }
3825
3826
  }, "refuseJoinedPath");
3826
3827
 
3827
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3828
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3828
3829
  import { AsyncLocalStorage } from "node:async_hooks";
3829
3830
  var sentIds = /* @__PURE__ */ __name((typed, message) => ({
3830
3831
  messageId: message.id,
@@ -3930,7 +3931,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
3930
3931
  }, "guardedWrite");
3931
3932
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
3932
3933
 
3933
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/execution.js
3934
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/execution.js
3934
3935
  var DEFAULT_COMMAND_MS = 3e4;
3935
3936
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
3936
3937
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4112,7 +4113,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4112
4113
  }
4113
4114
  }, "withAbort");
4114
4115
 
4115
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4116
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4116
4117
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4117
4118
  import { join } from "node:path";
4118
4119
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4134,7 +4135,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4134
4135
  }, "profilesWithAccounts");
4135
4136
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4136
4137
 
4137
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/background/budget.js
4138
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/background/budget.js
4138
4139
  var DEADLINE_MARGIN_MS = 5e3;
4139
4140
  var DEADLINE_MARGIN_SHARE = 0.15;
4140
4141
  var DEFAULT_REQUEST_MS = 2e3;
@@ -4177,7 +4178,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
4177
4178
  };
4178
4179
  }, "runBudget");
4179
4180
 
4180
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4181
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4181
4182
  var CORE_LOG_EVENTS = defineLogEvents([
4182
4183
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4183
4184
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4211,7 +4212,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4211
4212
  cache: "cache.answered"
4212
4213
  };
4213
4214
 
4214
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4215
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4215
4216
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4216
4217
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4217
4218
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4224,13 +4225,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4224
4225
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
4225
4226
  }), "snakeLogger");
4226
4227
 
4227
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/runs/run.js
4228
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/run.js
4228
4229
  import { randomUUID } from "node:crypto";
4229
4230
  import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
4230
4231
  import { userInfo } from "node:os";
4231
4232
  import { join as join2, sep } from "node:path";
4232
4233
 
4233
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4234
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4234
4235
  var diagnostic = {
4235
4236
  event: true,
4236
4237
  operation: true,
@@ -4300,7 +4301,7 @@ var LOG_ATTRIBUTES = [
4300
4301
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
4301
4302
  ].sort();
4302
4303
 
4303
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/runs/run.js
4304
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/run.js
4304
4305
  var KEEP_RUNS_FOR_DAYS = 30;
4305
4306
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
4306
4307
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -4653,7 +4654,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
4653
4654
  };
4654
4655
  }, "metadataOf");
4655
4656
 
4656
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/runs/scope.js
4657
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/scope.js
4657
4658
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
4658
4659
  import { randomBytes } from "node:crypto";
4659
4660
  var scopes = new AsyncLocalStorage2();
@@ -4689,7 +4690,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
4689
4690
  var attempts = new AsyncLocalStorage2();
4690
4691
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
4691
4692
 
4692
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/runs/recording.js
4693
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/recording.js
4693
4694
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4694
4695
  const recording = startRecording(options);
4695
4696
  try {
@@ -4874,7 +4875,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4874
4875
  return void 0;
4875
4876
  }, "partialOutcome");
4876
4877
 
4877
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4878
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4878
4879
  var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4879
4880
  if (ms === void 0)
4880
4881
  return body();
@@ -4900,7 +4901,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4900
4901
  }
4901
4902
  }, "withDeadline");
4902
4903
 
4903
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/profile.js
4904
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/profile.js
4904
4905
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4905
4906
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4906
4907
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4969,10 +4970,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4969
4970
  return void 0;
4970
4971
  }, "sampleCommand");
4971
4972
 
4972
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/settings.js
4973
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/settings.js
4973
4974
  import { existsSync as existsSync3 } from "node:fs";
4974
4975
 
4975
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4976
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4976
4977
  var endpoint = /* @__PURE__ */ __name((value) => {
4977
4978
  try {
4978
4979
  const url2 = new URL(value);
@@ -4982,7 +4983,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
4982
4983
  }
4983
4984
  }, "endpoint");
4984
4985
 
4985
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/models/settings.js
4986
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/models/settings.js
4986
4987
  var MODEL_FIELDS = ["provider", "model", "base_url"];
4987
4988
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4988
4989
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5051,7 +5052,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5051
5052
  };
5052
5053
  }, "modelTarget");
5053
5054
 
5054
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5055
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5055
5056
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5056
5057
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5057
5058
  var AI_FIELDS = {
@@ -5095,7 +5096,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5095
5096
  };
5096
5097
  }, "resolveAISettings");
5097
5098
 
5098
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/domain/duration.js
5099
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/duration.js
5099
5100
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5100
5101
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5101
5102
  var parseDuration = /* @__PURE__ */ __name((value, source) => {
@@ -5109,7 +5110,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
5109
5110
  return ms;
5110
5111
  }, "parseDuration");
5111
5112
 
5112
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5113
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5113
5114
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5114
5115
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5115
5116
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -5268,7 +5269,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
5268
5269
  var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
5269
5270
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5270
5271
 
5271
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5272
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5272
5273
  import { readFileSync as readFileSync3 } from "node:fs";
5273
5274
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5274
5275
  var SECTIONS = ["personal", "bot"];
@@ -5558,7 +5559,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5558
5559
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5559
5560
  }, "readConfigFile");
5560
5561
 
5561
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5562
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5562
5563
  import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
5563
5564
  import { dirname, join as join3 } from "node:path";
5564
5565
  var DEFAULT_CONFIG = {
@@ -5587,7 +5588,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5587
5588
  }
5588
5589
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5589
5590
 
5590
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/settings.js
5591
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/settings.js
5591
5592
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5592
5593
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5593
5594
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -5977,7 +5978,7 @@ var given = /* @__PURE__ */ __name((value) => {
5977
5978
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
5978
5979
  }, "given");
5979
5980
 
5980
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/context.js
5981
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/context.js
5981
5982
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
5982
5983
  const { deadline, signal, app } = environmentOf(command);
5983
5984
  const now = deadline?.();
@@ -6094,7 +6095,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6094
6095
  return words.join(" ");
6095
6096
  }, "commandPath");
6096
6097
 
6097
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/effects.js
6098
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/effects.js
6098
6099
  var REMOTE_READ = { remote: "read", local: "read" };
6099
6100
  var FETCH = { remote: "read", local: "write" };
6100
6101
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6140,15 +6141,21 @@ var fetchesOnly = /* @__PURE__ */ __name((command) => {
6140
6141
  const effects = metaOf(command).effects;
6141
6142
  return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
6142
6143
  }, "fetchesOnly");
6143
- var fetchesOnlyAt = /* @__PURE__ */ __name((root) => (path2) => {
6144
+ var FILE_OPTION = /* @__PURE__ */ new WeakMap();
6145
+ var writesFileNow = /* @__PURE__ */ __name((command) => {
6146
+ const option = FILE_OPTION.get(command);
6147
+ return option === void 0 || command.opts()[option] !== void 0;
6148
+ }, "writesFileNow");
6149
+ var readsOverMcp = /* @__PURE__ */ __name((command) => fetchesOnly(command) || FILE_OPTION.has(command), "readsOverMcp");
6150
+ var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
6144
6151
  let at = root;
6145
6152
  for (const word of path2)
6146
6153
  at = at?.commands.find((one) => one.name() === word);
6147
- return at !== void 0 && fetchesOnly(at);
6148
- }, "fetchesOnlyAt");
6154
+ return at !== void 0 && readsOverMcp(at);
6155
+ }, "readsOverMcpAt");
6149
6156
  var isStoreChange = /* @__PURE__ */ __name((command) => {
6150
6157
  const effects = metaOf(command).effects;
6151
- return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command);
6158
+ return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command) && writesFileNow(command);
6152
6159
  }, "isStoreChange");
6153
6160
  var STORE_CHANGE_REFUSAL = "change the message store";
6154
6161
  var previewFlag = /* @__PURE__ */ __name((program2) => program2.options.some((option) => option.long === "--dry-run") ? " --dry-run" : "", "previewFlag");
@@ -6196,7 +6203,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6196
6203
  throw readOnlyRefusal(lock, what);
6197
6204
  }, "refuseUnderReadOnly");
6198
6205
 
6199
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/images/picture/models.js
6206
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/images/picture/models.js
6200
6207
  import { join as join4 } from "node:path";
6201
6208
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
6202
6209
  var IMAGE_MODELS = [
@@ -6250,7 +6257,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
6250
6257
  var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
6251
6258
  var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
6252
6259
 
6253
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/steps.js
6260
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/steps.js
6254
6261
  var STEPS2 = defineSteps([
6255
6262
  ...STEPS,
6256
6263
  {
@@ -6517,7 +6524,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
6517
6524
  ].join(" ");
6518
6525
  }, "stepLine");
6519
6526
 
6520
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
6527
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
6521
6528
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
6522
6529
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
6523
6530
  var strip = /* @__PURE__ */ __name((value) => {
@@ -6531,7 +6538,7 @@ var strip = /* @__PURE__ */ __name((value) => {
6531
6538
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
6532
6539
  }, "strip");
6533
6540
 
6534
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/envelope.js
6541
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/envelope.js
6535
6542
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
6536
6543
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
6537
6544
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -6665,7 +6672,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
6665
6672
  renderer.result(item);
6666
6673
  }, "printItem");
6667
6674
 
6668
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/entities/store-table.js
6675
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/store-table.js
6669
6676
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
6670
6677
  var storeTable = strictObject({
6671
6678
  name: text,
@@ -6674,7 +6681,7 @@ var storeTable = strictObject({
6674
6681
  bytes: optional(nullable(count))
6675
6682
  });
6676
6683
 
6677
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6684
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6678
6685
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
6679
6686
  const run = currentRun();
6680
6687
  const trace = traceId ?? run.traceId;
@@ -6688,7 +6695,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
6688
6695
  }));
6689
6696
  }, "recordLogFor");
6690
6697
 
6691
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6698
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6692
6699
  var attachment = strictObject({
6693
6700
  /** The message it came with, as a locator; absent inside that message. */
6694
6701
  message: optional(reference),
@@ -6726,7 +6733,7 @@ var attachment = strictObject({
6726
6733
  });
6727
6734
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
6728
6735
 
6729
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/entities/task.js
6736
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/task.js
6730
6737
  var closeSuggestion = strictObject({
6731
6738
  as: picklist(["done", "dismissed"]),
6732
6739
  /** The agent's name. */
@@ -6784,7 +6791,7 @@ var task = strictObject({
6784
6791
  updated_at: optional(time)
6785
6792
  });
6786
6793
 
6787
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6794
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6788
6795
  var agendaChat = strictObject({
6789
6796
  chat: reference,
6790
6797
  title: nullable(text),
@@ -6854,7 +6861,7 @@ var agenda = strictObject({
6854
6861
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6855
6862
  });
6856
6863
 
6857
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
6864
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
6858
6865
  var WEIGHTS = {
6859
6866
  bot: 3,
6860
6867
  scam: 3,
@@ -6879,7 +6886,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
6879
6886
  var DIGITS = /\d{5,}/;
6880
6887
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
6881
6888
 
6882
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/entities/conversation.js
6889
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/conversation.js
6883
6890
  var conversation = strictObject({
6884
6891
  id,
6885
6892
  chat: reference,
@@ -6894,7 +6901,7 @@ var conversation = strictObject({
6894
6901
  rules_version: count
6895
6902
  });
6896
6903
 
6897
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/entities/tagging.js
6904
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/tagging.js
6898
6905
  var tagging = strictObject({
6899
6906
  tag: text,
6900
6907
  type: picklist(TAG_TYPES),
@@ -6952,6 +6959,7 @@ export {
6952
6959
  sharedContracts,
6953
6960
  sharedCommand,
6954
6961
  refuseJoinedPath,
6962
+ deadlineMargin,
6955
6963
  recorded,
6956
6964
  startRecording,
6957
6965
  wasSettled,
@@ -7019,7 +7027,7 @@ export {
7019
7027
  isLogin,
7020
7028
  destroysNothing,
7021
7029
  changesStore,
7022
- fetchesOnlyAt,
7030
+ readsOverMcpAt,
7023
7031
  isStoreChange,
7024
7032
  previewFlag,
7025
7033
  storeChangeRefusal,
@@ -4,15 +4,15 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-BGUMGCUY.js";
7
+ } from "./chunk-DYCPBLUC.js";
8
8
  import {
9
9
  CliError
10
- } from "./chunk-BM445GYF.js";
10
+ } from "./chunk-L3KMVMRJ.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
16
16
  import { createInterface } from "node:readline";
17
17
  import { Writable } from "node:stream";
18
18
  var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-XQJWMBDY.js";
6
+ } from "./chunk-DM4ULDS3.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -9,15 +9,15 @@ import {
9
9
  optional,
10
10
  pipe,
11
11
  safeParse
12
- } from "./chunk-NXJLC2WK.js";
12
+ } from "./chunk-NAIJNJZZ.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-BM445GYF.js";
15
+ } from "./chunk-L3KMVMRJ.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/models/options.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/models/options.js
21
21
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
22
22
  const parsed = safeParse(schema, options);
23
23
  if (!parsed.success) {
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  resolvePaths
5
- } from "./chunk-Q2C3VMSU.js";
5
+ } from "./chunk-ZISFMUYB.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/path.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/path.js
11
11
  import { join } from "node:path";
12
12
  var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
13
13
  var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
@@ -5,15 +5,15 @@ import {
5
5
  } from "./chunk-Y5E2WNWB.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-BM445GYF.js";
8
+ } from "./chunk-L3KMVMRJ.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/speech/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-DXGMPMFP.js";
11
+ } from "./chunk-CMNFLAUG.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";