jettypod 4.4.14 → 4.4.15

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.
@@ -31,17 +31,22 @@ export interface Decision {
31
31
  created_at: string;
32
32
  }
33
33
 
34
- function getGitRoot(): string {
34
+ function getProjectRoot(): string {
35
+ // Use JETTYPOD_PROJECT_PATH if set (passed by jettypod CLI)
36
+ // Otherwise fall back to git root (for dev mode)
37
+ if (process.env.JETTYPOD_PROJECT_PATH) {
38
+ return process.env.JETTYPOD_PROJECT_PATH;
39
+ }
35
40
  try {
36
41
  return execSync('git rev-parse --show-toplevel', { encoding: 'utf-8' }).trim();
37
42
  } catch {
38
- throw new Error('Not in a git repository');
43
+ throw new Error('Not in a git repository and JETTYPOD_PROJECT_PATH not set');
39
44
  }
40
45
  }
41
46
 
42
47
  function getDbPath(): string {
43
- const gitRoot = getGitRoot();
44
- return path.join(gitRoot, '.jettypod', 'work.db');
48
+ const projectRoot = getProjectRoot();
49
+ return path.join(projectRoot, '.jettypod', 'work.db');
45
50
  }
46
51
 
47
52
  function getDb(): Database.Database {
package/jettypod.js CHANGED
@@ -1968,12 +1968,16 @@ switch (command) {
1968
1968
  const portAvailable = await isPortAvailable(DASHBOARD_PORT);
1969
1969
 
1970
1970
  if (portAvailable) {
1971
- // Start dashboard in background
1971
+ // Start dashboard in background with project path
1972
1972
  console.log('🚀 Starting dashboard...');
1973
1973
  const dashboardProcess = spawn('npm', ['run', 'dev', '--', '-p', String(DASHBOARD_PORT)], {
1974
1974
  cwd: dashboardPath,
1975
1975
  detached: true,
1976
- stdio: 'ignore'
1976
+ stdio: 'ignore',
1977
+ env: {
1978
+ ...process.env,
1979
+ JETTYPOD_PROJECT_PATH: process.cwd()
1980
+ }
1977
1981
  });
1978
1982
  dashboardProcess.unref();
1979
1983
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jettypod",
3
- "version": "4.4.14",
3
+ "version": "4.4.15",
4
4
  "description": "AI-powered development workflow manager with TDD, BDD, and automatic test generation",
5
5
  "main": "jettypod.js",
6
6
  "bin": {