@wrongstack/tui 0.264.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 +15 -3
- package/dist/index.js +615 -63
- 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, AutonomousCoordinator, CoordinatorEvent, 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,8 @@ 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
158
|
/** Allow tools to access paths outside the project root. Default: true (open). */
|
|
159
159
|
allowOutsideProjectRoot: boolean;
|
|
160
160
|
contextAutoCompact: boolean;
|
|
@@ -177,6 +177,10 @@ type Settings = {
|
|
|
177
177
|
configScope: 'global' | 'project';
|
|
178
178
|
/** Full mouse mode: in-app managed scroll + clickable UI (SGR tracking on). */
|
|
179
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;
|
|
180
184
|
};
|
|
181
185
|
|
|
182
186
|
interface RunTuiOptions {
|
|
@@ -521,6 +525,14 @@ interface RunTuiOptions {
|
|
|
521
525
|
* Returns an unsubscribe function.
|
|
522
526
|
*/
|
|
523
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;
|
|
524
536
|
}
|
|
525
537
|
declare function runTui(opts: RunTuiOptions): Promise<number>;
|
|
526
538
|
|