@orangecheck/agent-core / canonicalizeScopes
Function: canonicalizeScopes()
function canonicalizeScopes(scopes: string[]): string[];
Defined in: agent-core/src/canonical.ts:36
Canonicalize and sort a list of scope strings for the delegation canonical message. Each scope is first parsed, then re-emitted in canonical form (constraints sorted by key), and the whole list is sorted lexicographically.
Parameters
| Parameter | Type |
|---|---|
scopes | string[] |
Returns
string[]