arco-workbench 0.1.5 → 0.1.6
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 +9 -0
- package/README.md +11 -4
- package/client/dist/assets/{PhosphorBackdrop-D6cbmLNY.js → PhosphorBackdrop-BR-TgB5x.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-2dyerOi4.js → ThemedBackgroundShaderImpl-DgcFj6JN.js} +1 -1
- package/client/dist/assets/{XtermView-AIwo7O3D.js → XtermView-CflVBQgC.js} +1 -1
- package/client/dist/assets/{galleryEditor-DXAuxS8D.js → galleryEditor-BB-emfmi.js} +1 -1
- package/client/dist/assets/{index-8j6p-pmQ.js → index-B_EqHDz3.js} +242 -240
- package/client/dist/index.html +1 -1
- package/client/src/alerts/desktopAlerts.ts +13 -0
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +28 -5
- package/client/src/components/ClusterRightPanel/MemberRow.tsx +1 -1
- package/client/src/components/ClusterTaskBoardTab.tsx +54 -3
- package/client/src/components/ContextMeter.tsx +7 -0
- package/client/src/components/Home/HomeView.tsx +1 -1
- package/client/src/components/NeedsYouBadge.tsx +31 -16
- package/client/src/components/OperatorQuestionNotice.tsx +10 -1
- package/client/src/components/ProvidersPopover.tsx +23 -12
- package/client/src/components/TabBar.tsx +11 -8
- package/client/src/components/TabStatusChip.tsx +8 -7
- package/client/src/components/clusterNeedsYou.ts +27 -8
- package/client/src/help/content/cluster.tsx +34 -22
- package/client/src/help/content/composer.tsx +8 -1
- package/client/src/help/content/header.tsx +22 -13
- package/client/src/help/content/misc.tsx +8 -0
- package/client/src/help/content/tabbar.tsx +2 -1
- package/client/src/help/manualSections/clusters.tsx +61 -18
- package/client/src/help/manualSections/gettingStarted.tsx +10 -0
- package/client/src/help/manualSections/maintenance.tsx +38 -8
- package/client/src/help/manualSections/providers.tsx +10 -3
- package/client/src/help/manualSections/reference.tsx +1 -1
- package/client/src/help/manualSections/workflows.tsx +13 -0
- package/client/src/help/manualSections/workspace.tsx +7 -1
- package/client/src/questions/waitingQuestion.ts +3 -2
- package/client/src/stores/appStore.ts +1 -1
- package/client/src/stores/appStore.types.ts +1 -0
- package/client/src/stores/notificationStore.ts +2 -0
- package/client/src/utils/activityPresentation.ts +1 -1
- package/client/src/utils/tabStatus.ts +8 -0
- package/client/src/voice/commands.ts +4 -3
- package/client/src/voice/executor.ts +3 -3
- package/client/src/ws/handleServerMessage.ts +22 -2
- package/client/src/ws/operatorQuestions.ts +2 -0
- package/docs/CLIENT.md +3 -3
- package/docs/FEATURES.md +1 -1
- package/docs/GETTING_STARTED.md +11 -5
- package/docs/GLOSSARY.md +6 -2
- package/docs/GOTCHAS.md +17 -5
- package/docs/OPERATIONS.md +184 -5
- package/docs/PERSISTENCE.md +4 -0
- package/docs/PRIMITIVES.md +1 -1
- package/docs/PROTOCOL.md +1 -1
- package/docs/PROTOCOL_CLUSTER.md +9 -5
- package/docs/PROVIDERS.md +10 -5
- package/docs/SETTINGS.md +4 -2
- package/docs/TASK_LEDGER.md +6 -0
- package/docs/VOICE.md +2 -0
- package/native/win32-arm64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/clusterRolePresets.d.ts +1 -1
- package/node_modules/@arco/shared/dist/clusterRolePresets.js +10 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.js +9 -1
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +2 -2
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -0
- package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +12 -0
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +9 -3
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +2 -2
- package/scripts/packaging/arco.mjs +1 -0
- package/server/dist/attention.d.ts +1 -1
- package/server/dist/attention.js +6 -4
- package/server/dist/capabilities.d.ts +9 -8
- package/server/dist/capabilities.js +71 -102
- package/server/dist/cliUpdateDecision.d.ts +34 -0
- package/server/dist/cliUpdateDecision.js +152 -0
- package/server/dist/clusterDirector.js +1 -0
- package/server/dist/clusterPeerOps.js +2 -2
- package/server/dist/defaults/models.md +1 -1
- package/server/dist/fileAccessPolicy.js +7 -5
- package/server/dist/http/workflowDataRoutes.js +1 -1
- package/server/dist/index.js +5 -1
- package/server/dist/primitives/seedWorker.d.ts +1 -0
- package/server/dist/primitives/seedWorker.js +2 -1
- package/server/dist/providerConversation.d.ts +9 -0
- package/server/dist/providerConversation.js +80 -0
- package/server/dist/providers/claude-native/retainedContext.d.ts +4 -0
- package/server/dist/providers/claude-native/retainedContext.js +20 -0
- package/server/dist/providers/claude-native/worker.d.ts +1 -0
- package/server/dist/providers/claude-native/worker.js +34 -6
- package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -0
- package/server/dist/providers/codex-appserver/operatorQuestions.js +30 -0
- package/server/dist/providers/codex-appserver/worker.js +9 -4
- package/server/dist/providers/ollama.js +2 -3
- package/server/dist/server/broadcast.d.ts +1 -1
- package/server/dist/smartPickupAdapters.d.ts +1 -0
- package/server/dist/smartPickupAdapters.js +18 -5
- package/server/dist/smartPickupObserver.js +45 -8
- package/server/dist/workers/WorkerManager.d.ts +1 -0
- package/server/dist/workers/WorkerManager.js +1 -0
- package/server/dist/workers/limits.js +6 -2
- package/server/dist/workflowMeta.d.ts +11 -1
- package/server/dist/workflowMeta.js +132 -6
- package/server/dist/workflows/types.d.ts +1 -0
- package/server/dist/ws/compactHandlers.d.ts +1 -1
- package/server/dist/ws/compactHandlers.js +11 -4
- package/server/dist/ws/handoffHandlers.js +16 -6
- package/server/dist/ws/operatorQuestionHandlers.d.ts +2 -1
- package/server/dist/ws/operatorQuestionHandlers.js +9 -1
- package/server/dist/ws/turnEngine.d.ts +2 -4
- package/server/dist/ws/turnEngine.js +88 -129
- package/server/package.json +1 -1
- package/server/src/attention.ts +5 -4
- package/server/src/capabilities.ts +70 -111
- package/server/src/cliUpdateDecision.ts +159 -0
- package/server/src/clusterDirector.ts +1 -0
- package/server/src/clusterPeerOps.ts +2 -2
- package/server/src/defaults/models.md +1 -1
- package/server/src/fileAccessPolicy.ts +7 -5
- package/server/src/http/workflowDataRoutes.ts +1 -1
- package/server/src/index.ts +5 -1
- package/server/src/primitives/seedWorker.ts +3 -1
- package/server/src/providerConversation.ts +71 -0
- package/server/src/providers/claude-native/retainedContext.ts +22 -0
- package/server/src/providers/claude-native/worker.ts +33 -5
- package/server/src/providers/codex-appserver/operatorQuestions.ts +24 -0
- package/server/src/providers/codex-appserver/worker.ts +8 -4
- package/server/src/providers/ollama.ts +2 -3
- package/server/src/smartPickupAdapters.ts +19 -5
- package/server/src/smartPickupObserver.ts +31 -6
- package/server/src/workers/WorkerManager.ts +2 -0
- package/server/src/workers/limits.ts +7 -2
- package/server/src/workflowMeta.ts +139 -5
- package/server/src/workflows/types.ts +1 -0
- package/server/src/ws/compactHandlers.ts +9 -3
- package/server/src/ws/handoffHandlers.ts +13 -6
- package/server/src/ws/operatorQuestionHandlers.ts +10 -2
- package/server/src/ws/turnEngine.ts +80 -135
- package/shared/dist/clusterRolePresets.d.ts +1 -1
- package/shared/dist/clusterRolePresets.js +10 -0
- package/shared/dist/protocol/autoPickup.js +9 -1
- package/shared/dist/protocol/clientMessages.d.ts +2 -2
- package/shared/dist/protocol/models.d.ts +6 -0
- package/shared/dist/protocol/notifications.d.ts +4 -0
- package/shared/dist/protocol/operatorQuestions.d.ts +12 -0
- package/shared/dist/protocol/serverMessages.d.ts +9 -3
- package/shared/dist/protocol/workflows.d.ts +1 -0
- package/shared/src/clusterRolePresets.ts +11 -1
- package/shared/src/protocol/autoPickup.ts +9 -1
- package/shared/src/protocol/clientMessages.ts +2 -1
- package/shared/src/protocol/models.ts +5 -2
- package/shared/src/protocol/notifications.ts +5 -0
- package/shared/src/protocol/operatorQuestions.ts +13 -0
- package/shared/src/protocol/serverMessages.ts +12 -2
- package/shared/src/protocol/workflows.ts +4 -0
|
@@ -645,11 +645,14 @@ export const CLAUDE_MODEL_EFFORTS: Record<string, EffortLevel[]> = {
|
|
|
645
645
|
haiku: ['low', 'medium', 'high'],
|
|
646
646
|
};
|
|
647
647
|
|
|
648
|
+
export type CliUpdateOutcome = 'updated' | 'current' | 'unchanged' | 'deferred' | 'manual' | 'failed';
|
|
649
|
+
|
|
648
650
|
export interface Capabilities {
|
|
649
651
|
efforts: EffortLevel[];
|
|
650
652
|
models: ModelName[];
|
|
651
653
|
cliVersion: string;
|
|
652
654
|
codexVersion?: string;
|
|
655
|
+
codexUpdate?: { kind: 'standalone' | 'npm' | 'unknown'; updateAvailable: boolean; instruction?: string };
|
|
653
656
|
// `cursor-agent --version` — date-stamped (e.g. "2026.07.08-0c04a8a"), not
|
|
654
657
|
// semver, and not npm-installed, so there's no upstream `latestVersions.cursor`
|
|
655
658
|
// and no self-update path: display-only in the PROVIDERS popover.
|
|
@@ -658,8 +661,8 @@ export interface Capabilities {
|
|
|
658
661
|
strataVersion?: string;
|
|
659
662
|
// Xolotl checkout revision; source tracking, not a claim about a rebuilt binary.
|
|
660
663
|
xolotlRevision?: string;
|
|
661
|
-
// Latest
|
|
662
|
-
// npm
|
|
664
|
+
// Latest versions from the selected update source (Codex's installation
|
|
665
|
+
// decision, npm for Claude, GitHub Releases for Ollama). Best-effort: any
|
|
663
666
|
// probe failure leaves that key undefined and the UI falls back to the
|
|
664
667
|
// installed-only display. Refreshed on the same cadence as the local
|
|
665
668
|
// CLI re-probe.
|
|
@@ -185,3 +185,8 @@ export interface AttentionEventMessage {
|
|
|
185
185
|
// Short turns and filtered cluster members can still produce in-app notices.
|
|
186
186
|
desktopEligible?: boolean;
|
|
187
187
|
}
|
|
188
|
+
|
|
189
|
+
export interface AttentionQuestionClosedMessage {
|
|
190
|
+
type: 'attention_question_closed';
|
|
191
|
+
requestId: string;
|
|
192
|
+
}
|
|
@@ -38,3 +38,16 @@ export interface OperatorQuestionReplyResultMessage {
|
|
|
38
38
|
ok: boolean;
|
|
39
39
|
error?: string;
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
export interface OperatorQuestionDismissMessage {
|
|
43
|
+
type: 'operator_question_dismiss';
|
|
44
|
+
workflowId: string;
|
|
45
|
+
requestId: string;
|
|
46
|
+
}
|
|
47
|
+
export interface OperatorQuestionDismissResultMessage {
|
|
48
|
+
type: 'operator_question_dismiss_result';
|
|
49
|
+
workflowId: string;
|
|
50
|
+
requestId: string;
|
|
51
|
+
ok: boolean;
|
|
52
|
+
error?: string;
|
|
53
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OutputSavedMessage } from '../outputs.js';
|
|
2
2
|
// ── Server → Client messages ──
|
|
3
3
|
|
|
4
|
-
import type { OperatorQuestionMessage, OperatorQuestionReplyResultMessage, OperatorQuestionState } from './operatorQuestions.js';
|
|
4
|
+
import type { OperatorQuestionMessage, OperatorQuestionReplyResultMessage, OperatorQuestionDismissResultMessage, OperatorQuestionState } from './operatorQuestions.js';
|
|
5
5
|
import type { VoiceToolCallMessage, ComputerContextUpdatedMessage, ComputerActivityChangedMessage } from './voiceOperator.js';
|
|
6
6
|
|
|
7
7
|
import type { HubLinkStatusMessage } from './remoteManagement.js';
|
|
@@ -32,7 +32,7 @@ import type { DocEditStartedMessage, DocEditProposedMessage } from './docEdit.js
|
|
|
32
32
|
import type { MdTuneupStartedMessage, MdTuneupProposedMessage, MdTuneupAppliedMessage, MdTuneupCandidatesMessage, MdTuneupUndoneMessage } from './mdTuneup.js';
|
|
33
33
|
import type { KnowledgeDistillStartedMessage, KnowledgeDistillProposedMessage } from './knowledge.js';
|
|
34
34
|
import type { RecallSummaryReadyMessage } from './recall.js';
|
|
35
|
-
import type { WorkbenchNoticeMessage, NotificationMutesMessage, AttentionEventMessage } from './notifications.js';
|
|
35
|
+
import type { WorkbenchNoticeMessage, NotificationMutesMessage, AttentionEventMessage, AttentionQuestionClosedMessage } from './notifications.js';
|
|
36
36
|
import type {
|
|
37
37
|
HandoffStartedMessage,
|
|
38
38
|
HandoffArtifactReadyMessage,
|
|
@@ -950,10 +950,17 @@ export interface ConversationChangedMessage {
|
|
|
950
950
|
note: string;
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
+
export interface ProviderConversationStateMessage {
|
|
954
|
+
type: 'provider_conversation_state';
|
|
955
|
+
workflowId: string;
|
|
956
|
+
state: 'unavailable' | 'awaiting-reading' | 'ready';
|
|
957
|
+
}
|
|
958
|
+
|
|
953
959
|
// Lossless state sync on reconnect. Tells the client what the server considers
|
|
954
960
|
// ground truth so stale client-side state snaps to truth immediately.
|
|
955
961
|
export interface WorkflowStateSnapshotMessage {
|
|
956
962
|
type: 'workflow_state_snapshot';
|
|
963
|
+
providerConversation?: 'unavailable' | 'awaiting-reading';
|
|
957
964
|
workflowId: string;
|
|
958
965
|
workers: Record<string, WorkerState>;
|
|
959
966
|
busy: boolean;
|
|
@@ -1554,6 +1561,7 @@ export type ServerMessage =
|
|
|
1554
1561
|
| QuotaStatusMessage
|
|
1555
1562
|
| TurnCancelledMessage
|
|
1556
1563
|
| WorkflowStateSnapshotMessage
|
|
1564
|
+
| ProviderConversationStateMessage
|
|
1557
1565
|
| WorkflowSessionMetadataMessage
|
|
1558
1566
|
| ReplayBatchMessage
|
|
1559
1567
|
| ShutdownMessage
|
|
@@ -1603,6 +1611,7 @@ export type ServerMessage =
|
|
|
1603
1611
|
| UltracodeFleetProgressMessage
|
|
1604
1612
|
| ContextBudgetMessage
|
|
1605
1613
|
| OperatorQuestionMessage
|
|
1614
|
+
| OperatorQuestionDismissResultMessage
|
|
1606
1615
|
| OperatorQuestionReplyResultMessage
|
|
1607
1616
|
| VoiceToolCallMessage
|
|
1608
1617
|
| SystemNoticeMessage
|
|
@@ -1677,6 +1686,7 @@ export type ServerMessage =
|
|
|
1677
1686
|
| WorkbenchNoticeMessage
|
|
1678
1687
|
| NotificationMutesMessage
|
|
1679
1688
|
| AttentionEventMessage
|
|
1689
|
+
| AttentionQuestionClosedMessage
|
|
1680
1690
|
| HubLinkStatusMessage;
|
|
1681
1691
|
|
|
1682
1692
|
// Phase 0 — typed envelope for events read off events.jsonl or received over
|
|
@@ -575,6 +575,10 @@ export interface WorkerConfig {
|
|
|
575
575
|
// first real reply rather than landing inside the ack.
|
|
576
576
|
// In-process callback only; not serialized.
|
|
577
577
|
drainSteer?: () => SteerItem[];
|
|
578
|
+
// Server-local, non-destructive view of the same eligible queue objects.
|
|
579
|
+
// Native uses their identity to show one notice per held message without
|
|
580
|
+
// acknowledging or removing input before its safe delivery boundary.
|
|
581
|
+
peekSteer?: () => readonly SteerItem[];
|
|
578
582
|
// Phase 6b — re-enqueue hook for the Codex app-server worker. Called when
|
|
579
583
|
// a `turn/steer` round-trip fails and the drained items have to land
|
|
580
584
|
// back in a queue: `'steer'` for `activeTurnNotSteerable` (the next
|