cerebras-cli 1.0.0 → 1.0.1

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.
@@ -17,7 +17,7 @@ function run(target) {
17
17
  process.exit(code)
18
18
  }
19
19
 
20
- const envPath = process.env.OPENCODE_BIN_PATH
20
+ const envPath = process.env.CEREBRAS_CLI_BIN_PATH || process.env.OPENCODE_BIN_PATH
21
21
  if (envPath) {
22
22
  run(envPath)
23
23
  }
@@ -44,8 +44,8 @@ let arch = archMap[os.arch()]
44
44
  if (!arch) {
45
45
  arch = os.arch()
46
46
  }
47
- const base = "opencode-" + platform + "-" + arch
48
- const binary = platform === "windows" ? "opencode.exe" : "opencode"
47
+ const base = "cerebras-cli-" + platform + "-" + arch
48
+ const binary = platform === "windows" ? "cerebras-cli.exe" : "cerebras-cli"
49
49
 
50
50
  function findBinary(startDir) {
51
51
  let current = startDir
@@ -74,7 +74,7 @@ function findBinary(startDir) {
74
74
  const resolved = findBinary(scriptDir)
75
75
  if (!resolved) {
76
76
  console.error(
77
- 'It seems that your package manager failed to install the right version of the opencode CLI for your platform. You can try manually installing the "' +
77
+ 'It seems that your package manager failed to install the right version of the cerebras-cli for your platform. You can try manually installing the "' +
78
78
  base +
79
79
  '" package',
80
80
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "cerebras-cli",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "description": "AI-powered coding assistant CLI with Cerebras fast inference",
6
6
  "author": "Kevin Taylor",
7
7
  "license": "MIT",
@@ -13,7 +13,7 @@
13
13
  "dev": "bun run --conditions=browser ./src/index.ts"
14
14
  },
15
15
  "bin": {
16
- "cerebras-cli": "./bin/opencode"
16
+ "cerebras-cli": "./bin/opencode.cjs"
17
17
  },
18
18
  "exports": {
19
19
  "./*": "./src/*.ts"
package/script/build.ts CHANGED
@@ -118,7 +118,7 @@ for (const item of targets) {
118
118
  autoloadBunfig: false,
119
119
  autoloadDotenv: false,
120
120
  target: name.replace(pkg.name, "bun") as any,
121
- outfile: `dist/${name}/bin/opencode`,
121
+ outfile: `dist/${name}/bin/cerebras-cli`,
122
122
  execArgv: [`--user-agent=opencode/${Script.version}`, "--"],
123
123
  windows: {},
124
124
  },