mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
chore: update dependencies
This commit is contained in:
@@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai
|
||||
|
||||
### Changes
|
||||
|
||||
- Dependencies: refresh provider, plugin, UI, and tooling packages, update `protobufjs` to 8.4.0 to clear the current npm advisory, and carry the Claude ACP completion patch forward to `@agentclientprotocol/claude-agent-acp` 0.36.1.
|
||||
- Tests/perf: isolate doctor core health check unit coverage from real skills/workspace discovery so `doctor-core-checks` no longer dominates unit perf while keeping one real skills-readiness smoke. (#84493) Thanks @frankekn.
|
||||
|
||||
### Fixes
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@agentclientprotocol/claude-agent-acp": "0.33.1",
|
||||
"@agentclientprotocol/claude-agent-acp": "0.36.1",
|
||||
"@zed-industries/codex-acp": "0.14.0",
|
||||
"acpx": "0.8.0",
|
||||
"zod": "4.4.3"
|
||||
|
||||
@@ -198,7 +198,7 @@ describe("prepareAcpxCodexAuthConfig", () => {
|
||||
});
|
||||
|
||||
const wrapper = await fs.readFile(generated.wrapperPath, "utf8");
|
||||
expect(wrapper).toContain('"@agentclientprotocol/claude-agent-acp@0.33.1"');
|
||||
expect(wrapper).toContain('"@agentclientprotocol/claude-agent-acp@0.36.1"');
|
||||
expect(wrapper).toContain('"--", "claude-agent-acp"');
|
||||
expect(wrapper).not.toContain("@agentclientprotocol/claude-agent-acp@^0.31.0");
|
||||
expect(wrapper).not.toContain("@agentclientprotocol/claude-agent-acp@0.31.0");
|
||||
|
||||
@@ -15,7 +15,7 @@ describe("acpx package manifest", () => {
|
||||
expect(packageJson.dependencies?.acpx).toBeTypeOf("string");
|
||||
expect(packageJson.dependencies?.acpx).not.toBe("");
|
||||
expect(packageJson.dependencies?.["@zed-industries/codex-acp"]).toBe("0.14.0");
|
||||
expect(packageJson.dependencies?.["@agentclientprotocol/claude-agent-acp"]).toBe("0.33.1");
|
||||
expect(packageJson.dependencies?.["@agentclientprotocol/claude-agent-acp"]).toBe("0.36.1");
|
||||
expect(packageJson.devDependencies?.["@agentclientprotocol/claude-agent-acp"]).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "0.96.0",
|
||||
"@anthropic-ai/sdk": "0.97.1",
|
||||
"@aws/bedrock-token-generator": "1.1.0",
|
||||
"@earendil-works/pi-ai": "0.75.3"
|
||||
"@earendil-works/pi-ai": "0.75.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-bedrock": "3.1048.0",
|
||||
"@aws-sdk/client-bedrock-runtime": "3.1048.0",
|
||||
"@aws-sdk/credential-provider-node": "3.972.42",
|
||||
"@earendil-works/pi-ai": "0.75.3",
|
||||
"@aws-sdk/client-bedrock": "3.1051.0",
|
||||
"@aws-sdk/client-bedrock-runtime": "3.1051.0",
|
||||
"@aws-sdk/credential-provider-node": "3.972.43",
|
||||
"@earendil-works/pi-ai": "0.75.4",
|
||||
"@smithy/shared-ini-file-loader": "4.5.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@anthropic-ai/vertex-sdk": "0.16.0",
|
||||
"@earendil-works/pi-agent-core": "0.75.3",
|
||||
"@earendil-works/pi-ai": "0.75.3"
|
||||
"@anthropic-ai/vertex-sdk": "0.16.1",
|
||||
"@earendil-works/pi-agent-core": "0.75.4",
|
||||
"@earendil-works/pi-ai": "0.75.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw Anthropic provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@earendil-works/pi-ai": "0.75.3"
|
||||
"@earendil-works/pi-ai": "0.75.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@earendil-works/pi-coding-agent": "0.75.3",
|
||||
"@earendil-works/pi-coding-agent": "0.75.4",
|
||||
"@openai/codex": "0.132.0",
|
||||
"ajv": "8.20.0",
|
||||
"ws": "8.20.1",
|
||||
|
||||
+20248
-1689
File diff suppressed because one or more lines are too long
@@ -8,11 +8,11 @@
|
||||
},
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build:viewer": "bun build src/viewer-client.ts --target browser --format esm --minify --outfile assets/viewer-runtime.js"
|
||||
"build:viewer": "bun build src/viewer-client.ts --target browser --format esm --minify --outfile assets/viewer-runtime.js && node -e \"let fs=require('fs'),p='assets/viewer-runtime.js',s=fs.readFileSync(p,'utf8').replace(/[ \\\\t]+$/gm,'');fs.writeFileSync(p,s)\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@pierre/diffs": "1.1.22",
|
||||
"@pierre/theme": "0.0.29",
|
||||
"@pierre/diffs": "1.2.1",
|
||||
"@pierre/theme": "1.0.3",
|
||||
"playwright-core": "1.60.0",
|
||||
"typebox": "1.1.38",
|
||||
"zod": "4.4.3"
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
import { resolveLanguage } from "@pierre/diffs";
|
||||
import type { FileContents, FileDiffMetadata, SupportedLanguages } from "@pierre/diffs";
|
||||
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
||||
import type { DiffViewerPayload } from "./types.js";
|
||||
|
||||
const PASSTHROUGH_LANGUAGE_HINTS = new Set<SupportedLanguages>(["ansi", "text"]);
|
||||
type DiffPayloadFile = FileContents | FileDiffMetadata;
|
||||
|
||||
function normalizeOptionalString(value: unknown): string | undefined {
|
||||
if (typeof value !== "string") {
|
||||
return undefined;
|
||||
}
|
||||
const trimmed = value.trim();
|
||||
return trimmed ? trimmed : undefined;
|
||||
}
|
||||
|
||||
export async function normalizeSupportedLanguageHint(
|
||||
value?: string,
|
||||
): Promise<SupportedLanguages | undefined> {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@larksuiteoapi/node-sdk": "1.64.0",
|
||||
"@larksuiteoapi/node-sdk": "1.65.0",
|
||||
"typebox": "1.1.38",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw Fireworks provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@earendil-works/pi-ai": "0.75.3"
|
||||
"@earendil-works/pi-ai": "0.75.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"@clack/prompts": "1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@earendil-works/pi-ai": "0.75.3",
|
||||
"@earendil-works/pi-ai": "0.75.4",
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
},
|
||||
"openclaw": {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"description": "OpenClaw Google plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@earendil-works/pi-ai": "0.75.3",
|
||||
"@google/genai": "2.4.0"
|
||||
"@earendil-works/pi-ai": "0.75.4",
|
||||
"@google/genai": "2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw Kimi provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@earendil-works/pi-ai": "0.75.3"
|
||||
"@earendil-works/pi-ai": "0.75.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw LM Studio provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@earendil-works/pi-ai": "0.75.3"
|
||||
"@earendil-works/pi-ai": "0.75.4"
|
||||
},
|
||||
"openclaw": {
|
||||
"extensions": [
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@matrix-org/matrix-sdk-crypto-nodejs": "0.5.1",
|
||||
"@matrix-org/matrix-sdk-crypto-nodejs": "0.4.0",
|
||||
"@matrix-org/matrix-sdk-crypto-wasm": "18.3.0",
|
||||
"fake-indexeddb": "6.2.5",
|
||||
"markdown-it": "14.1.1",
|
||||
"matrix-js-sdk": "41.5.0",
|
||||
"matrix-js-sdk": "41.6.0-rc.0",
|
||||
"music-metadata": "11.12.3",
|
||||
"typebox": "1.1.38",
|
||||
"zod": "4.4.3"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@lancedb/lancedb": "0.27.2",
|
||||
"@lancedb/lancedb": "0.29.0",
|
||||
"apache-arrow": "18.1.0",
|
||||
"openai": "6.38.0",
|
||||
"typebox": "1.1.38"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"nostr-tools": "2.23.3",
|
||||
"nostr-tools": "2.23.5",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw Ollama provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@earendil-works/pi-ai": "0.75.3",
|
||||
"@earendil-works/pi-ai": "0.75.4",
|
||||
"typebox": "1.1.38"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -92,7 +92,7 @@ function expectWizardFields(
|
||||
|
||||
describe("OpenAI plugin manifest", () => {
|
||||
it("keeps runtime dependencies in the package manifest", () => {
|
||||
expect(packageJson.dependencies?.["@earendil-works/pi-ai"]).toBe("0.75.1");
|
||||
expect(packageJson.dependencies?.["@earendil-works/pi-ai"]).toBe("0.75.4");
|
||||
expect(packageJson.dependencies?.ws).toBe("8.20.1");
|
||||
});
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw OpenAI provider plugins",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@earendil-works/pi-ai": "0.75.3",
|
||||
"@earendil-works/pi-ai": "0.75.4",
|
||||
"ws": "8.20.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw QA lab plugin with private debugger UI and scenario runner",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@copilotkit/aimock": "1.24.1",
|
||||
"@copilotkit/aimock": "1.27.0",
|
||||
"@modelcontextprotocol/sdk": "1.29.0",
|
||||
"playwright-core": "1.60.0",
|
||||
"yaml": "2.9.0",
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "3.1048.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.1048.0",
|
||||
"@aws-sdk/client-s3": "3.1051.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.1051.0",
|
||||
"@tloncorp/tlon-skill": "0.4.0",
|
||||
"@urbit/aura": "3.0.0",
|
||||
"zod": "4.4.3"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw xAI plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@earendil-works/pi-ai": "0.75.3",
|
||||
"@earendil-works/pi-ai": "0.75.4",
|
||||
"typebox": "1.1.38"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
+11
-11
@@ -1769,11 +1769,11 @@
|
||||
"@agentclientprotocol/sdk": "0.22.1",
|
||||
"@clack/core": "1.3.1",
|
||||
"@clack/prompts": "1.4.0",
|
||||
"@earendil-works/pi-agent-core": "0.75.3",
|
||||
"@earendil-works/pi-ai": "0.75.3",
|
||||
"@earendil-works/pi-coding-agent": "0.75.3",
|
||||
"@earendil-works/pi-tui": "0.75.3",
|
||||
"@google/genai": "2.4.0",
|
||||
"@earendil-works/pi-agent-core": "0.75.4",
|
||||
"@earendil-works/pi-ai": "0.75.4",
|
||||
"@earendil-works/pi-coding-agent": "0.75.4",
|
||||
"@earendil-works/pi-tui": "0.75.4",
|
||||
"@google/genai": "2.5.0",
|
||||
"@grammyjs/runner": "2.0.3",
|
||||
"@grammyjs/transformer-throttler": "1.2.1",
|
||||
"@homebridge/ciao": "1.3.8",
|
||||
@@ -1812,14 +1812,14 @@
|
||||
"typescript": "6.0.3",
|
||||
"undici": "8.3.0",
|
||||
"web-push": "3.6.7",
|
||||
"web-tree-sitter": "0.26.8",
|
||||
"web-tree-sitter": "0.26.9",
|
||||
"ws": "8.20.1",
|
||||
"yaml": "2.9.0",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@a2ui/lit": "0.10.0",
|
||||
"@copilotkit/aimock": "1.24.1",
|
||||
"@copilotkit/aimock": "1.27.0",
|
||||
"@grammyjs/types": "3.27.3",
|
||||
"@lit-labs/signals": "0.3.0",
|
||||
"@lit/context": "1.1.6",
|
||||
@@ -1829,18 +1829,18 @@
|
||||
"@types/node": "25.9.1",
|
||||
"@types/ws": "8.18.1",
|
||||
"@typescript/native-preview": "7.0.0-dev.20260519.1",
|
||||
"@vitest/coverage-v8": "4.1.6",
|
||||
"@vitest/coverage-v8": "4.1.7",
|
||||
"jscpd": "4.2.3",
|
||||
"jsdom": "29.1.1",
|
||||
"lit": "3.3.3",
|
||||
"oxfmt": "0.51.0",
|
||||
"oxlint": "1.65.0",
|
||||
"oxlint": "1.66.0",
|
||||
"oxlint-tsgolint": "0.23.0",
|
||||
"signal-utils": "0.21.1",
|
||||
"tsdown": "0.22.0",
|
||||
"tsx": "4.22.1",
|
||||
"tsx": "4.22.3",
|
||||
"unrun": "0.3.0",
|
||||
"vitest": "4.1.6"
|
||||
"vitest": "4.1.7"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"sharp": "0.34.5",
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
diff --git a/dist/acp-agent.js b/dist/acp-agent.js
|
||||
index d0af13a..0f84309 100644
|
||||
index f5cb0f7..e4c092b 100644
|
||||
--- a/dist/acp-agent.js
|
||||
+++ b/dist/acp-agent.js
|
||||
@@ -441,6 +441,7 @@ export class ClaudeAcpAgent {
|
||||
@@ -457,6 +457,7 @@ export class ClaudeAcpAgent {
|
||||
session.promptRunning = true;
|
||||
let handedOff = false;
|
||||
let stopReason = "end_turn";
|
||||
@@ -10,7 +10,7 @@ index d0af13a..0f84309 100644
|
||||
try {
|
||||
while (true) {
|
||||
const { value: message, done } = await session.query.next();
|
||||
@@ -448,6 +449,9 @@ export class ClaudeAcpAgent {
|
||||
@@ -464,6 +465,9 @@ export class ClaudeAcpAgent {
|
||||
if (session.cancelled) {
|
||||
return { stopReason: "cancelled" };
|
||||
}
|
||||
@@ -20,7 +20,7 @@ index d0af13a..0f84309 100644
|
||||
break;
|
||||
}
|
||||
if (session.emitRawSDKMessages &&
|
||||
@@ -518,7 +522,7 @@ export class ClaudeAcpAgent {
|
||||
@@ -532,7 +536,7 @@ export class ClaudeAcpAgent {
|
||||
break;
|
||||
}
|
||||
case "session_state_changed": {
|
||||
@@ -29,7 +29,7 @@ index d0af13a..0f84309 100644
|
||||
return { stopReason, usage: sessionUsage(session) };
|
||||
}
|
||||
break;
|
||||
@@ -637,6 +641,9 @@ export class ClaudeAcpAgent {
|
||||
@@ -658,6 +662,9 @@ export class ClaudeAcpAgent {
|
||||
unreachable(message, this.logger);
|
||||
break;
|
||||
}
|
||||
Generated
+561
-618
File diff suppressed because it is too large
Load Diff
+4
-4
@@ -48,10 +48,10 @@ nodeLinker: hoisted
|
||||
blockExoticSubdeps: true
|
||||
|
||||
overrides:
|
||||
"@anthropic-ai/sdk": 0.96.0
|
||||
"@anthropic-ai/sdk": 0.97.1
|
||||
hono: 4.12.18
|
||||
"@hono/node-server": 1.19.14
|
||||
"@aws-sdk/client-bedrock-runtime": 3.1048.0
|
||||
"@aws-sdk/client-bedrock-runtime": 3.1051.0
|
||||
axios: 1.16.0
|
||||
fast-uri: 3.1.2
|
||||
follow-redirects: 1.16.0
|
||||
@@ -71,7 +71,7 @@ overrides:
|
||||
tar: 7.5.15
|
||||
tough-cookie: 4.1.3
|
||||
yauzl: 3.2.1
|
||||
protobufjs: 7.5.6
|
||||
protobufjs: 8.4.0
|
||||
uuid: 14.0.0
|
||||
|
||||
allowBuilds:
|
||||
@@ -104,5 +104,5 @@ peerDependencyRules:
|
||||
"prism-media>opusscript": "^0.0.8 || ^0.1.1"
|
||||
|
||||
patchedDependencies:
|
||||
"@agentclientprotocol/claude-agent-acp@0.33.1": "patches/@agentclientprotocol__claude-agent-acp@0.33.1.patch"
|
||||
"@agentclientprotocol/claude-agent-acp@0.36.1": "patches/@agentclientprotocol__claude-agent-acp@0.36.1.patch"
|
||||
"baileys@7.0.0-rc12": "patches/baileys@7.0.0-rc12.patch"
|
||||
|
||||
@@ -8,8 +8,8 @@ import YAML from "yaml";
|
||||
|
||||
const ALLOWED_PATCHED_DEPENDENCIES = new Map([
|
||||
[
|
||||
"@agentclientprotocol/claude-agent-acp@0.33.1",
|
||||
"patches/@agentclientprotocol__claude-agent-acp@0.33.1.patch",
|
||||
"@agentclientprotocol/claude-agent-acp@0.36.1",
|
||||
"patches/@agentclientprotocol__claude-agent-acp@0.36.1.patch",
|
||||
],
|
||||
["baileys@7.0.0-rc12", "patches/baileys@7.0.0-rc12.patch"],
|
||||
]);
|
||||
@@ -91,6 +91,9 @@ function collectPackageJsonPatchViolations(cwd, violations) {
|
||||
|
||||
function collectPatchFileViolations(cwd, violations) {
|
||||
for (const relativePath of listTrackedFiles(cwd, ["*.patch"])) {
|
||||
if (!fs.existsSync(path.join(cwd, relativePath))) {
|
||||
continue;
|
||||
}
|
||||
if (ALLOWED_PATCH_FILES.has(relativePath)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ const CONTROL_UI_I18N_WORKFLOW = 1;
|
||||
const DEFAULT_OPENAI_MODEL = "gpt-5.5";
|
||||
const DEFAULT_ANTHROPIC_MODEL = "claude-opus-4-6";
|
||||
const DEFAULT_PROVIDER = "openai";
|
||||
export const DEFAULT_PI_PACKAGE_VERSION = "0.75.3";
|
||||
export const DEFAULT_PI_PACKAGE_VERSION = "0.75.4";
|
||||
const PI_PACKAGE_NAME = "@earendil-works/pi-coding-agent";
|
||||
const HERE = path.dirname(fileURLToPath(import.meta.url));
|
||||
const ROOT = path.resolve(HERE, "..");
|
||||
|
||||
@@ -60,7 +60,7 @@ describe("check-package-patches", () => {
|
||||
- .
|
||||
patchedDependencies:
|
||||
"baileys@7.0.0-rc12": "patches/baileys@7.0.0-rc12.patch"
|
||||
"@agentclientprotocol/claude-agent-acp@0.33.1": "patches/@agentclientprotocol__claude-agent-acp@0.33.1.patch"
|
||||
"@agentclientprotocol/claude-agent-acp@0.36.1": "patches/@agentclientprotocol__claude-agent-acp@0.36.1.patch"
|
||||
`,
|
||||
"utf8",
|
||||
);
|
||||
@@ -68,14 +68,14 @@ patchedDependencies:
|
||||
path.join(dir, "pnpm-lock.yaml"),
|
||||
`lockfileVersion: '9.0'
|
||||
patchedDependencies:
|
||||
'@agentclientprotocol/claude-agent-acp@0.33.1': 3995624bb834cc60fea1461c7ef33f1fcdd8fb58b8f43f2f1490bc689f6e1be2
|
||||
'@agentclientprotocol/claude-agent-acp@0.36.1': 3995624bb834cc60fea1461c7ef33f1fcdd8fb58b8f43f2f1490bc689f6e1be2
|
||||
baileys@7.0.0-rc12: a9aea1790d2c65b1ae543c77faca4119bbfb91ee3b6ca6c38d1cad4f5702ada2
|
||||
`,
|
||||
"utf8",
|
||||
);
|
||||
writeFileSync(path.join(dir, "patches", "baileys@7.0.0-rc12.patch"), "diff\n", "utf8");
|
||||
writeFileSync(
|
||||
path.join(dir, "patches", "@agentclientprotocol__claude-agent-acp@0.33.1.patch"),
|
||||
path.join(dir, "patches", "@agentclientprotocol__claude-agent-acp@0.36.1.patch"),
|
||||
"diff\n",
|
||||
"utf8",
|
||||
);
|
||||
@@ -120,6 +120,20 @@ patchedDependencies:
|
||||
]);
|
||||
});
|
||||
|
||||
it("allows deleted legacy patch files during the commit that removes them", () => {
|
||||
const dir = makeRepo();
|
||||
mkdirSync(path.join(dir, "patches"), { recursive: true });
|
||||
writeFileSync(
|
||||
path.join(dir, "patches", "@agentclientprotocol__claude-agent-acp@0.33.1.patch"),
|
||||
"diff\n",
|
||||
"utf8",
|
||||
);
|
||||
git(dir, ["add", "patches"]);
|
||||
rmSync(path.join(dir, "patches", "@agentclientprotocol__claude-agent-acp@0.33.1.patch"));
|
||||
|
||||
expect(collectPackagePatchViolations(dir)).toEqual([]);
|
||||
});
|
||||
|
||||
it("rejects lockfile-only and package-local patch declarations", () => {
|
||||
const dir = makeRepo();
|
||||
writeJsonFile(path.join(dir, "package.json"), {
|
||||
|
||||
+3
-3
@@ -17,14 +17,14 @@
|
||||
"lit": "3.3.3",
|
||||
"markdown-it": "14.1.1",
|
||||
"markdown-it-task-lists": "2.1.1",
|
||||
"marked": "18.0.3"
|
||||
"marked": "18.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/markdown-it": "14.1.2",
|
||||
"@vitest/browser-playwright": "4.1.6",
|
||||
"@vitest/browser-playwright": "4.1.7",
|
||||
"jsdom": "29.1.1",
|
||||
"playwright": "1.60.0",
|
||||
"vite": "8.0.13",
|
||||
"vitest": "4.1.6"
|
||||
"vitest": "4.1.7"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user