Skip to content

v2.36.0

Latest

Choose a tag to compare

@nhadaututtheky nhadaututtheky released this 03 Dec 17:47
7b97d4c

"Console" — Rune Business gets a management console (rune console, rune serve --console, a public sample page), OpenCode 2 is compiled natively, builds are reproducible (manifests, config explain, golden tests), and rune serve is hardened (proxy rate limits, flaky-tunnel retries).

Added

  • Native OpenCode 2 support. --platform opencode now compiles every surface OpenCode made native instead of skills alone: .opencode/agents/rune-*.md (66 subagents, with permissions derived from each agent's tool whitelist), .opencode/commands/rune.md (the /rune router with $ARGUMENTS), .opencode/plugins/rune/index.ts (preflight/sentinel before a tool call, dependency-doctor/quarantine after, completion-gate on session.idle), .opencode/opencode.json (a Rune-owned remote MCP entry for rune serve plus rune-* skill/subagent permission allows), and a managed AGENTS.md block. The project config and AGENTS.md merge in place, so existing keys (mcp.servers.companion-agent, permissions, instructions) survive install, rebuild and uninstall. opencode --version (or RUNE_OPENCODE_VERSION) selects the v2 shapes or the v1 singular paths/plugin API. rune hooks install --platform opencode, hooks status and hooks uninstall use the same generator, and rune serve connect opencode prints the MCP snippet. Set RUNE_BIN (plus optional RUNE_NODE) to test an unpublished checkout: the plugin calls that file with Node instead of npx @rune-kit/rune@<version>, because inside OpenCode process.execPath is the OpenCode binary, not Node. If that path disappears, the hooks fall back to the published package with one warning, and merging AGENTS.md is byte-identical across rebuilds.
  • Build manifests + reproducibility checks. Every rune build now writes rune-manifest.json: Rune version, Node/OS, platform, tier versions, the config snapshot and a sha256: hash per emitted file. No timestamp, no absolute path, so it diffs cleanly in git. rune doctor --against <manifest> hashes the output on disk and reports drift (edited, missing, unexpected files; config or tier change) without rebuilding. rune build --reproduce <manifest> rebuilds into a temp dir and proves the compiler still emits the same bytes. Merged files such as Codex AGENTS.md are tracked by their managed block only, so your own content around it never counts as drift. Set output.manifest: false or pass --no-manifest to opt out.
  • rune config explain | get | path | check | migrate. One resolver now merges defaults → rune.config.json → RUNE_* env vars → CLI flags and records the source of every key, so "why is it building for codex?" has an answer. config check reports unknown keys with a "did you mean" suggestion (the compiler ignores them silently by default), and config migrate upgrades the file for future format versions. CI overrides: RUNE_PLATFORM, RUNE_DISABLE_SKILLS, RUNE_EXTENSIONS, RUNE_OUTPUT_INDEX.
  • Golden build tests. A frozen 2-skill + split-pack fixture is compiled through all 15 non-Claude adapters; committed SHA-256 fingerprints fail the suite when compiled output changes, and a second test asserts two builds are byte-identical. Refresh intentionally with RUNE_UPDATE_GOLDEN=1 and review the diff.
  • rune console launches the Rune Business Console when Rune Business is installed. It finds Business the same way rune setup does: $RUNE_BUSINESS_ROOT, a sibling ../Business, well-known paths, or --business-root <dir>. All other arguments pass through (build, json, --demo, --project, --port, --no-open, --public). The console shows deadlines, contracts and NDAs with risk scores, compliance gaps, payroll/tax and AR, and the rules and sources behind every number. A live local server can append done/snooze/owner lines and run a calculator what-if; static builds stay read-only. Without Business, the command explains what the console is and where to get it.
  • Public Business Console sample page at docs/business-console.html (An Phat Software, labelled SAMPLE DATA). scripts/site-gen.mjs regenerates it when Rune Business is available (RUNE_BUSINESS_ROOT or a sibling checkout) so the page stays current.
  • rune serve --console mounts the Business Console at /console behind the existing serve key. A sign-in form sets an HttpOnly cookie; the key is never put in a URL or in logs. --console-project <dir> selects the project tree (default: the current directory).

Changed

  • Business marketing counts on the README and landing page: 143 reference files and 16 calculators (was 124 / 12; counted from Business 1.8.0), and "jurisdiction-aware (VN · US · EU · SG)".

Fixed

  • rune serve behind --trust-proxy rate-limits by CF-Connecting-IP when Cloudflare sends it, otherwise by the last X-Forwarded-For hop (the address the proxy appended). A caller can no longer pick a different bucket by putting a fake address first. Without --trust-proxy, the socket address is used and a forwarded header is ignored.
  • rune serve setup keeps a saved --allow-query-key on the next setup. --no-allow-query-key turns ?key= off and saves that. rune serve start still restores the saved choice.
  • rune serve connect opencode prints the MCP config for the OpenCode major on that machine: mcp.servers.rune on 2, flat mcp.rune on 1 (the same generator as rune init). --opencode-version 1 or 2 forces the shape.
  • Guides name OpenCode as a rune serve client. llms.txt points at serve, config, reproduce and the current compiler mapping. MULTI-PLATFORM.md no longer describes Cursor .mdc rules, Claude-only hooks, or a rune sync command as what shipped. The npm package includes llms.txt and docs/**/*.md.
  • skill-index.json no longer embeds a generated timestamp, so repeated builds are byte-identical and committed indexes stop churning. Provenance now lives in rune-manifest.json.
  • output.index: false now actually skips skill-index.json; it was documented but ignored.
  • rune analytics showed the wrong Business price ($169). Both commands now read the price from one constant ($149 lifetime, as on the landing page).
  • rune serve --tunnel: if cloudflared exits before the quick tunnel is up (Cloudflare rate limits and 1xxx errors are common), retry a few times with backoff and put the process's error lines in serve.log and the setup JSON, instead of a bare "exited (1)".
  • rune serve e2e no longer crashes when the public URL is missing. Cloudflare quick-tunnel outages are reported as such and the tunnel half is retried once; after stop/start or a systemd crash-restart the harness waits for the new process's URL and keeps polling through HTTP 530 / Error 1033 until the edge registers the tunnel. On the weekly scheduled run those provider outages are a warning when the local server is healthy (release, manual reruns, and PRs that touch serve still fail).
  • npm run release:publish checks that git has user.name and user.email before npm publish, and if they are missing fills them for git tag -a from the signed-in GitHub user via gh (or fails with a clear error).
  • Split extension packs now ship their pack-level scripts/ folder (tests and caches stay behind), and {scripts_dir} in pack skill files, templates and single-file bundles resolves to it. Before this, a pack skill that told the agent to run one of its calculators pointed at a path that did not exist after install (Business and Pro packs).
  • A generated rune serve systemd unit keeps absolute POSIX paths exactly as written (/srv/pro no longer becomes D:\srv\pro when generated on Windows for a Linux host); only relative paths are resolved. The serve and Grok hook tests no longer depend on the host OS or on a developer's ~/.claude/settings.json.
  • version-sync-check counts Business the way Business does (runnable calculators only, no tests or helpers; generated jurisdiction copies excluded) and compares against Business's generated README counts instead of hard-coded numbers.

Full notes: https://rune-kit.github.io/rune/changelog.html#v2-36-0
Full Changelog: v2.35.0...v2.36.0