@atlas-coder/atlas-agent 0.2.5 → 0.2.7

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.
@@ -21,7 +21,13 @@ if (!fs.existsSync(bin)) {
21
21
  process.exit(1);
22
22
  }
23
23
 
24
- const child = spawn(bin, process.argv.slice(2), { stdio: 'inherit' });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlas-coder/atlas-agent",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Atlas Agent — terminal-first AI coding assistant. Downloads the native binary on install.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,