gencow 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/bin/gencow.mjs CHANGED
@@ -959,6 +959,14 @@ ${hasPrompt ? `
959
959
  try { unlinkSync(localServer); } catch { /* 처음 실행이면 파일 없음 */ }
960
960
  copyFileSync(bundledServer, localServer);
961
961
 
962
+ // 대시보드 static 파일도 .gencow/dashboard/ 에 복사
963
+ const cliRoot = resolve(findServerRoot(), "..");
964
+ const dashboardSource = resolve(cliRoot, "dashboard");
965
+ const dashboardDest = resolve(process.cwd(), ".gencow", "dashboard");
966
+ if (existsSync(dashboardSource) && !existsSync(dashboardDest)) {
967
+ cpSync(dashboardSource, dashboardDest, { recursive: true });
968
+ }
969
+
962
970
  proc = spawn("bun", ["--watch", localServer], {
963
971
  cwd: process.cwd(),
964
972
  stdio: "inherit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gencow",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Gencow — Backend OS for AI Agents",
5
5
  "type": "module",
6
6
  "bin": {
package/server/index.js CHANGED
@@ -12846,6 +12846,8 @@ async function main() {
12846
12846
  resolve3(process.cwd(), "node_modules/gencow/dashboard"),
12847
12847
  // bundled with server package
12848
12848
  resolve3(import.meta.dirname, "../dashboard"),
12849
+ // standalone: .gencow/dashboard/ (CLI copies dashboard here alongside server.js)
12850
+ resolve3(import.meta.dirname, "dashboard"),
12849
12851
  // functions dir sibling (standalone project: gencow/ next to dashboard/)
12850
12852
  ...process.env.GENCOW_FUNCTIONS ? [resolve3(process.env.GENCOW_FUNCTIONS, "../node_modules/gencow/dashboard")] : []
12851
12853
  ];
@@ -12908,8 +12910,7 @@ async function main() {
12908
12910
  fetch: app.fetch,
12909
12911
  websocket: websocket2
12910
12912
  });
12911
- const dashboardPort = process.env.DASHBOARD_PORT || 5100;
12912
- const dashboardUrl = dashboardEmbedded ? `http://localhost:${port}/_dashboard` : `http://localhost:${dashboardPort}`;
12913
+ const dashboardUrl = `http://localhost:${port}/_dashboard`;
12913
12914
  console.log(`
12914
12915
  \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
12915
12916
  \u2551 \u{1F680} Gencow API Server Running \u2551