gaia-framework 1.27.3 → 1.27.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.
- package/README.md +2 -2
- package/bin/gaia-framework.js +35 -1
- package/gaia-install.sh +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GAIA — Generative Agile Intelligence Architecture
|
|
2
2
|
|
|
3
|
-
[]()
|
|
4
4
|
[]()
|
|
5
5
|
[]()
|
|
6
6
|
[]()
|
|
@@ -429,7 +429,7 @@ The single source of truth is `_gaia/_config/global.yaml`:
|
|
|
429
429
|
|
|
430
430
|
```yaml
|
|
431
431
|
framework_name: "GAIA"
|
|
432
|
-
framework_version: "1.27.
|
|
432
|
+
framework_version: "1.27.5"
|
|
433
433
|
user_name: "your-name"
|
|
434
434
|
project_name: "your-project"
|
|
435
435
|
```
|
package/bin/gaia-framework.js
CHANGED
|
@@ -12,11 +12,35 @@ const { tmpdir } = require("os");
|
|
|
12
12
|
|
|
13
13
|
const REPO_URL = "https://github.com/jlouage/Gaia-framework.git";
|
|
14
14
|
const SCRIPT_NAME = "gaia-install.sh";
|
|
15
|
+
const IS_WINDOWS = process.platform === "win32";
|
|
15
16
|
|
|
16
17
|
let tempDir = null;
|
|
17
18
|
|
|
18
19
|
// ─── Helpers ────────────────────────────────────────────────────────────────
|
|
19
20
|
|
|
21
|
+
function findBash() {
|
|
22
|
+
if (!IS_WINDOWS) return "bash";
|
|
23
|
+
|
|
24
|
+
// Try bash in PATH first (WSL, Git Bash in PATH, etc.)
|
|
25
|
+
try {
|
|
26
|
+
execSync("bash --version", { stdio: "ignore" });
|
|
27
|
+
return "bash";
|
|
28
|
+
} catch {}
|
|
29
|
+
|
|
30
|
+
// Try Git for Windows default locations
|
|
31
|
+
const gitBashPaths = [
|
|
32
|
+
join(process.env.ProgramFiles || "C:\\Program Files", "Git", "bin", "bash.exe"),
|
|
33
|
+
join(process.env["ProgramFiles(x86)"] || "C:\\Program Files (x86)", "Git", "bin", "bash.exe"),
|
|
34
|
+
join(process.env.LOCALAPPDATA || "", "Programs", "Git", "bin", "bash.exe"),
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
for (const p of gitBashPaths) {
|
|
38
|
+
if (existsSync(p)) return p;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
|
|
20
44
|
function fail(message) {
|
|
21
45
|
console.error(`\x1b[31m✖\x1b[0m ${message}`);
|
|
22
46
|
process.exit(1);
|
|
@@ -135,10 +159,20 @@ function main() {
|
|
|
135
159
|
// Insert --source right after the command
|
|
136
160
|
passthrough.splice(1, 0, "--source", tempDir);
|
|
137
161
|
|
|
162
|
+
// Locate bash (critical for Windows support)
|
|
163
|
+
const bashPath = findBash();
|
|
164
|
+
if (!bashPath) {
|
|
165
|
+
fail(
|
|
166
|
+
"bash is required but was not found.\n" +
|
|
167
|
+
" On Windows, install Git for Windows (https://git-scm.com/downloads/win)\n" +
|
|
168
|
+
" which includes bash. Then re-run this command."
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
138
172
|
info("Running installer...\n");
|
|
139
173
|
|
|
140
174
|
try {
|
|
141
|
-
execFileSync(
|
|
175
|
+
execFileSync(bashPath, [scriptPath, ...passthrough], {
|
|
142
176
|
stdio: "inherit",
|
|
143
177
|
env: { ...process.env, GAIA_SOURCE: tempDir },
|
|
144
178
|
});
|
package/gaia-install.sh
CHANGED
|
@@ -6,7 +6,7 @@ set -euo pipefail
|
|
|
6
6
|
# Installs, updates, validates, and reports on GAIA installations.
|
|
7
7
|
# ─────────────────────────────────────────────────────────────────────────────
|
|
8
8
|
|
|
9
|
-
readonly VERSION="1.27.
|
|
9
|
+
readonly VERSION="1.27.5"
|
|
10
10
|
readonly GITHUB_REPO="https://github.com/jlouage/Gaia-framework.git"
|
|
11
11
|
readonly MANIFEST_REL="_gaia/_config/manifest.yaml"
|
|
12
12
|
|