@wrongstack/tui 0.260.0 → 0.265.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +36 -3
- package/dist/index.js +1018 -138
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _wrongstack_core from '@wrongstack/core';
|
|
2
|
-
import { Agent, SlashCommandRegistry, AttachmentStore, EventBus, TokenCounter, QueueStore, AutonomyStage, Director, Message, SessionEvent } from '@wrongstack/core';
|
|
2
|
+
import { TokenSavingTier, Agent, SlashCommandRegistry, AttachmentStore, EventBus, TokenCounter, QueueStore, AutonomyStage, Director, Message, AutonomousCoordinator, CoordinatorEvent, SessionEvent } from '@wrongstack/core';
|
|
3
3
|
export { buildGoalPreamble } from '@wrongstack/core';
|
|
4
4
|
import { VisionAdapters } from '@wrongstack/runtime/vision';
|
|
5
5
|
import React from 'react';
|
|
@@ -153,8 +153,10 @@ type Settings = {
|
|
|
153
153
|
featureMemory: boolean;
|
|
154
154
|
featureSkills: boolean;
|
|
155
155
|
featureModelsRegistry: boolean;
|
|
156
|
-
/** Token-saving
|
|
157
|
-
featureTokenSaving:
|
|
156
|
+
/** Token-saving tier: off | minimal | light | medium | aggressive. */
|
|
157
|
+
featureTokenSaving: TokenSavingTier;
|
|
158
|
+
/** Allow tools to access paths outside the project root. Default: true (open). */
|
|
159
|
+
allowOutsideProjectRoot: boolean;
|
|
158
160
|
contextAutoCompact: boolean;
|
|
159
161
|
contextStrategy: 'hybrid' | 'intelligent' | 'selective';
|
|
160
162
|
logLevel: 'error' | 'warn' | 'info' | 'debug' | 'trace';
|
|
@@ -175,6 +177,10 @@ type Settings = {
|
|
|
175
177
|
configScope: 'global' | 'project';
|
|
176
178
|
/** Full mouse mode: in-app managed scroll + clickable UI (SGR tracking on). */
|
|
177
179
|
mouseMode?: boolean | undefined;
|
|
180
|
+
/** Whether the process circuit breaker gates bash/exec. Default false (off). */
|
|
181
|
+
breakerEnabled?: boolean | undefined;
|
|
182
|
+
/** Auto kill/reset delay (ms) when the breaker trips. 0 = manual recovery. */
|
|
183
|
+
breakerAutoKillResetMs?: number | undefined;
|
|
178
184
|
};
|
|
179
185
|
|
|
180
186
|
interface RunTuiOptions {
|
|
@@ -500,6 +506,33 @@ interface RunTuiOptions {
|
|
|
500
506
|
* Used by the `wrongstack quick` command to show agents panel immediately.
|
|
501
507
|
*/
|
|
502
508
|
initialAgentsMonitorOpen?: boolean | undefined;
|
|
509
|
+
/**
|
|
510
|
+
* Access the project-level AutonomousCoordinator instance. When set, the TUI
|
|
511
|
+
* renders a coordination panel showing live goals, pending tasks, consensus
|
|
512
|
+
* decisions, and shared knowledge from all active sessions. The coordinator
|
|
513
|
+
* runs independently of the session — it coordinates multiple sessions.
|
|
514
|
+
*/
|
|
515
|
+
getAutonomousCoordinator?: () => AutonomousCoordinator | null | undefined;
|
|
516
|
+
/**
|
|
517
|
+
* Subscribe to live events from the AutonomousCoordinator:
|
|
518
|
+
* - `goal:added` — new coordination goal received
|
|
519
|
+
* - `goal:completed` — goal finished successfully
|
|
520
|
+
* - `goal:failed` — goal failed after max attempts
|
|
521
|
+
* - `task:ready` — task's dependencies are satisfied, ready to execute
|
|
522
|
+
* - `task:completed` — task finished
|
|
523
|
+
* - `knowledge:added` — new shared fact published
|
|
524
|
+
* - `consensus:reached` — multi-session agreement reached
|
|
525
|
+
* Returns an unsubscribe function.
|
|
526
|
+
*/
|
|
527
|
+
subscribeCoordinatorEvents?: (fn: (event: CoordinatorEvent) => void) => () => void;
|
|
528
|
+
/**
|
|
529
|
+
* Start the AutonomousCoordinator loop. Fire-and-forget — run() loops
|
|
530
|
+
* asynchronously. Pass a goal string to begin decomposition and task
|
|
531
|
+
* auction immediately.
|
|
532
|
+
*/
|
|
533
|
+
onCoordinatorStart?: ((goal?: string) => void) | undefined;
|
|
534
|
+
/** Stop the AutonomousCoordinator loop. */
|
|
535
|
+
onCoordinatorStop?: (() => void) | undefined;
|
|
503
536
|
}
|
|
504
537
|
declare function runTui(opts: RunTuiOptions): Promise<number>;
|
|
505
538
|
|