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
|
@@ -19,7 +19,9 @@ import { updateMeta } from '../workflowMeta.js';
|
|
|
19
19
|
import { withFileLock } from '../atomicFile.js';
|
|
20
20
|
import { disposeProviderResources } from '../providers/index.js';
|
|
21
21
|
import { refreshHubReporting } from '../management/initHubLink.js';
|
|
22
|
-
import { buildPinnedSkillsBlock, resolvePinnedSkills } from '../skills.js';
|
|
22
|
+
import { buildPinnedSkillsBlock, resolvePinnedSkills, isValidSlug } from '../skills.js';
|
|
23
|
+
import { withClusterSkillLock } from '../clusterStore.js';
|
|
24
|
+
import { assertWorkflowSkillPins, uniqueSkillRefs } from '../clusterSkills.js';
|
|
23
25
|
import type { Session } from '../workflows/types.js';
|
|
24
26
|
|
|
25
27
|
export async function handleUpdatePrimaryConfig(
|
|
@@ -33,6 +35,13 @@ export async function handleUpdatePrimaryConfig(
|
|
|
33
35
|
return;
|
|
34
36
|
}
|
|
35
37
|
|
|
38
|
+
if (wf.primary.provider === 'claude' && msg.effort !== undefined
|
|
39
|
+
&& !['low', 'medium', 'high', 'xhigh', 'max'].includes(msg.effort)) {
|
|
40
|
+
send(ws, { type: 'error', workflowId: msg.workflowId,
|
|
41
|
+
message: 'Claude effort must be low, medium, high, xhigh or max; no settings were changed.' });
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
36
45
|
const proposedGoal = msg.goal === undefined ? wf.config.goal : capGoal(msg.goal);
|
|
37
46
|
const proposedGoalRun = msg.goalRun === undefined ? undefined : normalizeGoalRunArm(msg.goalRun, !!proposedGoal?.trim());
|
|
38
47
|
if (typeof proposedGoalRun === 'string') {
|
|
@@ -285,11 +294,21 @@ export async function handleUpdatePrimaryConfig(
|
|
|
285
294
|
missing: string[];
|
|
286
295
|
} | undefined;
|
|
287
296
|
if (msg.pinnedSkills !== undefined) {
|
|
288
|
-
const requested = Array.isArray(msg.pinnedSkills) ? msg.pinnedSkills : [];
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
297
|
+
const requested = uniqueSkillRefs((Array.isArray(msg.pinnedSkills) ? msg.pinnedSkills : []).filter(ref => ref && (ref.scope === 'project' || ref.scope === 'global') && isValidSlug(ref.slug)));
|
|
298
|
+
let resolved;
|
|
299
|
+
try {
|
|
300
|
+
resolved = await withClusterSkillLock(msg.workflowId, async () => {
|
|
301
|
+
await assertWorkflowSkillPins(msg.workflowId, wf.config.workingDirectory, requested);
|
|
302
|
+
const result = await resolvePinnedSkills(requested, wf.config.workingDirectory);
|
|
303
|
+
const refs = result.skills.map(s => ({ scope: s.scope, slug: s.slug }));
|
|
304
|
+
if (refs.length) wf.config.pinnedSkills = refs;
|
|
305
|
+
else delete wf.config.pinnedSkills;
|
|
306
|
+
return result;
|
|
307
|
+
});
|
|
308
|
+
} catch (err) {
|
|
309
|
+
send(ws, { type: 'error', workflowId: msg.workflowId, message: err instanceof Error ? err.message : String(err) });
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
293
312
|
const block = buildPinnedSkillsBlock(resolved.skills);
|
|
294
313
|
pinnedSkillsBroadcast = {
|
|
295
314
|
skills: resolved.skills.map((s) => ({ scope: s.scope, slug: s.slug, name: s.name })),
|
|
@@ -137,7 +137,7 @@ export interface WorkflowHandlerDeps {
|
|
|
137
137
|
let deps: WorkflowHandlerDeps;
|
|
138
138
|
export function initWorkflowHandlers(d: WorkflowHandlerDeps): void { deps = d; }
|
|
139
139
|
|
|
140
|
-
export async function handleCreateWorkflow(ws: WebSocket, session: Session, config: WorkflowConfig): Promise<void> {
|
|
140
|
+
export async function handleCreateWorkflow(ws: WebSocket, session: Session, config: WorkflowConfig, options?: { onCreated?: (workflowId: string) => void; backgroundCreated?: boolean }): Promise<void> {
|
|
141
141
|
let workflowId: string | undefined;
|
|
142
142
|
let resumed = false;
|
|
143
143
|
let resumeWorkflowMeta: WorkflowMeta | null = null;
|
|
@@ -658,10 +658,12 @@ export async function handleCreateWorkflow(ws: WebSocket, session: Session, conf
|
|
|
658
658
|
workflowId,
|
|
659
659
|
config,
|
|
660
660
|
...hints,
|
|
661
|
+
...(options?.backgroundCreated ? { backgroundCreated: true } : {}),
|
|
661
662
|
...(wfNowForCreate?.primary.provider === 'claude' && wfNowForCreate.primarySessionId
|
|
662
663
|
? { claudeSessionId: wfNowForCreate.primarySessionId }
|
|
663
664
|
: {}),
|
|
664
665
|
});
|
|
666
|
+
options?.onCreated?.(workflowId);
|
|
665
667
|
// Genesis creation starts with the seed on config, but the right-panel UI
|
|
666
668
|
// reads the normalized seed/readiness fields populated by genesis_seed_updated.
|
|
667
669
|
// Echo it immediately so a fresh Genesis tab does not look like an ordinary
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ClusterEfficiencyLevel, type ClusterMessageGuard } from './protocol/clusters.js';
|
|
2
2
|
export declare const isClusterDirector: (role?: string) => boolean;
|
|
3
|
+
export declare 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.";
|
|
4
|
+
export declare function buildTurnWaitInstructions(role?: string): string;
|
|
3
5
|
/** Explain why a role list cannot be used for a new cluster. */
|
|
4
6
|
export declare function clusterDirectorProblem(roles: readonly (string | undefined)[]): string | null;
|
|
5
7
|
export declare function buildClusterCoordination(level?: ClusterEfficiencyLevel, note?: string, role?: string): string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// Shared deterministic coordination wording for worker prompts and operator nudges.
|
|
2
2
|
import { CLUSTER_EFFICIENCY_ADDENDUM_MAX } from './protocol/clusters.js';
|
|
3
3
|
export const isClusterDirector = (role) => /^\s*(?:director|coordinator)\b/i.test(role ?? '');
|
|
4
|
+
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.';
|
|
5
|
+
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.';
|
|
6
|
+
export function buildTurnWaitInstructions(role) {
|
|
7
|
+
return isClusterDirector(role) ? DIRECTOR_TURN_WAIT : AGENT_TURN_WAIT;
|
|
8
|
+
}
|
|
4
9
|
/** Explain why a role list cannot be used for a new cluster. */
|
|
5
10
|
export function clusterDirectorProblem(roles) {
|
|
6
11
|
return roles.filter(isClusterDirector).length > 1
|
|
@@ -12,7 +17,6 @@ export function buildClusterCoordination(level = 'thorough', note, role) {
|
|
|
12
17
|
lines.push('Efficiency guides coordination and testing. Message guards, safety checks, operator-requested review and landing review stay unchanged.');
|
|
13
18
|
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.');
|
|
14
19
|
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.");
|
|
15
|
-
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.');
|
|
16
20
|
if (isClusterDirector(role)) {
|
|
17
21
|
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.');
|
|
18
22
|
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.');
|
|
@@ -67,6 +67,8 @@ export interface SmartPickupCounters {
|
|
|
67
67
|
}
|
|
68
68
|
export interface ClusterAutoPickupState {
|
|
69
69
|
remindBusy?: boolean;
|
|
70
|
+
paused?: boolean;
|
|
71
|
+
pausedAt?: number;
|
|
70
72
|
mode: AutoPickupMode;
|
|
71
73
|
limits: SmartPickupLimits;
|
|
72
74
|
evaluator?: SmartPickupEvaluator;
|
|
@@ -90,6 +92,7 @@ export interface ClusterAutoPickupSetMessage {
|
|
|
90
92
|
limits?: Partial<SmartPickupLimits>;
|
|
91
93
|
ruleLimits?: Partial<RulePickupLimits>;
|
|
92
94
|
resumeRule?: boolean;
|
|
95
|
+
paused?: boolean;
|
|
93
96
|
remindBusy?: boolean;
|
|
94
97
|
}
|
|
95
98
|
export interface RulePickupLimits {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AutomaticMessageKind } from './chat.js';
|
|
2
|
+
import type { TranscriptWorkerPreviewMessage, TranscriptWorkerCreateMessage } from './transcriptWorker.js';
|
|
2
3
|
import type { OperatorQuestionReplyMessage, OperatorQuestionDismissMessage } from './operatorQuestions.js';
|
|
3
4
|
import type { VoiceToolResultMessage, ComputerContextControlMessage } from './voiceOperator.js';
|
|
4
5
|
import type { HubLinkSetEnabledMessage } from './remoteManagement.js';
|
|
@@ -24,7 +25,7 @@ import type { TaskLedgerCreateMessage, TaskLedgerUpdateMessage, TaskLedgerDelete
|
|
|
24
25
|
import type { McpRegistryCreateMessage, McpRegistryUpdateMessage, McpRegistryDeleteMessage, McpRegistryListMessage, McpWorkflowAllowMessage, McpProbeMessage } from './mcp.js';
|
|
25
26
|
import type { HandoffRequestMessage, HandoffCancelMessage, HandoffLockClearMessage, SpawnFromHereRequestMessage } from './handoffs.js';
|
|
26
27
|
import type { PlanAttachMessage, PlanDetachMessage, EnterPlanModeRequestMessage } from './plans.js';
|
|
27
|
-
import type { ClusterSubscribeMessage, ClusterMemberRehydrateMessage, ClusterUnsubscribeMessage, ClusterCreateMessage, ClusterDeleteMessage, ClusterBroadcastMessage, ClusterDispatchOnceMessage, ClusterDispatchToggleMessage, ClusterDispatchSettingsUpdateMessage, ClusterTaskBoardAttachSetMessage, ClusterTaskBoardModeSetMessage, ClusterSwarmCreateMessage, OperatorPeerSendMessage, ClusterRenameMessage, ClusterMemberRemoveMessage, ClusterMemberAddMessage, ClusterCreateWithFreshWorkersMessage, ClusterCreateFromScratchMessage, ClusterAddFreshWorkersMessage, ClusterMemberReplaceMessage, ClusterPlanSetMessage, ClusterPlanAttachMessage, ClusterPlanClearMessage, ClusterMemberRoleSetMessage, ClusterMemberTierSetMessage, ClusterMemberFocusSetMessage, ClusterIdleNudgerToggleMessage, ClusterEfficiencySetMessage, ClusterAutoCompactionSetMessage, ClusterRemoteSetMessage, ClusterGatesSetMessage, ClusterMemberReorderMessage, ClusterProgressSetMessage, RenameWorkflowMessage, AttachCodebaseMemoryMessage, DetachCodebaseMemoryMessage, ClusterAutoTurnToggleMessage, DebugClusterAutoTurnInjectMessage, ClusterSnapshotSaveMessage, ClusterSnapshotListMessage, ClusterSnapshotRestoreMessage, ClusterSnapshotDeleteMessage } from './clusters.js';
|
|
28
|
+
import type { ClusterSubscribeMessage, ClusterMemberRehydrateMessage, ClusterUnsubscribeMessage, ClusterCreateMessage, ClusterDeleteMessage, ClusterBroadcastMessage, ClusterDispatchOnceMessage, ClusterDispatchToggleMessage, ClusterDispatchSettingsUpdateMessage, ClusterTaskBoardAttachSetMessage, ClusterTaskBoardModeSetMessage, ClusterSwarmCreateMessage, OperatorPeerSendMessage, ClusterRenameMessage, ClusterMemberRemoveMessage, ClusterMemberAddMessage, ClusterCreateWithFreshWorkersMessage, ClusterCreateFromScratchMessage, ClusterAddFreshWorkersMessage, ClusterMemberReplaceMessage, ClusterPlanSetMessage, ClusterPlanAttachMessage, ClusterPlanClearMessage, ClusterMemberRoleSetMessage, ClusterMemberTierSetMessage, ClusterMemberFocusSetMessage, ClusterIdleNudgerToggleMessage, ClusterEfficiencySetMessage, ClusterSkillsSetMessage, ClusterAutoCompactionSetMessage, ClusterRemoteSetMessage, ClusterGatesSetMessage, ClusterMemberReorderMessage, ClusterProgressSetMessage, RenameWorkflowMessage, AttachCodebaseMemoryMessage, DetachCodebaseMemoryMessage, ClusterAutoTurnToggleMessage, DebugClusterAutoTurnInjectMessage, ClusterSnapshotSaveMessage, ClusterSnapshotListMessage, ClusterSnapshotRestoreMessage, ClusterSnapshotDeleteMessage } from './clusters.js';
|
|
28
29
|
export interface CreateWorkflowMessage {
|
|
29
30
|
type: 'create_workflow';
|
|
30
31
|
config: WorkflowConfig;
|
|
@@ -210,4 +211,4 @@ export interface DebugNativeAutoCompactProbeMessage {
|
|
|
210
211
|
contextPercent: number;
|
|
211
212
|
mode: 'off' | 'conservative' | 'aggressive';
|
|
212
213
|
}
|
|
213
|
-
export type ClientMessage = ComputerContextControlMessage | CreateWorkflowMessage | UserMessage | CancelMessage | CompactWorkflowMessage | FoldWorkflowMessage | SetToolPostureMessage | SetProjectTrustMessage | RemoveWorkflowMessage | RehydrateWorkflowsMessage | WorkspaceSyncMessage | UploadCompleteMessage | ReviewRequestMessage | CancelReviewMessage | ResearchRequestMessage | CancelResearchMessage | CompareRequestMessage | CompareVoteMessage | CompareSynthesizeMessage | CancelCompareMessage | DocEditRequestMessage | MdTuneupRequestMessage | MdTuneupAcceptMessage | MdTuneupCandidatesRequestMessage | MdTuneupUndoMessage | KnowledgeDistillRequestMessage | RecallSummaryRequestMessage | HandoffRequestMessage | HandoffCancelMessage | HandoffLockClearMessage | SpawnFromHereRequestMessage | UpdatePrimaryConfigMessage | CancelQueuedMessageMessage | LoadEarlierMessagesMessage | RecalibrateRequestMessage | PlanAttachMessage | PlanDetachMessage | SetPreviewPortMessage | ClearPreviewPortMessage | OperatorQuestionDismissMessage | OperatorQuestionReplyMessage | VoiceToolResultMessage | AskUserQuestionReplyMessage | GateReplyMessage | GateRevokeRequestMessage | EnterPlanModeRequestMessage | CreateLabelRequestMessage | RevertToPointRequestMessage | ClusterSubscribeMessage | ClusterMemberRehydrateMessage | ClusterUnsubscribeMessage | ClusterCreateMessage | ClusterDeleteMessage | ClusterBroadcastMessage | ClusterDispatchOnceMessage | ClusterDispatchToggleMessage | ClusterDispatchSettingsUpdateMessage | ClusterTaskBoardAttachSetMessage | ClusterTaskBoardModeSetMessage | ClusterSwarmCreateMessage | ClusterOrchestrationAssistRequestMessage | ClusterOrchestrationProposalListMessage | ClusterOrchestrationProposalRejectMessage | ClusterOrchestrationProposalAcceptMessage | ClusterOrchestrationProposalApplyMessage | OperatorPeerSendMessage | ClusterRenameMessage | ClusterMemberRemoveMessage | ClusterMemberAddMessage | ClusterCreateWithFreshWorkersMessage | ClusterCreateFromScratchMessage | ClusterAddFreshWorkersMessage | ClusterMemberReplaceMessage | ClusterPlanSetMessage | ClusterPlanAttachMessage | ClusterPlanClearMessage | ClusterMemberRoleSetMessage | ClusterMemberTierSetMessage | ClusterMemberFocusSetMessage | ClusterIdleNudgerToggleMessage | ClusterAutoCompactionSetMessage | ClusterEfficiencySetMessage | ClusterRemoteSetMessage | ClusterGatesSetMessage | ClusterMemberReorderMessage | ClusterProgressSetMessage | ClusterSnapshotSaveMessage | ClusterSnapshotListMessage | ClusterSnapshotRestoreMessage | ClusterSnapshotDeleteMessage | RenameWorkflowMessage | AttachCodebaseMemoryMessage | DetachCodebaseMemoryMessage | DebugNativePlanSetMessage | DebugNativeAutoCompactProbeMessage | ClusterAutoTurnToggleMessage | ClusterAutoPickupSetMessage | DebugClusterAutoTurnInjectMessage | RevertToCheckpointMessage | LiveChangesSubscribeMessage | LiveChangesUnsubscribeMessage | TerminalOpenMessage | TerminalKillMessage | TerminalCommandMessage | TerminalListMessage | TaskLedgerCreateMessage | TaskLedgerUpdateMessage | TaskLedgerDeleteMessage | TaskLedgerListMessage | TaskRunRecoverMessage | TaskWorktreeCreateMessage | TaskWorktreeRemoveMessage | McpRegistryCreateMessage | McpRegistryUpdateMessage | McpRegistryDeleteMessage | McpRegistryListMessage | McpWorkflowAllowMessage | McpProbeMessage | GenesisSeedUpdateMessage | GenesisScaffoldMessage | GenesisCreativeArmMessage | GenesisAssistRequestMessage | PreviewCaptureRequestMessage | BakeoffListMessage | BakeoffStartMessage | BakeoffPromoteMessage | BakeoffCleanupMessage | SetNotificationMutesMessage | HubLinkSetEnabledMessage;
|
|
214
|
+
export type ClientMessage = TranscriptWorkerPreviewMessage | TranscriptWorkerCreateMessage | ComputerContextControlMessage | CreateWorkflowMessage | UserMessage | CancelMessage | CompactWorkflowMessage | FoldWorkflowMessage | SetToolPostureMessage | SetProjectTrustMessage | RemoveWorkflowMessage | RehydrateWorkflowsMessage | WorkspaceSyncMessage | UploadCompleteMessage | ReviewRequestMessage | CancelReviewMessage | ResearchRequestMessage | CancelResearchMessage | CompareRequestMessage | CompareVoteMessage | CompareSynthesizeMessage | CancelCompareMessage | DocEditRequestMessage | MdTuneupRequestMessage | MdTuneupAcceptMessage | MdTuneupCandidatesRequestMessage | MdTuneupUndoMessage | KnowledgeDistillRequestMessage | RecallSummaryRequestMessage | HandoffRequestMessage | HandoffCancelMessage | HandoffLockClearMessage | SpawnFromHereRequestMessage | UpdatePrimaryConfigMessage | CancelQueuedMessageMessage | LoadEarlierMessagesMessage | RecalibrateRequestMessage | PlanAttachMessage | PlanDetachMessage | SetPreviewPortMessage | ClearPreviewPortMessage | OperatorQuestionDismissMessage | OperatorQuestionReplyMessage | VoiceToolResultMessage | AskUserQuestionReplyMessage | GateReplyMessage | GateRevokeRequestMessage | EnterPlanModeRequestMessage | CreateLabelRequestMessage | RevertToPointRequestMessage | ClusterSubscribeMessage | ClusterMemberRehydrateMessage | ClusterUnsubscribeMessage | ClusterCreateMessage | ClusterDeleteMessage | ClusterBroadcastMessage | ClusterDispatchOnceMessage | ClusterDispatchToggleMessage | ClusterDispatchSettingsUpdateMessage | ClusterTaskBoardAttachSetMessage | ClusterTaskBoardModeSetMessage | ClusterSwarmCreateMessage | ClusterOrchestrationAssistRequestMessage | ClusterOrchestrationProposalListMessage | ClusterOrchestrationProposalRejectMessage | ClusterOrchestrationProposalAcceptMessage | ClusterOrchestrationProposalApplyMessage | OperatorPeerSendMessage | ClusterRenameMessage | ClusterMemberRemoveMessage | ClusterMemberAddMessage | ClusterCreateWithFreshWorkersMessage | ClusterCreateFromScratchMessage | ClusterAddFreshWorkersMessage | ClusterMemberReplaceMessage | ClusterPlanSetMessage | ClusterPlanAttachMessage | ClusterPlanClearMessage | ClusterMemberRoleSetMessage | ClusterMemberTierSetMessage | ClusterMemberFocusSetMessage | ClusterIdleNudgerToggleMessage | ClusterAutoCompactionSetMessage | ClusterEfficiencySetMessage | ClusterSkillsSetMessage | ClusterRemoteSetMessage | ClusterGatesSetMessage | ClusterMemberReorderMessage | ClusterProgressSetMessage | ClusterSnapshotSaveMessage | ClusterSnapshotListMessage | ClusterSnapshotRestoreMessage | ClusterSnapshotDeleteMessage | RenameWorkflowMessage | AttachCodebaseMemoryMessage | DetachCodebaseMemoryMessage | DebugNativePlanSetMessage | DebugNativeAutoCompactProbeMessage | ClusterAutoTurnToggleMessage | ClusterAutoPickupSetMessage | DebugClusterAutoTurnInjectMessage | RevertToCheckpointMessage | LiveChangesSubscribeMessage | LiveChangesUnsubscribeMessage | TerminalOpenMessage | TerminalKillMessage | TerminalCommandMessage | TerminalListMessage | TaskLedgerCreateMessage | TaskLedgerUpdateMessage | TaskLedgerDeleteMessage | TaskLedgerListMessage | TaskRunRecoverMessage | TaskWorktreeCreateMessage | TaskWorktreeRemoveMessage | McpRegistryCreateMessage | McpRegistryUpdateMessage | McpRegistryDeleteMessage | McpRegistryListMessage | McpWorkflowAllowMessage | McpProbeMessage | GenesisSeedUpdateMessage | GenesisScaffoldMessage | GenesisCreativeArmMessage | GenesisAssistRequestMessage | PreviewCaptureRequestMessage | BakeoffListMessage | BakeoffStartMessage | BakeoffPromoteMessage | BakeoffCleanupMessage | SetNotificationMutesMessage | HubLinkSetEnabledMessage;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type { AutoCompactionPolicy } from './workflows.js';
|
|
1
|
+
import type { ArcoSkillRef, AutoCompactionPolicy } from './workflows.js';
|
|
2
|
+
export interface ClusterSkillPin extends ArcoSkillRef {
|
|
3
|
+
role?: string;
|
|
4
|
+
}
|
|
2
5
|
export type ClusterMemberProvider = 'claude' | 'codex' | 'ollama' | 'llamacpp' | 'cursor';
|
|
3
6
|
export declare const CLUSTER_MEMBER_PROVIDERS: readonly ["claude", "codex", "ollama", "llamacpp", "cursor"];
|
|
4
7
|
export declare function isClusterMemberProvider(v: unknown): v is ClusterMemberProvider;
|
|
@@ -85,6 +88,7 @@ export declare const CLUSTER_PROGRESS_LABELS: Record<ClusterProgressMode, {
|
|
|
85
88
|
blurb: string;
|
|
86
89
|
}>;
|
|
87
90
|
export interface ClusterStatePayload {
|
|
91
|
+
skillPins?: ClusterSkillPin[];
|
|
88
92
|
autoCompaction?: AutoCompactionPolicy;
|
|
89
93
|
clusterId: string;
|
|
90
94
|
cwd: string;
|
|
@@ -313,6 +317,9 @@ export interface ClusterMemberReplaceMessage extends ClusterMemberTuning {
|
|
|
313
317
|
name?: string;
|
|
314
318
|
role?: string;
|
|
315
319
|
includeHistory?: boolean;
|
|
320
|
+
historyMode?: 'none' | 'recent' | 'full';
|
|
321
|
+
historyTurns?: number;
|
|
322
|
+
historyToken?: string;
|
|
316
323
|
transferActiveTasks?: boolean;
|
|
317
324
|
}
|
|
318
325
|
export interface ClusterPlanSetMessage {
|
|
@@ -541,6 +548,11 @@ export interface ClusterEfficiencySetMessage {
|
|
|
541
548
|
addendum?: string;
|
|
542
549
|
messageGuard?: ClusterMessageGuard;
|
|
543
550
|
}
|
|
551
|
+
export interface ClusterSkillsSetMessage {
|
|
552
|
+
type: 'cluster_skills_set';
|
|
553
|
+
clusterId: string;
|
|
554
|
+
pins: ClusterSkillPin[];
|
|
555
|
+
}
|
|
544
556
|
export interface ClusterMemberReorderMessage {
|
|
545
557
|
type: 'cluster_member_reorder';
|
|
546
558
|
clusterId: string;
|
|
@@ -43,6 +43,7 @@ export * from './notifications.js';
|
|
|
43
43
|
export * from './orchestrationAssist.js';
|
|
44
44
|
export * from './clientMessages.js';
|
|
45
45
|
export * from './serverMessages.js';
|
|
46
|
+
export * from './transcriptWorker.js';
|
|
46
47
|
export * from './ollamaThinking.js';
|
|
47
48
|
export * from './localModels.js';
|
|
48
49
|
export * from './operatorQuestions.js';
|
|
@@ -47,6 +47,7 @@ export * from './notifications.js';
|
|
|
47
47
|
export * from './orchestrationAssist.js';
|
|
48
48
|
export * from './clientMessages.js';
|
|
49
49
|
export * from './serverMessages.js';
|
|
50
|
+
export * from './transcriptWorker.js';
|
|
50
51
|
export * from './ollamaThinking.js';
|
|
51
52
|
export * from './localModels.js';
|
|
52
53
|
export * from './operatorQuestions.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EffortLevel, ModelName } from './providers.js';
|
|
2
2
|
export declare const CLAUDE_MODELS: readonly ["haiku", "sonnet", "opus", "claude-fable-5-2", "claude-fable-5-1", "claude-fable-5", "claude-sonnet-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-opus-4-6", "opus[1m]"];
|
|
3
3
|
export declare const CLAUDE_MODEL_LABELS: Record<string, string>;
|
|
4
|
-
export declare const CODEX_MODELS: readonly ["gpt-6-astra", "gpt-6.1-sol", "gpt-6-sol", "gpt-6-luna", "gpt-5.5", "gpt-5.3-codex", "gpt-5.2-codex", "gpt-5.1-codex-max", "gpt-5.4-mini", "gpt-5.2", "gpt-5.1-codex-mini"];
|
|
4
|
+
export declare const CODEX_MODELS: readonly ["gpt-6.2-sol", "gpt-6.2-astra", "gpt-6-astra", "gpt-6.1-sol", "gpt-6-sol", "gpt-6-luna", "gpt-5.5", "gpt-5.3-codex", "gpt-5.2-codex", "gpt-5.1-codex-max", "gpt-5.4-mini", "gpt-5.2", "gpt-5.1-codex-mini"];
|
|
5
5
|
export interface CodexModelInfo {
|
|
6
6
|
id: string;
|
|
7
7
|
label: string;
|
|
@@ -13,8 +13,8 @@ export interface CodexModelInfo {
|
|
|
13
13
|
supportedEfforts?: EffortLevel[];
|
|
14
14
|
}
|
|
15
15
|
export declare const CODEX_MODEL_INFO: Record<string, CodexModelInfo>;
|
|
16
|
-
export declare const CODEX_PICKER_MODELS: ("gpt-6-astra" | "gpt-6.1-sol" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.5" | "gpt-5.3-codex" | "gpt-5.2-codex" | "gpt-5.1-codex-max" | "gpt-5.4-mini" | "gpt-5.2" | "gpt-5.1-codex-mini")[];
|
|
17
|
-
export declare const DEFAULT_CODEX_MODEL: "gpt-6-astra" | "gpt-6.1-sol" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.5" | "gpt-5.3-codex" | "gpt-5.2-codex" | "gpt-5.1-codex-max" | "gpt-5.4-mini" | "gpt-5.2" | "gpt-5.1-codex-mini";
|
|
16
|
+
export declare const CODEX_PICKER_MODELS: ("gpt-6.2-sol" | "gpt-6.2-astra" | "gpt-6-astra" | "gpt-6.1-sol" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.5" | "gpt-5.3-codex" | "gpt-5.2-codex" | "gpt-5.1-codex-max" | "gpt-5.4-mini" | "gpt-5.2" | "gpt-5.1-codex-mini")[];
|
|
17
|
+
export declare const DEFAULT_CODEX_MODEL: "gpt-6.2-sol" | "gpt-6.2-astra" | "gpt-6-astra" | "gpt-6.1-sol" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.5" | "gpt-5.3-codex" | "gpt-5.2-codex" | "gpt-5.1-codex-max" | "gpt-5.4-mini" | "gpt-5.2" | "gpt-5.1-codex-mini";
|
|
18
18
|
export interface ClaudeCatalogModel {
|
|
19
19
|
id: string;
|
|
20
20
|
displayName: string;
|
|
@@ -169,6 +169,7 @@ export interface Capabilities {
|
|
|
169
169
|
latestVersions?: {
|
|
170
170
|
claude?: string;
|
|
171
171
|
codex?: string;
|
|
172
|
+
cursor?: string;
|
|
172
173
|
ollama?: string;
|
|
173
174
|
strata?: string;
|
|
174
175
|
xolotl?: string;
|
|
@@ -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.');
|
|
@@ -156,6 +156,8 @@ export interface SmartPickupCounters {
|
|
|
156
156
|
|
|
157
157
|
export interface ClusterAutoPickupState {
|
|
158
158
|
remindBusy?: boolean;
|
|
159
|
+
paused?: boolean;
|
|
160
|
+
pausedAt?: number;
|
|
159
161
|
mode: AutoPickupMode;
|
|
160
162
|
limits: SmartPickupLimits;
|
|
161
163
|
evaluator?: SmartPickupEvaluator;
|
|
@@ -171,6 +173,7 @@ export interface ClusterAutoPickupState {
|
|
|
171
173
|
|
|
172
174
|
// Operator sets the mode. Smart modes need an evaluator; limits are
|
|
173
175
|
// optional and default per SMART_PICKUP_LIMIT_SPECS.
|
|
176
|
+
// A pause-only request keeps the current mode and omits arming fields.
|
|
174
177
|
export interface ClusterAutoPickupSetMessage {
|
|
175
178
|
type: 'cluster_auto_pickup_set';
|
|
176
179
|
clusterId: string;
|
|
@@ -179,6 +182,8 @@ export interface ClusterAutoPickupSetMessage {
|
|
|
179
182
|
limits?: Partial<SmartPickupLimits>;
|
|
180
183
|
ruleLimits?: Partial<RulePickupLimits>;
|
|
181
184
|
resumeRule?: boolean;
|
|
185
|
+
// Pause/resume the current mode without rearming or resetting its budgets.
|
|
186
|
+
paused?: boolean;
|
|
182
187
|
remindBusy?: boolean;
|
|
183
188
|
}
|
|
184
189
|
|
|
@@ -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';
|