@aglit-ai/cli 0.1.5 → 0.1.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.
- package/README.md +12 -0
- package/bin/aglit.cjs +5 -3
- package/package.json +1 -1
- package/src/updates.cjs +3 -0
package/README.md
CHANGED
|
@@ -103,3 +103,15 @@ restart. Use `aglit update --check` to inspect available updates, `aglit update`
|
|
|
103
103
|
to apply one, and `aglit updates off` or `aglit updates on` to change automatic
|
|
104
104
|
checks. New installations follow `latest`; experimental installations can save
|
|
105
105
|
an explicit channel with `aglit init --channel embedded`.
|
|
106
|
+
|
|
107
|
+
## Current coexistence limitation
|
|
108
|
+
|
|
109
|
+
Computer Use currently selects the same local ports as ordinary Aglit Desktop.
|
|
110
|
+
When Desktop already owns those ports, browser sign-in can reach that existing
|
|
111
|
+
app instead of Computer Use. Concurrent browser-login setup remains unqualified.
|
|
112
|
+
|
|
113
|
+
A separate Computer Use port range requires registering
|
|
114
|
+
`http://localhost:49127/oauth/google/callback` on the existing Google OAuth client.
|
|
115
|
+
Google currently rejects this proposed callback with `redirect_uri_mismatch`.
|
|
116
|
+
No port change has shipped; provider registration and native acceptance remain
|
|
117
|
+
required before qualifying coexistence.
|
package/bin/aglit.cjs
CHANGED
|
@@ -196,9 +196,11 @@ async function main() {
|
|
|
196
196
|
const detected = await ui.step('Find signed-in AI providers', () => control('providers'));
|
|
197
197
|
const available = detected.providers.filter(provider => provider.authenticated).map(provider => provider.provider);
|
|
198
198
|
let provider = values.provider && values.provider !== 'auto' ? values.provider :
|
|
199
|
-
available.includes(detected.preferred) ? detected.preferred :
|
|
199
|
+
available.includes(detected.preferred) ? detected.preferred : values.provider === 'auto' ?
|
|
200
|
+
['codex', 'claude'].find(candidate => available.includes(candidate)) : available.length === 1 ? available[0] : null;
|
|
200
201
|
if (!provider && available.length && interactive) provider = await ui.provider(available, detected.preferred);
|
|
201
202
|
if (!provider || !available.includes(provider)) throw Error('Sign in to Codex or Claude on this computer, then rerun aglit init --provider codex|claude.');
|
|
203
|
+
ui.info(`AI provider: ${provider}`);
|
|
202
204
|
await ui.step('Save computer settings', () => control('configure', { name, provider, ...(teamId ? { teamId } : {}) }));
|
|
203
205
|
const permissions = await ui.step('Check screen recording and input permissions', () => control('permissions'));
|
|
204
206
|
if (!interactive) ui.result(permissions);
|
|
@@ -231,7 +233,7 @@ async function main() {
|
|
|
231
233
|
ui.result(await control(command)); ui.finish('Done');
|
|
232
234
|
}
|
|
233
235
|
|
|
234
|
-
main().
|
|
236
|
+
main().catch(error => {
|
|
235
237
|
if (!error.cancelled) process.stderr.write(`aglit: ${error.message}\n`);
|
|
236
|
-
process.
|
|
238
|
+
process.exitCode = error.cancelled ? 130 : 1;
|
|
237
239
|
});
|
package/package.json
CHANGED
package/src/updates.cjs
CHANGED
|
@@ -139,6 +139,9 @@ async function manifest(name, selector) {
|
|
|
139
139
|
if (!channels.includes(selector) && !/^runtime-(?:darwin-arm64|win32-x64)-(?:latest|canary|embedded)$/.test(selector)) compareVersions(selector, selector);
|
|
140
140
|
const url = new URL(encodeURIComponent(name) + '/' + encodeURIComponent(selector), registry);
|
|
141
141
|
const response = await fetch(url, {redirect: 'error', signal: AbortSignal.timeout(30000)});
|
|
142
|
+
if (!response.ok) {
|
|
143
|
+
try { await response.body?.cancel(); } catch {}
|
|
144
|
+
}
|
|
142
145
|
if (response.status === 404) {
|
|
143
146
|
if (/^runtime-(?:darwin-arm64|win32-x64)-/.test(selector)) throw Error('No published signed Desktop runtime is available for ' + process.platform + ' ' + process.arch + ' in npm channel ' + selector);
|
|
144
147
|
if (name === '@aglit-ai/cli') throw Error('The Aglit CLI npm release ' + selector + ' has not been published yet');
|