gaia-framework 1.53.1 → 1.53.3
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 +1 -1
- package/bin/gaia-framework.js +23 -2
- 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
|
[]()
|
package/bin/gaia-framework.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
7
7
|
|
|
8
8
|
const { execSync, execFileSync } = require("child_process");
|
|
9
|
-
const { mkdtempSync, rmSync, existsSync } = require("fs");
|
|
9
|
+
const { mkdtempSync, rmSync, existsSync, realpathSync } = require("fs");
|
|
10
10
|
const { join } = require("path");
|
|
11
11
|
const { tmpdir } = require("os");
|
|
12
12
|
|
|
@@ -144,6 +144,17 @@ function main() {
|
|
|
144
144
|
|
|
145
145
|
// Clone the repo to a temp directory
|
|
146
146
|
tempDir = mkdtempSync(join(tmpdir(), "gaia-framework-"));
|
|
147
|
+
// Resolve 8.3 short names to long paths on Windows (e.g., ELIASN~1 → Elias Nasser)
|
|
148
|
+
// Node's realpathSync doesn't expand 8.3 names, so use PowerShell
|
|
149
|
+
if (IS_WINDOWS) {
|
|
150
|
+
try {
|
|
151
|
+
const longPath = execSync(
|
|
152
|
+
`powershell -NoProfile -Command "(Get-Item -LiteralPath '${tempDir}').FullName"`,
|
|
153
|
+
{ encoding: "utf8", stdio: ["pipe", "pipe", "ignore"] }
|
|
154
|
+
).trim();
|
|
155
|
+
if (longPath && existsSync(longPath)) tempDir = longPath;
|
|
156
|
+
} catch {}
|
|
157
|
+
}
|
|
147
158
|
|
|
148
159
|
// Register cleanup for all exit scenarios
|
|
149
160
|
process.on("exit", cleanup);
|
|
@@ -190,7 +201,17 @@ function main() {
|
|
|
190
201
|
try {
|
|
191
202
|
// Convert all passthrough args that look like paths (contain backslash or drive letter)
|
|
192
203
|
const posixArgs = passthrough.map(a => IS_WINDOWS && /[\\:]/.test(a) && !a.startsWith("--") ? toPosixPath(a) : a);
|
|
193
|
-
|
|
204
|
+
const posixScript = toPosixPath(scriptPath);
|
|
205
|
+
|
|
206
|
+
// Debug: on Windows, log the resolved paths if --verbose is passed
|
|
207
|
+
if (IS_WINDOWS && args.includes("--verbose")) {
|
|
208
|
+
info(`Bash: ${bashPath}`);
|
|
209
|
+
info(`Script (Windows): ${scriptPath}`);
|
|
210
|
+
info(`Script (POSIX): ${posixScript}`);
|
|
211
|
+
info(`Temp dir: ${tempDir}`);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
execFileSync(bashPath, [posixScript, ...posixArgs], {
|
|
194
215
|
stdio: "inherit",
|
|
195
216
|
env: { ...process.env, GAIA_SOURCE: toPosixPath(tempDir) },
|
|
196
217
|
});
|
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.53.
|
|
9
|
+
readonly VERSION="1.53.3"
|
|
10
10
|
readonly GITHUB_REPO="https://github.com/jlouage/Gaia-framework.git"
|
|
11
11
|
readonly MANIFEST_REL="_gaia/_config/manifest.yaml"
|
|
12
12
|
|