@me0wo/opencode 2.2.6 → 2.2.7-fork.sa97851a247e58d15acf98859065ff47dd54ddcaf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.mjs +3 -3
- package/package.json +24 -11
- package/README.md +0 -12
package/bin/cli.mjs
CHANGED
|
@@ -4,12 +4,12 @@ import { spawn } from "node:child_process"
|
|
|
4
4
|
import path from "node:path"
|
|
5
5
|
|
|
6
6
|
const require = createRequire(import.meta.url)
|
|
7
|
-
const
|
|
7
|
+
const target = `${process.platform === "win32" ? "windows" : process.platform}-${process.arch}`
|
|
8
8
|
let entry
|
|
9
9
|
try {
|
|
10
|
-
entry = path.join(path.dirname(require.resolve(`@me0wo/opencode-${
|
|
10
|
+
entry = path.join(path.dirname(require.resolve(`@me0wo/opencode-${target}/package.json`)), "opencode.mjs")
|
|
11
11
|
} catch {
|
|
12
|
-
console.error(`@me0wo/opencode: no bundle available for ${
|
|
12
|
+
console.error(`@me0wo/opencode: no bundle available for ${target}`)
|
|
13
13
|
process.exit(1)
|
|
14
14
|
}
|
|
15
15
|
const child = spawn(process.execPath, [entry, ...process.argv.slice(2)], { stdio: "inherit" })
|
package/package.json
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@me0wo/opencode",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"description": "OpenCode
|
|
3
|
+
"version": "2.2.7-fork.sa97851a247e58d15acf98859065ff47dd54ddcaf",
|
|
4
|
+
"description": "OpenCode fork JS bundle",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"bin": {
|
|
7
|
-
|
|
6
|
+
"bin": {
|
|
7
|
+
"opencode-node": "bin/cli.mjs"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin/"
|
|
11
|
+
],
|
|
8
12
|
"optionalDependencies": {
|
|
9
|
-
"@me0wo/opencode-linux-x64": "2.2.
|
|
10
|
-
"@me0wo/opencode-
|
|
11
|
-
"@me0wo/opencode-
|
|
13
|
+
"@me0wo/opencode-linux-x64": "2.2.7-fork.sa97851a247e58d15acf98859065ff47dd54ddcaf",
|
|
14
|
+
"@me0wo/opencode-linux-arm64": "2.2.7-fork.sa97851a247e58d15acf98859065ff47dd54ddcaf",
|
|
15
|
+
"@me0wo/opencode-darwin-arm64": "2.2.7-fork.sa97851a247e58d15acf98859065ff47dd54ddcaf",
|
|
16
|
+
"@me0wo/opencode-darwin-x64": "2.2.7-fork.sa97851a247e58d15acf98859065ff47dd54ddcaf",
|
|
17
|
+
"@me0wo/opencode-windows-x64": "2.2.7-fork.sa97851a247e58d15acf98859065ff47dd54ddcaf",
|
|
18
|
+
"@me0wo/opencode-windows-arm64": "2.2.7-fork.sa97851a247e58d15acf98859065ff47dd54ddcaf"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=26"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/Sn0wo2/opencode.git"
|
|
12
26
|
},
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"publishConfig": { "access": "public" }
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
}
|
|
17
30
|
}
|
package/README.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# @me0wo/opencode
|
|
2
|
-
|
|
3
|
-
Unofficial npm distribution of the [OpenCode V2](https://github.com/anomalyco/opencode) JS bundle, built from upstream stable release tags by [Sn0wo2/opencode-dist](https://github.com/Sn0wo2/opencode-dist).
|
|
4
|
-
|
|
5
|
-
No runtime is embedded; the launcher runs the platform bundle with your own Node (>= 26) or bun (>= 1.4.4).
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm i -g @me0wo/opencode
|
|
9
|
-
opencode-node --version
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
The platform bundle (`@me0wo/opencode-linux-x64`, `@me0wo/opencode-darwin-arm64`, or `@me0wo/opencode-windows-x64`) is selected automatically via optionalDependencies and ships `opencode.mjs` plus its native assets (pty, file watching, web UI). Run `bunx opencode-node` to execute the bundle with bun instead of Node.
|