arco-workbench 0.2.4 → 0.2.5
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/CONTRIBUTING.md +1 -1
- package/THIRD_PARTY_NOTICES +2 -2
- package/client/dist/assets/{PhosphorBackdrop-CHXVFLGT.js → PhosphorBackdrop-CLILIwOQ.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-Bhs4I9jA.js → ThemedBackgroundShaderImpl-B87chcb5.js} +1 -1
- package/client/dist/assets/{XtermView-CdfurwFx.js → XtermView-BP_j7WSN.js} +1 -1
- package/client/dist/assets/{galleryEditor-DYjZZ4cf.js → galleryEditor-B90phoBI.js} +1 -1
- package/client/dist/assets/{index-BjDmFvqG.js → index-BfPp1Oup.js} +269 -269
- package/client/dist/index.html +1 -1
- package/client/src/App.tsx +2 -2
- package/client/src/components/AuthReloginNotice.tsx +7 -6
- package/client/src/components/ChatMessage.tsx +41 -29
- package/client/src/components/ChatPanel.tsx +17 -4
- package/client/src/components/ClaudeNativeAccountPicker.tsx +32 -0
- package/client/src/components/ClaudeNativeAuthRow.tsx +71 -19
- package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +11 -281
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +1 -1
- package/client/src/components/ClusterRightPanel/FreshMemberForm.tsx +315 -0
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +17 -7
- package/client/src/components/ClusterRightPanel/index.tsx +1 -1
- package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +6 -4
- package/client/src/components/ClusterTab.tsx +2 -2
- package/client/src/components/Connections/Connections.tsx +5 -9
- package/client/src/components/Connections/model.ts +3 -1
- package/client/src/components/FileViewerModal.tsx +54 -17
- package/client/src/components/GitHubPanel/index.tsx +9 -5
- package/client/src/components/HandoffDialog.tsx +5 -3
- package/client/src/components/MobileShell.tsx +1 -33
- package/client/src/components/OperatorQuestionNotice.tsx +5 -4
- package/client/src/components/ProvidersPopover.tsx +6 -2
- package/client/src/components/RightPanel/ActivityTab.tsx +2 -1
- package/client/src/components/RightPanel/ConfigTab.tsx +23 -5
- package/client/src/components/RightPanel/OutputsPanel.tsx +21 -9
- package/client/src/components/RightPanel/outputsReconcile.ts +31 -0
- package/client/src/components/SettingsPanel.tsx +7 -10
- package/client/src/components/SpawnDialog.tsx +14 -3
- package/client/src/components/TabBar.tsx +2 -2
- package/client/src/components/TabContextMenu.tsx +73 -133
- package/client/src/components/TerminalInput.tsx +4 -3
- package/client/src/components/TranscriptWorkerDialog.tsx +14 -4
- package/client/src/components/UsageBar.tsx +37 -18
- package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +29 -3
- package/client/src/components/WorkflowCreator/index.tsx +29 -15
- package/client/src/components/WorkflowView.tsx +1 -1
- package/client/src/components/providerIndicator.ts +7 -3
- package/client/src/components/settings/GitHubAuthRow.tsx +34 -0
- package/client/src/explorer/ArtifactsLens.tsx +17 -8
- package/client/src/explorer/ExplorerApp.tsx +3 -3
- package/client/src/explorer/types.ts +3 -1
- package/client/src/help/content/cluster.tsx +10 -4
- package/client/src/help/content/composer.tsx +3 -2
- package/client/src/help/content/header.tsx +6 -3
- package/client/src/help/content/misc.tsx +7 -5
- package/client/src/help/content/rightPanel.tsx +8 -4
- package/client/src/help/content/settings.tsx +14 -3
- package/client/src/help/content/tabbar.tsx +1 -1
- package/client/src/help/manualSections/actions.tsx +5 -1
- package/client/src/help/manualSections/clusters.tsx +20 -14
- package/client/src/help/manualSections/configuration.tsx +6 -4
- package/client/src/help/manualSections/gettingStarted.tsx +4 -2
- package/client/src/help/manualSections/maintenance.tsx +24 -0
- package/client/src/help/manualSections/powerFeatures.tsx +1 -0
- package/client/src/help/manualSections/providers.tsx +11 -4
- package/client/src/help/manualSections/workspace.tsx +3 -3
- package/client/src/hooks/useClaudeNativeCatalog.ts +26 -0
- package/client/src/hooks/useClaudeNativeLogin.ts +16 -11
- package/client/src/hooks/useWebSocket.ts +4 -2
- package/client/src/layout/layoutRange.ts +4 -5
- package/client/src/questions/waitingQuestion.ts +2 -0
- package/client/src/stores/appStore.ts +5 -1
- package/client/src/stores/appStore.types.ts +2 -0
- package/client/src/stores/replayContext.ts +20 -0
- package/client/src/utils/chatFileLinks.ts +34 -3
- package/client/src/utils/claudeAuth.ts +9 -1
- package/client/src/ws/handleServerMessage.ts +11 -3
- package/docs/ARCHITECTURE.md +3 -3
- package/docs/BACKUP.md +1 -1
- package/docs/CLIENT.md +10 -5
- package/docs/EXTENDING.md +1 -1
- package/docs/FEATURES.md +3 -3
- package/docs/GETTING_STARTED.md +5 -4
- package/docs/GIT_WORKBENCH.md +8 -0
- package/docs/GLOSSARY.md +2 -2
- package/docs/GOTCHAS.md +4 -4
- package/docs/HTTP_API.md +54 -23
- package/docs/OPERATIONS.md +11 -0
- package/docs/OPERATOR_ACTIONS.md +2 -2
- package/docs/OUTPUTS.md +48 -6
- package/docs/PERSISTENCE.md +1 -1
- package/docs/PRIMITIVES.md +4 -2
- package/docs/PROTOCOL_CLUSTER.md +12 -6
- package/docs/PROTOCOL_PRIMITIVES.md +1 -1
- package/docs/PROVIDERS.md +46 -9
- package/docs/RESEARCH.md +1 -1
- package/docs/SETTINGS.md +9 -4
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +15 -3
- package/node_modules/@arco/shared/dist/protocol/clusters.js +1 -1
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
- package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/settings.d.ts +3 -0
- package/node_modules/@arco/shared/dist/protocol/settings.js +5 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.js +0 -2
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +2 -2
- package/scripts/packaging/services.mjs +20 -1
- package/scripts/packaging/update.mjs +37 -2
- package/server/dist/attention.d.ts +6 -0
- package/server/dist/attention.js +6 -0
- package/server/dist/auth.d.ts +5 -0
- package/server/dist/auth.js +31 -20
- package/server/dist/clusterAutoTurn.d.ts +5 -1
- package/server/dist/clusterAutoTurn.js +31 -9
- package/server/dist/clusterPresets.js +3 -3
- package/server/dist/effortValidation.d.ts +2 -2
- package/server/dist/effortValidation.js +4 -4
- package/server/dist/explorerArtifacts.d.ts +1 -0
- package/server/dist/explorerArtifacts.js +12 -1
- package/server/dist/geminiMembers.d.ts +7 -1
- package/server/dist/geminiMembers.js +28 -14
- package/server/dist/http/conversationFiles.d.ts +36 -0
- package/server/dist/http/conversationFiles.js +222 -0
- package/server/dist/http/fileBytes.d.ts +3 -0
- package/server/dist/http/fileBytes.js +33 -0
- package/server/dist/http/fileContentRoute.d.ts +2 -0
- package/server/dist/http/fileContentRoute.js +139 -0
- package/server/dist/http/fileRead.d.ts +54 -2
- package/server/dist/http/fileRead.js +31 -24
- package/server/dist/http/outputRoutes.js +14 -21
- package/server/dist/http/readConfinement.d.ts +0 -11
- package/server/dist/http/readConfinement.js +4 -30
- package/server/dist/http/router.js +40 -66
- package/server/dist/index.js +26 -12
- package/server/dist/management/initHubLink.js +1 -1
- package/server/dist/outputs.js +8 -0
- package/server/dist/primitives/exportContext.d.ts +2 -0
- package/server/dist/primitives/exportContext.js +13 -2
- package/server/dist/primitives/runCompare.d.ts +7 -1
- package/server/dist/primitives/runCompare.js +44 -20
- package/server/dist/project/taskLedger.js +46 -34
- package/server/dist/providerAccounts.d.ts +4 -0
- package/server/dist/providerAccounts.js +20 -1
- package/server/dist/providers/antigravity/artifacts.d.ts +23 -0
- package/server/dist/providers/antigravity/artifacts.js +140 -0
- package/server/dist/providers/antigravity/index.js +85 -7
- package/server/dist/providers/antigravity/questions.d.ts +2 -0
- package/server/dist/providers/antigravity/questions.js +58 -0
- package/server/dist/providers/claude-native/auth.d.ts +9 -8
- package/server/dist/providers/claude-native/auth.js +50 -58
- package/server/dist/providers/claude-native/authStatus.d.ts +2 -2
- package/server/dist/providers/claude-native/authStatus.js +9 -7
- package/server/dist/providers/claude-native/catalog.d.ts +6 -5
- package/server/dist/providers/claude-native/catalog.js +50 -39
- package/server/dist/providers/claude-native/oauth.d.ts +10 -9
- package/server/dist/providers/claude-native/oauth.js +120 -96
- package/server/dist/providers/claude-native/worker.d.ts +1 -0
- package/server/dist/providers/claude-native/worker.js +38 -23
- package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -3
- package/server/dist/providers/codex-appserver/operatorQuestions.js +27 -13
- package/server/dist/server/broadcast.js +6 -0
- package/server/dist/settings.d.ts +1 -0
- package/server/dist/settings.js +39 -7
- package/server/dist/skills.js +1 -1
- package/server/dist/smartPickupAdapters.d.ts +1 -0
- package/server/dist/smartPickupAdapters.js +2 -2
- package/server/dist/smartPickupObserver.js +8 -5
- package/server/dist/thirdPartySkills.js +11 -5
- package/server/dist/usage.d.ts +1 -1
- package/server/dist/usage.js +39 -27
- package/server/dist/workers/WorkerManager.d.ts +1 -0
- package/server/dist/workers/WorkerManager.js +1 -0
- package/server/dist/workers/processKill.js +37 -24
- package/server/dist/workflowMeta.js +2 -2
- package/server/dist/ws/clusterHandlers.d.ts +2 -2
- package/server/dist/ws/clusterHandlers.js +127 -113
- package/server/dist/ws/clusterMembers.d.ts +1 -1
- package/server/dist/ws/clusterMembers.js +34 -4
- package/server/dist/ws/compactHandlers.js +30 -14
- package/server/dist/ws/compareHandlers.js +53 -21
- package/server/dist/ws/gateHandlers.js +2 -0
- package/server/dist/ws/genesisHandlers.js +5 -3
- package/server/dist/ws/handoffHandlers.d.ts +1 -1
- package/server/dist/ws/handoffHandlers.js +115 -39
- package/server/dist/ws/transcriptWorkerHandlers.js +7 -2
- package/server/dist/ws/turnEngine.js +33 -18
- package/server/dist/ws/updatePrimaryConfig.d.ts +3 -2
- package/server/dist/ws/updatePrimaryConfig.js +236 -133
- package/server/dist/ws/workflowHandlers.js +21 -4
- package/server/package.json +1 -1
- package/server/src/attention.ts +7 -0
- package/server/src/auth.ts +33 -20
- package/server/src/clusterAutoTurn.ts +31 -11
- package/server/src/clusterPresets.ts +2 -2
- package/server/src/effortValidation.ts +4 -4
- package/server/src/explorerArtifacts.ts +12 -1
- package/server/src/geminiMembers.ts +26 -15
- package/server/src/http/conversationFiles.ts +231 -0
- package/server/src/http/fileBytes.ts +34 -0
- package/server/src/http/fileContentRoute.ts +123 -0
- package/server/src/http/fileRead.ts +30 -25
- package/server/src/http/outputRoutes.ts +13 -13
- package/server/src/http/readConfinement.ts +3 -30
- package/server/src/http/router.ts +38 -62
- package/server/src/index.ts +27 -18
- package/server/src/management/initHubLink.ts +1 -1
- package/server/src/outputs.ts +8 -0
- package/server/src/primitives/exportContext.ts +14 -2
- package/server/src/primitives/runCompare.ts +73 -46
- package/server/src/project/taskLedger.ts +47 -30
- package/server/src/providerAccounts.ts +20 -1
- package/server/src/providers/antigravity/artifacts.ts +121 -0
- package/server/src/providers/antigravity/index.ts +64 -6
- package/server/src/providers/antigravity/questions.ts +52 -0
- package/server/src/providers/claude-native/auth.ts +45 -60
- package/server/src/providers/claude-native/authStatus.ts +9 -8
- package/server/src/providers/claude-native/catalog.ts +52 -35
- package/server/src/providers/claude-native/oauth.ts +101 -77
- package/server/src/providers/claude-native/worker.ts +38 -22
- package/server/src/providers/codex-appserver/operatorQuestions.ts +26 -12
- package/server/src/server/broadcast.ts +4 -0
- package/server/src/settings.ts +36 -8
- package/server/src/skills.ts +1 -1
- package/server/src/smartPickupAdapters.ts +3 -2
- package/server/src/smartPickupObserver.ts +8 -5
- package/server/src/thirdPartySkills.ts +11 -5
- package/server/src/usage.ts +30 -22
- package/server/src/workers/WorkerManager.ts +2 -0
- package/server/src/workers/processKill.ts +37 -23
- package/server/src/workflowMeta.ts +2 -2
- package/server/src/ws/clusterHandlers.ts +107 -104
- package/server/src/ws/clusterMembers.ts +25 -6
- package/server/src/ws/compactHandlers.ts +29 -15
- package/server/src/ws/compareHandlers.ts +59 -25
- package/server/src/ws/gateHandlers.ts +2 -0
- package/server/src/ws/genesisHandlers.ts +5 -4
- package/server/src/ws/handoffHandlers.ts +105 -37
- package/server/src/ws/transcriptWorkerHandlers.ts +6 -2
- package/server/src/ws/turnEngine.ts +32 -17
- package/server/src/ws/updatePrimaryConfig.ts +230 -132
- package/server/src/ws/workflowHandlers.ts +20 -4
- package/shared/dist/protocol/clusters.d.ts +15 -3
- package/shared/dist/protocol/clusters.js +1 -1
- package/shared/dist/protocol/models.d.ts +6 -1
- package/shared/dist/protocol/operatorQuestions.d.ts +2 -1
- package/shared/dist/protocol/settings.d.ts +3 -0
- package/shared/dist/protocol/settings.js +5 -0
- package/shared/dist/protocol/workflows.d.ts +1 -0
- package/shared/dist/protocol/workflows.js +0 -2
- package/shared/src/protocol/clusters.ts +23 -5
- package/shared/src/protocol/compare.ts +2 -2
- package/shared/src/protocol/models.ts +8 -4
- package/shared/src/protocol/operatorQuestions.ts +2 -1
- package/shared/src/protocol/settings.ts +8 -1
- package/shared/src/protocol/workflows.ts +1 -1
|
@@ -7,6 +7,7 @@ import { stopTurnSizes } from '../storageTurnWatch.js';
|
|
|
7
7
|
import { noteSmartPickupStop } from '../smartPickupObserver.js';
|
|
8
8
|
import { isKnownProvider } from '../providers/index.js';
|
|
9
9
|
import { publishWorkerActivity } from './turnEngine.js';
|
|
10
|
+
import { isUpdatingNativeAccount } from './updatePrimaryConfig.js';
|
|
10
11
|
import { clearPrivateWatches } from '../voice/watches.js';
|
|
11
12
|
// server/src/ws/workflowHandlers.ts — workflow-lifecycle WS handler region
|
|
12
13
|
// extracted from index.ts (docs/ARCHITECTURE.md). Behavior-
|
|
@@ -53,7 +54,7 @@ import { getRecallIndex } from '../recall/index.js';
|
|
|
53
54
|
import { promises as fsPromises } from 'fs';
|
|
54
55
|
import path from 'path';
|
|
55
56
|
import { artifactsDir } from '../workers/limits.js';
|
|
56
|
-
import { resolveProviderAccount } from '../providerAccounts.js';
|
|
57
|
+
import { requireClaudeNativeAccount, resolveProviderAccount } from '../providerAccounts.js';
|
|
57
58
|
import { destroySandbox } from '../providers/claude-native/sandboxStore.js';
|
|
58
59
|
import { disposeProviderResources } from '../providers/index.js';
|
|
59
60
|
import { cancelClaudeNativeCompaction } from '../providers/claude-native/index.js';
|
|
@@ -188,7 +189,7 @@ export async function handleCreateWorkflow(ws: WebSocket, session: Session, conf
|
|
|
188
189
|
primaryEffort: saved.primaryEffort,
|
|
189
190
|
...(saved.primaryProvider === 'antigravity-cli' ? { skipPermissions: saved.antigravitySkipPermissions === true } : {}),
|
|
190
191
|
autoCompaction: resolveAutoCompactionPolicy(saved.autoCompaction, undefined) ?? (saved.efficiencyAutoCompact === 'conservative' ? { enabled: true, thresholdPercent: 80 } : saved.efficiencyAutoCompact === 'aggressive' ? { enabled: true, thresholdPercent: 70 } : undefined),
|
|
191
|
-
|
|
192
|
+
providerAccountRef: saved.providerAccountRef,
|
|
192
193
|
...(saved.claudeTransport
|
|
193
194
|
? { claudeTransport: saved.claudeTransport }
|
|
194
195
|
: saved.primaryProvider === 'claude' && !hasClaudeCliSession
|
|
@@ -230,11 +231,11 @@ export async function handleCreateWorkflow(ws: WebSocket, session: Session, conf
|
|
|
230
231
|
return;
|
|
231
232
|
}
|
|
232
233
|
if (!config.resumeWorkflowId && config.primaryEffort !== undefined &&
|
|
233
|
-
!allowedWorkflowEfforts(provider, config.primaryModel).includes(config.primaryEffort)) {
|
|
234
|
+
!allowedWorkflowEfforts(provider, config.primaryModel, config.providerAccountRef).includes(config.primaryEffort)) {
|
|
234
235
|
send(ws, { type: 'error', message: 'The selected effort is not supported by this provider and model.' });
|
|
235
236
|
return;
|
|
236
237
|
}
|
|
237
|
-
config.primaryEffort = normalizedWorkflowEffort(provider, config.primaryModel, config.primaryEffort);
|
|
238
|
+
config.primaryEffort = normalizedWorkflowEffort(provider, config.primaryModel, config.primaryEffort, config.providerAccountRef);
|
|
238
239
|
const primary = derivePrimaryConfig(config);
|
|
239
240
|
const manager = new WorkerManager();
|
|
240
241
|
// docs/PROVIDERS.md - fact-force defaults OFF for new tabs.
|
|
@@ -355,6 +356,17 @@ export async function handleCreateWorkflow(ws: WebSocket, session: Session, conf
|
|
|
355
356
|
}
|
|
356
357
|
}
|
|
357
358
|
|
|
359
|
+
if (!resumed && (config.primaryProvider ?? 'claude') === 'claude' && config.providerAccountRef !== undefined) {
|
|
360
|
+
try {
|
|
361
|
+
await requireClaudeNativeAccount(config.providerAccountRef);
|
|
362
|
+
if (config.claudeTransport === 'cli' || config.ultracode) throw new Error('Select Claude Native to use a Native account.');
|
|
363
|
+
config.claudeTransport = 'native';
|
|
364
|
+
} catch (err) {
|
|
365
|
+
send(ws, { type: 'error', message: err instanceof Error ? err.message : 'Claude Native account unavailable.' });
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
358
370
|
// docs/ARCHITECTURE.md - from-nothing Genesis. A workflow created with a
|
|
359
371
|
// genesis seed and no working directory runs the staged conversation in a
|
|
360
372
|
// hidden scratch dir until `genesis_scaffold` creates the real project and
|
|
@@ -851,6 +863,10 @@ export function handleCancel(ws: WebSocket, workflowId: string): void {
|
|
|
851
863
|
send(ws, { type: 'error', message: 'Workflow storage is moving. Wait for the scaffold to finish before stopping this conversation.' });
|
|
852
864
|
return;
|
|
853
865
|
}
|
|
866
|
+
if (isUpdatingNativeAccount(wf)) {
|
|
867
|
+
send(ws, { type: 'error', message: 'Wait for the account change to finish before stopping this conversation.' });
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
854
870
|
// Smart: Automatic leaves the mail this member has now alone after STOP.
|
|
855
871
|
void noteSmartPickupStop(workflowId).catch(() => undefined);
|
|
856
872
|
wf.manager.killAll();
|
|
@@ -5,8 +5,8 @@ export interface ClusterSkillPin extends ArcoSkillRef {
|
|
|
5
5
|
export type ClusterMemberProvider = 'claude' | 'codex' | 'ollama' | 'llamacpp' | 'cursor' | 'antigravity-cli';
|
|
6
6
|
export declare const CLUSTER_MEMBER_PROVIDERS: readonly ["claude", "codex", "ollama", "llamacpp", "cursor", "antigravity-cli"];
|
|
7
7
|
export declare function isOperatorSendOnlyProvider(v: unknown): boolean;
|
|
8
|
-
export declare const GEMINI_MEMBER_NOTE = "
|
|
9
|
-
export declare const GEMINI_MEMBER_CHOICE_NOTE = "
|
|
8
|
+
export declare const GEMINI_MEMBER_NOTE = "AUTO-PICKUP can wake Gemini for eligible incoming mail. Mail from Gemini waits for your NUDGE on the recipient.";
|
|
9
|
+
export declare const GEMINI_MEMBER_CHOICE_NOTE = "AUTO-PICKUP can wake Gemini for eligible incoming mail. Mail from Gemini waits for your NUDGE on the recipient. Gemini members are not isolated.";
|
|
10
10
|
export declare const GEMINI_RESEARCH_DIRECTOR_NOTE = "Each step of a Gemini Research Director waits for your NUDGE, and the rounds it sends wait for your NUDGE on each researcher. Review or edit them in MAILBOX first.";
|
|
11
11
|
export declare const GEMINI_RESEARCHER_NOTE = "A Gemini researcher works in the Linux worker sandbox with the separate Gemini for research sign-in, and takes each round only on your NUDGE.";
|
|
12
12
|
export declare function isClusterMemberProvider(v: unknown): v is ClusterMemberProvider;
|
|
@@ -325,6 +325,18 @@ export interface ClusterCreateWithFreshWorkersMessage extends ClusterCreationSet
|
|
|
325
325
|
model?: string;
|
|
326
326
|
effort?: 'low' | 'medium' | 'high' | string;
|
|
327
327
|
providerAccountRef?: string;
|
|
328
|
+
members?: ClusterFreshMemberSpec[];
|
|
329
|
+
}
|
|
330
|
+
export interface ClusterFreshMemberSpec extends ClusterMemberTuning {
|
|
331
|
+
provider?: ClusterMemberProvider;
|
|
332
|
+
model?: string;
|
|
333
|
+
effort?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | string;
|
|
334
|
+
providerAccountRef?: string;
|
|
335
|
+
accessMode?: ClusterMemberAccessMode;
|
|
336
|
+
webAccess?: boolean;
|
|
337
|
+
claudeTransport?: 'native' | 'cli';
|
|
338
|
+
name?: string;
|
|
339
|
+
role?: string;
|
|
328
340
|
}
|
|
329
341
|
export interface ClusterCreateFromScratchMessage extends ClusterCreationSettings {
|
|
330
342
|
type: 'cluster_create_from_scratch';
|
|
@@ -767,7 +779,7 @@ export interface ClusterAutoTurnFiredMessage {
|
|
|
767
779
|
workflowId: string;
|
|
768
780
|
sender: string;
|
|
769
781
|
chainDepth: number;
|
|
770
|
-
reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled' | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail';
|
|
782
|
+
reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled' | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail' | 'member_blocked';
|
|
771
783
|
notice?: string;
|
|
772
784
|
fired: boolean;
|
|
773
785
|
}
|
|
@@ -4,7 +4,7 @@ export const CLUSTER_MEMBER_PROVIDERS = ['claude', 'codex', 'ollama', 'llamacpp'
|
|
|
4
4
|
export function isOperatorSendOnlyProvider(v) {
|
|
5
5
|
return v === 'antigravity-cli';
|
|
6
6
|
}
|
|
7
|
-
export const GEMINI_MEMBER_NOTE = '
|
|
7
|
+
export const GEMINI_MEMBER_NOTE = 'AUTO-PICKUP can wake Gemini for eligible incoming mail. Mail from Gemini waits for your NUDGE on the recipient.';
|
|
8
8
|
// Shown where a Gemini member is chosen: it runs in the project folder.
|
|
9
9
|
export const GEMINI_MEMBER_CHOICE_NOTE = `${GEMINI_MEMBER_NOTE} Gemini members are not isolated.`;
|
|
10
10
|
// Shown where a Gemini Research Director is chosen.
|
|
@@ -181,7 +181,7 @@ export interface Capabilities {
|
|
|
181
181
|
}
|
|
182
182
|
export interface ClaudeCredentialBinding {
|
|
183
183
|
source: 'claude-native' | 'claude-cli';
|
|
184
|
-
storeId: 'claude.native' | 'claude-cli-default'
|
|
184
|
+
storeId: 'claude.native' | 'claude-cli-default' | `claude.native:${string}`;
|
|
185
185
|
revision?: string;
|
|
186
186
|
}
|
|
187
187
|
export interface ClaudeCliAuthStatus {
|
|
@@ -213,8 +213,10 @@ export interface ClaudeNativeAuthStatus {
|
|
|
213
213
|
export interface AuthStatus {
|
|
214
214
|
loggedIn: boolean;
|
|
215
215
|
native?: ClaudeNativeAuthStatus;
|
|
216
|
+
nativeAccounts?: Record<string, ClaudeNativeAuthStatus>;
|
|
216
217
|
cli?: ClaudeCliAuthStatus;
|
|
217
218
|
probeFailed?: boolean;
|
|
219
|
+
githubState?: 'missing' | 'signed-out' | 'probe-failed';
|
|
218
220
|
email?: string;
|
|
219
221
|
subscriptionType?: string;
|
|
220
222
|
orgName?: string;
|
|
@@ -271,9 +273,12 @@ export interface ClaudeNativeAuthFlow {
|
|
|
271
273
|
bindingBefore: ClaudeCredentialBinding;
|
|
272
274
|
binding?: ClaudeCredentialBinding;
|
|
273
275
|
workflowId?: string;
|
|
276
|
+
accountRef?: string;
|
|
274
277
|
error?: string;
|
|
275
278
|
}
|
|
276
279
|
export interface AuthRecoveryContext {
|
|
277
280
|
transport: 'native' | 'cli';
|
|
278
281
|
binding?: ClaudeCredentialBinding;
|
|
282
|
+
accountRef?: string;
|
|
283
|
+
accountUnavailable?: boolean;
|
|
279
284
|
}
|
|
@@ -8,10 +8,11 @@ export interface OperatorQuestion {
|
|
|
8
8
|
}>;
|
|
9
9
|
allowOther: boolean;
|
|
10
10
|
secret: boolean;
|
|
11
|
+
optional?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export interface OperatorQuestionState {
|
|
13
14
|
requestId: string;
|
|
14
|
-
provider: 'codex';
|
|
15
|
+
provider: 'codex' | 'antigravity-cli';
|
|
15
16
|
threadId: string;
|
|
16
17
|
turnId: string;
|
|
17
18
|
itemId: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const TERMINAL_CODEX_ACCOUNT = "@terminal";
|
|
2
|
+
export declare const DEFAULT_CLAUDE_NATIVE_ACCOUNT = "@native-default";
|
|
3
|
+
export declare function isClaudeNativeProfileId(id: unknown): id is string;
|
|
2
4
|
import type { EffortLevel, ModelName, ProviderName } from './providers.js';
|
|
3
5
|
import type { FallbackChainsConfig } from './fallback.js';
|
|
4
6
|
export interface NativeSubagentPolicy {
|
|
@@ -58,6 +60,7 @@ export interface ProviderAccountProfile {
|
|
|
58
60
|
export interface ProviderAccountsConfig {
|
|
59
61
|
codex?: ProviderAccountProfile[];
|
|
60
62
|
claude?: ProviderAccountProfile[];
|
|
63
|
+
claudeNative?: ProviderAccountProfile[];
|
|
61
64
|
}
|
|
62
65
|
export interface ArcoSettings {
|
|
63
66
|
previewPorts?: string;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
// Reserved account selector for a terminal-owned Codex session in CODEX_HOME.
|
|
2
2
|
export const TERMINAL_CODEX_ACCOUNT = '@terminal';
|
|
3
|
+
// An explicit selection of the original Claude Native credential store.
|
|
4
|
+
export const DEFAULT_CLAUDE_NATIVE_ACCOUNT = '@native-default';
|
|
5
|
+
export function isClaudeNativeProfileId(id) {
|
|
6
|
+
return typeof id === 'string' && /^native-[0-9a-f]{24}$/.test(id);
|
|
7
|
+
}
|
|
3
8
|
export function sanitizeNativeSubagents(value) {
|
|
4
9
|
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
5
10
|
return undefined;
|
|
@@ -193,6 +193,7 @@ export type FileContextReference = {
|
|
|
193
193
|
};
|
|
194
194
|
export interface WorkerConfig {
|
|
195
195
|
antigravityInteractive?: boolean;
|
|
196
|
+
antigravityHandoffWriter?: boolean;
|
|
196
197
|
antigravityChatWorkspace?: boolean;
|
|
197
198
|
priorFiles?: FileContextReference[];
|
|
198
199
|
fileContextCwd?: string;
|
|
@@ -15,8 +15,6 @@ export function resolveAutoCompactionPolicy(worker, cluster) {
|
|
|
15
15
|
}
|
|
16
16
|
// Leave ten percent of the context window for the compaction request itself.
|
|
17
17
|
export function resolveProviderAutoCompaction(worker, cluster, provider, transport, serverCompact, savedOllamaPolicy = false) {
|
|
18
|
-
if (provider === 'antigravity-cli')
|
|
19
|
-
return undefined;
|
|
20
18
|
const explicit = resolveAutoCompactionPolicy(worker, cluster);
|
|
21
19
|
if (explicit)
|
|
22
20
|
return explicit;
|
|
@@ -11,9 +11,8 @@ export interface ClusterSkillPin extends ArcoSkillRef { role?: string }
|
|
|
11
11
|
// MCP over http/sse only, not stdio). Local providers (ollama/llamacpp) use
|
|
12
12
|
// Arco's in-process tool runtime and are serialized per provider to avoid
|
|
13
13
|
// local model fights.
|
|
14
|
-
// Gemini
|
|
15
|
-
//
|
|
16
|
-
// mail they send waits for the operator's NUDGE on the recipient
|
|
14
|
+
// Gemini members can receive ordinary AUTO-PICKUP wakes. Mail from Gemini
|
|
15
|
+
// waits for the operator's NUDGE on the recipient
|
|
17
16
|
// (docs/PROTOCOL_CLUSTER.md "Gemini members").
|
|
18
17
|
export type ClusterMemberProvider = 'claude' | 'codex' | 'ollama' | 'llamacpp' | 'cursor' | 'antigravity-cli';
|
|
19
18
|
|
|
@@ -23,7 +22,7 @@ export const CLUSTER_MEMBER_PROVIDERS = ['claude', 'codex', 'ollama', 'llamacpp'
|
|
|
23
22
|
export function isOperatorSendOnlyProvider(v: unknown): boolean {
|
|
24
23
|
return v === 'antigravity-cli';
|
|
25
24
|
}
|
|
26
|
-
export const GEMINI_MEMBER_NOTE = '
|
|
25
|
+
export const GEMINI_MEMBER_NOTE = 'AUTO-PICKUP can wake Gemini for eligible incoming mail. Mail from Gemini waits for your NUDGE on the recipient.';
|
|
27
26
|
// Shown where a Gemini member is chosen: it runs in the project folder.
|
|
28
27
|
export const GEMINI_MEMBER_CHOICE_NOTE = `${GEMINI_MEMBER_NOTE} Gemini members are not isolated.`;
|
|
29
28
|
// Shown where a Gemini Research Director is chosen.
|
|
@@ -608,6 +607,25 @@ export interface ClusterCreateWithFreshWorkersMessage extends ClusterCreationSet
|
|
|
608
607
|
model?: string;
|
|
609
608
|
effort?: 'low' | 'medium' | 'high' | string;
|
|
610
609
|
providerAccountRef?: string;
|
|
610
|
+
// docs/PROTOCOL_CLUSTER.md - one entry per fresh worker, each configured on its own
|
|
611
|
+
// with the + ADD FRESH choices. When present, its length is additionalCount
|
|
612
|
+
// and the single provider/model/effort/providerAccountRef fields above are
|
|
613
|
+
// not sent. Absent: every worker uses the fields above (older clients).
|
|
614
|
+
members?: ClusterFreshMemberSpec[];
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
// One fresh worker: the choices of + ADD FRESH for a single member. Absent
|
|
618
|
+
// fields keep the template tab's value; name absent gives the default name.
|
|
619
|
+
export interface ClusterFreshMemberSpec extends ClusterMemberTuning {
|
|
620
|
+
provider?: ClusterMemberProvider;
|
|
621
|
+
model?: string;
|
|
622
|
+
effort?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | string;
|
|
623
|
+
providerAccountRef?: string;
|
|
624
|
+
accessMode?: ClusterMemberAccessMode;
|
|
625
|
+
webAccess?: boolean;
|
|
626
|
+
claudeTransport?: 'native' | 'cli';
|
|
627
|
+
name?: string;
|
|
628
|
+
role?: string;
|
|
611
629
|
}
|
|
612
630
|
|
|
613
631
|
// operator picked CLUSTER mode in the +NEW WorkflowCreator
|
|
@@ -1396,7 +1414,7 @@ export interface ClusterAutoTurnFiredMessage {
|
|
|
1396
1414
|
workflowId: string; // recipient (the workflow whose turn fires / would have fired)
|
|
1397
1415
|
sender: string; // sender workflowId of the triggering peer_message_sent
|
|
1398
1416
|
chainDepth: number; // depth this auto-turn lands at (sender's + 1 on fire; reported as-is on skip)
|
|
1399
|
-
reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled' | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail';
|
|
1417
|
+
reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled' | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail' | 'member_blocked';
|
|
1400
1418
|
notice?: string; // operator-facing pause notice
|
|
1401
1419
|
fired: boolean; // true → a turn was dispatched; false → guard refused
|
|
1402
1420
|
}
|
|
@@ -23,8 +23,8 @@ import type { EffortLevel, ModelName, ProviderName } from './providers.js';
|
|
|
23
23
|
export const COMPARE_MIN_LEGS = 2;
|
|
24
24
|
export const COMPARE_MAX_LEGS = 6;
|
|
25
25
|
|
|
26
|
-
// One leg's agent config — resolved by the dialog's RUN AS pickers.
|
|
27
|
-
//
|
|
26
|
+
// One leg's agent config — resolved by the dialog's RUN AS pickers. Bound
|
|
27
|
+
// Claude Native and Codex legs carry the account used by drafting and synthesis.
|
|
28
28
|
export interface CompareLegConfig {
|
|
29
29
|
provider: ProviderName;
|
|
30
30
|
model: ModelName;
|
|
@@ -707,10 +707,10 @@ export interface Capabilities {
|
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
// Identifies a credential store, not an account or a named profile. Revision
|
|
710
|
-
// is an opaque change stamp, never a token.
|
|
710
|
+
// is an opaque change stamp, never a token.
|
|
711
711
|
export interface ClaudeCredentialBinding {
|
|
712
712
|
source: 'claude-native' | 'claude-cli';
|
|
713
|
-
storeId: 'claude.native' | 'claude-cli-default'
|
|
713
|
+
storeId: 'claude.native' | 'claude-cli-default' | `claude.native:${string}`;
|
|
714
714
|
revision?: string;
|
|
715
715
|
}
|
|
716
716
|
|
|
@@ -748,10 +748,11 @@ export interface AuthStatus {
|
|
|
748
748
|
// Claude-only: loggedIn means at least one local credential path is
|
|
749
749
|
// available. Transport-specific status and recovery use these fields.
|
|
750
750
|
native?: ClaudeNativeAuthStatus;
|
|
751
|
+
nativeAccounts?: Record<string, ClaudeNativeAuthStatus>;
|
|
751
752
|
cli?: ClaudeCliAuthStatus;
|
|
752
|
-
//
|
|
753
|
-
// stays in native/cli; a failed probe must never read as a new logout.
|
|
753
|
+
// A required status read failed; it must not read as a new logout.
|
|
754
754
|
probeFailed?: boolean;
|
|
755
|
+
githubState?: 'missing' | 'signed-out' | 'probe-failed';
|
|
755
756
|
email?: string;
|
|
756
757
|
subscriptionType?: string;
|
|
757
758
|
orgName?: string;
|
|
@@ -840,10 +841,13 @@ export interface ClaudeNativeAuthFlow {
|
|
|
840
841
|
bindingBefore: ClaudeCredentialBinding;
|
|
841
842
|
binding?: ClaudeCredentialBinding;
|
|
842
843
|
workflowId?: string;
|
|
844
|
+
accountRef?: string;
|
|
843
845
|
error?: string;
|
|
844
846
|
}
|
|
845
847
|
|
|
846
848
|
export interface AuthRecoveryContext {
|
|
847
849
|
transport: 'native' | 'cli';
|
|
848
850
|
binding?: ClaudeCredentialBinding;
|
|
851
|
+
accountRef?: string;
|
|
852
|
+
accountUnavailable?: boolean;
|
|
849
853
|
}
|
|
@@ -6,10 +6,11 @@ export interface OperatorQuestion {
|
|
|
6
6
|
options?: Array<{ label: string; description: string }>;
|
|
7
7
|
allowOther: boolean;
|
|
8
8
|
secret: boolean;
|
|
9
|
+
optional?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export interface OperatorQuestionState {
|
|
11
12
|
requestId: string;
|
|
12
|
-
provider: 'codex';
|
|
13
|
+
provider: 'codex' | 'antigravity-cli';
|
|
13
14
|
threadId: string;
|
|
14
15
|
turnId: string;
|
|
15
16
|
itemId: string;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
// Reserved account selector for a terminal-owned Codex session in CODEX_HOME.
|
|
2
2
|
export const TERMINAL_CODEX_ACCOUNT = '@terminal';
|
|
3
|
+
// An explicit selection of the original Claude Native credential store.
|
|
4
|
+
export const DEFAULT_CLAUDE_NATIVE_ACCOUNT = '@native-default';
|
|
5
|
+
|
|
6
|
+
export function isClaudeNativeProfileId(id: unknown): id is string {
|
|
7
|
+
return typeof id === 'string' && /^native-[0-9a-f]{24}$/.test(id);
|
|
8
|
+
}
|
|
3
9
|
|
|
4
10
|
// ── Operator settings / provider accounts / advanced options ──
|
|
5
11
|
|
|
@@ -91,7 +97,8 @@ export interface ProviderAccountProfile {
|
|
|
91
97
|
|
|
92
98
|
export interface ProviderAccountsConfig {
|
|
93
99
|
codex?: ProviderAccountProfile[];
|
|
94
|
-
claude?: ProviderAccountProfile[];
|
|
100
|
+
claude?: ProviderAccountProfile[]; // Legacy labels, with no credential stores.
|
|
101
|
+
claudeNative?: ProviderAccountProfile[];
|
|
95
102
|
}
|
|
96
103
|
|
|
97
104
|
export interface ArcoSettings {
|
|
@@ -30,7 +30,6 @@ export function resolveAutoCompactionPolicy(
|
|
|
30
30
|
|
|
31
31
|
// Leave ten percent of the context window for the compaction request itself.
|
|
32
32
|
export function resolveProviderAutoCompaction(worker: AutoCompactionPolicy | undefined, cluster: AutoCompactionPolicy | undefined, provider: string, transport: string, serverCompact: boolean, savedOllamaPolicy = false): AutoCompactionPolicy | undefined {
|
|
33
|
-
if (provider === 'antigravity-cli') return undefined;
|
|
34
33
|
const explicit = resolveAutoCompactionPolicy(worker, cluster);
|
|
35
34
|
if (explicit) return explicit;
|
|
36
35
|
if (provider === 'ollama' && savedOllamaPolicy) return undefined;
|
|
@@ -518,6 +517,7 @@ export type FileContextReference =
|
|
|
518
517
|
export interface WorkerConfig {
|
|
519
518
|
// Server-only authorization for an operator-initiated interactive ACP turn.
|
|
520
519
|
antigravityInteractive?: boolean;
|
|
520
|
+
antigravityHandoffWriter?: boolean;
|
|
521
521
|
antigravityChatWorkspace?: boolean;
|
|
522
522
|
// Server-local primary replay context. These fields are not worker settings.
|
|
523
523
|
priorFiles?: FileContextReference[];
|