@opencorelabs/lucidity 0.8.0 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/assets/speech/lucidity-speech +0 -0
- package/dist/automations/service.d.ts +4 -0
- package/dist/automations/service.d.ts.map +1 -1
- package/dist/automations/service.js +60 -22
- package/dist/automations/store.d.ts +9 -3
- package/dist/automations/store.d.ts.map +1 -1
- package/dist/automations/store.js +45 -32
- package/dist/automations/workflow.d.ts +14 -0
- package/dist/automations/workflow.d.ts.map +1 -0
- package/dist/automations/workflow.js +57 -0
- package/dist/coding/listPrs.d.ts +2 -0
- package/dist/coding/listPrs.d.ts.map +1 -1
- package/dist/coding/listPrs.js +10 -0
- package/dist/coding/runCodeTurn.d.ts +3 -14
- package/dist/coding/runCodeTurn.d.ts.map +1 -1
- package/dist/coding/runCodeTurn.js +21 -86
- package/dist/coding/runReview.d.ts +10 -0
- package/dist/coding/runReview.d.ts.map +1 -0
- package/dist/coding/runReview.js +87 -0
- package/dist/coding/workspaceRegistry.d.ts +49 -1
- package/dist/coding/workspaceRegistry.d.ts.map +1 -1
- package/dist/coding/workspaceRegistry.js +208 -17
- package/dist/coding/worktree.d.ts +61 -18
- package/dist/coding/worktree.d.ts.map +1 -1
- package/dist/coding/worktree.js +149 -17
- package/dist/coding/worktreeSetup.d.ts +7 -0
- package/dist/coding/worktreeSetup.d.ts.map +1 -0
- package/dist/coding/worktreeSetup.js +49 -0
- package/dist/index.js +21 -28
- package/dist/jobs/briefing.d.ts +2 -16
- package/dist/jobs/briefing.d.ts.map +1 -1
- package/dist/jobs/briefing.js +65 -93
- package/dist/logTimestamps.d.ts +10 -0
- package/dist/logTimestamps.d.ts.map +1 -0
- package/dist/logTimestamps.js +12 -0
- package/dist/providerRecovery.d.ts +48 -0
- package/dist/providerRecovery.d.ts.map +1 -0
- package/dist/providerRecovery.js +100 -0
- package/dist/room/client.d.ts +2 -20
- package/dist/room/client.d.ts.map +1 -1
- package/dist/room/client.js +18 -29
- package/dist/room/computer.d.ts.map +1 -1
- package/dist/room/computer.js +1 -2
- package/dist/room/incidents.d.ts +3 -0
- package/dist/room/incidents.d.ts.map +1 -1
- package/dist/room/incidents.js +1 -0
- package/dist/room/turnQueue.d.ts.map +1 -1
- package/dist/room/turnQueue.js +28 -22
- package/dist/runtimeStore.d.ts +2 -0
- package/dist/runtimeStore.d.ts.map +1 -1
- package/dist/runtimeStore.js +17 -0
- package/dist/vault.d.ts +6 -3
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +18 -4
- package/package.json +1 -1
- package/src/automations/service.ts +47 -21
- package/src/automations/store.ts +41 -50
- package/src/automations/workflow.ts +49 -0
- package/src/coding/listPrs.ts +14 -0
- package/src/coding/runCodeTurn.ts +26 -95
- package/src/coding/runReview.ts +83 -0
- package/src/coding/workspaceRegistry.ts +186 -16
- package/src/coding/worktree.ts +161 -20
- package/src/coding/worktreeSetup.ts +50 -0
- package/src/index.ts +22 -31
- package/src/jobs/briefing.ts +62 -109
- package/src/logTimestamps.ts +14 -0
- package/src/providerRecovery.ts +99 -0
- package/src/room/client.ts +19 -54
- package/src/room/computer.ts +1 -2
- package/src/room/incidents.ts +4 -0
- package/src/room/turnQueue.ts +27 -29
- package/src/runtimeStore.ts +18 -1
- package/src/vault.ts +16 -7
- package/vendor/mcp-server/package.json +1 -1
- package/vendor/runtime/README.md +34 -0
- package/vendor/runtime/dist/executor/claudeAgent.d.ts +4 -0
- package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/claudeAgent.js +57 -4
- package/vendor/runtime/dist/executor/codex.d.ts +7 -2
- package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codex.js +47 -4
- package/vendor/runtime/dist/executor/codexProtocol/AgentPath.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/AgentPath.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/AgentPath.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.d.ts +12 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.d.ts +24 -0
- package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/SleepItem.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/SleepItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/SleepItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.d.ts +14 -0
- package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/ThreadId.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/ThreadId.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/ThreadId.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.d.ts +15 -0
- package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.d.ts +29 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.d.ts +20 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.d.ts +11 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.d.ts +9 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.d.ts +4 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.d.ts +16 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.d.ts +4 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.d.ts +9 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.d.ts +100 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.d.ts +216 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.d.ts +11 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.d.ts +19 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.d.ts +12 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.d.ts +36 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.d.ts +12 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.d.ts +15 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.js +2 -0
- package/vendor/runtime/dist/executor/codexRpc.d.ts +3 -1
- package/vendor/runtime/dist/executor/codexRpc.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexRpc.js +3 -2
- package/vendor/runtime/dist/executor/health.d.ts +6 -1
- package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/health.js +4 -0
- package/vendor/runtime/dist/executor/ownership.d.ts +6 -1
- package/vendor/runtime/dist/executor/ownership.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/ownership.js +7 -0
- package/vendor/runtime/dist/executor/types.d.ts +25 -0
- package/vendor/runtime/dist/executor/types.d.ts.map +1 -1
- package/vendor/runtime/dist/harness/index.d.ts.map +1 -1
- package/vendor/runtime/dist/harness/index.js +1 -0
- package/vendor/runtime/dist/index.d.ts +1 -1
- package/vendor/runtime/dist/index.d.ts.map +1 -1
- package/vendor/runtime/src/executor/claudeAgent.ts +50 -4
- package/vendor/runtime/src/executor/codex.ts +51 -5
- package/vendor/runtime/src/executor/codexProtocol/AgentPath.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/ImageGenerationFailure.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/ImageGenerationItem.ts +7 -0
- package/vendor/runtime/src/executor/codexProtocol/LegacyAppPathString.ts +27 -0
- package/vendor/runtime/src/executor/codexProtocol/MessagePhase.ts +11 -0
- package/vendor/runtime/src/executor/codexProtocol/SleepItem.ts +8 -0
- package/vendor/runtime/src/executor/codexProtocol/SubAgentSource.ts +7 -0
- package/vendor/runtime/src/executor/codexProtocol/ThreadId.ts +10 -0
- package/vendor/runtime/src/executor/codexProtocol/WebSearchItem.ts +14 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/AgentMessageDelivery.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/AsyncUserInputQuestion.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CodexErrorInfo.ts +12 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentState.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentTool.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentToolCallStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CommandAction.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CommandExecutionSource.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CommandExecutionStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/DynamicToolCallStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/FileUpdateChange.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/GitInfo.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/HookPromptFragment.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpAppDisplayMode.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpAppUi.ts +9 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallAppContext.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallError.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallResult.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MemoryCitation.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MemoryCitationEntry.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MisalignmentErrorDetails.ts +18 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MisalignmentSteer.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/NonSteerableTurnKind.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/PatchApplyStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/PatchChangeKind.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SessionSource.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SubAgentActivityKind.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/Thread.ts +104 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadActiveFlag.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadHistoryMode.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadItem.ts +125 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadReadParams.ts +12 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadReadResponse.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSection.ts +21 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSectionAppearance.ts +8 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadStatus.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/Turn.ts +37 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnError.ts +11 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnItemsView.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/WebSearchAction.ts +5 -0
- package/vendor/runtime/src/executor/codexRpc.ts +4 -2
- package/vendor/runtime/src/executor/health.ts +5 -1
- package/vendor/runtime/src/executor/ownership.ts +8 -1
- package/vendor/runtime/src/executor/types.ts +18 -1
- package/vendor/runtime/src/harness/index.ts +1 -0
- package/vendor/runtime/src/index.ts +1 -1
- package/vendor/shared/dist/automations.d.ts +34 -0
- package/vendor/shared/dist/automations.d.ts.map +1 -1
- package/vendor/shared/dist/automations.js +12 -0
- package/vendor/shared/dist/computer.d.ts +1 -1
- package/vendor/shared/dist/computer.d.ts.map +1 -1
- package/vendor/shared/dist/computer.js +1 -2
- package/vendor/shared/dist/constants.d.ts +1 -1
- package/vendor/shared/dist/constants.d.ts.map +1 -1
- package/vendor/shared/dist/constants.js +3 -10
- package/vendor/shared/dist/index.d.ts +4 -2
- package/vendor/shared/dist/index.d.ts.map +1 -1
- package/vendor/shared/dist/index.js +3 -1
- package/vendor/shared/dist/journal-vault.d.ts +1 -1
- package/vendor/shared/dist/messagingSafety.d.ts +21 -0
- package/vendor/shared/dist/messagingSafety.d.ts.map +1 -0
- package/vendor/shared/dist/messagingSafety.js +8 -0
- package/vendor/shared/dist/schemas/harness.d.ts +98 -169
- package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/harness.js +19 -124
- package/vendor/shared/dist/smartCapture.d.ts +24 -0
- package/vendor/shared/dist/smartCapture.d.ts.map +1 -1
- package/vendor/shared/dist/smartCapture.js +15 -0
- package/vendor/shared/dist/taskSync.d.ts +342 -0
- package/vendor/shared/dist/taskSync.d.ts.map +1 -0
- package/vendor/shared/dist/taskSync.js +111 -0
- package/vendor/shared/dist/types.d.ts +1 -4
- package/vendor/shared/dist/types.d.ts.map +1 -1
- package/vendor/shared/dist/voiceCapture.d.ts +1 -1
- package/vendor/shared/dist/workspaces.d.ts +117 -0
- package/vendor/shared/dist/workspaces.d.ts.map +1 -1
- package/vendor/shared/dist/workspaces.js +50 -1
- package/vendor/shared/src/automations.ts +12 -0
- package/vendor/shared/src/computer.ts +3 -3
- package/vendor/shared/src/constants.ts +3 -10
- package/vendor/shared/src/index.ts +3 -6
- package/vendor/shared/src/messagingSafety.ts +11 -0
- package/vendor/shared/src/schemas/harness.ts +18 -130
- package/vendor/shared/src/smartCapture.ts +27 -0
- package/vendor/shared/src/taskSync.ts +81 -0
- package/vendor/shared/src/types.ts +0 -6
- package/vendor/shared/src/workspaces.ts +56 -1
- package/dist/coding/conduct.d.ts +0 -48
- package/dist/coding/conduct.d.ts.map +0 -1
- package/dist/coding/conduct.js +0 -263
- package/dist/coding/fleetPlan.d.ts +0 -20
- package/dist/coding/fleetPlan.d.ts.map +0 -1
- package/dist/coding/fleetPlan.js +0 -125
- package/dist/coding/fleetTasks.d.ts +0 -33
- package/dist/coding/fleetTasks.d.ts.map +0 -1
- package/dist/coding/fleetTasks.js +0 -75
- package/src/coding/conduct.ts +0 -325
- package/src/coding/fleetPlan.ts +0 -135
- package/src/coding/fleetTasks.ts +0 -109
|
@@ -118,6 +118,8 @@ export declare const CodeRequestSchema: z.ZodObject<{
|
|
|
118
118
|
human: "human";
|
|
119
119
|
}>>;
|
|
120
120
|
stream: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
recoveryOf: z.ZodOptional<z.ZodUUID>;
|
|
122
|
+
recoveryReviewId: z.ZodOptional<z.ZodUUID>;
|
|
121
123
|
kind: z.ZodLiteral<"code">;
|
|
122
124
|
repoId: z.ZodString;
|
|
123
125
|
prompt: z.ZodString;
|
|
@@ -184,75 +186,6 @@ export declare const CloneRepoRequestSchema: z.ZodObject<{
|
|
|
184
186
|
kind: z.ZodLiteral<"clone">;
|
|
185
187
|
url: z.ZodString;
|
|
186
188
|
}, z.core.$strip>;
|
|
187
|
-
export declare const FleetWorkerSchema: z.ZodObject<{
|
|
188
|
-
workerId: z.ZodUUID;
|
|
189
|
-
title: z.ZodString;
|
|
190
|
-
brief: z.ZodString;
|
|
191
|
-
ownedPaths: z.ZodArray<z.ZodString>;
|
|
192
|
-
mergeOrder: z.ZodNumber;
|
|
193
|
-
}, z.core.$strip>;
|
|
194
|
-
export declare const FleetPlanSchema: z.ZodObject<{
|
|
195
|
-
goal: z.ZodString;
|
|
196
|
-
parentTaskId: z.ZodOptional<z.ZodUUID>;
|
|
197
|
-
workers: z.ZodArray<z.ZodObject<{
|
|
198
|
-
workerId: z.ZodUUID;
|
|
199
|
-
title: z.ZodString;
|
|
200
|
-
brief: z.ZodString;
|
|
201
|
-
ownedPaths: z.ZodArray<z.ZodString>;
|
|
202
|
-
mergeOrder: z.ZodNumber;
|
|
203
|
-
}, z.core.$strip>>;
|
|
204
|
-
overlaps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
205
|
-
a: z.ZodUUID;
|
|
206
|
-
b: z.ZodUUID;
|
|
207
|
-
paths: z.ZodArray<z.ZodString>;
|
|
208
|
-
}, z.core.$strip>>>;
|
|
209
|
-
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
210
|
-
}, z.core.$strip>;
|
|
211
|
-
export declare const ConductRequestSchema: z.ZodObject<{
|
|
212
|
-
id: z.ZodUUID;
|
|
213
|
-
senderKind: z.ZodDefault<z.ZodEnum<{
|
|
214
|
-
agent: "agent";
|
|
215
|
-
human: "human";
|
|
216
|
-
}>>;
|
|
217
|
-
stream: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
-
kind: z.ZodLiteral<"conduct">;
|
|
219
|
-
repoId: z.ZodString;
|
|
220
|
-
phase: z.ZodEnum<{
|
|
221
|
-
run: "run";
|
|
222
|
-
plan: "plan";
|
|
223
|
-
setup: "setup";
|
|
224
|
-
integrate: "integrate";
|
|
225
|
-
}>;
|
|
226
|
-
prompt: z.ZodString;
|
|
227
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
228
|
-
mediaType: z.ZodEnum<{
|
|
229
|
-
"image/jpeg": "image/jpeg";
|
|
230
|
-
"image/png": "image/png";
|
|
231
|
-
"image/gif": "image/gif";
|
|
232
|
-
"image/webp": "image/webp";
|
|
233
|
-
}>;
|
|
234
|
-
dataBase64: z.ZodString;
|
|
235
|
-
}, z.core.$strip>>>;
|
|
236
|
-
plan: z.ZodOptional<z.ZodObject<{
|
|
237
|
-
goal: z.ZodString;
|
|
238
|
-
parentTaskId: z.ZodOptional<z.ZodUUID>;
|
|
239
|
-
workers: z.ZodArray<z.ZodObject<{
|
|
240
|
-
workerId: z.ZodUUID;
|
|
241
|
-
title: z.ZodString;
|
|
242
|
-
brief: z.ZodString;
|
|
243
|
-
ownedPaths: z.ZodArray<z.ZodString>;
|
|
244
|
-
mergeOrder: z.ZodNumber;
|
|
245
|
-
}, z.core.$strip>>;
|
|
246
|
-
overlaps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
247
|
-
a: z.ZodUUID;
|
|
248
|
-
b: z.ZodUUID;
|
|
249
|
-
paths: z.ZodArray<z.ZodString>;
|
|
250
|
-
}, z.core.$strip>>>;
|
|
251
|
-
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
252
|
-
}, z.core.$strip>>;
|
|
253
|
-
resume: z.ZodOptional<z.ZodString>;
|
|
254
|
-
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
255
|
-
}, z.core.$strip>;
|
|
256
189
|
export declare const CancelRequestSchema: z.ZodObject<{
|
|
257
190
|
id: z.ZodUUID;
|
|
258
191
|
senderKind: z.ZodDefault<z.ZodEnum<{
|
|
@@ -369,6 +302,7 @@ export declare const IncidentReportRequestSchema: z.ZodObject<{
|
|
|
369
302
|
detail: z.ZodOptional<z.ZodString>;
|
|
370
303
|
requestId: z.ZodOptional<z.ZodString>;
|
|
371
304
|
}, z.core.$strip>>>;
|
|
305
|
+
perf: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
372
306
|
}, z.core.$strip>;
|
|
373
307
|
export declare const VoiceDiagChunkSchema: z.ZodObject<{
|
|
374
308
|
index: z.ZodNumber;
|
|
@@ -711,12 +645,21 @@ export declare const HarnessRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
711
645
|
action: z.ZodEnum<{
|
|
712
646
|
archive: "archive";
|
|
713
647
|
history: "history";
|
|
648
|
+
settings: "settings";
|
|
649
|
+
delete: "delete";
|
|
714
650
|
list: "list";
|
|
651
|
+
setup: "setup";
|
|
715
652
|
create: "create";
|
|
716
653
|
restore: "restore";
|
|
717
654
|
import: "import";
|
|
718
655
|
"clear-history": "clear-history";
|
|
656
|
+
"inspect-run": "inspect-run";
|
|
657
|
+
"continue-run": "continue-run";
|
|
658
|
+
"save-settings": "save-settings";
|
|
719
659
|
}>;
|
|
660
|
+
requestId: z.ZodOptional<z.ZodUUID>;
|
|
661
|
+
reviewId: z.ZodOptional<z.ZodUUID>;
|
|
662
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
720
663
|
repoId: z.ZodOptional<z.ZodString>;
|
|
721
664
|
workerId: z.ZodOptional<z.ZodUUID>;
|
|
722
665
|
checkout: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -724,6 +667,15 @@ export declare const HarnessRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
724
667
|
title: z.ZodOptional<z.ZodString>;
|
|
725
668
|
brief: z.ZodOptional<z.ZodString>;
|
|
726
669
|
before: z.ZodOptional<z.ZodString>;
|
|
670
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
671
|
+
copy: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
672
|
+
setup: z.ZodOptional<z.ZodString>;
|
|
673
|
+
baseRef: z.ZodOptional<z.ZodString>;
|
|
674
|
+
archiveScript: z.ZodOptional<z.ZodString>;
|
|
675
|
+
archiveOnMerge: z.ZodOptional<z.ZodBoolean>;
|
|
676
|
+
deleteBranchOnArchive: z.ZodOptional<z.ZodBoolean>;
|
|
677
|
+
}, z.core.$strip>>;
|
|
678
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
727
679
|
legacy: z.ZodOptional<z.ZodObject<{
|
|
728
680
|
messages: z.ZodArray<z.ZodObject<{
|
|
729
681
|
id: z.ZodString;
|
|
@@ -1102,6 +1054,8 @@ export declare const HarnessRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1102
1054
|
human: "human";
|
|
1103
1055
|
}>>;
|
|
1104
1056
|
stream: z.ZodOptional<z.ZodBoolean>;
|
|
1057
|
+
recoveryOf: z.ZodOptional<z.ZodUUID>;
|
|
1058
|
+
recoveryReviewId: z.ZodOptional<z.ZodUUID>;
|
|
1105
1059
|
kind: z.ZodLiteral<"code">;
|
|
1106
1060
|
repoId: z.ZodString;
|
|
1107
1061
|
prompt: z.ZodString;
|
|
@@ -1134,50 +1088,6 @@ export declare const HarnessRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1134
1088
|
"in-place": "in-place";
|
|
1135
1089
|
}>>;
|
|
1136
1090
|
expectedBranch: z.ZodOptional<z.ZodString>;
|
|
1137
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1138
|
-
id: z.ZodUUID;
|
|
1139
|
-
senderKind: z.ZodDefault<z.ZodEnum<{
|
|
1140
|
-
agent: "agent";
|
|
1141
|
-
human: "human";
|
|
1142
|
-
}>>;
|
|
1143
|
-
stream: z.ZodOptional<z.ZodBoolean>;
|
|
1144
|
-
kind: z.ZodLiteral<"conduct">;
|
|
1145
|
-
repoId: z.ZodString;
|
|
1146
|
-
phase: z.ZodEnum<{
|
|
1147
|
-
run: "run";
|
|
1148
|
-
plan: "plan";
|
|
1149
|
-
setup: "setup";
|
|
1150
|
-
integrate: "integrate";
|
|
1151
|
-
}>;
|
|
1152
|
-
prompt: z.ZodString;
|
|
1153
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1154
|
-
mediaType: z.ZodEnum<{
|
|
1155
|
-
"image/jpeg": "image/jpeg";
|
|
1156
|
-
"image/png": "image/png";
|
|
1157
|
-
"image/gif": "image/gif";
|
|
1158
|
-
"image/webp": "image/webp";
|
|
1159
|
-
}>;
|
|
1160
|
-
dataBase64: z.ZodString;
|
|
1161
|
-
}, z.core.$strip>>>;
|
|
1162
|
-
plan: z.ZodOptional<z.ZodObject<{
|
|
1163
|
-
goal: z.ZodString;
|
|
1164
|
-
parentTaskId: z.ZodOptional<z.ZodUUID>;
|
|
1165
|
-
workers: z.ZodArray<z.ZodObject<{
|
|
1166
|
-
workerId: z.ZodUUID;
|
|
1167
|
-
title: z.ZodString;
|
|
1168
|
-
brief: z.ZodString;
|
|
1169
|
-
ownedPaths: z.ZodArray<z.ZodString>;
|
|
1170
|
-
mergeOrder: z.ZodNumber;
|
|
1171
|
-
}, z.core.$strip>>;
|
|
1172
|
-
overlaps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1173
|
-
a: z.ZodUUID;
|
|
1174
|
-
b: z.ZodUUID;
|
|
1175
|
-
paths: z.ZodArray<z.ZodString>;
|
|
1176
|
-
}, z.core.$strip>>>;
|
|
1177
|
-
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
1178
|
-
}, z.core.$strip>>;
|
|
1179
|
-
resume: z.ZodOptional<z.ZodString>;
|
|
1180
|
-
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
1181
1091
|
}, z.core.$strip>, z.ZodObject<{
|
|
1182
1092
|
id: z.ZodUUID;
|
|
1183
1093
|
senderKind: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1347,6 +1257,7 @@ export declare const HarnessRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1347
1257
|
detail: z.ZodOptional<z.ZodString>;
|
|
1348
1258
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1349
1259
|
}, z.core.$strip>>>;
|
|
1260
|
+
perf: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1350
1261
|
}, z.core.$strip>, z.ZodObject<{
|
|
1351
1262
|
id: z.ZodUUID;
|
|
1352
1263
|
senderKind: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1719,9 +1630,38 @@ export declare const HarnessResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1719
1630
|
baseSha: z.ZodOptional<z.ZodString>;
|
|
1720
1631
|
resume: z.ZodOptional<z.ZodString>;
|
|
1721
1632
|
error: z.ZodOptional<z.ZodString>;
|
|
1633
|
+
setup: z.ZodOptional<z.ZodEnum<{
|
|
1634
|
+
running: "running";
|
|
1635
|
+
failed: "failed";
|
|
1636
|
+
}>>;
|
|
1637
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
1722
1638
|
createdAt: z.ZodString;
|
|
1723
1639
|
updatedAt: z.ZodString;
|
|
1724
1640
|
}, z.core.$strip>>;
|
|
1641
|
+
review: z.ZodOptional<z.ZodObject<{
|
|
1642
|
+
requestId: z.ZodUUID;
|
|
1643
|
+
reviewId: z.ZodUUID;
|
|
1644
|
+
inspectedAt: z.ZodString;
|
|
1645
|
+
prompt: z.ZodString;
|
|
1646
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
1647
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
changes: z.ZodString;
|
|
1649
|
+
diff: z.ZodString;
|
|
1650
|
+
inspectionError: z.ZodOptional<z.ZodString>;
|
|
1651
|
+
progress: z.ZodString;
|
|
1652
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
1653
|
+
evidence: z.ZodString;
|
|
1654
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
1655
|
+
name: z.ZodString;
|
|
1656
|
+
phase: z.ZodString;
|
|
1657
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
1658
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
1659
|
+
}, z.core.$strip>>;
|
|
1660
|
+
unresolved: z.ZodArray<z.ZodString>;
|
|
1661
|
+
continuationId: z.ZodUUID;
|
|
1662
|
+
continuedAt: z.ZodOptional<z.ZodString>;
|
|
1663
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
}, z.core.$strip>>;
|
|
1725
1665
|
checkout: z.ZodOptional<z.ZodObject<{
|
|
1726
1666
|
repoId: z.ZodString;
|
|
1727
1667
|
conversationId: z.ZodString;
|
|
@@ -1754,6 +1694,23 @@ export declare const HarnessResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1754
1694
|
text: z.ZodString;
|
|
1755
1695
|
}, z.core.$loose>>>;
|
|
1756
1696
|
nextBefore: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1698
|
+
copy: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1699
|
+
setup: z.ZodOptional<z.ZodString>;
|
|
1700
|
+
baseRef: z.ZodOptional<z.ZodString>;
|
|
1701
|
+
archiveScript: z.ZodOptional<z.ZodString>;
|
|
1702
|
+
archiveOnMerge: z.ZodOptional<z.ZodBoolean>;
|
|
1703
|
+
deleteBranchOnArchive: z.ZodOptional<z.ZodBoolean>;
|
|
1704
|
+
}, z.core.$strip>>;
|
|
1705
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
1706
|
+
root: z.ZodString;
|
|
1707
|
+
worktrees: z.ZodString;
|
|
1708
|
+
copyMatches: z.ZodArray<z.ZodString>;
|
|
1709
|
+
}, z.core.$strip>>;
|
|
1710
|
+
unmerged: z.ZodOptional<z.ZodObject<{
|
|
1711
|
+
commits: z.ZodNumber;
|
|
1712
|
+
uncommitted: z.ZodBoolean;
|
|
1713
|
+
}, z.core.$strip>>;
|
|
1757
1714
|
}, z.core.$strip>;
|
|
1758
1715
|
}, z.core.$strip>, z.ZodObject<{
|
|
1759
1716
|
requestId: z.ZodUUID;
|
|
@@ -1762,11 +1719,11 @@ export declare const HarnessResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1762
1719
|
captureId: z.ZodUUID;
|
|
1763
1720
|
state: z.ZodEnum<{
|
|
1764
1721
|
failed: "failed";
|
|
1722
|
+
uncertain: "uncertain";
|
|
1765
1723
|
queued: "queued";
|
|
1766
1724
|
done: "done";
|
|
1767
1725
|
transcribing: "transcribing";
|
|
1768
1726
|
acting: "acting";
|
|
1769
|
-
uncertain: "uncertain";
|
|
1770
1727
|
}>;
|
|
1771
1728
|
transcript: z.ZodOptional<z.ZodString>;
|
|
1772
1729
|
result: z.ZodOptional<z.ZodString>;
|
|
@@ -1933,6 +1890,23 @@ export declare const HarnessResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1933
1890
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1934
1891
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1935
1892
|
summary: z.ZodDefault<z.ZodString>;
|
|
1893
|
+
cancelRequested: z.ZodOptional<z.ZodBoolean>;
|
|
1894
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
1895
|
+
version: z.ZodNumber;
|
|
1896
|
+
attempts: z.ZodNumber;
|
|
1897
|
+
possibleAdditionalCost: z.ZodBoolean;
|
|
1898
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
1899
|
+
key: z.ZodString;
|
|
1900
|
+
status: z.ZodEnum<{
|
|
1901
|
+
running: "running";
|
|
1902
|
+
completed: "completed";
|
|
1903
|
+
failed: "failed";
|
|
1904
|
+
uncertain: "uncertain";
|
|
1905
|
+
}>;
|
|
1906
|
+
attempts: z.ZodNumber;
|
|
1907
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1908
|
+
}, z.core.$strip>>;
|
|
1909
|
+
}, z.core.$strip>>;
|
|
1936
1910
|
error: z.ZodOptional<z.ZodString>;
|
|
1937
1911
|
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1938
1912
|
input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2322,6 +2296,8 @@ export declare const HarnessStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2322
2296
|
running: "running";
|
|
2323
2297
|
queued: "queued";
|
|
2324
2298
|
}>;
|
|
2299
|
+
blockedBy: z.ZodOptional<z.ZodUUID>;
|
|
2300
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2325
2301
|
}, z.core.$strip>, z.ZodObject<{
|
|
2326
2302
|
type: z.ZodLiteral<"accepted">;
|
|
2327
2303
|
requestId: z.ZodUUID;
|
|
@@ -2352,6 +2328,8 @@ export declare const HarnessStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2352
2328
|
start: "start";
|
|
2353
2329
|
end: "end";
|
|
2354
2330
|
}>;
|
|
2331
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
2332
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
2355
2333
|
}, z.core.$strip>, z.ZodObject<{
|
|
2356
2334
|
type: z.ZodLiteral<"done">;
|
|
2357
2335
|
requestId: z.ZodUUID;
|
|
@@ -2359,11 +2337,17 @@ export declare const HarnessStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2359
2337
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
2360
2338
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
2361
2339
|
freshStart: z.ZodOptional<z.ZodBoolean>;
|
|
2340
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
2362
2341
|
}, z.core.$strip>, z.ZodObject<{
|
|
2363
2342
|
type: z.ZodLiteral<"code_result">;
|
|
2364
2343
|
requestId: z.ZodUUID;
|
|
2365
2344
|
branch: z.ZodString;
|
|
2366
2345
|
diff: z.ZodString;
|
|
2346
|
+
changes: z.ZodOptional<z.ZodObject<{
|
|
2347
|
+
added: z.ZodNumber;
|
|
2348
|
+
removed: z.ZodNumber;
|
|
2349
|
+
files: z.ZodArray<z.ZodString>;
|
|
2350
|
+
}, z.core.$strip>>;
|
|
2367
2351
|
summary: z.ZodOptional<z.ZodString>;
|
|
2368
2352
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
2369
2353
|
worktree: "worktree";
|
|
@@ -2375,61 +2359,6 @@ export declare const HarnessStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2375
2359
|
type: z.ZodLiteral<"clone_result">;
|
|
2376
2360
|
requestId: z.ZodUUID;
|
|
2377
2361
|
repoId: z.ZodString;
|
|
2378
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2379
|
-
type: z.ZodLiteral<"fleet_plan">;
|
|
2380
|
-
requestId: z.ZodUUID;
|
|
2381
|
-
plan: z.ZodObject<{
|
|
2382
|
-
goal: z.ZodString;
|
|
2383
|
-
parentTaskId: z.ZodOptional<z.ZodUUID>;
|
|
2384
|
-
workers: z.ZodArray<z.ZodObject<{
|
|
2385
|
-
workerId: z.ZodUUID;
|
|
2386
|
-
title: z.ZodString;
|
|
2387
|
-
brief: z.ZodString;
|
|
2388
|
-
ownedPaths: z.ZodArray<z.ZodString>;
|
|
2389
|
-
mergeOrder: z.ZodNumber;
|
|
2390
|
-
}, z.core.$strip>>;
|
|
2391
|
-
overlaps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2392
|
-
a: z.ZodUUID;
|
|
2393
|
-
b: z.ZodUUID;
|
|
2394
|
-
paths: z.ZodArray<z.ZodString>;
|
|
2395
|
-
}, z.core.$strip>>>;
|
|
2396
|
-
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
2397
|
-
}, z.core.$strip>;
|
|
2398
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2399
|
-
type: z.ZodLiteral<"worker_status">;
|
|
2400
|
-
requestId: z.ZodUUID;
|
|
2401
|
-
workerId: z.ZodUUID;
|
|
2402
|
-
status: z.ZodEnum<{
|
|
2403
|
-
blocked: "blocked";
|
|
2404
|
-
failed: "failed";
|
|
2405
|
-
review: "review";
|
|
2406
|
-
queued: "queued";
|
|
2407
|
-
working: "working";
|
|
2408
|
-
merged: "merged";
|
|
2409
|
-
}>;
|
|
2410
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
2411
|
-
diffStat: z.ZodOptional<z.ZodObject<{
|
|
2412
|
-
added: z.ZodNumber;
|
|
2413
|
-
removed: z.ZodNumber;
|
|
2414
|
-
files: z.ZodNumber;
|
|
2415
|
-
}, z.core.$strip>>;
|
|
2416
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2417
|
-
type: z.ZodLiteral<"fleet_conflict">;
|
|
2418
|
-
requestId: z.ZodUUID;
|
|
2419
|
-
workerId: z.ZodUUID;
|
|
2420
|
-
paths: z.ZodArray<z.ZodString>;
|
|
2421
|
-
message: z.ZodString;
|
|
2422
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2423
|
-
type: z.ZodLiteral<"worker_pr">;
|
|
2424
|
-
requestId: z.ZodUUID;
|
|
2425
|
-
workerId: z.ZodUUID;
|
|
2426
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2427
|
-
error: z.ZodOptional<z.ZodString>;
|
|
2428
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2429
|
-
type: z.ZodLiteral<"fleet_done">;
|
|
2430
|
-
requestId: z.ZodUUID;
|
|
2431
|
-
delivered: z.ZodNumber;
|
|
2432
|
-
total: z.ZodNumber;
|
|
2433
2362
|
}, z.core.$strip>, z.ZodObject<{
|
|
2434
2363
|
type: z.ZodLiteral<"error">;
|
|
2435
2364
|
requestId: z.ZodUUID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/schemas/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/schemas/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsDxB,eAAO,MAAM,kBAAkB;;;;;;;;iBAI7B,CAAC;AAKH;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe3B,CAAC;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;iBAEhC,CAAC;AAIH,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAI/B,CAAC;AAKH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4B5B,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;iBAEhC,CAAC;AAKH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;iBAI/B,CAAC;AAIH,eAAO,MAAM,sBAAsB;;;;;;;;;iBAG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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0BhC,CAAC;AAcH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA8FnC,CAAC;AAQH,eAAO,MAAM,oBAAoB;;;;;;;;iBAK/B,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { AutomationCommandSchema, AutomationSnapshotSchema, } from '../automatio
|
|
|
6
6
|
import { DayPlanningContextSchema } from '../dayPlanning.js';
|
|
7
7
|
import { ProjectPlanningContextSchema } from '../projectCapture.js';
|
|
8
8
|
import { validatedCardSegments } from '../cardStatement.js';
|
|
9
|
-
import { SENDER_KINDS, APPROVAL_DECISIONS, WORKSPACE_MODES,
|
|
9
|
+
import { SENDER_KINDS, APPROVAL_DECISIONS, WORKSPACE_MODES, EFFORT_LEVELS, DELIVERY_CHANNELS, AGENT_MODES, } from '../constants.js';
|
|
10
10
|
/**
|
|
11
11
|
* The Lucid harness wire contract (M6). One shape that every transport speaks:
|
|
12
12
|
* phone → hosted room → local daemon (free) or hosted executor (Pro). The room
|
|
@@ -81,6 +81,8 @@ export const JournalRequestSchema = HarnessRequestBase.extend({
|
|
|
81
81
|
// server-side through the daemon's allowlist to an absolute path — the phone
|
|
82
82
|
// never sends a filesystem path.
|
|
83
83
|
export const CodeRequestSchema = HarnessRequestBase.extend({
|
|
84
|
+
recoveryOf: z.uuidv7().optional(),
|
|
85
|
+
recoveryReviewId: z.uuidv7().optional(),
|
|
84
86
|
kind: z.literal('code'),
|
|
85
87
|
repoId: z.string().min(1),
|
|
86
88
|
prompt: z.string().min(1).max(8000),
|
|
@@ -94,10 +96,8 @@ export const CodeRequestSchema = HarnessRequestBase.extend({
|
|
|
94
96
|
handoff: ProviderHandoffSchema.optional(),
|
|
95
97
|
queue: z.boolean().optional(),
|
|
96
98
|
afterRequestId: z.uuidv7().optional(),
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* isolated `fleet/<repoId>/<workerId>` worktree, on its own lane. Absent → the bare repo
|
|
100
|
-
* session, exactly as before. */
|
|
99
|
+
/** The worktree this turn belongs to. The daemon runs it in that worktree's own folder and
|
|
100
|
+
* branch, on its own lane. Absent → the repository's main session. */
|
|
101
101
|
workerId: z.uuidv7().optional(),
|
|
102
102
|
/** Where to do the work (#121). Absent → 'worktree', so a daemon on this schema
|
|
103
103
|
* still understands a phone that predates the mode picker. The daemon rejects
|
|
@@ -127,66 +127,6 @@ export const CloneRepoRequestSchema = HarnessRequestBase.extend({
|
|
|
127
127
|
kind: z.literal('clone'),
|
|
128
128
|
url: z.string().min(1).max(2000),
|
|
129
129
|
});
|
|
130
|
-
// ---- Conductor (a fleet of coding agents) ---------------------------------
|
|
131
|
-
// One worker in a fan-out plan — a single coding lane. Its `workerId` is the fleet
|
|
132
|
-
// subtask's uuid AND the stream id its code frames arrive under (both uuidv7), so a
|
|
133
|
-
// worker reuses the whole existing code-turn pipeline: the phone routes any frame whose
|
|
134
|
-
// `requestId` equals a known `workerId` into that worker's lane. `ownedPaths` is the
|
|
135
|
-
// files/globs this worker may touch (the ownership map that prevents two lanes colliding);
|
|
136
|
-
// `mergeOrder` (lower first) mirrors the subtask's priority and decides integration order.
|
|
137
|
-
export const FleetWorkerSchema = z.object({
|
|
138
|
-
workerId: z.uuidv7(),
|
|
139
|
-
title: z.string().min(1).max(200),
|
|
140
|
-
brief: z.string().min(1).max(8000),
|
|
141
|
-
ownedPaths: z.array(z.string().max(400)).max(200),
|
|
142
|
-
mergeOrder: z.number().int(),
|
|
143
|
-
});
|
|
144
|
-
// The lead's decomposition of a goal — what the phone renders as the Fan-out card, and
|
|
145
|
-
// what it sends back (possibly edited) to execute. `overlaps` are the ⚠ pairs whose owned
|
|
146
|
-
// paths intersect, so the card can warn and the runner can force those two to serialize.
|
|
147
|
-
export const FleetPlanSchema = z.object({
|
|
148
|
-
goal: z.string().min(1).max(500),
|
|
149
|
-
/** The parent Lucidity task (the goal); each worker is a subtask of it. Set once the
|
|
150
|
-
* daemon has created the task graph (dogfood); absent on a freshly-proposed plan. */
|
|
151
|
-
parentTaskId: z.uuidv7().optional(),
|
|
152
|
-
workers: z.array(FleetWorkerSchema).min(1).max(16),
|
|
153
|
-
overlaps: z
|
|
154
|
-
.array(z.object({
|
|
155
|
-
a: z.uuidv7(),
|
|
156
|
-
b: z.uuidv7(),
|
|
157
|
-
paths: z.array(z.string().max(400)).max(200),
|
|
158
|
-
}))
|
|
159
|
-
.max(120) // at most C(16,2) pairs for the 16-worker ceiling
|
|
160
|
-
.optional(),
|
|
161
|
-
/** How many workers may run at once (quota guard). Absent → the daemon's default cap. */
|
|
162
|
-
maxParallel: z.number().int().positive().max(16).optional(),
|
|
163
|
-
});
|
|
164
|
-
// Phone → daemon. Four phases over one request kind:
|
|
165
|
-
// - `plan`: decompose `prompt` (the goal) → one `fleet_plan` event. Nothing runs or is created,
|
|
166
|
-
// so the user edits or discards freely.
|
|
167
|
-
// - `setup`: materialize an approved plan for the DESIGN-FIRST flow — create the task graph and
|
|
168
|
-
// announce the workers (`worker_status: queued`), but write NO code. The user then chats each
|
|
169
|
-
// worker via a `code` turn carrying its `workerId`, and merges with `integrate` when ready.
|
|
170
|
-
// - `run`: the AUTO flow — create the graph, dispatch every worker to code in merge order, then
|
|
171
|
-
// integrate. One-tap "fan out & run".
|
|
172
|
-
// - `integrate`: merge the plan's worker branches onto lucid/<repo> in order → `worker_status`
|
|
173
|
-
// (merged) / `fleet_conflict` / `fleet_done`. Used by the design-first flow's "Merge fleet".
|
|
174
|
-
// Splitting plan from the rest keeps fan-out a one-tap opt-in: no worker spawns until the phone
|
|
175
|
-
// sends `setup`/`run` with a plan the user accepted.
|
|
176
|
-
export const ConductRequestSchema = HarnessRequestBase.extend({
|
|
177
|
-
kind: z.literal('conduct'),
|
|
178
|
-
repoId: z.string().min(1),
|
|
179
|
-
phase: z.enum(['plan', 'run', 'setup', 'integrate']),
|
|
180
|
-
prompt: z.string().min(1).max(8000),
|
|
181
|
-
images: harnessImagesField,
|
|
182
|
-
/** The approved plan to execute — required on `run`, ignored on `plan`. */
|
|
183
|
-
plan: FleetPlanSchema.optional(),
|
|
184
|
-
/** Conductor (lead) session id to continue its planning conversation across turns. */
|
|
185
|
-
resume: z.string().optional(),
|
|
186
|
-
/** Skip the dogfood task graph (no parent/subtask on the board). Set for quick incremental
|
|
187
|
-
* spawns so the board isn't spammed with a parent per task; the fleet UI tracks them anyway. */
|
|
188
|
-
ephemeral: z.boolean().optional(),
|
|
189
|
-
});
|
|
190
130
|
// Stop an in-flight request (the phone's stop button). `targetId` is the original
|
|
191
131
|
// request's `id`; the daemon aborts its executor run and replies with a
|
|
192
132
|
// `cancelled` stream event correlated to that same id.
|
|
@@ -279,6 +219,8 @@ export const IncidentReportRequestSchema = HarnessRequestBase.extend({
|
|
|
279
219
|
snapshot: IncidentSnapshotSchema.optional(),
|
|
280
220
|
/** The tail of the phone's diag ring — feeds SUSPEND_GAP and enriches the timeline. */
|
|
281
221
|
diag: z.array(IncidentDiagEventSchema).max(400).optional(),
|
|
222
|
+
/** The phone's stutter-meter reading (frame times, redraw counts, time in history work). */
|
|
223
|
+
perf: z.record(z.string(), z.unknown()).optional(),
|
|
282
224
|
});
|
|
283
225
|
// ---- Voice diagnostics (Kokoro TTS drop/pause capture) --------------------
|
|
284
226
|
// One sentence's trip through the pipeline: the text that was synthesized and how the synth went.
|
|
@@ -480,7 +422,6 @@ export const HarnessRequestSchema = z.discriminatedUnion('kind', [
|
|
|
480
422
|
BriefingRequestSchema,
|
|
481
423
|
JournalRequestSchema,
|
|
482
424
|
CodeRequestSchema,
|
|
483
|
-
ConductRequestSchema,
|
|
484
425
|
RepoListRequestSchema,
|
|
485
426
|
ListPrsRequestSchema,
|
|
486
427
|
CloneRepoRequestSchema,
|
|
@@ -748,6 +689,8 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
748
689
|
type: z.literal('queue_state'),
|
|
749
690
|
requestId: z.uuidv7(),
|
|
750
691
|
state: z.enum(['queued', 'running']),
|
|
692
|
+
blockedBy: z.uuidv7().optional(),
|
|
693
|
+
message: z.string().optional(),
|
|
751
694
|
}),
|
|
752
695
|
z.object({
|
|
753
696
|
// Durable receipt written before execution; recovery only pulls saved output.
|
|
@@ -775,6 +718,8 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
775
718
|
requestId: z.uuidv7(),
|
|
776
719
|
name: z.string(),
|
|
777
720
|
phase: z.enum(['start', 'end']),
|
|
721
|
+
itemId: z.string().optional(),
|
|
722
|
+
outcome: z.string().optional(),
|
|
778
723
|
}),
|
|
779
724
|
z.object({
|
|
780
725
|
type: z.literal('done'),
|
|
@@ -787,6 +732,7 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
787
732
|
// has no memory of earlier turns — the phone surfaces/counts this so a silent
|
|
788
733
|
// conversation reset is never invisible again (the root cause behind the #107 wipe).
|
|
789
734
|
freshStart: z.boolean().optional(),
|
|
735
|
+
recovered: z.boolean().optional(),
|
|
790
736
|
}),
|
|
791
737
|
z.object({
|
|
792
738
|
// The result of a `code` turn (M7): the diff the turn produced, ready for the
|
|
@@ -797,6 +743,13 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
797
743
|
requestId: z.uuidv7(),
|
|
798
744
|
branch: z.string(),
|
|
799
745
|
diff: z.string(),
|
|
746
|
+
/** What the turn changed in tracked files: line counts and paths. The phone shows this in
|
|
747
|
+
* place of a diff. Absent when nothing changed or the count could not be taken. */
|
|
748
|
+
changes: z.object({
|
|
749
|
+
added: z.number().int().nonnegative(),
|
|
750
|
+
removed: z.number().int().nonnegative(),
|
|
751
|
+
files: z.array(z.string()).max(40),
|
|
752
|
+
}).optional(),
|
|
800
753
|
summary: z.string().optional(),
|
|
801
754
|
mode: z.enum(WORKSPACE_MODES).optional(),
|
|
802
755
|
// In-place only: the branch the phone expected this turn to land on, echoed back ONLY
|
|
@@ -813,64 +766,6 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
813
766
|
requestId: z.uuidv7(),
|
|
814
767
|
repoId: z.string(),
|
|
815
768
|
}),
|
|
816
|
-
// ---- Conductor fleet events (stream under the CONDUCT turn's requestId) ----
|
|
817
|
-
z.object({
|
|
818
|
-
// The lead's decomposition, produced by a `conduct` `plan` turn — the phone renders it
|
|
819
|
-
// as the Fan-out card. Nothing has run or been created yet; the user edits/accepts, then
|
|
820
|
-
// sends `conduct` `run` with this (possibly edited) plan.
|
|
821
|
-
type: z.literal('fleet_plan'),
|
|
822
|
-
requestId: z.uuidv7(),
|
|
823
|
-
plan: FleetPlanSchema,
|
|
824
|
-
}),
|
|
825
|
-
z.object({
|
|
826
|
-
// A worker crossed into a new lifecycle state. The phone updates that lane's card on the
|
|
827
|
-
// Fleet board. The worker's own delta/tool_call/code_result/done frames arrive separately,
|
|
828
|
-
// UNDER `requestId === workerId`, so they flow through the existing code-turn rendering.
|
|
829
|
-
type: z.literal('worker_status'),
|
|
830
|
-
requestId: z.uuidv7(),
|
|
831
|
-
workerId: z.uuidv7(),
|
|
832
|
-
status: z.enum(WORKER_STATUSES),
|
|
833
|
-
/** A short live line for the card ("editing serialTts.ts"). Optional. */
|
|
834
|
-
detail: z.string().optional(),
|
|
835
|
-
/** This worker's diff size once it has one, for the card's "+N −M". Optional. */
|
|
836
|
-
diffStat: z
|
|
837
|
-
.object({
|
|
838
|
-
added: z.number().int(),
|
|
839
|
-
removed: z.number().int(),
|
|
840
|
-
files: z.number().int(),
|
|
841
|
-
})
|
|
842
|
-
.optional(),
|
|
843
|
-
}),
|
|
844
|
-
z.object({
|
|
845
|
-
// Integration hit a conflict merging a worker onto the fleet branch. Surfaced in the
|
|
846
|
-
// conductor feed (never silently) so the user can hand it back to a worker as a fresh turn.
|
|
847
|
-
// (Legacy combined-integrate path; per-feature delivery opens independent PRs and never
|
|
848
|
-
// merges workers together, so this doesn't fire there.)
|
|
849
|
-
type: z.literal('fleet_conflict'),
|
|
850
|
-
requestId: z.uuidv7(),
|
|
851
|
-
workerId: z.uuidv7(),
|
|
852
|
-
paths: z.array(z.string()),
|
|
853
|
-
message: z.string(),
|
|
854
|
-
}),
|
|
855
|
-
z.object({
|
|
856
|
-
// One worker was delivered as its OWN pull request (per-feature delivery): its branch was
|
|
857
|
-
// pushed and a PR opened against the base. `url` is that worker's PR; `error` a short reason
|
|
858
|
-
// it couldn't open (no remote / no gh / no auth) — the worker's commits still exist on its
|
|
859
|
-
// branch. One of these fires per delivered worker.
|
|
860
|
-
type: z.literal('worker_pr'),
|
|
861
|
-
requestId: z.uuidv7(),
|
|
862
|
-
workerId: z.uuidv7(),
|
|
863
|
-
url: z.string().optional(),
|
|
864
|
-
error: z.string().optional(),
|
|
865
|
-
}),
|
|
866
|
-
z.object({
|
|
867
|
-
// The fan-out finished. Per-feature delivery: `delivered`/`total` count how many workers got
|
|
868
|
-
// their own PR (each worker's URL arrives in its `worker_pr`). No single integration branch.
|
|
869
|
-
type: z.literal('fleet_done'),
|
|
870
|
-
requestId: z.uuidv7(),
|
|
871
|
-
delivered: z.number().int(),
|
|
872
|
-
total: z.number().int(),
|
|
873
|
-
}),
|
|
874
769
|
z.object({
|
|
875
770
|
type: z.literal('error'),
|
|
876
771
|
requestId: z.uuidv7(),
|
|
@@ -57,4 +57,28 @@ export type SmartCaptureReview = {
|
|
|
57
57
|
message?: string;
|
|
58
58
|
pollAfterMs?: number | null;
|
|
59
59
|
};
|
|
60
|
+
/** Bump when the disclosure below changes in a way people should agree to again. */
|
|
61
|
+
export declare const AI_CONSENT_VERSION = "2026-10-12";
|
|
62
|
+
/**
|
|
63
|
+
* The one wording of what is sent and to whom, shown before anything is transmitted.
|
|
64
|
+
* It names the recipients on purpose: that is the point of asking.
|
|
65
|
+
*/
|
|
66
|
+
export declare const AI_CONSENT_DISCLOSURE: {
|
|
67
|
+
readonly title: "Allow AI features?";
|
|
68
|
+
readonly body: "Lucidity can suggest a project and date for a new task, spot a duplicate, and carry out the quick actions you speak or type. To do that it sends the task or instruction text, your project and milestone names, and the titles, dates and status of related tasks to Vercel’s AI Gateway and TypeSafe’s Jev model. Lucidity keeps what you asked for 14 days to improve quick actions. Notes, journal entries and audio are never sent. You can turn this off at any time in Settings.";
|
|
69
|
+
readonly allow: "Allow";
|
|
70
|
+
readonly decline: "Not now";
|
|
71
|
+
};
|
|
72
|
+
export declare const AiConsentInputSchema: z.ZodObject<{
|
|
73
|
+
granted: z.ZodBoolean;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
export type AiConsent = {
|
|
76
|
+
/** The account has AI features to turn on. Nobody else is asked. */
|
|
77
|
+
available: boolean;
|
|
78
|
+
/** null until the person has answered. */
|
|
79
|
+
granted: boolean | null;
|
|
80
|
+
decidedAt: string | null;
|
|
81
|
+
};
|
|
82
|
+
/** The `code` on a 403 from an AI route when the only thing missing is consent. */
|
|
83
|
+
export declare const AI_CONSENT_REQUIRED = "ai_consent_required";
|
|
60
84
|
//# sourceMappingURL=smartCapture.d.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