@smthrs/kernel 1.0.0-rc.6 → 1.0.0-rc.7
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 +14 -14
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This package declares `effect` as a `^4.0.4` peer dependency. Install one
|
|
|
6
6
|
`effect` release in that range so all Smithers packages share one Effect
|
|
7
7
|
runtime.
|
|
8
8
|
|
|
9
|
-
**Documentation:** https://
|
|
9
|
+
**Documentation:** https://github.com/smithersai/smithers/tree/main/packages/smithers/flows/kernel/docs
|
|
10
10
|
|
|
11
11
|
A capability kernel for [Effect](https://effect.website) hosts. It puts a
|
|
12
12
|
permission check in front of every side effect a program can reach: the five
|
|
@@ -26,13 +26,13 @@ without ever mentioning permission.
|
|
|
26
26
|
|
|
27
27
|
`@smthrs/kernel` is not on npm at 1.0.0-rc.0. Its source lives in the
|
|
28
28
|
[smithers repository](https://github.com/smithersai/smithers), and the
|
|
29
|
-
[installation page](https://
|
|
29
|
+
[installation page](https://github.com/smithersai/smithers/blob/main/packages/smithers/flows/kernel/docs/installation.md) covers how to
|
|
30
30
|
depend on it from a checkout, the import forms, and the two test helpers.
|
|
31
31
|
|
|
32
32
|
It needs Node.js 26.4.0 or later and `effect` `^4.0.4`. It carries no
|
|
33
33
|
platform implementations of its own, so a composition that reaches a real
|
|
34
34
|
machine also adds a bundle such as
|
|
35
|
-
[`@smthrs/platform-node`](https://platform-node
|
|
35
|
+
[`@smthrs/platform-node`](https://github.com/smithersai/smithers/tree/main/packages/smithers/flows/platform-node/docs).
|
|
36
36
|
|
|
37
37
|
## Refuse an operation nobody authorized
|
|
38
38
|
|
|
@@ -79,7 +79,7 @@ its refusal into one and keeps the structured original on the cause, where
|
|
|
79
79
|
consent, and this store has nobody to ask. Build the store with
|
|
80
80
|
`attended: true` instead and the same write parks on a request an operator can
|
|
81
81
|
answer, then resumes the operation it was authorized for. The
|
|
82
|
-
[quickstart](https://
|
|
82
|
+
[quickstart](https://github.com/smithersai/smithers/blob/main/packages/smithers/flows/kernel/docs/quickstart.md) runs both halves.
|
|
83
83
|
|
|
84
84
|
## What a yes or no answer leaves open
|
|
85
85
|
|
|
@@ -101,7 +101,7 @@ answer, then resumes the operation it was authorized for. The
|
|
|
101
101
|
|
|
102
102
|
The root entry point exports these namespaces, and each is also importable from
|
|
103
103
|
`@smthrs/kernel/<Module>`. Every export, with its signature and its bounds, is
|
|
104
|
-
on the [API reference](https://
|
|
104
|
+
on the [API reference](https://github.com/smithersai/smithers/blob/main/packages/smithers/flows/kernel/docs/api.md).
|
|
105
105
|
|
|
106
106
|
| Namespace | What it is |
|
|
107
107
|
| --------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
@@ -126,7 +126,7 @@ on the [API reference](https://kernel.smithers.sh/reference/api/).
|
|
|
126
126
|
`ChildProcessEnvironment` builds a replacement environment from bootstrap names plus explicit declarations, withholding credential-shaped ambient values.
|
|
127
127
|
|
|
128
128
|
`Capability` and `Permission` are re-exports; their modules live in
|
|
129
|
-
[`@smthrs/capability`](https://
|
|
129
|
+
[`@smthrs/capability`](https://github.com/smithersai/smithers/tree/main/packages/smithers/flows/capability/docs).
|
|
130
130
|
|
|
131
131
|
Two test helpers ship in the package's export map, not as dev-only files:
|
|
132
132
|
`@smthrs/kernel/test/TestGrantStore` for allow, deny, and scripted grant-store
|
|
@@ -138,17 +138,17 @@ not depend back on a platform implementation.
|
|
|
138
138
|
|
|
139
139
|
## Documentation
|
|
140
140
|
|
|
141
|
-
- [Overview](https://
|
|
142
|
-
- [Quickstart](https://
|
|
143
|
-
- [Guard a host bundle](https://
|
|
144
|
-
- [Write a capability policy](https://
|
|
145
|
-
- [Decoration in place](https://
|
|
146
|
-
- [API reference](https://
|
|
147
|
-
- [Troubleshooting](https://
|
|
141
|
+
- [Overview](https://github.com/smithersai/smithers/tree/main/packages/smithers/flows/kernel/docs)
|
|
142
|
+
- [Quickstart](https://github.com/smithersai/smithers/blob/main/packages/smithers/flows/kernel/docs/quickstart.md)
|
|
143
|
+
- [Guard a host bundle](https://github.com/smithersai/smithers/blob/main/packages/smithers/flows/kernel/docs/guides/guard-a-host-bundle.md)
|
|
144
|
+
- [Write a capability policy](https://github.com/smithersai/smithers/blob/main/packages/smithers/flows/kernel/docs/guides/write-a-capability-policy.md)
|
|
145
|
+
- [Decoration in place](https://github.com/smithersai/smithers/blob/main/packages/smithers/flows/kernel/docs/concepts/decoration-in-place.md)
|
|
146
|
+
- [API reference](https://github.com/smithersai/smithers/blob/main/packages/smithers/flows/kernel/docs/api.md)
|
|
147
|
+
- [Troubleshooting](https://github.com/smithersai/smithers/blob/main/packages/smithers/flows/kernel/docs/troubleshooting.md), which lists
|
|
148
148
|
every refusal this package raises, what it means, and what to change.
|
|
149
149
|
|
|
150
150
|
`@smthrs/kernel` is one package of the Smithers durable flow engine, which
|
|
151
|
-
ships whole as [`@smthrs/flows`](https://
|
|
151
|
+
ships whole as [`@smthrs/flows`](https://github.com/smithersai/smithers/tree/main/packages/smithers/flows/docs).
|
|
152
152
|
|
|
153
153
|
## License
|
|
154
154
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smthrs/kernel",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"smthrs": {
|
|
7
7
|
"group": "engine"
|
|
@@ -295,10 +295,10 @@
|
|
|
295
295
|
"tag": "next"
|
|
296
296
|
},
|
|
297
297
|
"dependencies": {
|
|
298
|
-
"@smthrs/capability": "1.0.0-rc.
|
|
299
|
-
"@smthrs/crypto": "1.0.0-rc.
|
|
300
|
-
"@smthrs/jj": "1.0.0-rc.
|
|
301
|
-
"@smthrs/journal": "1.0.0-rc.
|
|
298
|
+
"@smthrs/capability": "1.0.0-rc.7",
|
|
299
|
+
"@smthrs/crypto": "1.0.0-rc.7",
|
|
300
|
+
"@smthrs/jj": "1.0.0-rc.7",
|
|
301
|
+
"@smthrs/journal": "1.0.0-rc.7"
|
|
302
302
|
},
|
|
303
303
|
"peerDependencies": {
|
|
304
304
|
"effect": "^4.0.4",
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
"@effect/platform-node": "4.0.4",
|
|
318
318
|
"@effect/vitest": "4.0.4",
|
|
319
319
|
"@eslint/js": "9.39.5",
|
|
320
|
-
"@smthrs/database": "1.0.0-rc.
|
|
320
|
+
"@smthrs/database": "1.0.0-rc.7",
|
|
321
321
|
"@types/node": "26.4.1",
|
|
322
322
|
"@vitest/coverage-v8": "5.0.0",
|
|
323
323
|
"dprint": "0.57.1",
|