ganbatte-os 0.2.3 → 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.
|
|
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
|
|
|
@@ -8,27 +8,19 @@ const required = [
|
|
|
8
8
|
'AGENTS.md',
|
|
9
9
|
'CLAUDE.md',
|
|
10
10
|
'GEMINI.md',
|
|
11
|
-
'prompts/01-search.md',
|
|
12
|
-
'prompts/02-spec.md',
|
|
13
|
-
'prompts/03-tasks.md',
|
|
14
|
-
'prompts/04-code.md',
|
|
15
|
-
'prompts/05-reviews.md',
|
|
16
|
-
'integrations/registry.json',
|
|
17
|
-
'integrations/claude/command-map.json',
|
|
18
|
-
'integrations/codex/command-map.json',
|
|
19
|
-
'integrations/opencode/command-map.json',
|
|
20
|
-
'integrations/antigravity/command-map.json',
|
|
21
|
-
'integrations/gemini/command-map.json',
|
|
22
|
-
'integrations/cursor/command-map.json',
|
|
23
|
-
'integrations/kilo-code/command-map.json'
|
|
24
|
-
'.claude/commands/gos/agents/dev.md',
|
|
25
|
-
'.claude/commands/gos/skills/design-to-code.md',
|
|
26
|
-
'.codex/skills/gos-design-to-code.md',
|
|
27
|
-
'.gemini/skills/gos-design-to-code/SKILL.md',
|
|
28
|
-
'.opencode/skills/gos-design-to-code/SKILL.md',
|
|
29
|
-
'.antigravity/instructions.md',
|
|
30
|
-
'.cursor/rules/g-os.mdc',
|
|
31
|
-
'.kilocode/rules/g-os.md'
|
|
11
|
+
'.gos/prompts/01-search.md',
|
|
12
|
+
'.gos/prompts/02-spec.md',
|
|
13
|
+
'.gos/prompts/03-tasks.md',
|
|
14
|
+
'.gos/prompts/04-code.md',
|
|
15
|
+
'.gos/prompts/05-reviews.md',
|
|
16
|
+
'.gos/integrations/registry.json',
|
|
17
|
+
'.gos/integrations/claude/command-map.json',
|
|
18
|
+
'.gos/integrations/codex/command-map.json',
|
|
19
|
+
'.gos/integrations/opencode/command-map.json',
|
|
20
|
+
'.gos/integrations/antigravity/command-map.json',
|
|
21
|
+
'.gos/integrations/gemini/command-map.json',
|
|
22
|
+
'.gos/integrations/cursor/command-map.json',
|
|
23
|
+
'.gos/integrations/kilo-code/command-map.json'
|
|
32
24
|
];
|
|
33
25
|
|
|
34
26
|
const missing = required.filter((entry) => !fs.existsSync(path.join(root, entry)));
|