@codemation/cli 0.0.13 → 0.0.15

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.
@@ -1698,12 +1698,17 @@ var CliDevProxyServer = class {
1698
1698
  return;
1699
1699
  }
1700
1700
  if (pathname.startsWith("/api/")) {
1701
- if (this.activeBuildStatus === "building" || !this.activeRuntime) {
1701
+ const runtimeTarget = this.activeRuntime;
1702
+ if (pathname === "/api/dev/bootstrap-summary" && runtimeTarget) {
1703
+ this.proxy.web(req, res, { target: `http://127.0.0.1:${runtimeTarget.httpPort}` });
1704
+ return;
1705
+ }
1706
+ if (this.activeBuildStatus === "building" || !runtimeTarget) {
1702
1707
  res.writeHead(503, { "content-type": "text/plain" });
1703
1708
  res.end("Runtime is rebuilding.");
1704
1709
  return;
1705
1710
  }
1706
- this.proxy.web(req, res, { target: `http://127.0.0.1:${this.activeRuntime.httpPort}` });
1711
+ this.proxy.web(req, res, { target: `http://127.0.0.1:${runtimeTarget.httpPort}` });
1707
1712
  return;
1708
1713
  }
1709
1714
  if (uiProxyTarget) {
package/dist/bin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as CliBin } from "./CliBin-BAnFX1wL.js";
1
+ import { t as CliBin } from "./CliBin-BkY_gChN.js";
2
2
  import process from "node:process";
3
3
  import "reflect-metadata";
4
4
 
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as CliProgram, i as CliPathResolver, n as CliProgramFactory, o as ConsumerOutputBuilder, r as CodemationCliApplicationSession, s as ConsumerBuildOptionsParser, t as CliBin } from "./CliBin-BAnFX1wL.js";
1
+ import { a as CliProgram, i as CliPathResolver, n as CliProgramFactory, o as ConsumerOutputBuilder, r as CodemationCliApplicationSession, s as ConsumerBuildOptionsParser, t as CliBin } from "./CliBin-BkY_gChN.js";
2
2
  import { CodemationPluginDiscovery } from "@codemation/host/server";
3
3
 
4
4
  export { CliBin, CliPathResolver, CliProgram, CliProgramFactory, CodemationCliApplicationSession, CodemationPluginDiscovery, ConsumerBuildOptionsParser, ConsumerOutputBuilder };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemation/cli",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,8 +37,8 @@
37
37
  "reflect-metadata": "^0.2.2",
38
38
  "typescript": "^5.9.3",
39
39
  "ws": "^8.19.0",
40
- "@codemation/host": "0.0.13",
41
- "@codemation/next-host": "0.0.13"
40
+ "@codemation/host": "0.0.15",
41
+ "@codemation/next-host": "0.0.15"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/http-proxy": "^1.17.15",
@@ -172,13 +172,20 @@ export class CliDevProxyServer {
172
172
  return;
173
173
  }
174
174
  if (pathname.startsWith("/api/")) {
175
- if (this.activeBuildStatus === "building" || !this.activeRuntime) {
175
+ const runtimeTarget = this.activeRuntime;
176
+ if (pathname === "/api/dev/bootstrap-summary" && runtimeTarget) {
177
+ this.proxy.web(req, res, {
178
+ target: `http://127.0.0.1:${runtimeTarget.httpPort}`,
179
+ });
180
+ return;
181
+ }
182
+ if (this.activeBuildStatus === "building" || !runtimeTarget) {
176
183
  res.writeHead(503, { "content-type": "text/plain" });
177
184
  res.end("Runtime is rebuilding.");
178
185
  return;
179
186
  }
180
187
  this.proxy.web(req, res, {
181
- target: `http://127.0.0.1:${this.activeRuntime.httpPort}`,
188
+ target: `http://127.0.0.1:${runtimeTarget.httpPort}`,
182
189
  });
183
190
  return;
184
191
  }