|
|
6d3313223f
|
refactor(sense-generator): inject provider from index.ts, roles are now sync
Provider resolved once at top level, injected into each build*Role().
Role builders no longer async — they're pure factory calls.
小橘 🍊(NEKO Team)
|
2026-04-28 03:56:02 +00:00 |
|
|
|
bc4ac8a5cc
|
refactor(sense-generator): prompt.ts instead of prompt.md + mustache
Static imports, no runtime file reads, bundler friendly.
Removed mustache dependency.
小橘 🍊(NEKO Team)
|
2026-04-28 03:38:26 +00:00 |
|
|
|
a811660a33
|
refactor(sense-generator): extract prompts to prompt.md templates
Each role's prompt is now a separate markdown file with {{mustache}} placeholders,
loaded at module init and interpolated at runtime.
小橘 🍊(NEKO Team)
|
2026-04-28 03:32:51 +00:00 |
|
|
|
516a28533a
|
refactor(sense-generator): extract meta schemas to types.ts
小橘 🍊(NEKO Team)
|
2026-04-28 02:38:07 +00:00 |
|
|
|
2d63639ed1
|
refactor(sense-generator): split roles into separate directories
Following nerve-dev best practice: each role gets its own directory.
Structure:
index.ts — 31 lines (WorkflowDefinition + moderator)
roles/planner/index.ts — 48 lines (createCursorRole)
roles/coder/index.ts — 33 lines (createCursorRole)
roles/tester/index.ts — 122 lines (hand-written smoke test)
roles/shared.ts — 63 lines (providers, helpers)
roles/types.ts — 5 lines (SenseMeta)
Was: single 416-line index.ts
Refs uncaged/nerve#210
小橘 🍊(NEKO Team)
|
2026-04-28 02:30:12 +00:00 |
|