# Core workspace

[← Back to README](../README.md)

Support for TypeScript monorepos that ship as **one `core` resource**: `apps/*`, `lib/`, `configs/<app>/<side>.json`, built with tsdown and vite.

## New app / New lib

![New app dialog](images/core_app.png)

Right-click in the explorer inside a core, or use the palette:

- A kebab-case name (reserved names are refused)
- Which sides: client, server, shared
- Starter code: config files, an event from server to client, a chat command, a command that opens the UI
- For a lib: its side and its barrel export
- The files it will create are listed **before** anything is written

## Checks

- **Side import guard**: a client file that imports from a `server/` path (or the reverse) is flagged
- **Manifest sync**: K3 Studio suggests missing `files {}` globs, for client-required modules and for the built UI page's assets as `<folder>/**`
- **`ui_page` pointing at the dev server** shows a warning in the form and as a diagnostic, and the In-game UI card has a Dev server / Build switch
