alink-cli 0.6.2 → 0.7.1

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/dist/qr.js CHANGED
@@ -24,9 +24,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  mod
25
25
  ));
26
26
 
27
- // node_modules/qrcode-terminal/vendor/QRCode/QRMode.js
27
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRMode.js
28
28
  var require_QRMode = __commonJS({
29
- "node_modules/qrcode-terminal/vendor/QRCode/QRMode.js"(exports, module) {
29
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRMode.js"(exports, module) {
30
30
  module.exports = {
31
31
  MODE_NUMBER: 1 << 0,
32
32
  MODE_ALPHA_NUM: 1 << 1,
@@ -36,9 +36,9 @@ var require_QRMode = __commonJS({
36
36
  }
37
37
  });
38
38
 
39
- // node_modules/qrcode-terminal/vendor/QRCode/QR8bitByte.js
39
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QR8bitByte.js
40
40
  var require_QR8bitByte = __commonJS({
41
- "node_modules/qrcode-terminal/vendor/QRCode/QR8bitByte.js"(exports, module) {
41
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QR8bitByte.js"(exports, module) {
42
42
  var QRMode = require_QRMode();
43
43
  function QR8bitByte(data) {
44
44
  this.mode = QRMode.MODE_8BIT_BYTE;
@@ -58,9 +58,9 @@ var require_QR8bitByte = __commonJS({
58
58
  }
59
59
  });
60
60
 
61
- // node_modules/qrcode-terminal/vendor/QRCode/QRMath.js
61
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRMath.js
62
62
  var require_QRMath = __commonJS({
63
- "node_modules/qrcode-terminal/vendor/QRCode/QRMath.js"(exports, module) {
63
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRMath.js"(exports, module) {
64
64
  var QRMath = {
65
65
  glog: function(n) {
66
66
  if (n < 1) {
@@ -96,9 +96,9 @@ var require_QRMath = __commonJS({
96
96
  }
97
97
  });
98
98
 
99
- // node_modules/qrcode-terminal/vendor/QRCode/QRPolynomial.js
99
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRPolynomial.js
100
100
  var require_QRPolynomial = __commonJS({
101
- "node_modules/qrcode-terminal/vendor/QRCode/QRPolynomial.js"(exports, module) {
101
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRPolynomial.js"(exports, module) {
102
102
  var QRMath = require_QRMath();
103
103
  function QRPolynomial(num, shift) {
104
104
  if (num.length === void 0) {
@@ -148,9 +148,9 @@ var require_QRPolynomial = __commonJS({
148
148
  }
149
149
  });
150
150
 
151
- // node_modules/qrcode-terminal/vendor/QRCode/QRMaskPattern.js
151
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRMaskPattern.js
152
152
  var require_QRMaskPattern = __commonJS({
153
- "node_modules/qrcode-terminal/vendor/QRCode/QRMaskPattern.js"(exports, module) {
153
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRMaskPattern.js"(exports, module) {
154
154
  module.exports = {
155
155
  PATTERN000: 0,
156
156
  PATTERN001: 1,
@@ -164,9 +164,9 @@ var require_QRMaskPattern = __commonJS({
164
164
  }
165
165
  });
166
166
 
167
- // node_modules/qrcode-terminal/vendor/QRCode/QRUtil.js
167
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRUtil.js
168
168
  var require_QRUtil = __commonJS({
169
- "node_modules/qrcode-terminal/vendor/QRCode/QRUtil.js"(exports, module) {
169
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRUtil.js"(exports, module) {
170
170
  var QRMode = require_QRMode();
171
171
  var QRPolynomial = require_QRPolynomial();
172
172
  var QRMath = require_QRMath();
@@ -388,9 +388,9 @@ var require_QRUtil = __commonJS({
388
388
  }
389
389
  });
390
390
 
391
- // node_modules/qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js
391
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js
392
392
  var require_QRErrorCorrectLevel = __commonJS({
393
- "node_modules/qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js"(exports, module) {
393
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js"(exports, module) {
394
394
  module.exports = {
395
395
  L: 1,
396
396
  M: 0,
@@ -400,9 +400,9 @@ var require_QRErrorCorrectLevel = __commonJS({
400
400
  }
401
401
  });
402
402
 
403
- // node_modules/qrcode-terminal/vendor/QRCode/QRRSBlock.js
403
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRRSBlock.js
404
404
  var require_QRRSBlock = __commonJS({
405
- "node_modules/qrcode-terminal/vendor/QRCode/QRRSBlock.js"(exports, module) {
405
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRRSBlock.js"(exports, module) {
406
406
  var QRErrorCorrectLevel = require_QRErrorCorrectLevel();
407
407
  function QRRSBlock(totalCount, dataCount) {
408
408
  this.totalCount = totalCount;
@@ -649,9 +649,9 @@ var require_QRRSBlock = __commonJS({
649
649
  }
650
650
  });
651
651
 
652
- // node_modules/qrcode-terminal/vendor/QRCode/QRBitBuffer.js
652
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRBitBuffer.js
653
653
  var require_QRBitBuffer = __commonJS({
654
- "node_modules/qrcode-terminal/vendor/QRCode/QRBitBuffer.js"(exports, module) {
654
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/QRBitBuffer.js"(exports, module) {
655
655
  function QRBitBuffer() {
656
656
  this.buffer = [];
657
657
  this.length = 0;
@@ -684,9 +684,9 @@ var require_QRBitBuffer = __commonJS({
684
684
  }
685
685
  });
686
686
 
687
- // node_modules/qrcode-terminal/vendor/QRCode/index.js
687
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/index.js
688
688
  var require_QRCode = __commonJS({
689
- "node_modules/qrcode-terminal/vendor/QRCode/index.js"(exports, module) {
689
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/vendor/QRCode/index.js"(exports, module) {
690
690
  var QR8bitByte = require_QR8bitByte();
691
691
  var QRUtil = require_QRUtil();
692
692
  var QRPolynomial = require_QRPolynomial();
@@ -1004,9 +1004,9 @@ var require_QRCode = __commonJS({
1004
1004
  }
1005
1005
  });
1006
1006
 
1007
- // node_modules/qrcode-terminal/lib/main.js
1007
+ // ../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/lib/main.js
1008
1008
  var require_main = __commonJS({
1009
- "node_modules/qrcode-terminal/lib/main.js"(exports, module) {
1009
+ "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/lib/main.js"(exports, module) {
1010
1010
  var QRCode = require_QRCode();
1011
1011
  var QRErrorCorrectLevel = require_QRErrorCorrectLevel();
1012
1012
  var black = "\x1B[40m \x1B[0m";
package/package.json CHANGED
@@ -1,33 +1,25 @@
1
1
  {
2
2
  "name": "alink-cli",
3
- "version": "0.6.2",
3
+ "version": "0.7.1",
4
4
  "description": "一条命令把工作机接入 AgentLink,随时随地遥控本机的编码 agent。One command to link your machine to AgentLink and control your coding agents from anywhere.",
5
- "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/baichen99/agentlink.git",
9
- "directory": "packages/cli"
10
- },
11
- "homepage": "https://github.com/baichen99/agentlink#readme",
12
- "bugs": "https://github.com/baichen99/agentlink/issues",
13
- "engines": {
14
- "node": ">=20"
15
- },
16
- "publishConfig": {
17
- "registry": "https://registry.npmjs.org/",
18
- "access": "public"
19
- },
20
5
  "keywords": [
21
- "claude-code",
22
- "codex",
23
6
  "acp",
24
7
  "agent-client-protocol",
8
+ "claude-code",
9
+ "cli",
10
+ "codex",
25
11
  "coding-agent",
26
12
  "remote-control",
27
- "cli",
28
13
  "self-hosted"
29
14
  ],
30
- "type": "module",
15
+ "homepage": "https://github.com/baichen99/agentlink#readme",
16
+ "bugs": "https://github.com/baichen99/agentlink/issues",
17
+ "license": "MIT",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/baichen99/agentlink.git",
21
+ "directory": "packages/cli"
22
+ },
31
23
  "bin": {
32
24
  "agentlink": "bin/agentlink.js"
33
25
  },
@@ -36,12 +28,31 @@
36
28
  "dist",
37
29
  "README.md"
38
30
  ],
31
+ "type": "module",
32
+ "publishConfig": {
33
+ "access": "public",
34
+ "registry": "https://registry.npmjs.org/"
35
+ },
39
36
  "scripts": {
40
- "build": "esbuild src/main.ts --bundle --platform=node --format=esm --outfile=dist/daemon.js --external:bufferutil --external:utf-8-validate --banner:js=\"import { createRequire as __agentlinkRequire } from 'module'; const require = __agentlinkRequire(import.meta.url);\" && esbuild qr-entry.js --bundle --platform=node --format=esm --outfile=dist/qr.js",
37
+ "build": "pnpm --dir ../daemon-t3 build:bundle && node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && mkdir -p dist && cp -R ../daemon-t3/dist/. dist/ && esbuild src/main.ts --bundle --platform=node --format=esm --outfile=dist/daemon.js --external:bufferutil --external:utf-8-validate --banner:js=\"import { createRequire as __agentlinkRequire } from 'module'; const require = __agentlinkRequire(import.meta.url);\" && esbuild qr-entry.js --bundle --platform=node --format=esm --outfile=dist/qr.js",
41
38
  "typecheck": "tsc",
42
- "test": "npm run build && node test/self-test.js && node test/multi-tenant-test.js && node test/pairing-test.js && node test/daemon-ctl-test.js && node test/e2e-test.js && node test/acp-test.js && node test/approval-test.js && node test/session-takeover-test.js",
39
+ "test": "npm run build && node test/t3-wrapper-test.js && node test/self-test.js && node test/multi-tenant-test.js && node test/pairing-test.js && node test/e2e-test.js && node test/acp-test.js && node test/approval-test.js && node test/session-takeover-test.js",
40
+ "test:package": "node test/package-install-test.js",
43
41
  "test:real": "npm run build && node test/real-run.js",
44
- "prepublishOnly": "npm run build"
42
+ "prepack": "npm run build"
43
+ },
44
+ "dependencies": {
45
+ "@agentclientprotocol/codex-acp": "1.1.9",
46
+ "@agentclientprotocol/sdk": "^1.3.0",
47
+ "@anthropic-ai/claude-agent-sdk": "0.3.170",
48
+ "@effect/platform-node": "4.0.0-beta.103",
49
+ "@effect/platform-node-shared": "4.0.0-beta.103",
50
+ "@ff-labs/fff-node": "0.9.4",
51
+ "@zed-industries/claude-code-acp": "0.16.2",
52
+ "effect": "4.0.0-beta.103",
53
+ "qrcode-terminal": "^0.12.0",
54
+ "ws": "^8.18.0",
55
+ "yaml": "2.9.0"
45
56
  },
46
57
  "devDependencies": {
47
58
  "@agentlink/core": "file:../core",
@@ -52,9 +63,7 @@
52
63
  "typescript": "^5.8.0",
53
64
  "ws": "^8.18.0"
54
65
  },
55
- "dependencies": {
56
- "@agentclientprotocol/codex-acp": "1.1.9",
57
- "@agentclientprotocol/sdk": "^1.3.0",
58
- "@zed-industries/claude-code-acp": "0.16.2"
66
+ "engines": {
67
+ "node": "^22.16 || ^23.11 || >=24.10"
59
68
  }
60
69
  }