@opencorelabs/lucidity 0.7.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 +9 -2
- package/dist/assets/speech/lucidity-speech +0 -0
- package/dist/automations/agent.d.ts.map +1 -1
- package/dist/automations/agent.js +2 -0
- package/dist/automations/designer.d.ts +1 -1
- 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/chat/server.d.ts +1 -0
- package/dist/chat/server.d.ts.map +1 -1
- package/dist/chat/server.js +6 -1
- 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 +6 -30
- package/dist/coding/runCodeTurn.d.ts.map +1 -1
- package/dist/coding/runCodeTurn.js +145 -218
- 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 +72 -0
- package/dist/coding/workspaceRegistry.d.ts.map +1 -0
- package/dist/coding/workspaceRegistry.js +421 -0
- package/dist/coding/worktree.d.ts +72 -32
- package/dist/coding/worktree.d.ts.map +1 -1
- package/dist/coding/worktree.js +190 -38
- 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/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/daemonLease.d.ts +12 -0
- package/dist/daemonLease.d.ts.map +1 -0
- package/dist/daemonLease.js +32 -0
- package/dist/goals/assessment.d.ts +115 -0
- package/dist/goals/assessment.d.ts.map +1 -0
- package/dist/goals/assessment.js +67 -0
- package/dist/goals/notes.d.ts +18 -0
- package/dist/goals/notes.d.ts.map +1 -0
- package/dist/goals/notes.js +72 -0
- package/dist/index.js +75 -40
- 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/jobs/goals.d.ts +15 -0
- package/dist/jobs/goals.d.ts.map +1 -0
- package/dist/jobs/goals.js +286 -0
- package/dist/jobs/weeklyReview.d.ts.map +1 -1
- package/dist/jobs/weeklyReview.js +3 -2
- 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/queue.d.ts +1 -0
- package/dist/queue.d.ts.map +1 -1
- package/dist/queue.js +4 -0
- package/dist/room/client.d.ts +6 -19
- package/dist/room/client.d.ts.map +1 -1
- package/dist/room/client.js +127 -123
- package/dist/room/computer.js +1 -1
- package/dist/room/durablePublish.d.ts +6 -0
- package/dist/room/durablePublish.d.ts.map +1 -0
- package/dist/room/durablePublish.js +19 -0
- package/dist/room/incidents.d.ts +4 -1
- package/dist/room/incidents.d.ts.map +1 -1
- package/dist/room/incidents.js +15 -7
- package/dist/room/turnQueue.d.ts.map +1 -1
- package/dist/room/turnQueue.js +55 -46
- package/dist/runtimeStore.d.ts +46 -0
- package/dist/runtimeStore.d.ts.map +1 -0
- package/dist/runtimeStore.js +205 -0
- package/dist/setup/server.js +1 -1
- package/dist/turnLog.d.ts +10 -40
- package/dist/turnLog.d.ts.map +1 -1
- package/dist/turnLog.js +33 -56
- package/dist/vault.d.ts +6 -3
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +18 -4
- package/package.json +4 -4
- package/src/automations/agent.ts +2 -0
- package/src/automations/service.ts +47 -21
- package/src/automations/store.ts +41 -50
- package/src/automations/workflow.ts +49 -0
- package/src/chat/server.ts +7 -1
- package/src/coding/listPrs.ts +14 -0
- package/src/coding/runCodeTurn.ts +51 -139
- package/src/coding/runReview.ts +83 -0
- package/src/coding/workspaceRegistry.ts +380 -0
- package/src/coding/worktree.ts +205 -40
- package/src/coding/worktreeSetup.ts +50 -0
- package/src/config.ts +2 -0
- package/src/daemonLease.ts +33 -0
- package/src/goals/assessment.ts +106 -0
- package/src/goals/notes.ts +88 -0
- package/src/index.ts +76 -46
- package/src/jobs/briefing.ts +62 -109
- package/src/jobs/goals.ts +384 -0
- package/src/jobs/weeklyReview.ts +4 -3
- package/src/logTimestamps.ts +14 -0
- package/src/providerRecovery.ts +99 -0
- package/src/queue.ts +4 -0
- package/src/room/client.ts +84 -116
- package/src/room/computer.ts +1 -1
- package/src/room/durablePublish.ts +25 -0
- package/src/room/incidents.ts +20 -8
- package/src/room/turnQueue.ts +53 -56
- package/src/runtimeStore.ts +207 -0
- package/src/setup/server.ts +1 -1
- package/src/turnLog.ts +32 -75
- package/src/vault.ts +16 -7
- package/vendor/mcp-server/dist/index.js +2 -0
- package/vendor/mcp-server/dist/tools/goals.d.ts +4 -0
- package/vendor/mcp-server/dist/tools/goals.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/goals.js +38 -0
- package/vendor/mcp-server/package.json +1 -1
- package/vendor/mcp-server/src/index.ts +2 -0
- package/vendor/mcp-server/src/tools/goals.ts +62 -0
- package/vendor/runtime/README.md +36 -2
- package/vendor/runtime/dist/executor/asyncQueue.d.ts +1 -0
- package/vendor/runtime/dist/executor/asyncQueue.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/asyncQueue.js +3 -0
- package/vendor/runtime/dist/executor/claudeAgent.d.ts +5 -1
- package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/claudeAgent.js +77 -13
- package/vendor/runtime/dist/executor/codex.d.ts +8 -2
- package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codex.js +113 -38
- 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/FunctionCallOutputContentItem.d.ts +4 -1
- package/vendor/runtime/dist/executor/codexProtocol/FunctionCallOutputContentItem.d.ts.map +1 -1
- 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/Personality.d.ts +3 -0
- package/vendor/runtime/dist/executor/codexProtocol/Personality.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts.map +1 -1
- 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/CyberAccessProgram.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.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/GetAccountRateLimitsResponse.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts.map +1 -1
- 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/Model.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Model.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.d.ts +11 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.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/RateLimitSnapshot.d.ts +4 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts.map +1 -1
- 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/ThreadResumeParams.d.ts +4 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadResumeParams.d.ts.map +1 -1
- 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/ThreadStartParams.d.ts +3 -1
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStartParams.d.ts.map +1 -1
- 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/TurnStartParams.d.ts +7 -2
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStartParams.d.ts.map +1 -1
- 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/UserInput.d.ts +3 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/UserInput.d.ts.map +1 -1
- 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 +13 -4
- package/vendor/runtime/dist/executor/codexRpc.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexRpc.js +21 -5
- package/vendor/runtime/dist/executor/codexSessions.d.ts +30 -0
- package/vendor/runtime/dist/executor/codexSessions.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexSessions.js +88 -0
- package/vendor/runtime/dist/executor/health.d.ts +8 -2
- package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/health.js +21 -5
- package/vendor/runtime/dist/executor/liveTurns.d.ts +2 -1
- package/vendor/runtime/dist/executor/liveTurns.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/liveTurns.js +12 -5
- package/vendor/runtime/dist/executor/ownership.d.ts +40 -0
- package/vendor/runtime/dist/executor/ownership.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/ownership.js +106 -0
- package/vendor/runtime/dist/executor/providerRouter.d.ts +1 -0
- package/vendor/runtime/dist/executor/providerRouter.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/providerRouter.js +5 -0
- package/vendor/runtime/dist/executor/types.d.ts +27 -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 +2 -1
- package/vendor/runtime/dist/index.d.ts.map +1 -1
- package/vendor/runtime/dist/index.js +1 -0
- package/vendor/runtime/src/executor/asyncQueue.ts +3 -0
- package/vendor/runtime/src/executor/claudeAgent.ts +66 -13
- package/vendor/runtime/src/executor/codex.ts +124 -47
- package/vendor/runtime/src/executor/codexProtocol/AgentPath.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/FunctionCallOutputContentItem.ts +1 -1
- 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/Personality.ts +3 -0
- package/vendor/runtime/src/executor/codexProtocol/PlanType.ts +1 -1
- package/vendor/runtime/src/executor/codexProtocol/README.md +2 -2
- 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/CyberAccessProgram.ts +9 -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/GetAccountRateLimitsResponse.ts +5 -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/Model.ts +11 -2
- package/vendor/runtime/src/executor/codexProtocol/v2/ModelAccessPrograms.ts +13 -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/RateLimitSnapshot.ts +5 -1
- package/vendor/runtime/src/executor/codexProtocol/v2/ReviewStartParams.ts +2 -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/ThreadResumeParams.ts +5 -1
- 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/ThreadStartParams.ts +4 -1
- 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/TurnStartParams.ts +7 -2
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/UserInput.ts +1 -1
- package/vendor/runtime/src/executor/codexProtocol/v2/WebSearchAction.ts +5 -0
- package/vendor/runtime/src/executor/codexRpc.ts +26 -6
- package/vendor/runtime/src/executor/codexSessions.ts +108 -0
- package/vendor/runtime/src/executor/health.ts +21 -7
- package/vendor/runtime/src/executor/liveTurns.ts +12 -5
- package/vendor/runtime/src/executor/ownership.ts +83 -0
- package/vendor/runtime/src/executor/providerRouter.ts +6 -0
- package/vendor/runtime/src/executor/types.ts +20 -1
- package/vendor/runtime/src/harness/index.ts +1 -0
- package/vendor/runtime/src/index.ts +2 -1
- package/vendor/shared/dist/agentCommands.d.ts +1 -0
- package/vendor/shared/dist/agentCommands.d.ts.map +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/cardStudio.d.ts +41 -0
- package/vendor/shared/dist/cardStudio.d.ts.map +1 -1
- package/vendor/shared/dist/cardStudio.js +13 -3
- package/vendor/shared/dist/computer.d.ts +7 -1
- package/vendor/shared/dist/computer.d.ts.map +1 -1
- package/vendor/shared/dist/computer.js +13 -4
- package/vendor/shared/dist/constants.d.ts +3 -3
- package/vendor/shared/dist/constants.d.ts.map +1 -1
- package/vendor/shared/dist/constants.js +8 -14
- package/vendor/shared/dist/goalNotes.d.ts +4 -0
- package/vendor/shared/dist/goalNotes.d.ts.map +1 -0
- package/vendor/shared/dist/goalNotes.js +23 -0
- package/vendor/shared/dist/goals.d.ts +835 -0
- package/vendor/shared/dist/goals.d.ts.map +1 -0
- package/vendor/shared/dist/goals.js +198 -0
- package/vendor/shared/dist/index.d.ts +7 -2
- package/vendor/shared/dist/index.d.ts.map +1 -1
- package/vendor/shared/dist/index.js +6 -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 +199 -169
- package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/harness.js +25 -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 +255 -0
- package/vendor/shared/dist/workspaces.d.ts.map +1 -0
- package/vendor/shared/dist/workspaces.js +89 -0
- package/vendor/shared/src/agentCommands.ts +1 -0
- package/vendor/shared/src/automations.ts +12 -0
- package/vendor/shared/src/cardStudio.ts +13 -3
- package/vendor/shared/src/computer.ts +19 -5
- package/vendor/shared/src/constants.ts +8 -14
- package/vendor/shared/src/goalNotes.ts +23 -0
- package/vendor/shared/src/goals.ts +237 -0
- package/vendor/shared/src/index.ts +7 -6
- package/vendor/shared/src/messagingSafety.ts +11 -0
- package/vendor/shared/src/schemas/harness.ts +24 -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 +103 -0
- package/dist/coding/conduct.d.ts +0 -69
- package/dist/coding/conduct.d.ts.map +0 -1
- package/dist/coding/conduct.js +0 -348
- package/dist/coding/fleetIntegrate.d.ts +0 -37
- package/dist/coding/fleetIntegrate.d.ts.map +0 -1
- package/dist/coding/fleetIntegrate.js +0 -64
- 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/dist/coding/openFleetPr.d.ts +0 -41
- package/dist/coding/openFleetPr.d.ts.map +0 -1
- package/dist/coding/openFleetPr.js +0 -121
- package/src/coding/conduct.ts +0 -462
- package/src/coding/fleetIntegrate.ts +0 -95
- package/src/coding/fleetPlan.ts +0 -135
- package/src/coding/fleetTasks.ts +0 -109
- package/src/coding/openFleetPr.ts +0 -148
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { WorkspaceCommandSchema, WorkspaceSnapshotSchema } from '../workspaces.js';
|
|
2
3
|
import { VoiceCaptureAudioSchema, VoiceCaptureReceiptSchema, } from '../voiceCapture.js';
|
|
3
4
|
import { ComputerSpeechSchema, SpeechAudioSchema, SpeechModelIdSchema, SpeechTranscriptSchema, } from '../speech.js';
|
|
4
5
|
import { AutomationCommandSchema, AutomationSnapshotSchema, } from '../automations.js';
|
|
5
6
|
import { DayPlanningContextSchema } from '../dayPlanning.js';
|
|
6
7
|
import { ProjectPlanningContextSchema } from '../projectCapture.js';
|
|
7
8
|
import { validatedCardSegments } from '../cardStatement.js';
|
|
8
|
-
import { SENDER_KINDS, APPROVAL_DECISIONS, WORKSPACE_MODES,
|
|
9
|
+
import { SENDER_KINDS, APPROVAL_DECISIONS, WORKSPACE_MODES, EFFORT_LEVELS, DELIVERY_CHANNELS, AGENT_MODES, } from '../constants.js';
|
|
9
10
|
/**
|
|
10
11
|
* The Lucid harness wire contract (M6). One shape that every transport speaks:
|
|
11
12
|
* phone → hosted room → local daemon (free) or hosted executor (Pro). The room
|
|
@@ -80,6 +81,8 @@ export const JournalRequestSchema = HarnessRequestBase.extend({
|
|
|
80
81
|
// server-side through the daemon's allowlist to an absolute path — the phone
|
|
81
82
|
// never sends a filesystem path.
|
|
82
83
|
export const CodeRequestSchema = HarnessRequestBase.extend({
|
|
84
|
+
recoveryOf: z.uuidv7().optional(),
|
|
85
|
+
recoveryReviewId: z.uuidv7().optional(),
|
|
83
86
|
kind: z.literal('code'),
|
|
84
87
|
repoId: z.string().min(1),
|
|
85
88
|
prompt: z.string().min(1).max(8000),
|
|
@@ -93,10 +96,8 @@ export const CodeRequestSchema = HarnessRequestBase.extend({
|
|
|
93
96
|
handoff: ProviderHandoffSchema.optional(),
|
|
94
97
|
queue: z.boolean().optional(),
|
|
95
98
|
afterRequestId: z.uuidv7().optional(),
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* isolated `fleet/<repoId>/<workerId>` worktree, on its own lane. Absent → the bare repo
|
|
99
|
-
* 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. */
|
|
100
101
|
workerId: z.uuidv7().optional(),
|
|
101
102
|
/** Where to do the work (#121). Absent → 'worktree', so a daemon on this schema
|
|
102
103
|
* still understands a phone that predates the mode picker. The daemon rejects
|
|
@@ -126,66 +127,6 @@ export const CloneRepoRequestSchema = HarnessRequestBase.extend({
|
|
|
126
127
|
kind: z.literal('clone'),
|
|
127
128
|
url: z.string().min(1).max(2000),
|
|
128
129
|
});
|
|
129
|
-
// ---- Conductor (a fleet of coding agents) ---------------------------------
|
|
130
|
-
// One worker in a fan-out plan — a single coding lane. Its `workerId` is the fleet
|
|
131
|
-
// subtask's uuid AND the stream id its code frames arrive under (both uuidv7), so a
|
|
132
|
-
// worker reuses the whole existing code-turn pipeline: the phone routes any frame whose
|
|
133
|
-
// `requestId` equals a known `workerId` into that worker's lane. `ownedPaths` is the
|
|
134
|
-
// files/globs this worker may touch (the ownership map that prevents two lanes colliding);
|
|
135
|
-
// `mergeOrder` (lower first) mirrors the subtask's priority and decides integration order.
|
|
136
|
-
export const FleetWorkerSchema = z.object({
|
|
137
|
-
workerId: z.uuidv7(),
|
|
138
|
-
title: z.string().min(1).max(200),
|
|
139
|
-
brief: z.string().min(1).max(8000),
|
|
140
|
-
ownedPaths: z.array(z.string().max(400)).max(200),
|
|
141
|
-
mergeOrder: z.number().int(),
|
|
142
|
-
});
|
|
143
|
-
// The lead's decomposition of a goal — what the phone renders as the Fan-out card, and
|
|
144
|
-
// what it sends back (possibly edited) to execute. `overlaps` are the ⚠ pairs whose owned
|
|
145
|
-
// paths intersect, so the card can warn and the runner can force those two to serialize.
|
|
146
|
-
export const FleetPlanSchema = z.object({
|
|
147
|
-
goal: z.string().min(1).max(500),
|
|
148
|
-
/** The parent Lucidity task (the goal); each worker is a subtask of it. Set once the
|
|
149
|
-
* daemon has created the task graph (dogfood); absent on a freshly-proposed plan. */
|
|
150
|
-
parentTaskId: z.uuidv7().optional(),
|
|
151
|
-
workers: z.array(FleetWorkerSchema).min(1).max(16),
|
|
152
|
-
overlaps: z
|
|
153
|
-
.array(z.object({
|
|
154
|
-
a: z.uuidv7(),
|
|
155
|
-
b: z.uuidv7(),
|
|
156
|
-
paths: z.array(z.string().max(400)).max(200),
|
|
157
|
-
}))
|
|
158
|
-
.max(120) // at most C(16,2) pairs for the 16-worker ceiling
|
|
159
|
-
.optional(),
|
|
160
|
-
/** How many workers may run at once (quota guard). Absent → the daemon's default cap. */
|
|
161
|
-
maxParallel: z.number().int().positive().max(16).optional(),
|
|
162
|
-
});
|
|
163
|
-
// Phone → daemon. Four phases over one request kind:
|
|
164
|
-
// - `plan`: decompose `prompt` (the goal) → one `fleet_plan` event. Nothing runs or is created,
|
|
165
|
-
// so the user edits or discards freely.
|
|
166
|
-
// - `setup`: materialize an approved plan for the DESIGN-FIRST flow — create the task graph and
|
|
167
|
-
// announce the workers (`worker_status: queued`), but write NO code. The user then chats each
|
|
168
|
-
// worker via a `code` turn carrying its `workerId`, and merges with `integrate` when ready.
|
|
169
|
-
// - `run`: the AUTO flow — create the graph, dispatch every worker to code in merge order, then
|
|
170
|
-
// integrate. One-tap "fan out & run".
|
|
171
|
-
// - `integrate`: merge the plan's worker branches onto lucid/<repo> in order → `worker_status`
|
|
172
|
-
// (merged) / `fleet_conflict` / `fleet_done`. Used by the design-first flow's "Merge fleet".
|
|
173
|
-
// Splitting plan from the rest keeps fan-out a one-tap opt-in: no worker spawns until the phone
|
|
174
|
-
// sends `setup`/`run` with a plan the user accepted.
|
|
175
|
-
export const ConductRequestSchema = HarnessRequestBase.extend({
|
|
176
|
-
kind: z.literal('conduct'),
|
|
177
|
-
repoId: z.string().min(1),
|
|
178
|
-
phase: z.enum(['plan', 'run', 'setup', 'integrate']),
|
|
179
|
-
prompt: z.string().min(1).max(8000),
|
|
180
|
-
images: harnessImagesField,
|
|
181
|
-
/** The approved plan to execute — required on `run`, ignored on `plan`. */
|
|
182
|
-
plan: FleetPlanSchema.optional(),
|
|
183
|
-
/** Conductor (lead) session id to continue its planning conversation across turns. */
|
|
184
|
-
resume: z.string().optional(),
|
|
185
|
-
/** Skip the dogfood task graph (no parent/subtask on the board). Set for quick incremental
|
|
186
|
-
* spawns so the board isn't spammed with a parent per task; the fleet UI tracks them anyway. */
|
|
187
|
-
ephemeral: z.boolean().optional(),
|
|
188
|
-
});
|
|
189
130
|
// Stop an in-flight request (the phone's stop button). `targetId` is the original
|
|
190
131
|
// request's `id`; the daemon aborts its executor run and replies with a
|
|
191
132
|
// `cancelled` stream event correlated to that same id.
|
|
@@ -278,6 +219,8 @@ export const IncidentReportRequestSchema = HarnessRequestBase.extend({
|
|
|
278
219
|
snapshot: IncidentSnapshotSchema.optional(),
|
|
279
220
|
/** The tail of the phone's diag ring — feeds SUSPEND_GAP and enriches the timeline. */
|
|
280
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(),
|
|
281
224
|
});
|
|
282
225
|
// ---- Voice diagnostics (Kokoro TTS drop/pause capture) --------------------
|
|
283
226
|
// One sentence's trip through the pipeline: the text that was synthesized and how the synth went.
|
|
@@ -443,6 +386,7 @@ export const AttentionRequestSchema = HarnessRequestBase.extend({
|
|
|
443
386
|
refresh: z.boolean().optional(),
|
|
444
387
|
});
|
|
445
388
|
export const HarnessRequestSchema = z.discriminatedUnion('kind', [
|
|
389
|
+
HarnessRequestBase.extend({ kind: z.literal('workspaces'), command: WorkspaceCommandSchema }),
|
|
446
390
|
HarnessRequestBase.extend({
|
|
447
391
|
kind: z.literal('voice-capture'),
|
|
448
392
|
credentialId: z.uuid(),
|
|
@@ -478,7 +422,6 @@ export const HarnessRequestSchema = z.discriminatedUnion('kind', [
|
|
|
478
422
|
BriefingRequestSchema,
|
|
479
423
|
JournalRequestSchema,
|
|
480
424
|
CodeRequestSchema,
|
|
481
|
-
ConductRequestSchema,
|
|
482
425
|
RepoListRequestSchema,
|
|
483
426
|
ListPrsRequestSchema,
|
|
484
427
|
CloneRepoRequestSchema,
|
|
@@ -698,11 +641,13 @@ export const CommandsResponseSchema = HarnessResponseBase.extend({
|
|
|
698
641
|
description: z.string(),
|
|
699
642
|
argumentHint: z.string(),
|
|
700
643
|
acceptsArguments: z.boolean().optional(),
|
|
644
|
+
startsConversation: z.boolean().optional(),
|
|
701
645
|
aliases: z.array(z.string()).optional(),
|
|
702
646
|
clearsContext: z.boolean().optional(),
|
|
703
647
|
})),
|
|
704
648
|
});
|
|
705
649
|
export const HarnessResponseSchema = z.discriminatedUnion('kind', [
|
|
650
|
+
HarnessResponseBase.extend({ kind: z.literal('workspaces'), snapshot: WorkspaceSnapshotSchema }),
|
|
706
651
|
HarnessResponseBase.extend({
|
|
707
652
|
kind: z.literal('voice-capture'),
|
|
708
653
|
receipt: VoiceCaptureReceiptSchema.nullable(),
|
|
@@ -744,6 +689,8 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
744
689
|
type: z.literal('queue_state'),
|
|
745
690
|
requestId: z.uuidv7(),
|
|
746
691
|
state: z.enum(['queued', 'running']),
|
|
692
|
+
blockedBy: z.uuidv7().optional(),
|
|
693
|
+
message: z.string().optional(),
|
|
747
694
|
}),
|
|
748
695
|
z.object({
|
|
749
696
|
// Durable receipt written before execution; recovery only pulls saved output.
|
|
@@ -771,6 +718,8 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
771
718
|
requestId: z.uuidv7(),
|
|
772
719
|
name: z.string(),
|
|
773
720
|
phase: z.enum(['start', 'end']),
|
|
721
|
+
itemId: z.string().optional(),
|
|
722
|
+
outcome: z.string().optional(),
|
|
774
723
|
}),
|
|
775
724
|
z.object({
|
|
776
725
|
type: z.literal('done'),
|
|
@@ -783,6 +732,7 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
783
732
|
// has no memory of earlier turns — the phone surfaces/counts this so a silent
|
|
784
733
|
// conversation reset is never invisible again (the root cause behind the #107 wipe).
|
|
785
734
|
freshStart: z.boolean().optional(),
|
|
735
|
+
recovered: z.boolean().optional(),
|
|
786
736
|
}),
|
|
787
737
|
z.object({
|
|
788
738
|
// The result of a `code` turn (M7): the diff the turn produced, ready for the
|
|
@@ -793,6 +743,13 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
793
743
|
requestId: z.uuidv7(),
|
|
794
744
|
branch: z.string(),
|
|
795
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(),
|
|
796
753
|
summary: z.string().optional(),
|
|
797
754
|
mode: z.enum(WORKSPACE_MODES).optional(),
|
|
798
755
|
// In-place only: the branch the phone expected this turn to land on, echoed back ONLY
|
|
@@ -800,6 +757,7 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
800
757
|
// ran — on `branch` — so the phone shows a quiet "checkout moved" notice on the bubble
|
|
801
758
|
// instead of the old dead-end rejection that made the user re-send.
|
|
802
759
|
movedFrom: z.string().optional(),
|
|
760
|
+
checkpointWarning: z.string().optional(),
|
|
803
761
|
}),
|
|
804
762
|
z.object({
|
|
805
763
|
// The result of a `clone` turn (#78): the new repo's id, once cloned into the
|
|
@@ -808,68 +766,11 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
808
766
|
requestId: z.uuidv7(),
|
|
809
767
|
repoId: z.string(),
|
|
810
768
|
}),
|
|
811
|
-
// ---- Conductor fleet events (stream under the CONDUCT turn's requestId) ----
|
|
812
|
-
z.object({
|
|
813
|
-
// The lead's decomposition, produced by a `conduct` `plan` turn — the phone renders it
|
|
814
|
-
// as the Fan-out card. Nothing has run or been created yet; the user edits/accepts, then
|
|
815
|
-
// sends `conduct` `run` with this (possibly edited) plan.
|
|
816
|
-
type: z.literal('fleet_plan'),
|
|
817
|
-
requestId: z.uuidv7(),
|
|
818
|
-
plan: FleetPlanSchema,
|
|
819
|
-
}),
|
|
820
|
-
z.object({
|
|
821
|
-
// A worker crossed into a new lifecycle state. The phone updates that lane's card on the
|
|
822
|
-
// Fleet board. The worker's own delta/tool_call/code_result/done frames arrive separately,
|
|
823
|
-
// UNDER `requestId === workerId`, so they flow through the existing code-turn rendering.
|
|
824
|
-
type: z.literal('worker_status'),
|
|
825
|
-
requestId: z.uuidv7(),
|
|
826
|
-
workerId: z.uuidv7(),
|
|
827
|
-
status: z.enum(WORKER_STATUSES),
|
|
828
|
-
/** A short live line for the card ("editing serialTts.ts"). Optional. */
|
|
829
|
-
detail: z.string().optional(),
|
|
830
|
-
/** This worker's diff size once it has one, for the card's "+N −M". Optional. */
|
|
831
|
-
diffStat: z
|
|
832
|
-
.object({
|
|
833
|
-
added: z.number().int(),
|
|
834
|
-
removed: z.number().int(),
|
|
835
|
-
files: z.number().int(),
|
|
836
|
-
})
|
|
837
|
-
.optional(),
|
|
838
|
-
}),
|
|
839
|
-
z.object({
|
|
840
|
-
// Integration hit a conflict merging a worker onto the fleet branch. Surfaced in the
|
|
841
|
-
// conductor feed (never silently) so the user can hand it back to a worker as a fresh turn.
|
|
842
|
-
// (Legacy combined-integrate path; per-feature delivery opens independent PRs and never
|
|
843
|
-
// merges workers together, so this doesn't fire there.)
|
|
844
|
-
type: z.literal('fleet_conflict'),
|
|
845
|
-
requestId: z.uuidv7(),
|
|
846
|
-
workerId: z.uuidv7(),
|
|
847
|
-
paths: z.array(z.string()),
|
|
848
|
-
message: z.string(),
|
|
849
|
-
}),
|
|
850
|
-
z.object({
|
|
851
|
-
// One worker was delivered as its OWN pull request (per-feature delivery): its branch was
|
|
852
|
-
// pushed and a PR opened against the base. `url` is that worker's PR; `error` a short reason
|
|
853
|
-
// it couldn't open (no remote / no gh / no auth) — the worker's commits still exist on its
|
|
854
|
-
// branch. One of these fires per delivered worker.
|
|
855
|
-
type: z.literal('worker_pr'),
|
|
856
|
-
requestId: z.uuidv7(),
|
|
857
|
-
workerId: z.uuidv7(),
|
|
858
|
-
url: z.string().optional(),
|
|
859
|
-
error: z.string().optional(),
|
|
860
|
-
}),
|
|
861
|
-
z.object({
|
|
862
|
-
// The fan-out finished. Per-feature delivery: `delivered`/`total` count how many workers got
|
|
863
|
-
// their own PR (each worker's URL arrives in its `worker_pr`). No single integration branch.
|
|
864
|
-
type: z.literal('fleet_done'),
|
|
865
|
-
requestId: z.uuidv7(),
|
|
866
|
-
delivered: z.number().int(),
|
|
867
|
-
total: z.number().int(),
|
|
868
|
-
}),
|
|
869
769
|
z.object({
|
|
870
770
|
type: z.literal('error'),
|
|
871
771
|
requestId: z.uuidv7(),
|
|
872
772
|
message: z.string(),
|
|
773
|
+
code: z.string().optional(),
|
|
873
774
|
}),
|
|
874
775
|
// A `cancel` request successfully stopped this in-flight turn.
|
|
875
776
|
z.object({
|
|
@@ -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.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartCapture.d.ts","sourceRoot":"","sources":["../src/smartCapture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;iBAc/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,gFAAgF;AAChF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,EAAE,KAAK,EAAE;IACjE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,GAAG,cAAc,CAajB;AAED,2FAA2F;AAC3F,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,OAAO,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAanD;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;IACjH,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,IAAI,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IACxF,SAAS,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"smartCapture.d.ts","sourceRoot":"","sources":["../src/smartCapture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;iBAc/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,gFAAgF;AAChF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,EAAE,KAAK,EAAE;IACjE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,GAAG,cAAc,CAajB;AAED,2FAA2F;AAC3F,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,OAAO,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAanD;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;IACjH,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,IAAI,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IACxF,SAAS,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;kBAA8C,CAAC;AAEhF,MAAM,MAAM,SAAS,GAAG;IACtB,oEAAoE;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,mBAAmB,wBAAwB,CAAC"}
|
|
@@ -54,3 +54,18 @@ export function formatCapturedDueDate(task) {
|
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
+
/** Bump when the disclosure below changes in a way people should agree to again. */
|
|
58
|
+
export const AI_CONSENT_VERSION = '2026-10-12';
|
|
59
|
+
/**
|
|
60
|
+
* The one wording of what is sent and to whom, shown before anything is transmitted.
|
|
61
|
+
* It names the recipients on purpose: that is the point of asking.
|
|
62
|
+
*/
|
|
63
|
+
export const AI_CONSENT_DISCLOSURE = {
|
|
64
|
+
title: 'Allow AI features?',
|
|
65
|
+
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.',
|
|
66
|
+
allow: 'Allow',
|
|
67
|
+
decline: 'Not now',
|
|
68
|
+
};
|
|
69
|
+
export const AiConsentInputSchema = z.object({ granted: z.boolean() }).strict();
|
|
70
|
+
/** The `code` on a 403 from an AI route when the only thing missing is consent. */
|
|
71
|
+
export const AI_CONSENT_REQUIRED = 'ai_consent_required';
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TASK_SYNC_VERSION = "1";
|
|
3
|
+
export declare const TASK_SYNC_VERSION_HEADER = "X-Lucidity-Sync-Version";
|
|
4
|
+
export declare const TASK_SYNC_OPERATION_HEADER = "X-Lucidity-Operation-Id";
|
|
5
|
+
export declare const OccurrenceIdentitySchema: z.ZodObject<{
|
|
6
|
+
version: z.ZodNumber;
|
|
7
|
+
ordinal: z.ZodNumber;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export declare const TaskSyncActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
kind: z.ZodLiteral<"create_project">;
|
|
11
|
+
data: z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
color: z.ZodOptional<z.ZodString>;
|
|
14
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
isArchived: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
+
aiReviewDepth: z.ZodDefault<z.ZodEnum<{
|
|
17
|
+
deep: "deep";
|
|
18
|
+
light: "light";
|
|
19
|
+
none: "none";
|
|
20
|
+
}>>;
|
|
21
|
+
organizationId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
22
|
+
id: z.ZodUUID;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
+
kind: z.ZodLiteral<"create_milestone">;
|
|
26
|
+
data: z.ZodObject<{
|
|
27
|
+
projectId: z.ZodUUID;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
dueDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
31
|
+
id: z.ZodUUID;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
+
kind: z.ZodLiteral<"reorder">;
|
|
35
|
+
taskIds: z.ZodArray<z.ZodUUID>;
|
|
36
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
|
+
kind: z.ZodLiteral<"create">;
|
|
38
|
+
data: z.ZodObject<{
|
|
39
|
+
captureContext: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
capturedAt: z.ZodISODateTime;
|
|
41
|
+
timeZone: z.ZodString;
|
|
42
|
+
source: z.ZodEnum<{
|
|
43
|
+
web: "web";
|
|
44
|
+
watch: "watch";
|
|
45
|
+
api: "api";
|
|
46
|
+
app: "app";
|
|
47
|
+
shortcut: "shortcut";
|
|
48
|
+
mcp: "mcp";
|
|
49
|
+
daemon: "daemon";
|
|
50
|
+
}>;
|
|
51
|
+
lockedFields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
52
|
+
date: "date";
|
|
53
|
+
project: "project";
|
|
54
|
+
}>>>;
|
|
55
|
+
analyze: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
heard: z.ZodOptional<z.ZodString>;
|
|
57
|
+
readBy: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
phone: "phone";
|
|
59
|
+
jev: "jev";
|
|
60
|
+
}>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
title: z.ZodString;
|
|
63
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
64
|
+
milestoneId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
65
|
+
parentTaskId: z.ZodOptional<z.ZodUUID>;
|
|
66
|
+
assigneeId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
67
|
+
description: z.ZodOptional<z.ZodString>;
|
|
68
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
69
|
+
blocked: "blocked";
|
|
70
|
+
completed: "completed";
|
|
71
|
+
pending: "pending";
|
|
72
|
+
in_progress: "in_progress";
|
|
73
|
+
deferred: "deferred";
|
|
74
|
+
}>>;
|
|
75
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
76
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
completedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
78
|
+
dueDate: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
79
|
+
reminderAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
80
|
+
recurringFrequency: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
81
|
+
daily: "daily";
|
|
82
|
+
weekly: "weekly";
|
|
83
|
+
monthly: "monthly";
|
|
84
|
+
yearly: "yearly";
|
|
85
|
+
}>>>;
|
|
86
|
+
recurrenceTimeZone: z.ZodOptional<z.ZodString>;
|
|
87
|
+
recurrenceAnchor: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
88
|
+
recurringReminder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
89
|
+
daysBefore: z.ZodNumber;
|
|
90
|
+
time: z.ZodString;
|
|
91
|
+
}, z.core.$strip>>>;
|
|
92
|
+
id: z.ZodUUID;
|
|
93
|
+
}, z.core.$strict>;
|
|
94
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
95
|
+
kind: z.ZodLiteral<"update">;
|
|
96
|
+
taskId: z.ZodUUID;
|
|
97
|
+
data: z.ZodObject<{
|
|
98
|
+
title: z.ZodOptional<z.ZodString>;
|
|
99
|
+
completedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
100
|
+
position: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
101
|
+
recurringReminder: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
102
|
+
daysBefore: z.ZodNumber;
|
|
103
|
+
time: z.ZodString;
|
|
104
|
+
}, z.core.$strip>>>>;
|
|
105
|
+
recurrenceTimeZone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
106
|
+
recurrenceAnchor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodISODate>>>;
|
|
107
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
108
|
+
milestoneId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
109
|
+
parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
110
|
+
assigneeId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
111
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
113
|
+
blocked: "blocked";
|
|
114
|
+
completed: "completed";
|
|
115
|
+
pending: "pending";
|
|
116
|
+
in_progress: "in_progress";
|
|
117
|
+
deferred: "deferred";
|
|
118
|
+
}>>;
|
|
119
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
dueDate: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
121
|
+
reminderAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
122
|
+
recurringFrequency: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
123
|
+
daily: "daily";
|
|
124
|
+
weekly: "weekly";
|
|
125
|
+
monthly: "monthly";
|
|
126
|
+
yearly: "yearly";
|
|
127
|
+
}>>>;
|
|
128
|
+
}, z.core.$strict>;
|
|
129
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
130
|
+
kind: z.ZodLiteral<"complete">;
|
|
131
|
+
taskId: z.ZodUUID;
|
|
132
|
+
state: z.ZodEnum<{
|
|
133
|
+
completed: "completed";
|
|
134
|
+
pending: "pending";
|
|
135
|
+
}>;
|
|
136
|
+
occurrenceId: z.ZodOptional<z.ZodUUID>;
|
|
137
|
+
occurrenceIdentity: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
version: z.ZodNumber;
|
|
139
|
+
ordinal: z.ZodNumber;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
142
|
+
kind: z.ZodLiteral<"occurrence">;
|
|
143
|
+
taskId: z.ZodUUID;
|
|
144
|
+
occurrenceId: z.ZodUUID;
|
|
145
|
+
occurrenceIdentity: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
version: z.ZodNumber;
|
|
147
|
+
ordinal: z.ZodNumber;
|
|
148
|
+
}, z.core.$strict>>;
|
|
149
|
+
data: z.ZodObject<{
|
|
150
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
skipped: "skipped";
|
|
152
|
+
completed: "completed";
|
|
153
|
+
pending: "pending";
|
|
154
|
+
}>>;
|
|
155
|
+
dueDate: z.ZodOptional<z.ZodISODate>;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
158
|
+
kind: z.ZodLiteral<"trash">;
|
|
159
|
+
taskId: z.ZodUUID;
|
|
160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
+
kind: z.ZodLiteral<"restore">;
|
|
162
|
+
taskId: z.ZodUUID;
|
|
163
|
+
deletionBatchId: z.ZodUUID;
|
|
164
|
+
}, z.core.$strict>], "kind">;
|
|
165
|
+
export type TaskSyncAction = z.infer<typeof TaskSyncActionSchema>;
|
|
166
|
+
export declare const TaskSyncCommandSchema: z.ZodObject<{
|
|
167
|
+
version: z.ZodLiteral<1>;
|
|
168
|
+
operationId: z.ZodUUID;
|
|
169
|
+
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
170
|
+
kind: z.ZodLiteral<"create_project">;
|
|
171
|
+
data: z.ZodObject<{
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
color: z.ZodOptional<z.ZodString>;
|
|
174
|
+
description: z.ZodOptional<z.ZodString>;
|
|
175
|
+
isArchived: z.ZodDefault<z.ZodBoolean>;
|
|
176
|
+
aiReviewDepth: z.ZodDefault<z.ZodEnum<{
|
|
177
|
+
deep: "deep";
|
|
178
|
+
light: "light";
|
|
179
|
+
none: "none";
|
|
180
|
+
}>>;
|
|
181
|
+
organizationId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
182
|
+
id: z.ZodUUID;
|
|
183
|
+
}, z.core.$strict>;
|
|
184
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
185
|
+
kind: z.ZodLiteral<"create_milestone">;
|
|
186
|
+
data: z.ZodObject<{
|
|
187
|
+
projectId: z.ZodUUID;
|
|
188
|
+
name: z.ZodString;
|
|
189
|
+
description: z.ZodOptional<z.ZodString>;
|
|
190
|
+
dueDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
191
|
+
id: z.ZodUUID;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
194
|
+
kind: z.ZodLiteral<"reorder">;
|
|
195
|
+
taskIds: z.ZodArray<z.ZodUUID>;
|
|
196
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
+
kind: z.ZodLiteral<"create">;
|
|
198
|
+
data: z.ZodObject<{
|
|
199
|
+
captureContext: z.ZodOptional<z.ZodObject<{
|
|
200
|
+
capturedAt: z.ZodISODateTime;
|
|
201
|
+
timeZone: z.ZodString;
|
|
202
|
+
source: z.ZodEnum<{
|
|
203
|
+
web: "web";
|
|
204
|
+
watch: "watch";
|
|
205
|
+
api: "api";
|
|
206
|
+
app: "app";
|
|
207
|
+
shortcut: "shortcut";
|
|
208
|
+
mcp: "mcp";
|
|
209
|
+
daemon: "daemon";
|
|
210
|
+
}>;
|
|
211
|
+
lockedFields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
212
|
+
date: "date";
|
|
213
|
+
project: "project";
|
|
214
|
+
}>>>;
|
|
215
|
+
analyze: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
+
heard: z.ZodOptional<z.ZodString>;
|
|
217
|
+
readBy: z.ZodOptional<z.ZodEnum<{
|
|
218
|
+
phone: "phone";
|
|
219
|
+
jev: "jev";
|
|
220
|
+
}>>;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
title: z.ZodString;
|
|
223
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
224
|
+
milestoneId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
225
|
+
parentTaskId: z.ZodOptional<z.ZodUUID>;
|
|
226
|
+
assigneeId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
227
|
+
description: z.ZodOptional<z.ZodString>;
|
|
228
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
229
|
+
blocked: "blocked";
|
|
230
|
+
completed: "completed";
|
|
231
|
+
pending: "pending";
|
|
232
|
+
in_progress: "in_progress";
|
|
233
|
+
deferred: "deferred";
|
|
234
|
+
}>>;
|
|
235
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
236
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
completedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
238
|
+
dueDate: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
239
|
+
reminderAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
240
|
+
recurringFrequency: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
241
|
+
daily: "daily";
|
|
242
|
+
weekly: "weekly";
|
|
243
|
+
monthly: "monthly";
|
|
244
|
+
yearly: "yearly";
|
|
245
|
+
}>>>;
|
|
246
|
+
recurrenceTimeZone: z.ZodOptional<z.ZodString>;
|
|
247
|
+
recurrenceAnchor: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
248
|
+
recurringReminder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
249
|
+
daysBefore: z.ZodNumber;
|
|
250
|
+
time: z.ZodString;
|
|
251
|
+
}, z.core.$strip>>>;
|
|
252
|
+
id: z.ZodUUID;
|
|
253
|
+
}, z.core.$strict>;
|
|
254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
255
|
+
kind: z.ZodLiteral<"update">;
|
|
256
|
+
taskId: z.ZodUUID;
|
|
257
|
+
data: z.ZodObject<{
|
|
258
|
+
title: z.ZodOptional<z.ZodString>;
|
|
259
|
+
completedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
260
|
+
position: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
261
|
+
recurringReminder: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
262
|
+
daysBefore: z.ZodNumber;
|
|
263
|
+
time: z.ZodString;
|
|
264
|
+
}, z.core.$strip>>>>;
|
|
265
|
+
recurrenceTimeZone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
266
|
+
recurrenceAnchor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodISODate>>>;
|
|
267
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
268
|
+
milestoneId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
269
|
+
parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
270
|
+
assigneeId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
271
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
273
|
+
blocked: "blocked";
|
|
274
|
+
completed: "completed";
|
|
275
|
+
pending: "pending";
|
|
276
|
+
in_progress: "in_progress";
|
|
277
|
+
deferred: "deferred";
|
|
278
|
+
}>>;
|
|
279
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
280
|
+
dueDate: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
281
|
+
reminderAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
282
|
+
recurringFrequency: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
283
|
+
daily: "daily";
|
|
284
|
+
weekly: "weekly";
|
|
285
|
+
monthly: "monthly";
|
|
286
|
+
yearly: "yearly";
|
|
287
|
+
}>>>;
|
|
288
|
+
}, z.core.$strict>;
|
|
289
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
290
|
+
kind: z.ZodLiteral<"complete">;
|
|
291
|
+
taskId: z.ZodUUID;
|
|
292
|
+
state: z.ZodEnum<{
|
|
293
|
+
completed: "completed";
|
|
294
|
+
pending: "pending";
|
|
295
|
+
}>;
|
|
296
|
+
occurrenceId: z.ZodOptional<z.ZodUUID>;
|
|
297
|
+
occurrenceIdentity: z.ZodOptional<z.ZodObject<{
|
|
298
|
+
version: z.ZodNumber;
|
|
299
|
+
ordinal: z.ZodNumber;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
302
|
+
kind: z.ZodLiteral<"occurrence">;
|
|
303
|
+
taskId: z.ZodUUID;
|
|
304
|
+
occurrenceId: z.ZodUUID;
|
|
305
|
+
occurrenceIdentity: z.ZodOptional<z.ZodObject<{
|
|
306
|
+
version: z.ZodNumber;
|
|
307
|
+
ordinal: z.ZodNumber;
|
|
308
|
+
}, z.core.$strict>>;
|
|
309
|
+
data: z.ZodObject<{
|
|
310
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
311
|
+
skipped: "skipped";
|
|
312
|
+
completed: "completed";
|
|
313
|
+
pending: "pending";
|
|
314
|
+
}>>;
|
|
315
|
+
dueDate: z.ZodOptional<z.ZodISODate>;
|
|
316
|
+
}, z.core.$strict>;
|
|
317
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
318
|
+
kind: z.ZodLiteral<"trash">;
|
|
319
|
+
taskId: z.ZodUUID;
|
|
320
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
321
|
+
kind: z.ZodLiteral<"restore">;
|
|
322
|
+
taskId: z.ZodUUID;
|
|
323
|
+
deletionBatchId: z.ZodUUID;
|
|
324
|
+
}, z.core.$strict>], "kind">;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
export type TaskSyncCommand = z.infer<typeof TaskSyncCommandSchema>;
|
|
327
|
+
export declare const TaskSyncAckSchema: z.ZodObject<{
|
|
328
|
+
operationId: z.ZodUUID;
|
|
329
|
+
accepted: z.ZodLiteral<true>;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
export declare function taskSyncRequest(command: TaskSyncCommand): {
|
|
332
|
+
path: string;
|
|
333
|
+
method: string;
|
|
334
|
+
body: string | undefined;
|
|
335
|
+
headers: {
|
|
336
|
+
"X-Lucidity-Sync-Version": string;
|
|
337
|
+
"X-Lucidity-Operation-Id": string;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
/** Restrict retryable uploads to the domain actions covered by this protocol. */
|
|
341
|
+
export declare function parseTaskSyncAction(method: string, path: string, body: unknown): TaskSyncAction;
|
|
342
|
+
//# sourceMappingURL=taskSync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskSync.d.ts","sourceRoot":"","sources":["../src/taskSync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,wBAAwB,4BAA4B,CAAC;AAClE,eAAO,MAAM,0BAA0B,4BAA4B,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;kBAAwG,CAAC;AAE9I,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAU/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAIvB,CAAC;AACZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,iBAAiB;;;iBAAiE,CAAC;AAEhG,wBAAgB,eAAe,CAAC,OAAO,EAAE,eAAe;;;;;;;;EAqBvD;AAED,iFAAiF;AACjF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,cAAc,CAsB/F"}
|