@owlmeans/context 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
|
@@ -94,10 +94,9 @@ CRASH // error fallback screen
|
|
|
94
94
|
<!-- owlmeans:agent-guidance:start -->
|
|
95
95
|
## Agent guidance
|
|
96
96
|
|
|
97
|
-
This package ships embedded
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
(`.claude/skills/` and `.github/instructions/`):
|
|
97
|
+
This package ships embedded agent skills under `agent-meta/`. After installing your
|
|
98
|
+
`@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
|
|
99
|
+
your project's skill store (`.agents/skills/`):
|
|
101
100
|
|
|
102
101
|
```sh
|
|
103
102
|
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/context",
|
|
4
|
-
"version": "0.1.16
|
|
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": "context",
|
|
11
11
|
"category": "package-specific",
|
|
12
12
|
"file": "skills/context/SKILL.md",
|
|
13
|
-
"canonicalPath": ".
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"kind": "instruction",
|
|
17
|
-
"name": "context",
|
|
18
|
-
"category": "package-specific",
|
|
19
|
-
"file": "instructions/context.instructions.md",
|
|
20
|
-
"canonicalPath": ".github/instructions/context.instructions.md"
|
|
13
|
+
"canonicalPath": ".agents/skills/context/SKILL.md"
|
|
21
14
|
}
|
|
22
15
|
]
|
|
23
16
|
}
|
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "How to use @owlmeans/context — base context (DI container) factory, registerService, service<T>() lookups, entrypoint<ClientEntrypoint<T>>() resolution. Use when building a makeContext factory."
|
|
3
|
-
applyTo: "**/context.ts, **/context.tsx, **/*.ts, **/*.tsx"
|
|
4
|
-
---
|
|
5
|
-
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
-
|
|
7
|
-
# @owlmeans/context
|
|
8
|
-
|
|
9
|
-
**Layer:** Core
|
|
10
|
-
**Install:** `"@owlmeans/context": "^0.1.16-rc.0"` in `dependencies`
|
|
11
|
-
|
|
12
|
-
## Key Exports
|
|
13
|
-
|
|
14
|
-
| Export | Description |
|
|
15
|
-
|--------|-------------|
|
|
16
|
-
| `Context<C>` types | Generic context interface |
|
|
17
|
-
| `makeBasicContext` | Low-level factory |
|
|
18
|
-
| `registerService`, `service<T>`, `entrypoint<ClientEntrypoint<T>>` | Methods on every Context |
|
|
19
|
-
| `Service` types | Service interface and lifecycle |
|
|
20
|
-
| Constants | Built-in service/entrypoint aliases |
|
|
21
|
-
|
|
22
|
-
## Usage
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
import { makeBackendContext } from '@owlmeans/server-context'
|
|
26
|
-
|
|
27
|
-
export const makeContext = <C extends Config, T extends Context<C>>(cfg: C): T => {
|
|
28
|
-
const context = makeBackendContext<C, T>(cfg)
|
|
29
|
-
context.registerService(makeMyService())
|
|
30
|
-
context.makeContext = makeContext as typeof context.makeContext
|
|
31
|
-
return context
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Cross-service call
|
|
35
|
-
const [response] = await ctx.entrypoint<ClientEntrypoint<ResponseType>>(alias).call({ body: { ... } })
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Depends On
|
|
39
|
-
|
|
40
|
-
- `@owlmeans/config` — context is parameterized by a Config
|
|
41
|
-
- `@owlmeans/entrypoint` — `ClientEntrypoint<T>` for cross-service calls
|