openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
10 lines (9 loc) • 6.26 kB
JavaScript
import { _ as resolvePolicyTargetResolution, a as parseExecArgvToken, c as resolveApprovalAuditTrustPath, d as resolveExecutableTrustPath, f as resolveExecutionTargetCandidatePath, g as resolvePolicyTargetCandidatePath, h as resolvePolicyAllowlistCandidatePath, i as matchAllowlist, l as resolveCommandResolution, m as resolveExecutionTargetTrustPath, o as resolveAllowlistCandidatePath, p as resolveExecutionTargetResolution, s as resolveApprovalAuditCandidatePath, t as buildCwdBoundHashedArgPattern, u as resolveCommandResolutionFromArgv, v as resolvePolicyTargetTrustPath } from "./exec-command-resolution-B6e6Gzk8.js";
import { S as resolveExecPolicyForMode, _ as normalizeExecSecurity, a as maxAsk, b as resolveExecModeFromPolicy, c as requiresExecApproval, d as resolveExecApprovalUnavailableDecisions, f as DEFAULT_EXEC_APPROVAL_TIMEOUT_MS, g as normalizeExecMode, h as normalizeExecHost, i as isExecApprovalDecisionAllowed, l as resolveExecApprovalAllowedDecisions, m as normalizeExecAsk, n as OPTIONAL_EXEC_APPROVAL_DECISIONS, o as minSecurity, p as EXEC_TARGET_VALUES, r as commandRequiresSecurityAuditSuppressionApproval, s as normalizeExecApprovalUnavailableDecisions, t as DEFAULT_EXEC_APPROVAL_DECISIONS, u as resolveExecApprovalRequestAllowedDecisions, v as normalizeExecTarget, x as resolveExecModePolicy, y as requireValidExecTarget } from "./exec-approvals-policy-CCFUzTzd.js";
import { a as mergeExecApprovalsSocketDefaults, c as resolveExecApprovalsDisplayPath, d as resolveExecApprovalsTranscriptPath, l as resolveExecApprovalsPath, t as DEFAULT_EXEC_APPROVAL_ASK_FALLBACK, u as resolveExecApprovalsSocketPath } from "./exec-approvals-config-D1lCGl0_.js";
import { S as resolveDurableExecApprovalRequirement, _ as isExecApprovalPolicySnapshotCurrent, a as resolveExecApprovalsLocked, b as resolveAllowAlwaysPatternCoverage, c as commitExecAuthorizationLocked, d as addAllowlistEntry, f as addDurableCommandApproval, g as hasNodeCommandAllowAlwaysMarker, h as hasExactCommandDurableExecApproval, i as resolveExecApprovalsFromFile, l as recordAllowlistMatchesUse, m as hasDurableExecApproval, n as redactExecApprovals, o as requestExecApprovalViaSocket, p as createExecApprovalPolicySnapshot, r as resolveExecApprovals, t as normalizeExecApprovals, u as recordAllowlistUse, v as persistAllowAlwaysDecision, x as resolveAllowAlwaysPersistenceDecision, y as persistAllowAlwaysPatterns } from "./exec-approvals-BSZ-fPIY.js";
import { a as loadExecApprovalsReadOnly, c as restoreExecApprovalsSnapshot, d as updateExecApprovals, i as loadExecApprovalsAsync, l as restoreExecApprovalsSnapshotLocked, n as ensureExecApprovalsSnapshot, o as readExecApprovalsSnapshot, p as withAgentExecApprovalsRemoved, r as loadExecApprovals, t as ensureExecApprovals, u as saveExecApprovals } from "./exec-approvals-store-DBR0neS0.js";
import { a as isWindowsPlatform, i as analyzeWindowsShellCommand, n as resolvePlannedSegmentArgv, o as tokenizeWindowsSegment, r as analyzeArgvCommand, s as windowsEscapeArg, t as buildEnforcedShellCommand } from "./exec-approvals-analysis-CaqIBAfQ.js";
import { a as isSafeBinUsage, c as resolveAllowAlwaysPatterns, i as evaluateShellAllowlistWithAuthorization, l as resolveSafeBins, n as evaluateExecAllowlistWithAuthorization, o as normalizeSafeBins, r as evaluateShellAllowlist, s as resolveAllowAlwaysPatternEntries, t as evaluateExecAllowlist } from "./exec-approvals-allowlist-CdzK4JhM.js";
import { n as repairObsoleteGeneratedExecApprovals, t as countObsoleteGeneratedExecApprovals } from "./exec-approvals-generated-migration-ByaAcCAT.js";
export { DEFAULT_EXEC_APPROVAL_ASK_FALLBACK, DEFAULT_EXEC_APPROVAL_DECISIONS, DEFAULT_EXEC_APPROVAL_TIMEOUT_MS, EXEC_TARGET_VALUES, OPTIONAL_EXEC_APPROVAL_DECISIONS, addAllowlistEntry, addDurableCommandApproval, analyzeArgvCommand, analyzeWindowsShellCommand, buildCwdBoundHashedArgPattern, buildEnforcedShellCommand, commandRequiresSecurityAuditSuppressionApproval, commitExecAuthorizationLocked, countObsoleteGeneratedExecApprovals, createExecApprovalPolicySnapshot, ensureExecApprovals, ensureExecApprovalsSnapshot, evaluateExecAllowlist, evaluateExecAllowlistWithAuthorization, evaluateShellAllowlist, evaluateShellAllowlistWithAuthorization, hasDurableExecApproval, hasExactCommandDurableExecApproval, hasNodeCommandAllowAlwaysMarker, isExecApprovalDecisionAllowed, isExecApprovalPolicySnapshotCurrent, isSafeBinUsage, isWindowsPlatform, loadExecApprovals, loadExecApprovalsAsync, loadExecApprovalsReadOnly, matchAllowlist, maxAsk, mergeExecApprovalsSocketDefaults, minSecurity, normalizeExecApprovalUnavailableDecisions, normalizeExecApprovals, normalizeExecAsk, normalizeExecHost, normalizeExecMode, normalizeExecSecurity, normalizeExecTarget, normalizeSafeBins, parseExecArgvToken, persistAllowAlwaysDecision, persistAllowAlwaysPatterns, readExecApprovalsSnapshot, recordAllowlistMatchesUse, recordAllowlistUse, redactExecApprovals, repairObsoleteGeneratedExecApprovals, requestExecApprovalViaSocket, requireValidExecTarget, requiresExecApproval, resolveAllowAlwaysPatternCoverage, resolveAllowAlwaysPatternEntries, resolveAllowAlwaysPatterns, resolveAllowAlwaysPersistenceDecision, resolveAllowlistCandidatePath, resolveApprovalAuditCandidatePath, resolveApprovalAuditTrustPath, resolveCommandResolution, resolveCommandResolutionFromArgv, resolveDurableExecApprovalRequirement, resolveExecApprovalAllowedDecisions, resolveExecApprovalRequestAllowedDecisions, resolveExecApprovalUnavailableDecisions, resolveExecApprovals, resolveExecApprovalsDisplayPath, resolveExecApprovalsFromFile, resolveExecApprovalsLocked, resolveExecApprovalsPath, resolveExecApprovalsSocketPath, resolveExecApprovalsTranscriptPath, resolveExecModeFromPolicy, resolveExecModePolicy, resolveExecPolicyForMode, resolveExecutableTrustPath, resolveExecutionTargetCandidatePath, resolveExecutionTargetResolution, resolveExecutionTargetTrustPath, resolvePlannedSegmentArgv, resolvePolicyAllowlistCandidatePath, resolvePolicyTargetCandidatePath, resolvePolicyTargetResolution, resolvePolicyTargetTrustPath, resolveSafeBins, restoreExecApprovalsSnapshot, restoreExecApprovalsSnapshotLocked, saveExecApprovals, tokenizeWindowsSegment, updateExecApprovals, windowsEscapeArg, withAgentExecApprovalsRemoved };