@wirecat/drive-cli 0.46.0 → 0.49.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 (146) hide show
  1. package/README.md +1 -1
  2. package/dist/age.d.ts +73 -0
  3. package/dist/age.d.ts.map +1 -0
  4. package/dist/age.js +44 -0
  5. package/dist/age.js.map +1 -0
  6. package/dist/bin/drive.js +2 -2
  7. package/dist/bundle/{all-profiles-O7CNQ7FO.js → all-profiles-WK2XXGPU.js} +5 -5
  8. package/dist/bundle/{anthropic-6T67J2CE.js → anthropic-R354D7GT.js} +3 -3
  9. package/dist/bundle/{app-server-BVBZT3UY.js → app-server-3YHJ757G.js} +46 -46
  10. package/dist/bundle/{bun-O6RL6LRQ.js → bun-JVDJVDHL.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-54W7JUY3.js → bun-sqlite-KZCZWSRZ.js} +2 -2
  12. package/dist/bundle/{chunk-LOTQ2HMT.js → chunk-22LTNYO2.js} +3 -3
  13. package/dist/bundle/{chunk-5MGIL5LW.js → chunk-254VYUWN.js} +18 -15
  14. package/dist/bundle/{chunk-NLEB26GA.js → chunk-2BADVV4A.js} +2 -2
  15. package/dist/bundle/{chunk-XEBFFKXO.js → chunk-2CKGGIWF.js} +1 -1
  16. package/dist/bundle/{chunk-D67JGWSC.js → chunk-2ZFR67KY.js} +6 -3
  17. package/dist/bundle/{chunk-K74PQVQZ.js → chunk-3UHJC6HH.js} +6 -6
  18. package/dist/bundle/{chunk-44FV5JAS.js → chunk-45TPBTR3.js} +18 -18
  19. package/dist/bundle/{chunk-NP3XLLN3.js → chunk-463NMG57.js} +2 -2
  20. package/dist/bundle/{chunk-AOOD3RMK.js → chunk-467AQO7E.js} +5 -5
  21. package/dist/bundle/{chunk-FEULDMWM.js → chunk-46X7Z4FD.js} +1903 -1526
  22. package/dist/bundle/{chunk-IKNU5A5Y.js → chunk-4ORK4UAY.js} +2 -2
  23. package/dist/bundle/{chunk-GOR3Z2FR.js → chunk-5ISHP4TK.js} +1 -1
  24. package/dist/bundle/{chunk-R2A3K7ZF.js → chunk-5KR7BKDV.js} +4 -4
  25. package/dist/bundle/{chunk-GWPKIRNQ.js → chunk-624B6G64.js} +3 -3
  26. package/dist/bundle/{chunk-TRMIV3OA.js → chunk-65AW2AEQ.js} +1 -1
  27. package/dist/bundle/{chunk-BQUPOB5H.js → chunk-6Z3W7LTD.js} +7 -7
  28. package/dist/bundle/{chunk-XF5MFUEB.js → chunk-75VCGSNB.js} +10 -10
  29. package/dist/bundle/{chunk-K7FRUB33.js → chunk-7BA3HL7N.js} +32 -32
  30. package/dist/bundle/{chunk-NDNTLUPS.js → chunk-7WEISHFA.js} +1 -1
  31. package/dist/bundle/{chunk-GNFHZZ55.js → chunk-ABVFH76X.js} +4 -4
  32. package/dist/bundle/{chunk-BEXHAGXH.js → chunk-AN7HENGZ.js} +156 -144
  33. package/dist/bundle/{chunk-CFZWPIVC.js → chunk-BQV3WYXW.js} +26 -18
  34. package/dist/bundle/{chunk-SWMMR3FR.js → chunk-CB5NGX6E.js} +1 -1
  35. package/dist/bundle/{chunk-DL7D6Y3B.js → chunk-CCLDCM7J.js} +3320 -3282
  36. package/dist/bundle/{chunk-BHE7ZY2N.js → chunk-DKJGYYCP.js} +71 -43
  37. package/dist/bundle/{chunk-ZBM4GEV2.js → chunk-E2Y6GJZX.js} +3 -3
  38. package/dist/bundle/{chunk-CVIKKIGE.js → chunk-EF2RCQ3L.js} +1 -1
  39. package/dist/bundle/{chunk-DORXXBFC.js → chunk-EOZPMJJP.js} +5 -5
  40. package/dist/bundle/{chunk-GQW4GRYR.js → chunk-FB7I5JWC.js} +4 -4
  41. package/dist/bundle/{chunk-PDBBBUY7.js → chunk-FUJZ5S2Q.js} +8 -8
  42. package/dist/bundle/{chunk-OWXTPXIQ.js → chunk-FZQSGLHU.js} +10 -10
  43. package/dist/bundle/{chunk-4NGLRHWO.js → chunk-HBYE4EP2.js} +1 -1
  44. package/dist/bundle/{chunk-NB2N6L3R.js → chunk-HD3TFIT4.js} +5 -5
  45. package/dist/bundle/{chunk-HEPIOCHN.js → chunk-HF2T7E67.js} +55 -48
  46. package/dist/bundle/{chunk-NW7IMGRR.js → chunk-HIAO4MPA.js} +1 -1
  47. package/dist/bundle/{chunk-4DW6QGEV.js → chunk-HQ2PGEOK.js} +9 -9
  48. package/dist/bundle/{chunk-PH74B2VZ.js → chunk-HVM5LS5Z.js} +2 -2
  49. package/dist/bundle/{chunk-CKR3DVUK.js → chunk-IEAZAPC3.js} +20 -17
  50. package/dist/bundle/{chunk-GHOWRW7E.js → chunk-IRDGH7DV.js} +8 -1
  51. package/dist/bundle/{chunk-XAZQTJXR.js → chunk-IRNX4CO5.js} +16 -16
  52. package/dist/bundle/{chunk-LHIL46I3.js → chunk-ITZI7T2X.js} +1 -1
  53. package/dist/bundle/{chunk-NM26XAS2.js → chunk-JMOX454R.js} +1 -1
  54. package/dist/bundle/{chunk-AUS6TKP5.js → chunk-JMRHDZMV.js} +30 -30
  55. package/dist/bundle/{chunk-VHQNVG3J.js → chunk-JZ3SUK2M.js} +2 -2
  56. package/dist/bundle/{chunk-RJ633GFA.js → chunk-KK3BA4IS.js} +1 -1
  57. package/dist/bundle/{chunk-WUFCYDKB.js → chunk-KKZYZ32J.js} +1 -1
  58. package/dist/bundle/{chunk-VYBOYBLX.js → chunk-KYJYOZYG.js} +5 -5
  59. package/dist/bundle/{chunk-JVTVAZ5X.js → chunk-L5RZI2M5.js} +56 -17
  60. package/dist/bundle/{chunk-ZKXDI45R.js → chunk-LF7ACSTK.js} +1 -1
  61. package/dist/bundle/{chunk-LZ5OTVWH.js → chunk-MC77UZVA.js} +3 -3
  62. package/dist/bundle/{chunk-QWSRPXCJ.js → chunk-MP2UCK3Z.js} +4 -4
  63. package/dist/bundle/{chunk-LJARCTGL.js → chunk-NFU3OBCC.js} +3 -3
  64. package/dist/bundle/{chunk-3HRDEJJW.js → chunk-NVHB2MHX.js} +4 -4
  65. package/dist/bundle/{chunk-VCYFEWPD.js → chunk-NXFEZQDL.js} +25 -25
  66. package/dist/bundle/{chunk-G3FAOS52.js → chunk-P4NOTS3U.js} +2 -2
  67. package/dist/bundle/{chunk-5MYFPQDA.js → chunk-P4OU3OVF.js} +12 -12
  68. package/dist/bundle/{chunk-RCS2SCX5.js → chunk-P7INAZIT.js} +4 -4
  69. package/dist/bundle/{chunk-3Z7WSD2A.js → chunk-PPXNEHYX.js} +7 -7
  70. package/dist/bundle/{chunk-SMHQA5J6.js → chunk-QEM3MOSB.js} +14 -7
  71. package/dist/bundle/{chunk-KADPV4YA.js → chunk-R235IRSJ.js} +1 -1
  72. package/dist/bundle/{chunk-QTJUH3LS.js → chunk-RAAI3JLI.js} +1 -1
  73. package/dist/bundle/{chunk-KJMBV574.js → chunk-SSD2V4HR.js} +356 -304
  74. package/dist/bundle/{chunk-5TC3NCAF.js → chunk-U77RLMOK.js} +1 -1
  75. package/dist/bundle/{chunk-AIXLOMH4.js → chunk-W5EUHV3J.js} +1 -1
  76. package/dist/bundle/{chunk-IAW5A7OR.js → chunk-W5IDHD6C.js} +30 -26
  77. package/dist/bundle/{chunk-DXKVEOSS.js → chunk-XLJV3ZOH.js} +1 -1
  78. package/dist/bundle/{recognize-IFXOJHEA.js → chunk-XVXXWNAA.js} +6 -6
  79. package/dist/bundle/{chunk-IGMRWQP3.js → chunk-Y2AUB4TJ.js} +29 -25
  80. package/dist/bundle/{chunk-QW36EOAM.js → chunk-YOF5BC4G.js} +2 -2
  81. package/dist/bundle/{chunk-PJ7IQVOM.js → chunk-YYMHFXHK.js} +1 -1
  82. package/dist/bundle/{chunk-DDYR6DYL.js → chunk-ZK7Y5K63.js} +1 -1
  83. package/dist/bundle/command-contract-AEA45IX7.js +38 -0
  84. package/dist/bundle/decode-BE3VDYTJ.js +159 -0
  85. package/dist/bundle/drive.js +4 -4
  86. package/dist/bundle/{echarts-LD3AI55P.js → echarts-4OQHS575.js} +2 -2
  87. package/dist/bundle/{embed-FJKIIM43.js → embed-QR76SJDI.js} +3 -3
  88. package/dist/bundle/{embedder-NNQ5ZC25.js → embedder-EMIDKBYV.js} +6 -6
  89. package/dist/bundle/{entry-ZYSNPDSD.js → entry-FE4REJDO.js} +4 -4
  90. package/dist/bundle/{failure-M5HSCCJJ.js → failure-GYOTW6NN.js} +11 -11
  91. package/dist/bundle/{first-run-KA2UPZAU.js → first-run-ALPI62PX.js} +5 -5
  92. package/dist/bundle/first-screen-JLS57PIT.js +36 -0
  93. package/dist/bundle/{google-ZYDFTHLN.js → google-NV75VSCD.js} +4 -4
  94. package/dist/bundle/google-api-6623OUF2.js +82 -0
  95. package/dist/bundle/{identity-R5OKB5O5.js → identity-NZ7SP6OL.js} +2 -2
  96. package/dist/bundle/{instructions-RZMSW3OC.js → instructions-3QZBKKPF.js} +1 -1
  97. package/dist/bundle/{login-JU6NKW5P.js → login-KNBM6XUX.js} +54 -54
  98. package/dist/bundle/mcp-4NPK6BM3.js +95 -0
  99. package/dist/bundle/{mcp-Z362OMZG.js → mcp-XY2FGGUM.js} +68 -68
  100. package/dist/bundle/{node-ZRLYQL7J.js → node-R2BLYUSB.js} +2 -2
  101. package/dist/bundle/node-sqlite-PMRVP442.js +62 -0
  102. package/dist/bundle/{oauth-NAIBKERJ.js → oauth-NM2AKRRT.js} +4 -4
  103. package/dist/bundle/{open-3P5EPXPV.js → open-XZH5ZNDA.js} +1 -1
  104. package/dist/bundle/{process-LL77573L.js → process-IX5YWGDP.js} +1 -1
  105. package/dist/bundle/{program-PA2J6OFM.js → program-MDWQHGBY.js} +166 -96
  106. package/dist/bundle/{prompt-3TX2SWOY.js → prompt-5K6XGWSK.js} +2 -2
  107. package/dist/bundle/recognize-U7GDD6T2.js +22 -0
  108. package/dist/bundle/{remote-663M42Y5.js → remote-ZWXOGNQX.js} +4 -4
  109. package/dist/bundle/{rerank-OT2F2DBV.js → rerank-YRQBCS63.js} +4 -4
  110. package/dist/bundle/{serve-PDNNI6O6.js → serve-6PQ7K5RK.js} +6 -6
  111. package/dist/bundle/server-O7SS6NAY.js +56 -0
  112. package/dist/bundle/server-WT57TF6S.js +69 -0
  113. package/dist/bundle/{services-5MCTECBU.js → services-QBIQX236.js} +22 -22
  114. package/dist/bundle/{sqlite-runtime-BF3KDM7W.js → sqlite-runtime-7Q5UD2VR.js} +2 -2
  115. package/dist/bundle/{state-SZX65E74.js → state-U72TC26L.js} +3 -3
  116. package/dist/bundle/{store-TCWNLA3V.js → store-B4RAJ63G.js} +10 -10
  117. package/dist/bundle/{store-UKPGGAPW.js → store-FYABCSIH.js} +12 -12
  118. package/dist/bundle/store-maintenance-command-DAF5NI3T.js +57 -0
  119. package/dist/bundle/tokens-DISQJKDM.js +103 -0
  120. package/dist/commands/documents.d.ts +5 -1
  121. package/dist/commands/documents.d.ts.map +1 -1
  122. package/dist/commands/documents.js +21 -9
  123. package/dist/commands/documents.js.map +1 -1
  124. package/dist/commands/mcp.d.ts.map +1 -1
  125. package/dist/commands/mcp.js +8 -4
  126. package/dist/commands/mcp.js.map +1 -1
  127. package/dist/commands/remote.d.ts +8 -0
  128. package/dist/commands/remote.d.ts.map +1 -1
  129. package/dist/commands/remote.js +16 -0
  130. package/dist/commands/remote.js.map +1 -1
  131. package/dist/program.d.ts.map +1 -1
  132. package/dist/program.js +4 -1
  133. package/dist/program.js.map +1 -1
  134. package/dist/version.d.ts +1 -1
  135. package/dist/version.js +1 -1
  136. package/package.json +2 -2
  137. package/dist/bundle/command-contract-MXCBV3GJ.js +0 -38
  138. package/dist/bundle/first-screen-VQ3RXDMF.js +0 -36
  139. package/dist/bundle/google-api-2GT5PAW2.js +0 -82
  140. package/dist/bundle/mcp-JOQMFGBC.js +0 -95
  141. package/dist/bundle/node-sqlite-TXPSRROT.js +0 -46
  142. package/dist/bundle/server-BFOEPMR7.js +0 -56
  143. package/dist/bundle/server-K566PJ7H.js +0 -69
  144. package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +0 -57
  145. package/dist/bundle/tokens-DFCFRF7I.js +0 -103
  146. /package/dist/bundle/{chunk-Q2Z3VCM4.js → chunk-YLBNPI7H.js} +0 -0
@@ -9,22 +9,22 @@ import {
9
9
  readSetupAnswers,
10
10
  unanswered,
11
11
  writeSetupAnswers
12
- } from "./chunk-LJARCTGL.js";
12
+ } from "./chunk-NFU3OBCC.js";
13
13
  import {
14
14
  DEFAULT_STEMMERS,
15
15
  LANGUAGES
16
- } from "./chunk-BQUPOB5H.js";
16
+ } from "./chunk-6Z3W7LTD.js";
17
17
  import {
18
18
  sharedConfigPath
19
- } from "./chunk-GQW4GRYR.js";
19
+ } from "./chunk-FB7I5JWC.js";
20
20
  import {
21
21
  storePath
22
- } from "./chunk-TRMIV3OA.js";
22
+ } from "./chunk-65AW2AEQ.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/first-run.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/first-run.js
28
28
  import { spawnSync } from "node:child_process";
29
29
  import { accessSync, constants, realpathSync } from "node:fs";
30
30
  import { delimiter, join } from "node:path";
@@ -82,7 +82,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
82
82
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
83
83
  }, "suggested");
84
84
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
85
- const { openStore } = await import("./store-TCWNLA3V.js");
85
+ const { openStore } = await import("./store-B4RAJ63G.js");
86
86
  const store = await openStore({ env });
87
87
  let rebuild = false;
88
88
  try {
@@ -111,8 +111,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
111
111
  if (!rebuild)
112
112
  return;
113
113
  const [{ openCache }, { buildStems }] = await Promise.all([
114
- import("./open-3P5EPXPV.js"),
115
- import("./store-maintenance-command-QHLUVBTJ.js")
114
+ import("./open-XZH5ZNDA.js"),
115
+ import("./store-maintenance-command-DAF5NI3T.js")
116
116
  ]);
117
117
  const database = await openCache(storePath(env));
118
118
  try {
@@ -124,7 +124,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
124
124
  var askTools = /* @__PURE__ */ __name(async (run) => {
125
125
  const { command, env, io } = run;
126
126
  const installed = run.installed ?? ((name) => onPath(name, env));
127
- const { WIRECAT_TOOLS } = await import("./first-screen-VQ3RXDMF.js");
127
+ const { WIRECAT_TOOLS } = await import("./first-screen-JLS57PIT.js");
128
128
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
129
129
  const missing = others.filter((tool) => !installed(tool.command));
130
130
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -197,7 +197,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
197
197
  contentLanguages: start.contentLanguages,
198
198
  all: start.path[0] === "setup",
199
199
  io: {
200
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-3TX2SWOY.js")).readSecret(prompt, { input, echo: true }), "ask"),
200
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-5K6XGWSK.js")).readSecret(prompt, { input, echo: true }), "ask"),
201
201
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
202
202
  `), "say")
203
203
  }
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/tasks/model.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/tasks/model.js
11
11
  var TASK_KINDS = ["question", "request", "mention", "promise"];
12
12
  var TASK_STATES = ["open", "done", "dismissed"];
13
13
  var TASK_ORIGINS = ["rule", "agent", "owner"];
@@ -20,7 +20,7 @@ function closeTask(task, state, by, at, reason) {
20
20
  }
21
21
  __name(closeTask, "closeTask");
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/tasks/service.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/tasks/service.js
24
24
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
25
25
  async function find(id) {
26
26
  const task = await store.get(id);
@@ -80,13 +80,13 @@ function median(values) {
80
80
  }
81
81
  __name(median, "median");
82
82
 
83
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/tasks/store.js
83
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/tasks/store.js
84
84
  function matches(task, filter) {
85
85
  return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
86
86
  }
87
87
  __name(matches, "matches");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
90
90
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
91
91
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed"];
92
92
  var MEMORY_KINDS = ["summary", "digest", "preference"];
@@ -95,7 +95,7 @@ var MEMORY_SCOPES = ["personal", "work"];
95
95
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
96
96
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
97
97
 
98
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
98
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
99
99
  var LINK_KINDS = [
100
100
  "links-to",
101
101
  "blocked-by",
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-IAW5A7OR.js";
6
+ } from "./chunk-W5IDHD6C.js";
7
7
  import {
8
8
  chatEventAnswer,
9
9
  memberAnswer,
@@ -12,26 +12,27 @@ import {
12
12
  serveRelay,
13
13
  typedQuery,
14
14
  withQuery
15
- } from "./chunk-JVTVAZ5X.js";
15
+ } from "./chunk-L5RZI2M5.js";
16
16
  import {
17
17
  renderMessages
18
- } from "./chunk-D67JGWSC.js";
18
+ } from "./chunk-2ZFR67KY.js";
19
19
  import {
20
20
  holdLock,
21
21
  lockPath,
22
22
  releaseLock,
23
23
  servingProfiles,
24
24
  takeLock
25
- } from "./chunk-NP3XLLN3.js";
25
+ } from "./chunk-463NMG57.js";
26
26
  import {
27
27
  RULES_VERSION,
28
28
  applyTaskRulesOnArrival,
29
29
  newSendId,
30
30
  onlineDeps,
31
31
  openRequestTask,
32
+ senderIsMe,
32
33
  servicesFor,
33
34
  syncsOneChat
34
- } from "./chunk-DL7D6Y3B.js";
35
+ } from "./chunk-CCLDCM7J.js";
35
36
  import {
36
37
  LOCAL_READ,
37
38
  LOCAL_WRITE,
@@ -53,39 +54,39 @@ import {
53
54
  snakeKeys,
54
55
  storeTable,
55
56
  withoutProviderRefs
56
- } from "./chunk-AUS6TKP5.js";
57
+ } from "./chunk-JMRHDZMV.js";
57
58
  import {
58
59
  Command,
59
60
  annotate
60
- } from "./chunk-LOTQ2HMT.js";
61
+ } from "./chunk-22LTNYO2.js";
61
62
  import {
62
63
  holdersOf
63
- } from "./chunk-AIXLOMH4.js";
64
+ } from "./chunk-W5EUHV3J.js";
64
65
  import {
65
66
  codeOf,
66
67
  currentRun
67
- } from "./chunk-CFZWPIVC.js";
68
+ } from "./chunk-BQV3WYXW.js";
68
69
  import {
69
70
  failureKey
70
- } from "./chunk-GOR3Z2FR.js";
71
+ } from "./chunk-5ISHP4TK.js";
71
72
  import {
72
73
  levelFor
73
- } from "./chunk-PJ7IQVOM.js";
74
+ } from "./chunk-YYMHFXHK.js";
74
75
  import {
75
76
  envName
76
- } from "./chunk-RJ633GFA.js";
77
+ } from "./chunk-KK3BA4IS.js";
77
78
  import {
78
79
  readSecret
79
- } from "./chunk-IKNU5A5Y.js";
80
+ } from "./chunk-4ORK4UAY.js";
80
81
  import {
81
82
  checkedOptions,
82
83
  range
83
- } from "./chunk-LHIL46I3.js";
84
+ } from "./chunk-ITZI7T2X.js";
84
85
  import {
85
86
  messagesFor,
86
87
  systemFor,
87
88
  validateImages
88
- } from "./chunk-KADPV4YA.js";
89
+ } from "./chunk-R235IRSJ.js";
89
90
  import {
90
91
  MIGRATIONS,
91
92
  drainNoteIndex,
@@ -112,20 +113,20 @@ import {
112
113
  storeClients,
113
114
  storeContents,
114
115
  vectorIndexCounts
115
- } from "./chunk-FEULDMWM.js";
116
+ } from "./chunk-46X7Z4FD.js";
116
117
  import {
117
118
  formatLocator,
118
119
  parseLocator
119
- } from "./chunk-AOOD3RMK.js";
120
+ } from "./chunk-467AQO7E.js";
120
121
  import {
121
122
  queryFieldsOf
122
123
  } from "./chunk-R2QRP7EJ.js";
123
124
  import {
124
125
  storePath
125
- } from "./chunk-TRMIV3OA.js";
126
+ } from "./chunk-65AW2AEQ.js";
126
127
  import {
127
128
  openCache
128
- } from "./chunk-VYBOYBLX.js";
129
+ } from "./chunk-KYJYOZYG.js";
129
130
  import {
130
131
  Credentials,
131
132
  pathsAreOverridden,
@@ -5496,11 +5497,11 @@ var require_liquid_node = __commonJS({
5496
5497
  }
5497
5498
  });
5498
5499
 
5499
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5500
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5500
5501
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5501
5502
  import { dirname, resolve } from "node:path";
5502
5503
 
5503
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/sealed.js
5504
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sealed.js
5504
5505
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5505
5506
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5506
5507
  import { Transform } from "node:stream";
@@ -5607,7 +5608,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5607
5608
  renameSync(pending, to);
5608
5609
  }, "unsealFile");
5609
5610
 
5610
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5611
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5611
5612
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5612
5613
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5613
5614
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5631,7 +5632,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5631
5632
  };
5632
5633
  }, "compatibilityOf");
5633
5634
 
5634
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/repair.js
5635
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/repair.js
5635
5636
  import { createHash as createHash2 } from "node:crypto";
5636
5637
  var COPY_MARK = "__repair_";
5637
5638
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5885,7 +5886,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5885
5886
  return found;
5886
5887
  }, "deleteCopy");
5887
5888
 
5888
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5889
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5889
5890
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5890
5891
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5891
5892
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5932,7 +5933,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5932
5933
  renderAnswer(this, outputFor(this), itemOf(answer));
5933
5934
  }), "storeInfoCommand");
5934
5935
 
5935
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5936
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5936
5937
  var ENCRYPT_OPTION = [
5937
5938
  "--encrypt",
5938
5939
  "compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
@@ -5951,7 +5952,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5951
5952
  return password;
5952
5953
  }, "passwordOf");
5953
5954
 
5954
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/rules.js
5955
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/rules.js
5955
5956
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5956
5957
  import { join } from "node:path";
5957
5958
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6122,7 +6123,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6122
6123
  }, "problem");
6123
6124
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6124
6125
 
6125
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/state.js
6126
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/state.js
6126
6127
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6127
6128
  import { join as join2 } from "node:path";
6128
6129
  var ANSWERED_KEPT = 1e3;
@@ -6175,7 +6176,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6175
6176
  }, "recordReply");
6176
6177
  var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
6177
6178
 
6178
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/decide.js
6179
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/decide.js
6179
6180
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6180
6181
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6181
6182
  const { message, chat, owner, sender } = incoming;
@@ -6281,7 +6282,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6281
6282
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6282
6283
  }, "filled");
6283
6284
 
6284
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/template.js
6285
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/template.js
6285
6286
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6286
6287
  var TEMPLATE_LIMITS = {
6287
6288
  parse: 32768,
@@ -6441,7 +6442,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6441
6442
  }
6442
6443
  }, "renderReplyTemplate");
6443
6444
 
6444
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6445
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6445
6446
  var DRY_RUN_DAYS = 7;
6446
6447
  var PAGE = 500;
6447
6448
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6555,7 +6556,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6555
6556
  }
6556
6557
  }, "storedSince");
6557
6558
 
6558
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6559
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6559
6560
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6560
6561
  const host = new URL(baseUrl).host;
6561
6562
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6586,7 +6587,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6586
6587
  };
6587
6588
  }, "embeddingKeys");
6588
6589
 
6589
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/models/openai.js
6590
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/models/openai.js
6590
6591
  var options = strictObject({
6591
6592
  temperature: range(0, 2),
6592
6593
  top_p: range(0, 1),
@@ -6635,7 +6636,7 @@ var openai = {
6635
6636
  }, "complete")
6636
6637
  };
6637
6638
 
6638
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/models/index.js
6639
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/models/index.js
6639
6640
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6640
6641
  complete: /* @__PURE__ */ __name(async (request) => {
6641
6642
  if (deps.signal?.aborted)
@@ -6650,7 +6651,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6650
6651
  if (!adapter && target.provider === "openai")
6651
6652
  adapter = openai;
6652
6653
  if (!adapter && target.provider === "anthropic")
6653
- adapter = (await import("./anthropic-6T67J2CE.js")).anthropic;
6654
+ adapter = (await import("./anthropic-R354D7GT.js")).anthropic;
6654
6655
  if (!adapter)
6655
6656
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6656
6657
  if (request.images !== void 0 && adapter.images !== true)
@@ -6691,7 +6692,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6691
6692
  }, "complete")
6692
6693
  }), "modelGateway");
6693
6694
 
6694
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/consents.js
6695
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/consents.js
6695
6696
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6696
6697
  import { join as join3 } from "node:path";
6697
6698
  var shape = strictObject({
@@ -6716,7 +6717,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6716
6717
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6717
6718
  }, "mayModelReply");
6718
6719
 
6719
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6720
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6720
6721
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6721
6722
  ai: true
6722
6723
  }) => async (rule2, message, chat, now) => {
@@ -6763,7 +6764,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6763
6764
  return result2;
6764
6765
  }, "replyRenderer");
6765
6766
 
6766
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/serve.js
6767
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/serve.js
6767
6768
  var NOT_ALLOWED = "replies.send is not allow";
6768
6769
  var NO_RULES = "no rules";
6769
6770
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6856,7 +6857,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6856
6857
  return { skip: why };
6857
6858
  }, "replyTo");
6858
6859
 
6859
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6860
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6860
6861
  var FIRST_FETCH_MS = 6e4;
6861
6862
  var DAY_MS = 864e5;
6862
6863
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6910,7 +6911,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6910
6911
  };
6911
6912
  }, "memberFetches");
6912
6913
 
6913
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6914
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6914
6915
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6915
6916
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6916
6917
  if (context.format === "pretty") {
@@ -6943,7 +6944,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
6943
6944
  return context;
6944
6945
  }, "recordDiagnostics");
6945
6946
 
6946
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6947
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6947
6948
  var STEMS_EVERY_MS = 3e4;
6948
6949
  var STEMS_SLICE_MS = 2e3;
6949
6950
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -6983,7 +6984,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
6983
6984
  };
6984
6985
  }, "stemFills");
6985
6986
 
6986
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
6987
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
6987
6988
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
6988
6989
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
6989
6990
  kind: attachment.kind,
@@ -6995,6 +6996,13 @@ var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
6995
6996
  width: attachment.width,
6996
6997
  height: attachment.height,
6997
6998
  duration: attachment.duration,
6999
+ contact: attachment.contact && defined({
7000
+ name: attachment.contact.name,
7001
+ first_name: attachment.contact.firstName,
7002
+ last_name: attachment.contact.lastName,
7003
+ phone: attachment.contact.phone,
7004
+ user_id: attachment.contact.userId
7005
+ }),
6998
7006
  buttons: attachment.buttons
6999
7007
  }), "attachmentItem");
7000
7008
  var quotedItem = /* @__PURE__ */ __name((quoted) => quoted === null ? null : {
@@ -7020,8 +7028,7 @@ var messageItem = /* @__PURE__ */ __name((message, reader) => {
7020
7028
  sender_name: message.senderName,
7021
7029
  sender_username: message.senderUsername,
7022
7030
  sender_is_chat: message.senderIsChat,
7023
- // MAX reports the owner's own messages with no sender id, so `outgoing` counts as well as the id.
7024
- sender_is_me: message.outgoing === true || message.senderId !== null && String(message.senderId) === account,
7031
+ sender_is_me: senderIsMe(message, account),
7025
7032
  mentions: message.mentions,
7026
7033
  timestamp: message.timestamp,
7027
7034
  edited_at: message.editedAt,
@@ -7072,7 +7079,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7072
7079
  locale: messenger.app.locale
7073
7080
  }), "viewOf");
7074
7081
 
7075
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7082
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7076
7083
  var observed = /* @__PURE__ */ __name((value) => ({
7077
7084
  value: value.value,
7078
7085
  observed_at: value.observedAt,
@@ -7139,7 +7146,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7139
7146
  }
7140
7147
  }, "watchEventItem");
7141
7148
 
7142
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7149
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7143
7150
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7144
7151
  output: { entity: "watch_item" },
7145
7152
  effects: REMOTE_READ,
@@ -7294,7 +7301,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7294
7301
  }
7295
7302
  }, "describe");
7296
7303
 
7297
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7304
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7298
7305
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7299
7306
  const command = annotate(new Command("serve"), {
7300
7307
  output: { entity: "serve_summary" },
@@ -7510,7 +7517,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7510
7517
  };
7511
7518
  }, "tasking");
7512
7519
 
7513
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7520
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7514
7521
  import { existsSync as existsSync6 } from "node:fs";
7515
7522
  var PATH = "store tables list";
7516
7523
  var STORE_TABLES_QUERY = {
@@ -7553,7 +7560,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7553
7560
  return tables;
7554
7561
  }, "storeTablesCommand");
7555
7562
 
7556
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7563
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7557
7564
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7558
7565
  var WORD_INDEX = "message_words";
7559
7566
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -2,40 +2,40 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  botInstructions
5
- } from "./chunk-4NGLRHWO.js";
5
+ } from "./chunk-HBYE4EP2.js";
6
6
  import {
7
7
  answered,
8
8
  normal,
9
9
  registerCommands,
10
10
  runCommandForAgent,
11
11
  toolsFromCommands
12
- } from "./chunk-XAZQTJXR.js";
12
+ } from "./chunk-IRNX4CO5.js";
13
13
  import {
14
14
  agentJson,
15
15
  skillResource
16
- } from "./chunk-XF5MFUEB.js";
16
+ } from "./chunk-75VCGSNB.js";
17
17
  import {
18
18
  callerOf,
19
19
  serveStdio
20
- } from "./chunk-G3FAOS52.js";
20
+ } from "./chunk-P4NOTS3U.js";
21
21
  import {
22
22
  McpServer
23
23
  } from "./chunk-5FONRUG6.js";
24
24
  import {
25
25
  wholeList
26
- } from "./chunk-JVTVAZ5X.js";
26
+ } from "./chunk-L5RZI2M5.js";
27
27
  import {
28
28
  changesMessenger,
29
29
  itemOf
30
- } from "./chunk-AUS6TKP5.js";
30
+ } from "./chunk-JMRHDZMV.js";
31
31
  import {
32
32
  flatten
33
- } from "./chunk-LOTQ2HMT.js";
33
+ } from "./chunk-22LTNYO2.js";
34
34
  import {
35
35
  MESSENGER_CHANGE_REFUSAL,
36
36
  readOnlyLockOf,
37
37
  readOnlyRefusal
38
- } from "./chunk-RJ633GFA.js";
38
+ } from "./chunk-KK3BA4IS.js";
39
39
  import {
40
40
  mcpErrorResult
41
41
  } from "./chunk-VHT2WI4I.js";
@@ -46,7 +46,7 @@ import {
46
46
  __name
47
47
  } from "./chunk-ZVVMGPBJ.js";
48
48
 
49
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
49
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
50
50
  import { randomUUID } from "node:crypto";
51
51
  var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
52
52
  var createBotServer = /* @__PURE__ */ __name((options) => {
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-RCS2SCX5.js";
5
+ } from "./chunk-P7INAZIT.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-BJ3JRO34.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {