Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@qoder-ai/qodercli

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qoder-ai/qodercli - npm Package Compare versions

Comparing version
0.2.2-beta.1
to
0.2.2-beta.2
+16
bundle/postinstall.cjs
#!/usr/bin/env node
/**
* npm postinstall hook — writes installation source marker for update routing.
* Aligned with qodercli-old: core/utils/install/source.go reads this file
* to determine how the CLI was installed (npm, homebrew-cask, curl-bash).
*/
const fs = require('node:fs');
const path = require('node:path');
try {
const pkgRoot = path.resolve(__dirname, '..');
const markerPath = path.join(pkgRoot, '.qodercli-install-resource');
fs.writeFileSync(markerPath, 'npm', 'utf8');
} catch {
// Silent failure — marker is best-effort, should never block installation
}
+2
-2
{
"name": "@qoder-ai/qodercli",
"version": "0.2.2-beta.1",
"version": "0.2.2-beta.2",
"description": "QoderCLI - AI-powered coding assistant for your terminal",

@@ -20,3 +20,3 @@ "license": "Apache-2.0",

"scripts": {
"postinstall": "node bundle/postinstall.js"
"postinstall": "node bundle/postinstall.cjs"
},

@@ -23,0 +23,0 @@ "publishConfig": {

#!/usr/bin/env node
/**
* npm postinstall hook — writes installation source marker for update routing.
* Aligned with qodercli-old: core/utils/install/source.go reads this file
* to determine how the CLI was installed (npm, homebrew-cask, curl-bash).
*/
const fs = require('node:fs');
const path = require('node:path');
try {
const pkgRoot = path.resolve(__dirname, '..');
const markerPath = path.join(pkgRoot, '.qodercli-install-resource');
fs.writeFileSync(markerPath, 'npm', 'utf8');
} catch {
// Silent failure — marker is best-effort, should never block installation
}