@wrongstack/tui 1.0.29 → 1.0.32
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/app-action-runtime.d.ts +503 -0
- package/dist/app-action-services.d.ts +175 -0
- package/dist/app-action-settings.d.ts +331 -0
- package/dist/app-action-type.d.ts +5 -1430
- package/dist/app-action-workflows.d.ts +215 -0
- package/dist/app-main-column.d.ts +8 -0
- package/dist/app-settings-type.d.ts +1 -1
- package/dist/app-state.d.ts +11 -1
- package/dist/app-view-sidebar.d.ts +4 -1
- package/dist/components/history/tool-group.d.ts +0 -16
- package/dist/components/sidebar-content.d.ts +8 -1
- package/dist/components/sidebar-quota-model.d.ts +59 -0
- package/dist/components/sidebar-quota.d.ts +7 -0
- package/dist/components/status-bar-icons.d.ts +1 -0
- package/dist/components/status-bar-rails-common.d.ts +1 -1
- package/dist/components/status-bar-types.d.ts +1 -1
- package/dist/controller-props.d.ts +176 -0
- package/dist/hooks/use-provider-quota.d.ts +10 -0
- package/dist/hooks/use-resource-slash-commands.d.ts +5 -5
- package/dist/index.js +5534 -4863
- package/dist/reducers/settings-sidebar-hint.d.ts +8 -0
- package/dist/reducers/settings-value-actions.d.ts +8 -0
- package/dist/reducers/settings-value-cycle.d.ts +7 -0
- package/dist/reducers/settings-values.d.ts +2 -7
- package/dist/running-tools.d.ts +0 -4
- package/dist/ui-contracts.d.ts +10 -1
- package/dist/use-controller-panel-hooks.d.ts +62 -0
- package/package.json +7 -7
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hint shown when the right sidebar can't be hidden because at least one
|
|
3
|
+
* F-key panel is routed to it — the sidebar is that panel's only home.
|
|
4
|
+
* Mirrors the render-side clamp in `app-ui-state.ts#resolveSidebarLayout`
|
|
5
|
+
* and the slash-command guards in `use-tui-slash-commands.ts`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SIDEBAR_PINNED_HINT = "Sidebar pinned on: a panel is routed to the sidebar \u2014 set it to bottom first";
|
|
8
|
+
//# sourceMappingURL=settings-sidebar-hint.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Action } from '../app-action-type.js';
|
|
2
|
+
export declare const settingsValueActionTypes: readonly ["settingsValueChange", "settingsValueSet", "settingsHint", "settingsThinkingEditStart", "settingsThinkingEditChange", "settingsThinkingEditCommit", "settingsThinkingEditCancel", "settingsWrongProxyUrlEditStart", "settingsWrongProxyUrlEditChange", "settingsWrongProxyUrlEditCommit", "settingsWrongProxyUrlEditCancel"];
|
|
3
|
+
export type SettingsValueAction = Extract<Action, {
|
|
4
|
+
type: (typeof settingsValueActionTypes)[number];
|
|
5
|
+
}>;
|
|
6
|
+
export declare const settingsValueActionTypeSet: Set<string>;
|
|
7
|
+
export declare function isSettingsValueAction(action: Action): action is SettingsValueAction;
|
|
8
|
+
//# sourceMappingURL=settings-value-actions.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { State } from '../app-state.js';
|
|
2
|
+
import type { SettingsValueAction } from './settings-value-actions.js';
|
|
3
|
+
export declare function cycleSettingsValue(inputs: {
|
|
4
|
+
action: SettingsValueAction;
|
|
5
|
+
state: import('../app-state.js').State;
|
|
6
|
+
}): State;
|
|
7
|
+
//# sourceMappingURL=settings-value-cycle.d.ts.map
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import type { Action } from '../app-action-type.js';
|
|
2
1
|
import type { State } from '../app-state.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type: (typeof settingsValueActionTypes)[number];
|
|
6
|
-
}>;
|
|
7
|
-
export declare function isSettingsValueAction(action: Action): action is SettingsValueAction;
|
|
2
|
+
import type { SettingsValueAction } from './settings-value-actions.js';
|
|
3
|
+
export { isSettingsValueAction } from './settings-value-actions.js';
|
|
8
4
|
/** Reduces validated settings values and thinking-word editing. */
|
|
9
5
|
export declare function reduceSettingsValues(state: State, action: SettingsValueAction): State;
|
|
10
|
-
export {};
|
|
11
6
|
//# sourceMappingURL=settings-values.d.ts.map
|
package/dist/running-tools.d.ts
CHANGED
package/dist/ui-contracts.d.ts
CHANGED
|
@@ -9,6 +9,15 @@ import type { StatuslineItem as StatuslineItemSource } from '@wrongstack/core/st
|
|
|
9
9
|
* rendered layout.
|
|
10
10
|
*/
|
|
11
11
|
export declare const SIDEBAR_MISSION_ROWS = 8;
|
|
12
|
+
/**
|
|
13
|
+
* Maximum body rows of the right sidebar's PLAN QUOTA card (below its header).
|
|
14
|
+
* Shared contract, like {@link SIDEBAR_MISSION_ROWS}: the card model
|
|
15
|
+
* (components/sidebar-quota-model.ts) never emits more rows than this — it
|
|
16
|
+
* folds the rest into a "+N more" row — and computeMaxSidebarScroll reserves
|
|
17
|
+
* exactly this budget (plus header and caps) whenever any provider has
|
|
18
|
+
* reported quota.
|
|
19
|
+
*/
|
|
20
|
+
export declare const SIDEBAR_QUOTA_BODY_ROWS = 7;
|
|
12
21
|
/**
|
|
13
22
|
* Minimum inner-content width (cols) at which a routed F-panel sidebar twin
|
|
14
23
|
* renders its `⟦ … ⟧` status pill on the title row's right edge. Below this
|
|
@@ -206,7 +215,7 @@ export interface PromptPickEntry {
|
|
|
206
215
|
content: string;
|
|
207
216
|
favorite: boolean;
|
|
208
217
|
}
|
|
209
|
-
export type ResourceMenuId = 'fallback' | 'tier' | 'profile' | 'provider-status' | 'memory' | 'worktree' | 'git';
|
|
218
|
+
export type ResourceMenuId = 'fallback' | 'tier' | 'profile' | 'provider-status' | 'provider-quota' | 'memory' | 'worktree' | 'git';
|
|
210
219
|
export interface ResourceMenuDetail {
|
|
211
220
|
label: string;
|
|
212
221
|
value: string;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare function useControllerPanelHooks(inputs: {
|
|
2
|
+
projectRoot: string;
|
|
3
|
+
dispatch: React.ActionDispatch<[action: import('./app-action-type.js').Action]>;
|
|
4
|
+
getModes: (() => Promise<{
|
|
5
|
+
modes: import('@wrongstack/core/types').Mode[];
|
|
6
|
+
activeId: string | null;
|
|
7
|
+
}>) | undefined;
|
|
8
|
+
getPickableProviders: (() => Promise<import('./ui-contracts.js').ProviderOption[]>) | undefined;
|
|
9
|
+
state: import('./app-state.js').State;
|
|
10
|
+
getBrainData: (() => {
|
|
11
|
+
riskLevel: import('./brain-contracts.js').BrainRiskLevel;
|
|
12
|
+
log: {
|
|
13
|
+
kind: string;
|
|
14
|
+
question: string;
|
|
15
|
+
outcome: string;
|
|
16
|
+
age: string;
|
|
17
|
+
}[];
|
|
18
|
+
}) | undefined;
|
|
19
|
+
brainPanelHost: import('./brain-panel-model.js').BrainPanelHost | undefined;
|
|
20
|
+
onBrainRiskLevel: ((level: import('./brain-contracts.js').BrainRiskLevel) => string | undefined) | undefined;
|
|
21
|
+
getShadowData: (() => {
|
|
22
|
+
activeId: string | null;
|
|
23
|
+
running: boolean;
|
|
24
|
+
model: string;
|
|
25
|
+
intervalMs: number;
|
|
26
|
+
}) | undefined;
|
|
27
|
+
onShadowStart: (() => Promise<string | undefined>) | undefined;
|
|
28
|
+
onShadowStop: (() => Promise<string | undefined>) | undefined;
|
|
29
|
+
subagentModelsHost: import('./subagent-models-panel-model.js').SubagentModelsPanelHost | undefined;
|
|
30
|
+
slashRegistry: import('@wrongstack/core/registry').SlashCommandRegistry;
|
|
31
|
+
subscribeCoordinatorEvents: ((fn: (event: import('@wrongstack/core/coordination').CoordinatorEvent) => void) => () => void) | undefined;
|
|
32
|
+
submitRef: React.RefObject<(text?: string | undefined) => void>;
|
|
33
|
+
events: import('@wrongstack/core/kernel').EventBus;
|
|
34
|
+
}): {
|
|
35
|
+
openPromptPicker: () => Promise<void>;
|
|
36
|
+
setPromptFavorite: (slug: string, favorite: boolean) => Promise<void>;
|
|
37
|
+
openModePicker: () => Promise<void>;
|
|
38
|
+
handleModelPicked: (providerId: string, modelId: string) => void;
|
|
39
|
+
brainCtl: import("./hooks/use-brain-panel.js").BrainPanelController;
|
|
40
|
+
openBrainPanel: () => void;
|
|
41
|
+
changeBrainRisk: (delta: number) => void;
|
|
42
|
+
openShadowPanel: () => boolean;
|
|
43
|
+
handleShadowStart: () => Promise<void>;
|
|
44
|
+
handleShadowStop: () => Promise<void>;
|
|
45
|
+
subagentModelsCtl: import("./hooks/use-subagent-models-panel.js").SubagentModelsPanelController;
|
|
46
|
+
openHelpPanel: () => void;
|
|
47
|
+
bugHuntLoop: {
|
|
48
|
+
onBugHuntStarted: (command: string, totalRounds?: number) => void;
|
|
49
|
+
onRunFinished: (status: 'done' | 'aborted' | 'failed' | 'max_iterations') => void;
|
|
50
|
+
consumeReplay: (command: string) => boolean;
|
|
51
|
+
shouldSuppressNextSteps: () => boolean;
|
|
52
|
+
};
|
|
53
|
+
mailbox: {
|
|
54
|
+
mailboxStatus: import("./components/status-bar-types.js").MailboxStatus;
|
|
55
|
+
mailboxPanelOpen: boolean;
|
|
56
|
+
setMailboxPanelOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
57
|
+
mailboxMessages: import("./components/mailbox-panel.js").MailboxMessageEntry[];
|
|
58
|
+
mailboxAgents: import("./components/mailbox-panel.js").MailboxAgentEntry[];
|
|
59
|
+
};
|
|
60
|
+
setMailboxPanelOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=use-controller-panel-hooks.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/tui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack terminal UI: Ink-based interactive renderer with history, pickers, and slash menus.",
|
|
6
6
|
"repository": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"!dist/**/*.map"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wrongstack/core": "1.0.
|
|
30
|
-
"@wrongstack/kanban": "1.0.
|
|
31
|
-
"@wrongstack/runtime": "1.0.
|
|
32
|
-
"@wrongstack/sage": "1.0.
|
|
33
|
-
"@wrongstack/sdd": "1.0.
|
|
34
|
-
"@wrongstack/tools": "1.0.
|
|
29
|
+
"@wrongstack/core": "1.0.32",
|
|
30
|
+
"@wrongstack/kanban": "1.0.32",
|
|
31
|
+
"@wrongstack/runtime": "1.0.32",
|
|
32
|
+
"@wrongstack/sage": "1.0.32",
|
|
33
|
+
"@wrongstack/sdd": "1.0.32",
|
|
34
|
+
"@wrongstack/tools": "1.0.32",
|
|
35
35
|
"string-width": "8.2.2",
|
|
36
36
|
"wrap-ansi": "^10.0.1"
|
|
37
37
|
},
|