alink-cli 0.8.8 → 0.8.10

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/daemon.js CHANGED
@@ -23527,7 +23527,7 @@ import {
23527
23527
  import { homedir as homedir5 } from "node:os";
23528
23528
  import { basename, join as join5 } from "node:path";
23529
23529
 
23530
- // ../core/src/session-archive.ts
23530
+ // ../../node_modules/.pnpm/@agentlink+core@file+packages+core_ai@7.0.52_zod@4.4.3_/node_modules/@agentlink/core/src/session-archive.ts
23531
23531
  function resultText(content) {
23532
23532
  if (typeof content === "string") return content;
23533
23533
  if (Array.isArray(content)) {
@@ -24763,6 +24763,13 @@ function connect2() {
24763
24763
  console.error(`[daemon] the hub rejected this credential: it is invalid or has expired. Add this machine again in the console and restart the daemon with the fresh credential.`);
24764
24764
  return;
24765
24765
  }
24766
+ if (msg.type === "enckey_upload_request" && CRED.multi && CRED.machineId && ENCKEY) {
24767
+ uploadEnckey(HUB, TOKEN, CRED.machineId, ENCKEY).then(
24768
+ () => console.log(`[daemon] enckey uploaded to hub for cross-device recovery`),
24769
+ (err) => console.error(`[daemon] enckey upload failed: ${err instanceof Error ? err.message : err}`)
24770
+ );
24771
+ return;
24772
+ }
24766
24773
  if (!registered) {
24767
24774
  if (msg.type === "error" && msg.error === "unsupported_version") {
24768
24775
  clearTimeout(helloTimer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alink-cli",
3
- "version": "0.8.8",
3
+ "version": "0.8.10",
4
4
  "description": "一条命令把工作机接入 AgentLink,随时随地遥控本机的编码 agent。One command to link your machine to AgentLink and control your coding agents from anywhere.",
5
5
  "keywords": [
6
6
  "acp",
@@ -37,7 +37,7 @@
37
37
  "scripts": {
38
38
  "build": "cd ../daemon-t3 && ../../node_modules/.bin/vp pack && cd ../cli && 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 && esbuild src/ui.tsx --bundle --platform=node --format=esm --outfile=dist/ui.js --external:bufferutil --external:utf-8-validate --banner:js=\"import { createRequire as __agentlinkRequire } from 'module'; const require = __agentlinkRequire(import.meta.url);\"",
39
39
  "typecheck": "tsc",
40
- "test": "npm run build && node test/account-login-test.js && 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": "npm run build && node test/daemon-lock-test.js && node test/daemon-duplicate-test.js && node test/account-login-test.js && 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",
41
41
  "test:package": "node test/package-install-test.js",
42
42
  "test:real": "npm run build && node test/real-run.js",
43
43
  "prepack": "npm run build"