create-astrale-domain 0.3.0-beta.13 → 0.3.0-beta.130

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.
Files changed (49) hide show
  1. package/README.md +14 -4
  2. package/dist/index.js +377 -110
  3. package/package.json +19 -9
  4. package/template/.gitignore.template +4 -1
  5. package/template/.variants/custom/README.md +12 -9
  6. package/template/.variants/custom/application.ts +17 -3
  7. package/template/.variants/custom/{views/app → frontend}/index.html +1 -0
  8. package/template/.variants/custom/frontend/main.ts +3 -0
  9. package/template/.variants/custom/frontend/package.json +11 -0
  10. package/template/.variants/custom/frontend/public/favicon.svg +4 -0
  11. package/template/.variants/custom/frontend/tsconfig.json +17 -0
  12. package/template/.variants/custom/schema/{application/index.ts → schema.ts} +2 -1
  13. package/template/.variants/custom/ui/application/__tests__/application.test.ts +9 -0
  14. package/template/.variants/custom/ui/application/index.ts +11 -0
  15. package/template/.variants/custom/views/application/__tests__/application.view.test.ts +15 -0
  16. package/template/.variants/custom/views/application/application.view.ts +7 -0
  17. package/template/.variants/custom/views/application/index.ts +1 -0
  18. package/template/.variants/custom/views/index.ts +1 -1
  19. package/template/.variants/custom/vite.config.ts +11 -2
  20. package/template/.variants/none/README.md +3 -1
  21. package/template/.variants/none/application.ts +7 -2
  22. package/template/.variants/none/schema/schema.ts +6 -0
  23. package/template/.variants/react/README.md +11 -9
  24. package/template/.variants/react/application.ts +17 -3
  25. package/template/.variants/react/frontend/index.html +1 -0
  26. package/template/.variants/react/frontend/package.json +7 -1
  27. package/template/.variants/react/frontend/public/favicon.svg +4 -0
  28. package/template/.variants/react/frontend/src/styles.css +1 -1
  29. package/template/.variants/react/frontend/tsconfig.json +19 -0
  30. package/template/.variants/react/schema/{application/index.ts → schema.ts} +2 -1
  31. package/template/.variants/react/vite.config.ts +2 -2
  32. package/template/CLAUDE.md +23 -2
  33. package/template/package.json +10 -24
  34. package/template/pnpm-workspace.yaml +12 -21
  35. package/template/runtime.ts +1 -2
  36. package/template/schema/__tests__/schema.test.ts +14 -0
  37. package/template/schema/index.ts +1 -1
  38. package/template/tests/datasets/demo.ts +21 -0
  39. package/template/tests/e2e/application.test.ts +1 -2
  40. package/template/tsconfig.json +7 -13
  41. package/template/.variants/custom/views/app/main.ts +0 -10
  42. package/template/.variants/custom/views/application/__tests__/routes.test.ts +0 -7
  43. package/template/.variants/custom/views/application/routes.ts +0 -12
  44. package/template/.variants/none/schema/application/index.ts +0 -5
  45. package/template/.variants/react/views/application/__tests__/routes.test.ts +0 -7
  46. package/template/.variants/react/views/application/routes.ts +0 -12
  47. package/template/.variants/react/views/index.ts +0 -1
  48. package/template/schema/application/__tests__/schema.test.ts +0 -11
  49. package/template/tsconfig.package.json +0 -29
package/README.md CHANGED
@@ -5,18 +5,28 @@ Official scaffolder for a new Astrale Domain project.
5
5
  During the SDK beta program, generate a project from the beta package set explicitly:
6
6
 
7
7
  ```bash
8
- npx -y create-astrale-domain@beta my-domain --yes
8
+ npx -y create-astrale-domain@beta my-domain --yes --instance development
9
9
  ```
10
10
 
11
11
  The generated project must resolve the SDK and deployment adapters from npm; it must not retain
12
12
  workspace links or repository-only source paths.
13
13
 
14
+ Managed generation requires an explicit Astrale instance and writes one installed `development`
15
+ Environment; authors add staging and production only when their distinct instances exist.
16
+ Cloudflare generation does not accept `--instance` and creates deploy-only development and
17
+ production Environments. In both cases `pnpm dev` watches and deploys `development` remotely; no
18
+ active instance, local Worker, Vite server, or tunnel is part of the standard Domain-author journey.
19
+ An installed frontend Environment still opens its default View through generic Project tooling;
20
+ stopping development closes only that local View session and retains the remote deployment and
21
+ installation.
22
+
14
23
  Generated projects have one package journey:
15
24
 
16
25
  ```bash
17
26
  pnpm pack
18
27
  ```
19
28
 
20
- The existing `astrale-domain package` command compiles the public Schema and independently loadable
21
- Runtime, normalizes emitted declarations to semantic SDK facades, and verifies the archive boundary.
22
- Deployment adapters remain development dependencies and are not part of the published Domain runtime.
29
+ The existing `astrale-domain package` command compiles only the public Schema contract, normalizes
30
+ emitted declarations to semantic SDK facades, and verifies the package boundary. Runtime, handlers,
31
+ Providers, frontend code, and deployment adapters remain implementation inputs and are not part of
32
+ the published Domain contract package.