mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:20:43 +00:00
fix: update Docker plugin registry smokes
This commit is contained in:
@@ -44,6 +44,7 @@ cat > \"\$HOME/.openclaw/openclaw.json\" <<'JSON'
|
||||
\"id\": \"GATEWAY_AUTH_TOKEN_REF\"
|
||||
}
|
||||
},
|
||||
\"channelHealthCheckMinutes\": 1,
|
||||
\"controlUi\": {
|
||||
\"enabled\": false
|
||||
},
|
||||
@@ -51,17 +52,6 @@ cat > \"\$HOME/.openclaw/openclaw.json\" <<'JSON'
|
||||
\"mode\": \"hybrid\",
|
||||
\"debounceMs\": 0
|
||||
}
|
||||
},
|
||||
\"plugins\": {
|
||||
\"installs\": {
|
||||
\"lossless-claw\": {
|
||||
\"source\": \"npm\",
|
||||
\"spec\": \"@martian-engineering/lossless-claw\",
|
||||
\"installPath\": \"/tmp/lossless-claw\",
|
||||
\"installedAt\": \"2026-04-22T00:00:00.000Z\",
|
||||
\"resolvedAt\": \"2026-04-22T00:00:00.000Z\"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
JSON
|
||||
@@ -110,7 +100,7 @@ entry=dist/index.mjs
|
||||
node \"\$entry\" gateway status --url ws://127.0.0.1:$PORT --token '$TOKEN' --require-rpc --timeout 30000 >/tmp/config-reload-status-before.log
|
||||
"
|
||||
|
||||
echo "Mutating plugin install timestamp metadata..."
|
||||
echo "Mutating hot-reload gateway metadata..."
|
||||
docker exec "$CONTAINER_NAME" bash -lc "node --input-type=module - <<'NODE'
|
||||
import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
@@ -118,8 +108,7 @@ import path from 'node:path';
|
||||
|
||||
const configPath = path.join(os.homedir(), '.openclaw', 'openclaw.json');
|
||||
const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));
|
||||
config.plugins.installs['lossless-claw'].installedAt = '2026-04-22T00:01:00.000Z';
|
||||
config.plugins.installs['lossless-claw'].resolvedAt = '2026-04-22T00:01:00.000Z';
|
||||
config.gateway.channelHealthCheckMinutes = 2;
|
||||
fs.writeFileSync(configPath, JSON.stringify(config, null, 2) + '\n', 'utf8');
|
||||
NODE"
|
||||
|
||||
|
||||
@@ -36,20 +36,26 @@ mkdir -p \"\$HOME/.openclaw/plugins\"
|
||||
cat > \"\$HOME/.openclaw/plugins/installs.json\" <<'JSON'
|
||||
{
|
||||
\"version\": 1,
|
||||
\"warning\": \"DO NOT EDIT. This file is generated by OpenClaw plugin install/update/uninstall commands. Use `openclaw plugins install/update/uninstall` instead.\",
|
||||
\"updatedAtMs\": 1777118400000,
|
||||
\"records\": {
|
||||
\"lossless-claw\": {
|
||||
\"source\": \"npm\",
|
||||
\"spec\": \"@example/lossless-claw@0.9.0\",
|
||||
\"installPath\": \"~/.openclaw/extensions/lossless-claw\",
|
||||
\"resolvedName\": \"@example/lossless-claw\",
|
||||
\"resolvedVersion\": \"0.9.0\",
|
||||
\"resolvedSpec\": \"@example/lossless-claw@0.9.0\",
|
||||
\"integrity\": \"sha512-same\",
|
||||
\"shasum\": \"same\"
|
||||
}
|
||||
}
|
||||
\"warning\": \"DO NOT EDIT. This file is generated by OpenClaw plugin registry commands.\",
|
||||
\"hostContractVersion\": \"docker-e2e\",
|
||||
\"compatRegistryVersion\": \"docker-e2e\",
|
||||
\"migrationVersion\": 1,
|
||||
\"policyHash\": \"docker-e2e\",
|
||||
\"generatedAtMs\": 1777118400000,
|
||||
\"installRecords\": {
|
||||
\"lossless-claw\": {
|
||||
\"source\": \"npm\",
|
||||
\"spec\": \"@example/lossless-claw@0.9.0\",
|
||||
\"installPath\": \"~/.openclaw/extensions/lossless-claw\",
|
||||
\"resolvedName\": \"@example/lossless-claw\",
|
||||
\"resolvedVersion\": \"0.9.0\",
|
||||
\"resolvedSpec\": \"@example/lossless-claw@0.9.0\",
|
||||
\"integrity\": \"sha512-same\",
|
||||
\"shasum\": \"same\"
|
||||
}
|
||||
},
|
||||
\"plugins\": [],
|
||||
\"diagnostics\": []
|
||||
}
|
||||
JSON
|
||||
|
||||
|
||||
Reference in New Issue
Block a user