@owlmeans/server-wl 0.1.18-rc.13 → 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 +11 -11
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/server-wl/SKILL.md +1 -1
- package/build/entrypoints.d.ts +3 -0
- package/build/entrypoints.d.ts.map +1 -0
- package/build/entrypoints.js +6 -0
- package/build/entrypoints.js.map +1 -0
- package/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/package.json +6 -6
- package/src/entrypoints.ts +9 -0
- package/src/index.ts +1 -1
- package/build/modules.d.ts +0 -3
- package/build/modules.d.ts.map +0 -1
- package/build/modules.js +0 -6
- package/build/modules.js.map +0 -1
- package/src/modules.ts +0 -9
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @owlmeans/server-wl
|
|
2
2
|
|
|
3
|
-
Server-side whitelabeling — provides entity-specific branding and configuration via backend
|
|
3
|
+
Server-side whitelabeling — provides entity-specific branding and configuration via backend entrypoints.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
- Exports `
|
|
7
|
+
- Exports `entrypoints` array: pre-built server entrypoints that serve WL (whitelabel) configuration to clients
|
|
8
8
|
- Provides `provide` action — the handler for the WL configuration endpoint
|
|
9
9
|
- Integrates with `@owlmeans/wled` for whitelabel data definitions
|
|
10
10
|
- Apps add WL DNS service from `@owlmeans/server-wl-dns` for domain-based entity resolution
|
|
@@ -17,30 +17,30 @@ bun add @owlmeans/server-wl
|
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
|
-
Register WL
|
|
20
|
+
Register WL entrypoints in a backend service:
|
|
21
21
|
|
|
22
22
|
```typescript
|
|
23
|
-
import {
|
|
24
|
-
import { main,
|
|
23
|
+
import { entrypoints as wlEntrypoints } from '@owlmeans/server-wl'
|
|
24
|
+
import { main, entrypoints } from '@owlmeans/server-app'
|
|
25
25
|
|
|
26
|
-
await main(context, [...
|
|
26
|
+
await main(context, [...entrypoints, ...wlEntrypoints, ...appEntrypoints])
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
With DNS-based entity resolution (from viable):
|
|
30
30
|
|
|
31
31
|
```typescript
|
|
32
32
|
import { appendWlDnsService } from '@owlmeans/server-wl-dns'
|
|
33
|
-
import {
|
|
33
|
+
import { wlDnsEntrypoints } from '@owlmeans/server-wl-dns'
|
|
34
34
|
|
|
35
35
|
appendWlDnsService(context)
|
|
36
|
-
await main(context, [...
|
|
36
|
+
await main(context, [...entrypoints, ...wlDnsEntrypoints, ...appEntrypoints])
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## API
|
|
40
40
|
|
|
41
|
-
### `
|
|
41
|
+
### `entrypoints`
|
|
42
42
|
|
|
43
|
-
Array of `
|
|
43
|
+
Array of `ServerEntrypoint` instances providing the WL configuration API endpoint.
|
|
44
44
|
|
|
45
45
|
### `WlConfig` / `WlRecord` (types)
|
|
46
46
|
|
|
@@ -49,7 +49,7 @@ Whitelabel configuration types defining branding, theme, and entity-specific set
|
|
|
49
49
|
## Related Packages
|
|
50
50
|
|
|
51
51
|
- [`@owlmeans/client-wl`](../client-wl) — client-side WL service that fetches from this server
|
|
52
|
-
- [`@owlmeans/server-app`](../server-app) — server bootstrap that includes these
|
|
52
|
+
- [`@owlmeans/server-app`](../server-app) — server bootstrap that includes these entrypoints
|
|
53
53
|
|
|
54
54
|
<!-- owlmeans:agent-guidance:start -->
|
|
55
55
|
## Agent guidance
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/server-wl",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-
|
|
4
|
+
"version": "0.1.18-rc.15",
|
|
5
|
+
"generatedAt": "2026-09-01T16:28:56.994Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { elevate } from '@owlmeans/server-entrypoint';
|
|
2
|
+
import { WL_PROVIDE, entrypoints as wlEntrypoints } from '@owlmeans/wled';
|
|
3
|
+
import * as actions from './actions/index.js';
|
|
4
|
+
elevate(wlEntrypoints, WL_PROVIDE, actions.provide);
|
|
5
|
+
export const entrypoints = wlEntrypoints;
|
|
6
|
+
//# sourceMappingURL=entrypoints.js.map
|
|
@@ -0,0 +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"}
|
package/build/index.d.ts
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './entrypoints.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,kBAAkB,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.
|
|
4
|
+
"version": "0.1.18-rc.15",
|
|
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.
|
|
25
|
-
"@owlmeans/server-api": "^0.1.18-rc.
|
|
26
|
-
"@owlmeans/server-context": "^0.1.18-rc.
|
|
27
|
-
"@owlmeans/server-entrypoint": "^0.1.18-rc.
|
|
28
|
-
"@owlmeans/wled": "^0.1.18-rc.
|
|
24
|
+
"@owlmeans/context": "^0.1.18-rc.7",
|
|
25
|
+
"@owlmeans/server-api": "^0.1.18-rc.15",
|
|
26
|
+
"@owlmeans/server-context": "^0.1.18-rc.10",
|
|
27
|
+
"@owlmeans/server-entrypoint": "^0.1.18-rc.9",
|
|
28
|
+
"@owlmeans/wled": "^0.1.18-rc.9"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@owlmeans/dep-config": "workspace:*",
|
|
@@ -0,0 +1,9 @@
|
|
|
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'
|
|
5
|
+
import * as actions from './actions/index.js'
|
|
6
|
+
|
|
7
|
+
elevate(wlEntrypoints, WL_PROVIDE, actions.provide)
|
|
8
|
+
|
|
9
|
+
export const entrypoints = wlEntrypoints as ServerEntrypoint<unknown>[]
|
package/src/index.ts
CHANGED
package/build/modules.d.ts
DELETED
package/build/modules.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAMnE,eAAO,MAAM,OAAO,EAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAA"}
|
package/build/modules.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { elevate } from '@owlmeans/server-entrypoint';
|
|
2
|
-
import { WL_PROVIDE, modules as wlModules } from '@owlmeans/wled';
|
|
3
|
-
import * as actions from './actions/index.js';
|
|
4
|
-
elevate(wlModules, WL_PROVIDE, actions.provide);
|
|
5
|
-
export const modules = wlModules;
|
|
6
|
-
//# sourceMappingURL=modules.js.map
|
package/build/modules.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAE7C,OAAO,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;AAE/C,MAAM,CAAC,MAAM,OAAO,GAAG,SAAwC,CAAA"}
|
package/src/modules.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { elevate } from '@owlmeans/server-entrypoint'
|
|
3
|
-
import type { ServerEntrypoint } from '@owlmeans/server-entrypoint'
|
|
4
|
-
import { WL_PROVIDE, modules as wlModules } from '@owlmeans/wled'
|
|
5
|
-
import * as actions from './actions/index.js'
|
|
6
|
-
|
|
7
|
-
elevate(wlModules, WL_PROVIDE, actions.provide)
|
|
8
|
-
|
|
9
|
-
export const modules = wlModules as ServerEntrypoint<unknown>[]
|