Repository navigation
Miwarang Senpi Delegate v0.8.0
Miwarang Senpi Delegate v0.8.0
The whole extension is now TypeScript, delegation is backend-owned, and
background runs carry the OMO thread identity for main-orchestrator validation.
Included
- TypeScript migration. All runtime modules and tests are TypeScript
(src/**/*.ts,test/**/*.ts) checked withtsc --noEmit(strict on
src/). Bun executes TypeScript directly, and a one-line
src/extension.jsshim keeps the installed OMO wrapper working unchanged. - Backend-owned agent dispatch. Miwarang no longer probes backend model
catalogs or selects a model per call. Backends are dispatched directly in
configured order (primary + configured backend fallbacks) with task intent
{cwd, target, prompt}plus explicit useragent/modeloverrides. Command
backends own their model/agent through backend config
(model/agentexpand into{{model}}/{{agent}}argv placeholders). - Config validation follows the same boundary. Command routes may omit
models; malformedmodelsvalues are still rejected. OpenCode keeps the
guard rejecting explicitmodel/agentoverrides. - OMO thread handoff. Background runs record the OMO session id as
omoThreadIdalongside the backendrunId/sessionId, and
miwarang_wait/miwarang_cancelreturn both identifiers, so the main
orchestrator can inspect a completed task without a second OMO agent turn.
Removed
test/delegate-model-catalog.test.tsasserted the removed model-candidate
selection behavior and is gone with it.
Verification
bunx tsc --noEmit: exit 0 (strict,src/).bun test: 182 passing tests, 0 failures, 346 assertions across 17 files.- Loader regression:
senpi -e ./src/extension.ts --no-extensions --list-models
exits 0 (Senpi 5.1.70); thesrc/extension.jsshim also loads through
senpi -e ./src/extension.js --list-modelswith exit 0. - Real-surface routing proof: a probe config routed
category:writingto the
configured command backend with no Miwarang-selected model; the backend argv
contained only its own configuredmodelplustarget/prompt. - Focused tests cover backend-to-backend failover (OpenCode provider errors,
command quota errors), OMO thread identity on background runs, and wait/cancel
returning the stable thread and run identifiers.