dfcode 1.0.6-beta.2 → 1.0.6

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/dfcode CHANGED
@@ -17,7 +17,7 @@ function run(target) {
17
17
  process.exit(code)
18
18
  }
19
19
 
20
- const envPath = process.env.DFCODE_BIN_PATH
20
+ const envPath = 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 = "dfcode-" + platform + "-" + arch
48
- const binary = platform === "windows" ? "dfcode.exe" : "dfcode"
47
+ const base = "opencode-" + platform + "-" + arch
48
+ const binary = platform === "windows" ? "opencode.exe" : "opencode"
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 dfcode 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 opencode 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.6-beta.2",
3
+ "version": "1.0.6",
4
4
  "description": "AI-powered coding assistant - TUI interface",
5
5
  "bin": {
6
6
  "dfcode": "./bin/dfcode"
@@ -9,11 +9,11 @@
9
9
  "postinstall": "node ./postinstall.mjs"
10
10
  },
11
11
  "optionalDependencies": {
12
- "dfcode-darwin-arm64": "1.0.6-beta.1",
13
- "dfcode-darwin-x64": "1.0.6-beta.1",
14
- "dfcode-linux-x64": "1.0.6-beta.1",
15
- "dfcode-linux-arm64": "1.0.6-beta.1",
16
- "dfcode-windows-x64": "1.0.6-beta.1"
12
+ "dfcode-darwin-arm64": "1.0.6",
13
+ "dfcode-darwin-x64": "1.0.6",
14
+ "dfcode-linux-x64": "1.0.6",
15
+ "dfcode-linux-arm64": "1.0.6",
16
+ "dfcode-windows-x64": "1.0.6"
17
17
  },
18
18
  "license": "MIT",
19
19
  "keywords": ["ai", "coding", "assistant", "cli", "tui", "llm", "claude", "openai", "gpt"]
package/postinstall.mjs CHANGED
@@ -49,8 +49,8 @@ function detectPlatformAndArch() {
49
49
 
50
50
  function findBinary() {
51
51
  const { platform, arch } = detectPlatformAndArch()
52
- const packageName = `dfcode-${platform}-${arch}`
53
- const binaryName = platform === "windows" ? "dfcode.exe" : "dfcode"
52
+ const packageName = `opencode-${platform}-${arch}`
53
+ const binaryName = platform === "windows" ? "opencode.exe" : "opencode"
54
54
 
55
55
  try {
56
56
  // Use require.resolve to find the package
@@ -89,7 +89,7 @@ function symlinkBinary(sourcePath, binaryName) {
89
89
  const { targetPath } = prepareBinDirectory(binaryName)
90
90
 
91
91
  fs.symlinkSync(sourcePath, targetPath)
92
- console.log(`dfcode binary symlinked: ${targetPath} -> ${sourcePath}`)
92
+ console.log(`opencode binary symlinked: ${targetPath} -> ${sourcePath}`)
93
93
 
94
94
  // Verify the file exists after operation
95
95
  if (!fs.existsSync(targetPath)) {
@@ -112,7 +112,7 @@ async function main() {
112
112
  console.log(`Platform binary verified at: ${binaryPath}`)
113
113
  console.log("Wrapper script will handle binary execution")
114
114
  } catch (error) {
115
- console.error("Failed to setup dfcode binary:", error.message)
115
+ console.error("Failed to setup opencode binary:", error.message)
116
116
  process.exit(1)
117
117
  }
118
118
  }
File without changes