create-astrale-domain 0.3.0-beta.85 → 0.3.0-beta.87

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/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.0-beta.87](https://github.com/astrale-os/sdk/compare/create-astrale-domain-v0.3.0-beta.86...create-astrale-domain-v0.3.0-beta.87) (2026-08-30)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @astrale-os/adapter-astrale bumped to 0.5.0-beta.87
11
+ * @astrale-os/adapter-cloudflare bumped to 0.5.0-beta.94
12
+ * devDependencies
13
+ * @astrale-os/sdk bumped to 0.5.0-beta.91
14
+
15
+ ## [0.3.0-beta.86](https://github.com/astrale-os/sdk/compare/create-astrale-domain-v0.3.0-beta.85...create-astrale-domain-v0.3.0-beta.86) (2026-08-30)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **app:** authorize scaffolded graph executors ([#360](https://github.com/astrale-os/sdk/issues/360)) ([67843e3](https://github.com/astrale-os/sdk/commit/67843e311275300e0a89febfd1c514427fc3d3f6))
21
+
22
+
23
+ ### Dependencies
24
+
25
+ * The following workspace dependencies were updated
26
+ * dependencies
27
+ * @astrale-os/adapter-astrale bumped to 0.5.0-beta.86
28
+ * @astrale-os/adapter-cloudflare bumped to 0.5.0-beta.93
29
+ * devDependencies
30
+ * @astrale-os/sdk bumped to 0.5.0-beta.90
31
+
3
32
  ## [0.3.0-beta.85](https://github.com/astrale-os/sdk/compare/create-astrale-domain-v0.3.0-beta.84...create-astrale-domain-v0.3.0-beta.85) (2026-08-30)
4
33
 
5
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astrale-domain",
3
- "version": "0.3.0-beta.85",
3
+ "version": "0.3.0-beta.87",
4
4
  "description": "Scaffold a standalone Astrale domain — npm create astrale-domain",
5
5
  "keywords": [
6
6
  "astrale",
@@ -30,13 +30,13 @@
30
30
  "registry": "https://registry.npmjs.org/"
31
31
  },
32
32
  "dependencies": {
33
- "@astrale-os/adapter-astrale": "0.5.0-beta.85",
34
- "@astrale-os/adapter-cloudflare": "0.5.0-beta.92",
33
+ "@astrale-os/adapter-astrale": "0.5.0-beta.87",
34
+ "@astrale-os/adapter-cloudflare": "0.5.0-beta.94",
35
35
  "@clack/prompts": "^0.11.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@astrale-os/ox": "0.1.3",
39
- "@astrale-os/sdk": "0.5.0-beta.89",
39
+ "@astrale-os/sdk": "0.5.0-beta.91",
40
40
  "@types/node": "^22.0.0",
41
41
  "esbuild": "^0.28.2",
42
42
  "oxfmt": "0.63.0",
@@ -1,4 +1,5 @@
1
- import { defineApplication, defineFrontend, vite } from '@astrale-os/sdk/application'
1
+ import { defineApplication, defineFrontend, requirements, vite } from '@astrale-os/sdk/application'
2
+ import { K } from '@astrale-os/sdk/schema'
2
3
 
3
4
  import { schema } from '#schema'
4
5
 
@@ -14,4 +15,9 @@ const frontend = defineFrontend({
14
15
  })
15
16
 
16
17
  /** Build and publication composition; provider effects live in astrale.config.ts. */
17
- export const application = defineApplication({ schema, runtime, frontend })
18
+ export const application = defineApplication({
19
+ schema,
20
+ runtime,
21
+ frontend,
22
+ requirements: requirements({ callables: [K.functions.query, K.functions.mutate] }),
23
+ })
@@ -1,6 +1,7 @@
1
- import { defineSchema, view } from '@astrale-os/sdk/schema'
1
+ import { defineSchema, KernelSchema, view } from '@astrale-os/sdk/schema'
2
2
 
3
3
  export const schema = defineSchema('astrale-domain.example.dev', {
4
+ dependencies: { kernel: KernelSchema },
4
5
  classes: {},
5
6
  views: {
6
7
  application: view({}),
@@ -1,8 +1,13 @@
1
- import { defineApplication } from '@astrale-os/sdk/application'
1
+ import { defineApplication, requirements } from '@astrale-os/sdk/application'
2
+ import { K } from '@astrale-os/sdk/schema'
2
3
 
3
4
  import { schema } from '#schema'
4
5
 
5
6
  import runtime from './runtime.js'
6
7
 
7
8
  /** Build and publication composition; provider effects live in astrale.config.ts. */
8
- export const application = defineApplication({ schema, runtime })
9
+ export const application = defineApplication({
10
+ schema,
11
+ runtime,
12
+ requirements: requirements({ callables: [K.functions.query, K.functions.mutate] }),
13
+ })
@@ -1,5 +1,6 @@
1
- import { defineSchema } from '@astrale-os/sdk/schema'
1
+ import { defineSchema, KernelSchema } from '@astrale-os/sdk/schema'
2
2
 
3
3
  export const schema = defineSchema('astrale-domain.example.dev', {
4
+ dependencies: { kernel: KernelSchema },
4
5
  classes: {},
5
6
  })
@@ -1,4 +1,5 @@
1
- import { defineApplication, defineFrontend, vite } from '@astrale-os/sdk/application'
1
+ import { defineApplication, defineFrontend, requirements, vite } from '@astrale-os/sdk/application'
2
+ import { K } from '@astrale-os/sdk/schema'
2
3
 
3
4
  import { schema } from '#schema'
4
5
 
@@ -14,4 +15,9 @@ const frontend = defineFrontend({
14
15
  })
15
16
 
16
17
  /** Build and publication composition; provider effects live in astrale.config.ts. */
17
- export const application = defineApplication({ schema, runtime, frontend })
18
+ export const application = defineApplication({
19
+ schema,
20
+ runtime,
21
+ frontend,
22
+ requirements: requirements({ callables: [K.functions.query, K.functions.mutate] }),
23
+ })
@@ -1,6 +1,7 @@
1
- import { defineSchema, view } from '@astrale-os/sdk/schema'
1
+ import { defineSchema, KernelSchema, view } from '@astrale-os/sdk/schema'
2
2
 
3
3
  export const schema = defineSchema('astrale-domain.example.dev', {
4
+ dependencies: { kernel: KernelSchema },
4
5
  classes: {},
5
6
  views: {
6
7
  application: view({}),
@@ -14,6 +14,8 @@ behavior in its semantic submodule, keep owners explicit, put focused tests in `
14
14
  registered package `#` imports across owners, and keep `runtime.ts` and `application.ts` limited to
15
15
  their exact composition responsibilities.
16
16
  Actions perform one semantic asynchronous operation; Workflows name every explicit multi-step operation.
17
+ The scaffold's Kernel dependency and `query`/`mutate` Application requirements authorize bound graph
18
+ executors. Retain them while handlers access graph state; use `graph.self` for Domain-owned facts.
17
19
 
18
20
  Add `schema/modules/<module>/states/` only when a Schema business module owns a finite persisted
19
21
  lifecycle with real illegal transitions. Declare it once with `stateMachine`, persist it with
@@ -1,11 +1,14 @@
1
- import { schema as language } from '@astrale-os/sdk/schema'
1
+ import { K, KernelSchema, schema as language } from '@astrale-os/sdk/schema'
2
2
 
3
3
  import { schema } from '../index.js'
4
4
 
5
5
  describe('Domain schema', () => {
6
6
  it('owns one canonical Domain schema', () => {
7
7
  const domain = language.resolve(schema)
8
+ const kernel = language.resolve(KernelSchema)
8
9
  expect(domain.source).toBe(schema)
9
10
  expect(domain.origin).toBe(schema.origin)
11
+ expect(domain.dependencies.kernel.origin).toBe(K.origin)
12
+ expect(domain.dependencies.kernel.revision).toBe(kernel.revision)
10
13
  })
11
14
  })