@owlmeans/server-auth-token 0.1.18-rc.5 → 0.1.18-rc.7
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/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
6
6
|
your project's skill store (`.agents/skills/`):
|
|
7
7
|
|
|
8
8
|
```sh
|
|
9
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.
|
|
9
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.19
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/server-auth-token",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-09-
|
|
4
|
+
"version": "0.1.18-rc.7",
|
|
5
|
+
"generatedAt": "2026-09-12T13:51:53.544Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -8,7 +8,7 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/server-auth-token
|
|
9
9
|
|
|
10
10
|
**Layer:** Server
|
|
11
|
-
**Install:** `"@owlmeans/server-auth-token": "^0.1.18-rc.
|
|
11
|
+
**Install:** `"@owlmeans/server-auth-token": "^0.1.18-rc.7"` in `dependencies`
|
|
12
12
|
**Contracts:** `@owlmeans/auth-token` — the record, the routes, the format helpers
|
|
13
13
|
|
|
14
14
|
## Key Exports
|
|
@@ -21,7 +21,7 @@ user-invocable: false
|
|
|
21
21
|
| `makeAccessTokenResource(dbAlias?)` | The Mongo resource, with its three indexes |
|
|
22
22
|
| `prefixOf(context, opts?)` | The deployment's prefix: guard options → config → default |
|
|
23
23
|
| `hashAccessToken(token)` · `mintAccessToken(prefix)` | The stored form; one minted `{ token, hash, display }` |
|
|
24
|
-
| `
|
|
24
|
+
| `withAuthTokenCoguard(protocolTree, guard?)` | Return the same-shaped immutable tree with the guard appended to every already-guarded protocol |
|
|
25
25
|
| `listAccessTokens` · `createAccessToken` · `revokeAccessToken` | The three handlers |
|
|
26
26
|
| `AuthTokenGuardOptions` (`prefix`, `denyAliases`, `touchInterval`, `resourceAlias`, `profileAlias`) · `AuthTokenConfig` · `AccessTokenResource` | Types |
|
|
27
27
|
|
|
@@ -99,7 +99,7 @@ tokens that are not theirs.
|
|
|
99
99
|
## The coguard admits a token everywhere, and the deny list lives in the GUARD
|
|
100
100
|
|
|
101
101
|
```typescript
|
|
102
|
-
|
|
102
|
+
const guardedManagerProtocols = withAuthTokenCoguard(managerProtocols)
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
An API client drives the same surface a browser does — projects, stories, files — so admitting the
|
|
@@ -108,8 +108,8 @@ never substitutes: the primary guard stays first and still claims its own creden
|
|
|
108
108
|
matches only a value carrying the prefix. It skips entrypoints that have no guard, and it is
|
|
109
109
|
idempotent.
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
Decorate the declaration tree before bindings are created. The helper preserves the input tree's
|
|
112
|
+
shape, leaves unguarded protocols unchanged, and is idempotent.
|
|
113
113
|
|
|
114
114
|
Routes that must stay behind an interactive session — opening a checkout, starting an OAuth flow,
|
|
115
115
|
minting another token — are named in `AuthTokenGuardOptions.denyAliases` rather than skipped here.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/server-auth-token",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The server half of OwlMeans access tokens — the store, the guard that verifies a presented token, the management handlers and the coguard that admits one on an existing route.",
|
|
6
6
|
"type": "module",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@noble/hashes": "^1.5.0",
|
|
27
|
-
"@owlmeans/auth": "^0.1.18-rc.
|
|
28
|
-
"@owlmeans/auth-common": "^0.1.18-rc.
|
|
29
|
-
"@owlmeans/auth-token": "^0.1.18-rc.
|
|
30
|
-
"@owlmeans/context": "^0.1.18-rc.
|
|
31
|
-
"@owlmeans/entrypoint": "^0.1.18-rc.
|
|
32
|
-
"@owlmeans/mongo-resource": "^0.1.18-rc.
|
|
33
|
-
"@owlmeans/resource": "^0.1.18-rc.
|
|
34
|
-
"@owlmeans/server-api": "^0.1.18-rc.
|
|
35
|
-
"@owlmeans/server-auth-identity": "^0.1.18-rc.
|
|
36
|
-
"@owlmeans/server-context": "^0.1.18-rc.
|
|
27
|
+
"@owlmeans/auth": "^0.1.18-rc.16",
|
|
28
|
+
"@owlmeans/auth-common": "^0.1.18-rc.20",
|
|
29
|
+
"@owlmeans/auth-token": "^0.1.18-rc.7",
|
|
30
|
+
"@owlmeans/context": "^0.1.18-rc.15",
|
|
31
|
+
"@owlmeans/entrypoint": "^0.1.18-rc.18",
|
|
32
|
+
"@owlmeans/mongo-resource": "^0.1.18-rc.19",
|
|
33
|
+
"@owlmeans/resource": "^0.1.18-rc.16",
|
|
34
|
+
"@owlmeans/server-api": "^0.1.18-rc.24",
|
|
35
|
+
"@owlmeans/server-auth-identity": "^0.1.18-rc.20",
|
|
36
|
+
"@owlmeans/server-context": "^0.1.18-rc.19",
|
|
37
37
|
"@scure/base": "^1.1.9"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|