openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
12 lines (11 loc) • 6.41 kB
JavaScript
import { _ as resolvePolicyTargetCandidatePath, a as matchAllowlist, c as resolveApprovalAuditCandidatePath, d as resolveCommandResolutionFromArgv, f as resolveExecutableTrustPath, g as resolvePolicyAllowlistCandidatePath, h as resolveExecutionTargetTrustPath, l as resolveApprovalAuditTrustPath, m as resolveExecutionTargetResolution, o as parseExecArgvToken, p as resolveExecutionTargetCandidatePath, s as resolveAllowlistCandidatePath, t as buildCwdBoundHashedArgPattern, u as resolveCommandResolution, v as resolvePolicyTargetResolution, y as resolvePolicyTargetTrustPath } from "./exec-command-resolution-BbXiIa7C.mjs";
import { a as normalizeExecMode, c as requireValidExecTarget, d as resolveExecModePolicy, f as resolveExecPolicyForMode, i as normalizeExecHost, l as resolveExactExecModeFromPolicy, n as EXEC_TARGET_VALUES, o as normalizeExecSecurity, r as normalizeExecAsk, s as normalizeExecTarget, t as DEFAULT_EXEC_APPROVAL_TIMEOUT_MS, u as resolveExecModeFromPolicy } from "./exec-approvals-core-GflUelcW.mjs";
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-BF54IW19.mjs";
import { a as addDurableCommandApproval, c as hasDurableExecApproval, d as isExecApprovalPolicySnapshotCurrent, f as persistAllowAlwaysDecision, g as resolveDurableExecApprovalRequirement, h as resolveAllowAlwaysPersistenceDecision, i as addAllowlistEntry, l as hasExactCommandDurableExecApproval, m as resolveAllowAlwaysPatternCoverage, p as persistAllowAlwaysPatterns, s as createExecApprovalPolicySnapshot, u as hasNodeCommandAllowAlwaysMarker } from "./exec-approvals-authorization.kernel-BwTTU2c4.mjs";
import { a as loadExecApprovalsReadOnly, c as readExecApprovalsSnapshot, d as restoreExecApprovalsSnapshotLocked, f as saveExecApprovals, g as withAgentExecApprovalsRemoved, i as loadExecApprovals, m as updateExecApprovals, n as ensureExecApprovals, r as ensureExecApprovalsSnapshot, u as restoreExecApprovalsSnapshot } from "./exec-approvals-store-B3Dzx_vP.mjs";
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-DRan0KvC.mjs";
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-4YPZdW-H.mjs";
import { n as repairObsoleteGeneratedExecApprovals, t as countObsoleteGeneratedExecApprovals } from "./exec-approvals-generated-migration-CwfGvxfI.mjs";
import { a as maxAsk, c as requiresExecApproval, d as resolveExecApprovalUnavailableDecisions, i as isExecApprovalDecisionAllowed, l as resolveExecApprovalAllowedDecisions, n as OPTIONAL_EXEC_APPROVAL_DECISIONS, o as minSecurity, r as commandRequiresSecurityAuditSuppressionApproval, s as normalizeExecApprovalUnavailableDecisions, t as DEFAULT_EXEC_APPROVAL_DECISIONS, u as resolveExecApprovalRequestAllowedDecisions } from "./exec-approvals-policy-CMlDajgd.mjs";
import { a as resolveExecApprovalsLocked, c as commitExecAuthorizationLocked, i as resolveExecApprovalsFromFile, l as recordAllowlistMatchesUse, n as redactExecApprovals, o as requestExecApprovalViaSocket, r as resolveExecApprovals, t as normalizeExecApprovals, u as recordAllowlistUse } from "./exec-approvals-BYWWK6_e.mjs";
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, 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, resolveExactExecModeFromPolicy, 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 };