chore: bump version to 0.1488

This commit is contained in:
arkon
2026-02-12 14:41:27 +01:00
parent 2b685cea65
commit e44f827473
16 changed files with 295 additions and 865 deletions
-25
View File
@@ -57,7 +57,6 @@ import type {
CycleOutcome,
HealthStatus,
} from './types.js';
import type { TeamWatcher } from './team-watcher.js';
// ========== Constants ==========
@@ -639,9 +638,6 @@ export class RespawnController extends EventEmitter {
/** The session being controlled */
private session: Session;
/** Optional team watcher for team-aware idle detection */
private teamWatcher: TeamWatcher | null = null;
/** Current configuration */
private config: RespawnConfig;
@@ -1235,10 +1231,6 @@ export class RespawnController extends EventEmitter {
*
* @fires stateChanged - Transitions to 'watching'
*/
setTeamWatcher(watcher: TeamWatcher | null): void {
this.teamWatcher = watcher;
}
start(): void {
if (!this.config.enabled) {
this.log('Respawn is disabled');
@@ -2191,12 +2183,6 @@ export class RespawnController extends EventEmitter {
// Get the terminal buffer for analysis
const buffer = this.terminalBuffer.value;
// Inject teammate context for team-aware AI check
if (this.teamWatcher) {
const count = this.teamWatcher.getActiveTeammateCount(this.session.id);
this.aiChecker.setTeammateCount(count);
}
this.aiChecker.check(buffer).then((result) => {
// If state changed while checking (e.g., cancelled), ignore result
if (this._state !== 'ai_checking') {
@@ -2750,17 +2736,6 @@ export class RespawnController extends EventEmitter {
return;
}
// Team-awareness: don't respawn if teammates are active
if (this.teamWatcher?.hasActiveTeammates(this.session.id)) {
this.log(`Idle confirmation rejected - active teammates working (reason was: ${reason})`);
this.logAction('detection', 'Rejected: Active teammates');
this.emit('respawnBlocked', { reason: 'active_teammates', details: 'Team has active teammates' });
this.setState('watching');
this.startNoOutputTimer();
this.startPreFilterTimer();
return;
}
this.log(`Idle confirmed via: ${reason}`);
const status = this.getDetectionStatus();
this.log(`Detection status: confidence=${status.confidenceLevel}%, ` +