create-astrale-domain 0.3.0-beta.204 → 0.3.0-beta.205
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astrale-domain",
|
|
3
|
-
"version": "0.3.0-beta.
|
|
3
|
+
"version": "0.3.0-beta.205",
|
|
4
4
|
"description": "Scaffold a standalone Astrale domain — npm create astrale-domain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"registry": "https://registry.npmjs.org/"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@astrale-os/adapter-astrale": "0.5.0-beta.
|
|
34
|
-
"@astrale-os/adapter-cloudflare": "0.5.0-beta.
|
|
33
|
+
"@astrale-os/adapter-astrale": "0.5.0-beta.205",
|
|
34
|
+
"@astrale-os/adapter-cloudflare": "0.5.0-beta.212",
|
|
35
35
|
"@clack/prompts": "^0.11.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@astrale-os/kernel-dsl": "1.0.0-beta.23",
|
|
39
39
|
"@astrale-os/ox": "0.1.4",
|
|
40
|
-
"@astrale-os/sdk": "0.6.0-beta.
|
|
40
|
+
"@astrale-os/sdk": "0.6.0-beta.57",
|
|
41
41
|
"@types/node": "^24.0.0",
|
|
42
42
|
"esbuild": "^0.28.2",
|
|
43
43
|
"oxfmt": "0.67.0",
|
|
44
44
|
"oxlint": "1.78.0",
|
|
45
45
|
"typescript": "7.0.2",
|
|
46
|
-
"vitest": "^5.0.
|
|
46
|
+
"vitest": "^5.0.5",
|
|
47
47
|
"zod": "4.6.7"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
@@ -19,5 +19,10 @@ export const domain = defineDomain({
|
|
|
19
19
|
schema,
|
|
20
20
|
runtime,
|
|
21
21
|
frontend,
|
|
22
|
-
requirements: requirements({
|
|
22
|
+
requirements: requirements({
|
|
23
|
+
roles: [
|
|
24
|
+
{ role: K.core.nodes['graph.reader'], members: [requirements.domain] },
|
|
25
|
+
{ role: K.core.nodes['graph.writer'], members: [requirements.domain] },
|
|
26
|
+
],
|
|
27
|
+
}),
|
|
23
28
|
})
|
|
@@ -9,5 +9,10 @@ import runtime from './runtime.js'
|
|
|
9
9
|
export const domain = defineDomain({
|
|
10
10
|
schema,
|
|
11
11
|
runtime,
|
|
12
|
-
requirements: requirements({
|
|
12
|
+
requirements: requirements({
|
|
13
|
+
roles: [
|
|
14
|
+
{ role: K.core.nodes['graph.reader'], members: [requirements.domain] },
|
|
15
|
+
{ role: K.core.nodes['graph.writer'], members: [requirements.domain] },
|
|
16
|
+
],
|
|
17
|
+
}),
|
|
13
18
|
})
|
|
@@ -19,5 +19,10 @@ export const domain = defineDomain({
|
|
|
19
19
|
schema,
|
|
20
20
|
runtime,
|
|
21
21
|
frontend,
|
|
22
|
-
requirements: requirements({
|
|
22
|
+
requirements: requirements({
|
|
23
|
+
roles: [
|
|
24
|
+
{ role: K.core.nodes['graph.reader'], members: [requirements.domain] },
|
|
25
|
+
{ role: K.core.nodes['graph.writer'], members: [requirements.domain] },
|
|
26
|
+
],
|
|
27
|
+
}),
|
|
23
28
|
})
|
package/template/CLAUDE.md
CHANGED
|
@@ -15,8 +15,10 @@ registered package `#` imports across owners, and keep `runtime.ts` and `domain.
|
|
|
15
15
|
their exact composition responsibilities.
|
|
16
16
|
Actions read what they need and perform at most one effect; Workflows coordinate several effects that
|
|
17
17
|
cannot commit together.
|
|
18
|
-
The scaffold's Kernel dependency and
|
|
19
|
-
|
|
18
|
+
The scaffold's Kernel dependency and Domain requirements authorize bound graph executors: the
|
|
19
|
+
installed Domain is a member of the Kernel Roles `graph.reader` and `graph.writer`, which admit it to
|
|
20
|
+
`query` and `mutate`. Retain them while handlers access graph state; use `graph.self` for
|
|
21
|
+
Domain-owned facts.
|
|
20
22
|
|
|
21
23
|
Add `schema/modules/<module>/states/` only when a Schema business module owns a finite persisted
|
|
22
24
|
lifecycle with real illegal transitions. Declare it once with `stateMachine`, persist it with
|
package/template/package.json
CHANGED
|
@@ -25,11 +25,7 @@ minimumReleaseAge: 10080
|
|
|
25
25
|
minimumReleaseAgeStrict: true
|
|
26
26
|
minimumReleaseAgeIgnoreMissingTime: false
|
|
27
27
|
trustLockfile: false
|
|
28
|
-
# Vitest 5.0.1 fixes invalid declaration imports shipped in 5.0.0.
|
|
29
28
|
minimumReleaseAgeExclude:
|
|
30
|
-
- 'vitest@5.0.1'
|
|
31
|
-
- '@vitest/mocker@5.0.1'
|
|
32
|
-
- '@vitest/spy@5.0.1'
|
|
33
29
|
- '@astrale-os/*'
|
|
34
30
|
- '@astrale-domains/*'
|
|
35
31
|
- '@astrale/*'
|