@astrale-os/adapter-cloudflare 0.3.0 → 0.3.2
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/LICENSE +202 -0
- package/package.json +4 -4
- package/template/.agents/skills/astrale-cli/SKILL.md +633 -0
- package/template/.domain-studio/comments.json +4 -0
- package/template/.env.example +3 -6
- package/template/CLAUDE.md +8 -6
- package/template/README.md +28 -19
- package/template/client/__tests__/app.test.tsx +39 -248
- package/template/client/__tests__/harness.ts +0 -47
- package/template/client/__tests__/shell.test.ts +46 -0
- package/template/client/package.json +1 -1
- package/template/client/src/app.tsx +6 -8
- package/template/client/src/shell/index.ts +1 -0
- package/template/client/src/shell/transformers.ts +36 -33
- package/template/client/src/shell/use-node.ts +21 -13
- package/template/client/src/ui/index.ts +4 -7
- package/template/core/README.md +23 -0
- package/template/deps.ts +10 -9
- package/template/domain.ts +11 -9
- package/template/env.ts +3 -5
- package/template/functions/index.ts +14 -25
- package/template/icons.ts +25 -0
- package/template/integrations/README.md +22 -0
- package/template/package.json +3 -3
- package/template/runtime/index.ts +25 -72
- package/template/schema/index.ts +10 -10
- package/template/tsconfig.json +1 -0
- package/template/views/index.ts +15 -12
- package/template/client/__tests__/kernel.test.ts +0 -77
- package/template/client/__tests__/seam.test.tsx +0 -115
- package/template/client/src/status/components/StatusCard.tsx +0 -160
- package/template/client/src/status/components/index.ts +0 -1
- package/template/client/src/status/hooks/index.ts +0 -3
- package/template/client/src/status/hooks/useCheck.mutation.ts +0 -16
- package/template/client/src/status/hooks/useCheckable.query.ts +0 -72
- package/template/client/src/status/index.ts +0 -7
- package/template/client/src/status/status.api.ts +0 -29
- package/template/client/src/status/status.mappers.ts +0 -102
- package/template/client/src/status/status.types.ts +0 -26
- package/template/client/src/ui/StatusBadge.tsx +0 -31
- package/template/client/src/views/status.tsx +0 -28
- package/template/core/monitor/health.ts +0 -34
- package/template/core/monitor/index.ts +0 -9
- package/template/core/monitor/keys.ts +0 -41
- package/template/core/monitor/node.ts +0 -63
- package/template/integrations/prober/http.ts +0 -32
- package/template/integrations/prober/mock.ts +0 -18
- package/template/integrations/prober/port.ts +0 -26
- package/template/integrations/prober/registry.ts +0 -65
- package/template/runtime/monitoring/index.ts +0 -8
- package/template/runtime/monitoring/monitor/check.ts +0 -29
- package/template/runtime/monitoring/monitor/index.ts +0 -10
- package/template/runtime/monitoring/monitor/seed.ts +0 -104
- package/template/runtime/monitoring/monitor/watch.ts +0 -31
- package/template/runtime/monitoring/page/add.ts +0 -21
- package/template/runtime/monitoring/page/check.ts +0 -50
- package/template/runtime/monitoring/page/create.ts +0 -24
- package/template/runtime/monitoring/page/index.ts +0 -9
- package/template/runtime/shared.ts +0 -21
- package/template/schema/monitor.ts +0 -92
- package/template/views/status-page.ts +0 -16
- package/template/views/welcome.ts +0 -35
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `ui-status-page` — the domain's SPA view, mounted at `/ui/status-page` and
|
|
3
|
-
* served from the `client/` bundle. `viewFor: selfOf(StatusPage)` attaches a
|
|
4
|
-
* `view_for` edge to the `StatusPage` class meta-node, so the GUI offers this
|
|
5
|
-
* view for any StatusPage instance.
|
|
6
|
-
*/
|
|
7
|
-
import { selfOf } from '@astrale-os/kernel-dsl'
|
|
8
|
-
import { defineView } from '@astrale-os/sdk'
|
|
9
|
-
|
|
10
|
-
import { StatusPage } from '../schema/monitor'
|
|
11
|
-
|
|
12
|
-
export const statusPage = defineView({
|
|
13
|
-
auth: 'public',
|
|
14
|
-
mount: '/ui/status-page',
|
|
15
|
-
viewFor: selfOf(StatusPage),
|
|
16
|
-
})
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `welcome` — a lightweight inline-HTML View, rendered straight from the worker
|
|
3
|
-
* (no SPA, no client bundle, no shell handshake). Because it has a `render`, the
|
|
4
|
-
* SDK mounts a worker route and the View node's iframe points at
|
|
5
|
-
* `<publicUrl>/views/welcome`. Add a rich, shell-connected view by dropping a
|
|
6
|
-
* `client/` SPA in and binding a View to `/ui/<route>` instead.
|
|
7
|
-
*/
|
|
8
|
-
import { defineView } from '@astrale-os/sdk'
|
|
9
|
-
|
|
10
|
-
export const welcome = defineView({
|
|
11
|
-
auth: 'public',
|
|
12
|
-
render: ({ c }) =>
|
|
13
|
-
c.html(
|
|
14
|
-
`<!doctype html>
|
|
15
|
-
<html lang="en">
|
|
16
|
-
<head>
|
|
17
|
-
<meta charset="utf-8" />
|
|
18
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
19
|
-
<title>astrale domain</title>
|
|
20
|
-
<style>
|
|
21
|
-
body { font: 14px/1.6 system-ui, sans-serif; margin: 2rem; color: #111; max-width: 40rem; }
|
|
22
|
-
code { background: #f4f4f5; padding: 0.1rem 0.35rem; border-radius: 4px; }
|
|
23
|
-
h1 { font-size: 1.25rem; }
|
|
24
|
-
</style>
|
|
25
|
-
</head>
|
|
26
|
-
<body>
|
|
27
|
-
<h1>Your Astrale domain is live</h1>
|
|
28
|
-
<p>This inline-HTML view is rendered by the worker. The RPC surface and the
|
|
29
|
-
<code>seed</code> post-install hook run alongside it.</p>
|
|
30
|
-
<p>Edit <code>views/welcome.ts</code> to change this page — it hot-reloads at
|
|
31
|
-
the same URL.</p>
|
|
32
|
-
</body>
|
|
33
|
-
</html>`,
|
|
34
|
-
),
|
|
35
|
-
})
|