From 64a7eaa37e2a63f5a63e656f772df4aa4d25a228 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Thu, 3 Dec 2026 12:22:56 +0100 Subject: [PATCH] docs: add buy me a coffee announcement to release runbook and readme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The release skill (0.2.0 → 0.3.0) now ends with a Buy Me a Coffee announcement left as a draft, mirroring the Micro.blog draft: step 12 fixes the INPUT (`create`, `mode: "draft"`, `audience: "public"`) and delegates the browser mechanics to the `buymeacoffee-post` skill, done only when `RESULT.mode` is "draft" and `RESULT.editUrl` is a real edit URL. Ego Browser logged in to BMC joins the prerequisites, and the verification section checks both drafts. Neither announcement is ever published by the agent; both wait in Alexander's queues. The README gains a "Support Museion" section linking the Buy Me a Coffee page, since the app suite is the author's only income. --- .agents/skills/release/SKILL.md | 19 ++++++++++++++----- AGENTS.md | 2 +- README.md | 8 ++++++++ 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.agents/skills/release/SKILL.md b/.agents/skills/release/SKILL.md index 3313518..29742cd 100644 --- a/.agents/skills/release/SKILL.md +++ b/.agents/skills/release/SKILL.md @@ -2,16 +2,16 @@ name: release description: "Cut a Museion release: bump, notes, rail, DMG, tag, publish." platforms: [macos] -version: 0.2.0 +version: 0.3.0 author: Hermes metadata: hermes: - tags: [Release, Museion, Xcode, Notarization, Gitea, apex, Micro.blog] + tags: [Release, Museion, Xcode, Notarization, Gitea, apex, Micro.blog, BuyMeACoffee] --- # Cutting a Museion release -Runs a release end to end: refresh the bundled apex renderer, version bump, changelog heading, release notes, the verify rail, sliced commits, an annotated tag, the notarized DMG from `scripts/release.sh`, then push and the Gitea release, and a Micro.blog announcement left as a **draft** for Alexander to publish. The skill decides nothing about signing — `release.sh` and the Account Holder's keychain do that — and it bumps no version on its own. Push and the forge release wait for Alexander's explicit go (root `AGENTS.md`, User Preferences); the Micro.blog post is never published by the agent. +Runs a release end to end: refresh the bundled apex renderer, version bump, changelog heading, release notes, the verify rail, sliced commits, an annotated tag, the notarized DMG from `scripts/release.sh`, then push and the Gitea release, then the announcements — Micro.blog and Buy Me a Coffee — each left as a **draft** for Alexander to publish. The skill decides nothing about signing — `release.sh` and the Account Holder's keychain do that — and it bumps no version on its own. Push and the forge release wait for Alexander's explicit go (root `AGENTS.md`, User Preferences); neither announcement is ever published by the agent. ## When to Use @@ -26,6 +26,7 @@ Runs a release end to end: refresh the bundled apex renderer, version bump, chan - Notary profile `museion-notary`, registered once by the Account Holder. The agent never runs `notarytool store-credentials`. - `tea` logged in to `git.babylondreams.de` (the default login). - Micro.blog announcement token in the login keychain: `security find-generic-password -a micro.blog -s com.babylondreams.Museion.release-announce -w` prints it (step 11 has the one-time `add-generic-password`). When missing, Alexander generates an App Token (Micro.blog → Account → App Tokens) and the agent stores it — never the other way around. +- Ego Browser running and logged in to Buy Me a Coffee — `buymeacoffee-post` has the one-time check. - Budget: ~2 min for `release.sh`, ~7 min for the rail. ## Procedure @@ -118,7 +119,14 @@ Run through the `terminal` tool. Each step ends on a check; the next starts when PY ``` Body: `docs/releases/X.Y.Z.md` is too long for a microblog post — distill it to a short announcement (what was fixed in plain words, the download link, the release-page link, "Developer ID signed and notarized"). A draft does NOT syndicate, so the `syndicate-to` targets in `q=config` (Mastodon/Bluesky/Threads) are not touched until Alexander publishes. Read back before reporting: `GET '/micropub?q=source&url='` must show `post-status: draft` and the content intact — a 2xx alone is not a result. Done when the read-back says draft and the report carries the `url` (the post's final address) and the `preview` link. `preview` is display-only — never the publish/update target. A token pasted into chat is in the transcript: recommend rotation after the run. -12. **Session log + DOX.** `write-log` for the release; the devlog commit follows the tag (the log is the record about the release, not part of it). DOX pass: root `AGENTS.md` (commands block, scripts index, session-log window) and `docs/AGENTS.md`. The log commit rides the next go. +12. **Buy Me a Coffee announcement — a DRAFT, never a publish.** The step-11 announcement as a BMC post, left for Alexander to publish. The mechanics (Ego Browser, the `scripts/bmc.js` driver, selectors, pitfalls) live in the `buymeacoffee-post` skill; the release only fixes the `INPUT`: + ```js + action: "create", mode: "draft", audience: "public", + title: "Museion X.Y.Z", + html: , + ``` + Done when `RESULT.mode` is `"draft"` and `RESULT.editUrl` is a `https://buymeacoffee.com/posts//edit` URL — the script prints `null` when the drafts list does not show the row, and that is not done. The edit URL goes in the report beside the Micro.blog `preview` link. +13. **Session log + DOX.** `write-log` for the release; the devlog commit follows the tag (the log is the record about the release, not part of it). DOX pass: root `AGENTS.md` (commands block, scripts index, session-log window) and `docs/AGENTS.md`. The log commit rides the next go. ## Quick Reference @@ -133,6 +141,7 @@ Run through the `terminal` tool. Each step ends on a check; the next starts when - Release: `tea releases create --tag vX.Y.Z --target -t "Museion X.Y.Z" -f -a ./dist/Museion-X.Y.Z.dmg` - Read back: `tea api '/repos/{owner}/{repo}/releases/tags/vX.Y.Z'` (Gitea spells it `tag_name`, not `tag`) - Micro.blog: `POST https://micro.blog/micropub` JSON `h-entry` + `post-status: draft` + `mp-destination` (mandatory — no default blog) + `mp-channel: default` → `202` + `Location`; read back `q=source&url=…` → `post-status: draft`. Token: Keychain service `com.babylondreams.Museion.release-announce`. Never publish. +- Buy Me a Coffee: `buymeacoffee-post` → `create` + `mode: "draft"` + `audience: "public"` → `RESULT.editUrl` into the report. Never publish. ## Pitfalls @@ -154,4 +163,4 @@ Run through the `terminal` tool. Each step ends on a check; the next starts when ## Verification -`tea api '/repos/{owner}/{repo}/releases/tags/vX.Y.Z'` → `draft: false`, one asset whose downloaded sha256 equals `shasum -a 256 dist/Museion-X.Y.Z.dmg`; `spctl -a -t open --context context:primary-signature -v dist/Museion-X.Y.Z.dmg` → `accepted, source=Notarized Developer ID`. Micro.blog: `GET https://micro.blog/micropub?q=source&url=` → `post-status: draft`, content intact — and the draft sits in Alexander's posts awaiting his publish. +`tea api '/repos/{owner}/{repo}/releases/tags/vX.Y.Z'` → `draft: false`, one asset whose downloaded sha256 equals `shasum -a 256 dist/Museion-X.Y.Z.dmg`; `spctl -a -t open --context context:primary-signature -v dist/Museion-X.Y.Z.dmg` → `accepted, source=Notarized Developer ID`. Micro.blog: `GET https://micro.blog/micropub?q=source&url=` → `post-status: draft`, content intact. Buy Me a Coffee: `RESULT.mode: "draft"` + `RESULT.editUrl` in the report. Both drafts sit in Alexander's queues awaiting his publish. diff --git a/AGENTS.md b/AGENTS.md index 6945145..67edbee 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -115,7 +115,7 @@ When the user requests a durable behavior change, record it here or in the relev | `MuseionTests/AGENTS.md` | Swift Testing unit suite (hosted in the app) | | `MuseionUITests/` | XCUITest smoke test — single file, no child doc yet | | `scripts/` | Verify rail + hooks + build/deploy/release-packaging scripts — contracts live in each script's header; full-test.sh is the sanctioned verify rail (#190), release.sh cuts the DMG from an already-bumped commit, no child doc | -| `.agents/skills/` | Project-local agent skills (cross-tool convention, committed) — `release/`: the end-to-end release runbook (apex refresh → bump → notes → rail → tag → DMG → go-gated push + Gitea release → Micro.blog announcement as a draft); no child doc | +| `.agents/skills/` | Project-local agent skills (cross-tool convention, committed) — `release/`: the end-to-end release runbook (apex refresh → bump → notes → rail → tag → DMG → go-gated push + Gitea release → Micro.blog + Buy Me a Coffee announcements as drafts); no child doc | | `docs/AGENTS.md` | Durable documentation — ADRs and their conventions | | `ref/writing skills/AGENTS.md` | Bundled writing-skill set — the G3a payload seeded into the museion profile | | `GLOSSARY.md` | Binding project glossary — shared vocabulary for app, mentor, and docs | diff --git a/README.md b/README.md index fbdf725..6e2bd22 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,14 @@ The app is signed with a Developer ID and notarized with Apple, so it opens like 5. **Run a Pass** from the Mentor pane. Read the verdict, work the Fix Cards one at a time, promote the patterns worth remembering into Learnings. 6. **Publish** when the piece is yours. +## Support Museion + +Museion is free and open source. It is one of a suite of apps I build and publish, and together they are my only income. + +Every feature above took hours to build. Those hours have to come from somewhere. If Museion has become part of how you write, a coffee at **[buymeacoffee.com/babylondreams](https://buymeacoffee.com/babylondreams)** keeps them coming, for this app and the rest of the suite. + +Thank you for writing with it. + ## Keyboard shortcuts | Action | Keys |