diff --git a/AGENTS.md b/AGENTS.md index 5fee5002dc9..4c5552b2129 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -141,6 +141,7 @@ Telegraph style. Root rules only. Read scoped `AGENTS.md` before subtree work. - Test workers max 16. Memory pressure: `OPENCLAW_VITEST_MAX_WORKERS=1 pnpm test`. - Live: `OPENCLAW_LIVE_TEST=1 pnpm test:live`; verbose `OPENCLAW_LIVE_TEST_QUIET=0`. - Guide: `docs/help/testing.md`. +- Package manifest plugin-local assertions must agree with `pnpm deps:root-ownership:check`; intentionally internalized bundled plugin runtime deps are root-owned while the package acceptance path needs them. ## Docs / Changelog diff --git a/src/agents/tools/pdf-tool.helpers.test.ts b/src/agents/tools/pdf-tool.helpers.test.ts index 27d76a5afc9..c18083556e4 100644 --- a/src/agents/tools/pdf-tool.helpers.test.ts +++ b/src/agents/tools/pdf-tool.helpers.test.ts @@ -19,6 +19,11 @@ vi.mock("../../plugins/plugin-registry.js", () => ({ plugins: pdfMetadataPlugins, diagnostics: [], }), + loadPluginRegistrySnapshotWithMetadata: () => ({ + source: "derived", + snapshot: { plugins: [] }, + diagnostics: [], + }), })); import { diff --git a/src/config/schema.base.generated.ts b/src/config/schema.base.generated.ts index 22ab4ed553c..b3132126e47 100644 --- a/src/config/schema.base.generated.ts +++ b/src/config/schema.base.generated.ts @@ -4213,6 +4213,22 @@ export const GENERATED_BASE_CONFIG_SCHEMA: BaseConfigSchemaResponse = { reliability: { type: "object", properties: { + outputLimits: { + type: "object", + properties: { + maxTurnRawChars: { + type: "integer", + minimum: 1024, + maximum: 67108864, + }, + maxTurnLines: { + type: "integer", + minimum: 100, + maximum: 100000, + }, + }, + additionalProperties: false, + }, watchdog: { type: "object", properties: { diff --git a/src/plugins/contracts/package-manifest.contract.test.ts b/src/plugins/contracts/package-manifest.contract.test.ts index 624ee9eec7d..aec5ab078c2 100644 --- a/src/plugins/contracts/package-manifest.contract.test.ts +++ b/src/plugins/contracts/package-manifest.contract.test.ts @@ -14,7 +14,7 @@ const packageManifestContractTests: PackageManifestContractParams[] = [ pluginLocalRuntimeDeps: ["@larksuiteoapi/node-sdk"], minHostVersionBaseline: "2026.3.22", }, - { pluginId: "google", pluginLocalRuntimeDeps: ["@google/genai"] }, + { pluginId: "google" }, { pluginId: "google-meet" }, { pluginId: "googlechat", @@ -23,26 +23,13 @@ const packageManifestContractTests: PackageManifestContractParams[] = [ }, { pluginId: "irc", minHostVersionBaseline: "2026.3.22" }, { pluginId: "line", minHostVersionBaseline: "2026.3.22" }, - { - pluginId: "amazon-bedrock", - pluginLocalRuntimeDeps: [ - "@aws-sdk/client-bedrock", - "@aws-sdk/client-bedrock-runtime", - "@aws-sdk/credential-provider-node", - ], - }, - { - pluginId: "amazon-bedrock-mantle", - pluginLocalRuntimeDeps: ["@aws/bedrock-token-generator"], - }, + { pluginId: "amazon-bedrock" }, + { pluginId: "amazon-bedrock-mantle" }, { pluginId: "diffs", pluginLocalRuntimeDeps: ["@pierre/diffs", "@pierre/theme"], }, - { - pluginId: "file-transfer", - pluginLocalRuntimeDeps: ["minimatch"], - }, + { pluginId: "file-transfer" }, { pluginId: "matrix", pluginLocalRuntimeDeps: [ @@ -66,7 +53,6 @@ const packageManifestContractTests: PackageManifestContractParams[] = [ "@azure/identity", "@microsoft/teams.api", "@microsoft/teams.apps", - "express", "jsonwebtoken", "jwks-rsa", ], @@ -78,20 +64,14 @@ const packageManifestContractTests: PackageManifestContractParams[] = [ pluginLocalRuntimeDeps: ["nostr-tools"], minHostVersionBaseline: "2026.3.22", }, - { pluginId: "openshell", pluginLocalRuntimeDeps: ["openshell"] }, + { pluginId: "openshell" }, { pluginId: "qqbot", pluginLocalRuntimeDeps: ["@tencent-connect/qqbot-connector", "mpg123-decoder", "silk-wasm"], }, - { - pluginId: "slack", - pluginLocalRuntimeDeps: ["@slack/bolt", "@slack/web-api"], - }, + { pluginId: "slack" }, { pluginId: "synology-chat", minHostVersionBaseline: "2026.3.22" }, - { - pluginId: "telegram", - pluginLocalRuntimeDeps: ["@grammyjs/runner", "@grammyjs/transformer-throttler", "grammy"], - }, + { pluginId: "telegram" }, { pluginId: "tlon", minHostVersionBaseline: "2026.3.22" }, { pluginId: "twitch", minHostVersionBaseline: "2026.3.22" }, { pluginId: "voice-call", minHostVersionBaseline: "2026.3.22" },