@dhzh/foundry 0.0.1-beta.5 → 0.0.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/README.md +26 -7
- package/dist/web/assets/index-Bvd0nW7-.js +57 -0
- package/dist/web/assets/index-CmSUOmMW.css +2 -0
- package/dist/web/index.html +14 -1
- package/package.json +4 -4
- package/dist/web/static/js/index.300bfdc7eb.js +0 -1
- package/dist/web/static/js/lib-react.a25c831319.js +0 -2
- package/dist/web/static/js/lib-react.a25c831319.js.LICENSE.txt +0 -59
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ An AI-native local developer runtime for tools, skills, agents, and workflows.
|
|
|
4
4
|
|
|
5
5
|
## Setup
|
|
6
6
|
|
|
7
|
+
Requires Node.js `^24.18.0` and pnpm `^11.9.0`.
|
|
8
|
+
|
|
7
9
|
```sh
|
|
8
10
|
pnpm install
|
|
9
11
|
```
|
|
@@ -21,18 +23,31 @@ The CLI serves the built Web UI at `http://127.0.0.1:7777` (static files from `d
|
|
|
21
23
|
|
|
22
24
|
## Web UI
|
|
23
25
|
|
|
24
|
-
The Web UI lives in [`packages/web/`](packages/web/)
|
|
26
|
+
The Web UI lives in [`packages/web/`](packages/web/) (workspace package `web`): Vite 8, React 19, [React Router](https://reactrouter.com) 8, Tailwind CSS v4, and [shadcn/ui](https://ui.shadcn.com) (`base-luma` style on `@base-ui/react`).
|
|
25
27
|
|
|
26
28
|
From the repo root:
|
|
27
29
|
|
|
28
30
|
```sh
|
|
29
|
-
pnpm run dev:web #
|
|
30
|
-
pnpm run build:web # production build → dist/web/
|
|
31
|
-
pnpm run preview:web # preview production build locally
|
|
31
|
+
pnpm run dev:web # Vite dev server → http://localhost:5173
|
|
32
|
+
pnpm run build:web # typecheck + production build → dist/web/
|
|
32
33
|
pnpm run dev:cli # CLI watch mode (run build:web once first)
|
|
33
34
|
```
|
|
34
35
|
|
|
35
|
-
Inside `packages/web/`,
|
|
36
|
+
Inside `packages/web/`, use `pnpm run dev` and `pnpm run build`.
|
|
37
|
+
|
|
38
|
+
### shadcn/ui
|
|
39
|
+
|
|
40
|
+
Config: [`packages/web/components.json`](packages/web/components.json). Add components from `packages/web/`:
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
pnpm dlx shadcn@latest add button
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Components are copied into `packages/web/src/components/ui/`.
|
|
47
|
+
|
|
48
|
+
### Routing
|
|
49
|
+
|
|
50
|
+
Client-side routing uses `react-router` (^8). Define routes under `packages/web/src/` and mount the router from `main.tsx`.
|
|
36
51
|
|
|
37
52
|
## Project layout
|
|
38
53
|
|
|
@@ -40,11 +55,15 @@ Inside `packages/web/`, the same workflows use `pnpm run dev`, `build`, and `pre
|
|
|
40
55
|
|------|------|
|
|
41
56
|
| `src/cli/` | CLI source (`cac` + Hono) |
|
|
42
57
|
| `packages/web/` | Web UI workspace package |
|
|
58
|
+
| `packages/web/src/components/ui/` | shadcn/ui components |
|
|
59
|
+
| `.agents/skills/` | Agent skills for shadcn workflows |
|
|
43
60
|
| `bin/index.js` | Published CLI entry → `dist/cli/index.mjs` |
|
|
44
61
|
| `dist/cli/` | Bundled CLI |
|
|
45
62
|
| `dist/web/` | Web UI build output (embedded in npm tarball) |
|
|
46
63
|
|
|
47
64
|
## Learn more
|
|
48
65
|
|
|
49
|
-
- [
|
|
50
|
-
- [
|
|
66
|
+
- [Vite documentation](https://vite.dev)
|
|
67
|
+
- [React Router documentation](https://reactrouter.com)
|
|
68
|
+
- [shadcn/ui documentation](https://ui.shadcn.com)
|
|
69
|
+
- [Repository guidelines for agents](AGENTS.md)
|