@hermespilot/link 0.3.0 → 0.3.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.
@@ -3724,7 +3724,7 @@ import os2 from "os";
3724
3724
  import path5 from "path";
3725
3725
 
3726
3726
  // src/constants.ts
3727
- var LINK_VERSION = "0.3.0";
3727
+ var LINK_VERSION = "0.3.1";
3728
3728
  var LINK_COMMAND = "hermeslink";
3729
3729
  var LINK_DEFAULT_PORT = 52379;
3730
3730
  var LINK_RUNTIME_DIR_NAME = ".hermeslink";
@@ -20492,7 +20492,6 @@ export {
20492
20492
  resolveRuntimePaths,
20493
20493
  getLinkLogFile,
20494
20494
  ensureHermesApiServerAvailable,
20495
- readHermesVersion,
20496
20495
  loadConfig,
20497
20496
  saveConfig,
20498
20497
  normalizeLanHost,
package/dist/cli/index.js CHANGED
@@ -20,7 +20,6 @@ import {
20
20
  preparePairing,
21
21
  probeLocalLinkService,
22
22
  readHermesApiServerConfig,
23
- readHermesVersion,
24
23
  readPairingClaim,
25
24
  reportLinkStatusToServer,
26
25
  resolveHermesConfigPath,
@@ -31,7 +30,7 @@ import {
31
30
  startDaemonProcess,
32
31
  startLinkService,
33
32
  stopDaemonProcess
34
- } from "../chunk-45RR27KS.js";
33
+ } from "../chunk-PSHYSZAP.js";
35
34
 
36
35
  // src/cli/index.ts
37
36
  import { Command } from "commander";
@@ -510,21 +509,6 @@ async function assertPairingPreflightReady(options = {}) {
510
509
  if (failures.length > 0) {
511
510
  throwPairingPreflightError(failures);
512
511
  }
513
- const readVersion = options.readHermesVersion ?? readHermesVersion;
514
- try {
515
- await readVersion();
516
- } catch (error) {
517
- throwPairingPreflightError([
518
- {
519
- code: "hermes_cli_unavailable",
520
- zh: "\u6CA1\u6709\u627E\u5230\u53EF\u7528\u7684 Hermes Agent CLI\u3002Link \u9700\u8981\u548C Hermes \u5728\u540C\u4E00\u4E2A\u7CFB\u7EDF\u73AF\u5883\u91CC\uFF0C\u624D\u80FD\u5728\u914D\u5BF9\u65F6\u542F\u52A8\u548C\u68C0\u6D4B Hermes Gateway\u3002",
521
- en: "Hermes Agent CLI was not found. Link needs Hermes to be available in the same system environment so it can start and check Hermes Gateway during pairing.",
522
- actionZh: "\u8BF7\u628A Hermes Agent \u5B89\u88C5\u5728\u8FD9\u53F0\u5BBF\u4E3B\u673A\u4E0A\uFF0C\u6216\u628A `HERMES_BIN` \u6307\u5411 Link \u53EF\u4EE5\u76F4\u63A5\u6267\u884C\u7684 Hermes CLI\u3002\u5F53\u524D\u5982\u679C Hermes \u53EA\u5728\u53E6\u4E00\u4E2A Docker\u3001WSL \u6216\u865A\u62DF\u673A\u73AF\u5883\u91CC\uFF0C\u5BBF\u4E3B\u673A Link \u4E0D\u80FD\u76F4\u63A5\u7528\u5B83\u5B8C\u6210\u914D\u5BF9\u524D\u68C0\u67E5\u3002",
523
- actionEn: "Install Hermes Agent on this host, or point `HERMES_BIN` to a Hermes CLI that Link can run directly in this system environment. If Hermes only exists inside another Docker, WSL, or VM environment, host Link cannot use it for pairing preflight.",
524
- detail: error instanceof Error ? error.message : String(error)
525
- }
526
- ]);
527
- }
528
512
  const apiServerConfig = await readHermesApiServerConfig(profileName, configPath);
529
513
  if (apiServerConfig.enabled !== true) {
530
514
  throwPairingPreflightError([
package/dist/http/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApp
3
- } from "../chunk-45RR27KS.js";
3
+ } from "../chunk-PSHYSZAP.js";
4
4
  export {
5
5
  createApp
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hermespilot/link",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "description": "Hermes Link companion service and CLI for connecting hermes-agent through HermesPilot",
6
6
  "license": "MIT",