Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

### Changed

- publish the `opencode-setup` bin alias so `npx @gonkagate/opencode-setup`
resolves on modern npm while keeping `gonkagate-opencode` as a compatible
direct command
- replaced the scaffold-only CLI surface with the real shipped installer flow
- made rerun the official safe update path with transactional rollback for
changed managed files
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"type": "module",
"bin": {
"opencode-setup": "bin/gonkagate-opencode.js",
"gonkagate-opencode": "bin/gonkagate-opencode.js"
},
"files": [
Expand Down
3 changes: 2 additions & 1 deletion src/constants/contract.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const CONTRACT_METADATA = {
binName: "gonkagate-opencode",
binName: "opencode-setup",
legacyBinName: "gonkagate-opencode",
binPath: "bin/gonkagate-opencode.js",
cliVersion: "0.2.2", // x-release-please-version
curatedRegistryPublished: true,
Expand Down
1 change: 1 addition & 0 deletions test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ test("CLI wrapper exposes the shipped help surface", () => {
});

assert.equal(helpResult.status, 0);
assert.match(helpResult.stdout, /Usage: opencode-setup/i);
assert.match(helpResult.stdout, /Configure OpenCode to use GonkaGate/i);
assert.match(helpResult.stdout, /validated-model-only/i);
assert.match(helpResult.stdout, /--scope <scope>/);
Expand Down
4 changes: 4 additions & 0 deletions test/package-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ test("package metadata matches the scaffold contract", () => {
packageJson.bin?.[CONTRACT_METADATA.binName],
CONTRACT_METADATA.binPath,
);
assert.equal(
packageJson.bin?.[CONTRACT_METADATA.legacyBinName],
CONTRACT_METADATA.binPath,
);
assert.equal(packageJson.engines?.node, ">=22.14.0");
assert.equal(packageJson.files?.includes("dist"), true);
assert.equal(packageJson.files?.includes("docs"), true);
Expand Down
Loading