@hermespilot/link 0.2.6 → 0.2.7

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.6";
3727
+ var LINK_VERSION = "0.2.7";
3728
3728
  var LINK_COMMAND = "hermeslink";
3729
3729
  var LINK_DEFAULT_PORT = 52379;
3730
3730
  var LINK_RUNTIME_DIR_NAME = ".hermeslink";
@@ -7938,6 +7938,7 @@ function upsertAgentEventProjection(events, next) {
7938
7938
  ...next,
7939
7939
  id: previous.id,
7940
7940
  title: isGenericToolTitle(next.title) ? previous.title : next.title,
7941
+ created_at: earliestTimestamp(previous.created_at, next.created_at),
7941
7942
  subtitle: nextSubtitleIsFallback ? previous.subtitle ?? next.subtitle : next.subtitle ?? previous.subtitle,
7942
7943
  detail: next.detail ?? previous.detail,
7943
7944
  completed_at: next.completed_at ?? previous.completed_at
@@ -7946,6 +7947,17 @@ function upsertAgentEventProjection(events, next) {
7946
7947
  copy[index] = merged;
7947
7948
  return copy;
7948
7949
  }
7950
+ function earliestTimestamp(left, right) {
7951
+ const leftTime = Date.parse(left);
7952
+ const rightTime = Date.parse(right);
7953
+ if (Number.isNaN(leftTime)) {
7954
+ return right;
7955
+ }
7956
+ if (Number.isNaN(rightTime)) {
7957
+ return left;
7958
+ }
7959
+ return leftTime <= rightTime ? left : right;
7960
+ }
7949
7961
  function isGenericToolTitle(value) {
7950
7962
  const normalized = value.trim().toLowerCase().replace(/[\s_-]+/gu, "");
7951
7963
  return normalized === "tool" || normalized === "toolcall" || value === "\u5DE5\u5177\u8C03\u7528";
package/dist/cli/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  startDaemonProcess,
27
27
  startLinkService,
28
28
  stopDaemonProcess
29
- } from "../chunk-72RM6Y4H.js";
29
+ } from "../chunk-SSJ7WDD7.js";
30
30
 
31
31
  // src/cli/index.ts
32
32
  import { Command } from "commander";
package/dist/http/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApp
3
- } from "../chunk-72RM6Y4H.js";
3
+ } from "../chunk-SSJ7WDD7.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.6",
3
+ "version": "0.2.7",
4
4
  "private": false,
5
5
  "description": "Hermes Link companion service and CLI for connecting hermes-agent through HermesPilot",
6
6
  "license": "MIT",