@wrongstack/tui 0.63.4 → 0.68.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _wrongstack_core from '@wrongstack/core';
2
- import { Agent, SlashCommandRegistry, AttachmentStore, EventBus, TokenCounter, QueueStore, Director } from '@wrongstack/core';
2
+ import { Agent, SlashCommandRegistry, AttachmentStore, EventBus, TokenCounter, QueueStore, AutonomyStage, Director } from '@wrongstack/core';
3
3
  export { buildGoalPreamble } from '@wrongstack/core';
4
4
  import { VisionAdapters } from '@wrongstack/runtime/vision';
5
5
  import React from 'react';
@@ -13,54 +13,6 @@ interface ProviderOption {
13
13
  modelsLabel?: string;
14
14
  }
15
15
 
16
- type SerialAutonomyStage = {
17
- phase: 'idle';
18
- } | {
19
- phase: 'decide';
20
- reason: string;
21
- } | {
22
- phase: 'execute';
23
- task: string;
24
- } | {
25
- phase: 'reflect';
26
- status: 'success' | 'failure' | 'aborted' | 'skipped';
27
- note?: string;
28
- } | {
29
- phase: 'sleep';
30
- ms: number;
31
- } | {
32
- phase: 'paused';
33
- } | {
34
- phase: 'stopped';
35
- } | {
36
- phase: 'error';
37
- message: string;
38
- };
39
- type ParallelAutonomyStage = {
40
- phase: 'idle';
41
- } | {
42
- phase: 'decompose';
43
- } | {
44
- phase: 'fanout';
45
- slots: number;
46
- } | {
47
- phase: 'await';
48
- taskIds: string[];
49
- } | {
50
- phase: 'aggregate';
51
- successCount: number;
52
- total: number;
53
- goalComplete: boolean;
54
- } | {
55
- phase: 'sleep';
56
- ms: number;
57
- } | {
58
- phase: 'stopped';
59
- } | {
60
- phase: 'error';
61
- message: string;
62
- };
63
- type AutonomyStage = SerialAutonomyStage | ParallelAutonomyStage;
64
16
  interface RunTuiOptions {
65
17
  agent: Agent;
66
18
  slashRegistry: SlashCommandRegistry;