Commit Graph

17 Commits

Author SHA1 Message Date
_Kerman
338da9f2e0 refactor(agent): fold agentInterruptReasonOf into loop-private slot invariants
The public classifier existed to defend an exported reader against
arbitrary signals, but its only production caller is the loop reading
its own machine-private turn signal, where cancel() is the sole aborter
and always writes one frozen canonical cause. Delete the export and its
15-line structural validation: settle() states the slot invariant with
one cast, the boolean call sites ask signal.aborted directly, and the
retry veto drops entirely because a requested window already implies a
live signal (cancel() retires the window before aborting).

The abort(reason) channel and first-wins semantics are unchanged; only
the reader's publicness is gone, and with it the paranoia it required.
2026-07-26 20:51:32 +08:00
_Kerman
8432c68b6a docs: sync bilingual pairs and static gates with the message-machine refactor
The branch edited the English side of 17 doc pairs without their Chinese
counterparts. Bring every .zh.md up to date (loop.ts references now point
at agent.ts, send/steer/inject unification, context/message folded into
user/message, HookContext replaced by UserMessageData in tool decision
blocks, plan/skill delivery moved to agent/step) and re-record the pairing
hashes. Deduplicate type-equiv.manifest.json entries duplicated by the
master merge and drop entries for symbols the refactor removed. Complete
the missing JSDoc on extractSnapshotSpillPaths.
2026-07-26 11:48:06 +08:00
Tianyi Cui
2584f029bc Merge remote-tracking branch 'origin/master' into worktree/pr343-retarget-latest-master
# Conflicts:
#	docs/cookbook/extension-cookbook.i18n.yaml
#	docs/cookbook/extension-cookbook.zh.md
2026-07-24 21:20:17 +08:00
Tianyi Cui
6865b861d8 docs(site): preserve translated core fragment ids 2026-07-24 18:32:31 +08:00
Tianyi Cui
250162a2fc docs: align core catalog translations 2026-07-24 12:11:58 +08:00
Tianyi Cui
ed3a6ca295 Merge remote-tracking branch 'origin/docs/i18n-batch-core' into worktree/pr344-retarget-stack
# Conflicts:
#	docs/core-data-structures/session-query.md
#	scripts/type-equiv.manifest.json
2026-07-24 00:00:04 +08:00
Tianyi Cui
91f5e4d9c8 docs(i18n): clarify cancellation and orphan results 2026-07-23 21:14:34 +08:00
Tianyi Cui
0911a87409 docs(i18n): refresh core translations for latest master 2026-07-23 19:29:01 +08:00
Tianyi Cui
ba40f906dc docs(i18n): normalize core terminology 2026-07-23 18:45:56 +08:00
Tianyi Cui
eb25da2edf Revert "docs(i18n): preserve Turn and Step terms"
This reverts commit 3f0e2091122aebe83c802f25e330faa7c9c7b7f9.
2026-07-23 14:03:37 +08:00
Tianyi Cui
be7d84813e docs(i18n): preserve Turn and Step terms 2026-07-23 13:41:44 +08:00
Tianyi Cui
2f9f5ecbb7 docs(i18n): normalize turn and step terms 2026-07-23 13:25:54 +08:00
Tianyi Cui
d59af9befc docs(i18n): address core-data review feedback 2026-07-23 01:05:50 +08:00
Tianyi Cui
a5a0cad46a Merge branch 'worktree/pr343-retarget-latest-master' into worktree/pr344-retarget-stack
# Conflicts:
#	scripts/type-equiv.manifest.json
2026-07-23 00:19:53 +08:00
Tianyi Cui
01622abde7 docs(i18n): refresh core data translations after merge 2026-07-22 22:58:05 +08:00
Tianyi Cui
f72db5ac7b docs(i18n): address core data review 2026-07-22 22:19:12 +08:00
ZiyaZhang
6599acdee8 docs(i18n): add the core.md pair (long-doc lane, v4 pipeline) 2026-07-22 03:40:46 -07:00