mirror of
https://github.com/bitbaum/openclaw.git
synced 2026-12-04 21:38:21 +01:00
* feat(codex): upgrade app-server integration to 0.149.0 Co-authored-by: Vincent Koc <vincentkoc@ieee.org> * fix(codex): harden full app-server integration and lifecycle * fix(codex): scope guardian trust and satisfy integration gates * fix(codex): keep guardian startup and router tests within gates * chore(codex): tighten guardian assertion safety baseline * fix(ui): preserve sidebar icon path contracts * test(codex): align side-question auth fixture Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * style(codex): format transcript mirror imports Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * test(codex): preserve native approval decisions Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * test(codex): isolate app cache and catalog fixtures Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * fix(ui): render guardian review and system notices Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * test(codex): isolate native approval decisions Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * fix(codex): revalidate reviewer config trust Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * chore(codex): update app-server to 0.149.1 Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * test(codex): align desktop version warning Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * fix(ui): scope notices to the active run Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * fix(codex): isolate review, hosted app, and auth ownership Co-authored-by: Vito Cappello <hixvac@gmail.com> Co-authored-by: Vincent Koc <vincentkoc@ieee.org> Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> * chore(codex): keep release notes out of the release-owned changelog * test(codex): reject reviewer cancellation with its explicit error --------- Co-authored-by: Peter Steinberger <steipete@gmail.com> Co-authored-by: Vincent Koc <vincentkoc@ieee.org> Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com> Co-authored-by: roboclaw-bot <309084314+roboclaw-bot@users.noreply.github.com> Co-authored-by: Vito Cappello <hixvac@gmail.com>
22 lines
917 B
TypeScript
22 lines
917 B
TypeScript
import type { PluginCommandContext } from "openclaw/plugin-sdk/plugin-entry";
|
|
|
|
type CodexHostMutationAuthContext = Pick<
|
|
PluginCommandContext,
|
|
"gatewayClientScopes" | "senderIsOwner"
|
|
>;
|
|
|
|
export const CODEX_NATIVE_EXECUTION_AUTH_ERROR =
|
|
"Only an owner or operator.admin can control Codex native execution.";
|
|
export const CODEX_HOST_INSPECTION_AUTH_ERROR =
|
|
"Only an owner or operator.admin can inspect Codex host state.";
|
|
export const CODEX_FULL_PERMISSIONS_AUTH_ERROR =
|
|
"Full Codex permissions require operator.admin. Choose Admin in the Control UI permission picker, or use an admin-authenticated CLI.";
|
|
|
|
export function hasCodexAdminScope(ctx: CodexHostMutationAuthContext): boolean {
|
|
return ctx.gatewayClientScopes?.includes("operator.admin") === true;
|
|
}
|
|
|
|
export function canMutateCodexHost(ctx: CodexHostMutationAuthContext): boolean {
|
|
return ctx.senderIsOwner === true || hasCodexAdminScope(ctx);
|
|
}
|