@atlas-coder/atlas-agent 0.2.5 → 0.2.6
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/atlas-coder.js +7 -1
- package/package.json +1 -1
package/bin/atlas-coder.js
CHANGED
|
@@ -21,7 +21,13 @@ if (!fs.existsSync(bin)) {
|
|
|
21
21
|
process.exit(1);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
// The binary is named for its platform (atlas-agent-windows-x64.exe), so it
|
|
25
|
+
// cannot work out what the user typed to reach it. Tell it, or its resume
|
|
26
|
+
// hint names a command that does not exist on this machine.
|
|
27
|
+
const child = spawn(bin, process.argv.slice(2), {
|
|
28
|
+
stdio: 'inherit',
|
|
29
|
+
env: { ...process.env, ATLAS_AGENT_INVOKED_AS: 'atlas-agent' },
|
|
30
|
+
});
|
|
25
31
|
child.on('exit', (code) => process.exit(code ?? 0));
|
|
26
32
|
child.on('error', (err) => {
|
|
27
33
|
console.error(`Atlas Agent: failed to launch: ${err.message}`);
|
package/package.json
CHANGED