stagent 0.1.1 → 0.1.3

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
@@ -63,12 +63,15 @@ function resolveNextEntrypoint(cwd, exists = existsSync) {
63
63
  function buildNextLaunchArgs({
64
64
  isPrebuilt,
65
65
  port,
66
- host = SIDECAR_LOOPBACK_HOST
66
+ host = SIDECAR_LOOPBACK_HOST,
67
+ turbopack = true
67
68
  }) {
68
69
  if (isPrebuilt) {
69
70
  return ["start", "--hostname", host, "--port", String(port)];
70
71
  }
71
- return ["dev", "--turbopack", "--hostname", host, "--port", String(port)];
72
+ const args = ["dev", "--hostname", host, "--port", String(port)];
73
+ if (turbopack) args.push("--turbopack");
74
+ return args;
72
75
  }
73
76
  function buildSidecarUrl(port, host = SIDECAR_LOOPBACK_HOST) {
74
77
  return `http://${host}:${port}`;
@@ -462,7 +465,8 @@ async function main() {
462
465
  const isPrebuilt = existsSync2(join3(effectiveCwd, ".next", "BUILD_ID"));
463
466
  const nextArgs = buildNextLaunchArgs({
464
467
  isPrebuilt,
465
- port: actualPort
468
+ port: actualPort,
469
+ turbopack: effectiveCwd === appDir
466
470
  });
467
471
  const sidecarUrl = buildSidecarUrl(actualPort);
468
472
  console.log(`Stagent ${pkg.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stagent",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Governed desktop AI agent workspace for supervised local execution, workflows, documents, and provider runtimes.",
5
5
  "keywords": [
6
6
  "ai",
@@ -62,6 +62,7 @@
62
62
  "@dnd-kit/sortable": "^10.0.0",
63
63
  "@dnd-kit/utilities": "^3.2.2",
64
64
  "@hookform/resolvers": "^5.2.2",
65
+ "@tailwindcss/postcss": "^4",
65
66
  "@tailwindcss/typography": "^0.5",
66
67
  "better-sqlite3": "^12",
67
68
  "class-variance-authority": "^0.7.1",
@@ -89,10 +90,11 @@
89
90
  "tailwind-merge": "^3",
90
91
  "tw-animate-css": "^1",
91
92
  "xlsx": "^0.18.5",
93
+ "tailwindcss": "^4",
94
+ "typescript": "^5",
92
95
  "zod": "^4.3.6"
93
96
  },
94
97
  "devDependencies": {
95
- "@tailwindcss/postcss": "^4",
96
98
  "@testing-library/dom": "^10.4.1",
97
99
  "@testing-library/jest-dom": "^6.9.1",
98
100
  "@testing-library/react": "^16.3.2",
@@ -105,9 +107,7 @@
105
107
  "@vitest/coverage-v8": "^4.0.18",
106
108
  "drizzle-kit": "^0.30",
107
109
  "jsdom": "^28.1.0",
108
- "tailwindcss": "^4",
109
110
  "tsup": "^8.5",
110
- "typescript": "^5",
111
111
  "vitest": "^4.0.18"
112
112
  }
113
113
  }
@@ -42,13 +42,23 @@ describe("desktop sidecar launch helpers", () => {
42
42
  ).toEqual(["start", "--hostname", "127.0.0.1", "--port", "3210"]);
43
43
  });
44
44
 
45
- it("launches Next on loopback for development builds", () => {
45
+ it("launches Next on loopback for development builds with turbopack", () => {
46
46
  expect(
47
47
  buildNextLaunchArgs({
48
48
  isPrebuilt: false,
49
49
  port: 3210,
50
50
  }),
51
- ).toEqual(["dev", "--turbopack", "--hostname", "127.0.0.1", "--port", "3210"]);
51
+ ).toEqual(["dev", "--hostname", "127.0.0.1", "--port", "3210", "--turbopack"]);
52
+ });
53
+
54
+ it("launches Next without turbopack when turbopack is false", () => {
55
+ expect(
56
+ buildNextLaunchArgs({
57
+ isPrebuilt: false,
58
+ port: 3210,
59
+ turbopack: false,
60
+ }),
61
+ ).toEqual(["dev", "--hostname", "127.0.0.1", "--port", "3210"]);
52
62
  });
53
63
 
54
64
  it("resolves the real Next entrypoint instead of the .bin shim", () => {
@@ -68,16 +68,20 @@ export function buildNextLaunchArgs({
68
68
  isPrebuilt,
69
69
  port,
70
70
  host = SIDECAR_LOOPBACK_HOST,
71
+ turbopack = true,
71
72
  }: {
72
73
  isPrebuilt: boolean;
73
74
  port: number;
74
75
  host?: string;
76
+ turbopack?: boolean;
75
77
  }): string[] {
76
78
  if (isPrebuilt) {
77
79
  return ["start", "--hostname", host, "--port", String(port)];
78
80
  }
79
81
 
80
- return ["dev", "--turbopack", "--hostname", host, "--port", String(port)];
82
+ const args = ["dev", "--hostname", host, "--port", String(port)];
83
+ if (turbopack) args.push("--turbopack");
84
+ return args;
81
85
  }
82
86
 
83
87
  export function buildSidecarUrl(port: number, host = SIDECAR_LOOPBACK_HOST): string {