@aglit-ai/cli 0.1.8 → 0.1.9

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 CHANGED
@@ -124,3 +124,5 @@ A separate Computer Use port range requires registering
124
124
  Google currently rejects this proposed callback with `redirect_uri_mismatch`.
125
125
  No port change has shipped; provider registration and native acceptance remain
126
126
  required before qualifying coexistence.
127
+
128
+ Anywhere Access requires a two-factor security code by default; an explicit off preference is preserved. In CLI headless mode, incoming connection requests display the code in a native window without opening the full app. This requires a logged-in graphical desktop session; an SSH-only/server environment cannot display the prompt. Codes are not printed to the terminal.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglit-ai/cli",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Install and manage Aglit Computer Use",
5
5
  "license": "UNLICENSED",
6
6
  "type": "commonjs",
@@ -205,6 +205,18 @@ function start() {
205
205
  // Do not let an operator's guest/development environment adopt another identity.
206
206
  for (const key of Object.keys(env)) if (key.startsWith('AGLIT_') || key.startsWith('VITE_') || ['NODE_ENV', 'ELECTRON_RUN_AS_NODE', 'SERVER_PORT', 'ELECTRON_BRIDGE_PORT'].includes(key)) delete env[key];
207
207
  Object.assign(env, { AGLIT_USER_DATA_PATH: profile, AGLIT_ELECTRON_USER_DATA_PATH: profile });
208
+ if (process.platform === 'darwin') {
209
+ // Launch Services makes the signed app responsible for its own TCC grants.
210
+ // Direct spawn from SSH/Terminal attributes screen/input access to the caller.
211
+ const bundle = path.dirname(path.dirname(path.dirname(installed.executable)));
212
+ if (!bundle.endsWith('.app')) { fs.closeSync(log); throw Error('Installed macOS application bundle required'); }
213
+ fs.closeSync(log);
214
+ run('/usr/bin/open', ['-n', '-g', '-a', bundle,
215
+ '--env', 'AGLIT_USER_DATA_PATH=' + profile, '--env', 'AGLIT_ELECTRON_USER_DATA_PATH=' + profile,
216
+ '--stdout', path.join(root, 'runtime.log'), '--stderr', path.join(root, 'runtime.log'),
217
+ '--args', '--computer-use'], { env });
218
+ return { launched: true };
219
+ }
208
220
  const child = spawn(installed.executable, ['--computer-use'], { detached: true, windowsHide: true, stdio: ['ignore', log, log], env });
209
221
  child.on('error', error => { process.stderr.write(`Computer Use failed to start: ${error.message}\n`); });
210
222
  child.unref(); fs.closeSync(log);