feat: update plugin entry, install script, and docs for API Key auth

- plugin/index.ts: use apiKey instead of challengeUuid
- scripts/install.mjs: update prompts and examples
- README.md: update config docs and examples
This commit is contained in:
zhi
2026-03-19 16:31:30 +00:00
parent 074f1e9eef
commit dac3976b9f
3 changed files with 13 additions and 14 deletions

View File

@@ -240,8 +240,8 @@ async function configure() {
}
logOk(`plugins.allow includes ${PLUGIN_NAME}`);
// Note: challengeUuid must be configured manually by user
logOk('Plugin configured (remember to set challengeUuid in ~/.openclaw/openclaw.json)');
// Note: apiKey must be configured manually by user
logOk('Plugin configured (remember to set apiKey in ~/.openclaw/openclaw.json)');
} catch (err) {
logWarn(`Config failed: ${err.message}`);
@@ -262,13 +262,13 @@ function summary() {
console.log('');
log('Next steps:', 'blue');
log(' 1. Register server in HarborForge Monitor to get challengeUuid', 'cyan');
log(' 1. Register server in HarborForge Monitor to get apiKey', 'cyan');
log(' 2. Edit ~/.openclaw/openclaw.json:', 'cyan');
log(' {', 'cyan');
log(' "plugins": {', 'cyan');
log(' "harborforge-monitor": {', 'cyan');
log(' "enabled": true,', 'cyan');
log(' "challengeUuid": "your-challenge-uuid"', 'cyan');
log(' "apiKey": "your-api-key"', 'cyan');
log(' }', 'cyan');
log(' }', 'cyan');
log(' }', 'cyan');