@wirecat/notion-cli 0.1.0 → 0.2.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 (195) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +10 -4
  3. package/contracts/wirecat.json +650 -1
  4. package/dist/bin/notion.js +2 -2
  5. package/dist/bundle/{all-profiles-OETMCOLN.js → all-profiles-JGYLQZ5C.js} +9 -9
  6. package/dist/bundle/{anthropic-5Y3O2TYM.js → anthropic-S2VSMIKQ.js} +5 -5
  7. package/dist/bundle/{app-server-IVWBIVHC.js → app-server-SASYDBCA.js} +55 -46
  8. package/dist/bundle/{bun-EO636SAD.js → bun-LU5LP3JI.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-C2T7QJ2M.js → bun-sqlite-JBSINB4O.js} +6 -6
  10. package/dist/bundle/{chunk-DIM5YWBU.js → chunk-22QQUKWA.js} +1 -1
  11. package/dist/bundle/{chunk-B4B65XIO.js → chunk-2F4QQ7WB.js} +3 -3
  12. package/dist/bundle/{chunk-2YR3RYT4.js → chunk-2F6VO5HA.js} +3 -3
  13. package/dist/bundle/chunk-2LWO3PDX.js +726 -0
  14. package/dist/bundle/{chunk-RSIS7BR7.js → chunk-3AL7QUS3.js} +20 -20
  15. package/dist/bundle/{chunk-RDZ7SVBZ.js → chunk-3Z4YTSRY.js} +3 -3
  16. package/dist/bundle/{chunk-QBC23NHD.js → chunk-4HWJOU7N.js} +1 -1
  17. package/dist/bundle/{chunk-WM7663C2.js → chunk-4IPURN72.js} +8 -8
  18. package/dist/bundle/{chunk-CLG2ISQH.js → chunk-4ZTVJHWU.js} +4 -4
  19. package/dist/bundle/{chunk-IQWEJEB5.js → chunk-5IYKVRH2.js} +26157 -21070
  20. package/dist/bundle/{chunk-7FII4DCE.js → chunk-5NFK5EM2.js} +7 -7
  21. package/dist/bundle/{chunk-K5TWMQSY.js → chunk-5QIQEUOG.js} +8 -8
  22. package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-5RDNBG7D.js} +2 -2
  23. package/dist/bundle/{chunk-ST2UC7FS.js → chunk-5RSC54NA.js} +30 -26
  24. package/dist/bundle/{chunk-7N5QB6NL.js → chunk-6EVKHZKN.js} +5 -3
  25. package/dist/bundle/{chunk-EU5WCOMQ.js → chunk-6RA3EABS.js} +45 -34
  26. package/dist/bundle/{chunk-JKIN5TOU.js → chunk-AOCUKEAX.js} +4 -4
  27. package/dist/bundle/{chunk-OWJDC4CB.js → chunk-B26TQZKZ.js} +12 -12
  28. package/dist/bundle/{chunk-WK3OSDNV.js → chunk-B7ON6KPT.js} +7 -7
  29. package/dist/bundle/{chunk-RLSFOR2D.js → chunk-BNPTZ5ZB.js} +4 -4
  30. package/dist/bundle/{chunk-WVZFXI36.js → chunk-D7QSEEYW.js} +4 -4
  31. package/dist/bundle/{chunk-JK44XO2S.js → chunk-DH5PRHT4.js} +56 -56
  32. package/dist/bundle/chunk-EUIVXFLJ.js +259 -0
  33. package/dist/bundle/{chunk-64D5VUZ4.js → chunk-FPY6EJ7B.js} +67 -63
  34. package/dist/bundle/{chunk-EGTBL3MJ.js → chunk-FT3LN3HP.js} +1 -1
  35. package/dist/bundle/{chunk-NLDYZBTC.js → chunk-FWVBPRL4.js} +1129 -2555
  36. package/dist/bundle/{chunk-UWIA2G6Q.js → chunk-FXEJY4OL.js} +329 -528
  37. package/dist/bundle/{chunk-R6ZM45NF.js → chunk-G3EZFRSS.js} +88 -30
  38. package/dist/bundle/{chunk-B2XKEEFX.js → chunk-GZOUFX3C.js} +4 -4
  39. package/dist/bundle/{chunk-WWMB4UHF.js → chunk-HL52XXZX.js} +1 -1
  40. package/dist/bundle/{chunk-4GC5DBHW.js → chunk-KCLOUUYF.js} +3 -3
  41. package/dist/bundle/chunk-KFVDL2QS.js +146 -0
  42. package/dist/bundle/{chunk-35K5T6WV.js → chunk-KGERXYTV.js} +1 -1
  43. package/dist/bundle/{chunk-BWICUW7W.js → chunk-KM6WHPHI.js} +2 -2
  44. package/dist/bundle/{chunk-AE2KQ37N.js → chunk-LAYPFBOM.js} +6 -6
  45. package/dist/bundle/chunk-LLG2POQ7.js +170 -0
  46. package/dist/bundle/{chunk-B2WFKFYL.js → chunk-M3KB25D3.js} +20 -116
  47. package/dist/bundle/{chunk-RAZKIHGH.js → chunk-M7S2NDWB.js} +3 -3
  48. package/dist/bundle/chunk-MGUEZYFA.js +5546 -0
  49. package/dist/bundle/chunk-MY742GAD.js +1977 -0
  50. package/dist/bundle/chunk-MZU2YFBZ.js +823 -0
  51. package/dist/bundle/{chunk-AQZO3ITW.js → chunk-NOQ7B5N7.js} +2 -2
  52. package/dist/bundle/{chunk-QC3KOJT4.js → chunk-NQWV4WQO.js} +6 -6
  53. package/dist/bundle/{chunk-FF4DDBCB.js → chunk-ODBZNSZ6.js} +6 -6
  54. package/dist/bundle/{chunk-TR7R5DL4.js → chunk-OTV53F34.js} +9 -9
  55. package/dist/bundle/{chunk-KHOVVPLC.js → chunk-P7CUM5IB.js} +1 -1
  56. package/dist/bundle/{chunk-CWVAYQXI.js → chunk-RV64YUQX.js} +8 -8
  57. package/dist/bundle/{chunk-TSCIIXN3.js → chunk-SHJQ6JKG.js} +2 -2
  58. package/dist/bundle/{chunk-24FAYAML.js → chunk-SWAOWNKW.js} +3 -3
  59. package/dist/bundle/chunk-SZOVLP44.js +29 -0
  60. package/dist/bundle/chunk-TPX2M45D.js +385 -0
  61. package/dist/bundle/{chunk-UWW24JQF.js → chunk-TSDBSIFM.js} +3 -3
  62. package/dist/bundle/{chunk-YA4LSSDZ.js → chunk-VBHETQVV.js} +1435 -1788
  63. package/dist/bundle/{chunk-HRTIRRXR.js → chunk-VCIALTEM.js} +33 -6
  64. package/dist/bundle/{chunk-ESZT4WW3.js → chunk-WCSOH4JS.js} +3 -3
  65. package/dist/bundle/{chunk-HWRKURQH.js → chunk-WF4D56CA.js} +2 -2
  66. package/dist/bundle/chunk-WJHZMR2W.js +335 -0
  67. package/dist/bundle/chunk-X4TIMMKJ.js +16 -0
  68. package/dist/bundle/{chunk-XL2HXHP3.js → chunk-XF26XKTS.js} +2 -2
  69. package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
  70. package/dist/bundle/{chunk-47R43UVJ.js → chunk-YMYUBZWT.js} +19 -19
  71. package/dist/bundle/{chunk-3D3PFXBP.js → chunk-YNTLT3Z3.js} +10 -15
  72. package/dist/bundle/{chunk-GA3URWIF.js → chunk-YVI5SQPY.js} +1 -1
  73. package/dist/bundle/{chunk-XC5CKHX2.js → chunk-Z56QFOBR.js} +1 -1
  74. package/dist/bundle/{chunk-EPAZ7DJB.js → chunk-ZKAEZXUP.js} +42 -38
  75. package/dist/bundle/{chunk-66PL7P4C.js → chunk-ZZ32DXTH.js} +1 -1
  76. package/dist/bundle/command-contract-JS5V27NX.js +38 -0
  77. package/dist/bundle/{command-server-entry-A66DJ3MH.js → command-server-entry-UFSG7KRO.js} +26 -23
  78. package/dist/bundle/decode-7LLWTSPT.js +297 -0
  79. package/dist/bundle/{dispatch-FEKU5UXC.js → dispatch-2GY6JIJH.js} +8 -8
  80. package/dist/bundle/{dist-YFKABFFF.js → dist-ILNOLGYN.js} +1 -1
  81. package/dist/bundle/{echarts-XD2JSWU4.js → echarts-BXX4OQWC.js} +2 -2
  82. package/dist/bundle/{embed-F3HYGAF7.js → embed-JXFNBTKH.js} +6 -6
  83. package/dist/bundle/{embedder-GSEDDUH7.js → embedder-57YZ44KO.js} +9 -9
  84. package/dist/bundle/{failure-HDJLR2YJ.js → failure-MYT4HPE3.js} +2 -2
  85. package/dist/bundle/{first-run-TXNTIUSP.js → first-run-3PF7T74J.js} +12 -11
  86. package/dist/bundle/first-screen-7BEROEQR.js +36 -0
  87. package/dist/bundle/{instructions-NZGJ4FW5.js → instructions-2VECIDXF.js} +1 -1
  88. package/dist/bundle/{mcp-VFIOZDVY.js → mcp-O6ACR2DX.js} +2 -2
  89. package/dist/bundle/mdast-util-from-markdown-R66F4HZA.js +1958 -0
  90. package/dist/bundle/mdast-util-gfm-LN2ELINH.js +2699 -0
  91. package/dist/bundle/meeting-combined-PPUQ3KBR.js +24 -0
  92. package/dist/bundle/meeting-model-ZNMYKMCD.js +26 -0
  93. package/dist/bundle/meeting-semantic-ETN3A4BJ.js +22 -0
  94. package/dist/bundle/micromark-extension-gfm-5X7YT43T.js +1838 -0
  95. package/dist/bundle/{node-RPKPDYQS.js → node-MPEQSFI3.js} +2 -2
  96. package/dist/bundle/{node-sqlite-KH2UUYVO.js → node-sqlite-WA32MYSJ.js} +7 -7
  97. package/dist/bundle/notion.js +13 -13
  98. package/dist/bundle/{oauth-NKAI7TQD.js → oauth-IAFZG3IR.js} +7 -7
  99. package/dist/bundle/{open-WSAEAA2V.js → open-M3JQUC5G.js} +5 -5
  100. package/dist/bundle/{openai-JPVDGHG5.js → openai-HXUEHUSD.js} +30 -28
  101. package/dist/bundle/{process-5ZFVKOQX.js → process-F6TKXWWA.js} +1 -1
  102. package/dist/bundle/{program-M3D56D6T.js → program-Y7JAB6TG.js} +5289 -924
  103. package/dist/bundle/{prompt-FROYQ5LV.js → prompt-IMUQLZD2.js} +5 -5
  104. package/dist/bundle/{recognize-NYCHQMCX.js → recognize-2MZAYHAA.js} +4 -4
  105. package/dist/bundle/{remote-4OERF3Z4.js → remote-OV4LB6VR.js} +10 -10
  106. package/dist/bundle/{rerank-TEGXFUWY.js → rerank-ZIULUS34.js} +7 -7
  107. package/dist/bundle/{schemas-MZNNOEYN.js → schemas-DIVZS6TU.js} +1 -1
  108. package/dist/bundle/{serve-HLYYBAXY.js → serve-YU7QBP6L.js} +9 -9
  109. package/dist/bundle/server-FKQET4ZO.js +71 -0
  110. package/dist/bundle/{server-D5OYNEUW.js → server-LGMNONSB.js} +47 -38
  111. package/dist/bundle/services-5WY4DCPJ.js +581 -0
  112. package/dist/bundle/{sqlite-runtime-H2S5RR2F.js → sqlite-runtime-5MXZDETH.js} +6 -6
  113. package/dist/bundle/{state-OPOXCDZL.js → state-LWMZH2KI.js} +6 -6
  114. package/dist/bundle/{store-NHMXEJPD.js → store-EPZYV4VW.js} +17 -13
  115. package/dist/bundle/{store-Y3KRLCJ7.js → store-QE6FEIZD.js} +25 -20
  116. package/dist/bundle/store-maintenance-command-ZUUUFCHL.js +62 -0
  117. package/dist/commands/documents.d.ts +2 -1
  118. package/dist/commands/documents.d.ts.map +1 -1
  119. package/dist/commands/documents.js +2 -2
  120. package/dist/commands/documents.js.map +1 -1
  121. package/dist/commands/library.d.ts +10 -0
  122. package/dist/commands/library.d.ts.map +1 -0
  123. package/dist/commands/library.js +468 -0
  124. package/dist/commands/library.js.map +1 -0
  125. package/dist/commands/session.d.ts.map +1 -1
  126. package/dist/commands/session.js +4 -3
  127. package/dist/commands/session.js.map +1 -1
  128. package/dist/context.d.ts +5 -0
  129. package/dist/context.d.ts.map +1 -1
  130. package/dist/context.js +12 -3
  131. package/dist/context.js.map +1 -1
  132. package/dist/identity.d.ts.map +1 -1
  133. package/dist/identity.js +1 -0
  134. package/dist/identity.js.map +1 -1
  135. package/dist/knowledge.d.ts +27 -0
  136. package/dist/knowledge.d.ts.map +1 -0
  137. package/dist/knowledge.js +87 -0
  138. package/dist/knowledge.js.map +1 -0
  139. package/dist/library.d.ts +44 -0
  140. package/dist/library.d.ts.map +1 -0
  141. package/dist/library.js +149 -0
  142. package/dist/library.js.map +1 -0
  143. package/dist/notion/client.d.ts +4 -1
  144. package/dist/notion/client.d.ts.map +1 -1
  145. package/dist/notion/client.js +5 -2
  146. package/dist/notion/client.js.map +1 -1
  147. package/dist/notion/errors.d.ts.map +1 -1
  148. package/dist/notion/errors.js +26 -1
  149. package/dist/notion/errors.js.map +1 -1
  150. package/dist/notion/reads.d.ts +4 -0
  151. package/dist/notion/reads.d.ts.map +1 -1
  152. package/dist/program.js +2 -2
  153. package/dist/program.js.map +1 -1
  154. package/dist/sync/cursor.d.ts +81 -0
  155. package/dist/sync/cursor.d.ts.map +1 -1
  156. package/dist/sync/cursor.js +63 -2
  157. package/dist/sync/cursor.js.map +1 -1
  158. package/dist/sync/files.d.ts +77 -0
  159. package/dist/sync/files.d.ts.map +1 -0
  160. package/dist/sync/files.js +12 -0
  161. package/dist/sync/files.js.map +1 -0
  162. package/dist/sync/markdown.d.ts +4 -1
  163. package/dist/sync/markdown.d.ts.map +1 -1
  164. package/dist/sync/markdown.js +8 -6
  165. package/dist/sync/markdown.js.map +1 -1
  166. package/dist/sync/source.d.ts +6 -59
  167. package/dist/sync/source.d.ts.map +1 -1
  168. package/dist/sync/source.js +616 -255
  169. package/dist/sync/source.js.map +1 -1
  170. package/dist/version.d.ts +1 -1
  171. package/dist/version.js +1 -1
  172. package/package.json +3 -3
  173. package/skills/notion-cli/SKILL.md +12 -1
  174. package/dist/bundle/command-contract-6G5DC2FN.js +0 -35
  175. package/dist/bundle/decode-7XOFRAAT.js +0 -163
  176. package/dist/bundle/first-screen-JZPJND7J.js +0 -33
  177. package/dist/bundle/server-LWZGVMNW.js +0 -62
  178. package/dist/bundle/store-maintenance-command-D4W7WSLQ.js +0 -53
  179. package/dist/commands/comments.d.ts +0 -3
  180. package/dist/commands/comments.d.ts.map +0 -1
  181. package/dist/commands/comments.js +0 -114
  182. package/dist/commands/comments.js.map +0 -1
  183. package/dist/sample/comments.d.ts +0 -61
  184. package/dist/sample/comments.d.ts.map +0 -1
  185. package/dist/sample/comments.js +0 -39
  186. package/dist/sample/comments.js.map +0 -1
  187. package/dist/sample/records.d.ts +0 -16
  188. package/dist/sample/records.d.ts.map +0 -1
  189. package/dist/sample/records.js +0 -22
  190. package/dist/sample/records.js.map +0 -1
  191. package/dist/sample/transport.d.ts +0 -42
  192. package/dist/sample/transport.d.ts.map +0 -1
  193. package/dist/sample/transport.js +0 -153
  194. package/dist/sample/transport.js.map +0 -1
  195. /package/dist/bundle/{chunk-ZI3YTXSF.js → chunk-VKE77B3F.js} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  isoTime,
8
8
  parseRegistry,
9
9
  text
10
- } from "./chunk-WM7663C2.js";
10
+ } from "./chunk-4IPURN72.js";
11
11
  import {
12
12
  array,
13
13
  getDotPath,
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  CliError,
27
27
  visibleControls
28
- } from "./chunk-F6MLJ3V5.js";
28
+ } from "./chunk-5RDNBG7D.js";
29
29
  import {
30
30
  __commonJS,
31
31
  __name,
@@ -1898,7 +1898,7 @@ var require_cli_table3 = __commonJS({
1898
1898
  }
1899
1899
  });
1900
1900
 
1901
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
1901
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
1902
1902
  import { realpathSync } from "node:fs";
1903
1903
  import { homedir, userInfo } from "node:os";
1904
1904
  import { join, posix, win32 } from "node:path";
@@ -1972,7 +1972,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
1972
1972
  var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
1973
1973
  var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
1974
1974
 
1975
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
1975
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
1976
1976
  var DEFAULT_RETRY = {
1977
1977
  retries: 1,
1978
1978
  baseDelayMs: 250,
@@ -1984,7 +1984,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
1984
1984
  return Math.round(random() * ceiling);
1985
1985
  }, "backoffMs");
1986
1986
 
1987
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
1987
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
1988
1988
  var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
1989
1989
  var validate = /* @__PURE__ */ __name((paths) => {
1990
1990
  if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
@@ -1996,7 +1996,7 @@ var fieldsOf = /* @__PURE__ */ __name((value) => {
1996
1996
  return [...new Set(paths)];
1997
1997
  }, "fieldsOf");
1998
1998
  var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "object");
1999
- var retained = /* @__PURE__ */ new Set(["operation_id", "page", "next", "missing", "meta", "coverage"]);
1999
+ var retained = /* @__PURE__ */ new Set(["operation_id", "page", "next", "missing", "meta", "coverage", "untrusted"]);
2000
2000
  var itemPaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("items.") ? path.slice(6) : path), "itemPaths");
2001
2001
  var onePaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("item.") ? path.slice(5) : path), "onePaths");
2002
2002
  var select = /* @__PURE__ */ __name((value, paths) => {
@@ -2049,7 +2049,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
2049
2049
  return project(value, fields);
2050
2050
  }, "projectFields");
2051
2051
 
2052
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
2052
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
2053
2053
  var BATCH_LIMITS = Object.freeze({
2054
2054
  requests: 32,
2055
2055
  input_bytes: 262144,
@@ -2176,7 +2176,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
2176
2176
  };
2177
2177
  }, "runBatch");
2178
2178
 
2179
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
2179
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
2180
2180
  import { randomBytes } from "node:crypto";
2181
2181
  import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
2182
2182
  import { dirname, join as join2 } from "node:path";
@@ -2220,16 +2220,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
2220
2220
  `, 384);
2221
2221
  }, "saveConfigFile");
2222
2222
 
2223
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
2223
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
2224
2224
  var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
2225
2225
  var baseConstantsSchema = object({});
2226
2226
  var LayerSchema = record(string(), unknown());
2227
2227
 
2228
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2228
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2229
2229
  import { readFileSync as readFileSync2 } from "node:fs";
2230
2230
  import { join as join3, resolve } from "node:path";
2231
2231
 
2232
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
2232
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
2233
2233
  import { createRequire } from "node:module";
2234
2234
  var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
2235
2235
  var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
@@ -2255,7 +2255,7 @@ var systemKeyring = {
2255
2255
  delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
2256
2256
  };
2257
2257
 
2258
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2258
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2259
2259
  var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
2260
2260
  var warnedRuns = /* @__PURE__ */ new WeakSet();
2261
2261
  var Credentials = class {
@@ -2390,7 +2390,7 @@ var Credentials = class {
2390
2390
  }
2391
2391
  };
2392
2392
 
2393
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
2393
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
2394
2394
  var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
2395
2395
  var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
2396
2396
  if (signal?.aborted) {
@@ -2405,10 +2405,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
2405
2405
  }), "realSleep");
2406
2406
  var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
2407
2407
 
2408
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2408
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2409
2409
  import { appendFileSync } from "node:fs";
2410
2410
 
2411
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
2411
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
2412
2412
  var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
2413
2413
  var logRecordSchema = strictObject({
2414
2414
  time: isoTime,
@@ -2486,7 +2486,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
2486
2486
  return traceId;
2487
2487
  }, "traceIdOf");
2488
2488
 
2489
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2489
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2490
2490
  var REDACTED_FIELDS = [
2491
2491
  "authorization",
2492
2492
  "Authorization",
@@ -2580,7 +2580,7 @@ var silent = {
2580
2580
  }, "error")
2581
2581
  };
2582
2582
 
2583
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
2583
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
2584
2584
  var import_cli_table3 = __toESM(require_cli_table3(), 1);
2585
2585
  import { styleText } from "node:util";
2586
2586
  var renderPretty = /* @__PURE__ */ __name((value, options) => {
@@ -2654,7 +2654,7 @@ var BORDERLESS = {
2654
2654
  middle: ""
2655
2655
  };
2656
2656
 
2657
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
2657
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
2658
2658
  var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
2659
2659
  if (signal?.aborted)
2660
2660
  return Promise.reject(signal.reason);
@@ -2682,7 +2682,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
2682
2682
  });
2683
2683
  }, "waitForDrain");
2684
2684
 
2685
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
2685
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
2686
2686
  var processStreams = {
2687
2687
  drain: /* @__PURE__ */ __name(async (signal) => {
2688
2688
  await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
@@ -2711,7 +2711,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
2711
2711
  };
2712
2712
  }, "captureStreams");
2713
2713
 
2714
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
2714
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
2715
2715
  var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
2716
2716
  const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
2717
2717
  const say = /* @__PURE__ */ __name((symbol) => (message) => {
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-7FII4DCE.js";
32
+ } from "./chunk-5NFK5EM2.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")
@@ -629,7 +629,7 @@ var passedOn = /* @__PURE__ */ __name((value, tool) => {
629
629
  };
630
630
  }, "passedOn");
631
631
 
632
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
632
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
633
633
  import { PassThrough, Writable } from "node:stream";
634
634
  var lineReader = /* @__PURE__ */ __name((onMessage) => {
635
635
  let rest = "";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_8be6aa3a41727a76ce87cf0d5a7bd659/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -28,12 +28,12 @@ import {
28
28
  errorCodes,
29
29
  isCliError,
30
30
  visibleControls
31
- } from "./chunk-F6MLJ3V5.js";
31
+ } from "./chunk-5RDNBG7D.js";
32
32
  import {
33
33
  __name
34
34
  } from "./chunk-ZVVMGPBJ.js";
35
35
 
36
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
36
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
37
37
  var EXIT_CODES = {
38
38
  validation_error: 2,
39
39
  configuration_error: 3,
@@ -54,7 +54,7 @@ var EXIT_CODES = {
54
54
  var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
55
55
  var GENERIC_FAILURE = 1;
56
56
 
57
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
57
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
58
58
  var EFFECT_LEVELS = ["none", "read", "write"];
59
59
  var effectsSchema = strictObject({
60
60
  remote: picklist(EFFECT_LEVELS),
@@ -691,7 +691,7 @@ function toStandardJsonSchema(schema) {
691
691
  }
692
692
  __name(toStandardJsonSchema, "toStandardJsonSchema");
693
693
 
694
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
694
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
695
695
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
696
696
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
697
697
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -733,7 +733,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
733
733
  return String(value);
734
734
  }), "fill");
735
735
 
736
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
736
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
737
737
  var MAX_NEXT_STEPS = 2;
738
738
  var COMPACT_FLAG = "--compact";
739
739
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
@@ -860,7 +860,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
860
860
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
861
861
  ].join("\n"), "jsonlOf");
862
862
 
863
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
863
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
864
864
  var CRASH_CODE = "internal_error";
865
865
  var CRASH_REASON = "command.crashed";
866
866
  var errorObjectSchema = strictObject({
@@ -953,7 +953,7 @@ var BASE_REASONS = defineReasons([
953
953
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
954
954
  ]);
955
955
 
956
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
956
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
957
957
  var SAME_COMMAND = "*";
958
958
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
959
959
  var stepSchema = union([
@@ -1032,7 +1032,7 @@ var STEPS = defineSteps([
1032
1032
  }
1033
1033
  ]);
1034
1034
 
1035
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
1035
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
1036
1036
  var recognise = /* @__PURE__ */ __name((failure) => {
1037
1037
  if (isCliError(failure))
1038
1038
  return failure;
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine
5
- } from "./chunk-F6MLJ3V5.js";
5
+ } from "./chunk-5RDNBG7D.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
10
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
11
11
  var FIRST_PARTY_TOOLS = [
12
12
  { name: "tg", package: "@wirecat/tg-cli" },
13
13
  { name: "max", package: "@wirecat/max-cli" },
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
31
31
  var DESCRIBE_MAX_BYTES = 64 * 1024;
32
32
  var DISPATCH_FLAG = "--wcat-dispatch";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
34
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
35
35
  var DESCRIBE_FORMAT = 1;
36
36
  var DESCRIBE_MANIFEST_FORMAT = 2;
37
37
  var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
74
74
  };
75
75
  }, "parseDescribe");
76
76
 
77
- // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
77
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
78
78
  import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
79
79
  import { join } from "node:path";
80
80
  var SHIM_FORMAT = 2;