feat: add sproutclaw webui

This commit is contained in:
root
2026-05-10 14:47:51 +08:00
parent e25415dd5f
commit c5295773a1
19 changed files with 6299 additions and 69 deletions

View File

@@ -876,6 +876,14 @@ export class AgentSession {
return this.sessionManager.getSessionName();
}
/**
* Monotonic counter emitted on each completed turn ({@link TurnEndEvent.turnIndex}); resets on agent_start.
* Mirrors the value shown next to ✓ Turn N complete-style UI (N equals this counter after idle).
*/
get turnIndex(): number {
return this._turnIndex;
}
/** Scoped models for cycling (from --models flag) */
get scopedModels(): ReadonlyArray<{ model: Model<any>; thinkingLevel?: ThinkingLevel }> {
return this._scopedModels;