@dhzh/foundry 1.5.0 → 2.0.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/README.md +2 -253
- package/package.json +8 -95
- package/LICENSE +0 -201
- package/dist/app/favicon.png +0 -0
- package/dist/app/index.html +0 -1
- package/dist/app/static/css/index.f4c40968ed.css +0 -2
- package/dist/app/static/font/inter-cyrillic-ext-wght-normal.460bdf14be.woff2 +0 -0
- package/dist/app/static/font/inter-cyrillic-wght-normal.491cbc05ce.woff2 +0 -0
- package/dist/app/static/font/inter-greek-ext-wght-normal.23aae5683d.woff2 +0 -0
- package/dist/app/static/font/inter-greek-wght-normal.4449bf7aab.woff2 +0 -0
- package/dist/app/static/font/inter-latin-ext-wght-normal.3835a68e46.woff2 +0 -0
- package/dist/app/static/font/inter-latin-wght-normal.6c596dfcdd.woff2 +0 -0
- package/dist/app/static/font/inter-vietnamese-wght-normal.113a630f76.woff2 +0 -0
- package/dist/app/static/js/110.f18ecb6e71.js +0 -2
- package/dist/app/static/js/110.f18ecb6e71.js.LICENSE.txt +0 -19
- package/dist/app/static/js/index.c5443edcce.js +0 -1
- package/dist/app/static/js/lib-react.2d16964d11.js +0 -2
- package/dist/app/static/js/lib-react.2d16964d11.js.LICENSE.txt +0 -49
- package/dist/app/static/js/lib-router.440ec6193a.js +0 -3
- package/dist/app/static/js/lib-router.440ec6193a.js.LICENSE.txt +0 -10
- package/dist/cli.d.mts +0 -2
- package/dist/cli.mjs +0 -26
- package/dist/index.d.mts +0 -5
- package/dist/index.mjs +0 -2
- package/dist/migrations/0000_initial-settings.sql +0 -26
- package/dist/migrations/0001_youthful_tigra.sql +0 -28
- package/dist/migrations/0002_brainy_patriot.sql +0 -15
- package/dist/migrations/0003_rename_provider_default_model.sql +0 -21
- package/dist/migrations/0004_neat_vulcan.sql +0 -18
- package/dist/migrations/meta/0000_snapshot.json +0 -103
- package/dist/migrations/meta/0001_snapshot.json +0 -240
- package/dist/migrations/meta/0002_snapshot.json +0 -306
- package/dist/migrations/meta/0004_snapshot.json +0 -402
- package/dist/migrations/meta/_journal.json +0 -41
- package/dist/package-DS5RZ0CH.mjs +0 -2
package/README.md
CHANGED
|
@@ -1,254 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @dhzh/foundry
|
|
2
2
|
|
|
3
|
-
Foundry
|
|
4
|
-
|
|
5
|
-
Foundry currently supports [OpenAI Codex](https://github.com/openai/codex) and [Claude Code](https://docs.anthropic.com/en/docs/claude-code). Prompt management is available in the Local Web UI. The Dashboard, Skills, and MCPs screens remain placeholders.
|
|
6
|
-
|
|
7
|
-
## Requirements
|
|
8
|
-
|
|
9
|
-
- Node.js `24.18.0` or newer within the Node 24 release line
|
|
10
|
-
- pnpm `11.22.0` or newer within the pnpm 11 release line for repository development
|
|
11
|
-
|
|
12
|
-
## Quick Start
|
|
13
|
-
|
|
14
|
-
Start the latest published Local Web UI without installing Foundry globally:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
pnpm dlx @dhzh/foundry@latest ui
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Foundry listens only on `127.0.0.1`, uses port `54321` by default, and opens the interface in the default browser. Stop it with `Ctrl+C`.
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
# Use another port.
|
|
24
|
-
pnpm dlx @dhzh/foundry@latest ui --port 61234
|
|
25
|
-
|
|
26
|
-
# Start without opening a browser.
|
|
27
|
-
pnpm dlx @dhzh/foundry@latest ui --no-open
|
|
28
|
-
|
|
29
|
-
# Show command help or the installed version.
|
|
30
|
-
pnpm dlx @dhzh/foundry@latest ui --help
|
|
31
|
-
pnpm dlx @dhzh/foundry@latest --version
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
| Option | Default | Description |
|
|
35
|
-
| --- | --- | --- |
|
|
36
|
-
| `--port <port>` | `54321` | Listen on a port from `1` through `65535`. |
|
|
37
|
-
| `--open` | enabled | Open the Local Web UI after the server starts. |
|
|
38
|
-
| `--no-open` | - | Keep the browser closed. |
|
|
39
|
-
|
|
40
|
-
Running `foundry` without a subcommand prints help and does not start a server.
|
|
41
|
-
|
|
42
|
-
## Current Capabilities
|
|
43
|
-
|
|
44
|
-
### Providers
|
|
45
|
-
|
|
46
|
-
A Provider is a saved model-service connection scoped to one Runtime. Foundry can:
|
|
47
|
-
|
|
48
|
-
- create, edit, copy, list, and soft-delete Codex and Claude Code Providers;
|
|
49
|
-
- store Runtime-specific endpoints, API keys, model selections, and optional presentation details;
|
|
50
|
-
- test a saved connection against the Provider's model-listing endpoint;
|
|
51
|
-
- apply or reapply a Provider directly from its card; and
|
|
52
|
-
- prevent deletion while the Provider is assigned to a Runtime.
|
|
53
|
-
|
|
54
|
-
Codex Providers use the Responses protocol and support a default model, optional review model, and optional API key. Claude Code Providers use the Messages protocol and support authentication-header selection, role models, subagent settings, model capabilities, and selected Claude Code feature flags.
|
|
55
|
-
|
|
56
|
-
### Runtimes
|
|
57
|
-
|
|
58
|
-
Foundry detects the `codex` and `claude` executables from `PATH`, reads their version, and manages these user-level configuration files. It honors each Runtime's configuration-directory environment variable and otherwise uses the standard home-directory location:
|
|
59
|
-
|
|
60
|
-
| Runtime | Environment override | Default configuration file |
|
|
61
|
-
| --- | --- | --- |
|
|
62
|
-
| Codex | `$CODEX_HOME/config.toml` | `~/.codex/config.toml` |
|
|
63
|
-
| Claude Code | `$CLAUDE_CONFIG_DIR/settings.json` | `~/.claude/settings.json` |
|
|
64
|
-
|
|
65
|
-
Before applying a saved Provider or Official Default, Foundry compares every managed field and separates proposed changes from unchanged fields. Long configuration paths, field names, and field values remain on one line and reveal the full value on hover when truncated. Applying a preview:
|
|
66
|
-
|
|
67
|
-
- preserves fields outside Foundry's managed field set;
|
|
68
|
-
- rejects the apply if the file changed after the preview was created;
|
|
69
|
-
- writes through a temporary file and atomically replaces the target;
|
|
70
|
-
- keeps the latest configuration backup beside the file with a `.foundry-backup` suffix; and
|
|
71
|
-
- records the selected Provider or Official Default as the Runtime Assignment.
|
|
72
|
-
|
|
73
|
-
Official Default removes Foundry-managed active selection fields while preserving unrelated configuration, saved Provider tables, and official account credentials. Foundry does not infer Runtime Assignments from configuration files changed outside the application.
|
|
74
|
-
|
|
75
|
-
### Prompts
|
|
76
|
-
|
|
77
|
-
A Prompt is a reusable text fragment stored in Foundry. Prompt management can:
|
|
78
|
-
|
|
79
|
-
- create, search, view, copy, edit, and soft-delete Prompts in a shallow list workflow;
|
|
80
|
-
- keep a title and optional description alongside the original content;
|
|
81
|
-
- preserve the exact source without variables, template evaluation, or version history;
|
|
82
|
-
- expose explicit View, Edit, Copy, and Delete actions on each list item, with View and Edit
|
|
83
|
-
sharing a Markdown source editor that does not render a preview; and
|
|
84
|
-
- warn before discarding unsaved dialog changes and save explicitly using last-writer-wins behavior.
|
|
85
|
-
|
|
86
|
-
Prompt content is limited to 1 MiB of UTF-8 data.
|
|
87
|
-
Deleted Prompts are hidden from the UI and exports but retained in the local
|
|
88
|
-
database. The Prompt workflow does not provide a Trash view or restore action.
|
|
89
|
-
|
|
90
|
-
### Settings
|
|
91
|
-
|
|
92
|
-
Application Settings currently contain a persisted Color Mode: System, Light, or Dark. The Settings page also owns Foundry data import and export.
|
|
93
|
-
|
|
94
|
-
## Local Web Routes
|
|
95
|
-
|
|
96
|
-
The Local Web UI uses hash routing, so browser navigation does not require server-side route fallbacks. Prompt management stays within the sidebar layout, and the header remains visible while page content scrolls. Settings and Provider forms use a focused standalone layout.
|
|
97
|
-
|
|
98
|
-
| Route | Status | Purpose |
|
|
99
|
-
| --- | --- | --- |
|
|
100
|
-
| `/#/` | Available | Redirects to the Dashboard. |
|
|
101
|
-
| `/#/dashboard` | Placeholder | Application entry point. |
|
|
102
|
-
| `/#/skills` | Placeholder | Future Skill management. |
|
|
103
|
-
| `/#/mcps` | Placeholder | Future MCP Server management. |
|
|
104
|
-
| `/#/prompts` | Available | Displays a searchable Prompt list and opens create/edit dialogs. |
|
|
105
|
-
| `/#/providers` | Available | Lists Providers by Runtime; accepts `?runtime=codex` or `?runtime=claude-code`. |
|
|
106
|
-
| `/#/providers/new` | Available | Creates a Provider. |
|
|
107
|
-
| `/#/providers/:providerId/edit` | Available | Edits an existing Provider. |
|
|
108
|
-
| `/#/providers/:providerId/copy` | Available | Creates a new Provider from an existing one. |
|
|
109
|
-
| `/#/runtimes` | Available | Detects and configures supported Runtimes. |
|
|
110
|
-
| `/#/settings` | Available | Changes Color Mode and imports or exports data. |
|
|
111
|
-
| any other hash route | Available | Renders the in-app Not Found page. |
|
|
112
|
-
|
|
113
|
-
The browser title also reports Foundry Server health as `Checking...`, `Healthy`, or `Unhealthy`.
|
|
114
|
-
|
|
115
|
-
## Data Import and Export
|
|
116
|
-
|
|
117
|
-
The Settings page exports all current Exportable Data as one timestamped `.foundry` file. The file is a ZIP-backed binary container intended for Foundry rather than manual editing; it is not encrypted.
|
|
118
|
-
|
|
119
|
-
| Module | Encoding | Exported data | Import behavior |
|
|
120
|
-
| --- | --- | --- | --- |
|
|
121
|
-
| `settings` | JSON | Application Settings | Overwrites current settings. |
|
|
122
|
-
| `providers` | JSON | All active Providers, including API keys and avatars | Appends new Providers, including duplicates. |
|
|
123
|
-
| `prompts` | JSON | All active Prompts | Appends new Prompts, including duplicates. |
|
|
124
|
-
|
|
125
|
-
Provider and Prompt database IDs and timestamps are omitted so the destination database can generate them. Deleted Providers, deleted Prompts, deletion metadata, Runtime Assignments, and other machine-specific operational state are not exported.
|
|
126
|
-
|
|
127
|
-
Each package contains a manifest with its format, creation time, Foundry version, and per-module path, media type, overwrite policy, byte size, and SHA-256 checksum. After a file is selected, Foundry validates the container, manifest, checksums, import policies, and supported module data without changing stored data. The Import dialog then lists every module and defaults valid, supported modules to selected; only the modules still selected when Import is confirmed are written. Selected modules are atomic but independent, so one module can fail without rolling back another module that imported successfully. Unknown and invalid modules remain visible but cannot be selected.
|
|
128
|
-
|
|
129
|
-
Because Provider API keys are stored in the export, keep `.foundry` files private and store them securely.
|
|
130
|
-
|
|
131
|
-
## Local Data and Safety
|
|
132
|
-
|
|
133
|
-
Foundry stores Provider records, Prompt records, Runtime Assignments, and Application Settings in one `foundry.sqlite` database in the operating system's application-data directory. The directory is resolved with [`env-paths`](https://github.com/sindresorhus/env-paths); on macOS the default database location is `~/Library/Application Support/foundry/foundry.sqlite`.
|
|
134
|
-
|
|
135
|
-
Provider API keys are stored in this local database. Access to the machine and its user account should therefore be treated as access to those credentials.
|
|
136
|
-
|
|
137
|
-
Database migrations run automatically when the server starts. Before applying pending migrations to an existing database, Foundry creates an online SQLite backup under the adjacent `backups/` directory and retains the newest migration backup. A database migrated by a newer or incompatible Foundry version is rejected instead of being silently changed.
|
|
138
|
-
|
|
139
|
-
The HTTP server is loopback-only and has no remote-listening mode or authentication layer. It should not be exposed through a reverse proxy or port-forwarding setup.
|
|
140
|
-
|
|
141
|
-
## HTTP API
|
|
142
|
-
|
|
143
|
-
The Local Web UI uses relative `/api` requests. The server currently exposes:
|
|
144
|
-
|
|
145
|
-
| Method | Path | Purpose |
|
|
146
|
-
| --- | --- | --- |
|
|
147
|
-
| `GET` | `/api/health` | Reports Foundry Server health. |
|
|
148
|
-
| `GET` | `/api/settings` | Reads Application Settings. |
|
|
149
|
-
| `PATCH` | `/api/settings` | Updates Application Settings. |
|
|
150
|
-
| `GET` | `/api/providers?runtime=:runtime` | Lists Provider summaries for `codex` or `claude-code`. |
|
|
151
|
-
| `POST` | `/api/providers` | Creates a Provider. |
|
|
152
|
-
| `GET` | `/api/providers/:providerId` | Reads full Provider configuration. |
|
|
153
|
-
| `PUT` | `/api/providers/:providerId` | Updates a Provider without changing its Runtime type. |
|
|
154
|
-
| `DELETE` | `/api/providers/:providerId` | Soft-deletes an unassigned Provider. |
|
|
155
|
-
| `POST` | `/api/providers/:providerId/copy` | Creates a Provider copy from submitted data. |
|
|
156
|
-
| `POST` | `/api/providers/:providerId/test-connection` | Runs a non-persistent Provider connection test. |
|
|
157
|
-
| `GET` | `/api/prompts?query=:query` | Lists Prompt summaries in most-recently-updated order, with optional text search. |
|
|
158
|
-
| `POST` | `/api/prompts` | Creates a Prompt. |
|
|
159
|
-
| `GET` | `/api/prompts/:promptId` | Reads a Prompt and its exact content. |
|
|
160
|
-
| `PUT` | `/api/prompts/:promptId` | Updates a Prompt. |
|
|
161
|
-
| `DELETE` | `/api/prompts/:promptId` | Soft-deletes a Prompt. |
|
|
162
|
-
| `GET` | `/api/runtimes` | Detects supported Runtimes and returns their assignments. |
|
|
163
|
-
| `POST` | `/api/runtimes/:runtime/preview` | Previews configuration changes for a Provider or Official Default. |
|
|
164
|
-
| `POST` | `/api/runtimes/:runtime/apply` | Applies an unchanged preview and records the Runtime Assignment. |
|
|
165
|
-
| `GET` | `/api/data/export` | Downloads the current `.foundry` export. |
|
|
166
|
-
| `POST` | `/api/data/import/inspect` | Validates a `.foundry` file from the raw request body and lists its modules without writing data. |
|
|
167
|
-
| `POST` | `/api/data/import?modules=:moduleIds` | Imports the selected comma-separated module IDs from a `.foundry` file in the raw request body. |
|
|
168
|
-
|
|
169
|
-
JSON success and business-result responses use a shared envelope:
|
|
170
|
-
|
|
171
|
-
```json
|
|
172
|
-
{
|
|
173
|
-
"status": "SUCCESS",
|
|
174
|
-
"data": true,
|
|
175
|
-
"message": "Service is healthy."
|
|
176
|
-
}
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
`message` is optional. Request validation failures use HTTP `400`; domain outcomes also carry a machine-readable `status` such as `PROMPT_NOT_FOUND`, `PROVIDER_NOT_FOUND`, or `RUNTIME_CONFIGURATION_CHANGED`. The export endpoint instead returns `application/octet-stream` with an attachment filename. Import requests are limited to 256 MiB.
|
|
180
|
-
|
|
181
|
-
The API is an internal local contract shared by the server and Local Web UI. It is not currently documented as a stable remote integration API.
|
|
182
|
-
|
|
183
|
-
## Development
|
|
184
|
-
|
|
185
|
-
Install dependencies from the repository root:
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
pnpm install
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
Start the Hono server on `http://127.0.0.1:54321`:
|
|
192
|
-
|
|
193
|
-
```bash
|
|
194
|
-
pnpm dev:server
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
In another terminal, start the React app on [http://localhost:12345](http://localhost:12345):
|
|
198
|
-
|
|
199
|
-
```bash
|
|
200
|
-
pnpm dev:app
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
Rsbuild proxies `/api` to the Hono development server. Other useful commands are:
|
|
204
|
-
|
|
205
|
-
| Command | Purpose |
|
|
206
|
-
| --- | --- |
|
|
207
|
-
| `pnpm dev:cli` | Runs the source CLI's `ui` command. |
|
|
208
|
-
| `pnpm test` | Runs Node tests and Chromium Browser Mode tests once. |
|
|
209
|
-
| `pnpm test:dev` | Runs Vitest in watch mode. |
|
|
210
|
-
| `pnpm test:coverage` | Runs tests with V8 coverage. |
|
|
211
|
-
| `pnpm lint` | Checks the workspace with ESLint. |
|
|
212
|
-
| `pnpm lint-fix` | Applies ESLint fixes. |
|
|
213
|
-
| `pnpm typecheck` | Type-checks the root TypeScript project. |
|
|
214
|
-
| `pnpm --filter @dhzh/foundry-app typecheck` | Type-checks the React app. |
|
|
215
|
-
| `pnpm build` | Builds the server/CLI package, migrations, and Local Web UI into `dist/`. |
|
|
216
|
-
| `pnpm db:generate` | Generates a new Drizzle migration after an approved schema change. |
|
|
217
|
-
| `pnpm release` | Starts the interactive version-bump workflow for maintainers. |
|
|
218
|
-
|
|
219
|
-
Run the full verification set before release:
|
|
220
|
-
|
|
221
|
-
```bash
|
|
222
|
-
pnpm test
|
|
223
|
-
pnpm lint
|
|
224
|
-
pnpm typecheck
|
|
225
|
-
pnpm --filter @dhzh/foundry-app typecheck
|
|
226
|
-
pnpm build
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
Pushing a `v*` tag triggers separate GitHub Actions workflows that create the GitHub release and publish `@dhzh/foundry` to npm with provenance.
|
|
230
|
-
|
|
231
|
-
## Repository Layout
|
|
232
|
-
|
|
233
|
-
- `src/cli/` - Citty CLI and the `foundry ui` command.
|
|
234
|
-
- `src/server/` - Loopback Hono server, persistence, HTTP handlers, Runtime configuration, static assets, and shutdown lifecycle.
|
|
235
|
-
- `app/` - Private React, Rsbuild, Tailwind CSS, shadcn/ui, and TanStack Query workspace for the Local Web UI.
|
|
236
|
-
- `packages/api-contract/` - Private shared runtime constants and TypeScript HTTP contracts; bundled into the published output.
|
|
237
|
-
- `drizzle/` - Forward-only SQLite migrations bundled with the package.
|
|
238
|
-
- `test/` - Node-side Vitest coverage for the CLI, server, persistence, and contracts.
|
|
239
|
-
- `app/test/` - Vitest Browser Mode coverage using Playwright and Chromium.
|
|
240
|
-
- `docs/adr/` - Architecture decision records for routing, server state, persistence, credentials, Runtime management, and export format.
|
|
241
|
-
- `docs/design/` and `docs/research/` - Detailed feature behavior and supporting technical research.
|
|
242
|
-
- `src/main/` - Earlier Skill subsystem code that is not wired into the current CLI, server, or Local Web UI entrypoints.
|
|
243
|
-
|
|
244
|
-
The published package contains the CLI, the minimal library entrypoint, bundled migrations, and the built Local Web UI. The private app and API-contract workspaces are not published as separate packages.
|
|
245
|
-
|
|
246
|
-
## Open Source Inspiration
|
|
247
|
-
|
|
248
|
-
Foundry is inspired by open-source projects that explore better ways to manage local AI development tools:
|
|
249
|
-
|
|
250
|
-
- [CC Switch](https://github.com/farion1231/cc-switch) - Inspiration for Provider management and local agent Runtime configuration workflows.
|
|
251
|
-
|
|
252
|
-
## License
|
|
253
|
-
|
|
254
|
-
Foundry is licensed under the [Apache License 2.0](./LICENSE).
|
|
3
|
+
Foundry release 2.0.1.
|
package/package.json
CHANGED
|
@@ -1,104 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhzh/foundry",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"devEngines": {
|
|
6
|
-
"packageManager": {
|
|
7
|
-
"name": "pnpm",
|
|
8
|
-
"version": "^11.22.0",
|
|
9
|
-
"onFail": "download"
|
|
10
|
-
},
|
|
11
|
-
"runtime": {
|
|
12
|
-
"name": "node",
|
|
13
|
-
"version": "^24.18.0",
|
|
14
|
-
"onFail": "download"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"description": "An AI-native local developer runtime for tools, skills, agents, and workflows.",
|
|
18
|
-
"author": {
|
|
19
|
-
"name": "tinywaves",
|
|
20
|
-
"email": "dhzhme@gmail.com"
|
|
21
|
-
},
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Foundry releases and the future Foundry CLI.",
|
|
22
5
|
"license": "Apache-2.0",
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"ai"
|
|
27
|
-
],
|
|
28
|
-
"exports": {
|
|
29
|
-
".": {
|
|
30
|
-
"types": "./dist/index.d.mts",
|
|
31
|
-
"import": "./dist/index.mjs"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"main": "./dist/index.mjs",
|
|
35
|
-
"types": "./dist/index.d.mts",
|
|
36
|
-
"bin": {
|
|
37
|
-
"foundry": "./dist/cli.mjs"
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/tinywaves/foundry.git"
|
|
38
9
|
},
|
|
10
|
+
"homepage": "https://github.com/tinywaves/foundry",
|
|
39
11
|
"files": [
|
|
40
12
|
"dist"
|
|
41
13
|
],
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"type": "git"
|
|
45
|
-
},
|
|
46
|
-
"sideEffects": false,
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"@commitlint/cli": "^21.2.2",
|
|
49
|
-
"@commitlint/config-conventional": "^21.2.2",
|
|
50
|
-
"@dhzh/eslint-config": "^2.6.1",
|
|
51
|
-
"@dhzh/foundry-api-contract": "0.0.0",
|
|
52
|
-
"@tailwindcss/vite": "4.3.3",
|
|
53
|
-
"@types/better-sqlite3": "^9.6.0",
|
|
54
|
-
"@types/node": "^26.2.0",
|
|
55
|
-
"@vitejs/plugin-react": "^6.1.1",
|
|
56
|
-
"@vitest/browser-playwright": "4.1.11",
|
|
57
|
-
"@vitest/coverage-v8": "^4.1.11",
|
|
58
|
-
"bumpp": "^12.2.1",
|
|
59
|
-
"changelogithub": "^15.0.4",
|
|
60
|
-
"drizzle-kit": "^0.31.10",
|
|
61
|
-
"eslint": "^10.9.0",
|
|
62
|
-
"husky": "^9.1.7",
|
|
63
|
-
"lint-staged": "^17.3.0",
|
|
64
|
-
"playwright": "^1.62.1",
|
|
65
|
-
"taze": "^21.1.0",
|
|
66
|
-
"tsdown": "^0.22.14",
|
|
67
|
-
"tsx": "^4.23.12",
|
|
68
|
-
"typescript": "^6.0.3",
|
|
69
|
-
"vitest": "^4.1.11",
|
|
70
|
-
"node": "runtime:^24.18.0"
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"@decimalturn/toml-patch": "^3.0.5",
|
|
74
|
-
"@hono/node-server": "^2.1.1",
|
|
75
|
-
"@hono/zod-validator": "^0.9.0",
|
|
76
|
-
"@zip.js/zip.js": "^2.12.0",
|
|
77
|
-
"better-sqlite3": "^13.0.3",
|
|
78
|
-
"citty": "^0.2.2",
|
|
79
|
-
"drizzle-orm": "^0.45.2",
|
|
80
|
-
"env-paths": "^4.0.0",
|
|
81
|
-
"hono": "^4.13.5",
|
|
82
|
-
"open": "^11.0.2",
|
|
83
|
-
"zod": "^4.5.4"
|
|
84
|
-
},
|
|
85
|
-
"scripts": {
|
|
86
|
-
"build": "pnpm run build:server && pnpm run build:app",
|
|
87
|
-
"build:app": "pnpm --filter @dhzh/foundry-app build",
|
|
88
|
-
"build:server": "tsdown",
|
|
89
|
-
"db:generate": "drizzle-kit generate",
|
|
90
|
-
"dev:app": "pnpm --filter @dhzh/foundry-app dev",
|
|
91
|
-
"dev:cli": "tsx src/cli/index.ts ui",
|
|
92
|
-
"dev:server": "tsx watch --clear-screen=false src/server/dev.ts",
|
|
93
|
-
"lint": "eslint",
|
|
94
|
-
"lint-fix": "eslint --fix",
|
|
95
|
-
"release": "bumpp",
|
|
96
|
-
"release:publish": "pnpm release && pnpm publish --access public",
|
|
97
|
-
"test": "vitest run",
|
|
98
|
-
"test:coverage": "pnpm run test --coverage",
|
|
99
|
-
"test:dev": "vitest",
|
|
100
|
-
"typecheck": "tsc --noEmit",
|
|
101
|
-
"version:update": "taze major",
|
|
102
|
-
"version:update:w": "taze major -w"
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
103
16
|
}
|
|
104
17
|
}
|
package/LICENSE
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [yyyy] [name of copyright owner]
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
package/dist/app/favicon.png
DELETED
|
Binary file
|
package/dist/app/index.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><link rel="icon" href="/favicon.png"><title>Foundry</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.2d16964d11.js"></script><script defer src="/static/js/lib-router.440ec6193a.js"></script><script defer src="/static/js/110.f18ecb6e71.js"></script><script defer src="/static/js/index.c5443edcce.js"></script><link href="/static/css/index.f4c40968ed.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|