New:Socket for Asana Is Now Available.Learn more
Get Started

dimcode

Package Overview
Dependencies
Maintainers
3
Versions
377
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dimcode - npm Package Compare versions

Comparing version
0.3.18
to
0.3.19-beta.0
+23
-6
bin/dim.mjs

@@ -25,10 +25,13 @@ #!/usr/bin/env node

// Inner binary file name shipped inside each platform sub-package's bin/.
// Only needed when the binary basename differs from the wrapper package name
// (goatchain-cli → bin/goatchain). dimcode and dimagent ship a binary named
// after the package, so they fall through to `wrapperName`.
// Platform package and binary aliases let multiple wrapper names consume one
// immutable payload. dimagent shares dimcode's packages; goatchain is separate.
const BINARY_BASENAMES = {
'dimagent': 'dimcode',
'goatchain-cli': 'goatchain',
}
const binaryBasename = BINARY_BASENAMES[wrapperName] || wrapperName
const PLATFORM_PACKAGE_PREFIXES = {
'dimagent': 'dimcode',
}
const platformPackagePrefix = PLATFORM_PACKAGE_PREFIXES[wrapperName] || wrapperName

@@ -68,3 +71,3 @@ const wrapperDir = path.join(__dirname, '..').replace(/\\/g, '/').toLowerCase()

const arch = archMap[os.arch()] || os.arch()
const base = wrapperName + '-' + platform + '-' + arch
const base = platformPackagePrefix + '-' + platform + '-' + arch
const binary = platform === 'windows' ? binaryBasename + '.exe' : binaryBasename

@@ -245,2 +248,6 @@

function spawnBinary(target, forwardedArgs) {
const cwd = readCurrentDirectory()
if (!cwd)
process.exit(2)
const env = {

@@ -257,3 +264,3 @@ ...process.env,

stdio: 'inherit',
cwd: process.cwd(),
cwd,
env,

@@ -285,1 +292,11 @@ windowsHide: false,

}
function readCurrentDirectory() {
try {
return process.cwd()
}
catch {
console.error('[dim] The current directory no longer exists or cannot be accessed.')
console.error('[dim] Change to an existing directory with cd, then run dim again.')
}
}
{
"name": "dimcode",
"version": "0.3.18",
"version": "0.3.19-beta.0",
"description": "AI coding agent CLI and terminal coding assistant with an interactive TUI (beta channel)",

@@ -15,8 +15,8 @@ "type": "module",

"optionalDependencies": {
"dimcode-darwin-arm64": "0.3.18",
"dimcode-darwin-x64": "0.3.18",
"dimcode-linux-arm64": "0.3.18",
"dimcode-linux-x64": "0.3.18",
"dimcode-windows-x64": "0.3.18"
"dimcode-darwin-arm64": "0.3.19-beta.0",
"dimcode-darwin-x64": "0.3.19-beta.0",
"dimcode-linux-arm64": "0.3.19-beta.0",
"dimcode-linux-x64": "0.3.19-beta.0",
"dimcode-windows-x64": "0.3.19-beta.0"
}
}