style: fix biome import ordering after package rename

This commit is contained in:
2026-05-25 11:26:01 +00:00
parent 2f4473f22c
commit dfae96ad45
12 changed files with 12 additions and 17 deletions
@@ -1,5 +1,5 @@
import { describe, expect, test } from "vitest";
import type { Target, WorkflowPayload } from "@uncaged/workflow-protocol"; import type { Target, WorkflowPayload } from "@uncaged/workflow-protocol";
import { describe, expect, test } from "vitest";
import { evaluate } from "../moderator/evaluate.js"; import { evaluate } from "../moderator/evaluate.js";
+2 -2
View File
@@ -2,8 +2,6 @@ import { execFileSync, spawn } from "node:child_process";
import { access, readFile } from "node:fs/promises"; import { access, readFile } from "node:fs/promises";
import { dirname, isAbsolute, resolve as resolvePath } from "node:path"; import { dirname, isAbsolute, resolve as resolvePath } from "node:path";
import { validate } from "@uncaged/json-cas"; import { validate } from "@uncaged/json-cas";
import { getEnvPath, loadWorkflowConfig } from "@uncaged/workflow-util-agent";
import { evaluate } from "../moderator/index.js";
import type { import type {
AgentAlias, AgentAlias,
AgentConfig, AgentConfig,
@@ -24,9 +22,11 @@ import {
generateUlid, generateUlid,
type ProcessLogger, type ProcessLogger,
} from "@uncaged/workflow-util"; } from "@uncaged/workflow-util";
import { getEnvPath, loadWorkflowConfig } from "@uncaged/workflow-util-agent";
import { config as loadDotenv } from "dotenv"; import { config as loadDotenv } from "dotenv";
import { parse } from "yaml"; import { parse } from "yaml";
import { createMarker, deleteMarker, isThreadRunning } from "../background/index.js"; import { createMarker, deleteMarker, isThreadRunning } from "../background/index.js";
import { evaluate } from "../moderator/index.js";
import { import {
appendThreadHistory, appendThreadHistory,
createUwfStore, createUwfStore,
+1 -4
View File
@@ -5,8 +5,5 @@
"outDir": "dist" "outDir": "dist"
}, },
"include": ["src"], "include": ["src"],
"references": [ "references": [{ "path": "../workflow-protocol" }, { "path": "../workflow-util-agent" }]
{ "path": "../workflow-protocol" },
{ "path": "../workflow-util-agent" }
]
} }
+1 -1
View File
@@ -1,4 +1,5 @@
import type { Store } from "@uncaged/json-cas"; import type { Store } from "@uncaged/json-cas";
import { createLogger, generateUlid } from "@uncaged/workflow-util";
import { import {
type AgentContext, type AgentContext,
type AgentRunResult, type AgentRunResult,
@@ -7,7 +8,6 @@ import {
resolveModel, resolveModel,
resolveStorageRoot, resolveStorageRoot,
} from "@uncaged/workflow-util-agent"; } from "@uncaged/workflow-util-agent";
import { createLogger, generateUlid } from "@uncaged/workflow-util";
import { storeBuiltinDetail } from "./detail.js"; import { storeBuiltinDetail } from "./detail.js";
import type { ChatMessage } from "./llm/index.js"; import type { ChatMessage } from "./llm/index.js";
+1 -1
View File
@@ -1,5 +1,5 @@
import type { ResolvedLlmProvider } from "@uncaged/workflow-util-agent";
import { createLogger } from "@uncaged/workflow-util"; import { createLogger } from "@uncaged/workflow-util";
import type { ResolvedLlmProvider } from "@uncaged/workflow-util-agent";
import { import {
type ChatMessage, type ChatMessage,
@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test"; import { describe, expect, test } from "bun:test";
import type { AgentContext } from "@uncaged/workflow-util-agent";
import type { ThreadId } from "@uncaged/workflow-protocol"; import type { ThreadId } from "@uncaged/workflow-protocol";
import type { AgentContext } from "@uncaged/workflow-util-agent";
import { buildClaudeCodePrompt } from "../src/claude-code.js"; import { buildClaudeCodePrompt } from "../src/claude-code.js";
function makeCtx(overrides: Partial<AgentContext> = {}): AgentContext { function makeCtx(overrides: Partial<AgentContext> = {}): AgentContext {
@@ -1,5 +1,6 @@
import { spawn } from "node:child_process"; import { spawn } from "node:child_process";
import type { Store } from "@uncaged/json-cas"; import type { Store } from "@uncaged/json-cas";
import { createLogger } from "@uncaged/workflow-util";
import { import {
type AgentContext, type AgentContext,
type AgentRunResult, type AgentRunResult,
@@ -9,7 +10,6 @@ import {
getCachedSessionId, getCachedSessionId,
setCachedSessionId, setCachedSessionId,
} from "@uncaged/workflow-util-agent"; } from "@uncaged/workflow-util-agent";
import { createLogger } from "@uncaged/workflow-util";
import { parseClaudeCodeStreamOutput, storeClaudeCodeDetail } from "./session-detail.js"; import { parseClaudeCodeStreamOutput, storeClaudeCodeDetail } from "./session-detail.js";
@@ -91,5 +91,3 @@ describe("handleSessionUpdate — helper extraction", () => {
expect((client as any).messageChunks).toHaveLength(0); expect((client as any).messageChunks).toHaveLength(0);
}); });
}); });
@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test"; import { describe, expect, test } from "bun:test";
import type { AgentContext } from "@uncaged/workflow-util-agent";
import type { ThreadId } from "@uncaged/workflow-protocol"; import type { ThreadId } from "@uncaged/workflow-protocol";
import type { AgentContext } from "@uncaged/workflow-util-agent";
import { buildHermesPrompt } from "../src/hermes.js"; import { buildHermesPrompt } from "../src/hermes.js";
function makeCtx(overrides: Partial<AgentContext> = {}): AgentContext { function makeCtx(overrides: Partial<AgentContext> = {}): AgentContext {
+1 -1
View File
@@ -19,7 +19,7 @@
}, },
"scripts": { "scripts": {
"test": "bun test", "test": "bun test",
"test:ci": "bun test __tests__/*.test.ts" "test:ci": "bun test __tests__/*.test.ts"
}, },
"dependencies": { "dependencies": {
"@uncaged/json-cas": "^0.5.2", "@uncaged/json-cas": "^0.5.2",
+1 -1
View File
@@ -1,4 +1,5 @@
import type { Store } from "@uncaged/json-cas"; import type { Store } from "@uncaged/json-cas";
import { createLogger } from "@uncaged/workflow-util";
import { import {
type AgentContext, type AgentContext,
type AgentRunResult, type AgentRunResult,
@@ -6,7 +7,6 @@ import {
buildRolePrompt, buildRolePrompt,
createAgent, createAgent,
} from "@uncaged/workflow-util-agent"; } from "@uncaged/workflow-util-agent";
import { createLogger } from "@uncaged/workflow-util";
import { HermesAcpClient } from "./acp-client.js"; import { HermesAcpClient } from "./acp-client.js";
import { getCachedSessionId, isResumeDisabled, setCachedSessionId } from "./session-cache.js"; import { getCachedSessionId, isResumeDisabled, setCachedSessionId } from "./session-cache.js";
@@ -1,10 +1,10 @@
// Re-export session cache from the shared agent-kit package with agent name injected. // Re-export session cache from the shared agent-kit package with agent name injected.
import type { ThreadId } from "@uncaged/workflow-protocol";
import { import {
getCachedSessionId as getCachedSessionIdBase, getCachedSessionId as getCachedSessionIdBase,
setCachedSessionId as setCachedSessionIdBase, setCachedSessionId as setCachedSessionIdBase,
} from "@uncaged/workflow-util-agent"; } from "@uncaged/workflow-util-agent";
import type { ThreadId } from "@uncaged/workflow-protocol";
export async function getCachedSessionId(threadId: ThreadId, role: string): Promise<string | null> { export async function getCachedSessionId(threadId: ThreadId, role: string): Promise<string | null> {
return getCachedSessionIdBase("hermes", threadId, role); return getCachedSessionIdBase("hermes", threadId, role);