arco-workbench 0.1.7 → 0.1.8
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 +52 -12
- package/README.md +14 -12
- package/client/dist/assets/{PhosphorBackdrop-DVQdBrTw.js → PhosphorBackdrop-D7jdAV_G.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-BfSs2tB4.js → ThemedBackgroundShaderImpl-DrDm60h8.js} +1 -1
- package/client/dist/assets/{XtermView-DaMjC8Ny.js → XtermView-BGFujb1e.js} +1 -1
- package/client/dist/assets/{galleryEditor-BCQnXj7R.js → galleryEditor-D951A2sE.js} +1 -1
- package/client/dist/assets/{index-COfbHCYv.js → index-CsVy3eZm.js} +246 -246
- package/client/dist/index.html +1 -1
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +65 -15
- package/client/src/components/ClusterRightPanel/SkillsControl.tsx +107 -0
- package/client/src/components/ClusterRightPanel/index.tsx +4 -0
- package/client/src/components/ClusterTaskBoardTab.tsx +9 -22
- package/client/src/components/NeedsYouBadge.tsx +3 -3
- package/client/src/components/ProviderReleasesModal.tsx +8 -4
- package/client/src/components/ProvidersPopover.tsx +28 -23
- package/client/src/components/SettingsPanel.tsx +2 -2
- package/client/src/components/SkillsSettings.tsx +5 -0
- package/client/src/components/TabBar.tsx +91 -9
- package/client/src/components/TerminalInput.tsx +12 -10
- package/client/src/components/TranscriptSendDialog.tsx +12 -8
- package/client/src/components/TranscriptWorkerDialog.tsx +119 -0
- package/client/src/components/clusterNeedsYou.ts +11 -18
- package/client/src/help/content/cluster.tsx +38 -17
- package/client/src/help/content/composer.tsx +22 -0
- package/client/src/help/content/header.tsx +16 -0
- package/client/src/help/content/misc.tsx +8 -0
- package/client/src/help/content/settings.tsx +18 -4
- package/client/src/help/content/tabbar.tsx +5 -0
- package/client/src/help/manualSections/actions.tsx +31 -0
- package/client/src/help/manualSections/clusters.tsx +41 -20
- package/client/src/help/manualSections/configuration.tsx +18 -0
- package/client/src/help/manualSections/maintenance.tsx +18 -0
- package/client/src/help/manualSections/providers.tsx +32 -8
- package/client/src/help/manualSections/troubleshooting.tsx +2 -1
- package/client/src/help/manualSections/workflows.tsx +12 -0
- package/client/src/help/manualSections/workspace.tsx +6 -0
- package/client/src/utils/transcriptWorkerRequest.ts +24 -0
- package/client/src/ws/handleServerMessage.ts +8 -2
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/CLIENT.md +9 -8
- package/docs/FEATURES.md +8 -5
- package/docs/GETTING_STARTED.md +4 -3
- package/docs/GOTCHAS.md +2 -1
- package/docs/OPERATIONS.md +14 -4
- package/docs/PERSISTENCE.md +7 -2
- package/docs/PRIMITIVES.md +42 -0
- package/docs/PROTOCOL_CLUSTER.md +42 -3
- package/docs/PROTOCOL_PRIMITIVES.md +39 -0
- package/docs/PROVIDERS.md +50 -13
- package/docs/SETTINGS.md +27 -3
- package/docs/TASK_LEDGER.md +7 -15
- package/native/darwin-arm64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +2 -0
- package/node_modules/@arco/shared/dist/clusterCoordination.js +5 -1
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +3 -2
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +13 -1
- package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +4 -3
- package/node_modules/@arco/shared/dist/protocol/models.js +26 -2
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/transcriptWorker.d.ts +47 -0
- package/node_modules/@arco/shared/dist/protocol/transcriptWorker.js +2 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +1 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.js +14 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +2 -2
- package/scripts/packaging/arco.mjs +1 -1
- package/scripts/packaging/native-repair.mjs +32 -4
- package/server/dist/atomicFile.js +1 -2
- package/server/dist/capabilities.d.ts +5 -2
- package/server/dist/capabilities.js +59 -9
- package/server/dist/cliUpdateDecision.d.ts +1 -1
- package/server/dist/cliUpdateDecision.js +5 -3
- package/server/dist/clusterDirector.js +1 -1
- package/server/dist/clusterPeerOps.js +10 -7
- package/server/dist/clusterProgress.js +1 -1
- package/server/dist/clusterSkills.d.ts +13 -0
- package/server/dist/clusterSkills.js +81 -0
- package/server/dist/clusterSnapshots.js +2 -0
- package/server/dist/clusterStore.d.ts +7 -2
- package/server/dist/clusterStore.js +42 -1
- package/server/dist/diagnostics/codeSkew.js +1 -0
- package/server/dist/eventLog.d.ts +7 -0
- package/server/dist/eventLog.js +70 -13
- package/server/dist/historyLimits.d.ts +1 -0
- package/server/dist/historyLimits.js +3 -0
- package/server/dist/http/router.js +1 -1
- package/server/dist/index.js +24 -1
- package/server/dist/jsonlLines.d.ts +4 -0
- package/server/dist/jsonlLines.js +53 -0
- package/server/dist/management/identity.js +1 -0
- package/server/dist/mcp/clusterMcpTools.js +4 -4
- package/server/dist/project/taskLedger.d.ts +4 -0
- package/server/dist/project/taskLedger.js +7 -4
- package/server/dist/providerConversation.d.ts +1 -0
- package/server/dist/providerConversation.js +17 -0
- package/server/dist/providers/claude-native/resumeSummary.d.ts +9 -0
- package/server/dist/providers/claude-native/resumeSummary.js +102 -49
- package/server/dist/providers/claude-native/worker.js +8 -4
- package/server/dist/providers/claude.js +2 -1
- package/server/dist/providers/clusterTaskToolDefinitions.js +4 -4
- package/server/dist/providers/codex-appserver/catalog.js +16 -1
- package/server/dist/providers/codex.js +2 -1
- package/server/dist/providers/codexCodeMode.d.ts +1 -1
- package/server/dist/providers/codexCodeMode.js +4 -3
- package/server/dist/providers/cursor/print.js +2 -1
- package/server/dist/providers/cursor/worker.js +2 -1
- package/server/dist/providers/llamacpp.js +17 -8
- package/server/dist/providers/ollamaRecovery.js +6 -6
- package/server/dist/providers/ollamaResilience.js +3 -3
- package/server/dist/providers/ollamaTokens.js +1 -1
- package/server/dist/quota.d.ts +0 -18
- package/server/dist/quota.js +0 -44
- package/server/dist/replacementHistory.d.ts +19 -0
- package/server/dist/replacementHistory.js +49 -0
- package/server/dist/server/broadcast.d.ts +2 -1
- package/server/dist/server/broadcast.js +1 -0
- package/server/dist/server/prompts.d.ts +1 -0
- package/server/dist/server/prompts.js +6 -1
- package/server/dist/sessionJsonl.d.ts +1 -1
- package/server/dist/sessionJsonl.js +115 -40
- package/server/dist/smartPickupAdapters.js +15 -2
- package/server/dist/transcriptWorker.d.ts +34 -0
- package/server/dist/transcriptWorker.js +201 -0
- package/server/dist/workflowStore.d.ts +1 -0
- package/server/dist/workflowStore.js +31 -0
- package/server/dist/ws/clusterHandlers.d.ts +1 -0
- package/server/dist/ws/clusterHandlers.js +62 -26
- package/server/dist/ws/handoffHandlers.js +5 -2
- package/server/dist/ws/transcriptWorkerHandlers.d.ts +25 -0
- package/server/dist/ws/transcriptWorkerHandlers.js +139 -0
- package/server/dist/ws/turnEngine.js +23 -9
- package/server/dist/ws/updatePrimaryConfig.js +27 -8
- package/server/dist/ws/workflowHandlers.d.ts +4 -1
- package/server/dist/ws/workflowHandlers.js +3 -1
- package/server/package.json +1 -1
- package/server/src/atomicFile.ts +1 -2
- package/server/src/capabilities.ts +58 -17
- package/server/src/cliUpdateDecision.ts +5 -4
- package/server/src/clusterDirector.ts +1 -1
- package/server/src/clusterPeerOps.ts +11 -8
- package/server/src/clusterProgress.ts +1 -1
- package/server/src/clusterSkills.ts +79 -0
- package/server/src/clusterSnapshots.ts +1 -0
- package/server/src/clusterStore.ts +38 -0
- package/server/src/diagnostics/codeSkew.ts +1 -0
- package/server/src/eventLog.ts +73 -13
- package/server/src/historyLimits.ts +2 -0
- package/server/src/http/router.ts +1 -1
- package/server/src/index.ts +23 -0
- package/server/src/jsonlLines.ts +52 -0
- package/server/src/management/identity.ts +1 -0
- package/server/src/mcp/clusterMcpTools.ts +4 -4
- package/server/src/project/taskLedger.ts +7 -5
- package/server/src/providerConversation.ts +15 -0
- package/server/src/providers/claude-native/resumeSummary.ts +98 -50
- package/server/src/providers/claude-native/worker.ts +8 -4
- package/server/src/providers/claude.ts +2 -1
- package/server/src/providers/clusterTaskToolDefinitions.ts +4 -4
- package/server/src/providers/codex-appserver/catalog.ts +14 -1
- package/server/src/providers/codex.ts +2 -1
- package/server/src/providers/codexCodeMode.ts +4 -4
- package/server/src/providers/cursor/print.ts +2 -1
- package/server/src/providers/cursor/worker.ts +2 -1
- package/server/src/providers/llamacpp.ts +18 -7
- package/server/src/providers/llamacppRecovery.ts +2 -0
- package/server/src/providers/ollamaRecovery.ts +6 -6
- package/server/src/providers/ollamaResilience.ts +3 -3
- package/server/src/providers/ollamaTokens.ts +1 -1
- package/server/src/providers/ollamaToolSubset.ts +3 -3
- package/server/src/quota.ts +0 -50
- package/server/src/replacementHistory.ts +44 -0
- package/server/src/server/broadcast.ts +2 -0
- package/server/src/server/prompts.ts +8 -1
- package/server/src/sessionJsonl.ts +92 -32
- package/server/src/smartPickupAdapters.ts +17 -3
- package/server/src/transcriptWorker.ts +182 -0
- package/server/src/workflowStore.ts +21 -0
- package/server/src/ws/clusterHandlers.ts +43 -25
- package/server/src/ws/handoffHandlers.ts +5 -1
- package/server/src/ws/transcriptWorkerHandlers.ts +126 -0
- package/server/src/ws/turnEngine.ts +20 -8
- package/server/src/ws/updatePrimaryConfig.ts +25 -6
- package/server/src/ws/workflowHandlers.ts +3 -1
- package/shared/dist/clusterCoordination.d.ts +2 -0
- package/shared/dist/clusterCoordination.js +5 -1
- package/shared/dist/protocol/clientMessages.d.ts +3 -2
- package/shared/dist/protocol/clusters.d.ts +13 -1
- package/shared/dist/protocol/index.d.ts +1 -0
- package/shared/dist/protocol/index.js +1 -0
- package/shared/dist/protocol/models.d.ts +4 -3
- package/shared/dist/protocol/models.js +26 -2
- package/shared/dist/protocol/serverMessages.d.ts +2 -1
- package/shared/dist/protocol/tasks.d.ts +4 -0
- package/shared/dist/protocol/transcriptWorker.d.ts +47 -0
- package/shared/dist/protocol/transcriptWorker.js +2 -0
- package/shared/dist/runtimeVersions.d.ts +1 -0
- package/shared/dist/runtimeVersions.js +14 -0
- package/shared/src/clusterCoordination.ts +7 -1
- package/shared/src/protocol/clientMessages.ts +5 -0
- package/shared/src/protocol/clusters.ts +16 -1
- package/shared/src/protocol/index.ts +1 -0
- package/shared/src/protocol/models.ts +31 -5
- package/shared/src/protocol/serverMessages.ts +2 -0
- package/shared/src/protocol/settings.ts +2 -3
- package/shared/src/protocol/tasks.ts +4 -7
- package/shared/src/protocol/transcriptWorker.ts +49 -0
- package/shared/src/runtimeVersions.ts +14 -0
|
@@ -37,6 +37,8 @@ export const CLAUDE_MODEL_LABELS = {
|
|
|
37
37
|
// re-pin the naming to a single generation, and don't assume a single-dash
|
|
38
38
|
// `gpt-<major>-<name>` shape: 6.1 brought the dotted minor back.
|
|
39
39
|
export const CODEX_MODELS = [
|
|
40
|
+
'gpt-6.2-sol',
|
|
41
|
+
'gpt-6.2-astra',
|
|
40
42
|
'gpt-6-astra',
|
|
41
43
|
'gpt-6.1-sol',
|
|
42
44
|
'gpt-6-sol',
|
|
@@ -50,8 +52,31 @@ export const CODEX_MODELS = [
|
|
|
50
52
|
'gpt-5.1-codex-mini',
|
|
51
53
|
];
|
|
52
54
|
export const CODEX_MODEL_INFO = {
|
|
55
|
+
// GPT-6.2 cold-catalog fallback. The live catalog is authoritative for
|
|
56
|
+
// availability, default choice, efforts and images. Both entries use the
|
|
57
|
+
// observed 872K catalog maximum with its 95% effective margin; the 128K
|
|
58
|
+
// output fallback is retained, not a newly advertised provider output cap.
|
|
59
|
+
'gpt-6.2-sol': {
|
|
60
|
+
id: 'gpt-6.2-sol',
|
|
61
|
+
label: '6.2 SOL',
|
|
62
|
+
picker: true,
|
|
63
|
+
defaultForCodex: true,
|
|
64
|
+
publishedContextWindow: 872_000,
|
|
65
|
+
publishedMaxOutput: 128_000,
|
|
66
|
+
fallbackOperationalWindow: 828_400,
|
|
67
|
+
supportedEfforts: ['low', 'medium', 'high', 'xhigh', 'max', 'ultra'],
|
|
68
|
+
},
|
|
69
|
+
'gpt-6.2-astra': {
|
|
70
|
+
id: 'gpt-6.2-astra',
|
|
71
|
+
label: '6.2 ASTRA',
|
|
72
|
+
picker: true,
|
|
73
|
+
publishedContextWindow: 872_000,
|
|
74
|
+
publishedMaxOutput: 128_000,
|
|
75
|
+
fallbackOperationalWindow: 828_400,
|
|
76
|
+
supportedEfforts: ['low', 'medium', 'high', 'xhigh', 'max', 'ultra'],
|
|
77
|
+
},
|
|
53
78
|
// GPT-6 Astra (2026-09-03). Codex's own catalog reports isDefault:true for it,
|
|
54
|
-
// so it
|
|
79
|
+
// so it was Arco's default then. Two things here are unlike every 5.x entry:
|
|
55
80
|
// Arco asks for the live catalog maximum by default. This fallback is the
|
|
56
81
|
// current 872K max after Codex's 95% effective-window margin. Its effort
|
|
57
82
|
// surface runs all the way to 'ultra'.
|
|
@@ -59,7 +84,6 @@ export const CODEX_MODEL_INFO = {
|
|
|
59
84
|
id: 'gpt-6-astra',
|
|
60
85
|
label: '6 ASTRA',
|
|
61
86
|
picker: true,
|
|
62
|
-
defaultForCodex: true,
|
|
63
87
|
publishedContextWindow: 1_050_000,
|
|
64
88
|
publishedMaxOutput: 128_000,
|
|
65
89
|
fallbackOperationalWindow: 828_400,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { OutputSavedMessage } from '../outputs.js';
|
|
2
|
+
import type { TranscriptWorkerResultMessage } from './transcriptWorker.js';
|
|
2
3
|
import type { OperatorQuestionMessage, OperatorQuestionReplyResultMessage, OperatorQuestionDismissResultMessage, OperatorQuestionState } from './operatorQuestions.js';
|
|
3
4
|
import type { VoiceToolCallMessage, ComputerContextUpdatedMessage, ComputerActivityChangedMessage } from './voiceOperator.js';
|
|
4
5
|
import type { HubLinkStatusMessage } from './remoteManagement.js';
|
|
@@ -824,7 +825,7 @@ export interface TurnMessagesDeliveredMessage {
|
|
|
824
825
|
workflowId: string;
|
|
825
826
|
clientMessageIds: string[];
|
|
826
827
|
}
|
|
827
|
-
export type ServerMessage = StorageWarningMessage | TurnMessagesDeliveredMessage | AppUpdateAvailableMessage | ComputerActivityChangedMessage | ComputerContextUpdatedMessage | ConnectedMessage | WorkflowCreatedMessage | WorkspaceSnapshotMessage | WorkflowConfigSyncedMessage | PrimaryTextMessage | PrimaryCompleteMessage | PrimaryTurnTokenUsageMessage | HookRewroteInputMessage | ToolGateTriggeredMessage | GateRequiredMessage | GateResolvedMessage | GateStandingMessage | ToolLoopWarningMessage | WorkerStuckMessage | ToolPostureSetMessage | GoalSetMessage | GoalRunStateMessage | PinnedSkillsSetMessage | ProjectTrustPromptMessage | ProjectTrustSetMessage | FileMutationQueuedMessage | ModelResolvedMessage | PrimaryRefusalMessage | CtxActionMessage | NativeCompactingMessage | ContextFoldedMessage | NativeCompactedMessage | PrimaryToolCounterMessage | SandboxChunkAddedMessage | SandboxDbClearedMessage | ToolFilteredMessage | ToolEvictedMessage | PeerMessageSentMessage | PeerMessageReceivedMessage | PeerSendRejectedMessage | PrimaryModelMessage | PrimaryThinkingMessage | PrimaryToolUseMessage | PrimaryTurnStartedMessage | PrimaryTurnEndedMessage | WorkerSpawnedMessage | WorkerTextMessage | WorkerThinkingMessage | WorkerToolUseMessage | WorkerFileContextMessage | FileContextMessage | WorkerCompleteMessage | WorkerActivityMessage | WorkerModelMessage | WorkerErrorMessage | FileUploadedMessage | CapabilitiesUpdatedMessage | CapabilitiesChangedMessage | SettingsUpdatedMessage | ConversationChangedMessage | PrimaryArtifactMessage | QuotaStatusMessage | TurnCancelledMessage | WorkflowStateSnapshotMessage | ProviderConversationStateMessage | WorkflowSessionMetadataMessage | ReplayBatchMessage | ShutdownMessage | SystemErrorMessage | UserMessageEchoMessage | ReviewStartedMessage | ReviewArtifactReadyMessage | ResearchStartedMessage | ResearchProgressMessage | ResearchCompleteMessage | CompareStartedMessage | CompareLegDeltaMessage | CompareLegCompleteMessage | CompareCompleteMessage | CompareVoteRecordedMessage | ProviderFellBackMessage | DiagnosticsMessage | DocEditStartedMessage | DocEditProposedMessage | MdTuneupStartedMessage | MdTuneupProposedMessage | MdTuneupAppliedMessage | MdTuneupCandidatesMessage | MdTuneupUndoneMessage | KnowledgeDistillStartedMessage | KnowledgeDistillProposedMessage | RecallSummaryReadyMessage | HandoffStartedMessage | HandoffArtifactReadyMessage | HandoffCompleteMessage | HandoffLockSnapshotMessage | SpawnFromHereCompleteMessage | CheckpointCreatedMessage | TurnChangesMessage | CheckpointRevertedMessage | LiveChangesSnapshotMessage | GitOpResultMessage | BakeoffListResultMessage | BakeoffStateMessage | BakeoffErrorMessage | BakeoffAttemptsRemovedMessage | OutputSavedMessage | MediaOpResultMessage | MediaStemsResultMessage | SessionEntryMessage | ContextUsageMessage | UltracodeFleetProgressMessage | ContextBudgetMessage | OperatorQuestionMessage | OperatorQuestionDismissResultMessage | OperatorQuestionReplyResultMessage | VoiceToolCallMessage | SystemNoticeMessage | ClaudeNativeQuestionSettledMessage | QueuedMessageCancelledMessage | QueuedMessageEditResultMessage | QueuedMessagesDrainedMessage | PrimaryActivityMessage | SessionHistoryStatusMessage | PlanAttachedMessage | PlanDetachedMessage | CodexTokenSnapshotMessage | PreviewSetMessage | PreviewClearedMessage | PreviewHistoryMessage | OperatorLabelMessage | LeafMoveMessage | QueueUpdateMessage | TodosUpdatedMessage | PlanSetMessage | PlanExitedMessage | PlanCandidateReadyMessage | TaskStartedMessage | TaskStatusMessage | BranchSummaryMessage | ClusterStateMessage | ClusterNotFoundMessage | ClusterCreatedMessage | ClusterCreationFinishedMessage | ClusterDeletedMessage | ClusterMemberAddedMessage | ClusterMemberRemovedMessage | ClusterMemberReplacedMessage | ClusterBroadcastDispatchedMessage | ClusterDispatchResultMessage | ClusterSwarmCreatedMessage | ClusterOrchestrationAssistStartedMessage | ClusterOrchestrationProposalStartedMessage | ClusterOrchestrationProposalSnapshotMessage | ClusterOrchestrationProposalProposedMessage | ClusterOrchestrationProposalRejectedMessage | ClusterOrchestrationProposalAppliedMessage | ClusterPlanChangedMessage | ClusterMemberNudgedMessage | WorkflowRenamedMessage | WorkflowRenameResultMessage | CodebaseMemoryStateMessage | ClusterAutoTurnFiredMessage | ClusterSnapshotListResultMessage | ClusterSnapshotSavedMessage | ClusterSnapshotConflictMessage | ClusterSnapshotErrorMessage | TerminalOpenedMessage | TerminalKilledMessage | TerminalCommandLoggedMessage | TerminalSessionsMessage | TaskLedgerSnapshotMessage | TaskLedgerEventMessage | McpRegistrySnapshotMessage | McpProbeResultMessage | McpAllowSnapshotMessage | McpMalwareWarningMessage | GenesisSeedUpdatedMessage | WorkflowCwdBoundMessage | GenesisScaffoldedMessage | GenesisPlanSavedMessage | GenesisCreativeArmedMessage | GenesisAssistStartedMessage | GenesisAssistProposedMessage | PreviewCaptureStartedMessage | PreviewCaptureReadyMessage | WorkbenchNoticeMessage | NotificationMutesMessage | AttentionEventMessage | AttentionQuestionClosedMessage | HubLinkStatusMessage;
|
|
828
|
+
export type ServerMessage = TranscriptWorkerResultMessage | StorageWarningMessage | TurnMessagesDeliveredMessage | AppUpdateAvailableMessage | ComputerActivityChangedMessage | ComputerContextUpdatedMessage | ConnectedMessage | WorkflowCreatedMessage | WorkspaceSnapshotMessage | WorkflowConfigSyncedMessage | PrimaryTextMessage | PrimaryCompleteMessage | PrimaryTurnTokenUsageMessage | HookRewroteInputMessage | ToolGateTriggeredMessage | GateRequiredMessage | GateResolvedMessage | GateStandingMessage | ToolLoopWarningMessage | WorkerStuckMessage | ToolPostureSetMessage | GoalSetMessage | GoalRunStateMessage | PinnedSkillsSetMessage | ProjectTrustPromptMessage | ProjectTrustSetMessage | FileMutationQueuedMessage | ModelResolvedMessage | PrimaryRefusalMessage | CtxActionMessage | NativeCompactingMessage | ContextFoldedMessage | NativeCompactedMessage | PrimaryToolCounterMessage | SandboxChunkAddedMessage | SandboxDbClearedMessage | ToolFilteredMessage | ToolEvictedMessage | PeerMessageSentMessage | PeerMessageReceivedMessage | PeerSendRejectedMessage | PrimaryModelMessage | PrimaryThinkingMessage | PrimaryToolUseMessage | PrimaryTurnStartedMessage | PrimaryTurnEndedMessage | WorkerSpawnedMessage | WorkerTextMessage | WorkerThinkingMessage | WorkerToolUseMessage | WorkerFileContextMessage | FileContextMessage | WorkerCompleteMessage | WorkerActivityMessage | WorkerModelMessage | WorkerErrorMessage | FileUploadedMessage | CapabilitiesUpdatedMessage | CapabilitiesChangedMessage | SettingsUpdatedMessage | ConversationChangedMessage | PrimaryArtifactMessage | QuotaStatusMessage | TurnCancelledMessage | WorkflowStateSnapshotMessage | ProviderConversationStateMessage | WorkflowSessionMetadataMessage | ReplayBatchMessage | ShutdownMessage | SystemErrorMessage | UserMessageEchoMessage | ReviewStartedMessage | ReviewArtifactReadyMessage | ResearchStartedMessage | ResearchProgressMessage | ResearchCompleteMessage | CompareStartedMessage | CompareLegDeltaMessage | CompareLegCompleteMessage | CompareCompleteMessage | CompareVoteRecordedMessage | ProviderFellBackMessage | DiagnosticsMessage | DocEditStartedMessage | DocEditProposedMessage | MdTuneupStartedMessage | MdTuneupProposedMessage | MdTuneupAppliedMessage | MdTuneupCandidatesMessage | MdTuneupUndoneMessage | KnowledgeDistillStartedMessage | KnowledgeDistillProposedMessage | RecallSummaryReadyMessage | HandoffStartedMessage | HandoffArtifactReadyMessage | HandoffCompleteMessage | HandoffLockSnapshotMessage | SpawnFromHereCompleteMessage | CheckpointCreatedMessage | TurnChangesMessage | CheckpointRevertedMessage | LiveChangesSnapshotMessage | GitOpResultMessage | BakeoffListResultMessage | BakeoffStateMessage | BakeoffErrorMessage | BakeoffAttemptsRemovedMessage | OutputSavedMessage | MediaOpResultMessage | MediaStemsResultMessage | SessionEntryMessage | ContextUsageMessage | UltracodeFleetProgressMessage | ContextBudgetMessage | OperatorQuestionMessage | OperatorQuestionDismissResultMessage | OperatorQuestionReplyResultMessage | VoiceToolCallMessage | SystemNoticeMessage | ClaudeNativeQuestionSettledMessage | QueuedMessageCancelledMessage | QueuedMessageEditResultMessage | QueuedMessagesDrainedMessage | PrimaryActivityMessage | SessionHistoryStatusMessage | PlanAttachedMessage | PlanDetachedMessage | CodexTokenSnapshotMessage | PreviewSetMessage | PreviewClearedMessage | PreviewHistoryMessage | OperatorLabelMessage | LeafMoveMessage | QueueUpdateMessage | TodosUpdatedMessage | PlanSetMessage | PlanExitedMessage | PlanCandidateReadyMessage | TaskStartedMessage | TaskStatusMessage | BranchSummaryMessage | ClusterStateMessage | ClusterNotFoundMessage | ClusterCreatedMessage | ClusterCreationFinishedMessage | ClusterDeletedMessage | ClusterMemberAddedMessage | ClusterMemberRemovedMessage | ClusterMemberReplacedMessage | ClusterBroadcastDispatchedMessage | ClusterDispatchResultMessage | ClusterSwarmCreatedMessage | ClusterOrchestrationAssistStartedMessage | ClusterOrchestrationProposalStartedMessage | ClusterOrchestrationProposalSnapshotMessage | ClusterOrchestrationProposalProposedMessage | ClusterOrchestrationProposalRejectedMessage | ClusterOrchestrationProposalAppliedMessage | ClusterPlanChangedMessage | ClusterMemberNudgedMessage | WorkflowRenamedMessage | WorkflowRenameResultMessage | CodebaseMemoryStateMessage | ClusterAutoTurnFiredMessage | ClusterSnapshotListResultMessage | ClusterSnapshotSavedMessage | ClusterSnapshotConflictMessage | ClusterSnapshotErrorMessage | TerminalOpenedMessage | TerminalKilledMessage | TerminalCommandLoggedMessage | TerminalSessionsMessage | TaskLedgerSnapshotMessage | TaskLedgerEventMessage | McpRegistrySnapshotMessage | McpProbeResultMessage | McpAllowSnapshotMessage | McpMalwareWarningMessage | GenesisSeedUpdatedMessage | WorkflowCwdBoundMessage | GenesisScaffoldedMessage | GenesisPlanSavedMessage | GenesisCreativeArmedMessage | GenesisAssistStartedMessage | GenesisAssistProposedMessage | PreviewCaptureStartedMessage | PreviewCaptureReadyMessage | WorkbenchNoticeMessage | NotificationMutesMessage | AttentionEventMessage | AttentionQuestionClosedMessage | HubLinkStatusMessage;
|
|
828
829
|
export type WorkflowEvent<M extends ServerMessage = ServerMessage> = M & {
|
|
829
830
|
seq: number;
|
|
830
831
|
parentEventSeq?: number;
|
|
@@ -33,6 +33,10 @@ export interface LedgerTask {
|
|
|
33
33
|
worktreeRequired?: boolean;
|
|
34
34
|
release?: string;
|
|
35
35
|
signoff?: TaskSignoff;
|
|
36
|
+
directorClosure?: {
|
|
37
|
+
byWorkflowId: string;
|
|
38
|
+
at: number;
|
|
39
|
+
};
|
|
36
40
|
}
|
|
37
41
|
export type TaskSignoffState = 'met' | 'not_met' | 'partial';
|
|
38
42
|
export interface TaskSignoff {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { EffortLevel, ProviderName } from './providers.js';
|
|
2
|
+
export interface TranscriptWorkerPreview {
|
|
3
|
+
token: string;
|
|
4
|
+
seed: string;
|
|
5
|
+
bytes: number;
|
|
6
|
+
availableTurns: number;
|
|
7
|
+
selectedTurns: number;
|
|
8
|
+
partialIncluded: boolean;
|
|
9
|
+
cutoffSeq: number;
|
|
10
|
+
historyMode?: 'recent' | 'full';
|
|
11
|
+
requestedTurns?: number;
|
|
12
|
+
truncated?: boolean;
|
|
13
|
+
historyFallback?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface TranscriptWorkerPreviewMessage {
|
|
16
|
+
type: 'transcript_worker_preview';
|
|
17
|
+
requestId: string;
|
|
18
|
+
workflowId: string;
|
|
19
|
+
turns: number;
|
|
20
|
+
includePartial: boolean;
|
|
21
|
+
preface: string;
|
|
22
|
+
replacement?: {
|
|
23
|
+
clusterId: string;
|
|
24
|
+
mode: 'recent' | 'full';
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface TranscriptWorkerCreateMessage {
|
|
28
|
+
type: 'transcript_worker_create';
|
|
29
|
+
requestId: string;
|
|
30
|
+
token: string;
|
|
31
|
+
destination: {
|
|
32
|
+
workingDirectory: string;
|
|
33
|
+
name: string;
|
|
34
|
+
provider: ProviderName;
|
|
35
|
+
model: string;
|
|
36
|
+
effort: EffortLevel;
|
|
37
|
+
providerAccountRef?: string;
|
|
38
|
+
skipPermissions?: boolean;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface TranscriptWorkerResultMessage {
|
|
42
|
+
type: 'transcript_worker_result';
|
|
43
|
+
requestId: string;
|
|
44
|
+
preview?: TranscriptWorkerPreview;
|
|
45
|
+
newWorkflowId?: string;
|
|
46
|
+
error?: string;
|
|
47
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function strataEngineReleaseVersion(feed: unknown, release: unknown): string | undefined;
|
|
2
2
|
export declare function llamacppBuild(version: string): number | undefined;
|
|
3
3
|
export declare function compareLlamacppBuild(a: string, b: string): number | undefined;
|
|
4
|
+
export declare function compareCursorVersions(a: string, b: string): number | undefined;
|
|
@@ -39,4 +39,18 @@ export function compareLlamacppBuild(a, b) {
|
|
|
39
39
|
const aa = llamacppBuild(a), bb = llamacppBuild(b);
|
|
40
40
|
return aa === undefined || bb === undefined ? undefined : aa < bb ? -1 : aa > bb ? 1 : 0;
|
|
41
41
|
}
|
|
42
|
+
// Cursor uses a date plus a build hash, not semver. A different hash on the
|
|
43
|
+
// same date has no reliable ordering; leave that comparison unknown.
|
|
44
|
+
export function compareCursorVersions(a, b) {
|
|
45
|
+
const date = (value) => {
|
|
46
|
+
const stamp = /^(\d{4}\.\d{2}\.\d{2})-[a-f0-9]{6,40}$/i.exec(value)?.[1];
|
|
47
|
+
if (!stamp)
|
|
48
|
+
return undefined;
|
|
49
|
+
const iso = stamp.replaceAll('.', '-');
|
|
50
|
+
const parsed = new Date(`${iso}T00:00:00Z`);
|
|
51
|
+
return Number.isFinite(parsed.getTime()) && parsed.toISOString().startsWith(iso) ? stamp : undefined;
|
|
52
|
+
};
|
|
53
|
+
const aa = date(a), bb = date(b);
|
|
54
|
+
return !aa || !bb ? undefined : aa < bb ? -1 : aa > bb ? 1 : a === b ? 0 : undefined;
|
|
55
|
+
}
|
|
42
56
|
//# sourceMappingURL=runtimeVersions.js.map
|
|
@@ -3,6 +3,13 @@ import { CLUSTER_EFFICIENCY_ADDENDUM_MAX, type ClusterEfficiencyLevel, type Clus
|
|
|
3
3
|
|
|
4
4
|
export const isClusterDirector = (role?: string): boolean => /^\s*(?:director|coordinator)\b/i.test(role ?? '');
|
|
5
5
|
|
|
6
|
+
const DIRECTOR_TURN_WAIT = 'Do not wait inside a turn for long-running checks: never sleep or poll for more than 60 seconds at a time. Start long runs in the background or hand them off, report what is running, and end the turn.';
|
|
7
|
+
export const AGENT_TURN_WAIT = 'For standalone agents and non-Director cluster members: when a report depends on a build, test run or CI result, wait inside the turn in steps of at most 120 seconds each, repeated as many times as the job needs. Use a foreground command within the tool timeout or check a background run between steps. Between waits, check for new messages (peer_read in a cluster) and act on them. Report when the result is in. End the turn early only when blocked or when the job clearly cannot finish within a reasonable time; then state in one line what you are waiting on and that you need a nudge. When you report progress or answer a question while assigned work is unfinished, continue that work in the same turn; end the turn only when it is done or with one stated blocker.';
|
|
8
|
+
|
|
9
|
+
export function buildTurnWaitInstructions(role?: string): string {
|
|
10
|
+
return isClusterDirector(role) ? DIRECTOR_TURN_WAIT : AGENT_TURN_WAIT;
|
|
11
|
+
}
|
|
12
|
+
|
|
6
13
|
/** Explain why a role list cannot be used for a new cluster. */
|
|
7
14
|
export function clusterDirectorProblem(roles: readonly (string | undefined)[]): string | null {
|
|
8
15
|
return roles.filter(isClusterDirector).length > 1
|
|
@@ -15,7 +22,6 @@ export function buildClusterCoordination(level: ClusterEfficiencyLevel = 'thorou
|
|
|
15
22
|
lines.push('Efficiency guides coordination and testing. Message guards, safety checks, operator-requested review and landing review stay unchanged.');
|
|
16
23
|
lines.push('Before sending, check that the message gives the recipient something to act on or something it is waiting for. A closing note to a member whose work is finished (landed, thanks, nothing further) does neither; record it on the board instead.');
|
|
17
24
|
lines.push("When a report states the sender's next step, no reply approves it; reply only to change that step, answer a question, or assign other work. Reports that continue on their own end with their next step.");
|
|
18
|
-
lines.push('Do not wait inside a turn for long-running checks: never sleep or poll for more than 60 seconds at a time. Start long runs in the background or hand them off, report what is running, and end the turn.');
|
|
19
25
|
if (isClusterDirector(role)) {
|
|
20
26
|
lines.push('Assign complete outcomes with exact placement, affected surfaces, constraints and dependencies. Builders own routine compatible choices within that scope. Ask them to say what was done, what was run and what is not covered.');
|
|
21
27
|
lines.push('Reconcile relevant tasks and new findings; read broader history when relevant or stale. Read the final diff and check that the project-required checks were run, then land accepted changes. Request more work only for concrete blockers or a changed relevant integration base.');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// ── Client → Server messages ──
|
|
2
2
|
|
|
3
3
|
import type { AutomaticMessageKind } from './chat.js';
|
|
4
|
+
import type { TranscriptWorkerPreviewMessage, TranscriptWorkerCreateMessage } from './transcriptWorker.js';
|
|
4
5
|
import type { OperatorQuestionReplyMessage, OperatorQuestionDismissMessage } from './operatorQuestions.js';
|
|
5
6
|
import type { VoiceToolResultMessage, ComputerContextControlMessage } from './voiceOperator.js';
|
|
6
7
|
|
|
@@ -96,6 +97,7 @@ import type {
|
|
|
96
97
|
ClusterMemberFocusSetMessage,
|
|
97
98
|
ClusterIdleNudgerToggleMessage,
|
|
98
99
|
ClusterEfficiencySetMessage,
|
|
100
|
+
ClusterSkillsSetMessage,
|
|
99
101
|
ClusterAutoCompactionSetMessage,
|
|
100
102
|
ClusterRemoteSetMessage,
|
|
101
103
|
ClusterGatesSetMessage,
|
|
@@ -509,6 +511,8 @@ export interface DebugNativeAutoCompactProbeMessage {
|
|
|
509
511
|
}
|
|
510
512
|
|
|
511
513
|
export type ClientMessage =
|
|
514
|
+
| TranscriptWorkerPreviewMessage
|
|
515
|
+
| TranscriptWorkerCreateMessage
|
|
512
516
|
| ComputerContextControlMessage
|
|
513
517
|
| CreateWorkflowMessage
|
|
514
518
|
| UserMessage
|
|
@@ -591,6 +595,7 @@ export type ClientMessage =
|
|
|
591
595
|
| ClusterIdleNudgerToggleMessage
|
|
592
596
|
| ClusterAutoCompactionSetMessage
|
|
593
597
|
| ClusterEfficiencySetMessage
|
|
598
|
+
| ClusterSkillsSetMessage
|
|
594
599
|
| ClusterRemoteSetMessage
|
|
595
600
|
| ClusterGatesSetMessage
|
|
596
601
|
| ClusterMemberReorderMessage
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// ── Clusters + peer messaging ──
|
|
2
2
|
|
|
3
|
-
import type { AutoCompactionPolicy } from './workflows.js';
|
|
3
|
+
import type { ArcoSkillRef, AutoCompactionPolicy } from './workflows.js';
|
|
4
|
+
|
|
5
|
+
// The role is the saved role text, not a preset key. Absent applies to all.
|
|
6
|
+
export interface ClusterSkillPin extends ArcoSkillRef { role?: string }
|
|
4
7
|
|
|
5
8
|
// Providers that can participate in cluster peer-mode. Claude/Codex wire peer
|
|
6
9
|
// tools through Native/stdio-MCP. Cursor wires them through an in-process
|
|
@@ -245,6 +248,7 @@ export const CLUSTER_PROGRESS_LABELS: Record<ClusterProgressMode, { label: strin
|
|
|
245
248
|
};
|
|
246
249
|
|
|
247
250
|
export interface ClusterStatePayload {
|
|
251
|
+
skillPins?: ClusterSkillPin[];
|
|
248
252
|
autoCompaction?: AutoCompactionPolicy;
|
|
249
253
|
clusterId: string;
|
|
250
254
|
cwd: string;
|
|
@@ -684,6 +688,10 @@ export interface ClusterMemberReplaceMessage extends ClusterMemberTuning {
|
|
|
684
688
|
// Absent keeps the old role; an empty string clears it.
|
|
685
689
|
role?: string;
|
|
686
690
|
includeHistory?: boolean;
|
|
691
|
+
// Legacy includeHistory:true means full. New clients send the preview token.
|
|
692
|
+
historyMode?: 'none' | 'recent' | 'full';
|
|
693
|
+
historyTurns?: number;
|
|
694
|
+
historyToken?: string;
|
|
687
695
|
transferActiveTasks?: boolean;
|
|
688
696
|
}
|
|
689
697
|
|
|
@@ -1066,6 +1074,13 @@ export interface ClusterEfficiencySetMessage {
|
|
|
1066
1074
|
messageGuard?: ClusterMessageGuard;
|
|
1067
1075
|
}
|
|
1068
1076
|
|
|
1077
|
+
// Operator-only browser action; no agent tool exposes this mutation.
|
|
1078
|
+
export interface ClusterSkillsSetMessage {
|
|
1079
|
+
type: 'cluster_skills_set';
|
|
1080
|
+
clusterId: string;
|
|
1081
|
+
pins: ClusterSkillPin[];
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1069
1084
|
// operator drag-reordered the member grid. `memberIds` is the
|
|
1070
1085
|
// complete new display order and must be an exact permutation of the current
|
|
1071
1086
|
// members (server rejects drops/duplicates from a stale drag). Persists to
|
|
@@ -48,6 +48,7 @@ export * from './notifications.js';
|
|
|
48
48
|
export * from './orchestrationAssist.js';
|
|
49
49
|
export * from './clientMessages.js';
|
|
50
50
|
export * from './serverMessages.js';
|
|
51
|
+
export * from './transcriptWorker.js';
|
|
51
52
|
export * from './ollamaThinking.js';
|
|
52
53
|
|
|
53
54
|
export * from './localModels.js';
|
|
@@ -42,6 +42,8 @@ export const CLAUDE_MODEL_LABELS: Record<string, string> = {
|
|
|
42
42
|
// re-pin the naming to a single generation, and don't assume a single-dash
|
|
43
43
|
// `gpt-<major>-<name>` shape: 6.1 brought the dotted minor back.
|
|
44
44
|
export const CODEX_MODELS = [
|
|
45
|
+
'gpt-6.2-sol',
|
|
46
|
+
'gpt-6.2-astra',
|
|
45
47
|
'gpt-6-astra',
|
|
46
48
|
'gpt-6.1-sol',
|
|
47
49
|
'gpt-6-sol',
|
|
@@ -75,8 +77,31 @@ export interface CodexModelInfo {
|
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
export const CODEX_MODEL_INFO: Record<string, CodexModelInfo> = {
|
|
80
|
+
// GPT-6.2 cold-catalog fallback. The live catalog is authoritative for
|
|
81
|
+
// availability, default choice, efforts and images. Both entries use the
|
|
82
|
+
// observed 872K catalog maximum with its 95% effective margin; the 128K
|
|
83
|
+
// output fallback is retained, not a newly advertised provider output cap.
|
|
84
|
+
'gpt-6.2-sol': {
|
|
85
|
+
id: 'gpt-6.2-sol',
|
|
86
|
+
label: '6.2 SOL',
|
|
87
|
+
picker: true,
|
|
88
|
+
defaultForCodex: true,
|
|
89
|
+
publishedContextWindow: 872_000,
|
|
90
|
+
publishedMaxOutput: 128_000,
|
|
91
|
+
fallbackOperationalWindow: 828_400,
|
|
92
|
+
supportedEfforts: ['low', 'medium', 'high', 'xhigh', 'max', 'ultra'],
|
|
93
|
+
},
|
|
94
|
+
'gpt-6.2-astra': {
|
|
95
|
+
id: 'gpt-6.2-astra',
|
|
96
|
+
label: '6.2 ASTRA',
|
|
97
|
+
picker: true,
|
|
98
|
+
publishedContextWindow: 872_000,
|
|
99
|
+
publishedMaxOutput: 128_000,
|
|
100
|
+
fallbackOperationalWindow: 828_400,
|
|
101
|
+
supportedEfforts: ['low', 'medium', 'high', 'xhigh', 'max', 'ultra'],
|
|
102
|
+
},
|
|
78
103
|
// GPT-6 Astra (2026-09-03). Codex's own catalog reports isDefault:true for it,
|
|
79
|
-
// so it
|
|
104
|
+
// so it was Arco's default then. Two things here are unlike every 5.x entry:
|
|
80
105
|
// Arco asks for the live catalog maximum by default. This fallback is the
|
|
81
106
|
// current 872K max after Codex's 95% effective-window margin. Its effort
|
|
82
107
|
// surface runs all the way to 'ultra'.
|
|
@@ -84,7 +109,6 @@ export const CODEX_MODEL_INFO: Record<string, CodexModelInfo> = {
|
|
|
84
109
|
id: 'gpt-6-astra',
|
|
85
110
|
label: '6 ASTRA',
|
|
86
111
|
picker: true,
|
|
87
|
-
defaultForCodex: true,
|
|
88
112
|
publishedContextWindow: 1_050_000,
|
|
89
113
|
publishedMaxOutput: 128_000,
|
|
90
114
|
fallbackOperationalWindow: 828_400,
|
|
@@ -654,21 +678,23 @@ export interface Capabilities {
|
|
|
654
678
|
codexVersion?: string;
|
|
655
679
|
codexUpdate?: { kind: 'standalone' | 'npm' | 'unknown'; updateAvailable: boolean; instruction?: string };
|
|
656
680
|
// `cursor-agent --version` — date-stamped (e.g. "2026.07.08-0c04a8a"), not
|
|
657
|
-
// semver, and not npm-installed
|
|
658
|
-
//
|
|
681
|
+
// semver, and not npm-installed. Its own updater handles row clicks; latest
|
|
682
|
+
// metadata is read as text from the public installer without executing it.
|
|
659
683
|
cursorVersion?: string;
|
|
660
684
|
// Live engine version, falling back to prepared engine/BUILD.json while stopped.
|
|
661
685
|
strataVersion?: string;
|
|
662
686
|
// Xolotl checkout revision; source tracking, not a claim about a rebuilt binary.
|
|
663
687
|
xolotlRevision?: string;
|
|
664
688
|
// Latest versions from the selected update source (Codex's installation
|
|
665
|
-
// decision, npm for Claude,
|
|
689
|
+
// decision, npm for Claude, public installer metadata for Cursor, and GitHub
|
|
690
|
+
// Releases for Ollama/llama.cpp). Best-effort: any
|
|
666
691
|
// probe failure leaves that key undefined and the UI falls back to the
|
|
667
692
|
// installed-only display. Refreshed on the same cadence as the local
|
|
668
693
|
// CLI re-probe.
|
|
669
694
|
latestVersions?: {
|
|
670
695
|
claude?: string;
|
|
671
696
|
codex?: string;
|
|
697
|
+
cursor?: string;
|
|
672
698
|
ollama?: string;
|
|
673
699
|
strata?: string;
|
|
674
700
|
xolotl?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { OutputSavedMessage } from '../outputs.js';
|
|
2
|
+
import type { TranscriptWorkerResultMessage } from './transcriptWorker.js';
|
|
2
3
|
// ── Server → Client messages ──
|
|
3
4
|
|
|
4
5
|
import type { OperatorQuestionMessage, OperatorQuestionReplyResultMessage, OperatorQuestionDismissResultMessage, OperatorQuestionState } from './operatorQuestions.js';
|
|
@@ -1497,6 +1498,7 @@ export interface TurnMessagesDeliveredMessage {
|
|
|
1497
1498
|
}
|
|
1498
1499
|
|
|
1499
1500
|
export type ServerMessage =
|
|
1501
|
+
| TranscriptWorkerResultMessage
|
|
1500
1502
|
| StorageWarningMessage
|
|
1501
1503
|
| TurnMessagesDeliveredMessage
|
|
1502
1504
|
| AppUpdateAvailableMessage
|
|
@@ -162,9 +162,8 @@ export interface ArcoSettings {
|
|
|
162
162
|
// small text. Structural box-shadow glow on borders/LEDs is untouched. Absent /
|
|
163
163
|
// false = the theme's own glow. Independent of theme + frosted glass.
|
|
164
164
|
crispText?: boolean;
|
|
165
|
-
//
|
|
166
|
-
//
|
|
167
|
-
// the ACCEPT button. Absent / false = the operator accepts each task.
|
|
165
|
+
// A new director met sign-off closes the task on the server. Absent = true;
|
|
166
|
+
// explicit false keeps acceptance with the operator.
|
|
168
167
|
autoMarkDoneOnMetSignoff?: boolean;
|
|
169
168
|
// Phosphor-only decoration. Absent = effects on, softness 50. Classic
|
|
170
169
|
// preferences and appearance are unaffected; crispText overrides emission.
|
|
@@ -87,17 +87,14 @@ export interface LedgerTask {
|
|
|
87
87
|
// Optional release label such as "0.1.4" so a board can answer what is in a
|
|
88
88
|
// release. Absent = unlabeled (the common case); older ledgers never carry it.
|
|
89
89
|
release?: string;
|
|
90
|
-
//
|
|
90
|
+
// Director sign-off verdict. See TaskSignoff. Absent =
|
|
91
91
|
// not yet reviewed (the board renders PENDING). Additive + projection-safe.
|
|
92
92
|
signoff?: TaskSignoff;
|
|
93
|
+
directorClosure?: { byWorkflowId: string; at: number };
|
|
93
94
|
}
|
|
94
95
|
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
-
// a task to a terminal status — it's a recommendation the operator reads at a
|
|
98
|
-
// glance before accepting. Written by whichever member reviews the task (the
|
|
99
|
-
// director) via cluster_task_update; `byWorkflowId`/`at` are server-stamped so
|
|
100
|
-
// the verdict is attributable and the RECHECK button knows who to ask.
|
|
96
|
+
// The director verdict is server-stamped. A met verdict can close the task
|
|
97
|
+
// when Board auto-done is on; byWorkflowId and at attribute the decision.
|
|
101
98
|
export type TaskSignoffState = 'met' | 'not_met' | 'partial';
|
|
102
99
|
|
|
103
100
|
export interface TaskSignoff {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { EffortLevel, ProviderName } from './providers.js';
|
|
2
|
+
|
|
3
|
+
export interface TranscriptWorkerPreview {
|
|
4
|
+
token: string;
|
|
5
|
+
seed: string;
|
|
6
|
+
bytes: number;
|
|
7
|
+
availableTurns: number;
|
|
8
|
+
selectedTurns: number;
|
|
9
|
+
partialIncluded: boolean;
|
|
10
|
+
cutoffSeq: number;
|
|
11
|
+
historyMode?: 'recent' | 'full';
|
|
12
|
+
requestedTurns?: number;
|
|
13
|
+
truncated?: boolean;
|
|
14
|
+
historyFallback?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TranscriptWorkerPreviewMessage {
|
|
18
|
+
type: 'transcript_worker_preview';
|
|
19
|
+
requestId: string;
|
|
20
|
+
workflowId: string;
|
|
21
|
+
turns: number;
|
|
22
|
+
includePartial: boolean;
|
|
23
|
+
preface: string;
|
|
24
|
+
// REPLACE shares the fixed transcript-preview flow, with its own budgets.
|
|
25
|
+
replacement?: { clusterId: string; mode: 'recent' | 'full' };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface TranscriptWorkerCreateMessage {
|
|
29
|
+
type: 'transcript_worker_create';
|
|
30
|
+
requestId: string;
|
|
31
|
+
token: string;
|
|
32
|
+
destination: {
|
|
33
|
+
workingDirectory: string;
|
|
34
|
+
name: string;
|
|
35
|
+
provider: ProviderName;
|
|
36
|
+
model: string;
|
|
37
|
+
effort: EffortLevel;
|
|
38
|
+
providerAccountRef?: string;
|
|
39
|
+
skipPermissions?: boolean;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface TranscriptWorkerResultMessage {
|
|
44
|
+
type: 'transcript_worker_result';
|
|
45
|
+
requestId: string;
|
|
46
|
+
preview?: TranscriptWorkerPreview;
|
|
47
|
+
newWorkflowId?: string;
|
|
48
|
+
error?: string;
|
|
49
|
+
}
|
|
@@ -35,3 +35,17 @@ export function compareLlamacppBuild(a: string, b: string): number | undefined {
|
|
|
35
35
|
const aa = llamacppBuild(a), bb = llamacppBuild(b);
|
|
36
36
|
return aa === undefined || bb === undefined ? undefined : aa < bb ? -1 : aa > bb ? 1 : 0;
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
// Cursor uses a date plus a build hash, not semver. A different hash on the
|
|
40
|
+
// same date has no reliable ordering; leave that comparison unknown.
|
|
41
|
+
export function compareCursorVersions(a: string, b: string): number | undefined {
|
|
42
|
+
const date = (value: string): string | undefined => {
|
|
43
|
+
const stamp = /^(\d{4}\.\d{2}\.\d{2})-[a-f0-9]{6,40}$/i.exec(value)?.[1];
|
|
44
|
+
if (!stamp) return undefined;
|
|
45
|
+
const iso = stamp.replaceAll('.', '-');
|
|
46
|
+
const parsed = new Date(`${iso}T00:00:00Z`);
|
|
47
|
+
return Number.isFinite(parsed.getTime()) && parsed.toISOString().startsWith(iso) ? stamp : undefined;
|
|
48
|
+
};
|
|
49
|
+
const aa = date(a), bb = date(b);
|
|
50
|
+
return !aa || !bb ? undefined : aa < bb ? -1 : aa > bb ? 1 : a === b ? 0 : undefined;
|
|
51
|
+
}
|