cicy-code 2.1.58 → 2.1.59
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/cicy-code.js +6 -3
- package/package.json +6 -6
package/bin/cicy-code.js
CHANGED
|
@@ -16,8 +16,11 @@ const fs = require('fs');
|
|
|
16
16
|
const args = process.argv.slice(2);
|
|
17
17
|
const PORT = process.env.PORT || '8008';
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
//
|
|
19
|
+
// Package name uses "windows", not the process.platform value "win32":
|
|
20
|
+
// npm's spam filter rejects (403) new package names containing win32.
|
|
21
|
+
const platformName = process.platform === 'win32' ? 'windows' : process.platform;
|
|
22
|
+
const platformPkg = `cicy-code-${platformName}-${process.arch}`;
|
|
23
|
+
// Windows ships the binary with the .exe extension (CreateProcess requires it).
|
|
21
24
|
const binName = process.platform === 'win32' ? 'cicy-code.exe' : 'cicy-code';
|
|
22
25
|
let binPath;
|
|
23
26
|
try {
|
|
@@ -25,7 +28,7 @@ try {
|
|
|
25
28
|
} catch {
|
|
26
29
|
console.error(`cicy-code: no prebuilt binary for ${process.platform}-${process.arch}.`);
|
|
27
30
|
console.error(`The optional dependency "${platformPkg}" is not installed.`);
|
|
28
|
-
console.error(`Supported platforms: darwin-arm64, darwin-x64, linux-x64, linux-arm64,
|
|
31
|
+
console.error(`Supported platforms: darwin-arm64, darwin-x64, linux-x64, linux-arm64, windows-x64.`);
|
|
29
32
|
console.error(`Reinstall: npm install -g cicy-code` +
|
|
30
33
|
` (in China add --registry=https://registry.npmmirror.com)`);
|
|
31
34
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.1.
|
|
6
|
+
"version": "2.1.59",
|
|
7
7
|
"description": "CiCy Code - AI-powered development environment",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "cicybot",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"bin/cicy-code.js"
|
|
17
17
|
],
|
|
18
18
|
"optionalDependencies": {
|
|
19
|
-
"cicy-code-darwin-arm64": "2.1.
|
|
20
|
-
"cicy-code-darwin-x64": "2.1.
|
|
21
|
-
"cicy-code-linux-x64": "2.1.
|
|
22
|
-
"cicy-code-linux-arm64": "2.1.
|
|
23
|
-
"cicy-code-
|
|
19
|
+
"cicy-code-darwin-arm64": "2.1.59",
|
|
20
|
+
"cicy-code-darwin-x64": "2.1.59",
|
|
21
|
+
"cicy-code-linux-x64": "2.1.59",
|
|
22
|
+
"cicy-code-linux-arm64": "2.1.59",
|
|
23
|
+
"cicy-code-windows-x64": "2.1.59"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|