@owlmeans/auth-common 0.1.18-rc.18 → 0.1.18-rc.19

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
@@ -89,7 +89,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
89
89
  your project's skill store (`.agents/skills/`):
90
90
 
91
91
  ```sh
92
- npx @owlmeans/agent-skills@^0.1.18-rc.17
92
+ npx @owlmeans/agent-skills@^0.1.18-rc.18
93
93
  ```
94
94
 
95
95
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/auth-common",
4
- "version": "0.1.18-rc.18",
5
- "generatedAt": "2026-09-12T12:59:24.909Z",
4
+ "version": "0.1.18-rc.19",
5
+ "generatedAt": "2026-09-12T13:35:38.909Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/auth-common
9
9
 
10
10
  **Layer:** Core
11
- **Install:** `"@owlmeans/auth-common": "^0.1.18-rc.18"` in `dependencies`
11
+ **Install:** `"@owlmeans/auth-common": "^0.1.18-rc.19"` in `dependencies`
12
12
 
13
13
  Everything a server and a browser must agree on to talk authentication: aliases, the shared
14
14
  entrypoint declarations, the signature guard, and the contract for resolving the organization
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/auth-common",
3
- "version": "0.1.18-rc.18",
3
+ "version": "0.1.18-rc.19",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -29,19 +29,19 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@owlmeans/auth": "^0.1.18-rc.14",
33
- "@owlmeans/auth-common": "^0.1.18-rc.18",
34
- "@owlmeans/basic-ids": "^0.1.18-rc.14",
35
- "@owlmeans/basic-keys": "^0.1.18-rc.17",
36
- "@owlmeans/client-entrypoint": "^0.1.18-rc.18",
37
- "@owlmeans/context": "^0.1.18-rc.13",
38
- "@owlmeans/entrypoint": "^0.1.18-rc.16",
39
- "@owlmeans/resource": "^0.1.18-rc.14",
40
- "@owlmeans/route": "^0.1.18-rc.14"
32
+ "@owlmeans/auth": "^0.1.18-rc.15",
33
+ "@owlmeans/auth-common": "^0.1.18-rc.19",
34
+ "@owlmeans/basic-ids": "^0.1.18-rc.15",
35
+ "@owlmeans/basic-keys": "^0.1.18-rc.18",
36
+ "@owlmeans/client-entrypoint": "^0.1.18-rc.19",
37
+ "@owlmeans/context": "^0.1.18-rc.14",
38
+ "@owlmeans/entrypoint": "^0.1.18-rc.17",
39
+ "@owlmeans/resource": "^0.1.18-rc.15",
40
+ "@owlmeans/route": "^0.1.18-rc.15"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@owlmeans/dep-config": "workspace:*",
44
- "@owlmeans/test-auth": "^0.1.18-rc.18",
44
+ "@owlmeans/test-auth": "^0.1.18-rc.19",
45
45
  "@types/bun": "^1.4.0",
46
46
  "nodemon": "^3.1.14",
47
47
  "typescript": "^7.0.2"
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, test } from 'bun:test'
2
- import { entrypoints } from '@owlmeans/auth-common'
2
+ import { authProtocols } from '@owlmeans/auth-common'
3
3
  import { DISPATCHER, DISPATCHER_AUTHEN } from '@owlmeans/auth'
4
4
  import { DISPATCHER_PATH } from '../src/consts.js'
5
5
 
@@ -9,30 +9,30 @@ import { DISPATCHER_PATH } from '../src/consts.js'
9
9
  // in @owlmeans/client's navigator.navigate() — when the URL is absolute it
10
10
  // does a browser redirect (globalThis.location.href) instead of React Router navigate().
11
11
 
12
- describe('@owlmeans/auth-common — DISPATCHER entrypoint declaration', () => {
13
- const dispatcher = entrypoints.find(m => m.route.route.alias === DISPATCHER)
12
+ describe('@owlmeans/auth-common — DISPATCHER protocol declaration', () => {
13
+ const dispatcher = authProtocols.dispatcher
14
14
 
15
- test('DISPATCHER entrypoint is present in the entrypoints array', () => {
16
- expect(dispatcher).toBeDefined()
15
+ test('DISPATCHER protocol is present in the authentication tree', () => {
16
+ expect(dispatcher.alias).toBe(DISPATCHER)
17
17
  })
18
18
 
19
19
  test('DISPATCHER route has an explicit service override (cross-service)', () => {
20
20
  // service: DISPATCHER is intentional — the dispatcher belongs to the auth service.
21
21
  // The navigator in @owlmeans/client handles the resulting absolute URL correctly.
22
- expect(dispatcher?.route.route.service).toBe(DISPATCHER)
22
+ expect(dispatcher.route.route.service).toBe(DISPATCHER)
23
23
  })
24
24
 
25
25
  test('DISPATCHER route path is DISPATCHER_PATH (/dispatcher)', () => {
26
- expect(dispatcher?.route.route.path).toBe(DISPATCHER_PATH)
26
+ expect(dispatcher.route.route.path).toBe(DISPATCHER_PATH)
27
27
  })
28
28
 
29
29
  test('DISPATCHER entrypoint is sticky (always registered in every app router)', () => {
30
- expect(dispatcher?.sticky).toBe(true)
30
+ expect(dispatcher.sticky).toBe(true)
31
31
  })
32
32
 
33
33
  test('DISPATCHER_AUTHEN backend entrypoint is distinct', () => {
34
- const dispatcherAuthen = entrypoints.find(m => m.route.route.alias === DISPATCHER_AUTHEN)
35
- expect(dispatcherAuthen).toBeDefined()
36
- expect(dispatcherAuthen?.sticky).toBeFalsy()
34
+ const dispatcherAuthen = authProtocols.dispatcherAuthenticate
35
+ expect(dispatcherAuthen.alias).toBe(DISPATCHER_AUTHEN)
36
+ expect(dispatcherAuthen.sticky).toBeFalsy()
37
37
  })
38
38
  })