arco-workbench 0.1.6 → 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 +20 -13
- package/client/dist/assets/{PhosphorBackdrop-BR-TgB5x.js → PhosphorBackdrop-D7jdAV_G.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-DgcFj6JN.js → ThemedBackgroundShaderImpl-DrDm60h8.js} +1 -1
- package/client/dist/assets/{XtermView-CflVBQgC.js → XtermView-BGFujb1e.js} +1 -1
- package/client/dist/assets/{galleryEditor-BB-emfmi.js → galleryEditor-D951A2sE.js} +1 -1
- package/client/dist/assets/{index-B_EqHDz3.js → index-CsVy3eZm.js} +248 -248
- package/client/dist/index.html +1 -1
- package/client/src/buildCheck.ts +3 -1
- package/client/src/components/AppUpdateNotice.tsx +2 -1
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +24 -12
- 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 +6 -1
- package/client/src/components/ClusterTaskBoardTab.tsx +9 -22
- package/client/src/components/HeaderVersionBox.tsx +7 -4
- 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/UpdateAction.tsx +18 -4
- package/client/src/components/UpdateResultNotice.tsx +3 -1
- package/client/src/components/clusterNeedsYou.ts +11 -18
- package/client/src/help/content/cluster.tsx +54 -22
- package/client/src/help/content/composer.tsx +22 -0
- package/client/src/help/content/header.tsx +19 -1
- package/client/src/help/content/misc.tsx +8 -0
- package/client/src/help/content/rightPanel.tsx +1 -1
- package/client/src/help/content/settings.tsx +19 -5
- 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 +58 -21
- package/client/src/help/manualSections/configuration.tsx +38 -4
- package/client/src/help/manualSections/maintenance.tsx +30 -0
- package/client/src/help/manualSections/plans.tsx +5 -1
- 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 +19 -0
- package/client/src/help/manualSections/workspace.tsx +6 -0
- package/client/src/stores/appUpdateStore.ts +29 -8
- package/client/src/utils/transcriptWorkerRequest.ts +24 -0
- package/client/src/utils/wsSession.ts +2 -1
- 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 +9 -4
- package/docs/GOTCHAS.md +2 -1
- package/docs/OPERATIONS.md +37 -4
- package/docs/PERSISTENCE.md +25 -3
- package/docs/PRIMITIVES.md +42 -0
- package/docs/PROTOCOL_CLUSTER.md +51 -5
- 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/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/autoPickup.d.ts +3 -0
- 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 +78 -12
- package/scripts/packaging/update.mjs +5 -1
- 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/clusterAutoTurn.d.ts +4 -0
- package/server/dist/clusterAutoTurn.js +29 -25
- package/server/dist/clusterBusyReminder.js +1 -1
- 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 +10 -2
- package/server/dist/clusterStore.js +64 -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/smartPickup.d.ts +2 -1
- package/server/dist/smartPickup.js +28 -1
- package/server/dist/smartPickupAdapters.js +15 -2
- package/server/dist/smartPickupLedger.js +6 -4
- package/server/dist/smartPickupObserver.d.ts +1 -0
- package/server/dist/smartPickupObserver.js +24 -15
- 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 +2 -0
- package/server/dist/ws/clusterHandlers.js +64 -27
- 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/clusterAutoTurn.ts +26 -21
- package/server/src/clusterBusyReminder.ts +1 -1
- 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 +64 -1
- 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/smartPickup.ts +27 -3
- package/server/src/smartPickupAdapters.ts +17 -3
- package/server/src/smartPickupLedger.ts +6 -4
- package/server/src/smartPickupObserver.ts +20 -11
- package/server/src/transcriptWorker.ts +182 -0
- package/server/src/workflowStore.ts +21 -0
- package/server/src/ws/clusterHandlers.ts +46 -27
- 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/autoPickup.d.ts +3 -0
- 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/autoPickup.ts +5 -0
- 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
|
@@ -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
|
+
}
|