aiterm-steer-delivery 0.1.5 → 0.1.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.6
4
+
5
+ - Cursor CLI(cursor-agent)の親もCursor親として見分ける。CLIはMCPのinitializeで`clientInfo.name`を`"Cursor"`と名乗り、`"cursor-vscode"`(Desktop)しか見ていなかったため、CLIから呼ぶとhookと背景受信の配送に乗らなかった(紅蓮氏の報告、macbookのcursor-agent 2026.09.28で確認)。
3
6
  ## 0.1.5
4
7
 
5
8
  - Steerの導入で「再起動が要るCodex」を数える時、別のCODEX_HOMEで動くCodex(同じ端末の他の利用者やBot)まで数えていた(紅蓮氏の報告)。Linuxではprocessの環境からCODEX_HOME(無ければHOME/.codex)を読み、hookを入れた場所のものだけを数える。macOS・Windowsは他processの環境を読めないので、今までどおり数える。
@@ -11,10 +11,12 @@ export const cursorParentSchema = z.object({
11
11
  hook_root: z.string(),
12
12
  }).strict();
13
13
  const deliveryIdSchema = z.string().uuid();
14
+ // Cursor DesktopはMCPのinitializeで "cursor-vscode"、Cursor CLI(cursor-agent)は "Cursor" と名乗る。
15
+ // どちらも同じ ~/.cursor/hooks.json のhookで届く。
14
16
  export function isCursorMcpClient(clientName) {
15
17
  if (clientName === undefined)
16
18
  return false;
17
- return clientName === "cursor-vscode" || clientName.startsWith("cursor-vscode ");
19
+ return clientName === "cursor-vscode" || clientName.startsWith("cursor-vscode ") || clientName === "Cursor";
18
20
  }
19
21
  export function cursorHooksFile(home = process.env.HOME ?? homedir()) {
20
22
  return path.join(process.env.CURSOR_HOME ?? path.join(home, ".cursor"), "hooks.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiterm-steer-delivery",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Aiterm's steer delivery as a library: deliver text to the parent AI session that called your MCP tool — steered into the running turn when it is busy, delivered normally when it is idle. Codex (official queue + sync hooks), Claude Code (asyncRewake hooks), Cursor (hooks + background receiver).",
5
5
  "type": "module",
6
6
  "license": "MIT",