docs(rfc-001): add execution model — Role, Moderator, Agent types

Ported from nerve's workflow types. Covers ThreadContext, StartStep,
RoleStep, Moderator (pure router), Role (async actor), AgentFn (LLM adapter),
WorkflowDefinition, and execution flow.

小橘 <xiaoju@shazhou.work>
This commit is contained in:
2026-05-06 04:41:52 +00:00
parent e9729fbe3a
commit 01e930df8f
14 changed files with 692 additions and 3 deletions
+8
View File
@@ -7,5 +7,13 @@
"scripts": {
"build": "echo 'TODO'",
"test": "bun test"
},
"dependencies": {
"acorn": "^8.16.0",
"xxhashjs": "^0.2.2",
"yaml": "^2.8.4"
},
"devDependencies": {
"@types/acorn": "^6.0.4"
}
}