@owlmeans/server-wl 0.1.18-rc.19 → 0.1.18-rc.20

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
@@ -40,7 +40,8 @@ await main(context, [...entrypoints, ...wlDnsEntrypoints, ...appEntrypoints])
40
40
 
41
41
  ### `entrypoints`
42
42
 
43
- Array of `ServerEntrypoint` instances providing the WL configuration API endpoint.
43
+ Array of bound server entrypoints providing the WL configuration API endpoint. The declarations
44
+ come from `@owlmeans/wled`; this package supplies their server-side bindings.
44
45
 
45
46
  ### `WlConfig` / `WlRecord` (types)
46
47
 
@@ -59,7 +60,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
59
60
  your project's skill store (`.agents/skills/`):
60
61
 
61
62
  ```sh
62
- npx @owlmeans/agent-skills@^0.1.18-rc.14
63
+ npx @owlmeans/agent-skills@^0.1.18-rc.15
63
64
  ```
64
65
 
65
66
  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/server-wl",
4
- "version": "0.1.18-rc.19",
5
- "generatedAt": "2026-09-10T23:12:07.515Z",
4
+ "version": "0.1.18-rc.20",
5
+ "generatedAt": "2026-09-12T08:39:52.733Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: server-wl
3
- description: How to use @owlmeans/server-wl — the server half of the white-label contract — the elevated WL_PROVIDE entrypoint, the WlProvider and WlEntityIdentifier service seams, and the cfg.wlProviders wiring that decides what a provide call returns. Auto-invoked when serving white-label data or writing a white-label provider service.
3
+ description: How to use @owlmeans/server-wl — the server half of the white-label contract — the bound WL_PROVIDE entrypoint, the WlProvider and WlEntityIdentifier service seams, and the cfg.wlProviders wiring that decides what a provide call returns. Auto-invoked when serving white-label data or writing a white-label provider service.
4
4
  user-invocable: false
5
5
  ---
6
6
  <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/server-wl
9
9
 
10
10
  **Layer:** Server
11
- **Install:** `"@owlmeans/server-wl": "^0.1.18-rc.19"` in `dependencies`
11
+ **Install:** `"@owlmeans/server-wl": "^0.1.18-rc.20"` in `dependencies`
12
12
 
13
13
  Answers the one `WL_PROVIDE` entrypoint `@owlmeans/wled` declares. It stores nothing itself: it fans
14
14
  the request out to the provider services the configuration names and returns their answers in one
@@ -18,7 +18,7 @@ object.
18
18
 
19
19
  | Export | Description |
20
20
  |--------|-------------|
21
- | `entrypoints` | The `WL_PROVIDE` declaration, already elevated with the provide handler. Spread it into the app's entrypoint list |
21
+ | `entrypoints` | The `WL_PROVIDE` protocol already bound to the provide handler. Spread it into the app's entrypoint list |
22
22
  | `WlProvider` | Service seam a white-label section implements: `provide(entityId) => Promise<ProvidedWL>` |
23
23
  | `WlEntityIdentifier` | Optional seam that maps a public identifier (a custom domain, say) to an entity id: `identifyEntity(identifier) => Promise<string \| null>` |
24
24
  | `WlProviderAppend` | The config this package reads: `{ wlProviders: string[], wlIdentifierService?: string }` |
@@ -42,10 +42,10 @@ cfg.wlIdentifierService = 'wl-dns'
42
42
  `wlProviders` is required, not optional: the handler maps over it unconditionally, so a context that
43
43
  serves this entrypoint with the key unset fails the request rather than returning an empty set.
44
44
 
45
- The declaration `@owlmeans/wled` ships carries **no guard**, and this package elevates it with a
45
+ The declaration `@owlmeans/wled` ships carries **no guard**, and this package binds it with a
46
46
  handler only — so the endpoint answers anonymously and any caller who can name an organization reads
47
- every section the deployment registered. Keep white-label records public by design, or elevate the
48
- alias with a guard of your own in the application's entrypoint list.
47
+ every section the deployment registered. Keep white-label records public by design, or bind the
48
+ alias with a guard of your own in the application's entrypoint bindings.
49
49
 
50
50
  ## The response is keyed by service alias
51
51
 
@@ -1,3 +1,5 @@
1
- import type { RefedEntrypointHandler } from '@owlmeans/server-entrypoint';
2
- export declare const provide: RefedEntrypointHandler;
1
+ import type { ProvideParams } from '@owlmeans/wled';
2
+ export declare const provide: import("@owlmeans/server-entrypoint").BoundEntrypointHandler<import("@owlmeans/entrypoint").EntrypointProtocol<{
3
+ params: ProvideParams;
4
+ }, undefined>>;
3
5
  //# sourceMappingURL=provide.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"provide.d.ts","sourceRoot":"","sources":["../../src/actions/provide.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAMzE,eAAO,MAAM,OAAO,EAAE,sBAqBrB,CAAA"}
1
+ {"version":3,"file":"provide.d.ts","sourceRoot":"","sources":["../../src/actions/provide.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAGnD,eAAO,MAAM,OAAO;;cAqBnB,CAAA"}
@@ -1,7 +1,6 @@
1
- import { handleParams } from '@owlmeans/server-api';
2
- import { assertContext } from '@owlmeans/context';
3
- export const provide = handleParams(async (params, ctx) => {
4
- const context = assertContext(ctx, 'provide');
1
+ import { handlers } from '@owlmeans/server-api';
2
+ import { wledEntrypoints } from '@owlmeans/wled';
3
+ export const provide = handlers().params(wledEntrypoints.provide, async (params, context) => {
5
4
  const dns = context.cfg.wlIdentifierService == null ? undefined
6
5
  : context.service(context.cfg.wlIdentifierService);
7
6
  const entityId = dns != null
@@ -1 +1 @@
1
- {"version":3,"file":"provide.js","sourceRoot":"","sources":["../../src/actions/provide.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGjD,MAAM,CAAC,MAAM,OAAO,GAA2B,YAAY,CACzD,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;IACpB,MAAM,OAAO,GAAG,aAAa,CAAC,GAAG,EAAE,SAAS,C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AC,GAAG,CAAC,mBAAmB,CAAC,CAAA;IAExE,MAAM,QAAQ,GAAG,GAAG,IAAI,IAAI;QAC1B,CAAC,CAAC,MAAM,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM;QAC1D,CAAC,CAAC,MAAM,CAAC,MAAM,CAAA;IAEjB,MAAM,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,OAAO,CAAC,GAAG,CAC7C,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,EAAC,QAAQ,EAAC,EAAE;QAC3C,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAa,QAAQ,CAAC,CAAA;QAEjD,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAA;IAChD,CAAC,CAAC,CACH,CAAC,CAAA;IAEF,OAAO,EAAE,CAAA;AACX,CAAC,CACF,CAAA"}
@@ -1,3 +1,4 @@
1
- import type { ServerEntrypoint } from '@owlmeans/server-entrypoint';
2
- export declare const entrypoints: ServerEntrypoint<unknown>[];
1
+ export declare const entrypoints: import("@owlmeans/server-entrypoint").ServerProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
2
+ params: import("@owlmeans/wled").ProvideParams;
3
+ }, undefined>>[];
3
4
  //# sourceMappingURL=entrypoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAMnE,eAAO,MAAM,WAAW,EAAoB,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAA"}
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;;gBAAmD,CAAA"}
@@ -1,6 +1,5 @@
1
- import { elevate } from '@owlmeans/server-entrypoint';
2
- import { WL_PROVIDE, entrypoints as wlEntrypoints } from '@owlmeans/wled';
1
+ import { bind } from '@owlmeans/server-entrypoint';
2
+ import { wledEntrypoints } from '@owlmeans/wled';
3
3
  import * as actions from './actions/index.js';
4
- elevate(wlEntrypoints, WL_PROVIDE, actions.provide);
5
- export const entrypoints = wlEntrypoints;
4
+ export const entrypoints = [bind(wledEntrypoints.provide, actions.provide)];
6
5
  //# sourceMappingURL=entrypoints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACzE,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAE7C,OAAO,CAAC,aAAa,EAAE,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,aAA4C,CAAA"}
1
+ {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAE7C,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@owlmeans/server-wl",
3
3
  "type": "module",
4
- "version": "0.1.18-rc.19",
4
+ "version": "0.1.18-rc.20",
5
5
  "license": "MIT",
6
6
  "scripts": {
7
7
  "build": "tsc -b",
@@ -21,11 +21,11 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/context": "^0.1.18-rc.10",
25
- "@owlmeans/server-api": "^0.1.18-rc.19",
26
- "@owlmeans/server-context": "^0.1.18-rc.14",
27
- "@owlmeans/server-entrypoint": "^0.1.18-rc.13",
28
- "@owlmeans/wled": "^0.1.18-rc.13"
24
+ "@owlmeans/context": "^0.1.18-rc.11",
25
+ "@owlmeans/server-api": "^0.1.18-rc.20",
26
+ "@owlmeans/server-context": "^0.1.18-rc.15",
27
+ "@owlmeans/server-entrypoint": "^0.1.18-rc.14",
28
+ "@owlmeans/wled": "^0.1.18-rc.14"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@owlmeans/dep-config": "workspace:*",
@@ -1,12 +1,11 @@
1
- import type { RefedEntrypointHandler } from '@owlmeans/server-entrypoint'
2
- import { handleParams } from '@owlmeans/server-api'
1
+ import { handlers } from '@owlmeans/server-api'
3
2
  import type { Context, WlEntityIdentifier, WlProvider } from '../types.js'
4
- import { assertContext } from '@owlmeans/context'
5
3
  import type { ProvideParams } from '@owlmeans/wled'
4
+ import { wledEntrypoints } from '@owlmeans/wled'
6
5
 
7
- export const provide: RefedEntrypointHandler = handleParams<ProvideParams>(
8
- async (params, ctx) => {
9
- const context = assertContext(ctx, 'provide') as Context
6
+ export const provide = handlers<Context>().params(
7
+ wledEntrypoints.provide,
8
+ async (params: ProvideParams, context) => {
10
9
 
11
10
  const dns = context.cfg.wlIdentifierService == null ? undefined
12
11
  : context.service<WlEntityIdentifier>(context.cfg.wlIdentifierService)
@@ -1,9 +1,6 @@
1
1
 
2
- import { elevate } from '@owlmeans/server-entrypoint'
3
- import type { ServerEntrypoint } from '@owlmeans/server-entrypoint'
4
- import { WL_PROVIDE, entrypoints as wlEntrypoints } from '@owlmeans/wled'
2
+ import { bind } from '@owlmeans/server-entrypoint'
3
+ import { wledEntrypoints } from '@owlmeans/wled'
5
4
  import * as actions from './actions/index.js'
6
5
 
7
- elevate(wlEntrypoints, WL_PROVIDE, actions.provide)
8
-
9
- export const entrypoints = wlEntrypoints as ServerEntrypoint<unknown>[]
6
+ export const entrypoints = [bind(wledEntrypoints.provide, actions.provide)]