@wirecat/wordpress-cli 0.0.0-stage → 0.1.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 (256) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +204 -0
  3. package/README.md +248 -2
  4. package/contracts/wirecat.json +2535 -0
  5. package/dist/bin/wordpress.d.ts +3 -0
  6. package/dist/bin/wordpress.d.ts.map +1 -0
  7. package/dist/bin/wordpress.js +40 -0
  8. package/dist/bin/wordpress.js.map +1 -0
  9. package/dist/bundle/agent-LKBRYKNB.js +37 -0
  10. package/dist/bundle/all-profiles-OEV7VFQG.js +320 -0
  11. package/dist/bundle/anthropic-JKTZP2DW.js +91 -0
  12. package/dist/bundle/app-server-7LWLDDE2.js +249 -0
  13. package/dist/bundle/bun-2FLR4IV4.js +169 -0
  14. package/dist/bundle/bun-sqlite-GRSRX5P4.js +76 -0
  15. package/dist/bundle/chunk-2BI25SEE.js +259 -0
  16. package/dist/bundle/chunk-2UEGJ5AJ.js +52 -0
  17. package/dist/bundle/chunk-2XUV7HNE.js +58 -0
  18. package/dist/bundle/chunk-2Z7UOXFC.js +16 -0
  19. package/dist/bundle/chunk-3BM6KBWP.js +2788 -0
  20. package/dist/bundle/chunk-3BRAZVHR.js +1010 -0
  21. package/dist/bundle/chunk-3LMW7U7F.js +1233 -0
  22. package/dist/bundle/chunk-3LVTQFGB.js +2000 -0
  23. package/dist/bundle/chunk-3TKFFSFU.js +106 -0
  24. package/dist/bundle/chunk-3UX4VJWD.js +78 -0
  25. package/dist/bundle/chunk-4HEXAGKT.js +334 -0
  26. package/dist/bundle/chunk-4HP6KGBI.js +32 -0
  27. package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
  28. package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
  29. package/dist/bundle/chunk-5XPHFV7H.js +2333 -0
  30. package/dist/bundle/chunk-5Z3P543G.js +80 -0
  31. package/dist/bundle/chunk-6UYDKCV6.js +794 -0
  32. package/dist/bundle/chunk-7GNB4LBX.js +50 -0
  33. package/dist/bundle/chunk-7HJFBOAT.js +161 -0
  34. package/dist/bundle/chunk-7JVKQ6NM.js +206 -0
  35. package/dist/bundle/chunk-7QH5BZUG.js +142 -0
  36. package/dist/bundle/chunk-A474OVIW.js +1392 -0
  37. package/dist/bundle/chunk-AENEMQL3.js +1068 -0
  38. package/dist/bundle/chunk-AL7I4DT4.js +65718 -0
  39. package/dist/bundle/chunk-ARGRGTPX.js +108 -0
  40. package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
  41. package/dist/bundle/chunk-BAXNAOOL.js +76 -0
  42. package/dist/bundle/chunk-BH63B66W.js +407 -0
  43. package/dist/bundle/chunk-CCOSG3F2.js +24616 -0
  44. package/dist/bundle/chunk-CFQQTDSA.js +46 -0
  45. package/dist/bundle/chunk-CGCUOT67.js +388 -0
  46. package/dist/bundle/chunk-CHPWBQUK.js +39 -0
  47. package/dist/bundle/chunk-D72URWJE.js +532 -0
  48. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  49. package/dist/bundle/chunk-DQSOYH6N.js +20 -0
  50. package/dist/bundle/chunk-ECYOTDJM.js +14 -0
  51. package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
  52. package/dist/bundle/chunk-EHW45LLT.js +100 -0
  53. package/dist/bundle/chunk-F3AV5ZSL.js +338 -0
  54. package/dist/bundle/chunk-F4BX7TH2.js +15 -0
  55. package/dist/bundle/chunk-F5ZAN7OC.js +6848 -0
  56. package/dist/bundle/chunk-FMMYBVCH.js +38 -0
  57. package/dist/bundle/chunk-FNB4SWTY.js +66 -0
  58. package/dist/bundle/chunk-FQROWBKV.js +12660 -0
  59. package/dist/bundle/chunk-FV2HJOSC.js +771 -0
  60. package/dist/bundle/chunk-GCAJW4SR.js +53 -0
  61. package/dist/bundle/chunk-GPRJXJC7.js +102 -0
  62. package/dist/bundle/chunk-HCOZUOSN.js +54 -0
  63. package/dist/bundle/chunk-HM6AMYHR.js +72 -0
  64. package/dist/bundle/chunk-HVXOA4FO.js +23 -0
  65. package/dist/bundle/chunk-HWQ7572G.js +95 -0
  66. package/dist/bundle/chunk-IJVTN5L3.js +82 -0
  67. package/dist/bundle/chunk-IZDDBOHU.js +3610 -0
  68. package/dist/bundle/chunk-JAE5B4G7.js +388 -0
  69. package/dist/bundle/chunk-K2Y5K37O.js +218 -0
  70. package/dist/bundle/chunk-KCH224US.js +9581 -0
  71. package/dist/bundle/chunk-KZJQPJK5.js +230 -0
  72. package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
  73. package/dist/bundle/chunk-LECMHK2F.js +18 -0
  74. package/dist/bundle/chunk-LWEMZJLG.js +1332 -0
  75. package/dist/bundle/chunk-LWTETL2O.js +185 -0
  76. package/dist/bundle/chunk-MEYYH47C.js +25 -0
  77. package/dist/bundle/chunk-MJ6LTG4L.js +170 -0
  78. package/dist/bundle/chunk-NMQRSEZM.js +37 -0
  79. package/dist/bundle/chunk-ODVGFCBE.js +557 -0
  80. package/dist/bundle/chunk-OEQNP56V.js +633 -0
  81. package/dist/bundle/chunk-OV6WQY3L.js +39 -0
  82. package/dist/bundle/chunk-PL5P7UKW.js +25216 -0
  83. package/dist/bundle/chunk-PPNTY7LD.js +733 -0
  84. package/dist/bundle/chunk-PRZYRA66.js +358 -0
  85. package/dist/bundle/chunk-PV5UYGRJ.js +41594 -0
  86. package/dist/bundle/chunk-QYTOLPNI.js +52 -0
  87. package/dist/bundle/chunk-R7Y3XU66.js +362 -0
  88. package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
  89. package/dist/bundle/chunk-SD5CXGIG.js +188 -0
  90. package/dist/bundle/chunk-SXY5G62I.js +288 -0
  91. package/dist/bundle/chunk-T37TAXVL.js +29 -0
  92. package/dist/bundle/chunk-T5SOY3AE.js +1197 -0
  93. package/dist/bundle/chunk-TJ7OORSO.js +1876 -0
  94. package/dist/bundle/chunk-TRYYWV7J.js +291 -0
  95. package/dist/bundle/chunk-U6VLNYCO.js +73 -0
  96. package/dist/bundle/chunk-UC7JLE6J.js +58 -0
  97. package/dist/bundle/chunk-UUIOAZPH.js +156 -0
  98. package/dist/bundle/chunk-UXQ24OY6.js +4072 -0
  99. package/dist/bundle/chunk-VBRRMGON.js +1007 -0
  100. package/dist/bundle/chunk-VRIBES2C.js +319 -0
  101. package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
  102. package/dist/bundle/chunk-XT5XYQEZ.js +3414 -0
  103. package/dist/bundle/chunk-XTAS5Z3G.js +2231 -0
  104. package/dist/bundle/chunk-XYQVVW4R.js +24 -0
  105. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  106. package/dist/bundle/chunk-YHWFF6DN.js +39 -0
  107. package/dist/bundle/chunk-YUDVRFXN.js +63 -0
  108. package/dist/bundle/chunk-Z3I2MCUT.js +131 -0
  109. package/dist/bundle/chunk-ZDI3WC7V.js +353 -0
  110. package/dist/bundle/chunk-ZVQ7KFMT.js +274 -0
  111. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  112. package/dist/bundle/command-contract-P7YE4EKS.js +37 -0
  113. package/dist/bundle/command-server-entry-XIMCBWMV.js +166 -0
  114. package/dist/bundle/decode-6XK55WYV.js +297 -0
  115. package/dist/bundle/definitions-GIQCGYPR.js +7986 -0
  116. package/dist/bundle/dispatch-JQBAZWCL.js +411 -0
  117. package/dist/bundle/dist-2TV3NVE5.js +7577 -0
  118. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  119. package/dist/bundle/echarts-YRRVLEX3.js +42501 -0
  120. package/dist/bundle/embed-L3EEQSGX.js +38 -0
  121. package/dist/bundle/embedder-BIKLBV3J.js +111 -0
  122. package/dist/bundle/failure-I6AAF5R5.js +25 -0
  123. package/dist/bundle/first-run-W6G6TYZ2.js +29 -0
  124. package/dist/bundle/first-screen-ITIAJIBU.js +37 -0
  125. package/dist/bundle/hast-util-from-html-ZHU6HGIE.js +10531 -0
  126. package/dist/bundle/hast-util-to-html-IIFHILP5.js +998 -0
  127. package/dist/bundle/hast-util-to-mdast-D62XX3NR.js +2272 -0
  128. package/dist/bundle/instructions-AG7SRWTR.js +11 -0
  129. package/dist/bundle/mcp-YGOAUNC3.js +167 -0
  130. package/dist/bundle/mdast-util-from-markdown-WVUJDSUO.js +1900 -0
  131. package/dist/bundle/mdast-util-gfm-KN2D32QS.js +1040 -0
  132. package/dist/bundle/mdast-util-to-hast-AYJV7KAE.js +879 -0
  133. package/dist/bundle/mdast-util-to-markdown-UCAJNHJO.js +18 -0
  134. package/dist/bundle/meeting-combined-CQJ3JHHU.js +24 -0
  135. package/dist/bundle/meeting-model-MZ7VVBNK.js +25 -0
  136. package/dist/bundle/meeting-semantic-DADWRRHP.js +22 -0
  137. package/dist/bundle/micromark-extension-gfm-EEJRRJ36.js +1771 -0
  138. package/dist/bundle/node-GJQYN4FT.js +176 -0
  139. package/dist/bundle/node-JJ3WDCNJ.js +2340 -0
  140. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  141. package/dist/bundle/node-sqlite-TPR62DT2.js +74 -0
  142. package/dist/bundle/oauth-WGY7JQVW.js +20 -0
  143. package/dist/bundle/open-DE7QZNAN.js +23 -0
  144. package/dist/bundle/openai-NHEFT3HS.js +238 -0
  145. package/dist/bundle/process-MEKCZMX3.js +91 -0
  146. package/dist/bundle/program-EP2S5BTM.js +38857 -0
  147. package/dist/bundle/prompt-PWY53BYH.js +17 -0
  148. package/dist/bundle/recognize-74TXHKMQ.js +26 -0
  149. package/dist/bundle/remote-F5TJZ5ER.js +31 -0
  150. package/dist/bundle/rerank-HWUO52UF.js +52 -0
  151. package/dist/bundle/schemas-4K6WWS5N.js +2157 -0
  152. package/dist/bundle/serve-I2USUY4X.js +199 -0
  153. package/dist/bundle/server-GDYDNO6K.js +79 -0
  154. package/dist/bundle/server-KYUW2AHB.js +212 -0
  155. package/dist/bundle/sqlite-runtime-N6VFGBJK.js +20 -0
  156. package/dist/bundle/state-L6JSCN77.js +36 -0
  157. package/dist/bundle/store-EPG2YPN3.js +291 -0
  158. package/dist/bundle/store-SQWQJE32.js +181 -0
  159. package/dist/bundle/store-maintenance-command-FTGSICVA.js +66 -0
  160. package/dist/bundle/surface-SNMHY6GP.js +65 -0
  161. package/dist/bundle/wordpress.js +183 -0
  162. package/dist/commands/api.d.ts +22 -0
  163. package/dist/commands/api.d.ts.map +1 -0
  164. package/dist/commands/api.js +37 -0
  165. package/dist/commands/api.js.map +1 -0
  166. package/dist/commands/content.d.ts +4 -0
  167. package/dist/commands/content.d.ts.map +1 -0
  168. package/dist/commands/content.js +94 -0
  169. package/dist/commands/content.js.map +1 -0
  170. package/dist/commands/session.d.ts +8 -0
  171. package/dist/commands/session.d.ts.map +1 -0
  172. package/dist/commands/session.js +28 -0
  173. package/dist/commands/session.js.map +1 -0
  174. package/dist/config.d.ts +13 -0
  175. package/dist/config.d.ts.map +1 -0
  176. package/dist/config.js +69 -0
  177. package/dist/config.js.map +1 -0
  178. package/dist/context.d.ts +37 -0
  179. package/dist/context.d.ts.map +1 -0
  180. package/dist/context.js +31 -0
  181. package/dist/context.js.map +1 -0
  182. package/dist/generated/definitions.d.ts +3 -0
  183. package/dist/generated/definitions.d.ts.map +1 -0
  184. package/dist/generated/definitions.js +7982 -0
  185. package/dist/generated/definitions.js.map +1 -0
  186. package/dist/generated/manifest.d.ts +6 -0
  187. package/dist/generated/manifest.d.ts.map +1 -0
  188. package/dist/generated/manifest.js +8830 -0
  189. package/dist/generated/manifest.js.map +1 -0
  190. package/dist/generated/schemas.d.ts +229 -0
  191. package/dist/generated/schemas.d.ts.map +1 -0
  192. package/dist/generated/schemas.js +2019 -0
  193. package/dist/generated/schemas.js.map +1 -0
  194. package/dist/generated/types.d.ts +3365 -0
  195. package/dist/generated/types.d.ts.map +1 -0
  196. package/dist/generated/types.js +5 -0
  197. package/dist/generated/types.js.map +1 -0
  198. package/dist/generated/wirecat-config.d.ts +11 -0
  199. package/dist/generated/wirecat-config.d.ts.map +1 -0
  200. package/dist/generated/wirecat-config.js +337 -0
  201. package/dist/generated/wirecat-config.js.map +1 -0
  202. package/dist/identity.d.ts +28 -0
  203. package/dist/identity.d.ts.map +1 -0
  204. package/dist/identity.js +29 -0
  205. package/dist/identity.js.map +1 -0
  206. package/dist/index.d.ts +3 -0
  207. package/dist/index.d.ts.map +1 -0
  208. package/dist/index.js +3 -0
  209. package/dist/index.js.map +1 -0
  210. package/dist/program.d.ts +6 -0
  211. package/dist/program.d.ts.map +1 -0
  212. package/dist/program.js +53 -0
  213. package/dist/program.js.map +1 -0
  214. package/dist/version.d.ts +2 -0
  215. package/dist/version.d.ts.map +1 -0
  216. package/dist/version.js +2 -0
  217. package/dist/version.js.map +1 -0
  218. package/dist/wcat.d.ts +3 -0
  219. package/dist/wcat.d.ts.map +1 -0
  220. package/dist/wcat.js +4 -0
  221. package/dist/wcat.js.map +1 -0
  222. package/package.json +87 -4
  223. package/skills/wordpress-cli/SKILL.md +88 -0
  224. package/skills/wordpress-cli/references/api/api-block-directory.md +17 -0
  225. package/skills/wordpress-cli/references/api/api-block-patterns.md +13 -0
  226. package/skills/wordpress-cli/references/api/api-block-types.md +34 -0
  227. package/skills/wordpress-cli/references/api/api-blocks.md +159 -0
  228. package/skills/wordpress-cli/references/api/api-categories.md +69 -0
  229. package/skills/wordpress-cli/references/api/api-comments.md +79 -0
  230. package/skills/wordpress-cli/references/api/api-font-collections.md +16 -0
  231. package/skills/wordpress-cli/references/api/api-font-families.md +122 -0
  232. package/skills/wordpress-cli/references/api/api-global-styles.md +29 -0
  233. package/skills/wordpress-cli/references/api/api-media.md +106 -0
  234. package/skills/wordpress-cli/references/api/api-menu-items.md +115 -0
  235. package/skills/wordpress-cli/references/api/api-menu-locations.md +22 -0
  236. package/skills/wordpress-cli/references/api/api-menus.md +69 -0
  237. package/skills/wordpress-cli/references/api/api-navigation.md +155 -0
  238. package/skills/wordpress-cli/references/api/api-pages.md +161 -0
  239. package/skills/wordpress-cli/references/api/api-pattern-directory.md +23 -0
  240. package/skills/wordpress-cli/references/api/api-plugins.md +25 -0
  241. package/skills/wordpress-cli/references/api/api-posts.md +166 -0
  242. package/skills/wordpress-cli/references/api/api-search.md +21 -0
  243. package/skills/wordpress-cli/references/api/api-settings.md +19 -0
  244. package/skills/wordpress-cli/references/api/api-sidebars.md +34 -0
  245. package/skills/wordpress-cli/references/api/api-statuses.md +22 -0
  246. package/skills/wordpress-cli/references/api/api-tags.md +69 -0
  247. package/skills/wordpress-cli/references/api/api-taxonomies.md +23 -0
  248. package/skills/wordpress-cli/references/api/api-template-parts.md +38 -0
  249. package/skills/wordpress-cli/references/api/api-templates.md +38 -0
  250. package/skills/wordpress-cli/references/api/api-themes.md +12 -0
  251. package/skills/wordpress-cli/references/api/api-types.md +22 -0
  252. package/skills/wordpress-cli/references/api/api-users.md +149 -0
  253. package/skills/wordpress-cli/references/api/api-widget-types.md +46 -0
  254. package/skills/wordpress-cli/references/api/api-widgets.md +57 -0
  255. package/skills/wordpress-cli/references/api/api-wp-pattern-category.md +69 -0
  256. package/skills/wordpress-cli/references/api.md +44 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,27 @@
1
+ # Changelog
2
+
3
+ Notable changes to `@wirecat/wordpress-cli`. One section per version, newest first.
4
+
5
+ ## 0.1.0 — 19.11.2026
6
+
7
+ ### Added
8
+
9
+ - Started from `@wirecat/cli-template` 0.32.0.
10
+ - Built from one file, `wirecat.config.ts`, with no hooks, plus one command name and the permission key form in
11
+ `scripts/generate.ts`.
12
+ - **`wordpress <profile> session start --site <address> --login <user>` signs in with an application password**
13
+ from stdin, checked against `GET /wp/v2/users/me`, and keeps it with its site. It goes to that site alone.
14
+ - **`wordpress <profile> sync` copies your posts and pages into WireCat's local store**, every status and the trash
15
+ too, with their tags, categories and authors. The text is kept as Markdown. Later syncs read only what changed.
16
+ - **`wordpress <profile> posts list|show|search|stats`, `tags list`, `users list` and `channels list` read the
17
+ copy**, offline too.
18
+ - **`wordpress <profile> posts create|update|publish|unpublish|delete` write to the site.** A new post is a draft.
19
+ Publishing, now or with `--at-time`, has its own key. A delete goes to the trash, and `--allow-delete` deletes for
20
+ good. Each asks by default. A post with blocks or embeds that Markdown cannot keep keeps its body unless
21
+ `--replace-body`, and a post changed on the site since the last sync is not overwritten. Pages are read, not
22
+ written: a write to a page stops with `content.write-unsupported`.
23
+ - **`wordpress <profile> api` runs every `wp/v2` route of WordPress 6.9.4**, each with its own flags, help and
24
+ `--json`. Publishing and deleting for good need their own keys. Installing a plugin, changing a site setting,
25
+ making or changing a user or a comment, and changing templates, widgets, menus or navigation ask by default.
26
+ `api posts-create` and `api pages-create` check `posts.create` too, and their updates check `posts.update`.
27
+ `batch/v1` and making an application password are never offered.
package/LICENSE ADDED
@@ -0,0 +1,204 @@
1
+ Copyright (c) 2026 Viacheslav Ptsarev
2
+
3
+
4
+ Apache License
5
+ Version 2.0, January 2004
6
+ http://www.apache.org/licenses/
7
+
8
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
9
+
10
+ 1. Definitions.
11
+
12
+ "License" shall mean the terms and conditions for use, reproduction,
13
+ and distribution as defined by Sections 1 through 9 of this document.
14
+
15
+ "Licensor" shall mean the copyright owner or entity authorized by
16
+ the copyright owner that is granting the License.
17
+
18
+ "Legal Entity" shall mean the union of the acting entity and all
19
+ other entities that control, are controlled by, or are under common
20
+ control with that entity. For the purposes of this definition,
21
+ "control" means (i) the power, direct or indirect, to cause the
22
+ direction or management of such entity, whether by contract or
23
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
24
+ outstanding shares, or (iii) beneficial ownership of such entity.
25
+
26
+ "You" (or "Your") shall mean an individual or Legal Entity
27
+ exercising permissions granted by this License.
28
+
29
+ "Source" form shall mean the preferred form for making modifications,
30
+ including but not limited to software source code, documentation
31
+ source, and configuration files.
32
+
33
+ "Object" form shall mean any form resulting from mechanical
34
+ transformation or translation of a Source form, including but
35
+ not limited to compiled object code, generated documentation,
36
+ and conversions to other media types.
37
+
38
+ "Work" shall mean the work of authorship, whether in Source or
39
+ Object form, made available under the License, as indicated by a
40
+ copyright notice that is included in or attached to the work
41
+ (an example is provided in the Appendix below).
42
+
43
+ "Derivative Works" shall mean any work, whether in Source or Object
44
+ form, that is based on (or derived from) the Work and for which the
45
+ editorial revisions, annotations, elaborations, or other modifications
46
+ represent, as a whole, an original work of authorship. For the purposes
47
+ of this License, Derivative Works shall not include works that remain
48
+ separable from, or merely link (or bind by name) to the interfaces of,
49
+ the Work and Derivative Works thereof.
50
+
51
+ "Contribution" shall mean any work of authorship, including
52
+ the original version of the Work and any modifications or additions
53
+ to that Work or Derivative Works thereof, that is intentionally
54
+ submitted to Licensor for inclusion in the Work by the copyright owner
55
+ or by an individual or Legal Entity authorized to submit on behalf of
56
+ the copyright owner. For the purposes of this definition, "submitted"
57
+ means any form of electronic, verbal, or written communication sent
58
+ to the Licensor or its representatives, including but not limited to
59
+ communication on electronic mailing lists, source code control systems,
60
+ and issue tracking systems that are managed by, or on behalf of, the
61
+ Licensor for the purpose of discussing and improving the Work, but
62
+ excluding communication that is conspicuously marked or otherwise
63
+ designated in writing by the copyright owner as "Not a Contribution."
64
+
65
+ "Contributor" shall mean Licensor and any individual or Legal Entity
66
+ on behalf of whom a Contribution has been received by Licensor and
67
+ subsequently incorporated within the Work.
68
+
69
+ 2. Grant of Copyright License. Subject to the terms and conditions of
70
+ this License, each Contributor hereby grants to You a perpetual,
71
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
+ copyright license to reproduce, prepare Derivative Works of,
73
+ publicly display, publicly perform, sublicense, and distribute the
74
+ Work and such Derivative Works in Source or Object form.
75
+
76
+ 3. Grant of Patent License. Subject to the terms and conditions of
77
+ this License, each Contributor hereby grants to You a perpetual,
78
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
+ (except as stated in this section) patent license to make, have made,
80
+ use, offer to sell, sell, import, and otherwise transfer the Work,
81
+ where such license applies only to those patent claims licensable
82
+ by such Contributor that are necessarily infringed by their
83
+ Contribution(s) alone or by combination of their Contribution(s)
84
+ with the Work to which such Contribution(s) was submitted. If You
85
+ institute patent litigation against any entity (including a
86
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
87
+ or a Contribution incorporated within the Work constitutes direct
88
+ or contributory patent infringement, then any patent licenses
89
+ granted to You under this License for that Work shall terminate
90
+ as of the date such litigation is filed.
91
+
92
+ 4. Redistribution. You may reproduce and distribute copies of the
93
+ Work or Derivative Works thereof in any medium, with or without
94
+ modifications, and in Source or Object form, provided that You
95
+ meet the following conditions:
96
+
97
+ (a) You must give any other recipients of the Work or
98
+ Derivative Works a copy of this License; and
99
+
100
+ (b) You must cause any modified files to carry prominent notices
101
+ stating that You changed the files; and
102
+
103
+ (c) You must retain, in the Source form of any Derivative Works
104
+ that You distribute, all copyright, patent, trademark, and
105
+ attribution notices from the Source form of the Work,
106
+ excluding those notices that do not pertain to any part of
107
+ the Derivative Works; and
108
+
109
+ (d) If the Work includes a "NOTICE" text file as part of its
110
+ distribution, then any Derivative Works that You distribute must
111
+ include a readable copy of the attribution notices contained
112
+ within such NOTICE file, excluding those notices that do not
113
+ pertain to any part of the Derivative Works, in at least one
114
+ of the following places: within a NOTICE text file distributed
115
+ as part of the Derivative Works; within the Source form or
116
+ documentation, if provided along with the Derivative Works; or,
117
+ within a display generated by the Derivative Works, if and
118
+ wherever such third-party notices normally appear. The contents
119
+ of the NOTICE file are for informational purposes only and
120
+ do not modify the License. You may add Your own attribution
121
+ notices within Derivative Works that You distribute, alongside
122
+ or as an addendum to the NOTICE text from the Work, provided
123
+ that such additional attribution notices cannot be construed
124
+ as modifying the License.
125
+
126
+ You may add Your own copyright statement to Your modifications and
127
+ may provide additional or different license terms and conditions
128
+ for use, reproduction, or distribution of Your modifications, or
129
+ for any such Derivative Works as a whole, provided Your use,
130
+ reproduction, and distribution of the Work otherwise complies with
131
+ the conditions stated in this License.
132
+
133
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
134
+ any Contribution intentionally submitted for inclusion in the Work
135
+ by You to the Licensor shall be under the terms and conditions of
136
+ this License, without any additional terms or conditions.
137
+ Notwithstanding the above, nothing herein shall supersede or modify
138
+ the terms of any separate license agreement you may have executed
139
+ with Licensor regarding such Contributions.
140
+
141
+ 6. Trademarks. This License does not grant permission to use the trade
142
+ names, trademarks, service marks, or product names of the Licensor,
143
+ except as required for reasonable and customary use in describing the
144
+ origin of the Work and reproducing the content of the NOTICE file.
145
+
146
+ 7. Disclaimer of Warranty. Unless required by applicable law or
147
+ agreed to in writing, Licensor provides the Work (and each
148
+ Contributor provides its Contributions) on an "AS IS" BASIS,
149
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
150
+ implied, including, without limitation, any warranties or conditions
151
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
152
+ PARTICULAR PURPOSE. You are solely responsible for determining the
153
+ appropriateness of using or redistributing the Work and assume any
154
+ risks associated with Your exercise of permissions under this License.
155
+
156
+ 8. Limitation of Liability. In no event and under no legal theory,
157
+ whether in tort (including negligence), contract, or otherwise,
158
+ unless required by applicable law (such as deliberate and grossly
159
+ negligent acts) or agreed to in writing, shall any Contributor be
160
+ liable to You for damages, including any direct, indirect, special,
161
+ incidental, or consequential damages of any character arising as a
162
+ result of this License or out of the use or inability to use the
163
+ Work (including but not limited to damages for loss of goodwill,
164
+ work stoppage, computer failure or malfunction, or any and all
165
+ other commercial damages or losses), even if such Contributor
166
+ has been advised of the possibility of such damages.
167
+
168
+ 9. Accepting Warranty or Additional Liability. While redistributing
169
+ the Work or Derivative Works thereof, You may choose to offer,
170
+ and charge a fee for, acceptance of support, warranty, indemnity,
171
+ or other liability obligations and/or rights consistent with this
172
+ License. However, in accepting such obligations, You may act only
173
+ on Your own behalf and on Your sole responsibility, not on behalf
174
+ of any other Contributor, and only if You agree to indemnify,
175
+ defend, and hold each Contributor harmless for any liability
176
+ incurred by, or claims asserted against, such Contributor by reason
177
+ of your accepting any such warranty or additional liability.
178
+
179
+ END OF TERMS AND CONDITIONS
180
+
181
+ APPENDIX: How to apply the Apache License to your work.
182
+
183
+ To apply the Apache License to your work, attach the following
184
+ boilerplate notice, with the fields enclosed by brackets "[]"
185
+ replaced with your own identifying information. (Don't include
186
+ the brackets!) The text should be enclosed in the appropriate
187
+ comment syntax for the file format. We also recommend that a
188
+ file or class name and description of purpose be included on the
189
+ same "printed page" as the copyright notice for easier
190
+ identification within third-party archives.
191
+
192
+ Copyright [yyyy] [name of copyright owner]
193
+
194
+ Licensed under the Apache License, Version 2.0 (the "License");
195
+ you may not use this file except in compliance with the License.
196
+ You may obtain a copy of the License at
197
+
198
+ http://www.apache.org/licenses/LICENSE-2.0
199
+
200
+ Unless required by applicable law or agreed to in writing, software
201
+ distributed under the License is distributed on an "AS IS" BASIS,
202
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
+ See the License for the specific language governing permissions and
204
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,249 @@
1
- # Temporary Holding Version
1
+ # wordpress: WordPress CLI and MCP server for AI agents
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <p align="center">
4
+ Write and check your blog without opening wp-admin. Ask Claude, ChatGPT, Codex or any AI agent, and it answers from
5
+ a copy of your WordPress posts and pages on your computer, and writes drafts for you to publish.
6
+ </p>
7
+
8
+ <p align="center">
9
+ <a href="https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/index.md">Docs</a> ·
10
+ <a href="https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/installation.md">Install</a> ·
11
+ <a href="https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/usage.md">Usage</a> ·
12
+ <a href="https://discord.gg/DebENqbRrJ">Discord</a>
13
+ </p>
14
+
15
+ <p align="center">
16
+ <a href="https://www.npmjs.com/package/@wirecat/wordpress-cli"><img src="https://img.shields.io/npm/v/@wirecat/wordpress-cli" alt="npm"></a>
17
+ <a href="https://github.com/WireCatLabs/wordpress-cli/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue" alt="License: Apache 2.0"></a>
18
+ </p>
19
+
20
+ - **Ask instead of clicking.** "Which drafts did I start this month?" gets an answer in a second, in Claude Code,
21
+ Codex, Claude Desktop or any app that speaks MCP.
22
+ - **Your site, offline.** Posts and pages with every status, the trash too, are kept on your computer as Markdown.
23
+ - **Drafts from your agent, publishing on your word.** The agent writes a draft. Publishing is a step of its own,
24
+ with its own permission.
25
+
26
+ ## What you get
27
+
28
+ - **The answer, not the search.** Ask about a post in your own words. The agent finds it by its title and text, with
29
+ its status, tags and author.
30
+ - **Every draft and scheduled post in one list.** Filter by status, by tag, by author or by the day it went out.
31
+ - **Drafts written for you.** Hand the agent your notes, and it makes a draft with a title, an excerpt and tags.
32
+ - **Publish now or later.** Publish a draft at once, or schedule it for a time you name. Take a post back to a draft
33
+ with one command.
34
+ - **The whole WordPress API too.** Media, comments, menus and the rest of the site, one command per operation.
35
+
36
+ ```text
37
+ You: Which drafts do I have about pricing?
38
+ Agent: (runs wordpress blog posts search pricing, then posts list status:draft)
39
+ · 41 "Why we changed our pricing", draft, last changed on Monday
40
+ · 57 "Pricing FAQ", draft, tags: pricing, faq
41
+ You: Turn my notes in pricing-notes.md into a third draft.
42
+ Agent: (runs wordpress blog posts create --title "Pricing in 2027" --text-file pricing-notes.md)
43
+ Draft 63 is ready. Publish it when you want.
44
+ ```
45
+
46
+ *Invented posts, illustrative output.*
47
+
48
+ ## Why wordpress
49
+
50
+ - **A copy of your site on your computer.** `sync` copies your posts and pages, tags, categories and authors into a
51
+ local store. Lists and search answer from it with no request to your site, also offline.
52
+ - **A permission on every action.** Creating, changing, publishing and deleting each have their own key, and each
53
+ asks first at a terminal. `WCWP_READ_ONLY=1` stops every write.
54
+ - **The password stays in your system keyring.** It never appears in output, errors or run records, and is never
55
+ taken as an argument.
56
+ - **Your posts beside your other context.** They sit in the same local store as your messages, mail, notes and
57
+ meetings from the other WireCat tools.
58
+ - **Safe edits.** A write checks that the post did not change on the site since the last sync. A post with
59
+ galleries or embeds keeps its body unless you say to replace it.
60
+ - **Free and open source.** Apache 2.0.
61
+
62
+ ## Quick start
63
+
64
+ ```sh
65
+ npm install -g @wirecat/wordpress-cli
66
+ wordpress skill install # the agent skill, for Claude Code, Codex, Gemini CLI and OpenClaw
67
+ wordpress blog session start --site blog.example.com --login anna # paste your application password
68
+ wordpress blog sync # copy your posts, pages, tags and authors
69
+ wordpress blog posts list status:draft
70
+ ```
71
+
72
+ `blog` is a profile, a name you choose for one site and one WordPress user. It is the first word of every command
73
+ that uses an account, and none is ever assumed.
74
+
75
+ **The application password.** In WordPress, open Users → Profile, find Application Passwords, give the new password
76
+ a name and click Add. WordPress 5.7 or later makes it, and only over https. `session start` asks for it without
77
+ showing it, checks it with your site and keeps it with that site in the system keyring. The password goes to that
78
+ site alone, never to another site on the same host. For a full copy, sign in as an Administrator.
79
+
80
+ The command is `wordpress`, not `wp`: the official WP-CLI already uses `wp`. You need Node.js 22.16 or a later 22.x,
81
+ or Node.js 24 or later. `wordpress doctor` needs no network and shows what is set up.
82
+
83
+ More: [installation and sign-in, step by step](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/installation.md)
84
+
85
+ ## Use it with your agent
86
+
87
+ Ask in plain words. The agent picks the commands.
88
+
89
+ > *"Use wordpress. What did I publish last month, and what is still a draft?"*
90
+ > *"Use wordpress. Write a draft from notes.md and tag it release."*
91
+ > *"Use wordpress. Schedule draft 63 for Monday 9:00."*
92
+
93
+ - **Claude Code, Codex, Gemini CLI** and other agents with a terminal run `wordpress` themselves.
94
+ `wordpress skill install` teaches them how.
95
+ - **Claude Desktop, Cursor** and other MCP apps connect to the WordPress MCP server, `wordpress blog mcp serve`.
96
+ - **ChatGPT or Claude in the browser** reach it through your own tunnel, after a login with a one-time code.
97
+
98
+ ```sh
99
+ wordpress blog config set permissions.posts.publish deny # an agent writes drafts, you publish
100
+ wordpress blog mcp add claude-code --allow-writes # or: codex
101
+ wordpress blog mcp config # the entry for Claude Desktop, Cursor and others
102
+ ```
103
+
104
+ Over MCP nobody is at a terminal to answer a question, so a write set to `ask` goes ahead. An agent over MCP can
105
+ publish a post. That is the owner's choice for this tool. `wordpress blog runs list` shows each publication for 7
106
+ days (`keep_successful_runs_for_days`). The first line above stops it.
107
+
108
+ More: [agents and MCP](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/mcp.md) ·
109
+ [permissions](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/permissions.md)
110
+
111
+ ## What needs which key
112
+
113
+ - **Publishing** needs `<route>.publish` (`posts.publish`, `pages.publish`): a write that sets `status` to
114
+ `publish` or `future`, or that sets `date`, `date_gmt` or `password`, unless the same call sets `status` to
115
+ `draft`, `pending` or `private`. WordPress publishes a scheduled post whose date moves into the past, and a
116
+ password taken off a published post makes it public, with no status in the call. `private` is not public.
117
+ Where a route's `status` starts at `publish` (menu items, for one), each create needs the key, as the
118
+ write publishes unless it says otherwise.
119
+ - **Deleting** needs `<route>.delete`. With `force=true`, which deletes for good instead of moving to the trash,
120
+ it needs `<route>.delete.force` too. Both ask by default.
121
+ - WordPress's batch route (`batch/v1`) is never offered: one batch call would run other routes' writes past
122
+ their keys.
123
+
124
+ Known limit of the raw `api` group: WordPress publishes a scheduled post whose time has already passed (a
125
+ missed schedule) on any edit, a title change too. The CLI cannot see that without reading the post first.
126
+
127
+ ## What it can do
128
+
129
+ ### Read your posts
130
+
131
+ ```sh
132
+ wordpress blog posts list status:published "published:>=2026-10-01"
133
+ wordpress blog posts list type:page
134
+ wordpress blog posts search "pricing change"
135
+ wordpress blog posts show 41 # the text as Markdown, its tags and authors by name
136
+ wordpress blog tags list # tags and categories with their ids
137
+ wordpress blog users list # the authors
138
+ ```
139
+
140
+ ### Write and publish
141
+
142
+ ```sh
143
+ wordpress blog posts create --title "Version 3" --text-file notes.md --tags 12,14
144
+ wordpress blog posts update 63 --description "What changed in version 3"
145
+ wordpress blog posts publish 63 # now
146
+ wordpress blog posts publish 63 --at-time 2026-12-01T09:00:00Z # later
147
+ wordpress blog posts unpublish 63 # back to a draft
148
+ wordpress blog posts delete 63 # to the trash
149
+ ```
150
+
151
+ ### Any WordPress API operation
152
+
153
+ ```sh
154
+ wordpress blog api list # every operation, without calling WordPress
155
+ wordpress blog api media-list # the media library
156
+ ```
157
+
158
+ More: [using wordpress](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/usage.md) ·
159
+ [every command](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/commands.md)
160
+
161
+ ## How it works
162
+
163
+ - **An application password.** You make it in your WordPress profile. It can do what your user can, no more. It is
164
+ kept in the system keyring, or in a private file with `--credential-storage file`.
165
+ - **A local copy.** `sync` copies posts and pages with every status, the trash included, with their tags,
166
+ categories and authors, into the WireCat local store. Text is kept as Markdown. Later syncs read only what changed.
167
+ - **Writes go to your site.** `posts create` makes a draft, and the other writes change the post on your site, then
168
+ the copy.
169
+ - **Made for scripts.** `--json` prints one JSON value for every command, and an error comes as JSON with a code to
170
+ branch on.
171
+
172
+ ## Settings and permissions
173
+
174
+ Each profile has a level for every command and every WordPress API operation: `allow`, `ask`, `readonly` or `deny`.
175
+ Every `posts` write asks first at a terminal.
176
+
177
+ ```sh
178
+ wordpress blog config set permissions.posts.publish deny # nothing goes public from this profile
179
+ wordpress blog config show # each setting and where it came from
180
+ ```
181
+
182
+ More: [permissions](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/permissions.md) ·
183
+ [settings](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/configuration.md)
184
+
185
+ ## Limits
186
+
187
+ - Only self-hosted WordPress with application passwords. WordPress.com sites, which sign in with OAuth, are not
188
+ supported. Sign-in through the browser is not there yet: you paste the password.
189
+ - An Author or Contributor gets only part of the site. WordPress refuses the pages list to both, so the posts sync
190
+ stays partial and changes on the site do not reach the copy. A Contributor also sees only their own posts. Only an
191
+ Administrator gets the users list. Sign in as an Administrator for a full copy.
192
+ - No view counts. WordPress itself keeps none, and Jetpack stats are not supported.
193
+ - A post with galleries, columns, embeds or iframes keeps its body: `posts update` changes its title, excerpt, tags
194
+ and status only, unless you add `--replace-body`.
195
+ - Plugin fields, such as those of SEO or custom field plugins, are not in the API description. The `api` group sends
196
+ them only in a raw `--body`.
197
+ - Before 1.0, a minor version may change commands, `--json` fields and MCP tools. The changelog lists each such
198
+ change under "may break callers".
199
+
200
+ ## Security
201
+
202
+ The application password can do what your WordPress user can, so `wordpress` keeps it in the system keyring and
203
+ never prints it, in output, errors or run records. It talks only to the site you signed in to. Text from WordPress is
204
+ marked as untrusted, so an agent reads a post as data, not as an instruction.
205
+
206
+ More: [security](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/security.md) · Report a vulnerability:
207
+ [SECURITY.md](https://github.com/WireCatLabs/wordpress-cli/blob/main/SECURITY.md)
208
+
209
+ ## When something goes wrong
210
+
211
+ ```sh
212
+ wordpress doctor # what is set up, without connecting
213
+ wordpress blog session status --check # asks your site whose password it is
214
+ ```
215
+
216
+ More: [troubleshooting](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/troubleshooting.md) · Ask on
217
+ [Discord](https://discord.gg/DebENqbRrJ) · Bugs go to this repository's
218
+ [issues](https://github.com/WireCatLabs/wordpress-cli/issues).
219
+
220
+ ## Documentation
221
+
222
+ Everything is in [docs/](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/index.md): installation, usage,
223
+ MCP, permissions, settings, the command reference and the roadmap.
224
+
225
+ ## Development
226
+
227
+ You need Node.js 22.16 or a later 22.x, or Node.js 24 or later, and pnpm.
228
+
229
+ ```sh
230
+ pnpm install && pnpm test
231
+ ```
232
+
233
+ Tests use a fake WordPress built from the API description of WordPress 6.9.4, with invented posts, and nothing
234
+ reaches a real site. The CLI is described in one file, `wirecat.config.ts`, and started from
235
+ [cli-template](https://github.com/WireCatLabs/cli-template).
236
+
237
+ More: [design](https://github.com/WireCatLabs/wordpress-cli/blob/main/docs/dev/DESIGN.md) ·
238
+ [working rules](https://github.com/WireCatLabs/wordpress-cli/blob/main/AGENTS.md)
239
+
240
+ Pull requests, bug reports and ideas go to [issues](https://github.com/WireCatLabs/wordpress-cli/issues).
241
+
242
+ ## Part of WireCat
243
+
244
+ `wordpress` is one of the [WireCat](https://wirecat.dev) tools: open-source, local-first command-line tools that give
245
+ AI agents your context from messengers, mail, calendars, CRMs and documents. Each one works on its own.
246
+
247
+ ## License
248
+
249
+ [Apache 2.0](https://github.com/WireCatLabs/wordpress-cli/blob/main/LICENSE)