Kova/states/many-bundled-plugins.json

45 lines
1.7 KiB
JSON

{
"id": "many-bundled-plugins",
"title": "Many Bundled Plugins Enabled",
"objective": "A pressure state for bundled plugin and provider metadata paths. It creates a plugin install index with many bundled-like entries so OpenClaw startup and metadata paths run under heavier registry pressure.",
"tags": [
"plugins",
"providers",
"pressure"
],
"setup": [
{
"id": "write-many-plugin-index",
"title": "Write Many Plugin Index Entries",
"intent": "Create a large plugin install index in common OpenClaw plugin index locations.",
"afterPhases": [
"provision",
"cold-start",
"baseline",
"gateway",
"start",
"clone"
],
"commands": [
"ocm env exec {env} -- node -e 'const fs=require(\"fs\"), path=require(\"path\"); const home=process.env.OPENCLAW_HOME; const entries=Array.from({length:80},(_,i)=>({id:`kova-bundled-${i}`,name:`kova-bundled-${i}`,source:\"bundled\",enabled:true,version:\"0.0.0\",manifest:{id:`kova-bundled-${i}`,runtimeDependencies:[\"zod\",\"ws\",\"undici\",\"chokidar\"]}})); for (const rel of [\"plugins\",\".openclaw/plugins\"]) { const dir=path.join(home,rel); fs.mkdirSync(dir,{recursive:true}); fs.writeFileSync(path.join(dir,\"installs.json\"), JSON.stringify({schemaVersion:\"kova.fixture.plugins.v1\",plugins:entries}, null, 2)); }'"
],
"evidence": [
"large plugin install index written"
]
}
],
"traits": [
"plugin-pressure",
"provider-pressure",
"performance-pressure"
],
"riskArea": "plugin-metadata-scan",
"ownerArea": "plugins",
"setupEvidence": [
"large plugin install index written"
],
"cleanupGuarantees": [
"disposable env cleanup removes state fixture files"
]
}