@wrongstack/tui 0.260.0 → 0.264.0
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 +22 -1
- package/dist/index.js +413 -85
- 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 { 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';
|
|
@@ -155,6 +155,8 @@ type Settings = {
|
|
|
155
155
|
featureModelsRegistry: boolean;
|
|
156
156
|
/** Token-saving mode: omits non-essential tools and trims system prompt. */
|
|
157
157
|
featureTokenSaving: boolean;
|
|
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';
|
|
@@ -500,6 +502,25 @@ interface RunTuiOptions {
|
|
|
500
502
|
* Used by the `wrongstack quick` command to show agents panel immediately.
|
|
501
503
|
*/
|
|
502
504
|
initialAgentsMonitorOpen?: boolean | undefined;
|
|
505
|
+
/**
|
|
506
|
+
* Access the project-level AutonomousCoordinator instance. When set, the TUI
|
|
507
|
+
* renders a coordination panel showing live goals, pending tasks, consensus
|
|
508
|
+
* decisions, and shared knowledge from all active sessions. The coordinator
|
|
509
|
+
* runs independently of the session — it coordinates multiple sessions.
|
|
510
|
+
*/
|
|
511
|
+
getAutonomousCoordinator?: () => AutonomousCoordinator | null | undefined;
|
|
512
|
+
/**
|
|
513
|
+
* Subscribe to live events from the AutonomousCoordinator:
|
|
514
|
+
* - `goal:added` — new coordination goal received
|
|
515
|
+
* - `goal:completed` — goal finished successfully
|
|
516
|
+
* - `goal:failed` — goal failed after max attempts
|
|
517
|
+
* - `task:ready` — task's dependencies are satisfied, ready to execute
|
|
518
|
+
* - `task:completed` — task finished
|
|
519
|
+
* - `knowledge:added` — new shared fact published
|
|
520
|
+
* - `consensus:reached` — multi-session agreement reached
|
|
521
|
+
* Returns an unsubscribe function.
|
|
522
|
+
*/
|
|
523
|
+
subscribeCoordinatorEvents?: (fn: (event: CoordinatorEvent) => void) => () => void;
|
|
503
524
|
}
|
|
504
525
|
declare function runTui(opts: RunTuiOptions): Promise<number>;
|
|
505
526
|
|