diff --git a/src/agents/bash-tools.ts b/src/agents/bash-tools.ts index 71d98495d..f92057046 100644 --- a/src/agents/bash-tools.ts +++ b/src/agents/bash-tools.ts @@ -7,6 +7,7 @@ import path from "node:path"; import type { AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core"; import { Type } from "@sinclair/typebox"; +import { logInfo } from "../logger.js"; import { addSession, appendOutput, @@ -26,7 +27,6 @@ import { killProcessTree, sanitizeBinaryOutput, } from "./shell-utils.js"; -import { logInfo } from "../logger.js"; const CHUNK_LIMIT = 8 * 1024; const DEFAULT_MAX_OUTPUT = clampNumber( diff --git a/src/auto-reply/reply.ts b/src/auto-reply/reply.ts index be149fe35..c42ead02c 100644 --- a/src/auto-reply/reply.ts +++ b/src/auto-reply/reply.ts @@ -50,8 +50,8 @@ import { import { createTypingController } from "./reply/typing.js"; import type { MsgContext } from "./templating.js"; import { - normalizeThinkLevel, type ElevatedLevel, + normalizeThinkLevel, type ThinkLevel, type VerboseLevel, } from "./thinking.js"; @@ -261,7 +261,10 @@ export async function getReplyFromConfig( allowFrom: elevatedConfig?.allowFrom, }), ); - if (directives.hasElevatedDirective && (!elevatedEnabled || !elevatedAllowed)) { + if ( + directives.hasElevatedDirective && + (!elevatedEnabled || !elevatedAllowed) + ) { typing.cleanup(); return { text: "elevated is not available right now." }; } diff --git a/src/auto-reply/reply/directive-handling.ts b/src/auto-reply/reply/directive-handling.ts index b6fbb1c24..b17bd9a43 100644 --- a/src/auto-reply/reply/directive-handling.ts +++ b/src/auto-reply/reply/directive-handling.ts @@ -18,10 +18,10 @@ import { extractModelDirective } from "../model.js"; import type { MsgContext } from "../templating.js"; import type { ReplyPayload } from "../types.js"; import { + type ElevatedLevel, extractElevatedDirective, extractThinkDirective, extractVerboseDirective, - type ElevatedLevel, type ThinkLevel, type VerboseLevel, } from "./directives.js"; diff --git a/src/auto-reply/reply/directives.ts b/src/auto-reply/reply/directives.ts index dac5b5df3..f7056343b 100644 --- a/src/auto-reply/reply/directives.ts +++ b/src/auto-reply/reply/directives.ts @@ -1,8 +1,8 @@ import { + type ElevatedLevel, normalizeElevatedLevel, normalizeThinkLevel, normalizeVerboseLevel, - type ElevatedLevel, type ThinkLevel, type VerboseLevel, } from "../thinking.js";