@owlmeans/api-config 0.1.18-rc.14 → 0.1.18-rc.15
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 +1 -1
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/api-config/SKILL.md +3 -3
- package/build/entrypoints.d.ts +3 -1
- package/build/entrypoints.d.ts.map +1 -1
- package/build/entrypoints.js +4 -4
- package/build/entrypoints.js.map +1 -1
- package/package.json +5 -5
- package/src/entrypoints.ts +5 -4
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.
|
|
71
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.15
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
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/api-config",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-09-
|
|
4
|
+
"version": "0.1.18-rc.15",
|
|
5
|
+
"generatedAt": "2026-09-12T08:39:52.736Z",
|
|
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.
|
|
11
|
+
**Install:** `"@owlmeans/api-config": "^0.1.18-rc.15"` 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
|
-
| `
|
|
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
|
|
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
|
package/build/entrypoints.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
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,
|
|
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"}
|
package/build/entrypoints.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openProtocol } from '@owlmeans/entrypoint';
|
|
2
2
|
import { route } from '@owlmeans/route';
|
|
3
3
|
import { API_CONFIG } from './consts.js';
|
|
4
|
-
|
|
5
|
-
|
|
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
|
package/build/entrypoints.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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.
|
|
3
|
+
"version": "0.1.18-rc.15",
|
|
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.
|
|
26
|
-
"@owlmeans/context": "^0.1.18-rc.
|
|
27
|
-
"@owlmeans/entrypoint": "^0.1.18-rc.
|
|
28
|
-
"@owlmeans/route": "^0.1.18-rc.
|
|
25
|
+
"@owlmeans/config": "^0.1.18-rc.15",
|
|
26
|
+
"@owlmeans/context": "^0.1.18-rc.11",
|
|
27
|
+
"@owlmeans/entrypoint": "^0.1.18-rc.14",
|
|
28
|
+
"@owlmeans/route": "^0.1.18-rc.12"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@owlmeans/dep-config": "workspace:*",
|
package/src/entrypoints.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openProtocol } from '@owlmeans/entrypoint'
|
|
2
2
|
import { route } from '@owlmeans/route'
|
|
3
3
|
import { API_CONFIG } from './consts.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
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]
|