Skip to content

Publish prep + memory_update fix + semantic-release pipeline - #3

Merged
abogartz merged 4 commits into
mainfrom
npm-publish-prep
Oct 18, 2026
Merged

abogartz merged 4 commits into
mainfrom
npm-publish-prep

Conversation

@abogartz

@abogartz abogartz commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

What this PR ships

Everything needed to go from "manually published 0.1.0" to fully automated semantic releases on merge to main.

1. fix: address memory_update rows by query (293fe1a)

Cherry-pick of 579aa07 (PR #2's fix, which had landed on v2-port instead of main). The memory_update tool's query input was declared but ignored — the target row was always the last active row of a scope+type, so back-to-back updates clobbered each other. Now resolves query against row id first, then fuzzy content match; merge_review revives its survivor. Re-leveled as a Conventional Commit so it triggers the 0.1.1 patch release. The published 0.1.0 does not contain this fix — merging this PR ships it as 0.1.1 automatically.

2. Publish prep (73b7fba, already reviewed)

npm metadata, npm-first README, OIDC notes.

3. ci: semantic-release pipeline (864d679)

  • .github/workflows/release.yml rewritten: push: [main] + workflow_dispatch → bun install/test/typecheck → npx semantic-release.
    • semantic-release analyzes Conventional Commits since the last tag → decides patch/minor/major → bumps package.json → pushes v{version} → GitHub Release with notes → npm publish via Trusted Publishing (OIDC, id-token: write, auto provenance, zero secrets).
    • No releasable commits → no-op (doubles as CI on main). Bump commit carries [skip ci].
    • Deliberately no registry-url on setup-node (its .npmrc breaks semantic-release OIDC auth).
  • release.config.json: branches: ["main"], tagFormat: "v${version}" (defaults cover the rest).
  • semantic-release@^25 added as devDependency (CI runs it via npx on Node 22; repo stays Bun-native for install/test).

Bootstrap state (already done)

  • Tag v0.1.0 pushed at d520a15 — the exact gitHead of the published npm 0.1.0 — so semantic-release starts from reality: the fix: commits after it produce 0.1.1 on the first CI run after merge.

After merge

  1. First Actions run should publish 0.1.1 (OIDC). Watch: gh run watch.
  2. Requires the trusted publisher on npmjs.com: owner abogartz, repo opencode-self-improvement, workflow release.yml, "npm publish" allowed (configs created after 2026-09-03 default to stage-only — then releases queue for 2FA approval instead, which also works).

Verification

  • bun test — 84 pass, 4 skip, 0 fail
  • bunx tsc --noEmit -p tsconfig.json — clean
  • bun install --frozen-lockfile — clean after lockfile update

…ompt text

The session.prompt hook appended the relevance-ranked knowledge block to
event.prompt.text. That field is stored verbatim as the user message and
rendered as-is in the TUI, so the whole <system-note> block leaked to the
user on every turn (OpenCode has no special handling for that tag).

Instead the prompt hook now stashes the block per session and the
session.context hook pushes it onto event.system alongside the digest —
invisible to the UI, still ranked against the current prompt.

Tests: rewrote the two prompt-hook tests to the new contract (text
untouched; memory delivered via context/system). 74 pass / 0 fail, tsc clean.
@abogartz abogartz changed the title Publish prep: npm metadata, npm-first README, OIDC release workflow Publish prep + memory_update fix + semantic-release pipeline Oct 18, 2026
@abogartz
abogartz merged commit 1acafa5 into main Oct 18, 2026
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant