refactor: derive event graphs and scope invariants from TypeScript

This commit is contained in:
imccyu
2026-07-14 23:14:51 +08:00
parent 174619929d
commit c67c3d9413
20 changed files with 938 additions and 248 deletions
+2
View File
@@ -77,6 +77,7 @@ declare module 'cordis' {
* parent-scoped listener observes only its own delegations. Paired with
* `subagent/end`.
* @param info - the provider and ready child identity.
* @dshScopeScan unsupported
* @mode emit
*/
'subagent/start'(this: Scoped<SubagentService>, info: SubagentRunInfo): void
@@ -85,6 +86,7 @@ declare module 'cordis' {
* parent carrier as `subagent/start`, so the lifecycle pair reaches the
* same scoped audience.
* @param info - the run identity and terminal outcome.
* @dshScopeScan unsupported
* @mode emit
*/
'subagent/end'(this: Scoped<SubagentService>, info: SubagentRunEndInfo): void