style: normalize test and sdk formatting

This commit is contained in:
Peter Steinberger
2026-03-27 15:15:04 +00:00
parent 8ddeada97d
commit 6a0f9afc4e
5 changed files with 16 additions and 22 deletions

View File

@@ -1,4 +1 @@
export {
getMemorySearchManager,
MemoryIndexManager,
} from "./src/memory/index.js";
export { getMemorySearchManager, MemoryIndexManager } from "./src/memory/index.js";

View File

@@ -35,18 +35,18 @@ vi.mock("../../../../extensions/zalouser/test-api.js", async (importOriginal) =>
await importOriginal<typeof import("../../../../extensions/zalouser/test-api.js")>();
return {
...actual,
listZalouserAccountIds: vi.fn(() => ["default"]),
resolveDefaultZalouserAccountId: vi.fn(() => "default"),
resolveZalouserAccountSync: vi.fn(() => ({
accountId: "default",
profile: "default",
name: "test",
enabled: true,
authenticated: true,
config: {},
})),
getZcaUserInfo: vi.fn(async () => null),
checkZcaAuthenticated: vi.fn(async () => false),
listZalouserAccountIds: vi.fn(() => ["default"]),
resolveDefaultZalouserAccountId: vi.fn(() => "default"),
resolveZalouserAccountSync: vi.fn(() => ({
accountId: "default",
profile: "default",
name: "test",
enabled: true,
authenticated: true,
config: {},
})),
getZcaUserInfo: vi.fn(async () => null),
checkZcaAuthenticated: vi.fn(async () => false),
checkZaloAuthenticated: vi.fn(async () => false),
getZaloUserInfo: vi.fn(async () => null),
listZaloFriendsMatching: vi.fn(async () => []),

View File

@@ -7,8 +7,8 @@ import cloudflareAiGatewayPlugin from "../../extensions/cloudflare-ai-gateway/in
import googlePlugin from "../../extensions/google/index.js";
import huggingfacePlugin from "../../extensions/huggingface/index.js";
import kimiCodingPlugin from "../../extensions/kimi-coding/index.js";
import minimaxPlugin from "../../extensions/minimax/index.js";
import litellmPlugin from "../../extensions/litellm/index.js";
import minimaxPlugin from "../../extensions/minimax/index.js";
import mistralPlugin from "../../extensions/mistral/index.js";
import moonshotPlugin from "../../extensions/moonshot/index.js";
import ollamaPlugin from "../../extensions/ollama/index.js";

View File

@@ -17,10 +17,7 @@ export {
SELF_HOSTED_DEFAULT_COST,
SELF_HOSTED_DEFAULT_MAX_TOKENS,
} from "../plugins/provider-self-hosted-setup.js";
export {
OLLAMA_DEFAULT_BASE_URL,
OLLAMA_DEFAULT_MODEL,
} from "../../extensions/ollama/api.js";
export { OLLAMA_DEFAULT_BASE_URL, OLLAMA_DEFAULT_MODEL } from "../../extensions/ollama/api.js";
export {
buildOllamaProvider,
configureOllamaNonInteractive,

View File

@@ -96,7 +96,7 @@ describe("git-hooks/pre-commit (integration)", () => {
"process.exit(0);\n",
"utf8",
);
writeFileSync(path.join(dir, "package.json"), "{\"name\":\"tmp\"}\n", "utf8");
writeFileSync(path.join(dir, "package.json"), '{"name":"tmp"}\n', "utf8");
writeFileSync(path.join(dir, "pnpm-lock.yaml"), "lockfileVersion: '9.0'\n", "utf8");
const fakeBinDir = path.join(dir, "bin");