nextclaw 0.2.1 → 0.2.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/dist/cli/index.js CHANGED
@@ -3101,7 +3101,7 @@ program.command("ui").description(`Start the ${APP_NAME} UI with gateway`).optio
3101
3101
  }
3102
3102
  await startGateway({ uiOverrides, allowMissingProvider: true });
3103
3103
  });
3104
- program.command("start").description(`Start the ${APP_NAME} gateway + UI (backend + frontend)`).option("--ui-host <host>", "UI host").option("--ui-port <port>", "UI port").option("--frontend-port <port>", "UI frontend dev server port").option("--no-frontend", "Disable UI frontend dev server").option("--no-open", "Disable opening browser").action(async (opts) => {
3104
+ program.command("start").description(`Start the ${APP_NAME} gateway + UI (backend + optional frontend)`).option("--ui-host <host>", "UI host").option("--ui-port <port>", "UI port").option("--frontend", "Start UI frontend dev server", false).option("--frontend-port <port>", "UI frontend dev server port").option("--no-open", "Disable opening browser").action(async (opts) => {
3105
3105
  const uiOverrides = {
3106
3106
  enabled: true,
3107
3107
  open: false
@@ -3115,8 +3115,8 @@ program.command("start").description(`Start the ${APP_NAME} gateway + UI (backen
3115
3115
  const config = loadConfig();
3116
3116
  const uiConfig = resolveUiConfig(config, uiOverrides);
3117
3117
  const staticDir = resolveUiStaticDir();
3118
- const frontendPort = Number.isFinite(Number(opts.frontendPort)) ? Number(opts.frontendPort) : 5173;
3119
- const shouldStartFrontend = opts.frontend !== false;
3118
+ const shouldStartFrontend = Boolean(opts.frontend);
3119
+ const frontendPort = shouldStartFrontend && Number.isFinite(Number(opts.frontendPort)) ? Number(opts.frontendPort) : 5173;
3120
3120
  const frontendDir = shouldStartFrontend ? resolveUiFrontendDir() : null;
3121
3121
  let frontendUrl = null;
3122
3122
  if (shouldStartFrontend && frontendDir) {
@@ -3132,6 +3132,9 @@ program.command("start").description(`Start the ${APP_NAME} gateway + UI (backen
3132
3132
  if (!frontendUrl && staticDir) {
3133
3133
  frontendUrl = resolveUiApiBase(uiConfig.host, uiConfig.port);
3134
3134
  }
3135
+ if (!frontendUrl && staticDir) {
3136
+ frontendUrl = resolveUiApiBase(uiConfig.host, uiConfig.port);
3137
+ }
3135
3138
  if (opts.open && frontendUrl) {
3136
3139
  openBrowser(frontendUrl);
3137
3140
  } else if (opts.open && !frontendUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextclaw",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Lightweight personal AI assistant with CLI, multi-provider routing, and channel integrations.",
5
5
  "private": false,
6
6
  "type": "module",