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
+2 -5
View File
@@ -8,7 +8,7 @@
</a> </a>
</p> </p>
<p align="center"> <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> <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> </p>
@@ -27,7 +27,7 @@ AI coding agent, built for the terminal.
curl -fsSL https://opencode.ai/install | bash curl -fsSL https://opencode.ai/install | bash
# Package managers # 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 brew install sst/tap/opencode # macOS
paru -S opencode-bin # Arch Linux paru -S opencode-bin # Arch Linux
``` ```
@@ -83,9 +83,6 @@ Start with a `provider.toml` file in `~/.config/opencode/providers`
name = "OpenRouter" name = "OpenRouter"
env = ["OPENROUTER_API_KEY"] env = ["OPENROUTER_API_KEY"]
npm = "@openrouter/ai-sdk-provider" npm = "@openrouter/ai-sdk-provider"
[options]
baseURL = "https://api.openrouter.ai" # optional settings
``` ```
And models in `~/.config/opencode/providers/openrouter/models/[model-id]` And models in `~/.config/opencode/providers/openrouter/models/[model-id]`
+2 -2
View File
@@ -18,7 +18,7 @@
}, },
}, },
"packages/opencode": { "packages/opencode": {
"name": "opencode", "name": "opencode.ai",
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"@clack/prompts": "0.11.0", "@clack/prompts": "0.11.0",
@@ -1200,7 +1200,7 @@
"openapi-types": ["openapi-types@12.1.3", "", {}, "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw=="], "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=="], "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=="],
-1
View File
@@ -1,6 +1,5 @@
{ {
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"name": "opencode",
"private": true, "private": true,
"type": "module", "type": "module",
"packageManager": "bun@1.2.14", "packageManager": "bun@1.2.14",
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"version": "0.0.0", "version": "0.0.0",
"name": "opencode", "name": "opencode.ai",
"type": "module", "type": "module",
"private": true, "private": true,
"scripts": { "scripts": {
+1 -1
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( await Bun.file(`./dist/${pkg.name}/package.json`).write(
JSON.stringify( JSON.stringify(
{ {
name: pkg.name + "-ai", name: pkg.name,
bin: { bin: {
[pkg.name]: `./bin/${pkg.name}`, [pkg.name]: `./bin/${pkg.name}`,
}, },
+6 -4
View File
@@ -74,7 +74,7 @@ export namespace Installation {
for (const check of checks) { for (const check of checks) {
const output = await check.command() const output = await check.command()
if (output.includes("opencode-ai")) { if (output.includes("opencode-ai") || output.includes("opencode.ai")) {
return check.name return check.name
} }
} }
@@ -95,11 +95,13 @@ export namespace Installation {
case "curl": case "curl":
return $`curl -fsSL https://opencode.ai/install | bash` return $`curl -fsSL https://opencode.ai/install | bash`
case "npm": case "npm":
return $`npm install -g opencode-ai@${target}` return $`npm remove -g opencode-ai && npm install -g opencode.ai@${target}`
case "pnpm": case "pnpm":
return $`pnpm install -g opencode-ai@${target}` return $`pnpm remove -g opencode-ai && pnpm install -g opencode.ai@${target}`
case "bun": 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: default:
throw new Error(`Unknown method: ${method}`) throw new Error(`Unknown method: ${method}`)
} }