From d4140c5bdf415abd23325dd2912b93e4f480829d Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 7 Aug 2026 15:38:49 +0000 Subject: [PATCH] =?UTF-8?q?docs(runner):=20=E5=88=A0=E6=8E=89=20README=20?= =?UTF-8?q?=E4=B8=A4=E5=A4=84=E8=99=9A=E6=9E=84=E8=83=BD=E5=8A=9B=E9=9D=A2?= =?UTF-8?q?,=E4=BF=AE=E6=AD=A3=20404=20=E6=96=87=E6=A1=A3=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=20(#3576)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `createRunner()` / `runner.config.js` 全仓零代码引用,包也没有任何库入口 (main/module/exports/types 全无),按 #3533 的口径清除;`/docs/runner` 是死路由,改成实际存在的 `/docs/utilities/runner`。 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01GTRjn8xBqp75dk7kFupVRt --- packages/runner/README.md | 58 ++++++++++++++------------------------- 1 file changed, 21 insertions(+), 37 deletions(-) diff --git a/packages/runner/README.md b/packages/runner/README.md index a7f5835610..4f4ca122e8 100644 --- a/packages/runner/README.md +++ b/packages/runner/README.md @@ -10,17 +10,22 @@ Universal Object UI Application Runner - A standalone development server and run - **Development Ready** - Built-in Vite development server - **Production Build** - Optimized build for deployment -## Installation +## Running the Runner -```bash -pnpm add @object-ui/runner -``` +The runner is an application, not a library: `package.json` declares no `main`, +`module`, `exports` or `types`, so there is nothing to `import` from +`@object-ui/runner`. You run it from a checkout of this repository: -## Usage +```bash +git clone https://github.com/objectstack-ai/objectui.git +cd objectui +pnpm install -### As a Development Tool +# Start the dev server on http://localhost:5173 +pnpm --filter @object-ui/runner dev +``` -The runner is primarily used for schema development and testing: +Inside `packages/runner`, the same scripts are available directly: ```bash # Start development server @@ -33,22 +38,6 @@ pnpm build pnpm preview ``` -### Programmatic Usage - -You can also use the runner as a library in your projects: - -```typescript -import { createRunner } from '@object-ui/runner'; - -const runner = createRunner({ - schema: mySchema, - plugins: ['kanban', 'charts'], - theme: 'light' -}); - -runner.mount('#app'); -``` - ## Pre-installed Plugins The runner comes with these plugins pre-configured: @@ -97,19 +86,14 @@ section of the docs. ## Configuration -Create a `runner.config.js` file to customize the runner: +There is no runner config file and no runner environment variables. The two surfaces +that do configure it are: -```javascript -export default { - port: 3000, - host: 'localhost', - plugins: ['kanban', 'charts'], - theme: { - primaryColor: '#3b82f6', - darkMode: true - } -}; -``` +- **`vite.config.ts`** — build options and the workspace alias table that lets the runner + boot straight from the monorepo sources. The dev server takes Vite's own defaults + (port 5173); change them with Vite's flags, e.g. `pnpm dev --port 3000`. +- **The `api` query parameter** — the metadata base URL, described under + [Metadata Loading](#metadata-loading) above. ## Development Workflow @@ -162,9 +146,9 @@ export default { } ``` -## API Reference +## Documentation -For detailed documentation, visit the [Object UI Documentation](https://www.objectui.org/docs/runner). +For detailed documentation, visit the [Object UI Documentation](https://www.objectui.org/docs/utilities/runner).