@aglit-ai/cli 0.1.6 → 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 +2 -2
- 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
|
@@ -233,7 +233,7 @@ async function main() {
|
|
|
233
233
|
ui.result(await control(command)); ui.finish('Done');
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
main().
|
|
236
|
+
main().catch(error => {
|
|
237
237
|
if (!error.cancelled) process.stderr.write(`aglit: ${error.message}\n`);
|
|
238
|
-
process.
|
|
238
|
+
process.exitCode = error.cancelled ? 130 : 1;
|
|
239
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');
|