@isomorph.ai/cli 0.8.0 → 0.8.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.
@@ -64,6 +64,17 @@ export function declarationWatcher(root, refile, output, filed) {
64
64
  }
65
65
  };
66
66
  }
67
+ /**
68
+ * Vite's bind, given on the command line so no app has to carry it in its
69
+ * config: the loopback origin proxies to 127.0.0.1 on a port picked per run
70
+ * (`allocatePorts`). CLI flags override `server.host`/`server.port`, so an
71
+ * adopted app whose vite.config never heard of ISOMORPH_VITE_PORT works
72
+ * unchanged — before this, every `init --adopt` app answered 502 on every
73
+ * page while `/_harbour/*` worked (three builder reports, 2026-09-16).
74
+ */
75
+ export function viteDevArguments(port) {
76
+ return ["--host", "127.0.0.1", "--port", String(port), "--strictPort"];
77
+ }
67
78
  /**
68
79
  * Starts the kit-managed Postgres and App Gateway, applies migrations, then
69
80
  * starts Vite and the loopback origin. Stopping retains the app's local data.
@@ -104,7 +115,7 @@ export async function startDev(root, options) {
104
115
  if (watched > 0)
105
116
  options.output(`Installed the Isomorph realtime outbox for ${watched} table(s) (isomorph.realtime change events).`);
106
117
  const origin = `http://127.0.0.1:${ports.origin}`;
107
- const npm = nodePackageCommand("npm", ["run", "dev"]);
118
+ const npm = nodePackageCommand("npm", ["run", "dev", "--", ...viteDevArguments(ports.vite)]);
108
119
  vite = spawn(npm.command, npm.args, { cwd: root, env: { ...env, ISOMORPH_LOCAL_ORIGIN: origin, ISOMORPH_VITE_PORT: String(ports.vite) }, stdio: ["ignore", "inherit", "inherit"] });
109
120
  vite.on("error", () => options.output("Vite could not be started; is npm installed and `npm install` done?"));
110
121
  await recordDevChildren(root, { ...(vite.pid ? { vite: vite.pid } : {}), ...(runtime.gatewayPid ? { gateway: runtime.gatewayPid } : {}) });
@@ -1,6 +1,6 @@
1
1
  export const PUBLISHED_KIT_BUNDLE = {
2
2
  "schema": "isomorph.kit-bundle/1.0",
3
- "kitVersion": "0.7.2",
3
+ "kitVersion": "0.8.2",
4
4
  "sdk": {
5
5
  "package": "@isomorph.ai/app-sdk",
6
6
  "version": "1.2.2",
@@ -8,21 +8,21 @@ export const PUBLISHED_KIT_BUNDLE = {
8
8
  "url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:8953bb7eb6846bcddf48fd5407c098a13c8ad2cf249d702c35b5666d5af0ad53"
9
9
  },
10
10
  "images": {
11
- "appGateway": "public.ecr.aws/y6t4p3i8/harbour-app-gateway@sha256:2779990e78ff2bd9802c0bce5dc8487a95e6ac7148621e26709df201d93eda80",
12
- "sessionFixture": "public.ecr.aws/y6t4p3i8/harbour-session-fixture@sha256:efe143ca983fc450cf598e28738a48c7f83e91631b5ab2af5148b919d68e8f78"
11
+ "appGateway": "public.ecr.aws/y6t4p3i8/harbour-app-gateway@sha256:b84a082180d9295e1fb4950231f2a858399a2d34855be02c6dc45df62d706903",
12
+ "sessionFixture": "public.ecr.aws/y6t4p3i8/harbour-session-fixture@sha256:8f65d7eacca39401142cd76b192d62a8f8db5805d27246142be8280d718ffa57"
13
13
  },
14
14
  "nativeRuntime": {
15
15
  "darwinArm64": {
16
- "url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:98857d8c93689295c63060f29ceae7d4879164fa6299fb53411dc61e4bcd487a",
17
- "sha256": "98857d8c93689295c63060f29ceae7d4879164fa6299fb53411dc61e4bcd487a"
16
+ "url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:8856a2392fd25bd6a7052cfcb04fbe3f57cb90bf4da2811f63f17ccb74e8846f",
17
+ "sha256": "8856a2392fd25bd6a7052cfcb04fbe3f57cb90bf4da2811f63f17ccb74e8846f"
18
18
  },
19
19
  "linuxX64": {
20
- "url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:c7f04ac6e9c1ec03a5204a5c80b5ac9a5d1a45e07191ecf25cc904256fee90a2",
21
- "sha256": "c7f04ac6e9c1ec03a5204a5c80b5ac9a5d1a45e07191ecf25cc904256fee90a2"
20
+ "url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:b07d3c7f1ece6164a711de4cd611d9dba73f230935aea89fdb9e58856a913fa4",
21
+ "sha256": "b07d3c7f1ece6164a711de4cd611d9dba73f230935aea89fdb9e58856a913fa4"
22
22
  },
23
23
  "windowsX64": {
24
- "url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:bf38cccfec86624a622284cfede1288ff1f353f0767f560d1068785595d72a02",
25
- "sha256": "bf38cccfec86624a622284cfede1288ff1f353f0767f560d1068785595d72a02"
24
+ "url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:4c7a72ed19ce3780b81350d8e33fa72bc7b67cf2619776c36559748e10b1ea2e",
25
+ "sha256": "4c7a72ed19ce3780b81350d8e33fa72bc7b67cf2619776c36559748e10b1ea2e"
26
26
  }
27
27
  },
28
28
  "brief": {
@@ -220,7 +220,7 @@ The kit's rules are in the \`isomorph\` skill that \`isomorph agent-setup\` inst
220
220
  const VITE_CONFIG = `import { defineConfig } from "vite";
221
221
  import react from "@vitejs/plugin-react";
222
222
 
223
- // \`isomorph dev\` fronts Vite with one loopback origin (the printed link) and sets ISOMORPH_VITE_PORT.
223
+ // \`isomorph dev\` fronts Vite with one loopback origin (the printed link) and passes --host/--port itself; this block only matters when you run \`vite\` directly.
224
224
  export default defineConfig({
225
225
  plugins: [react()],
226
226
  server: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isomorph.ai/cli",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Isomorph development kit CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -37,7 +37,7 @@
37
37
  "harbour": {
38
38
  "kitBundle": {
39
39
  "repository": "public.ecr.aws/y6t4p3i8/harbour-kit-bundle",
40
- "version": "0.7.2"
40
+ "version": "0.8.2"
41
41
  }
42
42
  }
43
43
  }