@owlmeans/api-config 0.1.18-rc.14 → 0.1.18-rc.16

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
@@ -68,7 +68,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
68
68
  your project's skill store (`.agents/skills/`):
69
69
 
70
70
  ```sh
71
- npx @owlmeans/agent-skills@^0.1.18-rc.14
71
+ npx @owlmeans/agent-skills@^0.1.18-rc.16
72
72
  ```
73
73
 
74
74
  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",
4
- "version": "0.1.18-rc.14",
5
- "generatedAt": "2026-09-10T23:12:07.518Z",
4
+ "version": "0.1.18-rc.16",
5
+ "generatedAt": "2026-09-12T12:32:46.381Z",
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
9
9
 
10
10
  **Layer:** Core
11
- **Install:** `"@owlmeans/api-config": "^0.1.18-rc.14"` in `dependencies`
11
+ **Install:** `"@owlmeans/api-config": "^0.1.18-rc.16"` in `dependencies`
12
12
 
13
13
  The contract package of a three-package flow: this one declares the endpoint and what may cross it,
14
14
  `@owlmeans/api-config-server` answers it, `@owlmeans/api-config-client` fetches it and merges the
@@ -19,7 +19,7 @@ answer into the client config. Nothing here runs — it is the shared declaratio
19
19
  | Export | Description |
20
20
  |--------|-------------|
21
21
  | `entrypoints` | The single declaration — alias `API_CONFIG`, route `/assets/config.json`, `sticky: true` so a router attaches it unconditionally |
22
- | `API_CONFIG` | The alias (`api-config:advertise`) both sides elevate |
22
+ | `apiConfigEntrypoints.config` | The shared `api-config:advertise` protocol both sides bind |
23
23
  | `apiConfigPlugin(plugin)` | Registers one package's public config selection as its module loads |
24
24
  | `every(selection, where?)` | Applies a selection to every list item or object-map value, optionally filtering items |
25
25
  | `ApiConfigPlugin` | `{ allow, deny? }` — nested allowlist with an optional nested redaction selector |
@@ -28,7 +28,7 @@ answer into the client config. Nothing here runs — it is the shared declaratio
28
28
 
29
29
  ## Usage
30
30
 
31
- The declaration is elevated on both sides, so neither imports the other's package — they only share
31
+ The declaration is bound on both sides, so neither imports the other's package — they only share
32
32
  this one. Add it to the entrypoint list the way any other entrypoint set is added:
33
33
 
34
34
  ```typescript
@@ -1,2 +1,4 @@
1
- export declare const entrypoints: import("@owlmeans/entrypoint").CommonEntrypoint[];
1
+ /** The public runtime-config endpoint protocol. */
2
+ export declare const advertise: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").OpenRequest, import("@owlmeans/entrypoint").OpenValue>;
3
+ export declare const protocols: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").OpenRequest, import("@owlmeans/entrypoint").OpenValue>[];
2
4
  //# sourceMappingURL=entrypoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,mDAEvB,CAAA"}
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAIA,mDAAmD;AACnD,eAAO,MAAM,SAAS,yIAA2E,CAAA;AAEjG,eAAO,MAAM,SAAS,2IAAc,CAAA"}
@@ -1,7 +1,7 @@
1
- import { entrypoint } from '@owlmeans/entrypoint';
1
+ import { openProtocol } from '@owlmeans/entrypoint';
2
2
  import { route } from '@owlmeans/route';
3
3
  import { API_CONFIG } from './consts.js';
4
- export const entrypoints = [
5
- entrypoint(route(API_CONFIG, '/assets/config.json'), { sticky: true }),
6
- ];
4
+ /** The public runtime-config endpoint protocol. */
5
+ export const advertise = openProtocol(route(API_CONFIG, '/assets/config.json'), { sticky: true });
6
+ export const protocols = [advertise];
7
7
  //# sourceMappingURL=entrypoints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;CACvE,CAAA"}
1
+ {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,mDAAmD;AACnD,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,UAAU,EAAE,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;AAEjG,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,SAAS,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/api-config",
3
- "version": "0.1.18-rc.14",
3
+ "version": "0.1.18-rc.16",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -22,10 +22,10 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@owlmeans/config": "^0.1.18-rc.14",
26
- "@owlmeans/context": "^0.1.18-rc.10",
27
- "@owlmeans/entrypoint": "^0.1.18-rc.13",
28
- "@owlmeans/route": "^0.1.18-rc.11"
25
+ "@owlmeans/config": "^0.1.18-rc.16",
26
+ "@owlmeans/context": "^0.1.18-rc.12",
27
+ "@owlmeans/entrypoint": "^0.1.18-rc.15",
28
+ "@owlmeans/route": "^0.1.18-rc.13"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@owlmeans/dep-config": "workspace:*",
@@ -1,7 +1,8 @@
1
- import { entrypoint } from '@owlmeans/entrypoint'
1
+ import { openProtocol } from '@owlmeans/entrypoint'
2
2
  import { route } from '@owlmeans/route'
3
3
  import { API_CONFIG } from './consts.js'
4
4
 
5
- export const entrypoints = [
6
- entrypoint(route(API_CONFIG, '/assets/config.json'), { sticky: true }),
7
- ]
5
+ /** The public runtime-config endpoint protocol. */
6
+ export const advertise = openProtocol(route(API_CONFIG, '/assets/config.json'), { sticky: true })
7
+
8
+ export const protocols = [advertise]