@astrale-os/sdk 0.5.0-beta.133 → 0.5.0-beta.134
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 +2 -2
- package/dist/application/mutation/failure.js +11 -5
- package/package.json +7 -6
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
|
|
|
@@ -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.134",
|
|
4
4
|
"description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -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
|
}
|