Skip to content

Commit 1c35736

Browse files
committed
feat(openclaw-ryzome): add contracts.tools and allowlist status output
1 parent ffef8a5 commit 1c35736

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

packages/openclaw-ryzome/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"agent"
2323
],
2424
"openclaw": {
25+
"contracts": {
26+
"tools": ["*"]
27+
},
2528
"extensions": [
2629
"./src/index.ts"
2730
],

packages/openclaw-ryzome/src/cli.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,18 +320,29 @@ export function registerCliSetup(api: OpenClawPluginApi): void {
320320
return;
321321
}
322322

323+
const isAllowlisted = current.plugins?.allow?.includes("openclaw-ryzome");
324+
323325
console.log(
324326
success(" 🫚 Ryzome in circuit.") +
325327
dim(` (key from ${apiKeyStatus.source})`),
326328
);
327329
console.log("");
328-
console.log(accent(" Key: ") + maskSecret(apiKeyStatus.apiKey));
330+
console.log(accent(" Key: ") + maskSecret(apiKeyStatus.apiKey));
329331
console.log(
330-
accent(" Enabled: ") +
332+
accent(" Enabled: ") +
331333
((entry?.enabled ?? true) ? success("yes") : dim("no")),
332334
);
333-
console.log(accent(" API: ") + resolved.apiUrl);
334-
console.log(accent(" App: ") + resolved.appUrl);
335+
console.log(
336+
accent(" Agent access: ") +
337+
(isAllowlisted
338+
? success("allowlisted")
339+
: dim("✗ not allowlisted") +
340+
" (run " +
341+
dim("openclaw plugins allow openclaw-ryzome") +
342+
")"),
343+
);
344+
console.log(accent(" API: ") + resolved.apiUrl);
345+
console.log(accent(" App: ") + resolved.appUrl);
335346
console.log("");
336347
console.log(
337348
dim(" Your context is mapped. Outputs land closer to intent."),

0 commit comments

Comments
 (0)