@biffo/cli 0.296.0 → 0.296.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +22 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8647,8 +8647,30 @@ function printEntry(entry) {
|
|
|
8647
8647
|
const summary = entry.ui_components.map((c) => `${c.label} (${c.type})`).join(", ");
|
|
8648
8648
|
console.log(` UI components: ${summary}`);
|
|
8649
8649
|
}
|
|
8650
|
+
printScopeSeamEntitlement(entry.name);
|
|
8650
8651
|
console.log("");
|
|
8651
8652
|
}
|
|
8653
|
+
function printScopeSeamEntitlement(name) {
|
|
8654
|
+
console.log("");
|
|
8655
|
+
console.log(chalk14.bold(" Scope-seam entitlement"));
|
|
8656
|
+
console.log(" Declared by the INSTANCE, never by this plugin (ADR-0029, #1653).");
|
|
8657
|
+
console.log(" A plugin manifest cannot grant it \u2014 biffo.plugin.json is not consulted.");
|
|
8658
|
+
console.log(" To let this plugin call GET /internal/scopes or POST /internal/scope-check,");
|
|
8659
|
+
console.log(" the instance operator adds it beside their own scope authorizer:");
|
|
8660
|
+
console.log("");
|
|
8661
|
+
console.log(chalk14.dim(" register_scope_authorizer("));
|
|
8662
|
+
console.log(chalk14.dim(" authorizer,"));
|
|
8663
|
+
console.log(
|
|
8664
|
+
chalk14.dim(` entitlements={"system:${name}": frozenset({"<permission_code>"})},`)
|
|
8665
|
+
);
|
|
8666
|
+
console.log(chalk14.dim(" )"));
|
|
8667
|
+
console.log("");
|
|
8668
|
+
console.log(
|
|
8669
|
+
chalk14.dim(
|
|
8670
|
+
" <permission_code> is one of the INSTANCE's own codes, so ask the operator which\n one covers this plugin's surface. This command cannot report what an instance\n has actually entitled: the map is evaluated in the instance's API at import\n time, and re-deriving it here would be a second authority that can drift from\n the one enforcing the 403."
|
|
8671
|
+
)
|
|
8672
|
+
);
|
|
8673
|
+
}
|
|
8652
8674
|
|
|
8653
8675
|
// src/commands/plugin-install.ts
|
|
8654
8676
|
import { cpSync as cpSync5, existsSync as existsSync31, mkdirSync as mkdirSync11, readFileSync as readFileSync23, statSync as statSync7 } from "fs";
|