@cocorograph/hub-agent 0.8.80 → 0.8.81

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocorograph/hub-agent",
3
- "version": "0.8.80",
3
+ "version": "0.8.81",
4
4
  "description": "Hub Hosted Cockpit のローカル常駐 agent。Hub と outbound WSS で接続し、ローカルの Claude / Codex チャットと tmux セッションを中継する。",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -1,5 +1,6 @@
1
1
  import path from "node:path"
2
2
  import { listChatTargets } from "./chat-targets.mjs"
3
+ import { hubProjectsBase } from "./chat-workspace.mjs"
3
4
  import { getChatSignal as defaultGetChatSignal } from "./chat-signals.mjs"
4
5
  import { describeLiveSessionsUnion } from "./live-sessions.mjs"
5
6
  import { sessionNameFor } from "./session-names.mjs"
@@ -142,5 +143,7 @@ export async function buildChatSessionsSnapshot({
142
143
  )
143
144
  if (replace) live[prior] = attachChatSignal(item, cwd, getChatSignal, logger)
144
145
  }
145
- return { targets, live, errors }
146
+ // chat-targets.mjs の fs.readdir(hubProjectsBase()) と同じ絶対パスに揃える(~ は展開しない)。
147
+ const projects_base = path.resolve(hubProjectsBase())
148
+ return { targets, live, errors, projects_base }
146
149
  }