@sciagent/cli 1.1.53 → 1.1.55

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/package.json CHANGED
@@ -1,43 +1,43 @@
1
- {
2
- "name": "@sciagent/cli",
3
- "version": "1.1.53",
4
- "description": "SciAgent CLI - AI Research Assistant",
5
- "main": "index.js",
6
- "files": [
7
- "bin/",
8
- "scripts/",
9
- "index.js"
10
- ],
11
- "bin": {
12
- "sciagent": "bin/sciagent.js"
13
- },
14
- "scripts": {
15
- "postinstall": "node scripts/postinstall.js"
16
- },
17
- "optionalDependencies": {},
18
- "keywords": [
19
- "ai",
20
- "research",
21
- "agent",
22
- "cli",
23
- "codebuddy"
24
- ],
25
- "author": "SciAgent Team",
26
- "license": "MIT",
27
- "repository": {
28
- "type": "git",
29
- "url": "https://gitee.com/garva/research-agent.git"
30
- },
31
- "engines": {
32
- "node": ">=16"
33
- },
34
- "os": [
35
- "linux",
36
- "darwin",
37
- "win32"
38
- ],
39
- "cpu": [
40
- "x64",
41
- "arm64"
42
- ]
43
- }
1
+ {
2
+ "name": "@sciagent/cli",
3
+ "version": "1.1.55",
4
+ "description": "SciAgent CLI - AI Research Assistant",
5
+ "main": "index.js",
6
+ "files": [
7
+ "bin/",
8
+ "scripts/",
9
+ "index.js"
10
+ ],
11
+ "bin": {
12
+ "sciagent": "bin/sciagent.js"
13
+ },
14
+ "scripts": {
15
+ "postinstall": "node scripts/postinstall.js"
16
+ },
17
+ "optionalDependencies": {},
18
+ "keywords": [
19
+ "ai",
20
+ "research",
21
+ "agent",
22
+ "cli",
23
+ "codebuddy"
24
+ ],
25
+ "author": "SciAgent Team",
26
+ "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://gitee.com/garva/research-agent.git"
30
+ },
31
+ "engines": {
32
+ "node": ">=16"
33
+ },
34
+ "os": [
35
+ "linux",
36
+ "darwin",
37
+ "win32"
38
+ ],
39
+ "cpu": [
40
+ "x64",
41
+ "arm64"
42
+ ]
43
+ }
package/scripts/chmod.js CHANGED
@@ -1,29 +1,29 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * SciAgent CLI chmod 脚本
5
- * 在Linux/macOS上设置二进制文件的可执行权限
6
- */
7
-
8
- const fs = require('fs');
9
- const path = require('path');
10
-
11
- // 只在非Windows平台上运行
12
- if (process.platform === 'win32') {
13
- process.exit(0);
14
- }
15
-
16
- // 查找二进制文件
17
- const binDir = path.join(__dirname, '..', 'bin');
18
- const binaryName = 'sciagent';
19
- const binaryPath = path.join(binDir, binaryName);
20
-
21
- try {
22
- if (fs.existsSync(binaryPath)) {
23
- // 设置可执行权限 (755)
24
- fs.chmodSync(binaryPath, 0o755);
25
- console.log(`Set executable permission: ${binaryPath}`);
26
- }
27
- } catch (err) {
28
- console.warn(`Warning: Could not set executable permission: ${err.message}`);
29
- }
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * SciAgent CLI chmod 脚本
5
+ * 在Linux/macOS上设置二进制文件的可执行权限
6
+ */
7
+
8
+ const fs = require('fs');
9
+ const path = require('path');
10
+
11
+ // 只在非Windows平台上运行
12
+ if (process.platform === 'win32') {
13
+ process.exit(0);
14
+ }
15
+
16
+ // 查找二进制文件
17
+ const binDir = path.join(__dirname, '..', 'bin');
18
+ const binaryName = 'sciagent';
19
+ const binaryPath = path.join(binDir, binaryName);
20
+
21
+ try {
22
+ if (fs.existsSync(binaryPath)) {
23
+ // 设置可执行权限 (755)
24
+ fs.chmodSync(binaryPath, 0o755);
25
+ console.log(`Set executable permission: ${binaryPath}`);
26
+ }
27
+ } catch (err) {
28
+ console.warn(`Warning: Could not set executable permission: ${err.message}`);
29
+ }