@owlmeans/wled 0.1.18-rc.13 → 0.1.18-rc.14

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
@@ -21,7 +21,7 @@ bun add @owlmeans/wled@^0.1.18-rc.10
21
21
  Use the shared entrypoint declarations and types when wiring server- and web-side whitelabel features:
22
22
 
23
23
  ```typescript
24
- import { entrypoints as wlEntrypoints } from '@owlmeans/wled'
24
+ import { wledEntrypoints } from '@owlmeans/wled'
25
25
  import type { ProvidedWL, CompanyInfo, CustomStyles } from '@owlmeans/wled'
26
26
  ```
27
27
 
@@ -72,7 +72,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
72
72
  your project's skill store (`.agents/skills/`):
73
73
 
74
74
  ```sh
75
- npx @owlmeans/agent-skills@^0.1.18-rc.14
75
+ npx @owlmeans/agent-skills@^0.1.18-rc.15
76
76
  ```
77
77
 
78
78
  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/wled",
4
- "version": "0.1.18-rc.13",
5
- "generatedAt": "2026-09-10T23:12:07.513Z",
4
+ "version": "0.1.18-rc.14",
5
+ "generatedAt": "2026-09-12T08:39:52.729Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: wled
3
- description: How to use @owlmeans/wled — the shared white-label contract — company info, custom styles, brand media and DNS shapes, their AJV schemas, the wl type constants and the single WL_PROVIDE entrypoint both sides elevate. Auto-invoked when importing white-label types or schemas, or when adding a white-label provider.
3
+ description: How to use @owlmeans/wled — the shared white-label contract — company info, custom styles, brand media and DNS shapes, their AJV schemas, the WL type constants and the single WL_PROVIDE protocol both sides bind. Auto-invoked when importing white-label types or schemas, or when adding a white-label provider.
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/wled
9
9
 
10
10
  **Layer:** Core
11
- **Install:** `"@owlmeans/wled": "^0.1.18-rc.13"` in `dependencies`
11
+ **Install:** `"@owlmeans/wled": "^0.1.18-rc.14"` in `dependencies`
12
12
 
13
13
  The contract only. It owns no service and reaches no store: it declares the white-label record
14
14
  shapes, their schemas, and one entrypoint that the server side answers and the browser side calls.
@@ -18,8 +18,8 @@ Everything that produces a white-label record lives downstream.
18
18
 
19
19
  | Export | Description |
20
20
  |--------|-------------|
21
- | `entrypoints` | The single `WL_PROVIDE` declaration — a backend `GET /wl/provide/:entity`, filtered by `params(ProvideParamsSchema)` and guarded by nothing. Elevate it, never redeclare it |
22
- | `WL_PROVIDE` | That entrypoint's alias. Both `@owlmeans/server-wl` and `@owlmeans/web-wl` elevate this exact alias |
21
+ | `wledEntrypoints.provide` | The `WL_PROVIDE` protocol — a backend `GET /wl/provide/:entity`, with typed params and no guard. Bind it; never redeclare it. |
22
+ | `WL_PROVIDE` | The protocol alias. Both `@owlmeans/server-wl` and `@owlmeans/web-wl` bind this exact declaration. |
23
23
  | `WL_PROVIDE_PATH` | `'/wl/provide/:entity'` |
24
24
  | `WL_TYPE_COMPANY_INFO`, `WL_TYPE_STYLES`, `WL_TYPE_MEDIA`, `WL_TYPE_DNS` | The `type` a provider stamps on the record it returns — `'company-info'`, `'styles'`, `'media'`, `'dns'` |
25
25
  | `ProvidedWL<T>` | What one provider answers: `T & { type: string; exists: boolean \| null }` |
@@ -55,10 +55,10 @@ default, `null` unknown.
55
55
 
56
56
  ## Rules
57
57
 
58
- - **The declaration carries no guard.** Whatever elevates `WL_PROVIDE` serves it anonymously unless
58
+ - **The declaration carries no guard.** Whatever binds `WL_PROVIDE` serves it anonymously unless
59
59
  it adds one, so every section a deployment registers is readable by anyone who can name an
60
60
  organization. Put nothing in a white-label record that is not meant to be public, or add a guard
61
- where the entrypoint is elevated.
61
+ where the entrypoint is bound.
62
62
  - `entityId`, `slug` and the `entity` param are declared with `EntityValueSchema` from
63
63
  `@owlmeans/auth`, a plain `{ type: 'string', minLength: 3, maxLength: 256 }` — it bounds length and
64
64
  nothing else, so a record id and a slug both pass (`CompanyInfo.slug` relaxes `minLength` to 0 on
@@ -80,5 +80,5 @@ default, `null` unknown.
80
80
  - `@owlmeans/entrypoint`, `@owlmeans/route`, `@owlmeans/auth`
81
81
  - `ajv` (peer)
82
82
 
83
- Server side elevates the declaration through `@owlmeans/server-wl`; browser side through
83
+ Server side binds the declaration through `@owlmeans/server-wl`; browser side through
84
84
  `@owlmeans/web-wl`.
@@ -1,2 +1,7 @@
1
- export declare const entrypoints: import("@owlmeans/entrypoint").CommonEntrypoint[];
1
+ import type { ProvideParams } from './types.js';
2
+ export declare const wledEntrypoints: {
3
+ provide: import("@owlmeans/entrypoint").EntrypointProtocol<{
4
+ params: ProvideParams;
5
+ }, undefined>;
6
+ };
2
7
  //# sourceMappingURL=entrypoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,mDAKvB,CAAA"}
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAK/C,eAAO,MAAM,eAAe;IAC1B,OAAO;;;CAIR,CAAA"}
@@ -1,8 +1,8 @@
1
- import { filter, entrypoint, params } from '@owlmeans/entrypoint';
1
+ import { contract, protocol, typed } from '@owlmeans/entrypoint';
2
2
  import { route, backend } from '@owlmeans/route';
3
3
  import { WL_PROVIDE, WL_PROVIDE_PATH } from './consts.js';
4
4
  import { ProvideParamsSchema } from './model/provider.js';
5
- export const entrypoints = [
6
- entrypoint(route(WL_PROVIDE, WL_PROVIDE_PATH, backend()), filter(params(ProvideParamsSchema)))
7
- ];
5
+ export const wledEntrypoints = {
6
+ provide: protocol(route(WL_PROVIDE, WL_PROVIDE_PATH, backend()), contract.request({ params: typed(ProvideParamsSchema) }, typed()))
7
+ };
8
8
  //# sourceMappingURL=entrypoints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,UAAU,CACR,KAAK,CAAC,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,EAC7C,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CACpC;CACF,CAAA"}
1
+ {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEhE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,QAAQ,CACf,KAAK,CAAC,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,EAC7C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,CAAgB,mBAAmB,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CACjF;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/wled",
3
- "version": "0.1.18-rc.13",
3
+ "version": "0.1.18-rc.14",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -24,9 +24,9 @@
24
24
  "ajv": "*"
25
25
  },
26
26
  "dependencies": {
27
- "@owlmeans/auth": "^0.1.18-rc.11",
28
- "@owlmeans/entrypoint": "^0.1.18-rc.13",
29
- "@owlmeans/route": "^0.1.18-rc.11"
27
+ "@owlmeans/auth": "^0.1.18-rc.12",
28
+ "@owlmeans/entrypoint": "^0.1.18-rc.14",
29
+ "@owlmeans/route": "^0.1.18-rc.12"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@owlmeans/dep-config": "workspace:*",
@@ -1,11 +1,12 @@
1
- import { filter, entrypoint, params } from '@owlmeans/entrypoint'
1
+ import { contract, protocol, typed } from '@owlmeans/entrypoint'
2
+ import type { ProvideParams } from './types.js'
2
3
  import { route, backend } from '@owlmeans/route'
3
4
  import { WL_PROVIDE, WL_PROVIDE_PATH } from './consts.js'
4
5
  import { ProvideParamsSchema } from './model/provider.js'
5
6
 
6
- export const entrypoints = [
7
- entrypoint(
7
+ export const wledEntrypoints = {
8
+ provide: protocol(
8
9
  route(WL_PROVIDE, WL_PROVIDE_PATH, backend()),
9
- filter(params(ProvideParamsSchema))
10
+ contract.request({ params: typed<ProvideParams>(ProvideParamsSchema) }, typed())
10
11
  )
11
- ]
12
+ }