@nextclaw/ui 0.3.6 → 0.3.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @nextclaw/ui
2
2
 
3
+ ## 0.3.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Align UI host semantics with always-public runtime behavior.
8
+ - Treat `ui.host` as read-only in config metadata/hints.
9
+ - Set UI host schema default/placeholder to `0.0.0.0`.
10
+ - Add `readOnly` field to UI hint typings in core/server/ui packages.
11
+ - Clarify docs that CLI start paths enforce public UI host.
12
+
13
+ ## 0.3.7
14
+
15
+ ### Patch Changes
16
+
17
+ - Decouple dev orchestration from CLI runtime by moving `pnpm dev start` into a dedicated repo-level dev runner and Vite config, while keeping production CLI startup paths free of dev-only port/frontend handling.
18
+
19
+ Also remove `--frontend` and `--frontend-port` from `start`/`restart`/`serve` command options.
20
+
3
21
  ## 0.3.6
4
22
 
5
23
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/ui",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/api/types.ts CHANGED
@@ -88,6 +88,7 @@ export type ConfigUiHint = {
88
88
  advanced?: boolean;
89
89
  sensitive?: boolean;
90
90
  placeholder?: string;
91
+ readOnly?: boolean;
91
92
  };
92
93
 
93
94
  export type ConfigUiHints = Record<string, ConfigUiHint>;
package/vite.config.ts CHANGED
@@ -2,6 +2,9 @@ import { defineConfig } from 'vite';
2
2
  import react from '@vitejs/plugin-react';
3
3
  import path from 'path';
4
4
 
5
+ const apiBase = process.env.VITE_API_BASE ?? 'http://127.0.0.1:18792';
6
+ const wsBase = apiBase.replace(/^http/i, 'ws');
7
+
5
8
  export default defineConfig({
6
9
  plugins: [react()],
7
10
  resolve: {
@@ -10,14 +13,16 @@ export default defineConfig({
10
13
  }
11
14
  },
12
15
  server: {
13
- port: 5173,
16
+ host: '127.0.0.1',
17
+ port: 5174,
18
+ strictPort: true,
14
19
  proxy: {
15
20
  '/api': {
16
- target: 'http://127.0.0.1:18791',
21
+ target: apiBase,
17
22
  changeOrigin: true
18
23
  },
19
24
  '/ws': {
20
- target: 'ws://127.0.0.1:18791',
25
+ target: wsBase,
21
26
  ws: true
22
27
  }
23
28
  }