@owlmeans/server-app 0.1.16-rc.0 → 0.1.16

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
@@ -86,10 +86,9 @@ await main(context, [...modules, ...myModules])
86
86
  <!-- owlmeans:agent-guidance:start -->
87
87
  ## Agent guidance
88
88
 
89
- This package ships embedded Claude Code skills and GitHub Copilot instructions under
90
- `agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
91
- agent-skills installer to place them into your project's native locations
92
- (`.claude/skills/` and `.github/instructions/`):
89
+ This package ships embedded agent skills under `agent-meta/`. After installing your
90
+ `@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
91
+ your project's skill store (`.agents/skills/`):
93
92
 
94
93
  ```sh
95
94
  npx @owlmeans/agent-skills
@@ -1,8 +1,8 @@
1
1
  {
2
- "schemaVersion": 1,
2
+ "schemaVersion": 2,
3
3
  "package": "@owlmeans/server-app",
4
- "version": "0.1.16-rc.0",
5
- "generatedAt": "2026-08-11T14:02:34.984Z",
4
+ "version": "0.1.16",
5
+ "generatedAt": "2026-08-14T10:14:48.854Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -10,14 +10,7 @@
10
10
  "name": "server-app",
11
11
  "category": "package-specific",
12
12
  "file": "skills/server-app/SKILL.md",
13
- "canonicalPath": ".claude/skills/server-app/SKILL.md"
14
- },
15
- {
16
- "kind": "instruction",
17
- "name": "server-app",
18
- "category": "package-specific",
19
- "file": "instructions/server-app.instructions.md",
20
- "canonicalPath": ".github/instructions/server-app.instructions.md"
13
+ "canonicalPath": ".agents/skills/server-app/SKILL.md"
21
14
  }
22
15
  ]
23
16
  }
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/server-app
9
9
 
10
10
  **Layer:** Server
11
- **Install:** `"@owlmeans/server-app": "^0.1.16-rc.0"` in `dependencies`
11
+ **Install:** `"@owlmeans/server-app": "^0.1.16"` in `dependencies`
12
12
 
13
13
  ## Key Exports
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/server-app",
3
- "version": "0.1.16-rc.0",
3
+ "version": "0.1.16",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,21 +21,21 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/api": "^0.1.16-rc.0",
25
- "@owlmeans/client-config": "^0.1.16-rc.0",
26
- "@owlmeans/client-entrypoint": "^0.1.16-rc.0",
27
- "@owlmeans/config": "^0.1.16-rc.0",
28
- "@owlmeans/context": "^0.1.16-rc.0",
29
- "@owlmeans/kluster": "^0.1.16-rc.0",
30
- "@owlmeans/entrypoint": "^0.1.16-rc.0",
31
- "@owlmeans/route": "^0.1.16-rc.0",
32
- "@owlmeans/server-api": "^0.1.16-rc.0",
33
- "@owlmeans/server-auth": "^0.1.16-rc.0",
34
- "@owlmeans/server-context": "^0.1.16-rc.0",
35
- "@owlmeans/server-entrypoint": "^0.1.16-rc.0",
36
- "@owlmeans/server-route": "^0.1.16-rc.0",
37
- "@owlmeans/server-socket": "^0.1.16-rc.0",
38
- "@owlmeans/static-resource": "^0.1.16-rc.0"
24
+ "@owlmeans/api": "^0.1.16",
25
+ "@owlmeans/client-config": "^0.1.16",
26
+ "@owlmeans/client-entrypoint": "^0.1.16",
27
+ "@owlmeans/config": "^0.1.16",
28
+ "@owlmeans/context": "^0.1.16",
29
+ "@owlmeans/kluster": "^0.1.16",
30
+ "@owlmeans/entrypoint": "^0.1.16",
31
+ "@owlmeans/route": "^0.1.16",
32
+ "@owlmeans/server-api": "^0.1.16",
33
+ "@owlmeans/server-auth": "^0.1.16",
34
+ "@owlmeans/server-context": "^0.1.16",
35
+ "@owlmeans/server-entrypoint": "^0.1.16",
36
+ "@owlmeans/server-route": "^0.1.16",
37
+ "@owlmeans/server-socket": "^0.1.16",
38
+ "@owlmeans/static-resource": "^0.1.16"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@owlmeans/dep-config": "workspace:*",
@@ -1,49 +0,0 @@
1
- ---
2
- description: "How to use @owlmeans/server-app — main() entry point, handleRequest()/handleBody() handler wrappers, elevate()/celevate() to attach handlers to module declarations, sservice() to register backend services."
3
- applyTo: "**/*.ts, **/*.tsx"
4
- ---
5
- <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
6
-
7
- # @owlmeans/server-app
8
-
9
- **Layer:** Server
10
- **Install:** `"@owlmeans/server-app": "^0.1.16-rc.0"` in `dependencies`
11
-
12
- ## Key Exports
13
-
14
- | Export | Description |
15
- |--------|-------------|
16
- | `main<E, C, T>(context, modules)` | Entry point — boots Express, registers entrypoints |
17
- | `handleRequest(fn)` | Wrap a server handler `(req, context) => result` |
18
- | `handleBody<T>(fn)` | Wrap with validated body — `(payload, context, req) => result` |
19
- | `elevate(modules, alias, handler)` | Attach handler to an entrypoint declaration |
20
- | `celevate(modules, alias, handler)` | Conditional elevate |
21
- | `sservice(options, cfg)` | Register a server-side service in the config |
22
- | `modules` | Built-in system entrypoints to spread |
23
- | `Context`, `Config`, `ClientEntrypoint` re-exports | Common types |
24
-
25
- ## Usage
26
-
27
- ```typescript
28
- // index.ts
29
- import { main } from '@owlmeans/server-app'
30
- const context = makeContext(config)
31
- main<{}, Config, Context>(context, appModules)
32
-
33
- // Handlers
34
- import { handleRequest, handleBody } from '@owlmeans/server-app'
35
- export const list = handleRequest(async (req, context) => {
36
- if (req.auth?.entityId == null) throw new AuthUnknown('entity')
37
- return await (context as Context).project().list({ entityId: req.auth.entityId })
38
- })
39
-
40
- // Elevation
41
- import { elevate, modules } from '@owlmeans/server-app'
42
- elevate(managerModules, manager.back.project.create, create)
43
- export const appModules = [...modules, ...managerModules]
44
- ```
45
-
46
- ## Depends On
47
-
48
- - `@owlmeans/server-context`, `@owlmeans/server-entrypoint`, `@owlmeans/server-route`, `@owlmeans/server-api`
49
- - `@owlmeans/entrypoint`, `@owlmeans/route`, `@owlmeans/auth`, `@owlmeans/error`