arco-workbench 0.2.0 → 0.2.1

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.
Files changed (44) hide show
  1. package/client/dist/assets/{PhosphorBackdrop-9jNRO1ZM.js → PhosphorBackdrop-BbR3xmfD.js} +1 -1
  2. package/client/dist/assets/{ThemedBackgroundShaderImpl-tUi3k54Y.js → ThemedBackgroundShaderImpl-UMjbs9ZN.js} +1 -1
  3. package/client/dist/assets/{XtermView-B7BOSnVo.js → XtermView-n135qz-f.js} +1 -1
  4. package/client/dist/assets/{galleryEditor-Ohc2h9cD.js → galleryEditor-CFSke4by.js} +1 -1
  5. package/client/dist/assets/{index-ILGXWriO.js → index-DeoJbjI3.js} +235 -235
  6. package/client/dist/index.html +1 -1
  7. package/client/src/components/HeaderVersionBox.tsx +6 -8
  8. package/client/src/components/SettingsPanel.tsx +44 -6
  9. package/client/src/components/settings/AppVersionSection.tsx +4 -4
  10. package/client/src/help/content/header.tsx +3 -2
  11. package/client/src/help/content/settings.tsx +10 -5
  12. package/client/src/help/manualSections/configuration.tsx +2 -0
  13. package/client/src/help/manualSections/maintenance.tsx +11 -7
  14. package/client/src/stores/appUpdateStore.ts +7 -1
  15. package/docs/HTTP_API.md +2 -2
  16. package/docs/OPERATIONS.md +22 -14
  17. package/docs/PROTOCOL.md +2 -2
  18. package/docs/RESEARCH.md +1 -1
  19. package/docs/SETTINGS.md +11 -7
  20. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -2
  21. package/node_modules/@arco/shared/package.json +1 -1
  22. package/package.json +2 -2
  23. package/scripts/packaging/update.mjs +92 -35
  24. package/server/dist/authLoginSession.js +9 -1
  25. package/server/dist/http/diagnosticsRoutes.js +1 -1
  26. package/server/dist/providers/antigravity/index.js +2 -2
  27. package/server/dist/providers/antigravity/status.js +3 -2
  28. package/server/dist/providers/antigravity/usage.js +3 -2
  29. package/server/dist/updateCheck.js +53 -67
  30. package/server/dist/updateManager.d.ts +2 -4
  31. package/server/dist/updateManager.js +4 -1
  32. package/server/dist/windowsCommand.d.ts +15 -0
  33. package/server/dist/windowsCommand.js +85 -4
  34. package/server/package.json +1 -1
  35. package/server/src/authLoginSession.ts +9 -1
  36. package/server/src/http/diagnosticsRoutes.ts +1 -1
  37. package/server/src/providers/antigravity/index.ts +2 -2
  38. package/server/src/providers/antigravity/status.ts +3 -2
  39. package/server/src/providers/antigravity/usage.ts +3 -2
  40. package/server/src/updateCheck.ts +47 -54
  41. package/server/src/updateManager.ts +5 -2
  42. package/server/src/windowsCommand.ts +83 -4
  43. package/shared/dist/protocol/serverMessages.d.ts +2 -2
  44. package/shared/src/protocol/serverMessages.ts +2 -2
@@ -9,7 +9,7 @@
9
9
  <link rel="preconnect" href="https://fonts.googleapis.com" />
10
10
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
11
11
  <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Share+Tech+Mono&display=swap" rel="stylesheet" />
12
- <script type="module" crossorigin src="/assets/index-ILGXWriO.js"></script>
12
+ <script type="module" crossorigin src="/assets/index-DeoJbjI3.js"></script>
13
13
  <link rel="stylesheet" crossorigin href="/assets/index-CVJVD2Vn.css">
14
14
  </head>
15
15
  <body>
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useRef, useState } from 'react';
2
2
  import { useAppStore } from '../stores/appStore';
3
- import { useAppUpdateStore } from '../stores/appUpdateStore';
3
+ import { releaseCheckError, useAppUpdateStore } from '../stores/appUpdateStore';
4
4
  import { useStartupStore } from '../stores/startupStore';
5
5
  import { UpdateAction } from './UpdateAction';
6
6
  import { headerActionStyle } from './headerActionStyle';
@@ -38,14 +38,13 @@ export function HeaderVersionBox() {
38
38
  const url = notice?.url ?? status?.url ?? null;
39
39
  const available = Boolean(latest);
40
40
  const checked = status?.checkedAt ? new Date(status.checkedAt).toLocaleString() : 'not yet';
41
- const waiting = status?.packageStatus === 'unpublished' ? 'The release is not yet published on npm.'
42
- : status?.packageStatus === 'unknown' ? 'Could not confirm npm availability.' : null;
41
+ const lookupError = releaseCheckError(status);
43
42
  const label = updating ? 'UPDATING' : available ? `\u2191 ${plain(latest as string)}` : current || 'version';
44
43
  const tip = updating ? 'Updating Arco. It will reconnect after the restart.'
45
44
  : available ? `Update available: ${plain(latest as string)}. Click to update.`
46
45
  : !checks ? 'Release checks are off. Showing the running version only.'
47
- : waiting ? `${waiting} Last checked: ${checked}.` : `Up to date (${current || 'version unknown'}). Last checked: ${checked}.`;
48
- const aria = updating ? 'Arco is updating' : available ? `Arco update available: ${plain(latest as string)}. Open update.` : `Arco version ${current || 'unknown'}. ${!checks ? 'Release checks are off.' : waiting || 'Up to date.'} Open version details.`;
46
+ : lookupError ? `${lookupError} Last checked: ${checked}.` : `Up to date (${current || 'version unknown'}). Last checked: ${checked}.`;
47
+ const aria = updating ? 'Arco is updating' : available ? `Arco update available: ${plain(latest as string)}. Open update.` : `Arco version ${current || 'unknown'}. ${!checks ? 'Release checks are off.' : lookupError || 'Up to date.'} Open version details.`;
49
48
  const check = async () => {
50
49
  setAutoConfirm(false); setBusy(true); setError('');
51
50
  try { await refresh(true); } catch { setError('Release check unavailable'); } finally { setBusy(false); }
@@ -93,9 +92,8 @@ export function HeaderVersionBox() {
93
92
  {url && <div><a href={url} target="_blank" rel="noopener noreferrer">Release notes</a></div>}
94
93
  </> : <>
95
94
  <div>Running: {current || 'unknown'}</div>
96
- <div>{checks ? `Latest known release: ${status?.latest ? plain(status.latest) : 'none yet'}` : 'Release checks are off.'}</div>
97
- {checks && status?.packageStatus === 'unpublished' && <div>Not yet published on npm. Check again later.</div>}
98
- {checks && status?.packageStatus === 'unknown' && <div>Could not confirm npm availability. Check again later.</div>}
95
+ <div>{checks ? `${lookupError && status?.latest ? 'Previous release (stale)' : 'Latest known release'}: ${status?.latest ? plain(status.latest) : 'none yet'}` : 'Release checks are off.'}</div>
96
+ {checks && lookupError && <div role="status">{lookupError} Use CHECK NOW to retry.</div>}
99
97
  {checks && <div>Last checked: {checked}</div>}
100
98
  <div style={{ display: 'flex', gap: 12, alignItems: 'center', marginTop: 6 }}>
101
99
  <button type="button" disabled={busy || !checks} onClick={() => void check()}>CHECK NOW</button>
@@ -116,14 +116,18 @@ export function SettingsPanel({ onClose }: Props) {
116
116
  const ollamaLive = useAppStore((s) => s.ollamaLive);
117
117
  const llamacppLive = useAppStore((s) => s.llamacppLive);
118
118
  const [loginPending, setLoginPending] = useState<LoginSessionTarget | null>(null);
119
+ // Provider details (sign-in, status, endpoint) show only while the provider is enabled.
120
+ const on = (p: ProviderName): boolean => isProviderOn(settings?.enabledProviders, p);
121
+ // The Ollama endpoint stays reachable while its utility model (compaction, titles) is in use with Ollama off.
122
+ const ollamaEndpointShown = on('ollama') || (!!settings?.ollama?.utility?.model && settings.ollama.utility.enabled !== false);
119
123
  // docs/RESEARCH.md "Gemini researchers": the separate research sign-in, shown when the sandbox can run Gemini.
120
- const [geminiResearch, setGeminiResearch] = useState<{ available: boolean; signIn?: 'missing' | 'ready' | 'expired' } | null>(null);
124
+ const [geminiResearch, setGeminiResearch] = useState<{ available: boolean; linux: boolean; signIn?: 'missing' | 'ready' | 'expired' } | null>(null);
121
125
  const refreshGeminiResearch = useCallback(async () => {
122
126
  try {
123
127
  const response = await fetch('/api/diagnostics/research-sandbox');
124
128
  if (!response.ok) return;
125
- const result = await response.json() as { gemini?: boolean; geminiSignIn?: 'missing' | 'ready' | 'expired' };
126
- setGeminiResearch({ available: result.gemini === true, signIn: result.geminiSignIn });
129
+ const result = await response.json() as { gemini?: boolean; platform?: string; geminiSignIn?: 'missing' | 'ready' | 'expired' };
130
+ setGeminiResearch({ available: result.gemini === true, linux: result.platform === undefined || result.platform === 'linux', signIn: result.geminiSignIn });
127
131
  } catch { /* the row stays hidden */ }
128
132
  }, []);
129
133
  useEffect(() => { void refreshGeminiResearch(); }, [refreshGeminiResearch]);
@@ -198,7 +202,7 @@ export function SettingsPanel({ onClose }: Props) {
198
202
 
199
203
  const toggleProviderEnabled = async (provider: ProviderName) => {
200
204
  if (savingProvider) return;
201
- const current = settings?.enabledProviders[provider] !== false;
205
+ const current = isProviderOn(settings?.enabledProviders, provider);
202
206
  const next: ArcoSettings = {
203
207
  enabledProviders: {
204
208
  claude: settings?.enabledProviders.claude !== false,
@@ -816,7 +820,7 @@ export function SettingsPanel({ onClose }: Props) {
816
820
  </div>
817
821
  <div style={{ display: 'flex', flexDirection: 'column', gap: '6px', marginBottom: '14px' }}>
818
822
  {(['claude', 'codex', 'cursor', 'antigravity-cli', 'ollama', 'llamacpp', 'lmstudio', 'strata', 'deepseek'] as ProviderName[]).map((p) => {
819
- const enabled = settings?.enabledProviders[p] !== false;
823
+ const enabled = on(p);
820
824
  const label = p === 'claude' ? 'CLAUDE'
821
825
  : p === 'codex' ? 'CODEX'
822
826
  : p === 'cursor' ? 'CURSOR'
@@ -889,6 +893,7 @@ export function SettingsPanel({ onClose }: Props) {
889
893
  AUTHENTICATION
890
894
  </div>
891
895
  <div data-help="settings.authentication" style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}>
896
+ {on('claude') && (<>
892
897
  <div data-help="settings.claude-signin" id="claude-signin-group" className="claude-signin-group" style={{ display: 'flex', flexDirection: 'column', gap: '6px' }}>
893
898
  <div className="display-font" style={{ fontSize: '10px', letterSpacing: '2px', color: 'var(--color-accent-primary-dim)' }}>CLAUDE</div>
894
899
  <span style={{ fontSize: '10px', color: 'var(--color-fg-muted)', fontFamily: 'var(--font-body)' }}>
@@ -904,6 +909,8 @@ export function SettingsPanel({ onClose }: Props) {
904
909
  />
905
910
 
906
911
  </div>
912
+ </>)}
913
+ {on('codex') && (<>
907
914
  <ProviderRow label="CODEX (OPENAI)" provider="codex" status={loginStatus('codex', authStatus?.codex) ?? undefined} loginPending={loginPending === 'codex'} onLogin={() => startLogin('codex')} />
908
915
  {inAppLogin?.session?.provider === 'codex' && (
909
916
  <div data-testid="settings-codex-login" style={{ padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px' }}>
@@ -911,8 +918,10 @@ export function SettingsPanel({ onClose }: Props) {
911
918
  </div>
912
919
  )}
913
920
  <CodexProfilesSection />
921
+ </>)}
914
922
 
915
923
 
924
+ {on('cursor') && (<>
916
925
  <ProviderRow
917
926
  label="CURSOR (ACP)"
918
927
  provider="cursor"
@@ -929,6 +938,8 @@ export function SettingsPanel({ onClose }: Props) {
929
938
  />
930
939
  </div>
931
940
  )}
941
+ </>)}
942
+ {on('antigravity-cli') && (<>
932
943
  <ProviderRow
933
944
  label="ANTIGRAVITY CLI"
934
945
  provider="antigravity-cli"
@@ -941,7 +952,7 @@ export function SettingsPanel({ onClose }: Props) {
941
952
  <LoginFlow result={inAppLogin} onRestart={() => void startLogin('antigravity-cli')} onComplete={() => { void finishInAppLogin('antigravity-cli'); }} />
942
953
  </div>
943
954
  )}
944
- {geminiResearch?.available && settings?.enabledProviders['antigravity-cli'] === true && (
955
+ {geminiResearch?.available && on('antigravity-cli') && (
945
956
  <div data-help="settings.gemini-research" data-testid="settings-gemini-research">
946
957
  <ProviderRow
947
958
  label="GEMINI FOR RESEARCH"
@@ -951,16 +962,23 @@ export function SettingsPanel({ onClose }: Props) {
951
962
  />
952
963
  </div>
953
964
  )}
965
+ {geminiResearch && !geminiResearch.linux && (
966
+ <p data-help="settings.gemini-research" data-testid="settings-gemini-research-linux-only" style={{ margin: 0, padding: '0 14px', fontSize: '10px', color: 'var(--color-fg-muted)', fontFamily: 'var(--font-body)' }}>
967
+ Gemini for Research is available only on Linux with the research sandbox. Gemini chat and agent tabs are not affected.
968
+ </p>
969
+ )}
954
970
  {inAppLogin?.session?.provider === 'gemini-research' && (
955
971
  <div data-testid="settings-gemini-research-login" style={{ padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px' }}>
956
972
  <LoginFlow result={inAppLogin} onRestart={() => void startLogin('gemini-research')} onComplete={() => { void finishInAppLogin('gemini-research'); }} />
957
973
  </div>
958
974
  )}
975
+ </>)}
959
976
  {inAppNote && (
960
977
  <div role="alert" data-testid="settings-cursor-login-note" style={{ fontSize: '11px', color: 'var(--color-warning)', fontFamily: 'var(--font-body)', padding: '0 14px' }}>
961
978
  {inAppNote}
962
979
  </div>
963
980
  )}
981
+ {ollamaEndpointShown && (<>
964
982
  <div id="connection-advanced-ollama" style={{ display: 'flex', flexDirection: 'column', gap: '4px', padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px', background: 'var(--color-bg-sunken)' }}>
965
983
  <label data-help="settings.ollama-small-context" style={{ display: 'flex', alignItems: 'center', gap: 8, minHeight: 44 }}>
966
984
  <input type="checkbox" disabled={ollamaSmallSaving} checked={settings?.ollama?.smallContextTools === true} onChange={e => void setOllamaSmallContext(e.target.checked)} />
@@ -1059,6 +1077,7 @@ export function SettingsPanel({ onClose }: Props) {
1059
1077
  )}
1060
1078
  </div>
1061
1079
  </div>
1080
+ </>)}
1062
1081
  <div style={{ display: 'flex', flexDirection: 'column', gap: '4px', padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px', background: 'var(--color-bg-sunken)' }}>
1063
1082
  <label className="display-font" style={{ fontSize: '10px', letterSpacing: '2px', color: 'var(--color-accent-primary-dim)' }}>
1064
1083
  OLLAMA COMPACTION UTILITY MODEL
@@ -1151,6 +1170,7 @@ export function SettingsPanel({ onClose }: Props) {
1151
1170
  ENABLED off pauses every utility job (compaction falls back to the deterministic digest, titles stop) while keeping the model + host saved. SESSION TITLES (opt-in) names RESUME-picker sessions with a short generated title. The small model that writes Ollama auto-compaction summaries (and any utility jobs). Type a model name: local models are offered as suggestions, but you can enter one that only exists on the remote host below. Blank ⇒ a deterministic text digest is used instead. Ollama-specific: Claude/Codex use their vendors' native compaction. Leave the host blank to use your default Ollama endpoint; set it to run the summarizer on a separate machine or GPU so it never competes with your primary model for VRAM.
1152
1171
  </span>
1153
1172
  </div>
1173
+ {on('lmstudio') && (<>
1154
1174
  <div id="connection-advanced-lmstudio" style={{ display: 'flex', flexDirection: 'column', gap: '4px', padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px', background: 'var(--color-bg-sunken)' }}>
1155
1175
  <label htmlFor="lmstudio-endpoint" className="display-font" style={{ fontSize: '10px', letterSpacing: '2px', color: 'var(--color-accent-primary-dim)' }}>
1156
1176
  LM STUDIO ENDPOINT
@@ -1186,7 +1206,11 @@ export function SettingsPanel({ onClose }: Props) {
1186
1206
  OpenAI-compatible REST endpoint (LM Studio app → Developer → Start Server). The /v1 suffix is added automatically if omitted.
1187
1207
  </span>
1188
1208
  </div>
1209
+ </>)}
1210
+ {on('deepseek') && (<>
1189
1211
  <DeepSeekControls />
1212
+ </>)}
1213
+ {on('strata') && (<>
1190
1214
  <div data-help="settings.strata-endpoint" style={{ display: 'flex', flexDirection: 'column', gap: '4px', padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px', background: 'var(--color-bg-sunken)' }}>
1191
1215
  <label htmlFor="strata-endpoint" className="display-font" style={{ fontSize: '10px', letterSpacing: '2px', color: 'var(--color-accent-primary-dim)' }}>
1192
1216
  STRATA ENDPOINT
@@ -1222,6 +1246,8 @@ export function SettingsPanel({ onClose }: Props) {
1222
1246
  Standalone Strata inference service. Prepared local profiles load on the next message; live context and image capabilities follow the service. The /v1 suffix is added automatically if omitted.
1223
1247
  </span>
1224
1248
  </div>
1249
+ </>)}
1250
+ {on('ollama') && (<>
1225
1251
  <ProviderRow
1226
1252
  label="OLLAMA (LOCAL)"
1227
1253
  status={authStatus?.ollama}
@@ -1229,6 +1255,8 @@ export function SettingsPanel({ onClose }: Props) {
1229
1255
  onLogin={() => startLogin('ollama')}
1230
1256
  variant="ollama"
1231
1257
  />
1258
+ </>)}
1259
+ {on('llamacpp') && (<>
1232
1260
  <ProviderRow
1233
1261
  label="LLAMA.CPP (LOCAL)"
1234
1262
  status={authStatus?.llamacpp}
@@ -1237,6 +1265,8 @@ export function SettingsPanel({ onClose }: Props) {
1237
1265
  variant="llamacpp"
1238
1266
  loadedModel={llamacppLive?.loadedModel ?? null}
1239
1267
  />
1268
+ </>)}
1269
+ {on('lmstudio') && (<>
1240
1270
  <ProviderRow
1241
1271
  label="LM STUDIO (LOCAL)"
1242
1272
  status={authStatus?.lmstudio}
@@ -1244,6 +1274,8 @@ export function SettingsPanel({ onClose }: Props) {
1244
1274
  onLogin={() => { /* no-op: LM Studio has no login flow */ }}
1245
1275
  variant="lmstudio"
1246
1276
  />
1277
+ </>)}
1278
+ {on('strata') && (<>
1247
1279
  <ProviderRow
1248
1280
  label="STRATA (LOCAL)"
1249
1281
  status={authStatus?.strata}
@@ -1251,6 +1283,7 @@ export function SettingsPanel({ onClose }: Props) {
1251
1283
  onLogin={() => { /* no-op: Strata has no login flow */ }}
1252
1284
  variant="strata"
1253
1285
  />
1286
+ </>)}
1254
1287
  <ProviderRow
1255
1288
  label="GITHUB (gh CLI)"
1256
1289
  status={authStatus?.github}
@@ -2395,6 +2428,11 @@ function CodexProfilesSection() {
2395
2428
  );
2396
2429
  }
2397
2430
 
2431
+ // One rule for the switches, the saved toggle and the detail blocks: Antigravity CLI is off until enabled, every other provider is on until disabled.
2432
+ export function isProviderOn(enabled: Record<string, boolean | undefined> | undefined, p: ProviderName): boolean {
2433
+ return p === 'antigravity-cli' ? enabled?.[p] === true : enabled?.[p] !== false;
2434
+ }
2435
+
2398
2436
  function ProviderRow({ label, provider, status, loginPending, onLogin, variant, loadedModel }: ProviderRowProps) {
2399
2437
  const loggedIn = status?.loggedIn ?? false;
2400
2438
  const isOllama = variant === 'ollama';
@@ -1,7 +1,7 @@
1
1
  import { UpdateAction } from '../UpdateAction';
2
2
  import { useEffect, useState } from 'react';
3
3
  import { useAppStore } from '../../stores/appStore';
4
- import { useAppUpdateStore } from '../../stores/appUpdateStore';
4
+ import { releaseCheckError, useAppUpdateStore } from '../../stores/appUpdateStore';
5
5
 
6
6
  export function AppVersionSection() {
7
7
  const status = useAppUpdateStore((s) => s.status);
@@ -14,6 +14,7 @@ export function AppVersionSection() {
14
14
  setBusy(true); setError('');
15
15
  try { await refresh(true); } catch { setError('Release check unavailable'); } finally { setBusy(false); }
16
16
  };
17
+ const lookupError = status?.enabled ? releaseCheckError(status) : null;
17
18
  const toggle = async (enabled: boolean) => {
18
19
  setBusy(true); setError('');
19
20
  try {
@@ -25,9 +26,8 @@ export function AppVersionSection() {
25
26
  };
26
27
  return <div data-help="settings.app-updates" style={{ fontSize: '12px', lineHeight: 1.7, marginBottom: '16px', color: 'var(--color-accent-primary)' }}>
27
28
  <strong>Arco</strong>: {status ? `v${status.current.replace(/^v/, '')}` : 'version unavailable'}
28
- <div style={{ color: 'var(--color-fg-muted)' }}>{status?.latest ? `Latest release: ${status.latest}${status.publishedAt ? ` (${status.publishedAt.slice(0, 10)})` : ''}` : 'No release information yet'}</div>
29
- {status?.packageStatus === 'unpublished' && <div>Not yet published on npm. Check again later.</div>}
30
- {status?.packageStatus === 'unknown' && <div>Could not confirm npm availability. Check again later.</div>}
29
+ <div style={{ color: 'var(--color-fg-muted)' }}>{status?.latest ? `${lookupError ? 'Previous release (stale)' : 'Latest release'}: ${status.latest}${status.publishedAt ? ` (${status.publishedAt.slice(0, 10)})` : ''}` : 'No release information yet'}</div>
30
+ {lookupError && <div role="status">{lookupError} Use CHECK NOW to retry.</div>}
31
31
  <UpdateAction latest={status?.updateAvailable ? status.latest : null} url={status?.url ?? null} />
32
32
  <button type="button" disabled={busy || !status?.enabled} onClick={() => void check()}>CHECK NOW</button>
33
33
  <label style={{ display: 'block' }}><input type="checkbox" checked={settings?.updateCheck !== false} disabled={busy || !settings} onChange={(e) => void toggle(e.target.checked)} /> Check for new releases</label>
@@ -466,8 +466,9 @@ export const headerHelp: Record<string, HelpEntry> = {
466
466
  Settings &gt; Advanced &gt; CLI and runtime versions. While an update
467
467
  runs it reads <C>UPDATING</C>. A release found with <C>CHECK NOW</C>{' '}
468
468
  appears here; select <C>UPDATE AND RESTART</C> to open confirmation.
469
- Packaged installs wait until that release is available on npm; if
470
- npm cannot be checked, use <C>CHECK NOW</C> again later.
469
+ Packaged installs check npm. Source and Docker installs check GitHub.
470
+ A failed check marks any previous release as stale. Use <C>CHECK NOW</C>{' '}
471
+ to retry. A package download failure leaves Arco running.
471
472
  With release checks off it shows the
472
473
  running version only.
473
474
  </p>
@@ -290,14 +290,19 @@ export const settingsHelp: Record<string, HelpEntry> = {
290
290
  prefer to keep a provider out of the picker. New homes enable detected
291
291
  sign-ins and local runtimes; Strata and DeepSeek through Xolotl start
292
292
  off. Existing saved choices are kept. A successful explicit check in
293
- Connections enables that provider.
293
+ Connections enables that provider. Sign-in, status and endpoint
294
+ controls under Authentication appear only for enabled providers;
295
+ turning one off hides them and keeps what was saved. GitHub and the
296
+ Ollama compaction utility model always stay visible, and the Ollama
297
+ endpoint stays visible while an enabled Ollama utility model is
298
+ configured.
294
299
  </p>
295
300
  ),
296
301
  },
297
302
  'settings.gemini-research': {
298
303
  manualSection: 'settings-providers',
299
304
  title: 'Gemini for research',
300
- body: <p>A separate Google sign-in used only by Gemini researchers in the Linux worker sandbox. LOG IN shows a link; open it, then paste the code or return URL. The sign-in is kept as a file in Arco's own folder, not in the system keyring, and your Antigravity CLI sign-in is not changed. Expired means a researcher turn was refused; sign in again.</p>,
305
+ body: <p>A separate Google sign-in used only by Gemini researchers in the Linux worker sandbox. LOG IN shows a link; open it, then paste the code or return URL. The sign-in is kept as a file in Arco's own folder, not in the system keyring, and your Antigravity CLI sign-in is not changed. Expired means a researcher turn was refused; sign in again. On Windows and macOS Gemini for Research is not available, and Settings says so.</p>,
301
306
  },
302
307
  'settings.authentication': {
303
308
  manualSection: 'settings-providers',
@@ -590,17 +595,17 @@ export const settingsHelp: Record<string, HelpEntry> = {
590
595
  'settings.update-action': {
591
596
  title: 'Update Arco',
592
597
  manualSection: 'arco-updates',
593
- body: <p>In a packaged user service on Linux, macOS or Windows, or a Linux source user service, confirm UPDATE AND RESTART to install the newest release and stop running turns. After restart, a page without unsaved work reloads automatically when needed; otherwise RELOAD stays available. On Windows, an update stops only the matching service command and home configuration, and refuses to proceed if the stop cannot be verified. Other run modes show a command to copy and run in a terminal.</p>,
598
+ body: <p>In a packaged user service on Linux, macOS or Windows, or a Linux source user service, confirm UPDATE AND RESTART to install the newest release. Packaged services download the archive before stopping running turns. After restart, a page without unsaved work reloads automatically when needed; otherwise RELOAD stays available. On Windows, an update stops only the matching service command and home configuration, and refuses to proceed if the stop cannot be verified. Other run modes show a command to copy and run in a terminal.</p>,
594
599
  },
595
600
  'settings.update-result': {
596
601
  title: 'Update result',
597
602
  manualSection: 'arco-updates',
598
- body: <p>Reports the completed update or failure after the server reconnects. The result appears beside an open update control, or in this separate notice when no update control is open. DISMISS hides this notice. If npm cannot be found, stop Arco and run npm install -g arco-workbench from a terminal where npm works, then start Arco again.</p>,
603
+ body: <p>Reports the update result. A package download failure leaves Arco running. If installation fails, the result reports whether the previous package and service were restored. If recovery fails, keep the snapshot identified in the result. The result appears beside an open update control, or in this separate notice when no update control is open. DISMISS hides this notice. If npm cannot be found, stop Arco and run npm install -g arco-workbench from a terminal where npm works, then start Arco again.</p>,
599
604
  },
600
605
  'settings.app-updates': {
601
606
  title: 'Arco releases',
602
607
  manualSection: 'arco-updates',
603
- body: <p>Shows the running version and latest release. CHECK NOW refreshes release information. For packaged installs, Arco waits until the exact release is available on npm before offering the update. If npm cannot be checked, try again later. Check for new releases controls the automatic check; ARCO_UPDATE_CHECK=0 overrides it. UPDATE AND RESTART is available in packaged user services on Linux, macOS and Windows and in Linux source user services after confirmation; other run modes show a copyable command. No update runs automatically.</p>,
608
+ body: <p>Shows the running version and latest release. CHECK NOW refreshes release information. Packaged installs check npm. Source and Docker installs check GitHub. A failed check identifies the source and marks any previous release as stale. Use CHECK NOW to retry. Check for new releases controls the automatic check; ARCO_UPDATE_CHECK=0 overrides it. UPDATE AND RESTART is available in packaged user services on Linux, macOS and Windows and in Linux source user services after confirmation; other run modes show a copyable command. No update runs automatically.</p>,
604
609
  },
605
610
  'settings.app-window-browser': {
606
611
  title: 'App window browser',
@@ -14,6 +14,8 @@ export const configuration: Section[] = [
14
14
  use its provider list to enable providers and sign in. Per-workflow config
15
15
  lives in the CONFIG tab on the right pane.
16
16
  </p>
17
+ <p>Sign-in, status and endpoint controls for a provider appear under Authentication only while that provider is switched on in Enabled providers. Switching it off hides them and keeps its saved settings and sign-in. GitHub and the Ollama compaction utility model always stay visible, and the Ollama endpoint stays visible while an enabled Ollama utility model is configured.</p>
18
+ <p>On Windows and macOS, with Antigravity CLI on, a note says Gemini for Research is available only on Linux with the research sandbox.</p>
17
19
  <p>In Connections, clear <strong>Model server address</strong> and choose <strong>Save endpoint</strong> to restore the runtime default. Other Ollama options stay saved. Use <strong>Test connection</strong> to check the resulting address.</p>
18
20
  <p>Antigravity CLI 1.5.15 or later keeps a turn open for its sub-agents. Update from the Versions menu if an older version is installed. A sub-agent's own tool calls are not shown over ACP and are not gated by SAFE permission requests.</p>
19
21
  <Sub>Claude Native sub-agents</Sub>
@@ -202,8 +202,9 @@ export const maintenance: Section[] = [
202
202
  <p>
203
203
  A release found with CHECK NOW appears
204
204
  in the version box; select UPDATE AND RESTART to open its confirmation.
205
- Packaged installs offer the update only after the exact release is available
206
- on npm. If npm cannot be checked, use CHECK NOW again later.
205
+ Packaged installs check npm. Source and Docker installs check GitHub. If a
206
+ lookup fails, Arco names the source and marks any previous result as stale.
207
+ Use CHECK NOW to retry.
207
208
  </p>
208
209
  <Sub>Settings row and automatic checks</Sub>
209
210
  <p>
@@ -232,11 +233,14 @@ export const maintenance: Section[] = [
232
233
  />
233
234
  <p>
234
235
  For a packaged service, the action runs the packaged{' '}
235
- <Code>arco update</Code> path, stops running turns, and reports
236
- completion or rollback after reconnect. Arco checks the confirmed package
237
- again before stopping the service. On Windows, the service stop
238
- targets the matching service command and home configuration; the update
239
- refuses to proceed if the stop cannot be verified.
236
+ <Code>arco update</Code> path. Arco downloads the exact package before stopping
237
+ the service. A download failure leaves Arco running. If installation fails,
238
+ Arco restores the previous package and restarts the service. If recovery fails,
239
+ keep the snapshot identified in the result and follow its instructions.
240
+ </p>
241
+ <p>
242
+ On Windows, the service stop targets the matching service command and home
243
+ configuration. The update refuses to proceed if the stop cannot be verified.
240
244
  </p>
241
245
  <p>
242
246
  The result stays beside the open update control. Closing that control shows
@@ -5,9 +5,15 @@ export function isUpdateStatus(value: unknown): value is UpdateCheckStatus {
5
5
  if (!value || typeof value !== 'object') return false;
6
6
  const s = value as UpdateCheckStatus;
7
7
  return typeof s.current === 'string' && typeof s.enabled === 'boolean' && typeof s.updateAvailable === 'boolean'
8
+ && (s.checkFailure === undefined || s.checkFailure === 'npm' || s.checkFailure === 'github')
8
9
  && [s.latest, s.url, s.publishedAt, s.checkedAt].every((v) => v === null || typeof v === 'string');
9
10
  }
10
11
 
12
+ export function releaseCheckError(status: UpdateCheckStatus | null): string | null {
13
+ if (!status?.checkFailure) return null;
14
+ return status.checkFailure === 'npm' ? 'Could not check npm for updates.' : 'Could not check GitHub for releases.';
15
+ }
16
+
11
17
  let manualCheck = false;
12
18
  let manualRelease: string | null = null;
13
19
 
@@ -51,7 +57,7 @@ export const useAppUpdateStore = create<{
51
57
  if (!isUpdateStatus(status)) throw new Error('Release check unavailable');
52
58
  if (force) manualRelease = status.enabled && status.updateAvailable ? status.latest : null;
53
59
  set({ status, ...(force ? { notice: null } : {}) });
54
- if (status.enabled && status.updateAvailable && status.latest && status.url && status.publishedAt) {
60
+ if (status.enabled && status.updateAvailable && status.latest && status.url) {
55
61
  get().receive({ type: 'app_update_available', current: status.current, latest: status.latest, url: status.url, publishedAt: status.publishedAt });
56
62
  } else set({ notice: null });
57
63
  } finally { if (force) manualCheck = false; }
package/docs/HTTP_API.md CHANGED
@@ -573,7 +573,7 @@ See `docs/DIAGNOSTICS.md`.
573
573
 
574
574
  ### `GET /api/diagnostics/research-sandbox`
575
575
 
576
- Returns `{ claudeCli: boolean, codex: boolean, cursor: boolean, gemini: boolean, geminiSignIn: 'missing' | 'ready' | 'expired', codexVersionReason?: string, cursorVersionReason?: string }` after short Linux sandbox availability checks. `geminiSignIn` reports the separate Gemini research sign-in state. The optional reasons name an unsupported or unknown installed Codex or Cursor version, or a missing Cursor agent. The checks use temporary files and a scoped mailbox fixture, do not open a sign-in or start a model, and cache their results briefly. A researcher still runs its own preflight before starting. The research start dialog offers each CLI provider only when its check succeeds and it is signed in; Codex requires the supported CLI version.
576
+ Returns `{ claudeCli: boolean, codex: boolean, cursor: boolean, gemini: boolean, geminiSignIn: 'missing' | 'ready' | 'expired', platform: string, codexVersionReason?: string, cursorVersionReason?: string }` after short Linux sandbox availability checks. `platform` reports the server's `process.platform` so Settings can show the Linux-only Gemini for Research note on Windows and macOS. `geminiSignIn` reports the separate Gemini research sign-in state. The optional reasons name an unsupported or unknown installed Codex or Cursor version, or a missing Cursor agent. The checks use temporary files and a scoped mailbox fixture, do not open a sign-in or start a model, and cache their results briefly. A researcher still runs its own preflight before starting. The research start dialog offers each CLI provider only when its check succeeds and it is signed in; Codex requires the supported CLI version.
577
577
 
578
578
  ---
579
579
 
@@ -2473,7 +2473,7 @@ Routes not covered above. Each is served by the module named in the last column.
2473
2473
  | Route | Purpose | Module |
2474
2474
  | --- | --- | --- |
2475
2475
  | `GET /api/app/version` | Running Arco version and build identity (`/healthz` adds liveness fields). | `http/appVersionRoutes.ts` |
2476
- | `GET`, `POST /api/update-check` | Release-check status; `POST` runs a check now (CHECK NOW). | `http/router.ts`, `updateCheck.ts` |
2476
+ | `GET`, `POST /api/update-check` | Release-check status. `POST` runs **CHECK NOW**. A lookup failure sets `checkFailure` to `npm` or `github`, preserves the previous release as stale and clears `updateAvailable`. | `http/router.ts`, `updateCheck.ts` |
2477
2477
  | `GET /api/installation-history` | Whether this Arco home has completed setup or holds saved work, for the Welcome flow. | `http/router.ts` |
2478
2478
  | `GET /api/connections`, `POST /api/connections/check?provider=` | The Connections catalog, and one provider's connection check (a successful check enables that provider). | `http/connectionsRoutes.ts` |
2479
2479
  | `GET /api/auth-login/session?provider=`, `POST /api/auth-login/code`, `POST /api/auth-login/cancel` | The current sign-in session for a provider, the pasted browser code (Claude) and cancel. | `http/authLoginRoutes.ts` |
@@ -262,11 +262,20 @@ modules cannot be replaced safely. A packaged service can instead use
262
262
  Linux, macOS, and Windows. The action interrupts running turns and reports
263
263
  completion or rollback after reconnect.
264
264
 
265
- For packaged installs, Arco offers the GitHub release only after its exact
266
- version is publicly available on npm. If the package is not published or npm
267
- cannot be reached, the version box says so; use **CHECK NOW** again later. The
268
- updater checks the confirmed version again before stopping a managed service.
269
- Source and Docker installs continue to follow GitHub releases.
265
+ Packaged installs check npm's public latest version. The release notes link
266
+ opens the matching GitHub tag. If a check fails, the version box and Settings
267
+ identify the source that could not be checked and mark any previous release as
268
+ stale. Use **CHECK NOW** to retry. The updater checks npm again before
269
+ downloading. If the latest version has changed, confirm the new version first.
270
+ The updater downloads the exact package archive before it stops the service.
271
+ A download failure leaves Arco running and can be retried. Installation uses the
272
+ downloaded archive. npm can still fetch missing dependencies during installation.
273
+
274
+ If installation fails, the updater restores the previous package and restarts
275
+ the service. If recovery fails, follow the result message and keep the previous
276
+ package snapshot it identifies. This snapshot covers the installed program.
277
+ Arco's saved data stays in its existing home. Source and Docker installs
278
+ continue to follow GitHub releases.
270
279
 
271
280
  The result appears beside the open update control. When that control is closed,
272
281
  a separate result notice remains available with **DISMISS**. The same result is
@@ -436,13 +445,12 @@ interrupts running turns. See [Docker](DOCKER.md) for configuration and backup.
436
445
 
437
446
  ### Release-check privacy and opt-out
438
447
 
439
- The server makes one request to GitHub 30 seconds after boot and every six
440
- hours thereafter. CHECK NOW can request an additional check. The request has
441
- no token, prompt, project path or workflow content. It sends the Arco version
442
- in `User-Agent: arco/<version>`; GitHub also sees the server's public IP address
443
- as it does for any HTTP request. Metadata is cached in memory. Unavailable,
444
- missing or rate-limited releases are quiet after one debug message and retry
445
- on the next cycle.
448
+ The server makes one request to npm for a packaged install or GitHub for a
449
+ source or Docker install 30 seconds after boot and every six hours thereafter.
450
+ CHECK NOW can request an additional check. The request sends the Arco version
451
+ in `User-Agent: arco/<version>` with no token, prompt, project path or workflow
452
+ content. Metadata is cached in memory. The version box and Settings show a
453
+ failed lookup, and the next check retries.
446
454
 
447
455
  Turn off **Check for new releases** in Settings to prevent scheduled and manual
448
456
  checks. Alternatively, set `ARCO_UPDATE_CHECK=0` in the server process's
@@ -936,7 +944,7 @@ Use the `ARCO_` prefix for Arco-specific environment variables. `ARCO_HOME` relo
936
944
  | Var | Default | Purpose |
937
945
  |---|---|---|
938
946
  | `ARCO_PORT` | `3001` | Server HTTP/WS port |
939
- | `ARCO_UPDATE_CHECK` | enabled | Set `0` to prevent automatic and manual GitHub release checks; overrides Settings |
947
+ | `ARCO_UPDATE_CHECK` | enabled | Set `0` to prevent automatic and manual release checks; overrides Settings |
940
948
  | `ARCO_HOST` | `127.0.0.1` | Server bind address. Loopback by default - the HTTP/WS surface has **no user login**, only the session cookie and Host/Origin check (see Exposure posture). Set `0.0.0.0` only to deliberately expose to the LAN |
941
949
  | `ARCO_ALLOWED_HOSTS` | unset | Extra Host names (comma-separated, `*.suffix` wildcards). Exact names also approve the standard server/development HTTP and HTTPS origins; wildcards do not approve browser origins. Kept by the package service |
942
950
  | `ARCO_ALLOWED_ORIGINS` | unset | Extra exact HTTP(S) browser origins, including scheme and port, for reverse proxies or custom remote access. Kept by the package service |
@@ -1171,7 +1179,7 @@ Per-service. Status is surfaced by the top-bar provider letters (an enabled prov
1171
1179
  | GitHub | `gh auth login` | `gh auth status` |
1172
1180
  | Ollama | (no login) | `${OLLAMA_URL_BASE}/api/tags` reachable |
1173
1181
  | Cursor (ACP) | Connections > Cursor, or LOG IN on the Cursor row in Settings, runs `cursor-agent login` in Arco and shows the link (or run it in a terminal) | The session JWT is read fresh each poll: from `auth.json` (`$XDG_CONFIG_HOME/cursor` on Linux, `%APPDATA%\Cursor` on Windows, `~/.cursor` on macOS, then `~/.config/cursor` as before), from the desktop keyring through `secret-tool search` when the file says `storedIn: os-secret-store` (never unlocks; a locked keyring reads as status unknown), or from the macOS keychain. While Cursor has rejected that token the status reads not signed in (Sign in again); the explicit Connections check also runs `cursor-agent status` |
1174
- | Antigravity CLI (Gemini) | LOG IN on the Antigravity row in Settings > Providers and models runs `agy acp --login`; Gemini researchers use a separate sign-in, GEMINI FOR RESEARCH, which runs the same command in its own home | `agy models` probe; sign-in state stays unknown until an interactive turn or login completes |
1182
+ | Antigravity CLI (Gemini) | LOG IN on the Antigravity row in Settings > Providers and models runs `agy acp --login`, found on the running PATH first and then on the PATH a new terminal reads (Windows); Gemini researchers use a separate sign-in, GEMINI FOR RESEARCH, which runs the same command in its own home | `agy models` probe; sign-in state stays unknown until an interactive turn or login completes |
1175
1183
  | Strata | (no login) | Live `/v1/models`, plus validated prepared local profiles while stopped/unloaded |
1176
1184
  | DeepSeek through Xolotl | (no login) Load a prepared profile from Settings. Endpoint defaults to `http://127.0.0.1:8150/v1` (`DEEPSEEK_URL_BASE` or `deepseek.baseUrl`) | Registered profiles for that endpoint |
1177
1185
  | LM Studio | (no login) | `${LMSTUDIO_URL_BASE}` OpenAI-compat server reachable |
package/docs/PROTOCOL.md CHANGED
@@ -3120,8 +3120,8 @@ Messages in the `ClientMessage` / `ServerMessage` unions that the sections above
3120
3120
  | `cluster_auto_compaction_set` | -> | `clusterId`, `policy` (`AutoCompactionPolicy` or `null` for Provider) | Sets the cluster default auto-compaction policy from the cluster panel. |
3121
3121
  | `workflow_rename_result` | <- (to the requesting socket) | `workflowId`, `requestId`, `error?` | Reply to a `rename_workflow` that carried a `requestId`; `error` names a refused rename. |
3122
3122
  | `output_saved` | <- (persisted) | `workflowId`, `path`, `sourcePath?`, `ts` | An editor or image save wrote a file; OUTPUTS records it as an editor export of `sourcePath`. |
3123
- | `app_update_available` | <- (all clients) | `current`, `latest`, `url`, `publishedAt` | Sent once per newer release found by the release check, unless that version was dismissed (`server/src/updateCheck.ts`); the client shows the release toast. |
3124
- | `app_update_status_changed` | <- (all clients) | none | A packaged install that had an update on offer no longer has one (for example the package was withdrawn). The client reads `GET /api/update-check` again and drops the release toast (`server/src/updateCheck.ts`). |
3123
+ | `app_update_available` | <- (all clients) | `current`, `latest`, `url`, `publishedAt` | Sent once per newer release unless that version was dismissed. npm releases use a null `publishedAt`. The client shows the release toast. |
3124
+ | `app_update_status_changed` | <- (all clients) | none | The release, update availability or lookup failure changed. The client refreshes `GET /api/update-check` and updates its cached status and release toast (`server/src/updateCheck.ts`). |
3125
3125
  | `attention_question_closed` | <- (all clients) | `requestId` | A pending question that raised a `waiting` attention event was answered or dismissed. The client clears the matching question alert. Not sent for an incognito tab (`server/src/attention.ts`). |
3126
3126
  | `cluster_creation_finished` | <- (requesting socket) | `requestId` | A `cluster_create_from_scratch` that carried a `requestId` (1 to 128 characters) has finished, whether it created the cluster or was refused. The client stops its creating state (`server/src/ws/clusterHandlers.ts`). |
3127
3127
 
package/docs/RESEARCH.md CHANGED
@@ -50,7 +50,7 @@ A researcher marked failed or timed out in a round shows **RETRY** in the rounds
50
50
 
51
51
  A Gemini (Antigravity CLI) researcher runs `agy acp` inside the Linux worker sandbox, like a Codex or Cursor researcher, with the research mail bridge as its only Arco tool server.
52
52
 
53
- - **Sign-in:** Gemini researchers use a separate sign-in, Settings > Providers and models > Sign-in, accounts and local endpoints > **GEMINI FOR RESEARCH**, shown when the Antigravity CLI is enabled and its sandbox check passes. LOG IN runs `agy acp --login` with its home in `~/.arco/antigravity-research/home`, no D-Bus session and a private runtime folder, so the CLI stores the sign-in as a file there and not in the system keyring. The operator's own Antigravity sign-in and `~/.gemini` are not read. The row reads LIVE once the file exists.
53
+ - **Sign-in:** Gemini researchers use a separate sign-in, Settings > Providers and models > Sign-in, accounts and local endpoints > **GEMINI FOR RESEARCH**, shown when the Antigravity CLI is enabled and its sandbox check passes. On Windows and macOS, Settings shows a note instead: Gemini for Research is available only on Linux with the research sandbox. LOG IN runs `agy acp --login` with its home in `~/.arco/antigravity-research/home`, no D-Bus session and a private runtime folder, so the CLI stores the sign-in as a file there and not in the system keyring. The operator's own Antigravity sign-in and `~/.gemini` are not read. The row reads LIVE once the file exists.
54
54
  - **Each turn:** Arco copies the sign-in file (mode 600) into the researcher's private home for that turn and removes the copy when the turn's sandbox closes. The CLI runs with no D-Bus session, so it reads only that copy.
55
55
  - **Network:** with web access off, only `daily-cloudcode-pa.googleapis.com`, `cloudcode-pa.googleapis.com`, `oauth2.googleapis.com` and `www.googleapis.com` stay reachable through the filtered proxy.
56
56
  - **Turns:** a Gemini researcher takes a round only on the operator's NUDGE, whichever provider the Research Director uses. The round deadline starts when it reads the round. Its first NUDGE carries the researcher instructions as visible text; later NUDGEs ask it to read its mail.
package/docs/SETTINGS.md CHANGED
@@ -69,7 +69,7 @@ Sections: 29.
69
69
  | `projects` | Projects | Project locations and bookmarks | Global | Project locations with folded Add/Edit and duplicate/alias rename feedback; Bookmarked folders for optional Bookmark folder/Remove bookmark controls; Research folder (`researchFolder`, where each research project gets its dated subfolder; affects only new projects); Research time limit (`researchTimeLimitMinutes`, 30 to 240 minutes, default 45, for each new round or catch-up); Advanced folder options for independent browsing defaults; non-destructive multi-location Run setup again |
70
70
  | `project-trust` | Projects | Project trust | Project, rules kept globally | Searchable, scrollable trusted and blocked project list, default trust |
71
71
  | `enabled-providers` | Providers and models | Enabled providers | Global | Per-provider on/off toggles |
72
- | `authentication` | Providers and models | Sign-in, accounts and local endpoints | Global | A Claude group (Native sign-in first, then CLI sign-in), Codex accounts and profiles, Cursor, Antigravity CLI and GEMINI FOR RESEARCH (the separate sign-in for Gemini researchers, shown when the Antigravity CLI is enabled and its sandbox check passes), then Ollama endpoint, discovery and utility model (compaction summaries, session titles), LM Studio endpoint, Strata endpoint, DeepSeek through Xolotl, and the Ollama, llama.cpp, LM Studio, Strata and GitHub rows |
72
+ | `authentication` | Providers and models | Sign-in, accounts and local endpoints | Global | Provider sign-in, status and endpoint controls appear only for enabled providers: Claude group (Native sign-in first, then CLI sign-in), Codex accounts and profiles, Cursor, Antigravity CLI and GEMINI FOR RESEARCH (separate sign-in for Gemini researchers, shown when Antigravity CLI is enabled and its sandbox check passes; on Windows and macOS a note says Gemini for Research is Linux-only), Ollama endpoint and discovery, LM Studio endpoint, Strata endpoint, DeepSeek through Xolotl, and the Ollama, llama.cpp, LM Studio and Strata rows. Always shown: Ollama compaction utility model (compaction summaries, session titles) and the GitHub row; the Ollama endpoint also stays shown while an enabled Ollama utility model is configured with Ollama off |
73
73
  | `llamacpp-catalog` | Providers and models | llama.cpp model registry | Global | llama.cpp registry editor and preload (shown when llama.cpp is enabled and installed) |
74
74
  | `catalog` | Providers and models | Model catalog | Global | Model catalog editor |
75
75
  | `native-subagents` | Agents and clusters | Claude Native sub-agents | Global defaults, including existing workflows | Maximum running at once, maximum starts per turn, sub-agent model and Background sub-agents (Allowed or Off); each control opens this section from contextual help |
@@ -84,7 +84,7 @@ Sections: 29.
84
84
  | `preview-ports` | Advanced | Preview ports and remote access | Global, for new previews | PREVIEW PORTS, normally 4300-4309; ARCO_PREVIEW_PORTS override, lazy port use, firewall and forwarding guidance; the field waits for SAVE to finish before further editing |
85
85
  | `transport-defaults` | Advanced | Transport defaults | Global, for new workflows | Codex (default app-server) and Claude (default native) transport defaults for new workflows |
86
86
  | `app-window-browser` | Advanced | App window browser | Global | Automatic (first found, preserving the existing preference), a detected installation/channel, or another program name or path; used by `arco open`, the Arco shortcut and the explorer window; a missing choice falls back to Automatic |
87
- | `cli-versions` | Advanced | CLI and runtime versions | Global | Arco running version, latest release and date, CHECK NOW, update action or copyable command, Check for new releases, Updating Arco link; Claude, Codex CLI and Ollama daemon versions, plus the providers popover for available provider updates |
87
+ | `cli-versions` | Advanced | CLI and runtime versions | Global | Arco running version, latest release, CHECK NOW, update action or copyable command, Check for new releases, Updating Arco link; Claude, Codex CLI and Ollama daemon versions, plus the providers popover for available provider updates |
88
88
 
89
89
  ## Phone view
90
90
 
@@ -125,8 +125,10 @@ up arrow and the new version, stays that way after the toast is dismissed, opens
125
125
  the update dialog on click, and shows UPDATING while an update runs.
126
126
 
127
127
  In Advanced > CLI and runtime versions, **Arco** also shows the running version and
128
- the latest known release with its publication date. **CHECK NOW** asks the
129
- server to refresh the release metadata. **Check for new releases** defaults to
128
+ the latest known release. Source and Docker installs also show the publication date.
129
+ **CHECK NOW** checks npm on a packaged install or GitHub on a source or Docker
130
+ install. If a check fails, the row names the source and marks any previous
131
+ release as stale. Use **CHECK NOW** to retry. **Check for new releases** defaults to
130
132
  on; disabling it prevents automatic and manual requests. `ARCO_UPDATE_CHECK=0`
131
133
  in the server environment overrides the checkbox. The **Updating Arco** link
132
134
  opens the [service, foreground and Docker update procedure](OPERATIONS.md#updating-arco).
@@ -137,9 +139,11 @@ reloads; a newer version can notify again. The checkbox saves `updateCheck`.
137
139
  The server first checks 30 seconds after boot, then every six hours. It never
138
140
  downloads or installs updates automatically. Packaged services on Linux, macOS,
139
141
  and Windows offer **UPDATE AND RESTART** from the version box, toast, or Settings
140
- when the target version is available on npm. Availability is checked again before
141
- the service stops. It confirms the release and stops running turns at restart. Linux source user
142
- services offer the same action. Other run modes show a copyable command.
142
+ when npm reports a newer stable version. The updater rechecks the target and
143
+ downloads the exact package before stopping the service. If the download fails, Arco stays running.
144
+ If installation fails, the result reports whether the old package and service
145
+ were restored. Linux source user services offer the same action. Other run
146
+ modes show a copyable command.
143
147
 
144
148
  ### Project location migration
145
149
 
@@ -843,14 +843,14 @@ export interface UpdateCheckStatus {
843
843
  checkedAt: string | null;
844
844
  updateAvailable: boolean;
845
845
  enabled: boolean;
846
- packageStatus?: 'available' | 'unpublished' | 'unknown';
846
+ checkFailure?: 'npm' | 'github';
847
847
  }
848
848
  export interface AppUpdateAvailableMessage {
849
849
  type: 'app_update_available';
850
850
  current: string;
851
851
  latest: string;
852
852
  url: string;
853
- publishedAt: string;
853
+ publishedAt: string | null;
854
854
  }
855
855
  export interface AppUpdateStatusChangedMessage {
856
856
  type: 'app_update_status_changed';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arco/shared",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",