@owlmeans/client-context 0.1.6 → 0.1.8
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
|
@@ -48,3 +48,20 @@ Extends `BasicContext<C>` with:
|
|
|
48
48
|
- [`@owlmeans/context`](../context) — `BasicContext` base
|
|
49
49
|
- [`@owlmeans/web-client`](../web-client) — wraps this with React Router integration
|
|
50
50
|
- [`@owlmeans/client-config`](../client-config) — `addWebService` for service URL config
|
|
51
|
+
|
|
52
|
+
<!-- owlmeans:agent-guidance:start -->
|
|
53
|
+
## Agent guidance
|
|
54
|
+
|
|
55
|
+
This package ships embedded Claude Code skills and GitHub Copilot instructions under
|
|
56
|
+
`agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
|
|
57
|
+
agent-skills installer to place them into your project's native locations
|
|
58
|
+
(`.claude/skills/` and `.github/instructions/`):
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
npx @owlmeans/agent-skills
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The embedded files are version-matched to this package release. Do not edit them
|
|
65
|
+
directly — they are regenerated on each publish. To contribute guidance edits,
|
|
66
|
+
open a PR against the source monorepo.
|
|
67
|
+
<!-- owlmeans:agent-guidance:end -->
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "How to use @owlmeans/client-context — client-side context factory used as the base for web and native contexts."
|
|
3
|
+
applyTo: "**/*.ts, **/*.tsx"
|
|
4
|
+
---
|
|
5
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
+
|
|
7
|
+
# @owlmeans/client-context
|
|
8
|
+
|
|
9
|
+
**Layer:** Client
|
|
10
|
+
**Install:** `"@owlmeans/client-context": "^0.1.8"` in `dependencies`
|
|
11
|
+
|
|
12
|
+
## Key Exports
|
|
13
|
+
|
|
14
|
+
| Export | Description |
|
|
15
|
+
|--------|-------------|
|
|
16
|
+
| `makeClientContext` | Client context factory |
|
|
17
|
+
| `Context` / `Config` (client) types | Client interfaces |
|
|
18
|
+
| Constants | Default aliases |
|
|
19
|
+
|
|
20
|
+
## Subpath Exports
|
|
21
|
+
|
|
22
|
+
- `./utils`
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { makeClientContext } from '@owlmeans/client-context'
|
|
28
|
+
const context = makeClientContext<Config, Context>(cfg)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Depends On
|
|
32
|
+
|
|
33
|
+
- `@owlmeans/context`, `@owlmeans/client-config`, `@owlmeans/client-entrypoint`, `@owlmeans/client-route`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"package": "@owlmeans/client-context",
|
|
4
|
+
"version": "0.1.8",
|
|
5
|
+
"generatedAt": "2026-06-11T16:30:27.182Z",
|
|
6
|
+
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
|
+
"entries": [
|
|
8
|
+
{
|
|
9
|
+
"kind": "skill",
|
|
10
|
+
"name": "client-context",
|
|
11
|
+
"category": "package-specific",
|
|
12
|
+
"file": "skills/client-context/SKILL.md",
|
|
13
|
+
"canonicalPath": ".claude/skills/client-context/SKILL.md"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"kind": "instruction",
|
|
17
|
+
"name": "client-context",
|
|
18
|
+
"category": "package-specific",
|
|
19
|
+
"file": "instructions/client-context.instructions.md",
|
|
20
|
+
"canonicalPath": ".github/instructions/client-context.instructions.md"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: client-context
|
|
3
|
+
description: How to use @owlmeans/client-context — client-side context factory used as the base for web and native contexts. Auto-invoked when importing client context primitives.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
7
|
+
|
|
8
|
+
# @owlmeans/client-context
|
|
9
|
+
|
|
10
|
+
**Layer:** Client
|
|
11
|
+
**Install:** `"@owlmeans/client-context": "^0.1.8"` in `dependencies`
|
|
12
|
+
|
|
13
|
+
## Key Exports
|
|
14
|
+
|
|
15
|
+
| Export | Description |
|
|
16
|
+
|--------|-------------|
|
|
17
|
+
| `makeClientContext` | Client-side context factory (cross-platform) |
|
|
18
|
+
| `Context` (client) types | Client Context interface |
|
|
19
|
+
| `Config` (client) types | Client config shape |
|
|
20
|
+
| Constants | Default aliases |
|
|
21
|
+
|
|
22
|
+
## Subpath Exports
|
|
23
|
+
|
|
24
|
+
- `./utils`
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
Most apps don't call this directly — `@owlmeans/web-panel` and native equivalents wrap it.
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { makeClientContext } from '@owlmeans/client-context'
|
|
32
|
+
const context = makeClientContext<Config, Context>(cfg)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Depends On
|
|
36
|
+
|
|
37
|
+
- `@owlmeans/context`, `@owlmeans/client-config`, `@owlmeans/client-entrypoint`, `@owlmeans/client-route`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/client-context",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@owlmeans/api": "^0.1.
|
|
32
|
-
"@owlmeans/client-config": "^0.1.
|
|
33
|
-
"@owlmeans/config": "^0.1.
|
|
34
|
-
"@owlmeans/context": "^0.1.
|
|
35
|
-
"@owlmeans/i18n": "^0.1.
|
|
36
|
-
"@owlmeans/route": "^0.1.
|
|
31
|
+
"@owlmeans/api": "^0.1.8",
|
|
32
|
+
"@owlmeans/client-config": "^0.1.8",
|
|
33
|
+
"@owlmeans/config": "^0.1.8",
|
|
34
|
+
"@owlmeans/context": "^0.1.8",
|
|
35
|
+
"@owlmeans/i18n": "^0.1.8",
|
|
36
|
+
"@owlmeans/route": "^0.1.8"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@owlmeans/dep-config": "workspace:*",
|