diff --git a/src/agents/bash-tools.exec-runtime.ts b/src/agents/bash-tools.exec-runtime.ts index 48a169343c9..c23b9e8c534 100644 --- a/src/agents/bash-tools.exec-runtime.ts +++ b/src/agents/bash-tools.exec-runtime.ts @@ -1,16 +1,16 @@ +import path from "node:path"; import type { AgentToolResult } from "@mariozechner/pi-agent-core"; import { Type } from "@sinclair/typebox"; -import path from "node:path"; import type { ExecAsk, ExecHost, ExecSecurity } from "../infra/exec-approvals.js"; -import type { ProcessSession } from "./bash-process-registry.js"; -import type { ExecToolDetails } from "./bash-tools.exec.js"; -import type { BashSandboxConfig } from "./bash-tools.shared.js"; import { requestHeartbeatNow } from "../infra/heartbeat-wake.js"; import { mergePathPrepend } from "../infra/path-prepend.js"; import { enqueueSystemEvent } from "../infra/system-events.js"; +import type { ProcessSession } from "./bash-process-registry.js"; +import type { ExecToolDetails } from "./bash-tools.exec.js"; +import type { BashSandboxConfig } from "./bash-tools.shared.js"; export { applyPathPrepend, normalizePathPrepend } from "../infra/path-prepend.js"; -import type { ManagedRun } from "../process/supervisor/index.js"; import { logWarn } from "../logger.js"; +import type { ManagedRun } from "../process/supervisor/index.js"; import { getProcessSupervisor } from "../process/supervisor/index.js"; import { addSession, diff --git a/src/agents/bash-tools.exec.ts b/src/agents/bash-tools.exec.ts index e0fba6ea2b6..52de4249ecc 100644 --- a/src/agents/bash-tools.exec.ts +++ b/src/agents/bash-tools.exec.ts @@ -1,8 +1,7 @@ -import type { AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core"; import crypto from "node:crypto"; import fs from "node:fs/promises"; import path from "node:path"; -import type { BashSandboxConfig } from "./bash-tools.shared.js"; +import type { AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core"; import { type ExecAsk, type ExecHost, @@ -51,6 +50,7 @@ import { type ExecProcessHandle, validateHostEnv, } from "./bash-tools.exec-runtime.js"; +import type { BashSandboxConfig } from "./bash-tools.shared.js"; import { buildSandboxEnv, clampWithDefault, diff --git a/src/gateway/server-methods/chat.ts b/src/gateway/server-methods/chat.ts index 1af817aa1e5..6c0b90e9438 100644 --- a/src/gateway/server-methods/chat.ts +++ b/src/gateway/server-methods/chat.ts @@ -1,13 +1,12 @@ -import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent"; import fs from "node:fs"; import path from "node:path"; -import type { MsgContext } from "../../auto-reply/templating.js"; -import type { GatewayRequestContext, GatewayRequestHandlers } from "./types.js"; +import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent"; import { resolveSessionAgentId } from "../../agents/agent-scope.js"; import { resolveThinkingDefault } from "../../agents/model-selection.js"; import { resolveAgentTimeoutMs } from "../../agents/timeout.js"; import { dispatchInboundMessage } from "../../auto-reply/dispatch.js"; import { createReplyDispatcher } from "../../auto-reply/reply/reply-dispatcher.js"; +import type { MsgContext } from "../../auto-reply/templating.js"; import { createReplyPrefixOptions } from "../../channels/reply-prefix.js"; import { resolveSessionFilePath } from "../../config/sessions.js"; import { resolveSendPolicy } from "../../sessions/send-policy.js"; @@ -42,6 +41,7 @@ import { import { formatForLog } from "../ws-log.js"; import { injectTimestamp, timestampOptsFromConfig } from "./agent-timestamp.js"; import { normalizeRpcAttachmentsToChatAttachments } from "./attachment-normalize.js"; +import type { GatewayRequestContext, GatewayRequestHandlers } from "./types.js"; type TranscriptAppendResult = { ok: boolean; diff --git a/ui/src/ui/app-render.ts b/ui/src/ui/app-render.ts index b782419d2ae..ee47ea94a9e 100644 --- a/ui/src/ui/app-render.ts +++ b/ui/src/ui/app-render.ts @@ -1,10 +1,10 @@ import { html, nothing } from "lit"; -import type { AppViewState } from "./app-view-state.ts"; import { parseAgentSessionKey } from "../../../src/routing/session-key.js"; import { t } from "../i18n/index.ts"; import { refreshChatAvatar } from "./app-chat.ts"; import { renderUsageTab } from "./app-render-usage-tab.ts"; import { renderChatControls, renderTab, renderThemeToggle } from "./app-render.helpers.ts"; +import type { AppViewState } from "./app-view-state.ts"; import { loadAgentFileContent, loadAgentFiles, saveAgentFile } from "./controllers/agent-files.ts"; import { loadAgentIdentities, loadAgentIdentity } from "./controllers/agent-identity.ts"; import { loadAgentSkills } from "./controllers/agent-skills.ts"; diff --git a/ui/src/ui/controllers/sessions.ts b/ui/src/ui/controllers/sessions.ts index da72abc8752..9421a656081 100644 --- a/ui/src/ui/controllers/sessions.ts +++ b/ui/src/ui/controllers/sessions.ts @@ -1,6 +1,6 @@ +import { toNumber } from "../format.ts"; import type { GatewayBrowserClient } from "../gateway.ts"; import type { SessionsListResult } from "../types.ts"; -import { toNumber } from "../format.ts"; export type SessionsState = { client: GatewayBrowserClient | null;