ganbatte-os 0.2.4 → 0.2.5

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.
@@ -19,7 +19,7 @@ const { execFileSync, execSync } = require('node:child_process');
19
19
  // Constantes
20
20
  // ---------------------------------------------------------------------------
21
21
 
22
- const VERSION = '0.2.0';
22
+ const VERSION = '0.2.2';
23
23
  const UPSTREAM_REMOTE = 'upstream';
24
24
  const UPSTREAM_BRANCH = 'main';
25
25
  const LOCAL_DIR = '.gos-local';
@@ -96,6 +96,13 @@ function getFlagValue(args, flag) {
96
96
  }
97
97
 
98
98
  function getRoot() {
99
+ const currentPath = path.resolve(__dirname);
100
+ // Se estiver dentro de node_modules/ganbatte-os/...
101
+ const npmIdx = currentPath.lastIndexOf(`node_modules${path.sep}ganbatte-os`);
102
+ if (npmIdx !== -1) {
103
+ return currentPath.slice(0, npmIdx + `node_modules${path.sep}ganbatte-os`.length);
104
+ }
105
+ // Fallback para desenvolvimento local (assumindo que o arquivo está em .gos/scripts/cli/)
99
106
  return path.resolve(__dirname, '..', '..', '..');
100
107
  }
101
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ganbatte-os",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Framework operacional para design-to-code, squads de entrega e sprint sync com ClickUp.",
5
5
  "bin": {
6
6
  "ganbatte-os": ".gos/scripts/cli/gos-cli.js",