dfcode 1.0.7 → 1.0.9

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.
Files changed (2) hide show
  1. package/bin/dfcode +4 -4
  2. package/package.json +1 -1
package/bin/dfcode CHANGED
@@ -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.DFCODE_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 = "dfcode-" + platform + "-" + arch
48
+ const binary = platform === "windows" ? "dfcode.exe" : "dfcode"
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 dfcode CLI for your platform. You can try manually installing the "' +
78
78
  base +
79
79
  '" package',
80
80
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfcode",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "AI-powered coding assistant - TUI interface",
5
5
  "bin": {
6
6
  "dfcode": "./bin/dfcode"