@owlmeans/api-config-client 0.1.18-rc.20 → 0.1.18-rc.22

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
@@ -5,13 +5,13 @@ Client-side middleware that fetches server config from `GET /assets/config.json`
5
5
  ## Overview
6
6
 
7
7
  - `apiConfigMiddleware` — context middleware that calls the config endpoint on startup
8
- - Binds `@owlmeans/api-config` protocols into the client entrypoint system
8
+ - Binds the `@owlmeans/api-config` `advertise` protocol into the client entrypoint system
9
9
  - Merges the server `ApiConfig` into the client's `CommonConfig` at initialization time
10
10
 
11
11
  ## Installation
12
12
 
13
13
  ```bash
14
- bun add @owlmeans/api-config-client@^0.1.18-rc.12
14
+ bun add @owlmeans/api-config-client@^0.1.18-rc.21
15
15
  ```
16
16
 
17
17
  ## Usage
@@ -24,13 +24,16 @@ import { apiConfigMiddleware } from '@owlmeans/api-config-client'
24
24
  context.registerMiddleware(apiConfigMiddleware)
25
25
  ```
26
26
 
27
- On initialization, the middleware calls the `API_CONFIG` entrypoint and merges the response into the context config.
27
+ On initialization, the middleware calls the bound `advertise` protocol and merges the response into
28
+ the context config. If this package's local `entrypoints` bindings are not registered, initialization
29
+ fails rather than silently falling back to alias-based calls.
28
30
 
29
31
  ## API
30
32
 
31
33
  ### `apiConfigMiddleware: Middleware`
32
34
 
33
- A context initialization middleware. Calls the `API_CONFIG` entrypoint, receives `ApiConfig`, and applies it to the context via `mergeConfig`.
35
+ A context initialization middleware. Calls the `advertise` protocol, receives `ApiConfig`, and
36
+ applies it to the context via `mergeConfig`.
34
37
 
35
38
  ## Related Packages
36
39
 
@@ -45,7 +48,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
45
48
  your project's skill store (`.agents/skills/`):
46
49
 
47
50
  ```sh
48
- npx @owlmeans/agent-skills@^0.1.18-rc.19
51
+ npx @owlmeans/agent-skills@^0.1.18-rc.21
49
52
  ```
50
53
 
51
54
  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/api-config-client",
4
- "version": "0.1.18-rc.20",
5
- "generatedAt": "2026-09-12T13:51:53.536Z",
4
+ "version": "0.1.18-rc.22",
5
+ "generatedAt": "2026-09-15T12:21:31.926Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/api-config-client
9
9
 
10
10
  **Layer:** Client
11
- **Install:** `"@owlmeans/api-config-client": "^0.1.18-rc.20"` in `dependencies`
11
+ **Install:** `"@owlmeans/api-config-client": "^0.1.18-rc.22"` in `dependencies`
12
12
 
13
13
  Consumes the declaration shared by `@owlmeans/api-config` and answered by
14
14
  `@owlmeans/api-config-server`.
@@ -25,7 +25,7 @@ Consumes the declaration shared by `@owlmeans/api-config` and answered by
25
25
  Both halves are needed: the middleware does the work, the entrypoint is what it calls.
26
26
 
27
27
  ```typescript
28
- import { apiConfigMiddleware, entrypoints as apiConfigEntrypoints } from '@owlmeans/api-config-client'
28
+ import { apiConfigMiddleware, entrypoints as apiConfigBindings } from '@owlmeans/api-config-client'
29
29
 
30
30
  export const makeContext = <C extends AppConfig, T extends AppContext<C>>(cfg: C): T => {
31
31
  const context = makeClientContext(cfg) as T
@@ -33,7 +33,7 @@ export const makeContext = <C extends AppConfig, T extends AppContext<C>>(cfg: C
33
33
  return context
34
34
  }
35
35
 
36
- export const appEntrypoints = [...apiConfigEntrypoints, ...myEntrypoints]
36
+ export const clientBindings = [...apiConfigBindings, ...myClientBindings]
37
37
  ```
38
38
 
39
39
  A panel app on `@owlmeans/web-panel` or `@owlmeans/mui-panel` already registers both — do it again
@@ -48,7 +48,7 @@ captured while initializing: that one still holds what the bundle shipped.
48
48
 
49
49
  - **Both halves, or the boot dies.** The middleware resolves `API_CONFIG` against the context
50
50
  before it tests anything else, so a context that registers `apiConfigMiddleware` without also
51
- spreading `entrypoints` fails `init()` with `SyntaxError: Entrypoint api-config:advertise not
51
+ registering local `entrypoints` bindings fails `init()` with `SyntaxError: Entrypoint api-config:advertise not
52
52
  found`. That failure is outside the swallowing below — it is a hard boot error, not a missing
53
53
  value discovered later.
54
54
  - **It is a no-op unless `cfg.primaryHost` is set.** A build without it keeps whatever the bundle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/api-config-client",
3
- "version": "0.1.18-rc.20",
3
+ "version": "0.1.18-rc.22",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/api-config": "^0.1.18-rc.19",
25
- "@owlmeans/client-context": "^0.1.18-rc.20",
26
- "@owlmeans/client-entrypoint": "^0.1.18-rc.20",
27
- "@owlmeans/context": "^0.1.18-rc.15"
24
+ "@owlmeans/api-config": "^0.1.18-rc.21",
25
+ "@owlmeans/client-context": "^0.1.18-rc.22",
26
+ "@owlmeans/client-entrypoint": "^0.1.18-rc.22",
27
+ "@owlmeans/context": "^0.1.18-rc.17"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@owlmeans/dep-config": "workspace:*",