docs(i18n): resolve follow-up review findings

This commit is contained in:
xjt
2026-07-29 18:38:56 +08:00
parent ed4a6fd026
commit e1481e2d98
70 changed files with 74 additions and 74 deletions

View File

@@ -3,4 +3,4 @@
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write packages/hooks/hooks-claude/README.md
README.md: 24259c24ea35cd450f8ea27ca2cca423ed4406bd
README.zh.md: 8fb40ae8e5ce74ddcc6bf91dd3c5ff12ca55a65a
README.zh.md: 0a7afc20eba02d59d293124936cb81aeba6d3f0f

View File

@@ -37,7 +37,7 @@ hook **本身**会在 agent 的会话工作区中运行:对 agent scope 点,
| CC hook | Harness seam | 映射 |
|---|---|---|
| `SessionStart` | `agent/session-start`emit | additionalContext → `agent.inject()` 到新会话(无法阻塞) |
| `UserPromptSubmit` | `agent/prompt-submit`waterfall瀑布式事件) | `deny``PromptDecision.block`;仅 additionalContext → 通过 `next()` 委托,再将一个单独标记源的上下文前置到下游 `additionalContexts`(后续 listener 仍可阻塞/改写) |
| `UserPromptSubmit` | `agent/prompt-submit`waterfall瀑布式事件) | `deny``PromptDecision.block`;仅 additionalContext → 通过 `next()` 委托,再将一个单独标记源的上下文前置到下游 `additionalContexts`(后续 listener 仍可阻塞/改写) |
| `PreToolUse` | `tools/pre-execute`waterfall | `deny``PreToolDecision.deny``ask``PreToolDecision.ask` |
| `PostToolUse` | `tools/post-execute`waterfall | `deny` → 带反馈的 `block`;仅 additionalContext → 通过 `next()` 委托再将一个单独标记源的上下文前置到下游决策Code Mode 将子调用上下文延迟到外层 `run_code` 结果 |
| `Stop` | `agent/turn-stopping`serial | 阻塞 Stop hook 通过 `steer()` 送入其原因,强制再执行一步 |

View File

@@ -3,4 +3,4 @@
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write packages/hooks/hooks-codex/README.md
README.md: fd57762c6fb91e0ea47ec57c30bf9850bc488a33
README.zh.md: 1177130152209068c2e33cd808990fcc299b8f82
README.zh.md: 58b387e22f0e56770e4ea779f184c6c82a38ff98

View File

@@ -43,7 +43,7 @@ hook 本身会在 agent智能体的会话工作区中运行对 agent sc
| Codex hook | Harness seam | 映射 |
|---|---|---|
| `SessionStart` | `agent/session-start`emit | 纯 stdout hook 的输出 → additionalContext → `agent.inject()` |
| `UserPromptSubmit` | `agent/prompt-submit`waterfall瀑布式事件) | `block`(退出码 2`PromptDecision.block`;仅 additionalContext → 通过 `next()` 委托,再将一个单独标记源的上下文前置到下游 `additionalContexts` |
| `UserPromptSubmit` | `agent/prompt-submit`waterfall瀑布式事件) | `block`(退出码 2`PromptDecision.block`;仅 additionalContext → 通过 `next()` 委托,再将一个单独标记源的上下文前置到下游 `additionalContexts` |
| `PreToolUse` | `tools/pre-execute`waterfall | `block``PreToolDecision.deny`(没有 `allow``ask` |
| `PostToolUse` | `tools/post-execute`waterfall | `block` → 带反馈的 `block`;仅 additionalContext → 通过 `next()` 委托再将一个单独标记源的上下文前置到下游决策Code Mode 将子调用上下文延迟到外层 `run_code` 结果 |
| `Stop` | `agent/turn-stopping`serial | 阻塞 Stop hook 通过 `steer()` 送入其原因,强制再执行一步 |