@wirecat/notion-cli 0.4.0 → 0.6.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 (229) hide show
  1. package/CHANGELOG.md +58 -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-ILG6AH7S.js +42 -0
  6. package/dist/bundle/{all-profiles-4IONYZB6.js → all-profiles-AELHUTFU.js} +64 -21
  7. package/dist/bundle/{anthropic-OXF74J4P.js → anthropic-3CCYAGO3.js} +6 -6
  8. package/dist/bundle/{app-server-M2VF6ABM.js → app-server-DJ6P4NY4.js} +86 -65
  9. package/dist/bundle/{bun-DLA6QRLL.js → bun-2FLR4IV4.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-F4BYLW3F.js → bun-sqlite-QB6CU6TH.js} +7 -7
  11. package/dist/bundle/chunk-2CMLY2X3.js +72 -0
  12. package/dist/bundle/{chunk-TZ2QJ53V.js → chunk-2XUV7HNE.js} +2 -2
  13. package/dist/bundle/{chunk-6JBLIQQN.js → chunk-2Z7UOXFC.js} +1 -1
  14. package/dist/bundle/{chunk-6GN7KU7X.js → chunk-3LMW7U7F.js} +22 -10
  15. package/dist/bundle/chunk-3MYN2RMG.js +398 -0
  16. package/dist/bundle/{chunk-YFWLHTNO.js → chunk-3UX4VJWD.js} +1 -1
  17. package/dist/bundle/chunk-4HP6KGBI.js +32 -0
  18. package/dist/bundle/{chunk-4KUJTSHG.js → chunk-4RFR4J2O.js} +2 -2
  19. package/dist/bundle/{chunk-OCDJ4FFA.js → chunk-4VXXOJ2F.js} +4 -4
  20. package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
  21. package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
  22. package/dist/bundle/{chunk-P3P6DA6K.js → chunk-5OJLUUOJ.js} +6 -6
  23. package/dist/bundle/{chunk-T5UNSFES.js → chunk-5XPHFV7H.js} +35 -12
  24. package/dist/bundle/{chunk-KL3P5TQK.js → chunk-6EJCI47L.js} +4 -4
  25. package/dist/bundle/chunk-6VPC5Z56.js +2145 -0
  26. package/dist/bundle/{chunk-IJMFG7HB.js → chunk-6YOMPW7Y.js} +10 -8
  27. package/dist/bundle/{chunk-7NF3V5L2.js → chunk-7JVKQ6NM.js} +4 -4
  28. package/dist/bundle/chunk-7L2XOKDZ.js +353 -0
  29. package/dist/bundle/{chunk-TXONV3HW.js → chunk-A42T4YX7.js} +3 -3
  30. package/dist/bundle/chunk-AE4VW4NB.js +50 -0
  31. package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
  32. package/dist/bundle/{chunk-L6H7PY4X.js → chunk-AZLDR36U.js} +3 -3
  33. package/dist/bundle/{chunk-TFNRCCGR.js → chunk-BAXNAOOL.js} +4 -4
  34. package/dist/bundle/{chunk-QX3TPFEX.js → chunk-BEV5LO4D.js} +110 -862
  35. package/dist/bundle/{chunk-UROEWCOG.js → chunk-BQBC2WIG.js} +1 -65
  36. package/dist/bundle/{chunk-NO2LIHWA.js → chunk-CFQQTDSA.js} +1 -1
  37. package/dist/bundle/chunk-CHPWBQUK.js +39 -0
  38. package/dist/bundle/chunk-CL3YNUCC.js +388 -0
  39. package/dist/bundle/{chunk-WHJWURZB.js → chunk-DGMTSDKB.js} +6 -6
  40. package/dist/bundle/{chunk-HTKSCSJU.js → chunk-DHVVXQEL.js} +4 -4
  41. package/dist/bundle/chunk-DIU2QJJF.js +785 -0
  42. package/dist/bundle/chunk-DQSOYH6N.js +20 -0
  43. package/dist/bundle/chunk-ECYOTDJM.js +14 -0
  44. package/dist/bundle/{chunk-Z53LYX4M.js → chunk-EHW45LLT.js} +3 -3
  45. package/dist/bundle/{chunk-XCTOCVMW.js → chunk-ERN53B3Z.js} +32 -24
  46. package/dist/bundle/{chunk-CDGZZNGY.js → chunk-ESZHGC4Q.js} +38 -8
  47. package/dist/bundle/{chunk-RMJMID5D.js → chunk-EZMG5QXB.js} +8 -8
  48. package/dist/bundle/chunk-F4BX7TH2.js +15 -0
  49. package/dist/bundle/{chunk-Y5LAJWR5.js → chunk-F5ZAN7OC.js} +1 -1
  50. package/dist/bundle/{chunk-2MHMKNWD.js → chunk-FMMYBVCH.js} +1 -1
  51. package/dist/bundle/{chunk-WZEEEQGC.js → chunk-FRB2L7OE.js} +3 -3
  52. package/dist/bundle/chunk-FV4WTZCU.js +561 -0
  53. package/dist/bundle/{chunk-BEPFGITI.js → chunk-G4ZU73SD.js} +101 -80
  54. package/dist/bundle/{chunk-5XP4KQ2F.js → chunk-GCAJW4SR.js} +1 -1
  55. package/dist/bundle/{chunk-FEMHUSGO.js → chunk-GPRJXJC7.js} +15 -1
  56. package/dist/bundle/chunk-GUIQJUJV.js +340 -0
  57. package/dist/bundle/{chunk-M2EEIYBU.js → chunk-HHEWTLAT.js} +2 -2
  58. package/dist/bundle/{chunk-LIQMUDIZ.js → chunk-HM6AMYHR.js} +2 -2
  59. package/dist/bundle/{chunk-TJCPTRYD.js → chunk-HOVHE3A3.js} +7 -7
  60. package/dist/bundle/{chunk-YAPDU3SV.js → chunk-HVXOA4FO.js} +1 -1
  61. package/dist/bundle/{chunk-D6RCRBDH.js → chunk-IJVTN5L3.js} +2 -2
  62. package/dist/bundle/{chunk-CIVXTBJY.js → chunk-IURYZSG3.js} +39 -52
  63. package/dist/bundle/chunk-JFSVAOA7.js +108 -0
  64. package/dist/bundle/{chunk-FSJHASRQ.js → chunk-JVESLS7B.js} +611 -572
  65. package/dist/bundle/chunk-K5IC4FZN.js +36 -0
  66. package/dist/bundle/chunk-KB35BVTG.js +30 -0
  67. package/dist/bundle/chunk-KGAUINBO.js +594 -0
  68. package/dist/bundle/{chunk-AYU5TFDU.js → chunk-KNCPBX5P.js} +85 -76
  69. package/dist/bundle/{chunk-GSNE7OB4.js → chunk-KZJQPJK5.js} +4 -4
  70. package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
  71. package/dist/bundle/{chunk-M6DGZ2O6.js → chunk-LC6WE6JS.js} +9 -9
  72. package/dist/bundle/{chunk-YGCI3DHS.js → chunk-LECMHK2F.js} +1 -1
  73. package/dist/bundle/chunk-LQVDFD65.js +72 -0
  74. package/dist/bundle/chunk-MEYYH47C.js +25 -0
  75. package/dist/bundle/chunk-NMQRSEZM.js +37 -0
  76. package/dist/bundle/{chunk-K5I64ZVI.js → chunk-NSR43UEW.js} +7 -64
  77. package/dist/bundle/{chunk-GK4GLPG2.js → chunk-OEQNP56V.js} +2 -100
  78. package/dist/bundle/{chunk-MGUEZYFA.js → chunk-OLAGFJDM.js} +13 -2143
  79. package/dist/bundle/{chunk-MRA62W5K.js → chunk-P27NDZQR.js} +255 -563
  80. package/dist/bundle/{chunk-GBFEEHQC.js → chunk-PHKED7AG.js} +8 -225
  81. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  82. package/dist/bundle/{chunk-JODE2XED.js → chunk-Q7EIL6VU.js} +43 -33
  83. package/dist/bundle/{chunk-4TQVZXOV.js → chunk-QEJFBORC.js} +3 -3
  84. package/dist/bundle/{chunk-ZC6ZQQ55.js → chunk-QGGRFRMP.js} +65 -49
  85. package/dist/bundle/{chunk-JIRRF6BM.js → chunk-RD7BKTWV.js} +4 -4
  86. package/dist/bundle/chunk-RXU5T5NM.js +714 -0
  87. package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
  88. package/dist/bundle/{chunk-7NGFGFE5.js → chunk-SAPP2LEH.js} +10 -10
  89. package/dist/bundle/{chunk-COH7OEER.js → chunk-SEAGUFBX.js} +12 -12
  90. package/dist/bundle/{chunk-5LBJNTEJ.js → chunk-STTO2MSY.js} +43 -64
  91. package/dist/bundle/{chunk-5UA2TYMI.js → chunk-T37TAXVL.js} +2 -2
  92. package/dist/bundle/{chunk-R6SDRSZK.js → chunk-T6XIBULH.js} +139 -571
  93. package/dist/bundle/chunk-TFT4FVRU.js +67 -0
  94. package/dist/bundle/chunk-TRYYWV7J.js +291 -0
  95. package/dist/bundle/{chunk-KFVDL2QS.js → chunk-UC7JLE6J.js} +1 -89
  96. package/dist/bundle/{chunk-SGBS5QCU.js → chunk-UOC52GCB.js} +4 -4
  97. package/dist/bundle/chunk-UPL474OW.js +94 -0
  98. package/dist/bundle/chunk-VH7526NL.js +80 -0
  99. package/dist/bundle/chunk-VNWF4I7E.js +34 -0
  100. package/dist/bundle/chunk-W2VQDIU5.js +221 -0
  101. package/dist/bundle/{chunk-EQPAZ33O.js → chunk-WAGADES3.js} +19 -19
  102. package/dist/bundle/{chunk-WU3XHGOB.js → chunk-WAU5LSHP.js} +81 -438
  103. package/dist/bundle/{chunk-FIHXADRF.js → chunk-WB2KSQIP.js} +4 -4
  104. package/dist/bundle/{chunk-OI5DWZJG.js → chunk-WGZH2M64.js} +3 -3
  105. package/dist/bundle/chunk-WVN2KTNS.js +52 -0
  106. package/dist/bundle/{chunk-UKE3CGHK.js → chunk-XYQVVW4R.js} +1 -1
  107. package/dist/bundle/{chunk-7NVPM55S.js → chunk-YDDI4QIT.js} +2203 -1808
  108. package/dist/bundle/chunk-YHWFF6DN.js +39 -0
  109. package/dist/bundle/{chunk-7YZPBAQX.js → chunk-YUDVRFXN.js} +1 -1
  110. package/dist/bundle/{chunk-EY6S7FV3.js → chunk-YXYZAWWW.js} +6 -6
  111. package/dist/bundle/{chunk-GCCPFKSU.js → chunk-YYQ5GKAI.js} +9532 -10735
  112. package/dist/bundle/chunk-ZDYEOE7L.js +2366 -0
  113. package/dist/bundle/command-contract-L2FASWD6.js +41 -0
  114. package/dist/bundle/{command-server-entry-2SORMVRM.js → command-server-entry-VUR6WL77.js} +30 -27
  115. package/dist/bundle/{decode-5O7IEFPN.js → decode-I64PF2RM.js} +6 -6
  116. package/dist/bundle/{definitions-M3U4UYHN.js → definitions-MB65223J.js} +72 -18
  117. package/dist/bundle/{dispatch-YHQX6FEJ.js → dispatch-JQBAZWCL.js} +8 -8
  118. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  119. package/dist/bundle/{echarts-ARLMVQC7.js → echarts-YRRVLEX3.js} +2 -2
  120. package/dist/bundle/{embed-FUDUKQ3K.js → embed-BLXLKMK2.js} +7 -7
  121. package/dist/bundle/{embedder-HDRV7GX3.js → embedder-JYGF6R7I.js} +10 -10
  122. package/dist/bundle/{failure-JHXICWIL.js → failure-I6AAF5R5.js} +3 -3
  123. package/dist/bundle/first-run-YLDOZGY6.js +29 -0
  124. package/dist/bundle/first-screen-GZH3LMLZ.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-MEFIKCDI.js → instructions-AG7SRWTR.js} +1 -1
  129. package/dist/bundle/{mcp-VMS6PBCU.js → mcp-YGOAUNC3.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-OFQSGKBG.js +25 -0
  135. package/dist/bundle/meeting-model-K6NSX3O5.js +27 -0
  136. package/dist/bundle/{meeting-semantic-R4CSLVRG.js → meeting-semantic-3DZPHM7L.js} +7 -7
  137. package/dist/bundle/{micromark-extension-gfm-5X7YT43T.js → micromark-extension-gfm-PQ7DWZM7.js} +12 -78
  138. package/dist/bundle/{node-MAQALPLA.js → node-GJQYN4FT.js} +2 -2
  139. package/dist/bundle/{node-sqlite-J7IJYNBO.js → node-sqlite-7VXIRQPH.js} +8 -8
  140. package/dist/bundle/notes-search-ACDOPTNH.js +64 -0
  141. package/dist/bundle/notion.js +14 -14
  142. package/dist/bundle/oauth-N67CH2TK.js +20 -0
  143. package/dist/bundle/{open-AB27MTGR.js → open-JGXVHIKO.js} +6 -6
  144. package/dist/bundle/{openai-D77MU5XV.js → openai-PFQJTF4H.js} +21 -18
  145. package/dist/bundle/{process-SIOWTRJ6.js → process-MEKCZMX3.js} +1 -1
  146. package/dist/bundle/{program-7K34KI27.js → program-DUJYLJH5.js} +6947 -6532
  147. package/dist/bundle/{prompt-W77YDHA6.js → prompt-FW44QDHD.js} +6 -6
  148. package/dist/bundle/{recognize-3JAXQQ36.js → recognize-62TDQ6A7.js} +5 -5
  149. package/dist/bundle/{remote-PSOJXCXO.js → remote-7ONFD7GG.js} +12 -11
  150. package/dist/bundle/{rerank-EE44ZTGL.js → rerank-YOHQQJS4.js} +8 -8
  151. package/dist/bundle/{schemas-LBYUMBC6.js → schemas-IIGJ7DOP.js} +39 -60
  152. package/dist/bundle/{serve-XJMGAMFW.js → serve-ZCXGT5RB.js} +11 -11
  153. package/dist/bundle/{server-ASU6CP5R.js → server-RQ74M637.js} +78 -56
  154. package/dist/bundle/server-XMZF57WM.js +90 -0
  155. package/dist/bundle/{services-PT4PA4J6.js → services-FWBRZ57M.js} +105 -90
  156. package/dist/bundle/{sqlite-runtime-YHXRTVXE.js → sqlite-runtime-ZZBNGV5L.js} +7 -7
  157. package/dist/bundle/{state-T6ZKFWGD.js → state-GDDFO62Y.js} +7 -7
  158. package/dist/bundle/{store-E5EE25FY.js → store-D2LRIWEI.js} +24 -20
  159. package/dist/bundle/{store-3MUCZEI3.js → store-KQCLR57N.js} +32 -18
  160. package/dist/bundle/store-maintenance-command-CK2MU5M6.js +77 -0
  161. package/dist/bundle/surface-K4TPIQW7.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 -119
  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 +16 -5
  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/generated/definitions.d.ts.map +1 -1
  178. package/dist/generated/definitions.js +72 -18
  179. package/dist/generated/definitions.js.map +1 -1
  180. package/dist/generated/manifest.d.ts +4 -1
  181. package/dist/generated/manifest.d.ts.map +1 -1
  182. package/dist/generated/manifest.js +69 -0
  183. package/dist/generated/manifest.js.map +1 -1
  184. package/dist/generated/schemas.d.ts.map +1 -1
  185. package/dist/generated/schemas.js +32 -32
  186. package/dist/generated/schemas.js.map +1 -1
  187. package/dist/generated/types.d.ts +125 -25
  188. package/dist/generated/types.d.ts.map +1 -1
  189. package/dist/knowledge.d.ts +1 -0
  190. package/dist/knowledge.d.ts.map +1 -1
  191. package/dist/knowledge.js +68 -2
  192. package/dist/knowledge.js.map +1 -1
  193. package/dist/library.d.ts +12 -1
  194. package/dist/library.d.ts.map +1 -1
  195. package/dist/library.js +35 -1
  196. package/dist/library.js.map +1 -1
  197. package/dist/notion/port.d.ts.map +1 -1
  198. package/dist/notion/port.js +1 -0
  199. package/dist/notion/port.js.map +1 -1
  200. package/dist/notion/reads.d.ts +13 -1
  201. package/dist/notion/reads.d.ts.map +1 -1
  202. package/dist/notion/reads.js +1 -1
  203. package/dist/program.d.ts.map +1 -1
  204. package/dist/program.js +19 -2
  205. package/dist/program.js.map +1 -1
  206. package/dist/sync/files.d.ts +19 -0
  207. package/dist/sync/files.d.ts.map +1 -1
  208. package/dist/sync/files.js.map +1 -1
  209. package/dist/sync/source.d.ts +1 -1
  210. package/dist/sync/source.d.ts.map +1 -1
  211. package/dist/sync/source.js +60 -55
  212. package/dist/sync/source.js.map +1 -1
  213. package/dist/sync/users.d.ts +22 -0
  214. package/dist/sync/users.d.ts.map +1 -0
  215. package/dist/sync/users.js +111 -0
  216. package/dist/sync/users.js.map +1 -0
  217. package/dist/version.d.ts +1 -1
  218. package/dist/version.js +1 -1
  219. package/package.json +4 -4
  220. package/dist/bundle/chunk-L62XTC7N.js +0 -726
  221. package/dist/bundle/chunk-SHTHNBHG.js +0 -2
  222. package/dist/bundle/command-contract-UBXS6NHI.js +0 -38
  223. package/dist/bundle/first-run-BGEFTXOE.js +0 -29
  224. package/dist/bundle/first-screen-F5F3VS6Y.js +0 -38
  225. package/dist/bundle/meeting-combined-HNSS3FQY.js +0 -24
  226. package/dist/bundle/meeting-model-REZVYGQW.js +0 -26
  227. package/dist/bundle/oauth-AMV4YGJD.js +0 -20
  228. package/dist/bundle/server-WSPQ5EOA.js +0 -72
  229. package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +0 -63
package/CHANGELOG.md CHANGED
@@ -2,6 +2,64 @@
2
2
 
3
3
  Notable changes to `@wirecat/notion-cli`. One section per version, newest first.
4
4
 
5
+ ## 0.6.0 — 19.11.2026
6
+
7
+ ### Added
8
+
9
+ - **`notion <profile> account remove` signs a profile out and forgets it on this computer.** It forgets the Notion
10
+ token, the profile's settings, its chosen pages and its sync checkpoint. `--keep-data` leaves the copied pages in the
11
+ store, where search still finds them; `--delete-data` deletes them. It asks first, or takes `--yes`; `--dry-run` lists
12
+ what it would remove. Why: WireCat Desktop removes an account with this command, and notion could only sign out with
13
+ `session end`. The token itself stays valid at Notion: revoke it on Notion's integrations page.
14
+
15
+ ### Changed — may break callers
16
+
17
+ - **The MCP Registry entry asks which profiles to serve.** It started `mcp serve --profiles all`, so a client that
18
+ installed the server from the registry reached every account on the computer without the owner choosing. Now
19
+ `--profiles` is a required argument with the example `personal`: the client asks for one profile, a
20
+ comma-separated list or `all`. Why: a CLI never picks an account for the owner
21
+ ([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
22
+ server added by hand or with `mcp config` does not change.
23
+
24
+ ### Fixed
25
+
26
+ - **Pages synced before 0.5.0 get their authors and last editors as people without a rescan.** A plain `sync` now
27
+ reads such pages again, 50 a run, and links them to the people who wrote and last edited them. It also does this
28
+ for pages read before the connection could read email addresses, once a sync has seen that it can. It reads no
29
+ other page again. Before, a page got its people only once someone edited it.
30
+ - **A first sync reads each Notion page once instead of three times.** The walk asked Notion for each page's kind,
31
+ and every page read asked again for its parent page. notion now keeps what one run has already seen, also from the
32
+ walk and the plan an earlier run saved. A page with 60 pages under it took 182 page requests and now takes 61, which
33
+ counts under Notion's limit of about three requests a second.
34
+ - **`api` is cli-core's shared group, as in attio, linear and hubspot.** The commands, their names and their keys stay
35
+ the same: each write asks or refuses by `api.<operation>`, and a call that deletes, by its method or its body, also
36
+ by `documents.delete`. Which calls delete now comes from the generated manifest, plus four body rules notion keeps
37
+ itself. A fix to the group in cli-core now reaches notion with a version bump.
38
+ - cli-core 0.707.0 (was 0.687.0), cli-base 0.124.0 (was 0.109.0).
39
+
40
+ ## 0.5.0 — 17.11.2026
41
+
42
+ ### Fixed
43
+
44
+ - **A search hit from Notion names `notion` and the profile.** `memo search` and `search all` showed a Notion page as
45
+ `provider: notes` with the store's account number, and the tree label showed raw ids, because notion never said
46
+ which account its profile is. A sync now records it through cli-core's documents engine.
47
+ - **The workspace root and databases stay out of search.** They are catalog entries, not pages: word search, meaning
48
+ search and memo's digest showed them with an empty excerpt, and `documents show` could not open them.
49
+ - **An agent's `relationships add` is saved.** It is written unconfirmed for the owner, who confirms it by adding the
50
+ same relationship or rejects it by removing it. It used to write nothing.
51
+ - **A sync cut inside Notion's own pass says to sync again.** When a slow listing reached the deadline, its cursor
52
+ waited on the sync's pending plan, where notion did not look: the answer said `complete: false` with no step to run
53
+ next, and `status` gave a total as if the pass were planned. notion now reads that cursor too.
54
+ - cli-core 0.687.0 (was 0.680.0), cli-base 0.109.0 (was 0.106.0).
55
+ - Sync now saves a page's creator and last editor as people in the shared store, with their names and email addresses
56
+ from Notion, and links the page to them as `owner` and `last-editor`. An email address joins them to the person who
57
+ already has it, so a person's context shows the Notion pages they wrote or edited. This needs the connection's
58
+ capability to read user information including email addresses; without it the authors are kept by Notion id, and
59
+ `sync` and `doctor` say so. A page synced before this gets its authors when it next changes.
60
+ - `identities link <page> <notion-id> person:<uid>` works: it no longer fails because the Notion user was not in the
61
+ store, and it moves every synced page's link from that user to the person.
62
+
5
63
  ## 0.4.0 — 16.11.2026
6
64
 
7
65
  ### Added
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.4.0\n")
12
+ process.stdout.write("0.6.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-4IONYZB6.js","../bundle/anthropic-OXF74J4P.js","../bundle/app-server-M2VF6ABM.js","../bundle/bun-DLA6QRLL.js","../bundle/bun-sqlite-F4BYLW3F.js","../bundle/decode-5O7IEFPN.js","../bundle/definitions-M3U4UYHN.js","../bundle/dispatch-YHQX6FEJ.js","../bundle/dist-ILNOLGYN.js","../bundle/echarts-ARLMVQC7.js","../bundle/embed-FUDUKQ3K.js","../bundle/embedder-HDRV7GX3.js","../bundle/failure-JHXICWIL.js","../bundle/first-screen-F5F3VS6Y.js","../bundle/instructions-MEFIKCDI.js","../bundle/mcp-VMS6PBCU.js","../bundle/meeting-combined-HNSS3FQY.js","../bundle/meeting-model-REZVYGQW.js","../bundle/meeting-semantic-R4CSLVRG.js","../bundle/node-KM3CUABH.js","../bundle/node-MAQALPLA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-J7IJYNBO.js","../bundle/oauth-AMV4YGJD.js","../bundle/open-AB27MTGR.js","../bundle/openai-D77MU5XV.js","../bundle/process-SIOWTRJ6.js","../bundle/program-7K34KI27.js","../bundle/prompt-W77YDHA6.js","../bundle/recognize-3JAXQQ36.js","../bundle/remote-PSOJXCXO.js","../bundle/rerank-EE44ZTGL.js","../bundle/schemas-LBYUMBC6.js","../bundle/serve-XJMGAMFW.js","../bundle/server-ASU6CP5R.js","../bundle/server-WSPQ5EOA.js","../bundle/services-PT4PA4J6.js","../bundle/sqlite-runtime-YHXRTVXE.js","../bundle/state-T6ZKFWGD.js","../bundle/store-3MUCZEI3.js","../bundle/store-E5EE25FY.js","../bundle/store-maintenance-command-ZZ55BBBG.js"]
31
+ const chunks = ["../bundle/agent-ILG6AH7S.js","../bundle/all-profiles-AELHUTFU.js","../bundle/anthropic-3CCYAGO3.js","../bundle/app-server-DJ6P4NY4.js","../bundle/bun-2FLR4IV4.js","../bundle/bun-sqlite-QB6CU6TH.js","../bundle/decode-I64PF2RM.js","../bundle/definitions-MB65223J.js","../bundle/dispatch-JQBAZWCL.js","../bundle/dist-ILNOLGYN.js","../bundle/dist-PAKDDIBT.js","../bundle/echarts-YRRVLEX3.js","../bundle/embed-BLXLKMK2.js","../bundle/embedder-JYGF6R7I.js","../bundle/failure-I6AAF5R5.js","../bundle/first-screen-GZH3LMLZ.js","../bundle/instructions-AG7SRWTR.js","../bundle/mcp-YGOAUNC3.js","../bundle/meeting-combined-OFQSGKBG.js","../bundle/meeting-model-K6NSX3O5.js","../bundle/meeting-semantic-3DZPHM7L.js","../bundle/node-GJQYN4FT.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-7VXIRQPH.js","../bundle/oauth-N67CH2TK.js","../bundle/open-JGXVHIKO.js","../bundle/openai-PFQJTF4H.js","../bundle/process-MEKCZMX3.js","../bundle/program-DUJYLJH5.js","../bundle/prompt-FW44QDHD.js","../bundle/recognize-62TDQ6A7.js","../bundle/remote-7ONFD7GG.js","../bundle/rerank-YOHQQJS4.js","../bundle/schemas-IIGJ7DOP.js","../bundle/serve-ZCXGT5RB.js","../bundle/server-RQ74M637.js","../bundle/server-XMZF57WM.js","../bundle/services-FWBRZ57M.js","../bundle/sqlite-runtime-ZZBNGV5L.js","../bundle/state-GDDFO62Y.js","../bundle/store-D2LRIWEI.js","../bundle/store-KQCLR57N.js","../bundle/store-maintenance-command-CK2MU5M6.js","../bundle/surface-K4TPIQW7.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-T6XIBULH.js";
7
+ import "./chunk-AE4VW4NB.js";
8
+ import "./chunk-JFSVAOA7.js";
9
+ import "./chunk-GUIQJUJV.js";
10
+ import "./chunk-PL5P7UKW.js";
11
+ import "./chunk-RXU5T5NM.js";
12
+ import "./chunk-P27NDZQR.js";
13
+ import "./chunk-6YOMPW7Y.js";
14
+ import "./chunk-QEJFBORC.js";
15
+ import "./chunk-KB35BVTG.js";
16
+ import "./chunk-3MYN2RMG.js";
17
+ import "./chunk-DGMTSDKB.js";
18
+ import "./chunk-YUDVRFXN.js";
19
+ import "./chunk-DHVVXQEL.js";
20
+ import "./chunk-VH7526NL.js";
21
+ import "./chunk-DIU2QJJF.js";
22
+ import "./chunk-BQBC2WIG.js";
23
+ import "./chunk-BEV5LO4D.js";
24
+ import "./chunk-LQVDFD65.js";
25
+ import "./chunk-T37TAXVL.js";
26
+ import "./chunk-JVESLS7B.js";
27
+ import "./chunk-FRB2L7OE.js";
28
+ import "./chunk-HOVHE3A3.js";
29
+ import "./chunk-RD7BKTWV.js";
30
+ import "./chunk-AV2ZJ4WX.js";
31
+ import "./chunk-ESZHGC4Q.js";
32
+ import "./chunk-HHEWTLAT.js";
33
+ import "./chunk-KNCPBX5P.js";
34
+ import "./chunk-3LMW7U7F.js";
35
+ import "./chunk-S4UUN6LD.js";
36
+ import "./chunk-Y5E2WNWB.js";
37
+ import "./chunk-HM6AMYHR.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-GK4GLPG2.js";
7
+ } from "./chunk-OEQNP56V.js";
8
+ import {
9
+ CALLER_META_KEY,
10
+ PROXY_CLIENT_NAME,
11
+ callerOf
12
+ } from "./chunk-JFSVAOA7.js";
11
13
  import {
14
+ InMemoryTransport,
12
15
  McpServer
13
- } from "./chunk-5D4AEUVA.js";
14
- import "./chunk-IJMFG7HB.js";
15
- import "./chunk-UROEWCOG.js";
16
- import "./chunk-SHTHNBHG.js";
17
- import "./chunk-AYU5TFDU.js";
16
+ } from "./chunk-PL5P7UKW.js";
17
+ import "./chunk-6YOMPW7Y.js";
18
+ import "./chunk-BQBC2WIG.js";
19
+ import "./chunk-LQVDFD65.js";
20
+ import "./chunk-AV2ZJ4WX.js";
21
+ import "./chunk-KNCPBX5P.js";
18
22
  import {
19
23
  errorObjectOf,
20
24
  mcpErrorResult
21
- } from "./chunk-6GN7KU7X.js";
22
- import "./chunk-MVA5HVKL.js";
25
+ } from "./chunk-3LMW7U7F.js";
26
+ import "./chunk-S4UUN6LD.js";
23
27
  import "./chunk-Y5E2WNWB.js";
24
28
  import {
25
29
  CliError
26
- } from "./chunk-LIQMUDIZ.js";
30
+ } from "./chunk-HM6AMYHR.js";
27
31
  import {
28
32
  __name
29
33
  } from "./chunk-ZVVMGPBJ.js";
30
34
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
35
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/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-XJMGAMFW.js");
294
+ const { serveOverHttp } = await import("./serve-ZCXGT5RB.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-TFNRCCGR.js";
12
- import "./chunk-AYU5TFDU.js";
13
- import "./chunk-6GN7KU7X.js";
11
+ } from "./chunk-BAXNAOOL.js";
12
+ import "./chunk-KNCPBX5P.js";
13
+ import "./chunk-3LMW7U7F.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-LIQMUDIZ.js";
25
+ import "./chunk-HM6AMYHR.js";
26
26
  import {
27
27
  __name
28
28
  } from "./chunk-ZVVMGPBJ.js";
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/models/anthropic.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/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-ZC6ZQQ55.js";
6
+ } from "./chunk-QGGRFRMP.js";
7
7
  import {
8
8
  mcpUrlOf
9
- } from "./chunk-JODE2XED.js";
10
- import "./chunk-YGCI3DHS.js";
9
+ } from "./chunk-Q7EIL6VU.js";
10
+ import "./chunk-LECMHK2F.js";
11
+ import {
12
+ skillResources
13
+ } from "./chunk-CL3YNUCC.js";
14
+ import {
15
+ appInstructions
16
+ } from "./chunk-GCAJW4SR.js";
11
17
  import {
12
18
  answered,
13
19
  failed,
14
- registerCommands,
15
- runCommandForAgent,
16
- toolsFromCommands
17
- } from "./chunk-R6SDRSZK.js";
20
+ registerCommands
21
+ } from "./chunk-FV4WTZCU.js";
18
22
  import {
19
- agentJson,
20
- skillResources
21
- } from "./chunk-WU3XHGOB.js";
23
+ agentJson
24
+ } from "./chunk-WAU5LSHP.js";
22
25
  import {
23
26
  StdioServerTransport,
24
27
  answeredWire,
25
28
  serveStdio
26
- } from "./chunk-GK4GLPG2.js";
27
- import "./chunk-XCTOCVMW.js";
28
- import "./chunk-L62XTC7N.js";
29
- import "./chunk-D6RCRBDH.js";
29
+ } from "./chunk-OEQNP56V.js";
30
+ import "./chunk-ERN53B3Z.js";
31
+ import "./chunk-7L2XOKDZ.js";
32
+ import "./chunk-TFT4FVRU.js";
33
+ import "./chunk-IJVTN5L3.js";
34
+ import "./chunk-6EJCI47L.js";
30
35
  import {
31
- appInstructions
32
- } from "./chunk-5XP4KQ2F.js";
36
+ runCommandForAgent,
37
+ toolsFromCommands
38
+ } from "./chunk-T6XIBULH.js";
39
+ import "./chunk-AE4VW4NB.js";
40
+ import "./chunk-JFSVAOA7.js";
41
+ import "./chunk-GUIQJUJV.js";
33
42
  import {
34
43
  McpServer
35
- } from "./chunk-5D4AEUVA.js";
36
- import "./chunk-GCCPFKSU.js";
37
- import "./chunk-CIVXTBJY.js";
38
- import "./chunk-FEMHUSGO.js";
39
- import "./chunk-OCDJ4FFA.js";
40
- import "./chunk-NO2LIHWA.js";
41
- import "./chunk-TFNRCCGR.js";
42
- import "./chunk-P3P6DA6K.js";
43
- import "./chunk-GBFEEHQC.js";
44
- import "./chunk-L6H7PY4X.js";
45
- import {
46
- mcpHttpMarker
47
- } from "./chunk-SGBS5QCU.js";
48
- import "./chunk-OI5DWZJG.js";
49
- import "./chunk-KL3P5TQK.js";
44
+ } from "./chunk-PL5P7UKW.js";
45
+ import "./chunk-YYQ5GKAI.js";
46
+ import "./chunk-IURYZSG3.js";
47
+ import "./chunk-CHPWBQUK.js";
48
+ import "./chunk-GPRJXJC7.js";
49
+ import "./chunk-4VXXOJ2F.js";
50
+ import "./chunk-CFQQTDSA.js";
51
+ import "./chunk-RXU5T5NM.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-MRA62W5K.js";
61
- import "./chunk-IJMFG7HB.js";
62
- import "./chunk-4TQVZXOV.js";
63
- import "./chunk-WHJWURZB.js";
64
- import "./chunk-7YZPBAQX.js";
65
- import "./chunk-EQPAZ33O.js";
66
- import "./chunk-HTKSCSJU.js";
67
- import "./chunk-7NVPM55S.js";
68
- import "./chunk-T5UNSFES.js";
69
- import "./chunk-M6DGZ2O6.js";
70
- import "./chunk-6JBLIQQN.js";
71
- import "./chunk-QX3TPFEX.js";
72
- import "./chunk-UROEWCOG.js";
73
- import "./chunk-5UA2TYMI.js";
74
- import "./chunk-FSJHASRQ.js";
75
- import "./chunk-K5I64ZVI.js";
76
- import "./chunk-WZEEEQGC.js";
77
- import "./chunk-TJCPTRYD.js";
78
- import "./chunk-5LBJNTEJ.js";
79
- import "./chunk-JIRRF6BM.js";
80
- import "./chunk-YAPDU3SV.js";
81
- import "./chunk-SHTHNBHG.js";
82
- import "./chunk-CDGZZNGY.js";
61
+ } from "./chunk-P27NDZQR.js";
62
+ import "./chunk-6YOMPW7Y.js";
63
+ import "./chunk-QEJFBORC.js";
64
+ import "./chunk-ZDYEOE7L.js";
65
+ import "./chunk-K5IC4FZN.js";
66
+ import "./chunk-KB35BVTG.js";
67
+ import {
68
+ readOnlyLockOf
69
+ } from "./chunk-3MYN2RMG.js";
70
+ import "./chunk-BAXNAOOL.js";
71
+ import "./chunk-5OJLUUOJ.js";
72
+ import "./chunk-W2VQDIU5.js";
73
+ import "./chunk-PHKED7AG.js";
74
+ import "./chunk-DGMTSDKB.js";
75
+ import "./chunk-AZLDR36U.js";
76
+ import {
77
+ mcpHttpMarker
78
+ } from "./chunk-UOC52GCB.js";
79
+ import "./chunk-WGZH2M64.js";
80
+ import "./chunk-YUDVRFXN.js";
81
+ import "./chunk-WAGADES3.js";
82
+ import "./chunk-DHVVXQEL.js";
83
+ import "./chunk-YDDI4QIT.js";
84
+ import "./chunk-VH7526NL.js";
85
+ import "./chunk-DIU2QJJF.js";
86
+ import "./chunk-BQBC2WIG.js";
87
+ import "./chunk-KGAUINBO.js";
88
+ import "./chunk-5XPHFV7H.js";
89
+ import "./chunk-BEV5LO4D.js";
90
+ import "./chunk-LQVDFD65.js";
91
+ import "./chunk-LC6WE6JS.js";
92
+ import "./chunk-2Z7UOXFC.js";
93
+ import "./chunk-T37TAXVL.js";
94
+ import "./chunk-JVESLS7B.js";
95
+ import "./chunk-NSR43UEW.js";
96
+ import "./chunk-2CMLY2X3.js";
97
+ import "./chunk-FRB2L7OE.js";
98
+ import "./chunk-HOVHE3A3.js";
99
+ import "./chunk-STTO2MSY.js";
100
+ import "./chunk-RD7BKTWV.js";
101
+ import "./chunk-HVXOA4FO.js";
102
+ import "./chunk-AV2ZJ4WX.js";
103
+ import "./chunk-ESZHGC4Q.js";
83
104
  import "./chunk-D72URWJE.js";
84
- import "./chunk-M2EEIYBU.js";
85
- import "./chunk-EY6S7FV3.js";
86
- import "./chunk-2MHMKNWD.js";
87
- import "./chunk-AYU5TFDU.js";
105
+ import "./chunk-HHEWTLAT.js";
106
+ import "./chunk-YXYZAWWW.js";
107
+ import "./chunk-FMMYBVCH.js";
108
+ import "./chunk-KNCPBX5P.js";
88
109
  import {
89
110
  mcpErrorResult
90
- } from "./chunk-6GN7KU7X.js";
91
- import "./chunk-MVA5HVKL.js";
111
+ } from "./chunk-3LMW7U7F.js";
112
+ import "./chunk-S4UUN6LD.js";
92
113
  import "./chunk-Y5E2WNWB.js";
93
114
  import {
94
115
  CliError
95
- } from "./chunk-LIQMUDIZ.js";
96
- import "./chunk-Y5LAJWR5.js";
116
+ } from "./chunk-HM6AMYHR.js";
117
+ import "./chunk-F5ZAN7OC.js";
97
118
  import {
98
119
  __name
99
120
  } from "./chunk-ZVVMGPBJ.js";
100
121
 
101
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/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-XJMGAMFW.js");
238
+ const { serveOverHttp } = await import("./serve-ZCXGT5RB.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-Y5LAJWR5.js";
21
+ } from "./chunk-F5ZAN7OC.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/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-TZ2QJ53V.js";
6
+ } from "./chunk-2XUV7HNE.js";
7
7
  import {
8
8
  refuseOwnerStoreInTests
9
- } from "./chunk-M2EEIYBU.js";
10
- import "./chunk-AYU5TFDU.js";
11
- import "./chunk-6GN7KU7X.js";
12
- import "./chunk-MVA5HVKL.js";
9
+ } from "./chunk-HHEWTLAT.js";
10
+ import "./chunk-KNCPBX5P.js";
11
+ import "./chunk-3LMW7U7F.js";
12
+ import "./chunk-S4UUN6LD.js";
13
13
  import {
14
14
  importFrom
15
15
  } from "./chunk-Y5E2WNWB.js";
16
- import "./chunk-LIQMUDIZ.js";
16
+ import "./chunk-HM6AMYHR.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/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 {