style: fix lint ordering
This commit is contained in:
@@ -7,6 +7,7 @@ import path from "node:path";
|
|||||||
import type { AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core";
|
import type { AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core";
|
||||||
import { Type } from "@sinclair/typebox";
|
import { Type } from "@sinclair/typebox";
|
||||||
|
|
||||||
|
import { logInfo } from "../logger.js";
|
||||||
import {
|
import {
|
||||||
addSession,
|
addSession,
|
||||||
appendOutput,
|
appendOutput,
|
||||||
@@ -26,7 +27,6 @@ import {
|
|||||||
killProcessTree,
|
killProcessTree,
|
||||||
sanitizeBinaryOutput,
|
sanitizeBinaryOutput,
|
||||||
} from "./shell-utils.js";
|
} from "./shell-utils.js";
|
||||||
import { logInfo } from "../logger.js";
|
|
||||||
|
|
||||||
const CHUNK_LIMIT = 8 * 1024;
|
const CHUNK_LIMIT = 8 * 1024;
|
||||||
const DEFAULT_MAX_OUTPUT = clampNumber(
|
const DEFAULT_MAX_OUTPUT = clampNumber(
|
||||||
|
|||||||
@@ -50,8 +50,8 @@ import {
|
|||||||
import { createTypingController } from "./reply/typing.js";
|
import { createTypingController } from "./reply/typing.js";
|
||||||
import type { MsgContext } from "./templating.js";
|
import type { MsgContext } from "./templating.js";
|
||||||
import {
|
import {
|
||||||
normalizeThinkLevel,
|
|
||||||
type ElevatedLevel,
|
type ElevatedLevel,
|
||||||
|
normalizeThinkLevel,
|
||||||
type ThinkLevel,
|
type ThinkLevel,
|
||||||
type VerboseLevel,
|
type VerboseLevel,
|
||||||
} from "./thinking.js";
|
} from "./thinking.js";
|
||||||
@@ -261,7 +261,10 @@ export async function getReplyFromConfig(
|
|||||||
allowFrom: elevatedConfig?.allowFrom,
|
allowFrom: elevatedConfig?.allowFrom,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
if (directives.hasElevatedDirective && (!elevatedEnabled || !elevatedAllowed)) {
|
if (
|
||||||
|
directives.hasElevatedDirective &&
|
||||||
|
(!elevatedEnabled || !elevatedAllowed)
|
||||||
|
) {
|
||||||
typing.cleanup();
|
typing.cleanup();
|
||||||
return { text: "elevated is not available right now." };
|
return { text: "elevated is not available right now." };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ import { extractModelDirective } from "../model.js";
|
|||||||
import type { MsgContext } from "../templating.js";
|
import type { MsgContext } from "../templating.js";
|
||||||
import type { ReplyPayload } from "../types.js";
|
import type { ReplyPayload } from "../types.js";
|
||||||
import {
|
import {
|
||||||
|
type ElevatedLevel,
|
||||||
extractElevatedDirective,
|
extractElevatedDirective,
|
||||||
extractThinkDirective,
|
extractThinkDirective,
|
||||||
extractVerboseDirective,
|
extractVerboseDirective,
|
||||||
type ElevatedLevel,
|
|
||||||
type ThinkLevel,
|
type ThinkLevel,
|
||||||
type VerboseLevel,
|
type VerboseLevel,
|
||||||
} from "./directives.js";
|
} from "./directives.js";
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
|
type ElevatedLevel,
|
||||||
normalizeElevatedLevel,
|
normalizeElevatedLevel,
|
||||||
normalizeThinkLevel,
|
normalizeThinkLevel,
|
||||||
normalizeVerboseLevel,
|
normalizeVerboseLevel,
|
||||||
type ElevatedLevel,
|
|
||||||
type ThinkLevel,
|
type ThinkLevel,
|
||||||
type VerboseLevel,
|
type VerboseLevel,
|
||||||
} from "../thinking.js";
|
} from "../thinking.js";
|
||||||
|
|||||||
Reference in New Issue
Block a user