@owlmeans/resource 0.2.3-alpha.0 → 0.2.3
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
|
@@ -12,7 +12,7 @@ wants is the `resource-choice` decision.
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
bun add @owlmeans/resource@^0.2.3
|
|
15
|
+
bun add @owlmeans/resource@^0.2.3
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Concepts
|
|
@@ -404,7 +404,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
404
404
|
your project's skill store (`.agents/skills/`):
|
|
405
405
|
|
|
406
406
|
```sh
|
|
407
|
-
npx @owlmeans/agent-skills@^0.2.3
|
|
407
|
+
npx @owlmeans/agent-skills@^0.2.3
|
|
408
408
|
```
|
|
409
409
|
|
|
410
410
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 3,
|
|
3
3
|
"package": "@owlmeans/resource",
|
|
4
|
-
"version": "0.2.3
|
|
5
|
-
"generatedAt": "2026-11-
|
|
4
|
+
"version": "0.2.3",
|
|
5
|
+
"generatedAt": "2026-11-23T12:48:29.712Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -8,7 +8,7 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/resource
|
|
9
9
|
|
|
10
10
|
**Layer:** Core
|
|
11
|
-
**Install:** `"@owlmeans/resource": "^0.2.3
|
|
11
|
+
**Install:** `"@owlmeans/resource": "^0.2.3"` in `dependencies`
|
|
12
12
|
|
|
13
13
|
## Key Exports
|
|
14
14
|
|
|
@@ -90,9 +90,9 @@ Every method returns the record(s) themselves, never a driver result object —
|
|
|
90
90
|
The two refusals declare their HTTP status (`static httpStatus`, the `error` skill's rule), so an
|
|
91
91
|
`@owlmeans/server-api` handler that lets one escape answers it: `UnknownRecordError` **404**,
|
|
92
92
|
`RecordExists` **409** (a unique-key violation, a taken id, and a `create` handed an id —
|
|
93
|
-
`id-present` — alike). Every other class of the family is a fault and answers 500.
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
`id-present` — alike). Every other class of the family is a fault and answers 500. Both refusals
|
|
94
|
+
rebuild into the same class on the client in development and production alike (a production body
|
|
95
|
+
drops only the stack); a fault's production body is the incident id alone (`ServerCrashedError`).
|
|
96
96
|
|
|
97
97
|
So `get` only what the REQUEST addressed. A missing row it did not name — a configuration record,
|
|
98
98
|
a session, an internal lookup — is not the caller's 404: `load` it and throw the fault or the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/resource",
|
|
3
|
-
"version": "0.2.3
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://owlmeans.com/docs/",
|
|
6
6
|
"repository": {
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@owlmeans/context": "^0.2.3
|
|
36
|
-
"@owlmeans/error": "^0.2.3
|
|
35
|
+
"@owlmeans/context": "^0.2.3",
|
|
36
|
+
"@owlmeans/error": "^0.2.3"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"ajv": "*"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@owlmeans/dep-config": "^0.2.3
|
|
42
|
+
"@owlmeans/dep-config": "^0.2.3",
|
|
43
43
|
"@types/bun": "^1.4.4",
|
|
44
44
|
"nodemon": "^3.1.14",
|
|
45
45
|
"typescript": "^7.0.2"
|