stagent 0.1.2 → 0.1.4
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.js
CHANGED
|
@@ -68,7 +68,7 @@ function buildNextLaunchArgs({
|
|
|
68
68
|
if (isPrebuilt) {
|
|
69
69
|
return ["start", "--hostname", host, "--port", String(port)];
|
|
70
70
|
}
|
|
71
|
-
return ["dev", "--
|
|
71
|
+
return ["dev", "--hostname", host, "--port", String(port)];
|
|
72
72
|
}
|
|
73
73
|
function buildSidecarUrl(port, host = SIDECAR_LOOPBACK_HOST) {
|
|
74
74
|
return `http://${host}:${port}`;
|
package/next.config.mjs
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import { dirname } from "path";
|
|
2
|
-
import { fileURLToPath } from "url";
|
|
3
|
-
|
|
4
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
5
|
-
|
|
6
1
|
/** @type {import('next').NextConfig} */
|
|
7
2
|
const nextConfig = {
|
|
8
3
|
serverExternalPackages: ["better-sqlite3"],
|
|
9
4
|
devIndicators: false,
|
|
10
|
-
turbopack: {
|
|
11
|
-
root: __dirname,
|
|
12
|
-
},
|
|
13
5
|
};
|
|
14
6
|
|
|
15
7
|
export default nextConfig;
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ describe("desktop sidecar launch helpers", () => {
|
|
|
48
48
|
isPrebuilt: false,
|
|
49
49
|
port: 3210,
|
|
50
50
|
}),
|
|
51
|
-
).toEqual(["dev", "--
|
|
51
|
+
).toEqual(["dev", "--hostname", "127.0.0.1", "--port", "3210"]);
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
it("resolves the real Next entrypoint instead of the .bin shim", () => {
|
|
@@ -77,7 +77,7 @@ export function buildNextLaunchArgs({
|
|
|
77
77
|
return ["start", "--hostname", host, "--port", String(port)];
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
return ["dev", "--
|
|
80
|
+
return ["dev", "--hostname", host, "--port", String(port)];
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
export function buildSidecarUrl(port: number, host = SIDECAR_LOOPBACK_HOST): string {
|