@owlmeans/error 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
|
@@ -78,10 +78,9 @@ type ValueOrError<T> = T | ResilientError
|
|
|
78
78
|
<!-- owlmeans:agent-guidance:start -->
|
|
79
79
|
## Agent guidance
|
|
80
80
|
|
|
81
|
-
This package ships embedded
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
(`.claude/skills/` and `.github/instructions/`):
|
|
81
|
+
This package ships embedded agent skills under `agent-meta/`. After installing your
|
|
82
|
+
`@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
|
|
83
|
+
your project's skill store (`.agents/skills/`):
|
|
85
84
|
|
|
86
85
|
```sh
|
|
87
86
|
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/error",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"generatedAt": "2026-08-
|
|
4
|
+
"version": "0.1.16",
|
|
5
|
+
"generatedAt": "2026-08-14T10:14:48.858Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -10,14 +10,7 @@
|
|
|
10
10
|
"name": "error",
|
|
11
11
|
"category": "package-specific",
|
|
12
12
|
"file": "skills/error/SKILL.md",
|
|
13
|
-
"canonicalPath": ".
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"kind": "instruction",
|
|
17
|
-
"name": "error",
|
|
18
|
-
"category": "package-specific",
|
|
19
|
-
"file": "instructions/error.instructions.md",
|
|
20
|
-
"canonicalPath": ".github/instructions/error.instructions.md"
|
|
13
|
+
"canonicalPath": ".agents/skills/error/SKILL.md"
|
|
21
14
|
}
|
|
22
15
|
]
|
|
23
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/error",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@owlmeans/i18n": "^0.1.
|
|
24
|
+
"@owlmeans/i18n": "^0.1.16"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@owlmeans/dep-config": "workspace:*",
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "How to use @owlmeans/error — base error classes (ResilientError), error normalization, and i18n-aware error types. Use when importing from this package or defining typed framework errors."
|
|
3
|
-
applyTo: "**/*.ts, **/*.tsx"
|
|
4
|
-
---
|
|
5
|
-
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
-
|
|
7
|
-
# @owlmeans/error
|
|
8
|
-
|
|
9
|
-
**Layer:** Core
|
|
10
|
-
**Install:** `"@owlmeans/error": "^0.1.15"` in `dependencies`
|
|
11
|
-
|
|
12
|
-
## Key Exports
|
|
13
|
-
|
|
14
|
-
| Export | Description |
|
|
15
|
-
|--------|-------------|
|
|
16
|
-
| `ResilientError` | Base error class — all framework errors extend this |
|
|
17
|
-
| `ErrorNormalizer` | Normalize unknown errors into ResilientError instances |
|
|
18
|
-
| `ErrorTypes` | Built-in error type aliases |
|
|
19
|
-
| i18n helpers | Resolve error messages through the i18n layer |
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
Subclass `ResilientError` for typed framework errors:
|
|
24
|
-
|
|
25
|
-
```typescript
|
|
26
|
-
import { ResilientError } from '@owlmeans/error'
|
|
27
|
-
|
|
28
|
-
export class AgentApiError extends ResilientError {
|
|
29
|
-
public static override typeName = 'AgentApiError'
|
|
30
|
-
public constructor(message: string = 'unknown') {
|
|
31
|
-
super(AgentApiError.typeName, `agent-api:${message}`)
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
throw new AgentApiError('rate-limited')
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Depends On
|
|
39
|
-
|
|
40
|
-
- `@owlmeans/i18n` — for resolving error messages by key
|