@astrale-os/sdk 0.5.0-beta.133 → 0.5.0-beta.135
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 +10 -2
- package/dist/application/mutation/failure.js +11 -5
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -125,10 +125,10 @@ The repository installs autonomously from its versioned npm-only lockfile:
|
|
|
125
125
|
```bash
|
|
126
126
|
git clone https://github.com/astrale-os/sdk.git
|
|
127
127
|
cd sdk
|
|
128
|
-
AGENT_HARNESSES=codex bash scripts/
|
|
128
|
+
AGENT_HARNESSES=codex bash scripts/setup/setup.sh
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
See [agent setup](scripts/
|
|
131
|
+
See [agent setup](scripts/setup/README.md) for Claude Cloud and validation.
|
|
132
132
|
|
|
133
133
|
It can also be consumed as a submodule of the main Astrale workspace:
|
|
134
134
|
|
|
@@ -213,6 +213,14 @@ NodePath and its Dataset Node ID through encoding and decoding. Matching propert
|
|
|
213
213
|
not create that association. Studio uses it when simulating `sameNode` and reference endpoints;
|
|
214
214
|
a missing association makes that simulation unavailable.
|
|
215
215
|
|
|
216
|
+
## Kernel publication discovery
|
|
217
|
+
|
|
218
|
+
Use `session.publication()` when a consumer needs the intrinsic Kernel's published identity or
|
|
219
|
+
endpoints without its schema bundle or Views. It revalidates through the Client's existing issuer,
|
|
220
|
+
URL, size, and ETag checks. Concurrent publication and snapshot observations share acquisition;
|
|
221
|
+
cancelling one observer does not cancel another. `session.snapshot()` remains the complete,
|
|
222
|
+
coherent Publication, bundle, and View catalog observation.
|
|
223
|
+
|
|
216
224
|
## License
|
|
217
225
|
|
|
218
226
|
Apache License 2.0 — see [LICENSE](LICENSE) for details.
|
|
@@ -37,15 +37,21 @@ function mutationCode(input) {
|
|
|
37
37
|
const value = input;
|
|
38
38
|
if (value.code === 'STATE_TRANSITION_ILLEGAL')
|
|
39
39
|
return value.code;
|
|
40
|
-
for (const candidate of [
|
|
40
|
+
for (const candidate of [
|
|
41
|
+
value.code,
|
|
42
|
+
directOrNestedCode(value.reason),
|
|
43
|
+
directOrNestedCode(value.data),
|
|
44
|
+
]) {
|
|
41
45
|
if (typeof candidate === 'string' && candidate.startsWith('MUTATION_')) {
|
|
42
46
|
return candidate;
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
return undefined;
|
|
46
50
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
49
|
-
?
|
|
50
|
-
:
|
|
51
|
+
function directOrNestedCode(input) {
|
|
52
|
+
return typeof input === 'string'
|
|
53
|
+
? input
|
|
54
|
+
: input !== null && typeof input === 'object' && !Array.isArray(input)
|
|
55
|
+
? Reflect.get(input, 'code')
|
|
56
|
+
: undefined;
|
|
51
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/sdk",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.135",
|
|
4
4
|
"description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -237,11 +237,11 @@
|
|
|
237
237
|
"registry": "https://registry.npmjs.org/"
|
|
238
238
|
},
|
|
239
239
|
"dependencies": {
|
|
240
|
-
"@astrale-os/kernel-client": "0.6.0-beta.
|
|
240
|
+
"@astrale-os/kernel-client": "0.6.0-beta.60",
|
|
241
241
|
"@astrale-os/kernel-core": "0.9.0-beta.46",
|
|
242
242
|
"@astrale-os/kernel-dsl": "0.2.0-beta.33",
|
|
243
|
-
"@astrale-os/kernel-protocol": "0.5.0-beta.
|
|
244
|
-
"@astrale-os/kernel-server": "0.5.0-beta.
|
|
243
|
+
"@astrale-os/kernel-protocol": "0.5.0-beta.51",
|
|
244
|
+
"@astrale-os/kernel-server": "0.5.0-beta.53",
|
|
245
245
|
"@lucide/icons": "1.34.0",
|
|
246
246
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
247
247
|
"cross-spawn": "7.0.6",
|
|
@@ -331,10 +331,11 @@
|
|
|
331
331
|
"qualify:publications": "node scripts/qualify-publications.mjs",
|
|
332
332
|
"qualify": "node scripts/qualify.mjs",
|
|
333
333
|
"sync:linter-policy": "node scripts/sync-domain-policy.mjs",
|
|
334
|
-
"setup": "bash scripts/
|
|
335
|
-
"setup:codex": "AGENT_HARNESSES=codex bash scripts/
|
|
336
|
-
"setup:claude": "AGENT_HARNESSES=claude bash scripts/
|
|
337
|
-
"check:agent-setup": "bash scripts/
|
|
338
|
-
"test:agent-setup": "node --test scripts/
|
|
334
|
+
"setup": "bash scripts/setup/setup.sh",
|
|
335
|
+
"setup:codex": "AGENT_HARNESSES=codex bash scripts/setup/setup.sh",
|
|
336
|
+
"setup:claude": "AGENT_HARNESSES=claude bash scripts/setup/setup.sh",
|
|
337
|
+
"check:agent-setup": "bash scripts/setup/verify.sh",
|
|
338
|
+
"test:agent-setup": "node --test scripts/setup/*.test.cjs",
|
|
339
|
+
"setup:local": "AGENT_SETUP_TOOLS=check bash scripts/setup/setup.sh"
|
|
339
340
|
}
|
|
340
341
|
}
|