@hermespilot/link 0.2.4 → 0.2.5

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.2.4";
3727
+ var LINK_VERSION = "0.2.5";
3728
3728
  var LINK_COMMAND = "hermeslink";
3729
3729
  var LINK_DEFAULT_PORT = 52379;
3730
3730
  var LINK_RUNTIME_DIR_NAME = ".hermeslink";
@@ -3743,7 +3743,6 @@ function resolveRuntimePaths(homeDir = resolveRuntimeHome()) {
3743
3743
  databaseFile: path5.join(homeDir, "link.db"),
3744
3744
  conversationsDir: path5.join(homeDir, "conversations"),
3745
3745
  blobsDir: path5.join(homeDir, "blobs"),
3746
- deliveryStagingDir: path5.join(homeDir, "delivery-staging"),
3747
3746
  indexesDir: path5.join(homeDir, "indexes"),
3748
3747
  logsDir: path5.join(homeDir, "logs"),
3749
3748
  runDir: path5.join(homeDir, "run"),
@@ -4707,7 +4706,8 @@ function formatErrorSuffix(error) {
4707
4706
 
4708
4707
  // src/conversations/approvals.ts
4709
4708
  import { createHash } from "crypto";
4710
- var LINK_APPROVAL_RESUME_HINT = "Hermes API Server \u5F53\u524D\u8FD8\u6CA1\u6709\u66B4\u9732\u53EF\u7531 Hermes Link \u8C03\u7528\u7684\u5BA1\u6279\u7EED\u8DD1\u63A5\u53E3\u3002\u672C\u6B21\u547D\u4EE4\u6CA1\u6709\u6267\u884C\uFF1B\u4F60\u53EF\u4EE5\u5728\u7535\u8111\u7AEF Hermes \u91CC\u5904\u7406\uFF0C\u6216\u5347\u7EA7 Hermes \u540E\u91CD\u8BD5\u3002";
4709
+ var LINK_APPROVAL_RESUME_HINT_ZH = "Hermes \u5F53\u524D\u8FD8\u672A\u63D0\u4F9B\u53EF\u8C03\u7528\u7684\u5BA1\u6279\u7EED\u8DD1\u63A5\u53E3\uFF0C\u60A8\u53EF\u4EE5\u70B9\u51FB\u201C\u59CB\u7EC8\u5141\u8BB8\u201D\uFF0C\u7136\u540E\u91CD\u65B0\u53D1\u51FA\u547D\u4EE4\uFF0C\u6216\u5728\u201CProfile \u6743\u9650\u201D\u8BBE\u7F6E\u9875\u9762\u4FEE\u6539\u5BA1\u6279\u7B56\u7565\u3002";
4710
+ var LINK_APPROVAL_RESUME_HINT_EN = "Hermes does not yet provide a callable approval-resume API. Tap \u201CAlways allow\u201D, then send the command again, or change the approval policy on the \u201CProfile permissions\u201D settings page.";
4711
4711
  function extractApprovalRequestFromToolEvent(input) {
4712
4712
  if (input.event.payloadType !== "tool.completed") {
4713
4713
  return null;
@@ -4745,7 +4745,9 @@ function extractApprovalRequestFromToolEvent(input) {
4745
4745
  choices,
4746
4746
  created_at: input.createdAt,
4747
4747
  resume_available: false,
4748
- resolution_hint: LINK_APPROVAL_RESUME_HINT
4748
+ resolution_hint: LINK_APPROVAL_RESUME_HINT_ZH,
4749
+ resolution_hint_zh: LINK_APPROVAL_RESUME_HINT_ZH,
4750
+ resolution_hint_en: LINK_APPROVAL_RESUME_HINT_EN
4749
4751
  };
4750
4752
  }
4751
4753
  function upsertMessageApproval(message, approval) {
@@ -6297,7 +6299,7 @@ function deliveryStagingRunDir(paths, conversationId, runId) {
6297
6299
  }
6298
6300
  function deliveryStagingConversationDir(paths, conversationId) {
6299
6301
  assertValidConversationId(conversationId);
6300
- return path10.join(paths.deliveryStagingDir, conversationId);
6302
+ return path10.join(paths.conversationsDir, conversationId, "delivery-staging");
6301
6303
  }
6302
6304
  function safePathSegment(value, fallback) {
6303
6305
  const safe = value.trim().replaceAll(/[^a-zA-Z0-9._-]/gu, "_");
package/dist/cli/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  startDaemonProcess,
27
27
  startLinkService,
28
28
  stopDaemonProcess
29
- } from "../chunk-D55DPLGZ.js";
29
+ } from "../chunk-N4CZ2ASZ.js";
30
30
 
31
31
  // src/cli/index.ts
32
32
  import { Command } from "commander";
@@ -9,7 +9,6 @@ interface RuntimePaths {
9
9
  databaseFile: string;
10
10
  conversationsDir: string;
11
11
  blobsDir: string;
12
- deliveryStagingDir: string;
13
12
  indexesDir: string;
14
13
  logsDir: string;
15
14
  runDir: string;
@@ -171,6 +170,8 @@ interface LinkApprovalRequest {
171
170
  decision?: LinkApprovalDecision;
172
171
  resume_available: boolean;
173
172
  resolution_hint?: string;
173
+ resolution_hint_zh?: string;
174
+ resolution_hint_en?: string;
174
175
  config_path?: string;
175
176
  }
176
177
  interface LinkMessage {
package/dist/http/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApp
3
- } from "../chunk-D55DPLGZ.js";
3
+ } from "../chunk-N4CZ2ASZ.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.2.4",
3
+ "version": "0.2.5",
4
4
  "private": false,
5
5
  "description": "Hermes Link companion service and CLI for connecting hermes-agent through HermesPilot",
6
6
  "license": "MIT",