@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.
|
|
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:
|
|
12
|
-
"sessionFixture": "public.ecr.aws/y6t4p3i8/harbour-session-fixture@sha256:
|
|
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:
|
|
17
|
-
"sha256": "
|
|
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:
|
|
21
|
-
"sha256": "
|
|
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:
|
|
25
|
-
"sha256": "
|
|
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
|
|
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.
|
|
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.
|
|
40
|
+
"version": "0.8.2"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|