mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 04:00:43 +00:00
fix: align claude cli permissions with exec policy
Derive Claude CLI bypass mode from OpenClaw exec YOLO policy, preserve raw Claude permission-mode overrides, update docs/changelog, and cover global/per-agent policy behavior.
This commit is contained in:
committed by
GitHub
parent
999caf530b
commit
f523bbfcd1
@@ -35,6 +35,12 @@ export type CliBackendPreparedExecution = {
|
||||
|
||||
export type CliBackendAuthEpochMode = "combined" | "profile-only";
|
||||
|
||||
export type CliBackendNormalizeConfigContext = {
|
||||
config?: OpenClawConfig;
|
||||
backendId: string;
|
||||
agentId?: string;
|
||||
};
|
||||
|
||||
/** Plugin-owned CLI backend defaults used by the text-only CLI runner. */
|
||||
export type CliBackendPlugin = {
|
||||
/** Provider id used in model refs, for example `claude-cli/opus`. */
|
||||
@@ -78,7 +84,10 @@ export type CliBackendPlugin = {
|
||||
* Use this for backend-specific compatibility rewrites when old config
|
||||
* shapes need to stay working.
|
||||
*/
|
||||
normalizeConfig?: (config: CliBackendConfig) => CliBackendConfig;
|
||||
normalizeConfig?: (
|
||||
config: CliBackendConfig,
|
||||
context?: CliBackendNormalizeConfigContext,
|
||||
) => CliBackendConfig;
|
||||
/**
|
||||
* Backend-owned final system-prompt transform.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user