duduclaw-pro 1.4.13

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.
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env node
2
+
3
+ "use strict";
4
+
5
+ const { spawnSync } = require("child_process");
6
+ const path = require("path");
7
+
8
+ const PLATFORM_PACKAGES = {
9
+ "darwin-arm64": "@duduclaw/pro-darwin-arm64",
10
+ "darwin-x64": "@duduclaw/pro-darwin-x64",
11
+ };
12
+
13
+ function getBinaryPath() {
14
+ const key = `${process.platform}-${process.arch}`;
15
+ const pkg = PLATFORM_PACKAGES[key];
16
+ if (!pkg) {
17
+ throw new Error(
18
+ `DuDuClaw Pro does not support ${process.platform}-${process.arch} yet.\n` +
19
+ `Currently supported: macOS (ARM64 / x64).`
20
+ );
21
+ }
22
+
23
+ try {
24
+ const pkgDir = path.dirname(require.resolve(`${pkg}/package.json`));
25
+ return path.join(pkgDir, "bin", "duduclaw-pro");
26
+ } catch {
27
+ throw new Error(
28
+ `Could not find ${pkg}. Please reinstall duduclaw-pro:\n npm install -g duduclaw-pro`
29
+ );
30
+ }
31
+ }
32
+
33
+ const binPath = getBinaryPath();
34
+ const result = spawnSync(binPath, process.argv.slice(2), {
35
+ stdio: "inherit",
36
+ env: process.env,
37
+ });
38
+
39
+ if (result.error) {
40
+ console.error(`Failed to run DuDuClaw Pro: ${result.error.message}`);
41
+ process.exit(1);
42
+ }
43
+
44
+ process.exit(result.status ?? 1);
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "duduclaw-pro",
3
+ "version": "1.4.13",
4
+ "description": "DuDuClaw Pro — Multi-Agent AI Assistant Platform (Pro Edition)",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/zhixuli0406/DuDuClaw.git",
9
+ "directory": "npm/duduclaw-pro"
10
+ },
11
+ "homepage": "https://github.com/zhixuli0406/DuDuClaw",
12
+ "keywords": [
13
+ "ai",
14
+ "agent",
15
+ "claude",
16
+ "multi-agent",
17
+ "assistant",
18
+ "duduclaw",
19
+ "pro"
20
+ ],
21
+ "bin": {
22
+ "duduclaw-pro": "bin/duduclaw-pro"
23
+ },
24
+ "files": [
25
+ "bin",
26
+ "scripts"
27
+ ],
28
+ "scripts": {
29
+ "postinstall": "node scripts/install.js"
30
+ },
31
+ "optionalDependencies": {
32
+ "@duduclaw/pro-darwin-arm64": "1.4.13",
33
+ "@duduclaw/pro-darwin-x64": "1.4.13"
34
+ }
35
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ const PLATFORM_PACKAGES = {
4
+ "darwin-arm64": "@duduclaw/pro-darwin-arm64",
5
+ "darwin-x64": "@duduclaw/pro-darwin-x64",
6
+ };
7
+
8
+ const key = `${process.platform}-${process.arch}`;
9
+ const pkg = PLATFORM_PACKAGES[key];
10
+
11
+ if (!pkg) {
12
+ console.warn(
13
+ `\n[duduclaw-pro] Warning: unsupported platform ${key}.\n` +
14
+ `DuDuClaw Pro currently supports: macOS (ARM64 / x64).\n` +
15
+ `For other platforms, use the Community Edition: npm install -g duduclaw\n`
16
+ );
17
+ process.exit(0);
18
+ }
19
+
20
+ try {
21
+ require.resolve(`${pkg}/package.json`);
22
+ } catch {
23
+ console.warn(
24
+ `\n[duduclaw-pro] Warning: platform package ${pkg} was not installed.\n` +
25
+ `This may happen with --no-optional. Try:\n` +
26
+ ` npm install -g duduclaw-pro\n`
27
+ );
28
+ }