ohbaby-cli 0.1.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/LICENSE +21 -0
- package/README.md +69 -0
- package/dist/bin.d.ts +19 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +5705 -0
- package/dist/bin.js.map +1 -0
- package/dist/cli/commands/run.d.ts +8 -0
- package/dist/cli/commands/run.d.ts.map +1 -0
- package/dist/cli/commands/serve.d.ts +13 -0
- package/dist/cli/commands/serve.d.ts.map +1 -0
- package/dist/cli/commands/terminal.d.ts +13 -0
- package/dist/cli/commands/terminal.d.ts.map +1 -0
- package/dist/cli/commands/types.d.ts +64 -0
- package/dist/cli/commands/types.d.ts.map +1 -0
- package/dist/cli/exit-codes.d.ts +7 -0
- package/dist/cli/exit-codes.d.ts.map +1 -0
- package/dist/cli/stdin.d.ts +3 -0
- package/dist/cli/stdin.d.ts.map +1 -0
- package/dist/cli/stdout-renderer.d.ts +10 -0
- package/dist/cli/stdout-renderer.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5215 -0
- package/dist/index.js.map +1 -0
- package/dist/package-version.d.ts +2 -0
- package/dist/package-version.d.ts.map +1 -0
- package/dist/tui/app.d.ts +10 -0
- package/dist/tui/app.d.ts.map +1 -0
- package/dist/tui/components/dialog/command-panel-manager.d.ts +14 -0
- package/dist/tui/components/dialog/command-panel-manager.d.ts.map +1 -0
- package/dist/tui/components/dialog/command-panel-state.d.ts +25 -0
- package/dist/tui/components/dialog/command-panel-state.d.ts.map +1 -0
- package/dist/tui/components/dialog/connect-panel.d.ts +9 -0
- package/dist/tui/components/dialog/connect-panel.d.ts.map +1 -0
- package/dist/tui/components/dialog/overlay-card.d.ts +7 -0
- package/dist/tui/components/dialog/overlay-card.d.ts.map +1 -0
- package/dist/tui/components/header.d.ts +6 -0
- package/dist/tui/components/header.d.ts.map +1 -0
- package/dist/tui/components/logo.d.ts +3 -0
- package/dist/tui/components/logo.d.ts.map +1 -0
- package/dist/tui/components/message/message-list.d.ts +10 -0
- package/dist/tui/components/message/message-list.d.ts.map +1 -0
- package/dist/tui/components/message/message-row.d.ts +50 -0
- package/dist/tui/components/message/message-row.d.ts.map +1 -0
- package/dist/tui/components/message/notice-banner.d.ts +9 -0
- package/dist/tui/components/message/notice-banner.d.ts.map +1 -0
- package/dist/tui/components/message/parts/tool-part.d.ts +10 -0
- package/dist/tui/components/message/parts/tool-part.d.ts.map +1 -0
- package/dist/tui/components/prompt/completion.d.ts +9 -0
- package/dist/tui/components/prompt/completion.d.ts.map +1 -0
- package/dist/tui/components/prompt/editor-reducer.d.ts +46 -0
- package/dist/tui/components/prompt/editor-reducer.d.ts.map +1 -0
- package/dist/tui/components/prompt/index.d.ts +21 -0
- package/dist/tui/components/prompt/index.d.ts.map +1 -0
- package/dist/tui/components/shimmer-text.d.ts +28 -0
- package/dist/tui/components/shimmer-text.d.ts.map +1 -0
- package/dist/tui/components/spinner.d.ts +8 -0
- package/dist/tui/components/spinner.d.ts.map +1 -0
- package/dist/tui/components/transcript/command-notice-lane.d.ts +6 -0
- package/dist/tui/components/transcript/command-notice-lane.d.ts.map +1 -0
- package/dist/tui/components/transcript/committed-transcript.d.ts +13 -0
- package/dist/tui/components/transcript/committed-transcript.d.ts.map +1 -0
- package/dist/tui/components/transcript/live-tail-window.d.ts +14 -0
- package/dist/tui/components/transcript/live-tail-window.d.ts.map +1 -0
- package/dist/tui/components/transcript/live-tail.d.ts +6 -0
- package/dist/tui/components/transcript/live-tail.d.ts.map +1 -0
- package/dist/tui/components/transcript/notice-lane.d.ts +6 -0
- package/dist/tui/components/transcript/notice-lane.d.ts.map +1 -0
- package/dist/tui/components/transcript/transcript-viewport.d.ts +13 -0
- package/dist/tui/components/transcript/transcript-viewport.d.ts.map +1 -0
- package/dist/tui/components/working-phrases.d.ts +13 -0
- package/dist/tui/components/working-phrases.d.ts.map +1 -0
- package/dist/tui/components/working-spinner.d.ts +12 -0
- package/dist/tui/components/working-spinner.d.ts.map +1 -0
- package/dist/tui/dialogs/confirm.d.ts +9 -0
- package/dist/tui/dialogs/confirm.d.ts.map +1 -0
- package/dist/tui/dialogs/manager.d.ts +10 -0
- package/dist/tui/dialogs/manager.d.ts.map +1 -0
- package/dist/tui/dialogs/model-dialog.d.ts +9 -0
- package/dist/tui/dialogs/model-dialog.d.ts.map +1 -0
- package/dist/tui/dialogs/permission-dialog.d.ts +8 -0
- package/dist/tui/dialogs/permission-dialog.d.ts.map +1 -0
- package/dist/tui/dialogs/select-one.d.ts +10 -0
- package/dist/tui/dialogs/select-one.d.ts.map +1 -0
- package/dist/tui/dialogs/session-dialog.d.ts +10 -0
- package/dist/tui/dialogs/session-dialog.d.ts.map +1 -0
- package/dist/tui/index.d.ts +6 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/layout/app-shell.d.ts +6 -0
- package/dist/tui/layout/app-shell.d.ts.map +1 -0
- package/dist/tui/layout/context.d.ts +9 -0
- package/dist/tui/layout/context.d.ts.map +1 -0
- package/dist/tui/layout/metrics.d.ts +13 -0
- package/dist/tui/layout/metrics.d.ts.map +1 -0
- package/dist/tui/render/highlight.d.ts +2 -0
- package/dist/tui/render/highlight.d.ts.map +1 -0
- package/dist/tui/render/logo.d.ts +5 -0
- package/dist/tui/render/logo.d.ts.map +1 -0
- package/dist/tui/render/markdown.d.ts +5 -0
- package/dist/tui/render/markdown.d.ts.map +1 -0
- package/dist/tui/render/status-panel.d.ts +2 -0
- package/dist/tui/render/status-panel.d.ts.map +1 -0
- package/dist/tui/render/usage.d.ts +3 -0
- package/dist/tui/render/usage.d.ts.map +1 -0
- package/dist/tui/render/wrap.d.ts +4 -0
- package/dist/tui/render/wrap.d.ts.map +1 -0
- package/dist/tui/slash-commands/completions.d.ts +7 -0
- package/dist/tui/slash-commands/completions.d.ts.map +1 -0
- package/dist/tui/slash-commands/hints.d.ts +5 -0
- package/dist/tui/slash-commands/hints.d.ts.map +1 -0
- package/dist/tui/slash-commands/runtime.d.ts +23 -0
- package/dist/tui/slash-commands/runtime.d.ts.map +1 -0
- package/dist/tui/store/events.d.ts +7 -0
- package/dist/tui/store/events.d.ts.map +1 -0
- package/dist/tui/store/selectors/transcript.d.ts +19 -0
- package/dist/tui/store/selectors/transcript.d.ts.map +1 -0
- package/dist/tui/store/selectors.d.ts +9 -0
- package/dist/tui/store/selectors.d.ts.map +1 -0
- package/dist/tui/store/snapshot.d.ts +82 -0
- package/dist/tui/store/snapshot.d.ts.map +1 -0
- package/dist/tui/store/stream-coalescer.d.ts +10 -0
- package/dist/tui/store/stream-coalescer.d.ts.map +1 -0
- package/dist/tui/store/transcript.d.ts +43 -0
- package/dist/tui/store/transcript.d.ts.map +1 -0
- package/dist/tui/theme/colors.d.ts +55 -0
- package/dist/tui/theme/colors.d.ts.map +1 -0
- package/dist/tui/theme/detect.d.ts +12 -0
- package/dist/tui/theme/detect.d.ts.map +1 -0
- package/dist/tui/theme/index.d.ts +14 -0
- package/dist/tui/theme/index.d.ts.map +1 -0
- package/dist/tui/theme/tokens.d.ts +61 -0
- package/dist/tui/theme/tokens.d.ts.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-version.d.ts","sourceRoot":"","sources":["../src/package-version.ts"],"names":[],"mappings":"AAcA,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { CoreAPI, UiEventHandler, UiUnsubscribe } from "ohbaby-sdk";
|
|
3
|
+
export declare const NEW_SESSION_CLEAR_SEQUENCE = "\u001B[2J\u001B[3J\u001B[H";
|
|
4
|
+
export declare const ESC_INTERRUPT_WINDOW_MS = 1500;
|
|
5
|
+
export interface TerminalUiOptions {
|
|
6
|
+
readonly client: CoreAPI;
|
|
7
|
+
readonly subscribeEvents: (handler: UiEventHandler) => UiUnsubscribe;
|
|
8
|
+
}
|
|
9
|
+
export declare function OhbabyTerminalApp({ client, subscribeEvents, }: TerminalUiOptions): ReactElement;
|
|
10
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/tui/app.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EACV,OAAO,EAGP,cAAc,EAEd,aAAa,EACd,MAAM,YAAY,CAAC;AA+BpB,eAAO,MAAM,0BAA0B,+BAAyB,CAAC;AAEjE,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAG5C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,aAAa,CAAC;CACtE;AAED,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,eAAe,GAChB,EAAE,iBAAiB,GAAG,YAAY,CAigBlC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CoreAPI, UiCommandCatalog, UiContextWindowUsage, UiRunStatus } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { CommandPanelState } from "./command-panel-state.js";
|
|
4
|
+
export declare function resolveSkillsPanelVisibleLines(rows: number): number;
|
|
5
|
+
export interface CommandPanelManagerProps {
|
|
6
|
+
readonly catalog: UiCommandCatalog | null;
|
|
7
|
+
readonly client: CoreAPI;
|
|
8
|
+
readonly contextWindowUsage: UiContextWindowUsage | null;
|
|
9
|
+
readonly onClose: () => void;
|
|
10
|
+
readonly panel: CommandPanelState | null;
|
|
11
|
+
readonly runtime: UiRunStatus;
|
|
12
|
+
}
|
|
13
|
+
export declare function CommandPanelManager({ catalog, client, contextWindowUsage, onClose, panel, runtime, }: CommandPanelManagerProps): ReactElement | null;
|
|
14
|
+
//# sourceMappingURL=command-panel-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-panel-manager.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/dialog/command-panel-manager.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,0BAA0B,CAAC;AAYlC,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQnE;AAOD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,kBAAkB,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC/B;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,MAAM,EACN,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,OAAO,GACR,EAAE,wBAAwB,GAAG,YAAY,GAAG,IAAI,CAwGhD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { UiCommandOutput } from "ohbaby-sdk";
|
|
2
|
+
export type DisplayCommandPanelKind = "status" | "help" | "mcps" | "models" | "skills";
|
|
3
|
+
export type InteractiveCommandPanelKind = "connect";
|
|
4
|
+
export type CommandPanelKind = DisplayCommandPanelKind | InteractiveCommandPanelKind;
|
|
5
|
+
export type CommandPanelStatus = "loading" | "ready" | "error";
|
|
6
|
+
export interface DisplayCommandPanelState {
|
|
7
|
+
readonly kind: DisplayCommandPanelKind;
|
|
8
|
+
readonly mode: "display";
|
|
9
|
+
readonly clientInvocationId: string;
|
|
10
|
+
readonly openedAt: number;
|
|
11
|
+
readonly sessionId: string | null;
|
|
12
|
+
readonly status: CommandPanelStatus;
|
|
13
|
+
readonly output?: UiCommandOutput;
|
|
14
|
+
readonly error?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface InteractiveCommandPanelState {
|
|
17
|
+
readonly kind: InteractiveCommandPanelKind;
|
|
18
|
+
readonly mode: "interactive";
|
|
19
|
+
readonly openedAt: number;
|
|
20
|
+
readonly sessionId: string | null;
|
|
21
|
+
}
|
|
22
|
+
export type CommandPanelState = DisplayCommandPanelState | InteractiveCommandPanelState;
|
|
23
|
+
export declare function displayPanelKindForCommandId(commandId: string): DisplayCommandPanelKind | null;
|
|
24
|
+
export declare function interactivePanelKindForCommandId(commandId: string): InteractiveCommandPanelKind | null;
|
|
25
|
+
//# sourceMappingURL=command-panel-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-panel-state.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/dialog/command-panel-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,uBAAuB,GAC/B,QAAQ,GACR,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,CAAC;AAEb,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC;AAEpD,MAAM,MAAM,gBAAgB,GACxB,uBAAuB,GACvB,2BAA2B,CAAC;AAEhC,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE/D,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,IAAI,EAAE,2BAA2B,CAAC;IAC3C,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,MAAM,iBAAiB,GACzB,wBAAwB,GACxB,4BAA4B,CAAC;AAcjC,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,MAAM,GAChB,uBAAuB,GAAG,IAAI,CAIhC;AAED,wBAAgB,gCAAgC,CAC9C,SAAS,EAAE,MAAM,GAChB,2BAA2B,GAAG,IAAI,CAIpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CoreAPI, UiRunStatus } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
export interface ConnectPanelProps {
|
|
4
|
+
readonly client: CoreAPI;
|
|
5
|
+
readonly onClose: () => void;
|
|
6
|
+
readonly runtime: UiRunStatus;
|
|
7
|
+
}
|
|
8
|
+
export declare function ConnectPanel({ client, onClose, runtime, }: ConnectPanelProps): ReactElement;
|
|
9
|
+
//# sourceMappingURL=connect-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connect-panel.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/dialog/connect-panel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EAIP,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AA8D1C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC/B;AAED,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,OAAO,EACP,OAAO,GACR,EAAE,iBAAiB,GAAG,YAAY,CAmNlC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
export interface OverlayCardProps {
|
|
3
|
+
readonly children: ReactNode;
|
|
4
|
+
readonly title: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function OverlayCard({ children, title, }: OverlayCardProps): ReactElement;
|
|
7
|
+
//# sourceMappingURL=overlay-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-card.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/dialog/overlay-card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,KAAK,GACN,EAAE,gBAAgB,GAAG,YAAY,CA2BjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/tui/components/header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,YAAY,CAE7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../../src/tui/components/logo.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,wBAAgB,IAAI,IAAI,YAAY,CAwBnC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UiMessage, UiNotice } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { TuiCommandNotice } from "../../store/snapshot.js";
|
|
4
|
+
export interface MessageListProps {
|
|
5
|
+
readonly messages: readonly UiMessage[];
|
|
6
|
+
readonly commandNotices: readonly TuiCommandNotice[];
|
|
7
|
+
readonly notices: readonly UiNotice[];
|
|
8
|
+
}
|
|
9
|
+
export declare function MessageList({ commandNotices, messages, notices, }: MessageListProps): ReactElement;
|
|
10
|
+
//# sourceMappingURL=message-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-list.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/message/message-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAIhE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,SAAS,SAAS,EAAE,CAAC;IACxC,QAAQ,CAAC,cAAc,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrD,QAAQ,CAAC,OAAO,EAAE,SAAS,QAAQ,EAAE,CAAC;CACvC;AAED,wBAAgB,WAAW,CAAC,EAC1B,cAAc,EACd,QAAQ,EACR,OAAO,GACR,EAAE,gBAAgB,GAAG,YAAY,CAejC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { UiMessage, UiMessagePart, UiToolCall, UiToolResult } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import { type Theme } from "../../theme/index.js";
|
|
4
|
+
export interface MessageRowProps {
|
|
5
|
+
/** Bottom margin rows; 0 for transcript fragments that continue below. */
|
|
6
|
+
readonly bottomMargin?: number;
|
|
7
|
+
readonly contentWidth: number;
|
|
8
|
+
readonly message: UiMessage;
|
|
9
|
+
}
|
|
10
|
+
export type PairedMessagePart = {
|
|
11
|
+
readonly index: number;
|
|
12
|
+
readonly kind: "part";
|
|
13
|
+
readonly part: UiMessagePart;
|
|
14
|
+
} | {
|
|
15
|
+
readonly call: UiToolCall;
|
|
16
|
+
readonly index: number;
|
|
17
|
+
readonly kind: "tool";
|
|
18
|
+
readonly result?: UiToolResult;
|
|
19
|
+
};
|
|
20
|
+
export declare function MessageRow({ bottomMargin, contentWidth, message, }: MessageRowProps): ReactElement;
|
|
21
|
+
export declare function MessageParts({ message, parts, }: {
|
|
22
|
+
readonly message: UiMessage;
|
|
23
|
+
readonly parts: readonly RenderedPart[];
|
|
24
|
+
}): ReactElement;
|
|
25
|
+
export declare function pairToolCallResult(parts: readonly UiMessagePart[]): readonly PairedMessagePart[];
|
|
26
|
+
export interface RenderedMessagePart {
|
|
27
|
+
readonly backgroundColor?: string;
|
|
28
|
+
readonly color: string | undefined;
|
|
29
|
+
readonly dimColor: boolean;
|
|
30
|
+
readonly gutterColor?: string;
|
|
31
|
+
readonly indent: number;
|
|
32
|
+
readonly index: number;
|
|
33
|
+
readonly kind: "text";
|
|
34
|
+
readonly segments?: readonly RenderedTextSegment[];
|
|
35
|
+
readonly text: string;
|
|
36
|
+
}
|
|
37
|
+
export interface RenderedTextSegment {
|
|
38
|
+
readonly color: string | undefined;
|
|
39
|
+
readonly dimColor?: boolean;
|
|
40
|
+
readonly text: string;
|
|
41
|
+
}
|
|
42
|
+
export interface RenderedSpinnerPart {
|
|
43
|
+
readonly index: number;
|
|
44
|
+
readonly kind: "spinner";
|
|
45
|
+
readonly label: string;
|
|
46
|
+
readonly segments?: readonly RenderedTextSegment[];
|
|
47
|
+
}
|
|
48
|
+
export type RenderedPart = RenderedMessagePart | RenderedSpinnerPart;
|
|
49
|
+
export declare function renderMessageParts(message: UiMessage, partWidth: number, theme: Theme): readonly (RenderedMessagePart | RenderedSpinnerPart)[];
|
|
50
|
+
//# sourceMappingURL=message-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-row.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/message/message-row.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAU5D,MAAM,WAAW,eAAe;IAC9B,0EAA0E;IAC1E,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;CAC7B;AAED,MAAM,MAAM,iBAAiB,GACzB;IACE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;CAC9B,GACD;IACE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC,CAAC;AAEN,wBAAgB,UAAU,CAAC,EACzB,YAAgB,EAChB,YAAY,EACZ,OAAO,GACR,EAAE,eAAe,GAAG,YAAY,CAahC;AAED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;CACzC,GAAG,YAAY,CAYf;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,aAAa,EAAE,GAC9B,SAAS,iBAAiB,EAAE,CAwC9B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;CACpD;AAED,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAErE,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,EAClB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,KAAK,GACX,SAAS,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,EAAE,CAiExD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UiNotice } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { TuiCommandNotice } from "../../store/snapshot.js";
|
|
4
|
+
export interface NoticeBannerProps {
|
|
5
|
+
readonly commandNotices: readonly TuiCommandNotice[];
|
|
6
|
+
readonly notices: readonly UiNotice[];
|
|
7
|
+
}
|
|
8
|
+
export declare function NoticeBanner({ commandNotices, notices, }: NoticeBannerProps): ReactElement;
|
|
9
|
+
//# sourceMappingURL=notice-banner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notice-banner.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/message/notice-banner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,cAAc,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrD,QAAQ,CAAC,OAAO,EAAE,SAAS,QAAQ,EAAE,CAAC;CACvC;AAED,wBAAgB,YAAY,CAAC,EAC3B,cAAc,EACd,OAAO,GACR,EAAE,iBAAiB,GAAG,YAAY,CA6BlC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UiMessagePart, UiToolCall, UiToolResult } from "ohbaby-sdk";
|
|
2
|
+
export interface ToolLabelParts {
|
|
3
|
+
readonly error: string;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly summary: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function renderToolPart(part: UiMessagePart): string;
|
|
8
|
+
export declare function renderToolLabel(call: UiToolCall, result?: UiToolResult): string;
|
|
9
|
+
export declare function renderToolLabelParts(call: UiToolCall, result?: UiToolResult): ToolLabelParts;
|
|
10
|
+
//# sourceMappingURL=tool-part.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-part.d.ts","sourceRoot":"","sources":["../../../../../src/tui/components/message/parts/tool-part.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAU1D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,UAAU,EAChB,MAAM,CAAC,EAAE,YAAY,GACpB,MAAM,CAKR;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,UAAU,EAChB,MAAM,CAAC,EAAE,YAAY,GACpB,cAAc,CAQhB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { TuiCommandCatalog } from "../../store/snapshot.js";
|
|
3
|
+
export interface CompletionProps {
|
|
4
|
+
readonly input: string;
|
|
5
|
+
readonly catalog: TuiCommandCatalog | null;
|
|
6
|
+
readonly selectedIndex: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function Completion({ catalog, input, selectedIndex, }: CompletionProps): ReactElement;
|
|
9
|
+
//# sourceMappingURL=completion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/prompt/completion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAO1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,KAAK,EACL,aAAa,GACd,EAAE,eAAe,GAAG,YAAY,CAiChC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface EditorState {
|
|
2
|
+
readonly cursor: EditorCursor;
|
|
3
|
+
readonly draft: string | null;
|
|
4
|
+
readonly history: readonly string[];
|
|
5
|
+
readonly historyIndex: number;
|
|
6
|
+
readonly lines: readonly string[];
|
|
7
|
+
}
|
|
8
|
+
export interface EditorCursor {
|
|
9
|
+
readonly col: number;
|
|
10
|
+
readonly row: number;
|
|
11
|
+
}
|
|
12
|
+
export type EditorAction = {
|
|
13
|
+
readonly text: string;
|
|
14
|
+
readonly type: "insert";
|
|
15
|
+
} | {
|
|
16
|
+
readonly type: "backspace";
|
|
17
|
+
} | {
|
|
18
|
+
readonly type: "clear-line";
|
|
19
|
+
} | {
|
|
20
|
+
readonly type: "history-down";
|
|
21
|
+
} | {
|
|
22
|
+
readonly type: "history-up";
|
|
23
|
+
} | {
|
|
24
|
+
readonly type: "move-end";
|
|
25
|
+
} | {
|
|
26
|
+
readonly type: "move-home";
|
|
27
|
+
} | {
|
|
28
|
+
readonly type: "move-left";
|
|
29
|
+
} | {
|
|
30
|
+
readonly type: "move-right";
|
|
31
|
+
} | {
|
|
32
|
+
readonly type: "newline";
|
|
33
|
+
} | {
|
|
34
|
+
readonly type: "submit";
|
|
35
|
+
};
|
|
36
|
+
export interface EditorReducerResult {
|
|
37
|
+
readonly state: EditorState;
|
|
38
|
+
readonly submission?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare function createEditorState(input?: {
|
|
41
|
+
readonly history?: readonly string[];
|
|
42
|
+
readonly text?: string;
|
|
43
|
+
}): EditorState;
|
|
44
|
+
export declare function editorText(state: EditorState): string;
|
|
45
|
+
export declare function applyEditorAction(state: EditorState, action: EditorAction): EditorReducerResult;
|
|
46
|
+
//# sourceMappingURL=editor-reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-reducer.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/prompt/editor-reducer.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,YAAY,GACpB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,GAC9B;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GAC/B;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;CAAE,GACjC;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GAC/B;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GAC7B;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,GAC9B;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,GAC9B;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GAC/B;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEhC,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,GAAE;IACL,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACnB,GACL,WAAW,CAab;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAErD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,GACnB,mBAAmB,CA8BrB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CoreAPI, UiCommandInvocation, UiPermissionState } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { TuiCommandCatalog } from "../../store/snapshot.js";
|
|
4
|
+
import { type CommandPanelKind } from "../dialog/command-panel-state.js";
|
|
5
|
+
export interface PromptProps {
|
|
6
|
+
readonly activeSessionId: string | null;
|
|
7
|
+
readonly catalog: TuiCommandCatalog | null;
|
|
8
|
+
readonly client: CoreAPI;
|
|
9
|
+
readonly contextWindowUsage?: string;
|
|
10
|
+
readonly disabled: boolean;
|
|
11
|
+
readonly isRuntimeRunning?: boolean;
|
|
12
|
+
readonly loadCatalog?: () => Promise<TuiCommandCatalog>;
|
|
13
|
+
readonly onCommandPanelOpen?: (input: {
|
|
14
|
+
readonly invocation: UiCommandInvocation;
|
|
15
|
+
readonly kind: CommandPanelKind;
|
|
16
|
+
}) => void;
|
|
17
|
+
readonly permission?: UiPermissionState;
|
|
18
|
+
readonly runtimeStatusLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function Prompt({ activeSessionId, catalog, client, contextWindowUsage, disabled, isRuntimeRunning, loadCatalog, onCommandPanelOpen, permission, runtimeStatusLabel, }: PromptProps): ReactElement;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/prompt/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAElF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAW1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAUjE,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACxD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE;QACpC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;QACzC,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;KACjC,KAAK,IAAI,CAAC;IACX,QAAQ,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IACxC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,wBAAgB,MAAM,CAAC,EACrB,eAAe,EACf,OAAO,EACP,MAAM,EACN,kBAAuB,EACvB,QAAQ,EACR,gBAAwB,EACxB,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,kBAAkB,GACnB,EAAE,WAAW,GAAG,YAAY,CAyM5B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
/** Idle steps between sweeps, so the highlight pauses off the end before looping. */
|
|
3
|
+
export declare const SHIMMER_GAP = 8;
|
|
4
|
+
/** Highlight window is the head character ± this many neighbours (5-char band). */
|
|
5
|
+
export declare const SHIMMER_HALF_WIDTH = 2;
|
|
6
|
+
export interface ShimmerSegments {
|
|
7
|
+
readonly before: string;
|
|
8
|
+
readonly shimmer: string;
|
|
9
|
+
readonly after: string;
|
|
10
|
+
}
|
|
11
|
+
/** Total tick cycle for a phrase: one step per character plus the idle gap. */
|
|
12
|
+
export declare function shimmerCycleLength(text: string): number;
|
|
13
|
+
/**
|
|
14
|
+
* Split text into before / highlighted / after for the given tick. When the
|
|
15
|
+
* highlight window sits entirely off the text (during the idle gap), `shimmer`
|
|
16
|
+
* is empty and the whole phrase is `before`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function computeShimmerSegments(text: string, tick: number): ShimmerSegments;
|
|
19
|
+
export interface ShimmerTextProps {
|
|
20
|
+
readonly text: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Renders text with a single highlight that sweeps left-to-right, looping with a
|
|
24
|
+
* short pause. The sweep conveys "alive" without rotating the words themselves.
|
|
25
|
+
* Honors OHBABY_TUI_NO_ANIM by rendering the phrase flat.
|
|
26
|
+
*/
|
|
27
|
+
export declare function ShimmerText({ text }: ShimmerTextProps): ReactElement;
|
|
28
|
+
//# sourceMappingURL=shimmer-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shimmer-text.d.ts","sourceRoot":"","sources":["../../../src/tui/components/shimmer-text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,qFAAqF;AACrF,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,mFAAmF;AACnF,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAEpC,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,eAAe,CAgBjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,GAAG,YAAY,CAuCpE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
export interface SpinnerProps {
|
|
3
|
+
readonly children?: ReactNode;
|
|
4
|
+
readonly label?: string;
|
|
5
|
+
readonly color?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Spinner({ children, label, color }: SpinnerProps): ReactElement;
|
|
8
|
+
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/tui/components/spinner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,YAAY,GAAG,YAAY,CA8B9E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TuiCommandNotice } from "../../store/snapshot.js";
|
|
2
|
+
export interface CommandNoticeLaneProps {
|
|
3
|
+
readonly commandNotices: readonly TuiCommandNotice[];
|
|
4
|
+
}
|
|
5
|
+
export declare const CommandNoticeLane: import("react").NamedExoticComponent<CommandNoticeLaneProps>;
|
|
6
|
+
//# sourceMappingURL=command-notice-lane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-notice-lane.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/transcript/command-notice-lane.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,cAAc,EAAE,SAAS,gBAAgB,EAAE,CAAC;CACtD;AAED,eAAO,MAAM,iBAAiB,8DAqB5B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TranscriptItem } from "../../store/transcript.js";
|
|
2
|
+
export interface CommittedTranscriptProps {
|
|
3
|
+
readonly items: readonly TranscriptItem[];
|
|
4
|
+
}
|
|
5
|
+
interface StaticTranscriptDecisionInput {
|
|
6
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
7
|
+
readonly isTTY?: boolean;
|
|
8
|
+
readonly platform?: NodeJS.Platform;
|
|
9
|
+
}
|
|
10
|
+
export declare const CommittedTranscript: import("react").NamedExoticComponent<CommittedTranscriptProps>;
|
|
11
|
+
export declare function shouldUseStaticTranscript(input?: StaticTranscriptDecisionInput): boolean;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=committed-transcript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"committed-transcript.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/transcript/committed-transcript.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;CAC3C;AAED,UAAU,6BAA6B;IACrC,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;CACrC;AAED,eAAO,MAAM,mBAAmB,gEAoC9B,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,KAAK,GAAE,6BAAkC,GACxC,OAAO,CAeT"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RenderedPart } from "../message/message-row.js";
|
|
2
|
+
export interface LiveTailWindow {
|
|
3
|
+
readonly hiddenLineCount: number;
|
|
4
|
+
readonly parts: readonly RenderedPart[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Clamps the rendered live message to its trailing `maxLines` terminal rows.
|
|
8
|
+
* Ink rewrites the whole dynamic frame with a terminal clear (including the
|
|
9
|
+
* scrollback buffer) once that frame is as tall as the terminal, so the live
|
|
10
|
+
* region must stay strictly below the terminal height. One row of the budget
|
|
11
|
+
* is reserved for the "hidden lines" marker whenever clipping happens.
|
|
12
|
+
*/
|
|
13
|
+
export declare function clampRenderedPartsToTail(parts: readonly RenderedPart[], maxLines: number): LiveTailWindow;
|
|
14
|
+
//# sourceMappingURL=live-tail-window.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-tail-window.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/transcript/live-tail-window.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;CACzC;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,QAAQ,EAAE,MAAM,GACf,cAAc,CAqChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-tail.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/transcript/live-tail.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,GAAG,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,QAAQ,qDA2BnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notice-lane.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/transcript/notice-lane.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3C,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,SAAS,QAAQ,EAAE,CAAC;CACvC;AAED,eAAO,MAAM,UAAU,uDAmBrB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { UiMessage, UiNotice } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { TuiCommandNotice, TuiRuntimeStatus } from "../../store/snapshot.js";
|
|
4
|
+
import type { TranscriptItem } from "../../store/transcript.js";
|
|
5
|
+
export interface TranscriptViewportProps {
|
|
6
|
+
readonly commandNotices: readonly TuiCommandNotice[];
|
|
7
|
+
readonly committedItems: readonly TranscriptItem[];
|
|
8
|
+
readonly liveMessage: UiMessage | null;
|
|
9
|
+
readonly notices: readonly UiNotice[];
|
|
10
|
+
readonly runtime: TuiRuntimeStatus;
|
|
11
|
+
}
|
|
12
|
+
export declare function TranscriptViewport({ commandNotices, committedItems, liveMessage, notices, runtime, }: TranscriptViewportProps): ReactElement;
|
|
13
|
+
//# sourceMappingURL=transcript-viewport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcript-viewport.d.ts","sourceRoot":"","sources":["../../../../src/tui/components/transcript/transcript-viewport.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAOhE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,cAAc,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrD,QAAQ,CAAC,cAAc,EAAE,SAAS,cAAc,EAAE,CAAC;IACnD,QAAQ,CAAC,WAAW,EAAE,SAAS,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,SAAS,QAAQ,EAAE,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;CACpC;AAED,wBAAgB,kBAAkB,CAAC,EACjC,cAAc,EACd,cAAc,EACd,WAAW,EACX,OAAO,EACP,OAAO,GACR,EAAE,uBAAuB,GAAG,YAAY,CAUxC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Humorous, value-laden phrases shown by the main-conversation WorkingSpinner
|
|
3
|
+
* while the agent is running. One is picked per turn (keyed by runId) and stays
|
|
4
|
+
* fixed for that turn.
|
|
5
|
+
*
|
|
6
|
+
* Phrases carry the ohbaby-agent personality ("building an agent just like
|
|
7
|
+
* raising a baby" / Saint Seiya cosmo imagery). Edit freely — count need not be
|
|
8
|
+
* exactly ten.
|
|
9
|
+
*/
|
|
10
|
+
export declare const WORKING_PHRASES: readonly ["I was thinking about the name of this project when I travelled to Shenzhen...", "I still remember the time I couldn't walk and just crawled...", "Looking back on the path of raising a baby, I mean, an agent...", "The awakening of individual consciousness...", "Guess where the \"ohbaby-agent\" name comes from...", "Actually, I watched Saint Seiya during my Java course in my sophomore year...", "What's your favorite programming language?...", "I do nearly everything with the help of Codex and Claude Code these days...", "How did you find your internships?...", "Using parallel agents to complete tasks actually distracts my attention..."];
|
|
11
|
+
/** Pick a random phrase. Used once per turn. */
|
|
12
|
+
export declare function pickWorkingPhrase(): string;
|
|
13
|
+
//# sourceMappingURL=working-phrases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"working-phrases.d.ts","sourceRoot":"","sources":["../../../src/tui/components/working-phrases.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,+oBAWlB,CAAC;AAEX,gDAAgD;AAChD,wBAAgB,iBAAiB,IAAI,MAAM,CAG1C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { TuiRuntimeStatus } from "../store/snapshot.js";
|
|
3
|
+
export interface WorkingSpinnerProps {
|
|
4
|
+
readonly runtime: TuiRuntimeStatus;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Turn-level "agent is working" heartbeat for the main conversation. Visible only
|
|
8
|
+
* while runtime.kind === "running": a rotating dot glyph (shared with tool rows,
|
|
9
|
+
* tinted purple) plus a per-turn humorous phrase that shimmers left-to-right.
|
|
10
|
+
*/
|
|
11
|
+
export declare function WorkingSpinner({ runtime, }: WorkingSpinnerProps): ReactElement | null;
|
|
12
|
+
//# sourceMappingURL=working-spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"working-spinner.d.ts","sourceRoot":"","sources":["../../../src/tui/components/working-spinner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAM7D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,GACR,EAAE,mBAAmB,GAAG,YAAY,GAAG,IAAI,CAkB3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CoreAPI } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { TuiInteractionRequest } from "../store/snapshot.js";
|
|
4
|
+
export interface ConfirmDialogProps {
|
|
5
|
+
readonly client: CoreAPI;
|
|
6
|
+
readonly interaction: TuiInteractionRequest;
|
|
7
|
+
}
|
|
8
|
+
export declare function ConfirmDialog({ client, interaction, }: ConfirmDialogProps): ReactElement;
|
|
9
|
+
//# sourceMappingURL=confirm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm.d.ts","sourceRoot":"","sources":["../../../src/tui/dialogs/confirm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAGlE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;CAC7C;AAED,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,WAAW,GACZ,EAAE,kBAAkB,GAAG,YAAY,CAiDnC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CoreAPI, UiPermissionRequest } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { TuiInteractionRequest } from "../store/snapshot.js";
|
|
4
|
+
export interface DialogManagerProps {
|
|
5
|
+
readonly client: CoreAPI;
|
|
6
|
+
readonly interactions: readonly TuiInteractionRequest[];
|
|
7
|
+
readonly permissions: readonly UiPermissionRequest[];
|
|
8
|
+
}
|
|
9
|
+
export declare function DialogManager({ client, interactions, permissions, }: DialogManagerProps): ReactElement;
|
|
10
|
+
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../src/tui/dialogs/manager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAM1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACxD,QAAQ,CAAC,WAAW,EAAE,SAAS,mBAAmB,EAAE,CAAC;CACtD;AAED,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,YAAY,EACZ,WAAW,GACZ,EAAE,kBAAkB,GAAG,YAAY,CAuDnC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CoreAPI } from "ohbaby-sdk";
|
|
2
|
+
import type { TuiInteractionRequest } from "../store/snapshot.js";
|
|
3
|
+
import type { ReactElement } from "react";
|
|
4
|
+
export interface ModelDialogProps {
|
|
5
|
+
readonly client: CoreAPI;
|
|
6
|
+
readonly interaction: TuiInteractionRequest;
|
|
7
|
+
}
|
|
8
|
+
export declare function ModelDialog({ client, interaction, }: ModelDialogProps): ReactElement;
|
|
9
|
+
//# sourceMappingURL=model-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-dialog.d.ts","sourceRoot":"","sources":["../../../src/tui/dialogs/model-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;CAC7C;AAED,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,WAAW,GACZ,EAAE,gBAAgB,GAAG,YAAY,CAIjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CoreAPI, UiPermissionRequest } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
export interface PermissionDialogProps {
|
|
4
|
+
readonly client: CoreAPI;
|
|
5
|
+
readonly request: UiPermissionRequest;
|
|
6
|
+
}
|
|
7
|
+
export declare function PermissionDialog({ client, request, }: PermissionDialogProps): ReactElement;
|
|
8
|
+
//# sourceMappingURL=permission-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-dialog.d.ts","sourceRoot":"","sources":["../../../src/tui/dialogs/permission-dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;CACvC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,OAAO,GACR,EAAE,qBAAqB,GAAG,YAAY,CA+EtC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CoreAPI } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { TuiInteractionRequest } from "../store/snapshot.js";
|
|
4
|
+
export interface SelectOneDialogProps {
|
|
5
|
+
readonly client: CoreAPI;
|
|
6
|
+
readonly interaction: TuiInteractionRequest;
|
|
7
|
+
readonly title: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function SelectOneDialog({ client, interaction, title, }: SelectOneDialogProps): ReactElement;
|
|
10
|
+
//# sourceMappingURL=select-one.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-one.d.ts","sourceRoot":"","sources":["../../../src/tui/dialogs/select-one.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAKlE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,WAAW,EACX,KAAK,GACN,EAAE,oBAAoB,GAAG,YAAY,CAkHrC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CoreAPI } from "ohbaby-sdk";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { TuiInteractionRequest } from "../store/snapshot.js";
|
|
4
|
+
export interface SessionDialogProps {
|
|
5
|
+
readonly client: CoreAPI;
|
|
6
|
+
readonly interaction: TuiInteractionRequest;
|
|
7
|
+
readonly title?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function SessionDialog({ client, interaction, title, }: SessionDialogProps): ReactElement;
|
|
10
|
+
//# sourceMappingURL=session-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-dialog.d.ts","sourceRoot":"","sources":["../../../src/tui/dialogs/session-dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAQ9B,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,WAAW,EACX,KAAiB,GAClB,EAAE,kBAAkB,GAAG,YAAY,CAuHnC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Instance } from "ink";
|
|
2
|
+
import { OhbabyTerminalApp, type TerminalUiOptions } from "./app.js";
|
|
3
|
+
export { OhbabyTerminalApp };
|
|
4
|
+
export type { TerminalUiOptions };
|
|
5
|
+
export declare function renderTerminalUi(options: TerminalUiOptions): Instance;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|