@owlmeans/entrypoint 0.1.15 → 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
|
@@ -97,10 +97,9 @@ enum EntrypointOutcome { Ok, Accepted, Created, Finished }
|
|
|
97
97
|
<!-- owlmeans:agent-guidance:start -->
|
|
98
98
|
## Agent guidance
|
|
99
99
|
|
|
100
|
-
This package ships embedded
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
(`.claude/skills/` and `.github/instructions/`):
|
|
100
|
+
This package ships embedded agent skills under `agent-meta/`. After installing your
|
|
101
|
+
`@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
|
|
102
|
+
your project's skill store (`.agents/skills/`):
|
|
104
103
|
|
|
105
104
|
```sh
|
|
106
105
|
npx @owlmeans/agent-skills
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion":
|
|
2
|
+
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/entrypoint",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"generatedAt": "2026-08-
|
|
4
|
+
"version": "0.1.16",
|
|
5
|
+
"generatedAt": "2026-08-14T10:14:48.860Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -10,14 +10,7 @@
|
|
|
10
10
|
"name": "entrypoint",
|
|
11
11
|
"category": "package-specific",
|
|
12
12
|
"file": "skills/entrypoint/SKILL.md",
|
|
13
|
-
"canonicalPath": ".
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"kind": "instruction",
|
|
17
|
-
"name": "entrypoint",
|
|
18
|
-
"category": "package-specific",
|
|
19
|
-
"file": "instructions/entrypoint.instructions.md",
|
|
20
|
-
"canonicalPath": ".github/instructions/entrypoint.instructions.md"
|
|
13
|
+
"canonicalPath": ".agents/skills/entrypoint/SKILL.md"
|
|
21
14
|
}
|
|
22
15
|
]
|
|
23
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/entrypoint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@owlmeans/auth": "^0.1.
|
|
32
|
-
"@owlmeans/context": "^0.1.
|
|
33
|
-
"@owlmeans/route": "^0.1.
|
|
31
|
+
"@owlmeans/auth": "^0.1.16",
|
|
32
|
+
"@owlmeans/context": "^0.1.16",
|
|
33
|
+
"@owlmeans/route": "^0.1.16",
|
|
34
34
|
"ajv": "^8.17.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "How to use @owlmeans/entrypoint — declarative entrypoint/route definitions with entrypoint(), guard(), gate(), filter(), body(), params(), query() builders. Use when defining a service entrypoint declaration. Also covers the deprecated @owlmeans/module reexport shim (module() → entrypoint())."
|
|
3
|
-
applyTo: "**/modules.ts, **/modules.tsx, **/*.ts, **/*.tsx"
|
|
4
|
-
---
|
|
5
|
-
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
-
|
|
7
|
-
# @owlmeans/entrypoint
|
|
8
|
-
|
|
9
|
-
**Layer:** Core
|
|
10
|
-
**Install:** `"@owlmeans/entrypoint": "^0.1.15"` in `dependencies`
|
|
11
|
-
|
|
12
|
-
## Key Exports
|
|
13
|
-
|
|
14
|
-
| Export | Description |
|
|
15
|
-
|--------|-------------|
|
|
16
|
-
| `entrypoint(...builders)` | Compose an entrypoint declaration |
|
|
17
|
-
| `guard(alias, ...gates)` | Attach a security guard |
|
|
18
|
-
| `gate(alias, scopes[])` | Define an auth gate inside a guard |
|
|
19
|
-
| `filter(...validators)` | Attach request validators |
|
|
20
|
-
| `body(Schema)`, `params(Schema)`, `query(Schema)` | AJV validators |
|
|
21
|
-
| `ClientEntrypoint<T>` | Resolved entrypoint type for `ctx.entrypoint<...>(alias).call(...)` |
|
|
22
|
-
| `EntrypointOutcome` | Enum: Ok, Accepted, Created, Finished |
|
|
23
|
-
| Constants | Built-in entrypoint aliases |
|
|
24
|
-
|
|
25
|
-
## Subpath Exports
|
|
26
|
-
|
|
27
|
-
- `./utils` — entrypoint construction helpers
|
|
28
|
-
|
|
29
|
-
## Usage
|
|
30
|
-
|
|
31
|
-
```typescript
|
|
32
|
-
import { entrypoint, guard, gate, filter, body } from '@owlmeans/entrypoint'
|
|
33
|
-
import { route, RouteMethod } from '@owlmeans/route'
|
|
34
|
-
import { DEFAULT_GUARD } from '@owlmeans/auth-common'
|
|
35
|
-
import { OIDC_GATE } from '@owlmeans/oidc'
|
|
36
|
-
|
|
37
|
-
export const managerModules = [
|
|
38
|
-
entrypoint(
|
|
39
|
-
route(manager.back.project.create, '/create', {
|
|
40
|
-
parent: manager.back.project.base,
|
|
41
|
-
method: RouteMethod.POST,
|
|
42
|
-
}),
|
|
43
|
-
filter(body(CreateProjectSchema)),
|
|
44
|
-
guard(DEFAULT_GUARD, gate(OIDC_GATE, [`my-service-{entity}`]))
|
|
45
|
-
),
|
|
46
|
-
]
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Depends On
|
|
50
|
-
|
|
51
|
-
- `@owlmeans/route`, `@owlmeans/auth-common`, `@owlmeans/error`, `@owlmeans/i18n`
|