Compare commits

...

1 Commits

Author SHA1 Message Date
Dax Raad
2239228062 rename package 2025-06-18 14:57:51 -04:00
6 changed files with 12 additions and 14 deletions

View File

@@ -8,7 +8,7 @@
</a>
</p>
<p align="center">
<a href="https://www.npmjs.com/package/opencode-ai"><img alt="npm" src="https://img.shields.io/npm/v/opencode-ai?style=flat-square" /></a>
<a href="https://www.npmjs.com/package/opencode.ai"><img alt="npm" src="https://img.shields.io/npm/v/opencode-ai?style=flat-square" /></a>
<a href="https://github.com/sst/opencode/actions/workflows/publish.yml"><img alt="Build status" src="https://img.shields.io/github/actions/workflow/status/sst/opencode/publish.yml?style=flat-square&branch=dev" /></a>
</p>
@@ -27,7 +27,7 @@ AI coding agent, built for the terminal.
curl -fsSL https://opencode.ai/install | bash
# Package managers
npm i -g opencode-ai@latest # or bun/pnpm/yarn
npm i -g opencode.ai@latest # or bun/pnpm/yarn
brew install sst/tap/opencode # macOS
paru -S opencode-bin # Arch Linux
```
@@ -83,9 +83,6 @@ Start with a `provider.toml` file in `~/.config/opencode/providers`
name = "OpenRouter"
env = ["OPENROUTER_API_KEY"]
npm = "@openrouter/ai-sdk-provider"
[options]
baseURL = "https://api.openrouter.ai" # optional settings
```
And models in `~/.config/opencode/providers/openrouter/models/[model-id]`

View File

@@ -18,7 +18,7 @@
},
},
"packages/opencode": {
"name": "opencode",
"name": "opencode.ai",
"version": "0.0.0",
"dependencies": {
"@clack/prompts": "0.11.0",
@@ -1200,7 +1200,7 @@
"openapi-types": ["openapi-types@12.1.3", "", {}, "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw=="],
"opencode": ["opencode@workspace:packages/opencode"],
"opencode.ai": ["opencode.ai@workspace:packages/opencode"],
"opencontrol": ["opencontrol@0.0.6", "", { "dependencies": { "@modelcontextprotocol/sdk": "1.6.1", "@tsconfig/bun": "1.0.7", "hono": "4.7.4", "zod": "3.24.2", "zod-to-json-schema": "3.24.3" }, "bin": { "opencontrol": "bin/index.mjs" } }, "sha512-QeCrpOK5D15QV8kjnGVeD/BHFLwcVr+sn4T6KKmP0WAMs2pww56e4h+eOGHb5iPOufUQXbdbBKi6WV2kk7tefQ=="],

View File

@@ -1,6 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "opencode",
"private": true,
"type": "module",
"packageManager": "bun@1.2.14",

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"version": "0.0.0",
"name": "opencode",
"name": "opencode.ai",
"type": "module",
"private": true,
"scripts": {

View File

@@ -68,7 +68,7 @@ await $`cp ./script/postinstall.mjs ./dist/${pkg.name}/postinstall.mjs`
await Bun.file(`./dist/${pkg.name}/package.json`).write(
JSON.stringify(
{
name: pkg.name + "-ai",
name: pkg.name,
bin: {
[pkg.name]: `./bin/${pkg.name}`,
},

View File

@@ -74,7 +74,7 @@ export namespace Installation {
for (const check of checks) {
const output = await check.command()
if (output.includes("opencode-ai")) {
if (output.includes("opencode-ai") || output.includes("opencode.ai")) {
return check.name
}
}
@@ -95,11 +95,13 @@ export namespace Installation {
case "curl":
return $`curl -fsSL https://opencode.ai/install | bash`
case "npm":
return $`npm install -g opencode-ai@${target}`
return $`npm remove -g opencode-ai && npm install -g opencode.ai@${target}`
case "pnpm":
return $`pnpm install -g opencode-ai@${target}`
return $`pnpm remove -g opencode-ai && pnpm install -g opencode.ai@${target}`
case "bun":
return $`bun install -g opencode-ai@${target}`
return $`bun remove -g opencode-ai && bun install -g opencode.ai@${target}`
case "yarn":
return $`yarn remove -g opencode-ai && yarn add -g opencode.ai@${target}`
default:
throw new Error(`Unknown method: ${method}`)
}