@clawos-dev/clawd 0.2.71-beta.134.b4f990a → 0.2.71-beta.135.eac0f51
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/cli.cjs +2 -0
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -28938,11 +28938,13 @@ function buildWhoamiHandler(deps) {
|
|
|
28938
28938
|
capability = stripSecretHash(cap);
|
|
28939
28939
|
}
|
|
28940
28940
|
const grantedPersonas = [];
|
|
28941
|
+
const isGuest = ctx.principal.kind === "guest";
|
|
28941
28942
|
const hasWildcard = capability.grants.some((g2) => g2.resource.type === "*");
|
|
28942
28943
|
if (hasWildcard) {
|
|
28943
28944
|
for (const id of deps.personaStore.list()) {
|
|
28944
28945
|
const file = deps.personaStore.read(id);
|
|
28945
28946
|
if (!file) continue;
|
|
28947
|
+
if (isGuest && !file.public) continue;
|
|
28946
28948
|
grantedPersonas.push({ id: file.personaId, displayName: file.label });
|
|
28947
28949
|
}
|
|
28948
28950
|
} else {
|
package/package.json
CHANGED