@owlmeans/server-entrypoint 0.1.18-rc.32 → 0.1.18-rc.33

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
@@ -10,7 +10,7 @@ and a browser app binds the same protocols with `@owlmeans/client-entrypoint` in
10
10
  ## Installation
11
11
 
12
12
  ```bash
13
- bun add @owlmeans/server-entrypoint@^0.1.18-rc.32
13
+ bun add @owlmeans/server-entrypoint@^0.1.18-rc.33
14
14
  ```
15
15
 
16
16
  ## Concepts
@@ -154,7 +154,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
154
154
  your project's skill store (`.agents/skills/`):
155
155
 
156
156
  ```sh
157
- npx @owlmeans/agent-skills@^0.1.18-rc.34
157
+ npx @owlmeans/agent-skills@^0.1.18-rc.35
158
158
  ```
159
159
 
160
160
  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-entrypoint",
4
- "version": "0.1.18-rc.32",
5
- "generatedAt": "2026-09-22T20:45:24.054Z",
4
+ "version": "0.1.18-rc.33",
5
+ "generatedAt": "2026-09-22T21:57:18.822Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -7,7 +7,7 @@ user-invocable: false
7
7
 
8
8
  # @owlmeans/server-entrypoint
9
9
 
10
- **Install:** `bun add @owlmeans/server-entrypoint@^0.1.18-rc.32`
10
+ **Install:** `bun add @owlmeans/server-entrypoint@^0.1.18-rc.33`
11
11
 
12
12
  Bind the imported protocol object to the implementation that serves it:
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/server-entrypoint",
3
- "version": "0.1.18-rc.32",
3
+ "version": "0.1.18-rc.33",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/context": "^0.1.18-rc.30",
25
- "@owlmeans/entrypoint": "^0.1.18-rc.33",
26
- "@owlmeans/route": "^0.1.18-rc.31",
27
- "@owlmeans/server-route": "^0.1.18-rc.30"
24
+ "@owlmeans/context": "^0.1.18-rc.31",
25
+ "@owlmeans/entrypoint": "^0.1.18-rc.34",
26
+ "@owlmeans/route": "^0.1.18-rc.32",
27
+ "@owlmeans/server-route": "^0.1.18-rc.31"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@owlmeans/dep-config": "workspace:*",
@@ -1,6 +0,0 @@
1
- import type { ServerRouteModel } from '@owlmeans/server-route';
2
- import type { ServerEntrypoint, EntrypointOptions, RefedEntrypointHandler } from './types.js';
3
- import type { CommonEntrypoint } from '@owlmeans/entrypoint';
4
- import type { RouteModel } from '@owlmeans/route';
5
- export declare const entrypoint: <R>(arg: CommonEntrypoint | ServerRouteModel<R> | RouteModel, handler?: RefedEntrypointHandler<R>, opts?: EntrypointOptions<R>) => ServerEntrypoint<R>;
6
- //# sourceMappingURL=entrypoint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../src/entrypoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAiB,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAG5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,eAAO,MAAM,UAAU,GAAI,CAAC,OACrB,gBAAgB,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,UAAU,YAAY,sBAAsB,CAAC,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,CAAC,KACzH,gBAAgB,CAAC,CAAC,CAmCpB,CAAA"}
@@ -1,36 +0,0 @@
1
- import { isEntrypoint, makeCommonEntrypoint } from './utils/entrypoint.js';
2
- import { isServerRouteModel, route } from '@owlmeans/server-route';
3
- export const entrypoint = (arg, handler, opts) => {
4
- const entrypointHandle = { ref: undefined };
5
- let _entrypoint;
6
- if (isEntrypoint(arg)) {
7
- // Binding the same alias again is legal, so an intermediate route stays intermediate unless
8
- // this call says otherwise.
9
- const intermediate = opts?.intermediate
10
- ?? (isServerRouteModel(arg.route) ? arg.route.isIntermediate() : false);
11
- const routeModel = route(arg.route, intermediate, opts?.routeOptions);
12
- _entrypoint = arg;
13
- _entrypoint.route = routeModel;
14
- _entrypoint.filter = opts?.filter ?? arg.filter;
15
- // Binding adds guards, it never swaps them: what the declaration carries still applies.
16
- _entrypoint.guards = [...new Set([...(arg.guards ?? []), ...(opts?.guards ?? [])])];
17
- _entrypoint.gate = opts?.gate ?? arg.gate;
18
- _entrypoint.gateParams = opts?.gateParams ?? arg.gateParams;
19
- }
20
- else if (isServerRouteModel(arg)) {
21
- _entrypoint = makeCommonEntrypoint(arg, { ...opts });
22
- _entrypoint.route = arg;
23
- }
24
- else {
25
- const _route = route(arg, opts?.intermediate ?? false, opts?.routeOptions);
26
- _entrypoint = makeCommonEntrypoint(_route, { ...opts });
27
- _entrypoint.route = _route;
28
- }
29
- _entrypoint.fixer = opts?.fixer ?? _entrypoint.fixer;
30
- if (handler != null) {
31
- _entrypoint.handle = handler(entrypointHandle);
32
- }
33
- entrypointHandle.ref = _entrypoint;
34
- return _entrypoint;
35
- };
36
- //# sourceMappingURL=entrypoint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entrypoint.js","sourceRoot":"","sources":["../src/entrypoint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAIlE,MAAM,CAAC,MAAM,UAAU,GA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AM,CAAC;QACN,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,YAAY,IAAI,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,CAAA;QAC1E,WAAW,GAAG,oBAAoB,CAAC,MAAM,EAAE,EAAE,GAAG,IAAI,EAAE,CAAwB,CAAA;QAC9E,WAAW,CAAC,KAAK,GAAG,MAAM,CAAA;IAC5B,CAAC;IAED,WAAW,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,IAAI,WAAW,CAAC,KAAK,CAAA;IACpD,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACpB,WAAW,CAAC,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAChD,CAAC;IAED,gBAAgB,CAAC,GAAG,GAAG,WAAW,CAAA;IAElC,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA"}
package/build/helper.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import type { ServerEntrypoint, EntrypointOptions, RefedEntrypointHandler } from './types.js';
2
- import type { CommonEntrypoint } from '@owlmeans/entrypoint';
3
- /**
4
- * Replace the entrypoint declared under `alias` with its materialized counterpart. Replacement is
5
- * idempotent — calling it again simply replaces the element once more, and the guards it brings
6
- * are added to the ones already declared.
7
- *
8
- * @throws {SyntaxError} when no entrypoint carries the alias
9
- */
10
- export declare function replaceEntrypoint<R>(entrypoints: (CommonEntrypoint | ServerEntrypoint<R>)[], alias: string, handler?: RefedEntrypointHandler<R> | boolean | EntrypointOptions<R>, opts?: boolean | EntrypointOptions<R>): ServerEntrypoint<R>[];
11
- export declare const guard: <R>(guard: string, opts?: EntrypointOptions<R>) => EntrypointOptions<R>;
12
- //# sourceMappingURL=helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAAE,iBAAiB,EAAE,sBAAsB,EAC5D,MAAM,YAAY,CAAA;AAGnB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAE5D;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,WAAW,EAAE,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,EACvD,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,iBAAiB,CAAC,CAAC,CAAC,EACpE,IAAI,CAAC,EAAE,OAAO,GAAG,iBAAiB,CAAC,CAAC,CAAC,GACpC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAA;AA6BxB,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,MAAM,SAAS,iBAAiB,CAAC,CAAC,CAAC,KAAG,iBAAiB,CAAC,CAAC,CACjD,CAAA"}
package/build/helper.js DELETED
@@ -1,21 +0,0 @@
1
- import { entrypoint } from './entrypoint.js';
2
- import { createBasicGuard } from './utils/helper.js';
3
- export function replaceEntrypoint(entrypoints, target, handler, opts) {
4
- const idx = entrypoints.findIndex(candidate => candidate.route.route.alias === target);
5
- if (idx === -1) {
6
- throw new SyntaxError(`Entrypoint with alias ${target} not present`);
7
- }
8
- if (typeof handler === 'boolean') {
9
- opts = handler;
10
- handler = undefined;
11
- }
12
- if (typeof handler === 'object' && typeof handler !== 'function') {
13
- opts = handler;
14
- handler = undefined;
15
- }
16
- const declaration = entrypoints[idx];
17
- entrypoints[idx] = entrypoint(declaration, handler, typeof opts === 'boolean' ? { intermediate: opts } : opts);
18
- return entrypoints;
19
- }
20
- export const guard = (guard, opts) => ({ ...createBasicGuard(guard, opts) });
21
- //# sourceMappingURL=helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAgBpD,MAAM,UAAU,iBAAiB,CAC/B,WAA4D,EAC5D,MAAc,EACd,OAAsE,EACtE,IAA0C;IAG1C,MAAM,GAAG,GAAG,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,KAAK,MAAM,CAAC,CAAA;IACtF,IAAI,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC;QACf,MAAM,IAAI,WAAW,CAAC,yBAAyB,MAAM,cAAc,CAAC,CAAA;IACtE,CAAC;IACD,IAAI,OAAO,OAAO,KAAK,SAAS,EAAE,CAAC;QACjC,IAAI,GAAG,OAAO,CAAA;QACd,OAAO,GAAG,SAAS,CAAA;IACrB,CAAC;IACD,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE,CAAC;QACjE,IAAI,GAAG,OAAO,CAAA;QACd,OAAO,GAAG,SAAS,CAAA;IACrB,CAAC;IAED,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAA;IACpC,WAAW,CAAC,GAAG,CAAC,GAAG,UAAU,CAC3B,WAAW,EAAE,OAAO,EAAE,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAChF,CAAA;IAED,OAAO,WAAyC,CAAA;AAClD,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,CAAI,KAAa,EAAE,IAA2B,EAAwB,EAAE,CAC3F,CAAC,EAAE,GAAG,gBAAgB,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- export { entrypoint as makeCommonEntrypoint } from '@owlmeans/entrypoint';
2
- export { isEntrypoint } from '@owlmeans/entrypoint/utils';
3
- //# sourceMappingURL=entrypoint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../src/utils/entrypoint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA"}
@@ -1,3 +0,0 @@
1
- export { entrypoint as makeCommonEntrypoint } from '@owlmeans/entrypoint';
2
- export { isEntrypoint } from '@owlmeans/entrypoint/utils';
3
- //# sourceMappingURL=entrypoint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entrypoint.js","sourceRoot":"","sources":["../../src/utils/entrypoint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA"}
@@ -1,2 +0,0 @@
1
- export { guard as createBasicGuard } from '@owlmeans/entrypoint';
2
- //# sourceMappingURL=helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/utils/helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1,2 +0,0 @@
1
- export { guard as createBasicGuard } from '@owlmeans/entrypoint';
2
- //# sourceMappingURL=helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../src/utils/helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA"}