@astrale-os/sdk 0.6.0-beta.29 → 0.6.0-beta.30
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 +13 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -129,8 +129,8 @@ A Class rule judges the caller, which passes by owning the Class's installation
|
|
|
129
129
|
never by a capability it holds. When a Domain acts for a caller, the Domain must also hold its own
|
|
130
130
|
right on the Class (the capability its requirements declare, or ownership), whatever the rule; an
|
|
131
131
|
Identity acting for itself delegates nothing and meets no such ceiling. A callable reads the same
|
|
132
|
-
way,
|
|
133
|
-
|
|
132
|
+
way, with `can_use` (or ownership) as the right of its ceiling. `true` admits every Identity of the
|
|
133
|
+
instance, never an anonymous request.
|
|
134
134
|
|
|
135
135
|
| Declared | Caller is admitted when |
|
|
136
136
|
| --- | --- |
|
|
@@ -190,6 +190,16 @@ describe capabilities for the Domain principal.
|
|
|
190
190
|
Builds emit `requirements.capabilities.core`; the release declares those requirements for the
|
|
191
191
|
Domain principal and local Core identities. Installation verifies the Release and its exact Bundle.
|
|
192
192
|
|
|
193
|
+
### Durable schema installations
|
|
194
|
+
|
|
195
|
+
The Client facade adopts Kernel `1.0.0-beta.6`. `schema.install()` and `schema.uninstall()`
|
|
196
|
+
return an Execution id and its status; `result` is present only after successful completion.
|
|
197
|
+
An install with `wait: false` returns without waiting for completion. Keep its `execution` id to
|
|
198
|
+
continue observing it through `schema.installation.status()` or `schema.installation.result()`
|
|
199
|
+
from a new Client session. Uninstalls have the corresponding `schema.uninstallation` methods.
|
|
200
|
+
The Client decodes the Kernel’s `kind: execution` call result before reading the durable status.
|
|
201
|
+
An admitted or pending Execution is not proof that the schema change completed.
|
|
202
|
+
|
|
193
203
|
### Prerequisites
|
|
194
204
|
|
|
195
205
|
- Node.js 26.7.0 (default) or Node.js 24; published packages remain compatible with Node.js 22+
|
|
@@ -359,7 +369,7 @@ await session.graph.get('@order-id') // Kernel callable: the source credential
|
|
|
359
369
|
|
|
360
370
|
| Credential presented | Principal | Kernel callable | Domain callable reached by Policy |
|
|
361
371
|
| --- | --- | --- | --- |
|
|
362
|
-
| Source credential (minted or key) | the identity | ✅ |
|
|
372
|
+
| Source credential (minted or key) | the identity | ✅ | ✅ the identity acts for itself: the Policy alone decides |
|
|
363
373
|
| Session with `exchange` | the declaring Domain, for Domain callables | ✅ with the source credential | ✅ Policy evaluated against the identity |
|
|
364
374
|
| `session.exchange(issuer)` held by a second Session | that Domain | ✅ as that Domain | only what that Domain may use |
|
|
365
375
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/sdk",
|
|
3
|
-
"version": "0.6.0-beta.
|
|
3
|
+
"version": "0.6.0-beta.30",
|
|
4
4
|
"description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -257,11 +257,11 @@
|
|
|
257
257
|
"registry": "https://registry.npmjs.org/"
|
|
258
258
|
},
|
|
259
259
|
"dependencies": {
|
|
260
|
-
"@astrale-os/kernel-client": "1.0.0-beta.
|
|
261
|
-
"@astrale-os/kernel-core": "1.0.0-beta.
|
|
262
|
-
"@astrale-os/kernel-dsl": "1.0.0-beta.
|
|
263
|
-
"@astrale-os/kernel-protocol": "1.0.0-beta.
|
|
264
|
-
"@astrale-os/kernel-server": "1.0.0-beta.
|
|
260
|
+
"@astrale-os/kernel-client": "1.0.0-beta.6",
|
|
261
|
+
"@astrale-os/kernel-core": "1.0.0-beta.6",
|
|
262
|
+
"@astrale-os/kernel-dsl": "1.0.0-beta.3",
|
|
263
|
+
"@astrale-os/kernel-protocol": "1.0.0-beta.6",
|
|
264
|
+
"@astrale-os/kernel-server": "1.0.0-beta.6",
|
|
265
265
|
"@lucide/icons": "1.34.0",
|
|
266
266
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
267
267
|
"cross-spawn": "7.0.6",
|