@astrale-os/adapter-cloudflare 0.4.9 → 0.5.0-beta.1
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/dist/build/codegen/identity.d.ts.map +1 -0
- package/dist/build/codegen/identity.js.map +1 -0
- package/dist/build/codegen/merge.d.ts.map +1 -0
- package/dist/build/codegen/merge.js.map +1 -0
- package/dist/build/codegen/worker.d.ts +12 -0
- package/dist/build/codegen/worker.d.ts.map +1 -0
- package/dist/build/codegen/worker.js +40 -0
- package/dist/build/codegen/worker.js.map +1 -0
- package/dist/{codegen → build/codegen}/wrangler.d.ts +6 -3
- package/dist/build/codegen/wrangler.d.ts.map +1 -0
- package/dist/{codegen → build/codegen}/wrangler.js +29 -10
- package/dist/build/codegen/wrangler.js.map +1 -0
- package/dist/build/frontend.d.ts +26 -0
- package/dist/build/frontend.d.ts.map +1 -0
- package/dist/build/frontend.js +263 -0
- package/dist/build/frontend.js.map +1 -0
- package/dist/{build.js → build/index.d.ts} +5 -4
- package/dist/build/index.d.ts.map +1 -0
- package/dist/{build.d.ts → build/index.js} +5 -5
- package/dist/build/index.js.map +1 -0
- package/dist/{parse-output.d.ts → build/parse-output.d.ts} +2 -0
- package/dist/build/parse-output.d.ts.map +1 -0
- package/dist/{parse-output.js → build/parse-output.js} +5 -0
- package/dist/build/parse-output.js.map +1 -0
- package/dist/build/prepare.d.ts +18 -0
- package/dist/build/prepare.d.ts.map +1 -0
- package/dist/build/prepare.js +117 -0
- package/dist/build/prepare.js.map +1 -0
- package/dist/build/worker.d.ts +15 -0
- package/dist/build/worker.d.ts.map +1 -0
- package/dist/build/worker.js +21 -0
- package/dist/build/worker.js.map +1 -0
- package/dist/{wrangler-cli.d.ts → build/wrangler-cli.d.ts} +8 -0
- package/dist/build/wrangler-cli.d.ts.map +1 -0
- package/dist/{wrangler-cli.js → build/wrangler-cli.js} +28 -4
- package/dist/build/wrangler-cli.js.map +1 -0
- package/dist/cloudflare.d.ts +21 -24
- package/dist/cloudflare.d.ts.map +1 -1
- package/dist/cloudflare.js +125 -191
- package/dist/cloudflare.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/params.d.ts +13 -16
- package/dist/params.d.ts.map +1 -1
- package/dist/worker/index.d.ts +48 -0
- package/dist/worker/index.d.ts.map +1 -0
- package/dist/worker/index.js +186 -0
- package/dist/worker/index.js.map +1 -0
- package/package.json +13 -5
- package/src/build/codegen/worker.ts +53 -0
- package/src/{codegen → build/codegen}/wrangler.ts +34 -12
- package/src/build/frontend.ts +324 -0
- package/src/{build.ts → build/index.ts} +17 -4
- package/src/{parse-output.ts → build/parse-output.ts} +6 -0
- package/src/build/prepare.ts +161 -0
- package/src/build/worker.ts +37 -0
- package/src/{wrangler-cli.ts → build/wrangler-cli.ts} +44 -6
- package/src/cloudflare.ts +153 -223
- package/src/index.ts +4 -4
- package/src/params.ts +13 -17
- package/src/worker/index.ts +278 -0
- package/src/worker/tsconfig.json +10 -0
- package/template/astrale.config.ts +7 -7
- package/dist/assets-pack.d.ts +0 -8
- package/dist/assets-pack.d.ts.map +0 -1
- package/dist/assets-pack.js +0 -30
- package/dist/assets-pack.js.map +0 -1
- package/dist/build.d.ts.map +0 -1
- package/dist/build.js.map +0 -1
- package/dist/client.d.ts +0 -17
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -59
- package/dist/client.js.map +0 -1
- package/dist/codegen/identity.d.ts.map +0 -1
- package/dist/codegen/identity.js.map +0 -1
- package/dist/codegen/merge.d.ts.map +0 -1
- package/dist/codegen/merge.js.map +0 -1
- package/dist/codegen/worker.d.ts +0 -51
- package/dist/codegen/worker.d.ts.map +0 -1
- package/dist/codegen/worker.js +0 -120
- package/dist/codegen/worker.js.map +0 -1
- package/dist/codegen/wrangler.d.ts.map +0 -1
- package/dist/codegen/wrangler.js.map +0 -1
- package/dist/parse-output.d.ts.map +0 -1
- package/dist/parse-output.js.map +0 -1
- package/dist/wrangler-cli.d.ts.map +0 -1
- package/dist/wrangler-cli.js.map +0 -1
- package/src/assets-pack.ts +0 -32
- package/src/client.ts +0 -89
- package/src/codegen/worker.ts +0 -136
- package/template/.env.example +0 -9
- package/template/CLAUDE.md +0 -13
- package/template/README.md +0 -47
- package/template/client/__tests__/app.test.tsx +0 -15
- package/template/client/components.json +0 -25
- package/template/client/index.html +0 -12
- package/template/client/package.json +0 -35
- package/template/client/src/app.tsx +0 -52
- package/template/client/src/components/ui/cn.ts +0 -6
- package/template/client/src/main.tsx +0 -9
- package/template/client/src/styles.css +0 -78
- package/template/client/tsconfig.json +0 -26
- package/template/client/vite.config.ts +0 -22
- package/template/client/vitest.config.ts +0 -13
- package/template/core/README.md +0 -7
- package/template/deps.ts +0 -9
- package/template/domain.ts +0 -11
- package/template/env.ts +0 -8
- package/template/icons.ts +0 -4
- package/template/integrations/README.md +0 -7
- package/template/oxlint.config.ts +0 -1
- package/template/package.json +0 -57
- package/template/pnpm-workspace.yaml +0 -44
- package/template/runtime/index.ts +0 -8
- package/template/schema/index.ts +0 -10
- package/template/simulation/README.md +0 -12
- package/template/tsconfig.json +0 -28
- package/template/vitest.config.ts +0 -7
- /package/dist/{codegen → build/codegen}/identity.d.ts +0 -0
- /package/dist/{codegen → build/codegen}/identity.js +0 -0
- /package/dist/{codegen → build/codegen}/merge.d.ts +0 -0
- /package/dist/{codegen → build/codegen}/merge.js +0 -0
- /package/src/{codegen → build/codegen}/identity.ts +0 -0
- /package/src/{codegen → build/codegen}/merge.ts +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createRoot } from 'react-dom/client'
|
|
2
|
-
|
|
3
|
-
import './styles.css'
|
|
4
|
-
import { App } from '@/app'
|
|
5
|
-
|
|
6
|
-
const root = document.getElementById('root')
|
|
7
|
-
if (!root) throw new Error('astrale view client: #root missing from index.html')
|
|
8
|
-
|
|
9
|
-
createRoot(root).render(<App />)
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
@import 'tailwindcss';
|
|
2
|
-
@import 'tw-animate-css';
|
|
3
|
-
@import 'shadcn/tailwind.css';
|
|
4
|
-
@import '@fontsource-variable/instrument-sans';
|
|
5
|
-
@import '@fontsource/ibm-plex-mono/400.css';
|
|
6
|
-
|
|
7
|
-
@custom-variant dark (&:is(.dark *));
|
|
8
|
-
|
|
9
|
-
:root {
|
|
10
|
-
color-scheme: dark;
|
|
11
|
-
--background: oklch(0.145 0.008 65);
|
|
12
|
-
--foreground: oklch(0.93 0.012 78);
|
|
13
|
-
--card: oklch(0.18 0.009 65);
|
|
14
|
-
--card-foreground: var(--foreground);
|
|
15
|
-
--popover: oklch(0.19 0.009 65);
|
|
16
|
-
--popover-foreground: var(--foreground);
|
|
17
|
-
--primary: oklch(0.76 0.12 75);
|
|
18
|
-
--primary-foreground: oklch(0.17 0.01 65);
|
|
19
|
-
--secondary: oklch(0.23 0.01 65);
|
|
20
|
-
--secondary-foreground: var(--foreground);
|
|
21
|
-
--muted: oklch(0.22 0.008 65);
|
|
22
|
-
--muted-foreground: oklch(0.66 0.012 75);
|
|
23
|
-
--accent: oklch(0.25 0.012 65);
|
|
24
|
-
--accent-foreground: var(--foreground);
|
|
25
|
-
--destructive: oklch(0.65 0.18 25);
|
|
26
|
-
--border: oklch(0.285 0.01 65);
|
|
27
|
-
--input: oklch(0.29 0.01 65);
|
|
28
|
-
--ring: var(--primary);
|
|
29
|
-
--radius: 0.625rem;
|
|
30
|
-
--font-sans: 'Instrument Sans Variable', sans-serif;
|
|
31
|
-
--font-mono: 'IBM Plex Mono', monospace;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@theme inline {
|
|
35
|
-
--font-sans: var(--font-sans);
|
|
36
|
-
--font-mono: var(--font-mono);
|
|
37
|
-
--color-ring: var(--ring);
|
|
38
|
-
--color-input: var(--input);
|
|
39
|
-
--color-border: var(--border);
|
|
40
|
-
--color-destructive: var(--destructive);
|
|
41
|
-
--color-accent-foreground: var(--accent-foreground);
|
|
42
|
-
--color-accent: var(--accent);
|
|
43
|
-
--color-muted-foreground: var(--muted-foreground);
|
|
44
|
-
--color-muted: var(--muted);
|
|
45
|
-
--color-secondary-foreground: var(--secondary-foreground);
|
|
46
|
-
--color-secondary: var(--secondary);
|
|
47
|
-
--color-primary-foreground: var(--primary-foreground);
|
|
48
|
-
--color-primary: var(--primary);
|
|
49
|
-
--color-popover-foreground: var(--popover-foreground);
|
|
50
|
-
--color-popover: var(--popover);
|
|
51
|
-
--color-card-foreground: var(--card-foreground);
|
|
52
|
-
--color-card: var(--card);
|
|
53
|
-
--color-foreground: var(--foreground);
|
|
54
|
-
--color-background: var(--background);
|
|
55
|
-
--radius-sm: calc(var(--radius) - 4px);
|
|
56
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
57
|
-
--radius-lg: var(--radius);
|
|
58
|
-
--radius-xl: calc(var(--radius) + 4px);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@layer base {
|
|
62
|
-
* {
|
|
63
|
-
@apply border-border outline-ring/50;
|
|
64
|
-
}
|
|
65
|
-
html,
|
|
66
|
-
body,
|
|
67
|
-
#root {
|
|
68
|
-
min-height: 100%;
|
|
69
|
-
}
|
|
70
|
-
body {
|
|
71
|
-
@apply bg-background text-foreground font-sans antialiased;
|
|
72
|
-
margin: 0;
|
|
73
|
-
}
|
|
74
|
-
code,
|
|
75
|
-
kbd {
|
|
76
|
-
@apply font-mono;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
-
"jsx": "react-jsx",
|
|
8
|
-
"types": ["vite/client", "vitest/globals"],
|
|
9
|
-
"strict": true,
|
|
10
|
-
"noEmit": true,
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"isolatedModules": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"verbatimModuleSyntax": true,
|
|
15
|
-
"paths": { "@/*": ["./src/*"] }
|
|
16
|
-
},
|
|
17
|
-
"include": [
|
|
18
|
-
"src/**/*.ts",
|
|
19
|
-
"src/**/*.tsx",
|
|
20
|
-
"__tests__/**/*.ts",
|
|
21
|
-
"__tests__/**/*.tsx",
|
|
22
|
-
"vite.config.ts",
|
|
23
|
-
"vitest.config.ts"
|
|
24
|
-
],
|
|
25
|
-
"exclude": ["node_modules", "../.dist"]
|
|
26
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import tailwindcss from '@tailwindcss/vite'
|
|
2
|
-
import viteReact from '@vitejs/plugin-react'
|
|
3
|
-
import { fileURLToPath } from 'node:url'
|
|
4
|
-
import { defineConfig } from 'vite'
|
|
5
|
-
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
base: '/ui/',
|
|
8
|
-
plugins: [viteReact(), tailwindcss()],
|
|
9
|
-
resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
|
|
10
|
-
build: {
|
|
11
|
-
outDir: '../.dist',
|
|
12
|
-
emptyOutDir: true,
|
|
13
|
-
sourcemap: false,
|
|
14
|
-
},
|
|
15
|
-
// `pnpm dev:hmr` — set `VIEW_DEV_URL=http://127.0.0.1:5173` in the worker's
|
|
16
|
-
// `.dev.vars` to proxy `/ui/*` here and get React HMR.
|
|
17
|
-
server: {
|
|
18
|
-
host: '127.0.0.1',
|
|
19
|
-
port: 5173,
|
|
20
|
-
cors: true,
|
|
21
|
-
},
|
|
22
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import viteReact from '@vitejs/plugin-react'
|
|
2
|
-
import { fileURLToPath } from 'node:url'
|
|
3
|
-
import { defineConfig } from 'vitest/config'
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [viteReact()],
|
|
7
|
-
resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
|
|
8
|
-
test: {
|
|
9
|
-
environment: 'happy-dom',
|
|
10
|
-
globals: true,
|
|
11
|
-
include: ['__tests__/**/*.test.{ts,tsx}', 'src/**/*.test.{ts,tsx}'],
|
|
12
|
-
},
|
|
13
|
-
})
|
package/template/core/README.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Core
|
|
2
|
-
|
|
3
|
-
Pure, deterministic domain logic only. Organize it by bounded context and keep kernel calls, network
|
|
4
|
-
I/O, clocks, randomness, and environment access in `runtime/` or `integrations/`.
|
|
5
|
-
|
|
6
|
-
Paths, domain errors, defaults, validation, and projections belong with the bounded context that owns
|
|
7
|
-
them. Delete this file after adding the first context.
|
package/template/deps.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Env } from '#env'
|
|
2
|
-
|
|
3
|
-
/** Typed dependencies available to runtime methods, functions, and views. */
|
|
4
|
-
export interface Deps extends Env {}
|
|
5
|
-
|
|
6
|
-
/** Build long-lived ports and adapters here when the first integration is added. */
|
|
7
|
-
export function deps(env: Env): Deps {
|
|
8
|
-
return env
|
|
9
|
-
}
|
package/template/domain.ts
DELETED
package/template/env.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Cloudflare bindings and secrets available to the domain worker. */
|
|
2
|
-
export interface Env {
|
|
3
|
-
WORKER_URL?: string
|
|
4
|
-
ASSETS?: { fetch(request: Request): Promise<Response> }
|
|
5
|
-
SELF?: { fetch(request: Request): Promise<Response> }
|
|
6
|
-
VIEW_DEV_URL?: string
|
|
7
|
-
[key: string]: unknown
|
|
8
|
-
}
|
package/template/icons.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Wrap raw SVG paths for a schema class icon. Keep each named icon with its bounded context. */
|
|
2
|
-
export function icon(paths: string): string {
|
|
3
|
-
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">${paths}</svg>`
|
|
4
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Integrations
|
|
2
|
-
|
|
3
|
-
External-system ports and adapters live here, grouped by the system they integrate with. Runtime code
|
|
4
|
-
depends on narrow ports; adapters own network I/O and vendor SDKs. Simulation fakes belong under
|
|
5
|
-
`simulation/`, not beside production adapters.
|
|
6
|
-
|
|
7
|
-
Delete this file after adding the first integration.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '@astrale-os/sdk/linter/oxlint-config'
|
package/template/package.json
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "astrale-domain",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"workspaces": [
|
|
6
|
-
"client"
|
|
7
|
-
],
|
|
8
|
-
"type": "module",
|
|
9
|
-
"imports": {
|
|
10
|
-
"#core/*": "./core/*.ts",
|
|
11
|
-
"#deps": "./deps.ts",
|
|
12
|
-
"#env": "./env.ts",
|
|
13
|
-
"#functions": "./functions/index.ts",
|
|
14
|
-
"#functions/*": "./functions/*.ts",
|
|
15
|
-
"#integrations/*": "./integrations/*.ts",
|
|
16
|
-
"#runtime": "./runtime/index.ts",
|
|
17
|
-
"#runtime/*": "./runtime/*.ts",
|
|
18
|
-
"#schema": "./schema/index.ts",
|
|
19
|
-
"#simulation/*": "./simulation/*.ts",
|
|
20
|
-
"#views": "./views/index.ts"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"dev": "astrale-domain dev",
|
|
24
|
-
"prod": "astrale-domain prod",
|
|
25
|
-
"deploy": "astrale-domain deploy",
|
|
26
|
-
"build": "astrale-domain build",
|
|
27
|
-
"lint": "astrale-domain lint",
|
|
28
|
-
"lint:fix": "astrale-domain lint --fix",
|
|
29
|
-
"typecheck": "tsgo --noEmit",
|
|
30
|
-
"test": "vitest run --config vitest.config.ts --passWithNoTests"
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"@astrale-os/adapter-cloudflare": ">=0.4.4 <1.0.0",
|
|
34
|
-
"@astrale-os/kernel-core": ">=0.7.5 <1.0.0",
|
|
35
|
-
"@astrale-os/kernel-dsl": ">=0.1.4 <1.0.0",
|
|
36
|
-
"@astrale-os/sdk": ">=0.4.9 <1.0.0",
|
|
37
|
-
"@hono/node-server": "^1.19.0",
|
|
38
|
-
"zod": "^4.3.6"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@astrale-os/ox": ">=0.1.3 <1.0.0",
|
|
42
|
-
"@types/node": "^22.0.0",
|
|
43
|
-
"@typescript/native-preview": "latest",
|
|
44
|
-
"oxlint": ">=1.72.0 <2.0.0",
|
|
45
|
-
"typescript": "~6.0.1-rc",
|
|
46
|
-
"vitest": "^3.2.4",
|
|
47
|
-
"wrangler": ">=4.106.0 <5.0.0"
|
|
48
|
-
},
|
|
49
|
-
"engines": {
|
|
50
|
-
"node": ">=22"
|
|
51
|
-
},
|
|
52
|
-
"trustedDependencies": [
|
|
53
|
-
"esbuild",
|
|
54
|
-
"sharp",
|
|
55
|
-
"workerd"
|
|
56
|
-
]
|
|
57
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# The client SPA (served under /ui/*) is a workspace package, so a single
|
|
2
|
-
# `pnpm install` at the project root installs both the domain and the client.
|
|
3
|
-
packages:
|
|
4
|
-
- 'client'
|
|
5
|
-
|
|
6
|
-
# pnpm blocks dependency build scripts by default; these need their postinstall
|
|
7
|
-
# to run (workerd is wrangler's runtime — without it `pnpm dev`/`pnpm prod`
|
|
8
|
-
# fail). Both spellings are set because pnpm renamed the key: v10 reads
|
|
9
|
-
# `onlyBuiltDependencies`, v11+ reads `allowBuilds`; each ignores the other.
|
|
10
|
-
onlyBuiltDependencies:
|
|
11
|
-
- esbuild
|
|
12
|
-
- sharp
|
|
13
|
-
- workerd
|
|
14
|
-
allowBuilds:
|
|
15
|
-
esbuild: true
|
|
16
|
-
sharp: true
|
|
17
|
-
workerd: true
|
|
18
|
-
# Explicit `false` for the @astrale-os no-op preinstalls — without these,
|
|
19
|
-
# `pnpm add` of a new version re-prompts and writes placeholder entries here.
|
|
20
|
-
'@astrale-os/kernel-api': false
|
|
21
|
-
'@astrale-os/kernel-client': false
|
|
22
|
-
'@astrale-os/kernel-core': false
|
|
23
|
-
'@astrale-os/kernel-dsl': false
|
|
24
|
-
'@astrale-os/kernel-server': false
|
|
25
|
-
'@astrale-os/sdk': false
|
|
26
|
-
'@astrale-os/shell': false
|
|
27
|
-
'@astrale-os/shell-react': false
|
|
28
|
-
|
|
29
|
-
# @astrale-os packages ship a guarded no-op preinstall (a workspace-dev guard
|
|
30
|
-
# that exits instantly outside the monorepo); declare them intentionally
|
|
31
|
-
# ignored so pnpm's build gate stays quiet.
|
|
32
|
-
ignoredBuiltDependencies:
|
|
33
|
-
- '@astrale-os/kernel-api'
|
|
34
|
-
- '@astrale-os/kernel-client'
|
|
35
|
-
- '@astrale-os/kernel-core'
|
|
36
|
-
- '@astrale-os/kernel-dsl'
|
|
37
|
-
- '@astrale-os/kernel-server'
|
|
38
|
-
- '@astrale-os/sdk'
|
|
39
|
-
- '@astrale-os/shell'
|
|
40
|
-
- '@astrale-os/shell-react'
|
|
41
|
-
|
|
42
|
-
# pnpm v11 gates `pnpm run` on a deps-status check that misfires on the
|
|
43
|
-
# ignored preinstalls above.
|
|
44
|
-
verifyDepsBeforeRun: false
|
package/template/schema/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { defineSchema, KernelSchema } from '@astrale-os/kernel-core'
|
|
2
|
-
import { compileDomain, type Domain } from '@astrale-os/kernel-core/domain'
|
|
3
|
-
|
|
4
|
-
export const schema = defineSchema('astrale-domain.example.dev', {
|
|
5
|
-
interfaces: {},
|
|
6
|
-
classes: {},
|
|
7
|
-
imports: [KernelSchema],
|
|
8
|
-
})
|
|
9
|
-
|
|
10
|
-
export const D: Domain<typeof schema> = compileDomain(schema)
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Simulation
|
|
2
|
-
|
|
3
|
-
Keep domain-level samples and real business scenarios here, organized by bounded context:
|
|
4
|
-
|
|
5
|
-
```text
|
|
6
|
-
simulation/
|
|
7
|
-
samples/<context>/
|
|
8
|
-
scenarios/<business-flow>.test.ts
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Use Vitest for scenarios. Prefer the real schema, handlers, and kernel test harness; fake only external
|
|
12
|
-
systems. Demo data must never leak into core data or install hooks.
|
package/template/tsconfig.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
-
"types": ["node"],
|
|
8
|
-
"strict": true,
|
|
9
|
-
"noEmit": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"verbatimModuleSyntax": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"resolveJsonModule": true
|
|
14
|
-
},
|
|
15
|
-
"include": [
|
|
16
|
-
"schema",
|
|
17
|
-
"core",
|
|
18
|
-
"integrations",
|
|
19
|
-
"runtime",
|
|
20
|
-
"deps.ts",
|
|
21
|
-
"env.ts",
|
|
22
|
-
"domain.ts",
|
|
23
|
-
"icons.ts",
|
|
24
|
-
"astrale.config.ts",
|
|
25
|
-
"vitest.config.ts"
|
|
26
|
-
],
|
|
27
|
-
"exclude": ["node_modules", ".astrale", ".dist"]
|
|
28
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|