@qoder-ai/qodercli 0.2.5-beta → 0.2.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/qodercli ADDED
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env node
2
+
3
+ const path = require('path');
4
+ const fs = require('fs');
5
+ const { spawn } = require('child_process');
6
+
7
+ const BINARY_NAME = 'qodercli';
8
+ const PACKAGE_ROOT = path.resolve(__dirname, '..');
9
+ const BIN_DIR = path.join(PACKAGE_ROOT, 'bin');
10
+ const binPath = path.join(
11
+ BIN_DIR,
12
+ BINARY_NAME + (process.platform === 'win32' ? '.exe' : ''),
13
+ );
14
+
15
+ function showInstallationError() {
16
+ console.error('qodercli binary not found');
17
+ console.error(
18
+ 'This usually means the installation process failed or was incomplete.',
19
+ );
20
+ console.error('System Information for debugging:');
21
+ console.error(` Platform: ${process.platform} (${process.arch})`);
22
+ console.error(` Node.js: ${process.version}`);
23
+ console.error(` npm: ${process.env.npm_version || 'unknown'}`);
24
+ console.error(` Binary path: ${binPath}`);
25
+ console.error('');
26
+ }
27
+
28
+ // check if the binary file exists
29
+ if (!fs.existsSync(binPath)) {
30
+ showInstallationError();
31
+ process.exit(1);
32
+ }
33
+
34
+ // execute the actual binary file
35
+ const child = spawn(binPath, process.argv.slice(2), {
36
+ stdio: 'inherit',
37
+ windowsHide: false,
38
+ });
39
+
40
+ child.on('close', (code) => {
41
+ process.exit(code);
42
+ });
43
+
44
+ child.on('error', (error) => {
45
+ console.error('execution failed:', error.message);
46
+ process.exit(1);
47
+ });
package/package.json CHANGED
@@ -1,46 +1,99 @@
1
1
  {
2
2
  "name": "@qoder-ai/qodercli",
3
- "version": "0.2.5-beta",
4
- "description": "Qoder AI CLI - AI-powered coding assistant",
5
- "author": "Qoder AI",
6
- "license": "Apache-2.0",
7
- "type": "module",
3
+ "version": "0.2.6",
4
+ "description": "qodercli - npm installer",
5
+ "private": false,
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
8
9
  "bin": {
9
- "qodercli": "bundle/qodercli.js"
10
+ "qodercli": "./bin/qodercli"
11
+ },
12
+ "scripts": {
13
+ "postinstall": "node scripts/install.js"
10
14
  },
15
+ "keywords": [
16
+ "qoder",
17
+ "ai",
18
+ "cli"
19
+ ],
20
+ "author": "Qoder AI",
21
+ "license": "SEE LICENSE IN README.md",
22
+ "homepage": "https://qoder.com",
11
23
  "files": [
12
- "bundle/",
24
+ "scripts/",
25
+ "bin/",
13
26
  "README.md",
14
27
  "LICENSE"
15
28
  ],
16
29
  "engines": {
17
- "node": ">=20.0.0"
30
+ "node": ">=14"
31
+ },
32
+ "dependencies": {
33
+ "adm-zip": "^0.5.10",
34
+ "tar": "^4.4.19"
18
35
  },
19
36
  "os": [
20
37
  "darwin",
21
38
  "linux",
22
39
  "win32"
23
40
  ],
24
- "keywords": [
25
- "qoder",
26
- "ai",
27
- "cli",
28
- "coding",
29
- "assistant",
30
- "gemini"
41
+ "cpu": [
42
+ "x64",
43
+ "arm64"
31
44
  ],
32
- "homepage": "https://github.com/nicepkg/qodercli",
33
- "repository": {
34
- "type": "git",
35
- "url": "https://github.com/nicepkg/qodercli.git"
36
- },
37
- "publishConfig": {
38
- "access": "public"
39
- },
40
- "optionalDependencies": {
41
- "keytar": "^7.9.0"
42
- },
43
- "scripts": {
44
- "postinstall": "node -e \"try{require('child_process').execSync('rg --version',{stdio:'ignore'})}catch{console.log('\\n ripgrep (rg) not found. Install for best search: https://github.com/BurntSushi/ripgrep#installation\\n')}\""
45
+ "preferGlobal": true,
46
+ "binaries": {
47
+ "version": "0.2.6",
48
+ "files": [
49
+ {
50
+ "os": "darwin",
51
+ "arch": "arm64",
52
+ "url": "https://qoder-ide.oss-accelerate.aliyuncs.com/qodercli/releases/0.2.6/qodercli-darwin-arm64.tar.gz",
53
+ "sha256": "a04a55f730470cefdda69aeb383c43a92e945539d192b344c92b0f6625e3f9b2"
54
+ },
55
+ {
56
+ "os": "darwin",
57
+ "arch": "amd64",
58
+ "url": "https://qoder-ide.oss-accelerate.aliyuncs.com/qodercli/releases/0.2.6/qodercli-darwin-x64.tar.gz",
59
+ "sha256": "b98f2567f34f68269001326813f3c7b42fc5e31a342d2c0b19867684c43de185"
60
+ },
61
+ {
62
+ "os": "linux",
63
+ "arch": "arm64-musl",
64
+ "url": "https://qoder-ide.oss-accelerate.aliyuncs.com/qodercli/releases/0.2.6/qodercli-linux-arm64-musl.tar.gz",
65
+ "sha256": "f610dc8ddb74e6cdf3e3d1c382762929d7f5a1b81537dcbe5e47ff40c617f938"
66
+ },
67
+ {
68
+ "os": "linux",
69
+ "arch": "arm64",
70
+ "url": "https://qoder-ide.oss-accelerate.aliyuncs.com/qodercli/releases/0.2.6/qodercli-linux-arm64.tar.gz",
71
+ "sha256": "fbcd05cf64938ef2fa6228ae9026cebb1640d065f57c5bc3736748443e68746d"
72
+ },
73
+ {
74
+ "os": "linux",
75
+ "arch": "amd64-baseline",
76
+ "url": "https://qoder-ide.oss-accelerate.aliyuncs.com/qodercli/releases/0.2.6/qodercli-linux-x64-baseline.tar.gz",
77
+ "sha256": "1985dd1d92c812c14f1869d556f7e0bc78cb3d154c43795bca5ec095d72fbd09"
78
+ },
79
+ {
80
+ "os": "linux",
81
+ "arch": "amd64-musl",
82
+ "url": "https://qoder-ide.oss-accelerate.aliyuncs.com/qodercli/releases/0.2.6/qodercli-linux-x64-musl.tar.gz",
83
+ "sha256": "15842d2aa43c60c8985801ac9d1491054a140448f700fe4d14bc228dda6c7a7e"
84
+ },
85
+ {
86
+ "os": "linux",
87
+ "arch": "amd64",
88
+ "url": "https://qoder-ide.oss-accelerate.aliyuncs.com/qodercli/releases/0.2.6/qodercli-linux-x64.tar.gz",
89
+ "sha256": "be3b283db58e36394ac9c15b3b966f23188d6795be7e1edbec5535c9d8153293"
90
+ },
91
+ {
92
+ "os": "windows",
93
+ "arch": "amd64",
94
+ "url": "https://qoder-ide.oss-accelerate.aliyuncs.com/qodercli/releases/0.2.6/qodercli-windows-x64.zip",
95
+ "sha256": "2ad9cfb48b9d686f561507bbbe49b064441762363db1f63717f1840efcc6aca1"
96
+ }
97
+ ]
45
98
  }
46
99
  }