aiterm-steer-delivery 0.1.10 → 0.1.11
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 +4 -0
- package/README.ja.md +1 -1
- package/README.md +1 -1
- package/dist/windows.js +12 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.11
|
|
4
|
+
|
|
5
|
+
- WindowsのPowerShell 7を実体のpathへ解決する。同じ実行ファイルがPATHの大文字小文字だけ違う形で見つかっても、Codex hookのcommandと承認hashを変えず、不要な再起動待ちを作らない(foxの定期更新とSSHからのsetupで再現)。既に記録されている再起動待ちは保持する。
|
|
6
|
+
|
|
3
7
|
## 0.1.10
|
|
4
8
|
|
|
5
9
|
- Cursorのhookの持ち主を、名前の部分一致ではなくfile名の境目まで見て決める。Aitermの`cursor-parent-hook.js`が`gpt-connector-cursor-parent-hook.js`にも当たり、Aitermのsetupと解除がgpt-connectorのCursor hookを消していた(2026-10-03、main-server)。登録の確認(`cursorParentHooksRegistered`)も同じ見分けにした。`commandNamesFile`を公開する。
|
package/README.ja.md
CHANGED
|
@@ -116,7 +116,7 @@ await runClaudeHookMain(PROFILE);
|
|
|
116
116
|
- Cursor: `mergeCursorParentHooks(PROFILE, hooksFile, { command: nodePath, script: hookPath })`
|
|
117
117
|
- Codex: `configureCodexSteer(PROFILE, "enable", { hook: hookPath })`
|
|
118
118
|
|
|
119
|
-
他の製品や利用者の hook とその順序は保ち、書き換える前にファイルの控えを残します。解除は `removeClaudeParentHooks`、`removeCursorParentHooks`、`configureCodexSteer(PROFILE, "disable", …)` です。hook を入れる前から動いている Codex が残っていると、`configureCodexSteer` は `restart_required` を返します。
|
|
119
|
+
他の製品や利用者の hook とその順序は保ち、書き換える前にファイルの控えを残します。解除は `removeClaudeParentHooks`、`removeCursorParentHooks`、`configureCodexSteer(PROFILE, "disable", …)` です。hook を入れる前から動いている Codex が残っていると、`configureCodexSteer` は `restart_required` を返します。 PowerShell の path は実体の表記に揃えるため、PATH の大文字小文字だけでは Codex hook を書き換えず、再起動を求めません。
|
|
120
120
|
|
|
121
121
|
### 4. 届ける
|
|
122
122
|
|
package/README.md
CHANGED
|
@@ -116,7 +116,7 @@ In your setup command:
|
|
|
116
116
|
- `mergeCursorParentHooks(PROFILE, hooksFile, { command: nodePath, script: hookPath })` for Cursor,
|
|
117
117
|
- `configureCodexSteer(PROFILE, "enable", { hook: hookPath })` for Codex.
|
|
118
118
|
|
|
119
|
-
They keep other products' and the user's hooks and their order, and back up the file before writing. `removeClaudeParentHooks`, `removeCursorParentHooks`, and `configureCodexSteer(PROFILE, "disable", …)` undo them. `configureCodexSteer` returns `restart_required` when Codex processes that started before the hooks were installed are still running.
|
|
119
|
+
They keep other products' and the user's hooks and their order, and back up the file before writing. `removeClaudeParentHooks`, `removeCursorParentHooks`, and `configureCodexSteer(PROFILE, "disable", …)` undo them. `configureCodexSteer` returns `restart_required` when Codex processes that started before the hooks were installed are still running. PowerShell paths use the actual filesystem spelling, so PATH casing alone does not rewrite Codex hooks or require a restart.
|
|
120
120
|
|
|
121
121
|
### 4. Deliver
|
|
122
122
|
|
package/dist/windows.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// WindowsのPowerShell 7と引数の引用。5.1/cmdへは切り替えず、見つからなければ理由付きで止める。
|
|
2
2
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
3
|
+
import { realpathSync } from "node:fs";
|
|
3
4
|
import * as path from "node:path";
|
|
4
5
|
export const WINDOWS_POWERSHELL_7_COMMAND = "pwsh.exe";
|
|
5
6
|
export const WINDOWS_POWERSHELL_7_INSTALL = "winget install --id Microsoft.PowerShell --source winget";
|
|
@@ -32,9 +33,18 @@ export function resolveWindowsPowerShell7(probe = defaultProbe) {
|
|
|
32
33
|
if (version.status !== 0 || identity?.edition !== "Core"
|
|
33
34
|
|| !Number.isInteger(identity.major) || Number(identity.major) < 7)
|
|
34
35
|
fail();
|
|
36
|
+
// where.exeは呼出元のPATHの表記を返す。工場とSSHで同じファイルのcaseが
|
|
37
|
+
// 違うと、Codex hookの文字列と承認hashまで変わり、不要な再起動待ちになる。
|
|
38
|
+
let canonical;
|
|
39
|
+
try {
|
|
40
|
+
canonical = realpathSync.native(executable);
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
return fail();
|
|
44
|
+
}
|
|
35
45
|
if (probe === defaultProbe)
|
|
36
|
-
resolvedDefault =
|
|
37
|
-
return
|
|
46
|
+
resolvedDefault = canonical;
|
|
47
|
+
return canonical;
|
|
38
48
|
}
|
|
39
49
|
export const quotePowerShell = (value) => `'${value.replace(/'/g, "''")}'`;
|
|
40
50
|
/** PowerShell 7でscriptを実行し、stdoutを返す。失敗の詳細はonFailureが製品のエラーへ変える。 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiterm-steer-delivery",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
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",
|