@owlmeans/router 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
|
@@ -19,3 +19,20 @@ bun add @owlmeans/router
|
|
|
19
19
|
- [`@owlmeans/server-route`](../server-route) — server-side router implementation
|
|
20
20
|
- [`@owlmeans/client-route`](../client-route) — client-side router implementation
|
|
21
21
|
- [`@owlmeans/module`](../module) — modules registered with the router
|
|
22
|
+
|
|
23
|
+
<!-- owlmeans:agent-guidance:start -->
|
|
24
|
+
## Agent guidance
|
|
25
|
+
|
|
26
|
+
This package ships embedded Claude Code skills and GitHub Copilot instructions under
|
|
27
|
+
`agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
|
|
28
|
+
agent-skills installer to place them into your project's native locations
|
|
29
|
+
(`.claude/skills/` and `.github/instructions/`):
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npx @owlmeans/agent-skills
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The embedded files are version-matched to this package release. Do not edit them
|
|
36
|
+
directly — they are regenerated on each publish. To contribute guidance edits,
|
|
37
|
+
open a PR against the source monorepo.
|
|
38
|
+
<!-- owlmeans:agent-guidance:end -->
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "How to use @owlmeans/router — abstract router service interface used by web-router and native router implementations. Use when implementing a custom router."
|
|
3
|
+
applyTo: "**/*.ts, **/*.tsx"
|
|
4
|
+
---
|
|
5
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
+
|
|
7
|
+
# @owlmeans/router
|
|
8
|
+
|
|
9
|
+
**Layer:** Core
|
|
10
|
+
**Install:** `"@owlmeans/router": "^0.1.9"` in `dependencies`
|
|
11
|
+
|
|
12
|
+
## Key Exports
|
|
13
|
+
|
|
14
|
+
| Export | Description |
|
|
15
|
+
|--------|-------------|
|
|
16
|
+
| `RouterService` types | Abstract router service interface |
|
|
17
|
+
| Constants | `DEFAULT_ALIAS` for the router service |
|
|
18
|
+
| Service helpers | Build a router service skeleton |
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { DEFAULT_ALIAS as ROUTER } from '@owlmeans/router'
|
|
24
|
+
const router = ctx.service(ROUTER)
|
|
25
|
+
router.navigate('/projects')
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Depends On
|
|
29
|
+
|
|
30
|
+
- `@owlmeans/context`, `@owlmeans/route`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"package": "@owlmeans/router",
|
|
4
|
+
"version": "0.1.9",
|
|
5
|
+
"generatedAt": "2026-06-14T13:34:06.135Z",
|
|
6
|
+
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
|
+
"entries": [
|
|
8
|
+
{
|
|
9
|
+
"kind": "skill",
|
|
10
|
+
"name": "router",
|
|
11
|
+
"category": "package-specific",
|
|
12
|
+
"file": "skills/router/SKILL.md",
|
|
13
|
+
"canonicalPath": ".claude/skills/router/SKILL.md"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"kind": "instruction",
|
|
17
|
+
"name": "router",
|
|
18
|
+
"category": "package-specific",
|
|
19
|
+
"file": "instructions/router.instructions.md",
|
|
20
|
+
"canonicalPath": ".github/instructions/router.instructions.md"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: router
|
|
3
|
+
description: How to use @owlmeans/router — abstract router service interface used by web-router and native router implementations. Auto-invoked when importing router service types or implementing a custom router.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
7
|
+
|
|
8
|
+
# @owlmeans/router
|
|
9
|
+
|
|
10
|
+
**Layer:** Core
|
|
11
|
+
**Install:** `"@owlmeans/router": "^0.1.9"` in `dependencies`
|
|
12
|
+
|
|
13
|
+
## Key Exports
|
|
14
|
+
|
|
15
|
+
| Export | Description |
|
|
16
|
+
|--------|-------------|
|
|
17
|
+
| `RouterService` types | Abstract router service interface |
|
|
18
|
+
| Constants | `DEFAULT_ALIAS` for the router service |
|
|
19
|
+
| Service helpers | Build a router service skeleton |
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
Concrete routers (e.g. `@owlmeans/web-router` for React Router 7) implement this interface. Apps don't usually import from `@owlmeans/router` directly — the layer-specific package wires everything up.
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { DEFAULT_ALIAS as ROUTER } from '@owlmeans/router'
|
|
27
|
+
const router = ctx.service(ROUTER)
|
|
28
|
+
router.navigate('/projects')
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Depends On
|
|
32
|
+
|
|
33
|
+
- `@owlmeans/context` — service registration
|
|
34
|
+
- `@owlmeans/route` — route shape
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/router",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@owlmeans/context": "^0.1.
|
|
24
|
+
"@owlmeans/context": "^0.1.9"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "*"
|