From 6e23a0badf10f1209de5e190cfce57a0c0e22b7d Mon Sep 17 00:00:00 2001 From: Naveen Kumar Date: Thu, 10 Sep 2026 19:53:24 +0800 Subject: [PATCH] Point everything at the repo's new name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repo is navbytes/opencode-plugins now, which is what it has been in practice since it started holding more than one plugin. GitHub redirects the old URL, so nothing was broken meanwhile. Two kinds of reference do not benefit from that redirect, and are why this lands now rather than eventually: - the `npm trust` commands documented in publish.yml. Trusted publishing binds to owner/repo plus the workflow filename, and neither package's record exists yet. Creating them against the old name means redoing both, and finding out mid-release, when release.yml has already tagged and cut a release and only the OIDC publish fails. - `repository.url` / `homepage` in both packages, which take effect on their next publish. Versions already on npm keep the old link, which redirects. Plus the root README title, the root package name and the matching bun.lock workspace name — CI runs --frozen-lockfile, so those two have to agree — and the git-stats test fixtures, including the `repo:` assertion field that the URL rewrite alone would have missed and that would have failed CI. Left alone: the five `opencode-tree` mentions in packages/context-tree/DESIGN.md are `@ishaksebsib/opencode-tree`, a different author's package the design notes compare against, and renaming those would have quietly falsified the comparison. The dated roost-hang report keeps the name things had at the time. --- .github/workflows/publish.yml | 4 ++-- README.md | 4 ++-- bun.lock | 2 +- package.json | 2 +- packages/context-tree/README.md | 6 +++--- packages/context-tree/package.json | 4 ++-- packages/git-stats/README.md | 2 +- packages/git-stats/package.json | 4 ++-- packages/git-stats/test/gh.test.ts | 2 +- packages/git-stats/test/pr.test.ts | 4 ++-- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c80a2f..f6f7604 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,9 +2,9 @@ name: Publish to npm # Trusted publishing (OIDC): no npm token is stored anywhere. npm accepts the publish # because this repo + this workflow file are registered as the package's trusted publisher -# (`npm trust github opencode-context-tree --file publish.yml --repo navbytes/opencode-tree`). +# (`npm trust github opencode-context-tree --file publish.yml --repo navbytes/opencode-plugins`). # Registering a new package: `npm publish` its v0.x by hand once with a real token, then -# `npm trust github --file publish.yml --repo navbytes/opencode-tree`. +# `npm trust github --file publish.yml --repo navbytes/opencode-plugins`. on: release: types: [published] diff --git a/README.md b/README.md index a607308..1200149 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# opencode-tree +# opencode-plugins -[![CI](https://github.com/navbytes/opencode-tree/actions/workflows/ci.yml/badge.svg)](https://github.com/navbytes/opencode-tree/actions/workflows/ci.yml) +[![CI](https://github.com/navbytes/opencode-plugins/actions/workflows/ci.yml/badge.svg)](https://github.com/navbytes/opencode-plugins/actions/workflows/ci.yml) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) A monorepo of independently versioned and published [OpenCode](https://opencode.ai) diff --git a/bun.lock b/bun.lock index 19c130b..529643c 100644 --- a/bun.lock +++ b/bun.lock @@ -2,7 +2,7 @@ "lockfileVersion": 1, "workspaces": { "": { - "name": "opencode-tree-monorepo", + "name": "opencode-plugins-monorepo", "devDependencies": { "@opentui/core": "^0.5.10", "@opentui/keymap": "^0.5.10", diff --git a/package.json b/package.json index 9ea737a..eb6f6d8 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "opencode-tree-monorepo", + "name": "opencode-plugins-monorepo", "private": true, "workspaces": ["packages/*"], "scripts": { diff --git a/packages/context-tree/README.md b/packages/context-tree/README.md index 298c4e3..e6d9022 100644 --- a/packages/context-tree/README.md +++ b/packages/context-tree/README.md @@ -8,7 +8,7 @@ A Pi-style context tree with git-style controls (`/branch`, `/merge`, `/crop`, ` and a DeepSeek-Harness-style trajectory view, in one screen, inside your terminal. [![npm](https://img.shields.io/npm/v/opencode-context-tree?color=cb3837&logo=npm)](https://www.npmjs.com/package/opencode-context-tree) -[![CI](https://github.com/navbytes/opencode-tree/actions/workflows/ci.yml/badge.svg)](https://github.com/navbytes/opencode-tree/actions/workflows/ci.yml) +[![CI](https://github.com/navbytes/opencode-plugins/actions/workflows/ci.yml/badge.svg)](https://github.com/navbytes/opencode-plugins/actions/workflows/ci.yml) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) [![OpenCode](https://img.shields.io/badge/OpenCode-%E2%89%A5%201.18-black)](https://opencode.ai) @@ -351,8 +351,8 @@ To run your checkout instead of the published package, list the built files by a path rather than the package name: ```jsonc -// opencode.json → "plugin": ["/abs/path/opencode-tree/packages/context-tree/dist/server.js"] -// tui.json → "plugin": ["/abs/path/opencode-tree/packages/context-tree/dist/tui.js"] +// opencode.json → "plugin": ["/abs/path/opencode-plugins/packages/context-tree/dist/server.js"] +// tui.json → "plugin": ["/abs/path/opencode-plugins/packages/context-tree/dist/tui.js"] ``` [DESIGN.md](./DESIGN.md) is the long version: the research behind the design (Pi, diff --git a/packages/context-tree/package.json b/packages/context-tree/package.json index 6723fb7..57ae4a6 100644 --- a/packages/context-tree/package.json +++ b/packages/context-tree/package.json @@ -73,10 +73,10 @@ "author": "Naveen (navbytes)", "repository": { "type": "git", - "url": "git+https://github.com/navbytes/opencode-tree.git", + "url": "git+https://github.com/navbytes/opencode-plugins.git", "directory": "packages/context-tree" }, - "homepage": "https://github.com/navbytes/opencode-tree#readme", + "homepage": "https://github.com/navbytes/opencode-plugins#readme", "keywords": [ "opencode", "opencode-plugin", diff --git a/packages/git-stats/README.md b/packages/git-stats/README.md index f04406f..65717e7 100644 --- a/packages/git-stats/README.md +++ b/packages/git-stats/README.md @@ -6,7 +6,7 @@ pull request your [OpenCode](https://opencode.ai) session touched.** [![npm](https://img.shields.io/npm/v/opencode-git-stats?color=cb3837&logo=npm)](https://www.npmjs.com/package/opencode-git-stats) -[![CI](https://github.com/navbytes/opencode-tree/actions/workflows/ci.yml/badge.svg)](https://github.com/navbytes/opencode-tree/actions/workflows/ci.yml) +[![CI](https://github.com/navbytes/opencode-plugins/actions/workflows/ci.yml/badge.svg)](https://github.com/navbytes/opencode-plugins/actions/workflows/ci.yml) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) [![OpenCode](https://img.shields.io/badge/OpenCode-%E2%89%A5%201.18-black)](https://opencode.ai) diff --git a/packages/git-stats/package.json b/packages/git-stats/package.json index 3478f71..96166d6 100644 --- a/packages/git-stats/package.json +++ b/packages/git-stats/package.json @@ -62,10 +62,10 @@ "author": "Naveen (navbytes)", "repository": { "type": "git", - "url": "git+https://github.com/navbytes/opencode-tree.git", + "url": "git+https://github.com/navbytes/opencode-plugins.git", "directory": "packages/git-stats" }, - "homepage": "https://github.com/navbytes/opencode-tree/tree/main/packages/git-stats#readme", + "homepage": "https://github.com/navbytes/opencode-plugins/tree/main/packages/git-stats#readme", "keywords": [ "opencode", "opencode-plugin", diff --git a/packages/git-stats/test/gh.test.ts b/packages/git-stats/test/gh.test.ts index 3948d7e..dca8311 100644 --- a/packages/git-stats/test/gh.test.ts +++ b/packages/git-stats/test/gh.test.ts @@ -4,7 +4,7 @@ import { tmpdir } from "node:os" import { join } from "node:path" import { fetchPrState } from "../src/core/gh.js" -const REF = { host: "github.com", owner: "navbytes", repo: "opencode-tree", number: 20, url: "https://github.com/navbytes/opencode-tree/pull/20" } +const REF = { host: "github.com", owner: "navbytes", repo: "opencode-plugins", number: 20, url: "https://github.com/navbytes/opencode-plugins/pull/20" } const PATH = process.env.PATH afterEach(() => { diff --git a/packages/git-stats/test/pr.test.ts b/packages/git-stats/test/pr.test.ts index a8be674..b81fda1 100644 --- a/packages/git-stats/test/pr.test.ts +++ b/packages/git-stats/test/pr.test.ts @@ -3,9 +3,9 @@ import { PR_STATE_COLOR, PR_STATE_LABEL, findPrRefs, isPrCreateCommand, prKey, s describe("findPrRefs", () => { test("picks the URL `gh pr create` prints", () => { - const refs = findPrRefs("https://github.com/navbytes/opencode-tree/pull/20\n") + const refs = findPrRefs("https://github.com/navbytes/opencode-plugins/pull/20\n") expect(refs).toHaveLength(1) - expect(refs[0]).toMatchObject({ host: "github.com", owner: "navbytes", repo: "opencode-tree", number: 20 }) + expect(refs[0]).toMatchObject({ host: "github.com", owner: "navbytes", repo: "opencode-plugins", number: 20 }) }) test("finds PRs embedded in prose and markdown links", () => {