@wirecat/notion-cli 0.5.0 → 0.7.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 (241) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +5 -0
  3. package/contracts/wirecat.json +55 -2
  4. package/dist/bin/notion.js +2 -2
  5. package/dist/bundle/agent-AILW4JPO.js +42 -0
  6. package/dist/bundle/{all-profiles-V37KCXH3.js → all-profiles-CKOACXTW.js} +64 -21
  7. package/dist/bundle/{anthropic-Q4S3BYXD.js → anthropic-DWBBVTU3.js} +6 -6
  8. package/dist/bundle/{app-server-43SR3ACI.js → app-server-BHFYNCDE.js} +86 -65
  9. package/dist/bundle/{bun-M3J2QTR3.js → bun-ICK2XT7J.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-EJ3W2PSV.js → bun-sqlite-LU5V5Y4A.js} +7 -7
  11. package/dist/bundle/{chunk-KHWOLBHQ.js → chunk-2OZVCNU5.js} +2 -2
  12. package/dist/bundle/{chunk-O5YB7FQD.js → chunk-2RNJ2JP3.js} +4 -4
  13. package/dist/bundle/{chunk-TP7GDWVF.js → chunk-364ET7LV.js} +1 -1
  14. package/dist/bundle/{chunk-TDNURSU6.js → chunk-3AKMIKND.js} +19 -19
  15. package/dist/bundle/{chunk-O3DYRCIT.js → chunk-3DGHBXH2.js} +1 -1
  16. package/dist/bundle/chunk-3KOJNZH3.js +80 -0
  17. package/dist/bundle/{chunk-DSP36YHQ.js → chunk-3T3OAYL4.js} +2 -2
  18. package/dist/bundle/{chunk-W7HM2VGO.js → chunk-3YXYA6HB.js} +1 -1
  19. package/dist/bundle/chunk-3ZSUVFR7.js +398 -0
  20. package/dist/bundle/{chunk-GCZ6MAEN.js → chunk-46JBCXLI.js} +43 -64
  21. package/dist/bundle/{chunk-DB2XKHI4.js → chunk-4FHKSSXQ.js} +2 -2
  22. package/dist/bundle/chunk-4HP6KGBI.js +32 -0
  23. package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
  24. package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
  25. package/dist/bundle/{chunk-BNEE35WD.js → chunk-5NFIUY2P.js} +4 -4
  26. package/dist/bundle/{chunk-E5WLE7BM.js → chunk-63SW4UXG.js} +3 -4
  27. package/dist/bundle/{chunk-NHHJHXMQ.js → chunk-64IK7JFO.js} +2 -2
  28. package/dist/bundle/{chunk-HZRQLAHO.js → chunk-6MQSBWWF.js} +1 -1
  29. package/dist/bundle/{chunk-2FJNMADN.js → chunk-6UZ5D2WP.js} +10 -10
  30. package/dist/bundle/chunk-6VPC5Z56.js +2145 -0
  31. package/dist/bundle/chunk-7COTHS6G.js +388 -0
  32. package/dist/bundle/{chunk-TOSCB4SO.js → chunk-A3RJ6FD5.js} +29 -10
  33. package/dist/bundle/chunk-ADCAWRRX.js +2366 -0
  34. package/dist/bundle/{chunk-PPHBRESD.js → chunk-ALAPDLCP.js} +2 -2
  35. package/dist/bundle/{chunk-ONZVPE24.js → chunk-B6DJQBZI.js} +6 -6
  36. package/dist/bundle/{chunk-N2XADGL4.js → chunk-BFCRGLOF.js} +4 -4
  37. package/dist/bundle/{chunk-5P5TXU2K.js → chunk-BFHPT67P.js} +9581 -10764
  38. package/dist/bundle/{chunk-NA6QLHBZ.js → chunk-BQ6CXCLP.js} +10 -8
  39. package/dist/bundle/{chunk-JCKWQGCD.js → chunk-BXXHUO7Y.js} +110 -862
  40. package/dist/bundle/chunk-DCSPCOPB.js +221 -0
  41. package/dist/bundle/chunk-DQSOYH6N.js +20 -0
  42. package/dist/bundle/chunk-ECYOTDJM.js +14 -0
  43. package/dist/bundle/chunk-EMIJVLOA.js +30 -0
  44. package/dist/bundle/{chunk-DFCHHR5M.js → chunk-EUF5JNPG.js} +1 -1
  45. package/dist/bundle/{chunk-RIGE67FR.js → chunk-EWXMIKZN.js} +43 -33
  46. package/dist/bundle/chunk-F4BX7TH2.js +15 -0
  47. package/dist/bundle/{chunk-QYXWRKNA.js → chunk-FHYV4VWY.js} +16 -9
  48. package/dist/bundle/{chunk-WE4UFASG.js → chunk-FNESLLZS.js} +29 -1
  49. package/dist/bundle/chunk-FO3XY2Y2.js +108 -0
  50. package/dist/bundle/chunk-HJDQTM3T.js +353 -0
  51. package/dist/bundle/chunk-HOO53OYK.js +561 -0
  52. package/dist/bundle/{chunk-KHZ2RGXI.js → chunk-HSVKU4OJ.js} +153 -572
  53. package/dist/bundle/{chunk-CDK5E45T.js → chunk-IEY7KS6Q.js} +2 -100
  54. package/dist/bundle/{chunk-RJMQGG3P.js → chunk-ITW26OBI.js} +65 -49
  55. package/dist/bundle/{chunk-FBZI4Z3Z.js → chunk-ITWINZ6R.js} +13 -26
  56. package/dist/bundle/{chunk-J3NKZ6MO.js → chunk-IYZWHCZJ.js} +155 -435
  57. package/dist/bundle/{chunk-W53EJOFQ.js → chunk-J3DZVB67.js} +1 -1
  58. package/dist/bundle/{chunk-FKA7DOCK.js → chunk-JEZJFQQW.js} +1 -1
  59. package/dist/bundle/chunk-JPGN473W.js +50 -0
  60. package/dist/bundle/{chunk-NTG657MI.js → chunk-JVRBW5LH.js} +7 -64
  61. package/dist/bundle/chunk-KBY42GKW.js +785 -0
  62. package/dist/bundle/{chunk-DO7BLXO3.js → chunk-KWBLDSRV.js} +16 -3
  63. package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
  64. package/dist/bundle/{chunk-PWRRDDMZ.js → chunk-LBRTLZHI.js} +249 -555
  65. package/dist/bundle/{chunk-B3FSLAIU.js → chunk-LEPPRULN.js} +20 -6
  66. package/dist/bundle/{chunk-WPP76PSX.js → chunk-LVAFTQ45.js} +32 -24
  67. package/dist/bundle/{chunk-PAW6RRCW.js → chunk-MB4HXDBT.js} +8 -210
  68. package/dist/bundle/chunk-MEYYH47C.js +25 -0
  69. package/dist/bundle/{chunk-UZSBGECU.js → chunk-N3NJPHZB.js} +1 -65
  70. package/dist/bundle/{chunk-BWLBSQSU.js → chunk-NCCRLAAI.js} +4 -4
  71. package/dist/bundle/chunk-NMQRSEZM.js +37 -0
  72. package/dist/bundle/{chunk-H3E2PZ5Y.js → chunk-NV7NNL5T.js} +7 -7
  73. package/dist/bundle/chunk-OALFRUMI.js +67 -0
  74. package/dist/bundle/{chunk-CWXOXIWS.js → chunk-OCGNOJYD.js} +1 -1
  75. package/dist/bundle/chunk-OFMCU3BH.js +72 -0
  76. package/dist/bundle/{chunk-MGUEZYFA.js → chunk-OLAGFJDM.js} +13 -2143
  77. package/dist/bundle/{chunk-E2AFUJDR.js → chunk-OP2BH55P.js} +3 -3
  78. package/dist/bundle/{chunk-P5BHKKBI.js → chunk-OS4WPXPZ.js} +4 -4
  79. package/dist/bundle/{chunk-XUPN2EHR.js → chunk-OW5HW3TD.js} +23 -7
  80. package/dist/bundle/{chunk-ECC2UX7X.js → chunk-PDVXG3T3.js} +6 -6
  81. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  82. package/dist/bundle/{chunk-G2MJYXZG.js → chunk-PSMRUOII.js} +4 -4
  83. package/dist/bundle/{chunk-DBEQI5YM.js → chunk-QK52ARAU.js} +3 -3
  84. package/dist/bundle/{chunk-QWYMXFKM.js → chunk-QMNEDK7Z.js} +3 -3
  85. package/dist/bundle/chunk-R4JV3VLU.js +714 -0
  86. package/dist/bundle/{chunk-C32AKHTY.js → chunk-REOBWSGV.js} +35 -12
  87. package/dist/bundle/{chunk-X2M6NIQG.js → chunk-RNVYNPXT.js} +1 -1
  88. package/dist/bundle/{chunk-HHVFIXDO.js → chunk-RXGX2CZX.js} +399 -399
  89. package/dist/bundle/{chunk-W5JZMXGW.js → chunk-S35UJBFZ.js} +75 -75
  90. package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
  91. package/dist/bundle/chunk-S5P7THM5.js +72 -0
  92. package/dist/bundle/{chunk-NE43YXKL.js → chunk-SRVTGI3M.js} +3 -3
  93. package/dist/bundle/chunk-TRYYWV7J.js +291 -0
  94. package/dist/bundle/chunk-TWY543BS.js +39 -0
  95. package/dist/bundle/{chunk-KFVDL2QS.js → chunk-UC7JLE6J.js} +1 -89
  96. package/dist/bundle/{chunk-3RL2MIUF.js → chunk-UO4O6WQ4.js} +8 -8
  97. package/dist/bundle/chunk-UPL474OW.js +94 -0
  98. package/dist/bundle/chunk-UQVUXG7H.js +594 -0
  99. package/dist/bundle/chunk-UYEDQGMI.js +340 -0
  100. package/dist/bundle/chunk-VNWF4I7E.js +34 -0
  101. package/dist/bundle/{chunk-FPUGMDJV.js → chunk-VRBEYOJL.js} +1 -1
  102. package/dist/bundle/{chunk-BBSFQ3PU.js → chunk-VXKD533R.js} +1646 -1337
  103. package/dist/bundle/{chunk-ECEZOLOD.js → chunk-VYZ2J7DT.js} +4 -4
  104. package/dist/bundle/{chunk-TD2JZ25O.js → chunk-WJFQMOVM.js} +113 -80
  105. package/dist/bundle/{chunk-MNRMKWCN.js → chunk-WUNEJRLJ.js} +6 -6
  106. package/dist/bundle/chunk-WVN2KTNS.js +52 -0
  107. package/dist/bundle/{chunk-GTY6N5KZ.js → chunk-X5LUHN62.js} +2 -2
  108. package/dist/bundle/{chunk-LBYGJKXW.js → chunk-X737FHZP.js} +4 -4
  109. package/dist/bundle/chunk-YHWFF6DN.js +39 -0
  110. package/dist/bundle/chunk-YSF5JBRA.js +36 -0
  111. package/dist/bundle/{chunk-QIG55MZH.js → chunk-ZGUUP2T3.js} +12 -12
  112. package/dist/bundle/{chunk-AT5I34AN.js → chunk-ZMKAI3F3.js} +3 -3
  113. package/dist/bundle/command-contract-C2CF4QAH.js +41 -0
  114. package/dist/bundle/{command-server-entry-LJ627ZUA.js → command-server-entry-F3B2KSPO.js} +30 -27
  115. package/dist/bundle/{decode-PX2LZ5Y2.js → decode-FDHFF7GC.js} +6 -6
  116. package/dist/bundle/{definitions-M3U4UYHN.js → definitions-MB65223J.js} +72 -18
  117. package/dist/bundle/{dispatch-KOISQ5QJ.js → dispatch-IXKG5Z5Y.js} +8 -8
  118. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  119. package/dist/bundle/{echarts-FVTUDXDU.js → echarts-PGJPVPA4.js} +2 -2
  120. package/dist/bundle/{embed-CCSDK43I.js → embed-U6X7CNNK.js} +7 -7
  121. package/dist/bundle/{embedder-VHI4DHB7.js → embedder-3ROL6ROQ.js} +10 -10
  122. package/dist/bundle/{failure-FZ6VYKEQ.js → failure-IYMRXM2X.js} +3 -3
  123. package/dist/bundle/first-run-PNVNHGR7.js +29 -0
  124. package/dist/bundle/first-screen-DEDD64YH.js +41 -0
  125. package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
  126. package/dist/bundle/hast-util-to-html-IIFHILP5.js +998 -0
  127. package/dist/bundle/hast-util-to-mdast-3CSMIWK2.js +2272 -0
  128. package/dist/bundle/{instructions-HET7BCYK.js → instructions-MJQWRI2D.js} +1 -1
  129. package/dist/bundle/{mcp-RGNRW77S.js → mcp-JNHOSK4L.js} +2 -2
  130. package/dist/bundle/{mdast-util-from-markdown-R66F4HZA.js → mdast-util-from-markdown-XCR5KW5S.js} +138 -195
  131. package/dist/bundle/{mdast-util-gfm-LN2ELINH.js → mdast-util-gfm-JO7PHUIB.js} +28 -357
  132. package/dist/bundle/mdast-util-to-hast-AYJV7KAE.js +879 -0
  133. package/dist/bundle/mdast-util-to-markdown-DOXGHRI7.js +1854 -0
  134. package/dist/bundle/meeting-combined-HEC25QPY.js +25 -0
  135. package/dist/bundle/meeting-model-R7QPDNZZ.js +27 -0
  136. package/dist/bundle/{meeting-semantic-UD26T37N.js → meeting-semantic-7WPLMBNT.js} +7 -7
  137. package/dist/bundle/{micromark-extension-gfm-5X7YT43T.js → micromark-extension-gfm-PQ7DWZM7.js} +12 -78
  138. package/dist/bundle/{node-CXZIFHZC.js → node-3UXNV3CD.js} +2 -2
  139. package/dist/bundle/{node-sqlite-ME7KMORI.js → node-sqlite-ULWDWM3I.js} +8 -8
  140. package/dist/bundle/notes-search-7PE3E3C7.js +64 -0
  141. package/dist/bundle/notion.js +14 -14
  142. package/dist/bundle/oauth-LNUZMA72.js +20 -0
  143. package/dist/bundle/{open-HA6D3SXR.js → open-HGHC35M4.js} +6 -6
  144. package/dist/bundle/{openai-H5AJPZBX.js → openai-ISSP57MV.js} +21 -18
  145. package/dist/bundle/{process-5RUXWGYS.js → process-PB2WCOR2.js} +1 -1
  146. package/dist/bundle/{program-F3NBTZ7J.js → program-GASBJRMG.js} +7574 -7047
  147. package/dist/bundle/{prompt-6XSUOLHK.js → prompt-3VGQVX2B.js} +6 -6
  148. package/dist/bundle/{recognize-2Y7AUVGG.js → recognize-7Q2P3NME.js} +5 -5
  149. package/dist/bundle/{remote-KCABPXQ3.js → remote-BBAWKVIT.js} +12 -11
  150. package/dist/bundle/{rerank-BTN7LUVA.js → rerank-H4PUS4HV.js} +8 -8
  151. package/dist/bundle/{schemas-VVLTLMXS.js → schemas-TTVUADHT.js} +39 -60
  152. package/dist/bundle/{serve-CYEMVRFC.js → serve-FZNSKY7R.js} +11 -11
  153. package/dist/bundle/{server-WFIICGMI.js → server-BRRNDW6L.js} +78 -56
  154. package/dist/bundle/server-CQJ4LKAZ.js +90 -0
  155. package/dist/bundle/{services-L4W6ZWDG.js → services-PEU557KZ.js} +103 -88
  156. package/dist/bundle/{sqlite-runtime-IKMYLRQC.js → sqlite-runtime-4IZJ4YUM.js} +7 -7
  157. package/dist/bundle/{state-LMUP636P.js → state-MX3JVT5Q.js} +7 -7
  158. package/dist/bundle/{store-W2JC2JP4.js → store-JUT34REM.js} +24 -20
  159. package/dist/bundle/{store-A2QZFBOX.js → store-PP4BPADZ.js} +30 -18
  160. package/dist/bundle/store-maintenance-command-GRFTJBSB.js +77 -0
  161. package/dist/bundle/surface-FPWES3NY.js +76 -0
  162. package/dist/commands/account.d.ts +3 -0
  163. package/dist/commands/account.d.ts.map +1 -0
  164. package/dist/commands/account.js +22 -0
  165. package/dist/commands/account.js.map +1 -0
  166. package/dist/commands/api.d.ts +7 -2
  167. package/dist/commands/api.d.ts.map +1 -1
  168. package/dist/commands/api.js +19 -141
  169. package/dist/commands/api.js.map +1 -1
  170. package/dist/commands/library.d.ts.map +1 -1
  171. package/dist/commands/library.js +14 -6
  172. package/dist/commands/library.js.map +1 -1
  173. package/dist/config.d.ts +11 -13
  174. package/dist/config.d.ts.map +1 -1
  175. package/dist/config.js +63 -54
  176. package/dist/config.js.map +1 -1
  177. package/dist/context.d.ts +11 -3
  178. package/dist/context.d.ts.map +1 -1
  179. package/dist/context.js +20 -7
  180. package/dist/context.js.map +1 -1
  181. package/dist/generated/definitions.d.ts.map +1 -1
  182. package/dist/generated/definitions.js +72 -18
  183. package/dist/generated/definitions.js.map +1 -1
  184. package/dist/generated/manifest.d.ts.map +1 -1
  185. package/dist/generated/manifest.js +49 -0
  186. package/dist/generated/manifest.js.map +1 -1
  187. package/dist/generated/schemas.d.ts.map +1 -1
  188. package/dist/generated/schemas.js +32 -32
  189. package/dist/generated/schemas.js.map +1 -1
  190. package/dist/generated/types.d.ts +125 -25
  191. package/dist/generated/types.d.ts.map +1 -1
  192. package/dist/generated/wirecat-config.d.ts +13 -0
  193. package/dist/generated/wirecat-config.d.ts.map +1 -0
  194. package/dist/generated/wirecat-config.js +82 -0
  195. package/dist/generated/wirecat-config.js.map +1 -0
  196. package/dist/library.d.ts +3 -0
  197. package/dist/library.d.ts.map +1 -1
  198. package/dist/library.js +11 -1
  199. package/dist/library.js.map +1 -1
  200. package/dist/notion/client.d.ts +2 -6
  201. package/dist/notion/client.d.ts.map +1 -1
  202. package/dist/notion/client.js +7 -8
  203. package/dist/notion/client.js.map +1 -1
  204. package/dist/notion/errors.d.ts +5 -0
  205. package/dist/notion/errors.d.ts.map +1 -1
  206. package/dist/notion/errors.js +21 -1
  207. package/dist/notion/errors.js.map +1 -1
  208. package/dist/notion/port.d.ts +10 -0
  209. package/dist/notion/port.d.ts.map +1 -1
  210. package/dist/notion/port.js +19 -0
  211. package/dist/notion/port.js.map +1 -1
  212. package/dist/program.d.ts.map +1 -1
  213. package/dist/program.js +2 -0
  214. package/dist/program.js.map +1 -1
  215. package/dist/sync/files.d.ts +12 -0
  216. package/dist/sync/files.d.ts.map +1 -1
  217. package/dist/sync/files.js.map +1 -1
  218. package/dist/sync/from-config.d.ts +13 -0
  219. package/dist/sync/from-config.d.ts.map +1 -0
  220. package/dist/sync/from-config.js +32 -0
  221. package/dist/sync/from-config.js.map +1 -0
  222. package/dist/sync/source.d.ts +2 -1
  223. package/dist/sync/source.d.ts.map +1 -1
  224. package/dist/sync/source.js +48 -48
  225. package/dist/sync/source.js.map +1 -1
  226. package/dist/sync/users.d.ts +4 -1
  227. package/dist/sync/users.d.ts.map +1 -1
  228. package/dist/sync/users.js +3 -1
  229. package/dist/sync/users.js.map +1 -1
  230. package/dist/version.d.ts +1 -1
  231. package/dist/version.js +1 -1
  232. package/package.json +8 -8
  233. package/dist/bundle/chunk-6EOZTUHT.js +0 -726
  234. package/dist/bundle/command-contract-TVRFW2IX.js +0 -38
  235. package/dist/bundle/first-run-7JKE5AHN.js +0 -29
  236. package/dist/bundle/first-screen-ZROHOEYJ.js +0 -38
  237. package/dist/bundle/meeting-combined-SSTOJUIJ.js +0 -24
  238. package/dist/bundle/meeting-model-K7TPS4S5.js +0 -26
  239. package/dist/bundle/oauth-XBTROXHB.js +0 -20
  240. package/dist/bundle/server-UC2FNNXX.js +0 -72
  241. package/dist/bundle/store-maintenance-command-LRGQJPSZ.js +0 -63
package/CHANGELOG.md CHANGED
@@ -2,6 +2,53 @@
2
2
 
3
3
  Notable changes to `@wirecat/notion-cli`. One section per version, newest first.
4
4
 
5
+ ## 0.7.0 — 21.11.2026
6
+
7
+ ### Added
8
+
9
+ - **`wirecat.config.ts` describes the sync's source.** The config names the account, every Notion call the sync
10
+ sends, the API version and both paces. cli-core reads the calls through the same request path as `notion api`.
11
+ Before, these were code over Notion's SDK. A page synced before authors were saved is now read again by cli-core's
12
+ engine, at most 50 a sync, not through a marked version. The same pages are read, with the same limits. One error
13
+ changed: a token whose answer names no workspace now fails with cli-core's `source.no-account`, not
14
+ `notion.no-workspace`. Why: attio and linear already build their sources from a config, and a new documents CLI can
15
+ now do the same ([docs/dev/SYNC.md](docs/dev/SYNC.md#where-the-requests-come-from)).
16
+
17
+ ## 0.6.0 — 19.11.2026
18
+
19
+ ### Added
20
+
21
+ - **`notion <profile> account remove` signs a profile out and forgets it on this computer.** It forgets the Notion
22
+ token, the profile's settings, its chosen pages and its sync checkpoint. `--keep-data` leaves the copied pages in the
23
+ store, where search still finds them; `--delete-data` deletes them. It asks first, or takes `--yes`; `--dry-run` lists
24
+ what it would remove. Why: WireCat Desktop removes an account with this command, and notion could only sign out with
25
+ `session end`. The token itself stays valid at Notion: revoke it on Notion's integrations page.
26
+
27
+ ### Changed — may break callers
28
+
29
+ - **The MCP Registry entry asks which profiles to serve.** It started `mcp serve --profiles all`, so a client that
30
+ installed the server from the registry reached every account on the computer without the owner choosing. Now
31
+ `--profiles` is a required argument with the example `personal`: the client asks for one profile, a
32
+ comma-separated list or `all`. Why: a CLI never picks an account for the owner
33
+ ([WC-MCP-9](https://github.com/WireCatLabs/cli-base/blob/main/docs/standards/mcp.md#wc-mcp-9--a-server-serves-the-profiles-it-is-told-with-one-connection-for-each)). Watch for: a client set up from the old entry keeps `--profiles all` until it is set up again; a
34
+ server added by hand or with `mcp config` does not change.
35
+
36
+ ### Fixed
37
+
38
+ - **Pages synced before 0.5.0 get their authors and last editors as people without a rescan.** A plain `sync` now
39
+ reads such pages again, 50 a run, and links them to the people who wrote and last edited them. It also does this
40
+ for pages read before the connection could read email addresses, once a sync has seen that it can. It reads no
41
+ other page again. Before, a page got its people only once someone edited it.
42
+ - **A first sync reads each Notion page once instead of three times.** The walk asked Notion for each page's kind,
43
+ and every page read asked again for its parent page. notion now keeps what one run has already seen, also from the
44
+ walk and the plan an earlier run saved. A page with 60 pages under it took 182 page requests and now takes 61, which
45
+ counts under Notion's limit of about three requests a second.
46
+ - **`api` is cli-core's shared group, as in attio, linear and hubspot.** The commands, their names and their keys stay
47
+ the same: each write asks or refuses by `api.<operation>`, and a call that deletes, by its method or its body, also
48
+ by `documents.delete`. Which calls delete now comes from the generated manifest, plus four body rules notion keeps
49
+ itself. A fix to the group in cli-core now reaches notion with a version bump.
50
+ - cli-core 0.707.0 (was 0.687.0), cli-base 0.124.0 (was 0.109.0).
51
+
5
52
  ## 0.5.0 — 17.11.2026
6
53
 
7
54
  ### Fixed
package/README.md CHANGED
@@ -3,6 +3,11 @@
3
3
  `notion` reads your Notion pages and databases for you and your AI agent: in the terminal, in scripts and through
4
4
  MCP. It signs in with your own Notion token, kept in your system keyring.
5
5
 
6
+ [Docs](https://wirecat.dev/en/docs/notion) ·
7
+ [Install](https://github.com/WireCatLabs/notion-cli/blob/main/docs/installation.md) ·
8
+ [Usage](https://github.com/WireCatLabs/notion-cli/blob/main/docs/usage.md) ·
9
+ [Discord](https://discord.gg/DebENqbRrJ)
10
+
6
11
  **Status: in development.** It signs in, reads live from Notion, and keeps a copy of your pages on your computer,
7
12
  searchable offline with the rest of WireCat, and creates, changes and deletes pages. Next it searches database rows by
8
13
  their properties, and later keeps a folder of Markdown files in step with a Notion page tree. The order of work is in [docs/dev/DESIGN.md](docs/dev/DESIGN.md).
@@ -71,6 +71,19 @@
71
71
  "local": "read"
72
72
  }
73
73
  },
74
+ {
75
+ "path": [
76
+ "account",
77
+ "remove"
78
+ ],
79
+ "summary": "sign this profile out and forget it, keeping or deleting its data",
80
+ "effects": {
81
+ "remote": "none",
82
+ "local": "write"
83
+ },
84
+ "permission": "account.remove",
85
+ "entity": "account_removal"
86
+ },
74
87
  {
75
88
  "path": [
76
89
  "folders",
@@ -1785,7 +1798,9 @@
1785
1798
  "entities": {
1786
1799
  "selected_folder": {
1787
1800
  "fields": [
1788
- "id"
1801
+ "id",
1802
+ "name",
1803
+ "path"
1789
1804
  ]
1790
1805
  },
1791
1806
  "document": {
@@ -2056,6 +2071,44 @@
2056
2071
  "app": "notion-cli",
2057
2072
  "env": "WCNOTION"
2058
2073
  },
2059
- "settings": null
2074
+ "settings": null,
2075
+ "accountRemove": {
2076
+ "signOut": [
2077
+ "{profile}",
2078
+ "session",
2079
+ "end",
2080
+ "--record",
2081
+ "--json"
2082
+ ],
2083
+ "remove": {
2084
+ "minVersion": "0.0.0",
2085
+ "keepData": [
2086
+ "{profile}",
2087
+ "account",
2088
+ "remove",
2089
+ "--keep-data",
2090
+ "--record",
2091
+ "--json"
2092
+ ],
2093
+ "deleteData": [
2094
+ "{profile}",
2095
+ "account",
2096
+ "remove",
2097
+ "--delete-data",
2098
+ "--record",
2099
+ "--json"
2100
+ ],
2101
+ "dryRun": "--dry-run",
2102
+ "confirm": "--yes"
2103
+ },
2104
+ "removes": [
2105
+ "signIn"
2106
+ ],
2107
+ "keeps": [
2108
+ "settings",
2109
+ "data",
2110
+ "listed"
2111
+ ]
2112
+ }
2060
2113
  }
2061
2114
  }
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.5.0\n")
12
+ process.stdout.write("0.7.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -28,7 +28,7 @@ if (
28
28
  : next(specifier, context),
29
29
  })
30
30
  }
31
- const chunks = ["../bundle/all-profiles-V37KCXH3.js","../bundle/anthropic-Q4S3BYXD.js","../bundle/app-server-43SR3ACI.js","../bundle/bun-M3J2QTR3.js","../bundle/bun-sqlite-EJ3W2PSV.js","../bundle/decode-PX2LZ5Y2.js","../bundle/definitions-M3U4UYHN.js","../bundle/dispatch-KOISQ5QJ.js","../bundle/dist-ILNOLGYN.js","../bundle/echarts-FVTUDXDU.js","../bundle/embed-CCSDK43I.js","../bundle/embedder-VHI4DHB7.js","../bundle/failure-FZ6VYKEQ.js","../bundle/first-screen-ZROHOEYJ.js","../bundle/instructions-HET7BCYK.js","../bundle/mcp-RGNRW77S.js","../bundle/meeting-combined-SSTOJUIJ.js","../bundle/meeting-model-K7TPS4S5.js","../bundle/meeting-semantic-UD26T37N.js","../bundle/node-CXZIFHZC.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-ME7KMORI.js","../bundle/oauth-XBTROXHB.js","../bundle/open-HA6D3SXR.js","../bundle/openai-H5AJPZBX.js","../bundle/process-5RUXWGYS.js","../bundle/program-F3NBTZ7J.js","../bundle/prompt-6XSUOLHK.js","../bundle/recognize-2Y7AUVGG.js","../bundle/remote-KCABPXQ3.js","../bundle/rerank-BTN7LUVA.js","../bundle/schemas-VVLTLMXS.js","../bundle/serve-CYEMVRFC.js","../bundle/server-UC2FNNXX.js","../bundle/server-WFIICGMI.js","../bundle/services-L4W6ZWDG.js","../bundle/sqlite-runtime-IKMYLRQC.js","../bundle/state-LMUP636P.js","../bundle/store-A2QZFBOX.js","../bundle/store-W2JC2JP4.js","../bundle/store-maintenance-command-LRGQJPSZ.js"]
31
+ const chunks = ["../bundle/agent-AILW4JPO.js","../bundle/all-profiles-CKOACXTW.js","../bundle/anthropic-DWBBVTU3.js","../bundle/app-server-BHFYNCDE.js","../bundle/bun-ICK2XT7J.js","../bundle/bun-sqlite-LU5V5Y4A.js","../bundle/decode-FDHFF7GC.js","../bundle/definitions-MB65223J.js","../bundle/dispatch-IXKG5Z5Y.js","../bundle/dist-ILNOLGYN.js","../bundle/dist-PAKDDIBT.js","../bundle/echarts-PGJPVPA4.js","../bundle/embed-U6X7CNNK.js","../bundle/embedder-3ROL6ROQ.js","../bundle/failure-IYMRXM2X.js","../bundle/first-screen-DEDD64YH.js","../bundle/instructions-MJQWRI2D.js","../bundle/mcp-JNHOSK4L.js","../bundle/meeting-combined-HEC25QPY.js","../bundle/meeting-model-R7QPDNZZ.js","../bundle/meeting-semantic-7WPLMBNT.js","../bundle/node-3UXNV3CD.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-ULWDWM3I.js","../bundle/oauth-LNUZMA72.js","../bundle/open-HGHC35M4.js","../bundle/openai-ISSP57MV.js","../bundle/process-PB2WCOR2.js","../bundle/program-GASBJRMG.js","../bundle/prompt-3VGQVX2B.js","../bundle/recognize-7Q2P3NME.js","../bundle/remote-BBAWKVIT.js","../bundle/rerank-H4PUS4HV.js","../bundle/schemas-TTVUADHT.js","../bundle/serve-FZNSKY7R.js","../bundle/server-BRRNDW6L.js","../bundle/server-CQJ4LKAZ.js","../bundle/services-PEU557KZ.js","../bundle/sqlite-runtime-4IZJ4YUM.js","../bundle/state-MX3JVT5Q.js","../bundle/store-JUT34REM.js","../bundle/store-PP4BPADZ.js","../bundle/store-maintenance-command-GRFTJBSB.js","../bundle/surface-FPWES3NY.js"]
32
32
  if (((words) => words
33
33
  .filter((word) => !word.startsWith("-"))
34
34
  .slice(0, 2)
@@ -0,0 +1,42 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ runCommandForAgent,
5
+ toolsFromCommands
6
+ } from "./chunk-HSVKU4OJ.js";
7
+ import "./chunk-JPGN473W.js";
8
+ import "./chunk-FO3XY2Y2.js";
9
+ import "./chunk-UYEDQGMI.js";
10
+ import "./chunk-PL5P7UKW.js";
11
+ import "./chunk-R4JV3VLU.js";
12
+ import "./chunk-LBRTLZHI.js";
13
+ import "./chunk-BQ6CXCLP.js";
14
+ import "./chunk-ZMKAI3F3.js";
15
+ import "./chunk-EMIJVLOA.js";
16
+ import "./chunk-3ZSUVFR7.js";
17
+ import "./chunk-B6DJQBZI.js";
18
+ import "./chunk-J3DZVB67.js";
19
+ import "./chunk-NCCRLAAI.js";
20
+ import "./chunk-3KOJNZH3.js";
21
+ import "./chunk-KBY42GKW.js";
22
+ import "./chunk-N3NJPHZB.js";
23
+ import "./chunk-BXXHUO7Y.js";
24
+ import "./chunk-S5P7THM5.js";
25
+ import "./chunk-3T3OAYL4.js";
26
+ import "./chunk-RXGX2CZX.js";
27
+ import "./chunk-OP2BH55P.js";
28
+ import "./chunk-NV7NNL5T.js";
29
+ import "./chunk-5NFIUY2P.js";
30
+ import "./chunk-VRBEYOJL.js";
31
+ import "./chunk-OW5HW3TD.js";
32
+ import "./chunk-X5LUHN62.js";
33
+ import "./chunk-S35UJBFZ.js";
34
+ import "./chunk-A3RJ6FD5.js";
35
+ import "./chunk-S4UUN6LD.js";
36
+ import "./chunk-Y5E2WNWB.js";
37
+ import "./chunk-4FHKSSXQ.js";
38
+ import "./chunk-ZVVMGPBJ.js";
39
+ export {
40
+ runCommandForAgent,
41
+ toolsFromCommands
42
+ };
@@ -1,34 +1,38 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- CALLER_META_KEY,
5
- PROXY_CLIENT_NAME,
6
4
  StdioServerTransport,
7
5
  answeredWire,
8
- callerOf,
9
6
  serveStdio
10
- } from "./chunk-CDK5E45T.js";
7
+ } from "./chunk-IEY7KS6Q.js";
8
+ import {
9
+ CALLER_META_KEY,
10
+ PROXY_CLIENT_NAME,
11
+ callerOf
12
+ } from "./chunk-FO3XY2Y2.js";
11
13
  import {
14
+ InMemoryTransport,
12
15
  McpServer
13
- } from "./chunk-5D4AEUVA.js";
14
- import "./chunk-NA6QLHBZ.js";
15
- import "./chunk-UZSBGECU.js";
16
- import "./chunk-FPUGMDJV.js";
17
- import "./chunk-W5JZMXGW.js";
16
+ } from "./chunk-PL5P7UKW.js";
17
+ import "./chunk-BQ6CXCLP.js";
18
+ import "./chunk-N3NJPHZB.js";
19
+ import "./chunk-S5P7THM5.js";
20
+ import "./chunk-VRBEYOJL.js";
21
+ import "./chunk-S35UJBFZ.js";
18
22
  import {
19
23
  errorObjectOf,
20
24
  mcpErrorResult
21
- } from "./chunk-TOSCB4SO.js";
22
- import "./chunk-MVA5HVKL.js";
25
+ } from "./chunk-A3RJ6FD5.js";
26
+ import "./chunk-S4UUN6LD.js";
23
27
  import "./chunk-Y5E2WNWB.js";
24
28
  import {
25
29
  CliError
26
- } from "./chunk-DB2XKHI4.js";
30
+ } from "./chunk-4FHKSSXQ.js";
27
31
  import {
28
32
  __name
29
33
  } from "./chunk-ZVVMGPBJ.js";
30
34
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
35
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
32
36
  import { spawn } from "node:child_process";
33
37
  import { randomUUID } from "node:crypto";
34
38
  var PROTOCOL = "2025-06-18";
@@ -169,13 +173,16 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
169
173
  inputSchema: {
170
174
  ...tool.inputSchema,
171
175
  properties: {
172
- profile: {
176
+ profile: profiles.length === 0 ? (
177
+ // An empty enum matches nothing, and a directory that checks the schema refuses the tool.
178
+ {
179
+ type: "string",
180
+ description: `Which ${name} account, by its profile. None is set up on this computer yet.`
181
+ }
182
+ ) : {
173
183
  type: "string",
174
184
  enum: [...profiles],
175
- oneOf: profiles.map((profile) => ({
176
- const: profile,
177
- title: signedIn(profile) ? profile : `${profile} \u2014 not signed in`
178
- })),
185
+ oneOf: profiles.map((one) => ({ const: one, title: signedIn(one) ? one : `${one} \u2014 not signed in` })),
179
186
  description: `Which ${name} account, by its profile. If the owner did not name one, ask which \u2014 never guess.${states}`
180
187
  },
181
188
  ...schema.properties
@@ -198,9 +205,14 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
198
205
  const signedIn = /* @__PURE__ */ __name((profile) => options.signedIn?.(profile) ?? true, "signedIn");
199
206
  const build = /* @__PURE__ */ __name(() => {
200
207
  const profiles = [...options.profiles()].sort();
201
- const server = new McpServer({ name: options.command, version: options.version }, { capabilities: { tools: {} }, instructions: options.instructions });
208
+ const server = new McpServer({ name: options.command, version: options.version }, {
209
+ capabilities: { tools: {} },
210
+ // Read per session, as the profiles are: clients cut the instructions short, so this line comes first.
211
+ instructions: profiles.length === 0 && options.setup ? `${options.setup.charAt(0).toUpperCase()}${options.setup.slice(1)}.
212
+ ${options.instructions}` : options.instructions
213
+ });
202
214
  server.server.setRequestHandler("tools/list", async () => ({
203
- tools: profiles.length === 0 ? [] : (await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
215
+ tools: (profiles.length === 0 ? await options.catalogue?.() ?? [] : await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
204
216
  }));
205
217
  const callers = {
206
218
  env: options.env ?? process.env,
@@ -210,6 +222,8 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
210
222
  server.server.setRequestHandler("tools/call", async (request, ctx) => {
211
223
  const { name, arguments: given = {}, _meta } = request.params;
212
224
  const { profile, ...rest } = given;
225
+ if (profiles.length === 0)
226
+ return refusal("configuration_error", options.setup ?? `no ${options.command} profile on this computer yet.`);
213
227
  if (typeof profile !== "string" || !profiles.includes(profile))
214
228
  return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
215
229
  if (!signedIn(profile))
@@ -231,6 +245,34 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
231
245
  }, "build");
232
246
  return { build, close: /* @__PURE__ */ __name(() => children.close(), "close") };
233
247
  }, "allProfilesServer");
248
+ var listedTools = /* @__PURE__ */ __name(async (server) => {
249
+ const [own, other] = InMemoryTransport.createLinkedPair();
250
+ const answers = /* @__PURE__ */ new Map();
251
+ other.onmessage = (message) => {
252
+ const { id, result, error } = message;
253
+ if (typeof id === "number")
254
+ answers.get(id)?.(result, error);
255
+ };
256
+ const ask = /* @__PURE__ */ __name((id, method, params) => new Promise((resolve, reject) => {
257
+ answers.set(id, (result, error) => error || !result ? reject(new Error(error?.message ?? `${method} had no answer`)) : resolve(result));
258
+ void other.send({ jsonrpc: "2.0", id, method, params });
259
+ }), "ask");
260
+ await server.connect(own);
261
+ try {
262
+ await ask(1, "initialize", {
263
+ protocolVersion: PROTOCOL,
264
+ capabilities: {},
265
+ clientInfo: { name: PROXY_CLIENT_NAME, version: "1" }
266
+ });
267
+ await other.send({ jsonrpc: "2.0", method: "notifications/initialized" });
268
+ const answer = await ask(2, "tools/list", {});
269
+ if (!Array.isArray(answer.tools))
270
+ throw new Error("the catalogue server listed no tools");
271
+ return answer.tools;
272
+ } finally {
273
+ await server.close();
274
+ }
275
+ }, "listedTools");
234
276
  var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {}) => {
235
277
  const { build, close } = allProfilesServer(options);
236
278
  const own = io.stdin !== void 0 && io.stdin !== process.stdin;
@@ -249,7 +291,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
249
291
  }, "serveAllProfilesOverStdio");
250
292
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
251
293
  const { build, close } = allProfilesServer(options);
252
- const { serveOverHttp } = await import("./serve-CYEMVRFC.js");
294
+ const { serveOverHttp } = await import("./serve-FZNSKY7R.js");
253
295
  const listening = await serveOverHttp(build, {
254
296
  ...http,
255
297
  appName: options.command,
@@ -272,6 +314,7 @@ var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
272
314
  export {
273
315
  CHILD_IDLE_MS,
274
316
  allProfilesServer,
317
+ listedTools,
275
318
  serveAllProfilesOverHttp,
276
319
  serveAllProfilesOverStdio,
277
320
  withProfile
@@ -8,9 +8,9 @@ import {
8
8
  checkedOptions,
9
9
  messagesFor,
10
10
  systemFor
11
- } from "./chunk-N2XADGL4.js";
12
- import "./chunk-W5JZMXGW.js";
13
- import "./chunk-TOSCB4SO.js";
11
+ } from "./chunk-BFCRGLOF.js";
12
+ import "./chunk-S35UJBFZ.js";
13
+ import "./chunk-A3RJ6FD5.js";
14
14
  import {
15
15
  array,
16
16
  literal,
@@ -20,14 +20,14 @@ import {
20
20
  strictObject,
21
21
  string,
22
22
  unknown
23
- } from "./chunk-MVA5HVKL.js";
23
+ } from "./chunk-S4UUN6LD.js";
24
24
  import "./chunk-Y5E2WNWB.js";
25
- import "./chunk-DB2XKHI4.js";
25
+ import "./chunk-4FHKSSXQ.js";
26
26
  import {
27
27
  __name
28
28
  } from "./chunk-ZVVMGPBJ.js";
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/models/anthropic.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/models/anthropic.js
31
31
  var options = strictObject({
32
32
  stop_sequences: optional(array(string())),
33
33
  thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
@@ -3,50 +3,52 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-RJMQGG3P.js";
6
+ } from "./chunk-ITW26OBI.js";
7
7
  import {
8
8
  mcpUrlOf
9
- } from "./chunk-RIGE67FR.js";
10
- import "./chunk-X2M6NIQG.js";
9
+ } from "./chunk-EWXMIKZN.js";
10
+ import "./chunk-RNVYNPXT.js";
11
+ import {
12
+ skillResources
13
+ } from "./chunk-7COTHS6G.js";
14
+ import {
15
+ appInstructions
16
+ } from "./chunk-JEZJFQQW.js";
11
17
  import {
12
18
  answered,
13
19
  failed,
14
- registerCommands,
15
- runCommandForAgent,
16
- toolsFromCommands
17
- } from "./chunk-KHZ2RGXI.js";
20
+ registerCommands
21
+ } from "./chunk-HOO53OYK.js";
18
22
  import {
19
- agentJson,
20
- skillResources
21
- } from "./chunk-J3NKZ6MO.js";
23
+ agentJson
24
+ } from "./chunk-IYZWHCZJ.js";
22
25
  import {
23
26
  StdioServerTransport,
24
27
  answeredWire,
25
28
  serveStdio
26
- } from "./chunk-CDK5E45T.js";
27
- import "./chunk-WPP76PSX.js";
28
- import "./chunk-6EOZTUHT.js";
29
- import "./chunk-PPHBRESD.js";
29
+ } from "./chunk-IEY7KS6Q.js";
30
+ import "./chunk-LVAFTQ45.js";
31
+ import "./chunk-HJDQTM3T.js";
32
+ import "./chunk-OALFRUMI.js";
33
+ import "./chunk-ALAPDLCP.js";
34
+ import "./chunk-2RNJ2JP3.js";
30
35
  import {
31
- appInstructions
32
- } from "./chunk-FKA7DOCK.js";
36
+ runCommandForAgent,
37
+ toolsFromCommands
38
+ } from "./chunk-HSVKU4OJ.js";
39
+ import "./chunk-JPGN473W.js";
40
+ import "./chunk-FO3XY2Y2.js";
41
+ import "./chunk-UYEDQGMI.js";
33
42
  import {
34
43
  McpServer
35
- } from "./chunk-5D4AEUVA.js";
36
- import "./chunk-5P5TXU2K.js";
37
- import "./chunk-FBZI4Z3Z.js";
38
- import "./chunk-WE4UFASG.js";
39
- import "./chunk-G2MJYXZG.js";
40
- import "./chunk-CWXOXIWS.js";
41
- import "./chunk-N2XADGL4.js";
42
- import "./chunk-ECC2UX7X.js";
43
- import "./chunk-PAW6RRCW.js";
44
- import "./chunk-QWYMXFKM.js";
45
- import {
46
- mcpHttpMarker
47
- } from "./chunk-LBYGJKXW.js";
48
- import "./chunk-DO7BLXO3.js";
49
- import "./chunk-O5YB7FQD.js";
44
+ } from "./chunk-PL5P7UKW.js";
45
+ import "./chunk-BFHPT67P.js";
46
+ import "./chunk-ITWINZ6R.js";
47
+ import "./chunk-TWY543BS.js";
48
+ import "./chunk-FNESLLZS.js";
49
+ import "./chunk-PSMRUOII.js";
50
+ import "./chunk-OCGNOJYD.js";
51
+ import "./chunk-R4JV3VLU.js";
50
52
  import {
51
53
  DEFAULT_OUTPUT_BYTES,
52
54
  changesAuthorityAt,
@@ -54,51 +56,70 @@ import {
54
56
  environmentOf,
55
57
  fetchesOnlyAt,
56
58
  judgedTargets,
57
- readOnlyLockOf,
58
59
  readsOverMcpAt,
59
60
  rootOf2 as rootOf
60
- } from "./chunk-PWRRDDMZ.js";
61
- import "./chunk-NA6QLHBZ.js";
62
- import "./chunk-AT5I34AN.js";
63
- import "./chunk-ONZVPE24.js";
64
- import "./chunk-W53EJOFQ.js";
65
- import "./chunk-TDNURSU6.js";
66
- import "./chunk-BWLBSQSU.js";
67
- import "./chunk-BBSFQ3PU.js";
68
- import "./chunk-C32AKHTY.js";
69
- import "./chunk-QYXWRKNA.js";
70
- import "./chunk-HZRQLAHO.js";
71
- import "./chunk-JCKWQGCD.js";
72
- import "./chunk-UZSBGECU.js";
73
- import "./chunk-DSP36YHQ.js";
74
- import "./chunk-HHVFIXDO.js";
75
- import "./chunk-NTG657MI.js";
76
- import "./chunk-E2AFUJDR.js";
77
- import "./chunk-H3E2PZ5Y.js";
78
- import "./chunk-GCZ6MAEN.js";
79
- import "./chunk-BNEE35WD.js";
80
- import "./chunk-O3DYRCIT.js";
81
- import "./chunk-FPUGMDJV.js";
82
- import "./chunk-XUPN2EHR.js";
61
+ } from "./chunk-LBRTLZHI.js";
62
+ import "./chunk-BQ6CXCLP.js";
63
+ import "./chunk-ZMKAI3F3.js";
64
+ import "./chunk-ADCAWRRX.js";
65
+ import "./chunk-YSF5JBRA.js";
66
+ import "./chunk-EMIJVLOA.js";
67
+ import {
68
+ readOnlyLockOf
69
+ } from "./chunk-3ZSUVFR7.js";
70
+ import "./chunk-BFCRGLOF.js";
71
+ import "./chunk-PDVXG3T3.js";
72
+ import "./chunk-DCSPCOPB.js";
73
+ import "./chunk-MB4HXDBT.js";
74
+ import "./chunk-B6DJQBZI.js";
75
+ import "./chunk-QMNEDK7Z.js";
76
+ import {
77
+ mcpHttpMarker
78
+ } from "./chunk-X737FHZP.js";
79
+ import "./chunk-KWBLDSRV.js";
80
+ import "./chunk-J3DZVB67.js";
81
+ import "./chunk-3AKMIKND.js";
82
+ import "./chunk-NCCRLAAI.js";
83
+ import "./chunk-VXKD533R.js";
84
+ import "./chunk-3KOJNZH3.js";
85
+ import "./chunk-KBY42GKW.js";
86
+ import "./chunk-N3NJPHZB.js";
87
+ import "./chunk-UQVUXG7H.js";
88
+ import "./chunk-REOBWSGV.js";
89
+ import "./chunk-BXXHUO7Y.js";
90
+ import "./chunk-S5P7THM5.js";
91
+ import "./chunk-FHYV4VWY.js";
92
+ import "./chunk-6MQSBWWF.js";
93
+ import "./chunk-3T3OAYL4.js";
94
+ import "./chunk-RXGX2CZX.js";
95
+ import "./chunk-JVRBW5LH.js";
96
+ import "./chunk-OFMCU3BH.js";
97
+ import "./chunk-OP2BH55P.js";
98
+ import "./chunk-NV7NNL5T.js";
99
+ import "./chunk-46JBCXLI.js";
100
+ import "./chunk-5NFIUY2P.js";
101
+ import "./chunk-3DGHBXH2.js";
102
+ import "./chunk-VRBEYOJL.js";
103
+ import "./chunk-OW5HW3TD.js";
83
104
  import "./chunk-D72URWJE.js";
84
- import "./chunk-GTY6N5KZ.js";
85
- import "./chunk-MNRMKWCN.js";
86
- import "./chunk-DFCHHR5M.js";
87
- import "./chunk-W5JZMXGW.js";
105
+ import "./chunk-X5LUHN62.js";
106
+ import "./chunk-WUNEJRLJ.js";
107
+ import "./chunk-EUF5JNPG.js";
108
+ import "./chunk-S35UJBFZ.js";
88
109
  import {
89
110
  mcpErrorResult
90
- } from "./chunk-TOSCB4SO.js";
91
- import "./chunk-MVA5HVKL.js";
111
+ } from "./chunk-A3RJ6FD5.js";
112
+ import "./chunk-S4UUN6LD.js";
92
113
  import "./chunk-Y5E2WNWB.js";
93
114
  import {
94
115
  CliError
95
- } from "./chunk-DB2XKHI4.js";
96
- import "./chunk-TP7GDWVF.js";
116
+ } from "./chunk-4FHKSSXQ.js";
117
+ import "./chunk-364ET7LV.js";
97
118
  import {
98
119
  __name
99
120
  } from "./chunk-ZVVMGPBJ.js";
100
121
 
101
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
102
123
  var EXCLUDED = [["mcp"]];
103
124
  var aliasesOf = /* @__PURE__ */ __name((root, path) => {
104
125
  let at = root;
@@ -214,7 +235,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
214
235
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
215
236
  const { app } = options;
216
237
  const { build } = createAppServer(command, context, options);
217
- const { serveOverHttp } = await import("./serve-CYEMVRFC.js");
238
+ const { serveOverHttp } = await import("./serve-FZNSKY7R.js");
218
239
  const listening = await serveOverHttp(build, {
219
240
  ...http,
220
241
  appName: app.command,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-TP7GDWVF.js";
21
+ } from "./chunk-364ET7LV.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
27
27
  import { Database } from "bun:sqlite";
28
28
  var bunSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,22 +3,22 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-NHHJHXMQ.js";
6
+ } from "./chunk-64IK7JFO.js";
7
7
  import {
8
8
  refuseOwnerStoreInTests
9
- } from "./chunk-GTY6N5KZ.js";
10
- import "./chunk-W5JZMXGW.js";
11
- import "./chunk-TOSCB4SO.js";
12
- import "./chunk-MVA5HVKL.js";
9
+ } from "./chunk-X5LUHN62.js";
10
+ import "./chunk-S35UJBFZ.js";
11
+ import "./chunk-A3RJ6FD5.js";
12
+ import "./chunk-S4UUN6LD.js";
13
13
  import {
14
14
  importFrom
15
15
  } from "./chunk-Y5E2WNWB.js";
16
- import "./chunk-DB2XKHI4.js";
16
+ import "./chunk-4FHKSSXQ.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
22
22
  var customised = false;
23
23
  var ownLibrary = /* @__PURE__ */ __name(async () => {
24
24
  try {
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-MNRMKWCN.js";
6
+ } from "./chunk-WUNEJRLJ.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.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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";