duduclaw 1.3.23 → 1.3.25
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/duduclaw +3 -1
- package/package.json +6 -5
- package/scripts/install.js +2 -1
package/bin/duduclaw
CHANGED
|
@@ -10,6 +10,7 @@ const PLATFORM_PACKAGES = {
|
|
|
10
10
|
"darwin-x64": "@duduclaw/darwin-x64",
|
|
11
11
|
"linux-x64": "@duduclaw/linux-x64",
|
|
12
12
|
"linux-arm64": "@duduclaw/linux-arm64",
|
|
13
|
+
"win32-x64": "@duduclaw/win32-x64",
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
function getBinaryPath() {
|
|
@@ -23,7 +24,8 @@ function getBinaryPath() {
|
|
|
23
24
|
|
|
24
25
|
try {
|
|
25
26
|
const pkgDir = path.dirname(require.resolve(`${pkg}/package.json`));
|
|
26
|
-
|
|
27
|
+
const binName = process.platform === "win32" ? "duduclaw.exe" : "duduclaw";
|
|
28
|
+
return path.join(pkgDir, "bin", binName);
|
|
27
29
|
} catch {
|
|
28
30
|
throw new Error(
|
|
29
31
|
`Could not find ${pkg}. Please reinstall duduclaw:\n npm install -g duduclaw`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "duduclaw",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.25",
|
|
4
4
|
"description": "DuDuClaw — Multi-Agent AI Assistant Platform (Community Edition)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -28,9 +28,10 @@
|
|
|
28
28
|
"postinstall": "node scripts/install.js"
|
|
29
29
|
},
|
|
30
30
|
"optionalDependencies": {
|
|
31
|
-
"@duduclaw/darwin-arm64": "1.3.
|
|
32
|
-
"@duduclaw/darwin-x64": "1.3.
|
|
33
|
-
"@duduclaw/linux-x64": "1.3.
|
|
34
|
-
"@duduclaw/linux-arm64": "1.3.
|
|
31
|
+
"@duduclaw/darwin-arm64": "1.3.25",
|
|
32
|
+
"@duduclaw/darwin-x64": "1.3.25",
|
|
33
|
+
"@duduclaw/linux-x64": "1.3.25",
|
|
34
|
+
"@duduclaw/linux-arm64": "1.3.25",
|
|
35
|
+
"@duduclaw/win32-x64": "1.3.25"
|
|
35
36
|
}
|
|
36
37
|
}
|
package/scripts/install.js
CHANGED
|
@@ -8,6 +8,7 @@ const PLATFORM_PACKAGES = {
|
|
|
8
8
|
"darwin-x64": "@duduclaw/darwin-x64",
|
|
9
9
|
"linux-x64": "@duduclaw/linux-x64",
|
|
10
10
|
"linux-arm64": "@duduclaw/linux-arm64",
|
|
11
|
+
"win32-x64": "@duduclaw/win32-x64",
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const key = `${process.platform}-${process.arch}`;
|
|
@@ -16,7 +17,7 @@ const pkg = PLATFORM_PACKAGES[key];
|
|
|
16
17
|
if (!pkg) {
|
|
17
18
|
console.warn(
|
|
18
19
|
`\n[duduclaw] Warning: unsupported platform ${key}.\n` +
|
|
19
|
-
`Supported: darwin-arm64, darwin-x64, linux-x64, linux-arm64.\n` +
|
|
20
|
+
`Supported: darwin-arm64, darwin-x64, linux-x64, linux-arm64, win32-x64.\n` +
|
|
20
21
|
`You can install from source: https://github.com/zhixuli0406/DuDuClaw\n`
|
|
21
22
|
);
|
|
22
23
|
process.exit(0);
|