@owlmeans/server-entrypoint 0.1.7 → 0.1.9

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
@@ -66,3 +66,20 @@ A handler factory: `(ref: { ref?: { ctx?: Context } }) => EntrypointHandler`.
66
66
  - [`@owlmeans/entrypoint`](../entrypoint) — `CommonEntrypoint` base that gets elevated
67
67
  - [`@owlmeans/server-api`](../server-api) — handler wrappers (`handleBody`, etc.) used with `elevate`
68
68
  - [`@owlmeans/server-app`](../server-app) — re-exports `elevate`, `entrypoint`, `guard`
69
+
70
+ <!-- owlmeans:agent-guidance:start -->
71
+ ## Agent guidance
72
+
73
+ This package ships embedded Claude Code skills and GitHub Copilot instructions under
74
+ `agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
75
+ agent-skills installer to place them into your project's native locations
76
+ (`.claude/skills/` and `.github/instructions/`):
77
+
78
+ ```sh
79
+ npx @owlmeans/agent-skills
80
+ ```
81
+
82
+ The embedded files are version-matched to this package release. Do not edit them
83
+ directly — they are regenerated on each publish. To contribute guidance edits,
84
+ open a PR against the source monorepo.
85
+ <!-- owlmeans:agent-guidance:end -->
@@ -0,0 +1,39 @@
1
+ ---
2
+ description: "How to use @owlmeans/server-entrypoint — server-side entrypoint helpers extending @owlmeans/entrypoint with handler attachment and request lifecycle hooks. Also covers the deprecated @owlmeans/server-module reexport shim."
3
+ applyTo: "**/*.ts, **/*.tsx"
4
+ ---
5
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
6
+
7
+ # @owlmeans/server-entrypoint
8
+
9
+ **Layer:** Server
10
+ **Install:** `"@owlmeans/server-entrypoint": "^0.1.9"` in `dependencies`
11
+
12
+ ## Key Exports
13
+
14
+ | Export | Description |
15
+ |--------|-------------|
16
+ | `ServerEntrypoint` types | Server entrypoint interface |
17
+ | `EntrypointOptions` | Elevation options (handler, fixer, intermediate) |
18
+ | Helpers | Attach handlers, hook lifecycle |
19
+
20
+ ## Usage
21
+
22
+ ```typescript
23
+ import type { ServerEntrypoint } from '@owlmeans/server-entrypoint'
24
+ // Most code uses elevate() from @owlmeans/server-app instead
25
+ ```
26
+
27
+ ## Cross-Service URL Generation
28
+
29
+ Server entrypoints that need to produce URLs for other services (e.g., OAuth redirect URIs, callback URLs) should use `makeSecurityHelper` from `@owlmeans/config`:
30
+
31
+ ```typescript
32
+ import { makeSecurityHelper } from '@owlmeans/config'
33
+ const helper = makeSecurityHelper<Config, Context>(ctx)
34
+ const callbackUrl = helper.makeUrl(route, '/callback')
35
+ ```
36
+
37
+ ## Depends On
38
+
39
+ - `@owlmeans/entrypoint`, `@owlmeans/server-route`, `@owlmeans/server-context`
@@ -0,0 +1,23 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "package": "@owlmeans/server-entrypoint",
4
+ "version": "0.1.9",
5
+ "generatedAt": "2026-06-14T13:34:06.133Z",
6
+ "canonicalRepo": "https://github.com/owlmeans/common",
7
+ "entries": [
8
+ {
9
+ "kind": "skill",
10
+ "name": "server-entrypoint",
11
+ "category": "package-specific",
12
+ "file": "skills/server-entrypoint/SKILL.md",
13
+ "canonicalPath": ".claude/skills/server-entrypoint/SKILL.md"
14
+ },
15
+ {
16
+ "kind": "instruction",
17
+ "name": "server-entrypoint",
18
+ "category": "package-specific",
19
+ "file": "instructions/server-entrypoint.instructions.md",
20
+ "canonicalPath": ".github/instructions/server-entrypoint.instructions.md"
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: server-entrypoint
3
+ description: How to use @owlmeans/server-entrypoint — server-side entrypoint helpers extending @owlmeans/entrypoint with handler attachment, request lifecycle hooks. Auto-invoked when importing server-entrypoint types. Also covers the deprecated @owlmeans/server-module reexport shim.
4
+ user-invocable: false
5
+ ---
6
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
7
+
8
+ # @owlmeans/server-entrypoint
9
+
10
+ **Layer:** Server
11
+ **Install:** `"@owlmeans/server-entrypoint": "^0.1.9"` in `dependencies`
12
+
13
+ ## Key Exports
14
+
15
+ | Export | Description |
16
+ |--------|-------------|
17
+ | `ServerEntrypoint` types | Server entrypoint interface (handler + lifecycle) |
18
+ | `EntrypointOptions` | Options for elevating with handler, fixer, intermediate |
19
+ | `EntrypointRef` / `RefedEntrypointHandler` | Handler reference pattern |
20
+ | Helpers | Attach handlers, hook into request lifecycle |
21
+
22
+ ## Usage
23
+
24
+ Most app code uses `elevate()` from `@owlmeans/server-app` (which builds on this package). Import directly only when implementing custom entrypoint helpers.
25
+
26
+ ```typescript
27
+ import type { ServerEntrypoint } from '@owlmeans/server-entrypoint'
28
+ ```
29
+
30
+ ## Cross-Service URL Generation
31
+
32
+ Use `makeSecurityHelper` from `@owlmeans/config` to build URLs pointing at other services (OAuth redirect URIs, webhook callbacks, etc.):
33
+
34
+ ```typescript
35
+ import { makeSecurityHelper } from '@owlmeans/config'
36
+ const helper = makeSecurityHelper<Config, Context>(ctx)
37
+ const url = helper.makeUrl(route, '/callback')
38
+ ```
39
+
40
+ ## Depends On
41
+
42
+ - `@owlmeans/entrypoint`, `@owlmeans/server-route`, `@owlmeans/server-context`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/server-entrypoint",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
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.7",
25
- "@owlmeans/entrypoint": "^0.1.7",
26
- "@owlmeans/route": "^0.1.7",
27
- "@owlmeans/server-route": "^0.1.7"
24
+ "@owlmeans/context": "^0.1.9",
25
+ "@owlmeans/entrypoint": "^0.1.9",
26
+ "@owlmeans/route": "^0.1.9",
27
+ "@owlmeans/server-route": "^0.1.9"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@owlmeans/dep-config": "workspace:*",