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
fd3a8c64f2
refactor(sense-generator): remove unnecessary buildWorkflow wrapper
...
小橘 🍊 (NEKO Team)
2026-04-28 02:32:55 +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
e05c71d6b0
refactor(sense-generator): use createCursorRole factory, slim meta to routing-only
...
- planner/coder: replaced 80+ lines hand-written agent calls with createCursorRole()
- SenseMeta slimmed to routing signals only (senseName, filesCreated, passed/attempt)
- Roles read context from thread via nerve thread <id>, not from previous role's meta
- tester stays hand-written (pure CLI logic)
- Re-exported spawnSafe from workflow-utils for helper use
Refs uncaged/nerve#210
小橘 🍊 (NEKO Team)
2026-04-28 02:22:38 +00:00
8ff6003a75
refactor(sense-generator): use createCursorRole and slim SenseMeta
...
Replace hand-written planner and coder with createCursorRole from nerve-workflow-utils. Prompts instruct reading the Nerve thread via nerve thread show. Extract uses resolveDashScopeProvider. SenseMeta keeps routing-only fields; tester remains hand-written with filesystem and smoke checks.
Made-with: Cursor
2026-04-28 02:20:01 +00:00
714a320bdc
feat: add hello-world workflow and update sense-generator config
...
- Add hello-world workflow generated by workflow-generator
- Add package.json/tsconfig.json to sense-generator
- Update nerve.yaml
小橘 🍊 (NEKO Team)
2026-04-25 06:12:29 +00:00
9f2067db7d
fix: add dryRun early-return for all roles in workflow-generator
...
llmExtract returns {} as T in dryRun mode, causing .map() on undefined.
Each role now returns mock data immediately when dryRun is true.
小橘 🍊 (NEKO Team)
2026-04-25 04:24:42 +00:00
9a3c50c257
refactor: consolidate senses — merge tcp-socket-stats into system-health, remove cpu-usage
...
- Remove cpu-usage sense (redundant with system-health loadavg)
- Remove linux-tcp-socket-stats (merged into linux-system-health)
- Remove disk-usage-mounts (unused)
- Add tcp socket fields to system-health schema + migration
- Simplify nerve.yaml: 4 senses → 2
小橘 <xiaoju@shazhou.work>
2026-04-24 06:13:51 +00:00
d1a2ee876a
fix: hermesRun command and tester verdict via llmExtract
...
- Fix hermes invocation: 'hermes -q' → 'hermes chat -q' with proper flags
- Replace fragile string.includes('PASS') with llmExtract judge
(previous false positive: matched '--pass-session-id' in usage text)
小橘 🍊 (NEKO Team)
2026-04-23 12:20:11 +00:00
56c7588c82
feat: sense-generator workflow with llmExtract metadata extraction
...
- Planner uses cursor-agent ask mode (not plan mode) for stdout output
- llmExtract: structured metadata extraction via DashScope qwen-plus + tool_choice
- Replaces fragile regex name parsing with reliable LLM tool call
- Removed unknown-sense artifact from failed generation
小橘 🍊 (NEKO Team)
2026-04-23 12:01:12 +00:00