@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
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ on your machine for scheduled briefings and interactive chat.
|
|
|
9
9
|
Requires Node.js 22 or newer.
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm install -g @opencorelabs/lucidity@0.
|
|
12
|
+
npm install -g @opencorelabs/lucidity@0.9.5
|
|
13
13
|
lucidity setup
|
|
14
14
|
```
|
|
15
15
|
|
|
@@ -123,7 +123,7 @@ npm run verify:npm -- --local
|
|
|
123
123
|
This builds the agent and its workspace dependencies, vendors the internal
|
|
124
124
|
libraries as local file dependencies with a private Zod 3 copy for MCP, writes the publishable archive to `dist/npm/`, and verifies the CLI
|
|
125
125
|
and MCP server from isolated global and local installations. Publish that
|
|
126
|
-
archive with `npm publish dist/npm/opencorelabs-lucidity-0.
|
|
126
|
+
archive with `npm publish dist/npm/opencorelabs-lucidity-0.9.5.tgz --access public`.
|
|
127
127
|
The private workspace packages do not need separate npm publications.
|
|
128
128
|
|
|
129
129
|
Set `LUCIDITY_NPM_VERIFY_CACHE` to an absolute directory to reuse package downloads between verification runs. Each run still installs into a fresh temporary prefix, refreshes registry metadata and checks package integrity. The cache must be outside that temporary installation and is retained after verification. Without this variable, each run uses its own disposable cache.
|
|
Binary file
|
|
@@ -3,6 +3,7 @@ import { AutomationStore } from './store.js';
|
|
|
3
3
|
export declare function nextOccurrence(schedule: AutomationSchedule, after: Date): string | null;
|
|
4
4
|
export interface AutomationServiceDeps {
|
|
5
5
|
store: AutomationStore;
|
|
6
|
+
resumable?: (job: AutomationJob) => boolean;
|
|
6
7
|
execute: (job: AutomationJob, run: AutomationRun, signal: AbortSignal) => Promise<Partial<AutomationRun>>;
|
|
7
8
|
validateRepo: (id: string) => void;
|
|
8
9
|
saveGuidance: (run: AutomationRun) => Promise<string | void>;
|
|
@@ -37,6 +38,9 @@ export declare class AutomationService {
|
|
|
37
38
|
command(raw: AutomationCommand | unknown): Promise<AutomationSnapshot>;
|
|
38
39
|
tick(): void;
|
|
39
40
|
private launch;
|
|
41
|
+
private hasAccepted;
|
|
42
|
+
private resumeAccepted;
|
|
43
|
+
private executeAccepted;
|
|
40
44
|
private finish;
|
|
41
45
|
}
|
|
42
46
|
//# sourceMappingURL=service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/automations/service.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/automations/service.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,IAAI,GACV,MAAM,GAAG,IAAI,CAkBf;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,OAAO,CAAC;IAC5C,OAAO,EAAE,CACP,GAAG,EAAE,aAAa,EAClB,GAAG,EAAE,aAAa,EAClB,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;IACrC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;IAChE,WAAW,EAAE,MAAM,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACrD,aAAa,EAAE,MAAM,OAAO,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,kGAAkG;AAClG,qBAAa,iBAAiB;IAOhB,OAAO,CAAC,QAAQ,CAAC,IAAI;IANjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAGnB;IACJ,OAAO,CAAC,KAAK,CAAC,CAAiC;IAC/C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAa;gBACJ,IAAI,EAAE,qBAAqB;IAYxD,eAAe,CACb,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,UAAO;IAmBhB,KAAK;IAaC,IAAI;IAOV,QAAQ,CACN,OAAO,GAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KACX,GACL,kBAAkB;IA+CrB,OAAO,CAAC,GAAG;IAKX,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,UAAU;IAMZ,OAAO,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAsM5E,IAAI;IAuDJ,OAAO,CAAC,MAAM;IA6Bd,OAAO,CAAC,WAAW;IAGnB,OAAO,CAAC,cAAc;IAetB,OAAO,CAAC,eAAe;IA4BvB,OAAO,CAAC,MAAM;CAYf"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Cron } from 'croner';
|
|
2
2
|
import { uuidv7 } from 'uuidv7';
|
|
3
3
|
import { AutomationCommandSchema, isDesignerInput, } from '@lucidity/shared';
|
|
4
|
+
import { WorkflowInterrupted } from './workflow.js';
|
|
4
5
|
export function nextOccurrence(schedule, after) {
|
|
5
6
|
if (schedule.frequency === 'manual')
|
|
6
7
|
return null;
|
|
@@ -32,6 +33,8 @@ export class AutomationService {
|
|
|
32
33
|
this.deps = deps;
|
|
33
34
|
this.now = deps.now ?? (() => new Date());
|
|
34
35
|
for (const run of deps.store.runs()) {
|
|
36
|
+
if (run.status === 'running' && run.workflow)
|
|
37
|
+
continue;
|
|
35
38
|
if (run.status === 'running')
|
|
36
39
|
this.finish(run, {
|
|
37
40
|
status: 'interrupted',
|
|
@@ -132,7 +135,7 @@ export class AutomationService {
|
|
|
132
135
|
this.deps.changed?.();
|
|
133
136
|
}
|
|
134
137
|
assertIdle(jobId) {
|
|
135
|
-
if (this.active.has(jobId))
|
|
138
|
+
if (this.active.has(jobId) || this.deps.store.runs().some((run) => run.jobId === jobId && run.status === 'running'))
|
|
136
139
|
throw new Error('This automation already has a running job. Open it or cancel it before starting another.');
|
|
137
140
|
}
|
|
138
141
|
async command(raw) {
|
|
@@ -209,9 +212,13 @@ export class AutomationService {
|
|
|
209
212
|
else if (command.action === 'cancel') {
|
|
210
213
|
const run = this.deps.store.run(command.runId);
|
|
211
214
|
const active = this.active.get(run.jobId);
|
|
212
|
-
if (
|
|
215
|
+
if (run.status !== 'running')
|
|
213
216
|
throw new Error('This run has already ended');
|
|
214
|
-
|
|
217
|
+
this.deps.store.saveRun({ ...run, cancelRequested: true });
|
|
218
|
+
if (active?.runId === run.id)
|
|
219
|
+
active.controller.abort();
|
|
220
|
+
else
|
|
221
|
+
this.finish(run, { status: 'cancelled', cancelRequested: true });
|
|
215
222
|
message =
|
|
216
223
|
'Cancellation requested. Completed external edits remain available for review.';
|
|
217
224
|
}
|
|
@@ -295,6 +302,7 @@ export class AutomationService {
|
|
|
295
302
|
}
|
|
296
303
|
tick() {
|
|
297
304
|
const now = this.now();
|
|
305
|
+
this.resumeAccepted(now);
|
|
298
306
|
for (const job of this.deps.store.jobs()) {
|
|
299
307
|
if (!this.deps.scheduledWork() && job.id !== 'builtin:prune')
|
|
300
308
|
continue;
|
|
@@ -309,15 +317,15 @@ export class AutomationService {
|
|
|
309
317
|
if (new Date(job.nextRunAt) > now)
|
|
310
318
|
continue;
|
|
311
319
|
const late = now.getTime() - Date.parse(job.nextRunAt) > 90_000;
|
|
312
|
-
//
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
if (this.
|
|
320
|
+
// The occurrence and its run are admitted in the same transaction.
|
|
321
|
+
const claim = { occurrence: job.nextRunAt, job: {
|
|
322
|
+
...job,
|
|
323
|
+
pausedUntil: undefined,
|
|
324
|
+
nextRunAt: nextOccurrence(job.schedule, now),
|
|
325
|
+
} };
|
|
326
|
+
if (this.hasAccepted(job.id) || (late && job.catchUp === 'skip')) {
|
|
319
327
|
const at = now.toISOString();
|
|
320
|
-
this.deps.store.
|
|
328
|
+
this.deps.store.admit({
|
|
321
329
|
id: uuidv7(),
|
|
322
330
|
jobId: job.id,
|
|
323
331
|
jobName: job.name,
|
|
@@ -330,22 +338,22 @@ export class AutomationService {
|
|
|
330
338
|
status: 'skipped',
|
|
331
339
|
startedAt: at,
|
|
332
340
|
finishedAt: at,
|
|
333
|
-
summary: this.
|
|
341
|
+
summary: this.hasAccepted(job.id)
|
|
334
342
|
? 'Previous run is still active.'
|
|
335
343
|
: 'Scheduled time was missed while the computer was unavailable. Catch-up is disabled.',
|
|
336
344
|
directions: [],
|
|
337
345
|
feedback: [],
|
|
338
|
-
});
|
|
346
|
+
}, claim);
|
|
339
347
|
}
|
|
340
348
|
else
|
|
341
349
|
this.launch(job, job.kind === 'builtin'
|
|
342
350
|
? 'builtin'
|
|
343
351
|
: job.kind === 'agent'
|
|
344
352
|
? 'agent'
|
|
345
|
-
: 'design', late ? 'catch-up' : 'scheduled');
|
|
353
|
+
: 'design', late ? 'catch-up' : 'scheduled', undefined, claim);
|
|
346
354
|
}
|
|
347
355
|
}
|
|
348
|
-
launch(job, stage, trigger, parent) {
|
|
356
|
+
launch(job, stage, trigger, parent, claim) {
|
|
349
357
|
this.assertIdle(job.id);
|
|
350
358
|
const run = {
|
|
351
359
|
id: uuidv7(),
|
|
@@ -356,26 +364,57 @@ export class AutomationService {
|
|
|
356
364
|
status: 'running',
|
|
357
365
|
startedAt: this.now().toISOString(),
|
|
358
366
|
summary: 'Starting…',
|
|
367
|
+
...(this.deps.resumable?.(job) ? { workflow: { version: 1, attempts: 1, possibleAdditionalCost: false, steps: [] } } : {}),
|
|
359
368
|
input: job.input,
|
|
360
369
|
parentRunId: parent?.id,
|
|
361
370
|
feedback: parent?.feedback ?? [],
|
|
362
371
|
directions: stage === 'implementation' ? (parent?.directions ?? []) : [],
|
|
363
372
|
selectedDirectionId: stage === 'implementation' ? parent?.selectedDirectionId : undefined,
|
|
364
373
|
};
|
|
365
|
-
this.deps.store.
|
|
374
|
+
if (!this.deps.store.admit(run, claim))
|
|
375
|
+
return run.id;
|
|
376
|
+
this.executeAccepted(job, run);
|
|
377
|
+
return run.id;
|
|
378
|
+
}
|
|
379
|
+
hasAccepted(jobId) {
|
|
380
|
+
return this.active.has(jobId) || this.deps.store.runs().some((run) => run.jobId === jobId && run.status === 'running');
|
|
381
|
+
}
|
|
382
|
+
resumeAccepted(now) {
|
|
383
|
+
for (const run of this.deps.store.runs()) {
|
|
384
|
+
if (run.status !== 'running' || this.active.has(run.jobId))
|
|
385
|
+
continue;
|
|
386
|
+
const job = this.deps.store.jobs().find((job) => job.id === run.jobId);
|
|
387
|
+
if (run.cancelRequested) {
|
|
388
|
+
this.finish(run, { status: 'cancelled' });
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
if (!job || !this.deps.resumable?.(job) || run.workflow?.version !== 1) {
|
|
392
|
+
this.finish(run, { status: 'interrupted', error: 'This saved workflow cannot resume with the installed version.' });
|
|
393
|
+
continue;
|
|
394
|
+
}
|
|
395
|
+
if (!this.deps.scheduledWork() || !job.enabled || (job.pausedUntil && new Date(job.pausedUntil) > now))
|
|
396
|
+
continue;
|
|
397
|
+
const resumed = { ...run, workflow: { ...run.workflow, attempts: run.workflow.attempts + 1 } };
|
|
398
|
+
this.deps.store.saveRun(resumed);
|
|
399
|
+
this.executeAccepted(job, resumed);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
executeAccepted(job, run) {
|
|
366
403
|
const controller = new AbortController();
|
|
367
404
|
// Microtask admission makes the active marker visible before any executor can finish.
|
|
368
405
|
const done = Promise.resolve()
|
|
369
406
|
.then(async () => {
|
|
370
407
|
try {
|
|
371
408
|
const result = await this.deps.execute(job, run, controller.signal);
|
|
372
|
-
this.
|
|
373
|
-
|
|
374
|
-
|
|
409
|
+
if (controller.signal.aborted && run.workflow && !this.deps.store.run(run.id).cancelRequested)
|
|
410
|
+
return;
|
|
411
|
+
this.finish(run, controller.signal.aborted ? { ...result, status: 'cancelled' } : result);
|
|
375
412
|
}
|
|
376
413
|
catch (error) {
|
|
414
|
+
if (controller.signal.aborted && run.workflow && !this.deps.store.run(run.id).cancelRequested)
|
|
415
|
+
return;
|
|
377
416
|
this.finish(run, {
|
|
378
|
-
status: controller.signal.aborted ? 'cancelled' : 'failed',
|
|
417
|
+
status: controller.signal.aborted ? 'cancelled' : error instanceof WorkflowInterrupted ? 'interrupted' : 'failed',
|
|
379
418
|
error: error instanceof Error ? error.message : String(error),
|
|
380
419
|
});
|
|
381
420
|
}
|
|
@@ -389,12 +428,11 @@ export class AutomationService {
|
|
|
389
428
|
});
|
|
390
429
|
this.active.set(job.id, { runId: run.id, controller, done });
|
|
391
430
|
this.deps.changed?.();
|
|
392
|
-
return run.id;
|
|
393
431
|
}
|
|
394
432
|
finish(run, patch) {
|
|
395
433
|
const finishedAt = this.now().toISOString();
|
|
396
434
|
this.deps.store.saveRun({
|
|
397
|
-
...run,
|
|
435
|
+
...this.deps.store.run(run.id),
|
|
398
436
|
status: 'completed',
|
|
399
437
|
...patch,
|
|
400
438
|
id: run.id,
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { type AutomationJob, type AutomationRun } from '@lucidity/shared';
|
|
2
|
-
|
|
2
|
+
import { RuntimeStore } from '../runtimeStore.js';
|
|
3
|
+
/** The daemon owns admission and execution. Legacy JSON remains untouched after import. */
|
|
3
4
|
export declare class AutomationStore {
|
|
4
5
|
readonly directory: string;
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
readonly runtime: RuntimeStore;
|
|
7
|
+
constructor(directory: string, runtime?: RuntimeStore);
|
|
7
8
|
jobs(): AutomationJob[];
|
|
8
9
|
saveJob(job: AutomationJob): void;
|
|
9
10
|
run(id: string): AutomationRun;
|
|
10
11
|
saveRun(run: AutomationRun): void;
|
|
11
12
|
runs(): AutomationRun[];
|
|
13
|
+
/** Advancing a schedule and accepting its one run commit together, including skipped occurrences. */
|
|
14
|
+
admit(run: AutomationRun, claim?: {
|
|
15
|
+
job: AutomationJob;
|
|
16
|
+
occurrence: string;
|
|
17
|
+
}): boolean;
|
|
12
18
|
}
|
|
13
19
|
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/automations/store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/automations/store.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,aAAa,EAAE,KAAK,aAAa,EACvC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,2FAA2F;AAC3F,qBAAa,eAAe;IAEd,QAAQ,CAAC,SAAS,EAAE,MAAM;IADtC,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;gBACV,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;IAe9D,IAAI,IAAI,aAAa,EAAE;IACvB,OAAO,CAAC,GAAG,EAAE,aAAa;IAC1B,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa;IAM9B,OAAO,CAAC,GAAG,EAAE,aAAa;IAC1B,IAAI,IAAI,aAAa,EAAE;IAGvB,qGAAqG;IACrG,KAAK,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,CAAC,EAAE;QAAE,GAAG,EAAE,aAAa,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO;CAcvF"}
|
|
@@ -1,46 +1,59 @@
|
|
|
1
|
-
import { existsSync, mkdirSync, readFileSync, readdirSync
|
|
1
|
+
import { existsSync, mkdirSync, readFileSync, readdirSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { AutomationJobSchema, AutomationRunSchema, } from '@lucidity/shared';
|
|
4
|
-
|
|
4
|
+
import { RuntimeStore } from '../runtimeStore.js';
|
|
5
|
+
/** The daemon owns admission and execution. Legacy JSON remains untouched after import. */
|
|
5
6
|
export class AutomationStore {
|
|
6
7
|
directory;
|
|
7
|
-
|
|
8
|
+
runtime;
|
|
9
|
+
constructor(directory, runtime) {
|
|
8
10
|
this.directory = directory;
|
|
9
11
|
mkdirSync(join(directory, 'runs'), { recursive: true, mode: 0o700 });
|
|
12
|
+
this.runtime = runtime ?? new RuntimeStore(join(directory, 'automations.sqlite'));
|
|
13
|
+
if (!this.runtime.get('automation-migrations', directory)) {
|
|
14
|
+
const path = join(directory, 'jobs.json');
|
|
15
|
+
const jobs = existsSync(path) ? AutomationJobSchema.array().parse(JSON.parse(readFileSync(path, 'utf8'))) : [];
|
|
16
|
+
const runs = readdirSync(join(directory, 'runs')).filter((name) => name.endsWith('.json')).map((name) => AutomationRunSchema.parse(JSON.parse(readFileSync(join(directory, 'runs', name), 'utf8'))));
|
|
17
|
+
this.runtime.transaction(() => {
|
|
18
|
+
for (const job of jobs)
|
|
19
|
+
if (!this.runtime.get('automation-jobs', job.id))
|
|
20
|
+
this.saveJob(job);
|
|
21
|
+
for (const run of runs)
|
|
22
|
+
if (!this.runtime.get('automation-runs', run.id))
|
|
23
|
+
this.saveRun(run);
|
|
24
|
+
this.runtime.set('automation-migrations', directory, true);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
10
27
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
writeFileSync(temporary, JSON.stringify(value, null, 2), { mode: 0o600 });
|
|
14
|
-
renameSync(temporary, path);
|
|
15
|
-
}
|
|
16
|
-
jobs() {
|
|
17
|
-
const path = join(this.directory, 'jobs.json');
|
|
18
|
-
if (!existsSync(path))
|
|
19
|
-
return [];
|
|
20
|
-
// Corruption must be surfaced, never mistaken for an empty store and overwritten.
|
|
21
|
-
return AutomationJobSchema.array().parse(JSON.parse(readFileSync(path, 'utf8')));
|
|
22
|
-
}
|
|
23
|
-
saveJob(job) {
|
|
24
|
-
const jobs = this.jobs();
|
|
25
|
-
this.write(join(this.directory, 'jobs.json'), [
|
|
26
|
-
...jobs.filter((row) => row.id !== job.id),
|
|
27
|
-
AutomationJobSchema.parse(job),
|
|
28
|
-
]);
|
|
29
|
-
}
|
|
28
|
+
jobs() { return this.runtime.list('automation-jobs').map((job) => AutomationJobSchema.parse(job)); }
|
|
29
|
+
saveJob(job) { this.runtime.set('automation-jobs', job.id, AutomationJobSchema.parse(job)); }
|
|
30
30
|
run(id) {
|
|
31
31
|
if (!/^[a-zA-Z0-9-]+$/.test(id))
|
|
32
32
|
throw new Error('Invalid run ID');
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
throw new Error('Invalid run ID');
|
|
38
|
-
this.write(join(this.directory, 'runs', `${run.id}.json`), AutomationRunSchema.parse(run));
|
|
33
|
+
const run = this.runtime.get('automation-runs', id);
|
|
34
|
+
if (!run)
|
|
35
|
+
throw new Error('Automation run not found');
|
|
36
|
+
return AutomationRunSchema.parse(run);
|
|
39
37
|
}
|
|
38
|
+
saveRun(run) { this.runtime.set('automation-runs', run.id, AutomationRunSchema.parse(run)); }
|
|
40
39
|
runs() {
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
return this.runtime.list('automation-runs').map((run) => AutomationRunSchema.parse(run)).sort((a, b) => b.id.localeCompare(a.id));
|
|
41
|
+
}
|
|
42
|
+
/** Advancing a schedule and accepting its one run commit together, including skipped occurrences. */
|
|
43
|
+
admit(run, claim) {
|
|
44
|
+
return this.runtime.transaction(() => {
|
|
45
|
+
if (this.runtime.get('automation-runs', run.id))
|
|
46
|
+
return false;
|
|
47
|
+
if (claim) {
|
|
48
|
+
const current = this.runtime.get('automation-jobs', claim.job.id);
|
|
49
|
+
const key = JSON.stringify([claim.job.id, claim.occurrence]);
|
|
50
|
+
if (current?.nextRunAt !== claim.occurrence || this.runtime.get('automation-occurrences', key))
|
|
51
|
+
return false;
|
|
52
|
+
this.runtime.set('automation-occurrences', key, run.id);
|
|
53
|
+
this.saveJob(claim.job);
|
|
54
|
+
}
|
|
55
|
+
this.saveRun(run);
|
|
56
|
+
return true;
|
|
57
|
+
});
|
|
45
58
|
}
|
|
46
59
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AutomationStore } from './store.js';
|
|
2
|
+
export declare class WorkflowInterrupted extends Error {
|
|
3
|
+
}
|
|
4
|
+
/** A small ordered-step journal. Only pure reads and tool-less generation may retry. */
|
|
5
|
+
export declare class SavedWorkflow {
|
|
6
|
+
private readonly store;
|
|
7
|
+
readonly runId: string;
|
|
8
|
+
private readonly signal?;
|
|
9
|
+
private checkpoint;
|
|
10
|
+
constructor(store: AutomationStore, runId: string, signal?: AbortSignal | undefined);
|
|
11
|
+
private save;
|
|
12
|
+
step<T>(key: string, policy: 'retry' | 'effect', action: () => Promise<T> | T): Promise<T>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/automations/workflow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,qBAAa,mBAAoB,SAAQ,KAAK;CAAG;AAEjD,wFAAwF;AACxF,qBAAa,aAAa;IAEZ,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAmB,QAAQ,CAAC,KAAK,EAAE,MAAM;IAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IADrG,OAAO,CAAC,UAAU,CAAa;gBACF,KAAK,EAAE,eAAe,EAAW,KAAK,EAAE,MAAM,EAAmB,MAAM,CAAC,EAAE,WAAW,YAAA;IAIlH,OAAO,CAAC,IAAI;IAYN,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAsBjG"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export class WorkflowInterrupted extends Error {
|
|
2
|
+
}
|
|
3
|
+
/** A small ordered-step journal. Only pure reads and tool-less generation may retry. */
|
|
4
|
+
export class SavedWorkflow {
|
|
5
|
+
store;
|
|
6
|
+
runId;
|
|
7
|
+
signal;
|
|
8
|
+
checkpoint;
|
|
9
|
+
constructor(store, runId, signal) {
|
|
10
|
+
this.store = store;
|
|
11
|
+
this.runId = runId;
|
|
12
|
+
this.signal = signal;
|
|
13
|
+
this.checkpoint = store.runtime.get('workflow-steps', runId) ?? { version: 1, steps: [] };
|
|
14
|
+
if (this.checkpoint.version !== 1)
|
|
15
|
+
throw new WorkflowInterrupted('This run uses an incompatible saved workflow version. Its saved output has been retained.');
|
|
16
|
+
}
|
|
17
|
+
save(step) {
|
|
18
|
+
this.checkpoint.steps = [...this.checkpoint.steps.filter((old) => old.key !== step.key), step];
|
|
19
|
+
this.store.runtime.transaction(() => {
|
|
20
|
+
this.store.runtime.set('workflow-steps', this.runId, this.checkpoint);
|
|
21
|
+
const run = this.store.run(this.runId);
|
|
22
|
+
this.store.saveRun({ ...run, workflow: {
|
|
23
|
+
version: 1, attempts: run.workflow?.attempts ?? 1,
|
|
24
|
+
possibleAdditionalCost: this.checkpoint.steps.some((s) => s.attempts > 1 && ['Generate briefing', 'Reflect'].includes(s.key)),
|
|
25
|
+
steps: this.checkpoint.steps.map(({ value: _, ...progress }) => progress),
|
|
26
|
+
}, ...(step.key === 'Generate briefing' && step.status === 'completed' ? { summary: step.value.text, costUsd: step.value.costUsd, sessionId: step.value.sessionId } : {}) });
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
async step(key, policy, action) {
|
|
30
|
+
if (this.signal?.aborted || this.store.run(this.runId).cancelRequested)
|
|
31
|
+
throw new Error('Run stopped.');
|
|
32
|
+
const old = this.checkpoint.steps.find((step) => step.key === key);
|
|
33
|
+
if (old?.status === 'completed')
|
|
34
|
+
return old.value;
|
|
35
|
+
if (old && policy === 'effect') {
|
|
36
|
+
const error = `${key} may already have happened. Review the saved output before doing it again.`;
|
|
37
|
+
this.save({ ...old, status: 'uncertain', error });
|
|
38
|
+
throw new WorkflowInterrupted(error);
|
|
39
|
+
}
|
|
40
|
+
if ((old?.attempts ?? 0) >= 3)
|
|
41
|
+
throw new WorkflowInterrupted(`${key} reached its three-attempt recovery limit. Saved work has been retained.`);
|
|
42
|
+
const started = { key, status: 'running', attempts: (old?.attempts ?? 0) + 1 };
|
|
43
|
+
this.save(started);
|
|
44
|
+
let value;
|
|
45
|
+
try {
|
|
46
|
+
value = await action();
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
this.save({ ...started, status: policy === 'effect' ? 'uncertain' : 'failed', error: error instanceof Error ? error.message : String(error) });
|
|
50
|
+
if (policy === 'effect')
|
|
51
|
+
throw new WorkflowInterrupted(`${key} has an uncertain outcome: ${String(error)}`);
|
|
52
|
+
throw error;
|
|
53
|
+
}
|
|
54
|
+
this.save({ ...started, status: 'completed', value });
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
}
|
package/dist/coding/listPrs.d.ts
CHANGED
|
@@ -13,4 +13,6 @@ export declare function listPrs(repoId: string, mode: WorkspaceMode | undefined,
|
|
|
13
13
|
prs: PrInfo[];
|
|
14
14
|
error?: string;
|
|
15
15
|
}>;
|
|
16
|
+
/** The head commit of the merged pull request opened from `branch`, if there is one. Never throws. */
|
|
17
|
+
export declare function mergedPrHead(repoRoot: string, branch: string): Promise<string | undefined>;
|
|
16
18
|
//# sourceMappingURL=listPrs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listPrs.d.ts","sourceRoot":"","sources":["../../src/coding/listPrs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAoBjD;;;;;;;GAOG;AACH,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,aAAa,GAAG,SAAS,EAC/B,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAmC7D"}
|
|
1
|
+
{"version":3,"file":"listPrs.d.ts","sourceRoot":"","sources":["../../src/coding/listPrs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAoBjD;;;;;;;GAOG;AACH,wBAAsB,OAAO,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,aAAa,GAAG,SAAS,EAC/B,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAmC7D;AAED,sGAAsG;AACtG,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAWhG"}
|
package/dist/coding/listPrs.js
CHANGED
|
@@ -49,3 +49,13 @@ export async function listPrs(repoId, mode, config) {
|
|
|
49
49
|
return { branch, prs: [], error: (raw.split('\n')[0] ?? '').slice(0, 200) };
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
/** The head commit of the merged pull request opened from `branch`, if there is one. Never throws. */
|
|
53
|
+
export async function mergedPrHead(repoRoot, branch) {
|
|
54
|
+
try {
|
|
55
|
+
const { stdout } = await exec('gh', ['pr', 'list', '--head', branch, '--state', 'merged', '--limit', '1', '--json', 'headRefOid'], { cwd: repoRoot, env: { ...process.env, PATH: GH_PATH }, maxBuffer: 1024 * 1024 });
|
|
56
|
+
return JSON.parse(stdout)[0]?.headRefOid;
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -4,6 +4,7 @@ import { type WorkspaceMode, type HarnessImage } from '@lucidity/shared';
|
|
|
4
4
|
import type { RepoEntry } from '../config.js';
|
|
5
5
|
import { type Workspace } from './worktree.js';
|
|
6
6
|
export interface CodeTurnRequest {
|
|
7
|
+
recoveryOf?: string;
|
|
7
8
|
id: string;
|
|
8
9
|
repoId: string;
|
|
9
10
|
prompt: string;
|
|
@@ -15,10 +16,8 @@ export interface CodeTurnRequest {
|
|
|
15
16
|
provider?: AgentProvider;
|
|
16
17
|
/** The conversation moving over from the other provider. Keeps the workspace as it is. */
|
|
17
18
|
handoff?: ProviderHandoff;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* session, so N workers code the same repo in parallel. Absent → the classic
|
|
21
|
-
* single-session turn, unchanged. */
|
|
19
|
+
/** The worktree this turn belongs to. Present → it runs in that worktree's own folder and
|
|
20
|
+
* branch instead of the main session, so several can code the same repo in parallel. */
|
|
22
21
|
workerId?: string;
|
|
23
22
|
/** Where to work (#121). Absent → `worktree`. */
|
|
24
23
|
mode?: WorkspaceMode;
|
|
@@ -54,16 +53,6 @@ export interface RunCodeTurnDeps {
|
|
|
54
53
|
/** Home dir Claude Code's session store lives under (`<home>/.claude/projects/...`). Test seam. */
|
|
55
54
|
claudeHome?: string;
|
|
56
55
|
}
|
|
57
|
-
/**
|
|
58
|
-
* The commit message for one coding turn. The subject is Lucid's own summary of what it
|
|
59
|
-
* did; the body is the prompt that asked for it, so the commit still says why it exists.
|
|
60
|
-
*
|
|
61
|
-
* Deriving the subject from the prompt (as this once did) produced garbage: a raw slice cut
|
|
62
|
-
* mid-word, and — because a prompt's own newline landed inside the slice — a stray second
|
|
63
|
-
* line that git read as a body with no blank line before it. Anything reaching `git commit`
|
|
64
|
-
* here must be subject / blank / body, in that order.
|
|
65
|
-
*/
|
|
66
|
-
export declare function codeCommitMessage(prompt: string, summary: string): string;
|
|
67
56
|
/** Run a turn in an existing checkout or persistent worker without resetting its files. */
|
|
68
57
|
export declare function runCodeTurn(req: CodeTurnRequest, deps: RunCodeTurnDeps): Promise<void>;
|
|
69
58
|
//# sourceMappingURL=runCodeTurn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runCodeTurn.d.ts","sourceRoot":"","sources":["../../src/coding/runCodeTurn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAuB,MAAM,mBAAmB,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,
|
|
1
|
+
{"version":3,"file":"runCodeTurn.d.ts","sourceRoot":"","sources":["../../src/coding/runCodeTurn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAuB,MAAM,mBAAmB,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAGL,KAAK,SAAS,EAIf,MAAM,eAAe,CAAC;AA8BvB,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,oGAAoG;IACpG,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yFAAyF;IACzF,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;6FACyF;IACzF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;sEACkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;IACpE,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,QAAQ,EAAE,aAAa,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,mBAAmB,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC1D,yFAAyF;IACzF,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACtD,UAAU,CAAC,EAAE,OAAO,mBAAmB,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACxE,sDAAsD;IACtD,IAAI,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;gFAC4E;IAC5E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oGAAoG;IACpG,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,4GAA4G;IAC5G,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mGAAmG;IACnG,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAMD,2FAA2F;AAC3F,wBAAsB,WAAW,CAC/B,GAAG,EAAE,eAAe,EACpB,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,IAAI,CAAC,CA0Nf"}
|