superduck-cli 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/bin/superduck.js +0 -3
  2. package/package.json +5 -5
package/bin/superduck.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- // 平台 shim: 找到当前平台的二进制并 spawn 它,完整透传 stdio + exit code。
3
2
  "use strict";
4
3
  const { spawnSync } = require("child_process");
5
4
  const path = require("path");
@@ -13,7 +12,6 @@ let binPath;
13
12
  try {
14
13
  binPath = require.resolve(`${pkg}/bin/${exeName}`);
15
14
  } catch {
16
- // 回退: 同 repo 自带二进制(开发场景)
17
15
  const dev = path.resolve(__dirname, "..", "..", "chrome-native-host", "build", "superduck");
18
16
  if (fs.existsSync(dev)) binPath = dev;
19
17
  }
@@ -25,7 +23,6 @@ if (!binPath) {
25
23
  process.exit(127);
26
24
  }
27
25
 
28
- // --postinstall 仅 chmod, 不实际跑二进制
29
26
  if (process.argv[2] === "--postinstall") {
30
27
  try {
31
28
  if (platform !== "win32") fs.chmodSync(binPath, 0o755);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superduck-cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Your browser's session, callable as a tool. CLI bridge from Claude Code/Codex/etc to your active Chrome tab.",
5
5
  "bin": {
6
6
  "superduck": "bin/superduck.js"
@@ -14,10 +14,10 @@
14
14
  "postinstall": "node bin/superduck.js --postinstall || true"
15
15
  },
16
16
  "optionalDependencies": {
17
- "superduck-darwin-arm64": "0.2.1",
18
- "superduck-darwin-x64": "0.2.1",
19
- "superduck-linux-arm64": "0.2.1",
20
- "superduck-linux-x64": "0.2.1"
17
+ "superduck-darwin-arm64": "0.2.2",
18
+ "superduck-darwin-x64": "0.2.2",
19
+ "superduck-linux-arm64": "0.2.2",
20
+ "superduck-linux-x64": "0.2.2"
21
21
  },
22
22
  "engines": {
23
23
  "node": ">=16"