claude code drop from npm

This commit is contained in:
2026-04-02 11:51:49 +03:00
commit ffe24f128e
1905 changed files with 513700 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
// Types extracted to src/types/permissions.ts to break import cycles
import type {
PermissionAllowDecision,
PermissionAskDecision,
PermissionDecision,
PermissionDecisionReason,
PermissionDenyDecision,
PermissionMetadata,
PermissionResult,
} from '../../types/permissions.js'
// Re-export for backwards compatibility
export type {
PermissionAllowDecision,
PermissionAskDecision,
PermissionDecision,
PermissionDecisionReason,
PermissionDenyDecision,
PermissionMetadata,
PermissionResult,
}
// Helper function to get the appropriate prose description for rule behavior
export function getRuleBehaviorDescription(
permissionResult: PermissionResult['behavior'],
): string {
switch (permissionResult) {
case 'allow':
return 'allowed'
case 'deny':
return 'denied'
default:
return 'asked for confirmation for'
}
}