chore: wtf.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { SlashCommand } from "@mariozechner/pi-tui";
|
||||
import type { OpenClawConfig } from "../config/types.js";
|
||||
import { listChatCommands, listChatCommandsForConfig } from "../auto-reply/commands-registry.js";
|
||||
import { formatThinkingLevels, listThinkingLevelLabels } from "../auto-reply/thinking.js";
|
||||
import type { OpenClawConfig } from "../config/types.js";
|
||||
|
||||
const VERBOSE_LEVELS = ["on", "off"];
|
||||
const REASONING_LEVELS = ["on", "off"];
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
import type { Component, TUI } from "@mariozechner/pi-tui";
|
||||
import { randomUUID } from "node:crypto";
|
||||
import type { Component, TUI } from "@mariozechner/pi-tui";
|
||||
import {
|
||||
formatThinkingLevels,
|
||||
normalizeUsageDisplay,
|
||||
resolveResponseUsageMode,
|
||||
} from "../auto-reply/thinking.js";
|
||||
import type { SessionsPatchResult } from "../gateway/protocol/index.js";
|
||||
import { formatRelativeTimestamp } from "../infra/format-time/format-relative.ts";
|
||||
import { normalizeAgentId } from "../routing/session-key.js";
|
||||
import { helpText, parseCommand } from "./commands.js";
|
||||
import type { ChatLog } from "./components/chat-log.js";
|
||||
import {
|
||||
createFilterableSelectList,
|
||||
createSearchableSelectList,
|
||||
createSettingsList,
|
||||
} from "./components/selectors.js";
|
||||
import type { GatewayChatClient } from "./gateway-chat.js";
|
||||
import { formatStatusSummary } from "./tui-status-summary.js";
|
||||
import type {
|
||||
AgentSummary,
|
||||
GatewayStatusSummary,
|
||||
TuiOptions,
|
||||
TuiStateAccess,
|
||||
} from "./tui-types.js";
|
||||
import {
|
||||
formatThinkingLevels,
|
||||
normalizeUsageDisplay,
|
||||
resolveResponseUsageMode,
|
||||
} from "../auto-reply/thinking.js";
|
||||
import { formatRelativeTimestamp } from "../infra/format-time/format-relative.ts";
|
||||
import { normalizeAgentId } from "../routing/session-key.js";
|
||||
import { helpText, parseCommand } from "./commands.js";
|
||||
import {
|
||||
createFilterableSelectList,
|
||||
createSearchableSelectList,
|
||||
createSettingsList,
|
||||
} from "./components/selectors.js";
|
||||
import { formatStatusSummary } from "./tui-status-summary.js";
|
||||
|
||||
type CommandHandlerContext = {
|
||||
client: GatewayChatClient;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import type { AgentEvent, ChatEvent, TuiStateAccess } from "./tui-types.js";
|
||||
import { createEventHandlers } from "./tui-event-handlers.js";
|
||||
import type { AgentEvent, ChatEvent, TuiStateAccess } from "./tui-types.js";
|
||||
|
||||
type MockFn = ReturnType<typeof vi.fn>;
|
||||
type HandlerChatLog = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { AgentEvent, ChatEvent, TuiStateAccess } from "./tui-types.js";
|
||||
import { asString, extractTextFromMessage, isCommandMessage } from "./tui-formatters.js";
|
||||
import { TuiStreamAssembler } from "./tui-stream-assembler.js";
|
||||
import type { AgentEvent, ChatEvent, TuiStateAccess } from "./tui-types.js";
|
||||
|
||||
type EventHandlerChatLog = {
|
||||
startTool: (toolCallId: string, toolName: string, args: unknown) => void;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Component, SelectItem } from "@mariozechner/pi-tui";
|
||||
import { spawn } from "node:child_process";
|
||||
import type { Component, SelectItem } from "@mariozechner/pi-tui";
|
||||
import { createSearchableSelectList } from "./components/selectors.js";
|
||||
|
||||
type LocalShellDeps = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import type { TuiStateAccess } from "./tui-types.js";
|
||||
import { createSessionActions } from "./tui-session-actions.js";
|
||||
import type { TuiStateAccess } from "./tui-types.js";
|
||||
|
||||
describe("tui session actions", () => {
|
||||
it("queues session refreshes and applies the latest result", async () => {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import type { TUI } from "@mariozechner/pi-tui";
|
||||
import type { SessionsPatchResult } from "../gateway/protocol/index.js";
|
||||
import type { ChatLog } from "./components/chat-log.js";
|
||||
import type { GatewayAgentsList, GatewayChatClient } from "./gateway-chat.js";
|
||||
import type { TuiOptions, TuiStateAccess } from "./tui-types.js";
|
||||
import {
|
||||
normalizeAgentId,
|
||||
normalizeMainKey,
|
||||
parseAgentSessionKey,
|
||||
} from "../routing/session-key.js";
|
||||
import type { ChatLog } from "./components/chat-log.js";
|
||||
import type { GatewayAgentsList, GatewayChatClient } from "./gateway-chat.js";
|
||||
import { asString, extractTextFromMessage, isCommandMessage } from "./tui-formatters.js";
|
||||
import type { TuiOptions, TuiStateAccess } from "./tui-types.js";
|
||||
|
||||
type SessionActionContext = {
|
||||
client: GatewayChatClient;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { GatewayStatusSummary } from "./tui-types.js";
|
||||
import { formatTimeAgo } from "../infra/format-time/format-relative.ts";
|
||||
import { formatTokenCount } from "../utils/usage-format.js";
|
||||
import { formatContextUsageLine } from "./tui-formatters.js";
|
||||
import type { GatewayStatusSummary } from "./tui-types.js";
|
||||
|
||||
export function formatStatusSummary(summary: GatewayStatusSummary) {
|
||||
const lines: string[] = [];
|
||||
|
||||
@@ -6,13 +6,6 @@ import {
|
||||
Text,
|
||||
TUI,
|
||||
} from "@mariozechner/pi-tui";
|
||||
import type {
|
||||
AgentSummary,
|
||||
SessionInfo,
|
||||
SessionScope,
|
||||
TuiOptions,
|
||||
TuiStateAccess,
|
||||
} from "./tui-types.js";
|
||||
import { resolveDefaultAgentId } from "../agents/agent-scope.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import {
|
||||
@@ -32,6 +25,13 @@ import { formatTokens } from "./tui-formatters.js";
|
||||
import { createLocalShellRunner } from "./tui-local-shell.js";
|
||||
import { createOverlayHandlers } from "./tui-overlays.js";
|
||||
import { createSessionActions } from "./tui-session-actions.js";
|
||||
import type {
|
||||
AgentSummary,
|
||||
SessionInfo,
|
||||
SessionScope,
|
||||
TuiOptions,
|
||||
TuiStateAccess,
|
||||
} from "./tui-types.js";
|
||||
import { buildWaitingStatusMessage, defaultWaitingPhrases } from "./tui-waiting.js";
|
||||
|
||||
export { resolveFinalAssistantText } from "./tui-formatters.js";
|
||||
|
||||
Reference in New Issue
Block a user