wire-mesh-core 1.11.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/domain/tokens.d.cts
CHANGED
|
@@ -78,8 +78,9 @@ export interface MintCapabilityTokenOptions {
|
|
|
78
78
|
scope: TokenClaims["scope"];
|
|
79
79
|
expires: number;
|
|
80
80
|
notBefore?: number;
|
|
81
|
+
/** How many further delegation hops the *resulting* token itself permits below it -- unrelated to, and never a bound on, whether `identity` may mint further tokens of its own at the root level for other bearers. Those are two different facts: a token minted with `delegationsRemaining: 0` genuinely cannot itself be re-delegated (correct -- e.g. a room owner's own self-signed root grant, which should never be handed onward), but that same `0` says nothing about the issuer's own separate, ordinary authority to mint additional independent root-level grants (naming no `parent` at all) for other bearers. Root-level minting for a second bearer is never blocked by any existing token's own `delegationsRemaining`, because it uses no `parent` in the first place -- there is no narrowing check to run. Confirmed live in agent-comms' own room-membership implementation (`ExaDev/agent-comms` PR #72): each member's own join/invite grant is minted as its own independent, parent-less, root-level token precisely because the room owner's `delegationsRemaining: 0` self-grant cannot parent anything -- correct by this same reasoning, not a workaround. */
|
|
81
82
|
delegationsRemaining?: number;
|
|
82
|
-
/** The issuer's own token, when this is a delegation rather than a root grant. Its claims are checked against every narrowing rule below -- mint refuses rather than producing a token verifyCapabilityToken would reject anyway. */
|
|
83
|
+
/** The issuer's own token, when this is a delegation rather than a root grant. Its claims are checked against every narrowing rule below -- mint refuses rather than producing a token verifyCapabilityToken would reject anyway. Omit entirely for a root-level grant (including a second, independent root-level grant for a different bearer under the same capability/scope this issuer already grants elsewhere) -- there is no bound on how many such root grants an issuer may mint, since none of them narrows any other. */
|
|
83
84
|
parent?: CapabilityToken;
|
|
84
85
|
}
|
|
85
86
|
/**
|
package/dist/domain/tokens.d.mts
CHANGED
|
@@ -78,8 +78,9 @@ export interface MintCapabilityTokenOptions {
|
|
|
78
78
|
scope: TokenClaims["scope"];
|
|
79
79
|
expires: number;
|
|
80
80
|
notBefore?: number;
|
|
81
|
+
/** How many further delegation hops the *resulting* token itself permits below it -- unrelated to, and never a bound on, whether `identity` may mint further tokens of its own at the root level for other bearers. Those are two different facts: a token minted with `delegationsRemaining: 0` genuinely cannot itself be re-delegated (correct -- e.g. a room owner's own self-signed root grant, which should never be handed onward), but that same `0` says nothing about the issuer's own separate, ordinary authority to mint additional independent root-level grants (naming no `parent` at all) for other bearers. Root-level minting for a second bearer is never blocked by any existing token's own `delegationsRemaining`, because it uses no `parent` in the first place -- there is no narrowing check to run. Confirmed live in agent-comms' own room-membership implementation (`ExaDev/agent-comms` PR #72): each member's own join/invite grant is minted as its own independent, parent-less, root-level token precisely because the room owner's `delegationsRemaining: 0` self-grant cannot parent anything -- correct by this same reasoning, not a workaround. */
|
|
81
82
|
delegationsRemaining?: number;
|
|
82
|
-
/** The issuer's own token, when this is a delegation rather than a root grant. Its claims are checked against every narrowing rule below -- mint refuses rather than producing a token verifyCapabilityToken would reject anyway. */
|
|
83
|
+
/** The issuer's own token, when this is a delegation rather than a root grant. Its claims are checked against every narrowing rule below -- mint refuses rather than producing a token verifyCapabilityToken would reject anyway. Omit entirely for a root-level grant (including a second, independent root-level grant for a different bearer under the same capability/scope this issuer already grants elsewhere) -- there is no bound on how many such root grants an issuer may mint, since none of them narrows any other. */
|
|
83
84
|
parent?: CapabilityToken;
|
|
84
85
|
}
|
|
85
86
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wire-mesh-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"packageManager": "pnpm@10.33.0",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"lint": "turbo run _lint",
|
|
28
28
|
"_lint": "eslint . --fix --cache --max-warnings 0",
|
|
29
29
|
"conformance-check": "turbo run _conformance-check",
|
|
30
|
-
"_conformance-check": "vitest run test/conformance.test.ts"
|
|
30
|
+
"_conformance-check": "vitest run test/conformance.test.ts",
|
|
31
|
+
"mutation": "turbo run _mutation",
|
|
32
|
+
"_mutation": "stryker run stryker.config.ts"
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
33
35
|
"cbor2": "2.3.0",
|
|
@@ -41,6 +43,9 @@
|
|
|
41
43
|
"@semantic-release/github": "12.0.9",
|
|
42
44
|
"@semantic-release/npm": "13.1.5",
|
|
43
45
|
"@semantic-release/release-notes-generator": "14.1.1",
|
|
46
|
+
"@stryker-mutator/api": "10.0.0",
|
|
47
|
+
"@stryker-mutator/core": "10.0.0",
|
|
48
|
+
"@stryker-mutator/typescript-checker": "10.0.0",
|
|
44
49
|
"@types/node": "26.4.1",
|
|
45
50
|
"conventional-changelog-conventionalcommits": "10.4.0",
|
|
46
51
|
"eslint": "10.10.0",
|