@auroraflow/code 0.0.2 → 0.0.4
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/bin/aurora.js +22 -6
- package/package.json +7 -7
package/bin/aurora.js
CHANGED
|
@@ -25,6 +25,20 @@ const require = createRequire(import.meta.url);
|
|
|
25
25
|
const packageRoot = path.join(__dirname, "..");
|
|
26
26
|
const packageVersion = require(path.join(packageRoot, "package.json")).version;
|
|
27
27
|
const downloadBaseUrl = "https://downloads.auroramos.com";
|
|
28
|
+
const terminalTitle = "aurora";
|
|
29
|
+
|
|
30
|
+
process.title = terminalTitle;
|
|
31
|
+
|
|
32
|
+
function writeTerminalTitle(title) {
|
|
33
|
+
if (!process.stdout.isTTY) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const sanitized = title.replace(/[\x00-\x1f\x7f\x9b\x9c]/g, "").trim();
|
|
37
|
+
if (!sanitized) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
process.stdout.write(`\x1b]0;${sanitized}\x07`);
|
|
41
|
+
}
|
|
28
42
|
|
|
29
43
|
const PLATFORM_PACKAGE_BY_TARGET = {
|
|
30
44
|
"x86_64-unknown-linux-gnu": "@auroraflow/code-linux-x64",
|
|
@@ -290,12 +304,12 @@ if (existsSync(pathDir)) {
|
|
|
290
304
|
const updatedPath = getUpdatedPath(additionalDirs);
|
|
291
305
|
|
|
292
306
|
const env = { ...process.env, PATH: updatedPath };
|
|
293
|
-
|
|
294
|
-
env.
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
307
|
+
const auroraHome =
|
|
308
|
+
env.AURORA_HOME && env.AURORA_HOME.trim()
|
|
309
|
+
? env.AURORA_HOME
|
|
310
|
+
: path.join(homedir(), ".aurora");
|
|
311
|
+
env.AURORA_HOME = auroraHome;
|
|
312
|
+
env.CODEX_HOME = auroraHome;
|
|
299
313
|
const packageManagerEnvVar =
|
|
300
314
|
detectPackageManager() === "bun"
|
|
301
315
|
? "AURORA_MANAGED_BY_BUN"
|
|
@@ -311,6 +325,8 @@ if (packageManagerEnvVar === "AURORA_MANAGED_BY_BUN") {
|
|
|
311
325
|
}
|
|
312
326
|
env.CODEX_MANAGED_PACKAGE_ROOT = env.AURORA_MANAGED_PACKAGE_ROOT;
|
|
313
327
|
|
|
328
|
+
writeTerminalTitle(terminalTitle);
|
|
329
|
+
|
|
314
330
|
const child = spawn(binaryPath, process.argv.slice(2), {
|
|
315
331
|
stdio: "inherit",
|
|
316
332
|
env,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auroraflow/code",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Aurora Code is Aurora's local coding agent.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@auroraflow/code-linux-x64": "0.0.
|
|
24
|
-
"@auroraflow/code-linux-arm64": "0.0.
|
|
25
|
-
"@auroraflow/code-darwin-x64": "0.0.
|
|
26
|
-
"@auroraflow/code-darwin-arm64": "0.0.
|
|
27
|
-
"@auroraflow/code-win32-x64": "0.0.
|
|
28
|
-
"@auroraflow/code-win32-arm64": "0.0.
|
|
23
|
+
"@auroraflow/code-linux-x64": "0.0.4",
|
|
24
|
+
"@auroraflow/code-linux-arm64": "0.0.4",
|
|
25
|
+
"@auroraflow/code-darwin-x64": "0.0.4",
|
|
26
|
+
"@auroraflow/code-darwin-arm64": "0.0.4",
|
|
27
|
+
"@auroraflow/code-win32-x64": "0.0.4",
|
|
28
|
+
"@auroraflow/code-win32-arm64": "0.0.4"
|
|
29
29
|
}
|
|
30
30
|
}
|