mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
test: align package metadata contracts
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -19,6 +19,11 @@ vi.mock("../../plugins/plugin-registry.js", () => ({
|
||||
plugins: pdfMetadataPlugins,
|
||||
diagnostics: [],
|
||||
}),
|
||||
loadPluginRegistrySnapshotWithMetadata: () => ({
|
||||
source: "derived",
|
||||
snapshot: { plugins: [] },
|
||||
diagnostics: [],
|
||||
}),
|
||||
}));
|
||||
|
||||
import {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user