Skip to content

Add package-pattern cooldown policies - #13

Merged
andrew merged 1 commit into
mainfrom
package-patterns
Oct 18, 2026
Merged

andrew merged 1 commit into
mainfrom
package-patterns

Conversation

@andrew

@andrew andrew commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Add NewPolicy for package-pattern cooldown overrides, moving the policy currently used by proxy into this module without adding dependencies. Exact package overrides win over patterns, then ecosystem overrides and the global default. More literal characters take priority between patterns, with lexical order breaking ties.

Normalize npm scope aliases in patterns and reject unsupported glob syntax, invalid pattern durations, and conflicting normalized patterns during construction. Policy exposes For, Evaluate, IsAllowed, and Enabled, while the existing Config API remains unchanged.

Copilot AI balanced review requested due to automatic review settings October 18, 2026 11:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@andrew
andrew merged commit da1c4af into main Oct 18, 2026
5 checks passed
@andrew
andrew deleted the package-patterns branch October 18, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants