@opencorelabs/lucidity 0.3.0 → 0.7.0
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 +18 -3
- package/dist/assets/speech/licenses/FluidAudio/LICENSE +201 -0
- package/dist/assets/speech/licenses/FluidAudio/ThirdPartyLicenses/fastcluster-LICENSE.md +11 -0
- package/dist/assets/speech/licenses/FluidAudio/ThirdPartyLicenses/vbx-LICENSE.md +201 -0
- package/dist/assets/speech/lucidity-speech +0 -0
- package/dist/automations/agent.d.ts +16 -0
- package/dist/automations/agent.d.ts.map +1 -0
- package/dist/automations/agent.js +196 -0
- package/dist/automations/cli.d.ts +4 -0
- package/dist/automations/cli.d.ts.map +1 -0
- package/dist/automations/cli.js +44 -0
- package/dist/automations/connections.d.ts +11 -0
- package/dist/automations/connections.d.ts.map +1 -0
- package/dist/automations/connections.js +74 -0
- package/dist/automations/designer.d.ts +39 -0
- package/dist/automations/designer.d.ts.map +1 -0
- package/dist/automations/designer.js +450 -0
- package/dist/automations/history.d.ts +4 -0
- package/dist/automations/history.d.ts.map +1 -0
- package/dist/automations/history.js +57 -0
- package/dist/automations/learning.d.ts +19 -0
- package/dist/automations/learning.d.ts.map +1 -0
- package/dist/automations/learning.js +121 -0
- package/dist/automations/pinterest.d.ts +21 -0
- package/dist/automations/pinterest.d.ts.map +1 -0
- package/dist/automations/pinterest.js +113 -0
- package/dist/automations/service.d.ts +42 -0
- package/dist/automations/service.d.ts.map +1 -0
- package/dist/automations/service.js +406 -0
- package/dist/automations/setup.d.ts +3 -0
- package/dist/automations/setup.d.ts.map +1 -0
- package/dist/automations/setup.js +48 -0
- package/dist/automations/skill.d.ts +3 -0
- package/dist/automations/skill.d.ts.map +1 -0
- package/dist/automations/skill.js +29 -0
- package/dist/automations/store.d.ts +13 -0
- package/dist/automations/store.d.ts.map +1 -0
- package/dist/automations/store.js +46 -0
- package/dist/chat/server.d.ts +2 -0
- package/dist/chat/server.d.ts.map +1 -1
- package/dist/chat/server.js +46 -2
- package/dist/coding/commandContext.d.ts +6 -0
- package/dist/coding/commandContext.d.ts.map +1 -0
- package/dist/coding/commandContext.js +20 -0
- package/dist/coding/runCodeTurn.d.ts +12 -2
- package/dist/coding/runCodeTurn.d.ts.map +1 -1
- package/dist/coding/runCodeTurn.js +49 -19
- package/dist/coding/worktree.d.ts +3 -4
- package/dist/coding/worktree.d.ts.map +1 -1
- package/dist/coding/worktree.js +3 -4
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +20 -3
- package/dist/decisions/cli.d.ts +2 -0
- package/dist/decisions/cli.d.ts.map +1 -0
- package/dist/decisions/cli.js +106 -0
- package/dist/decisions/client.d.ts +20 -0
- package/dist/decisions/client.d.ts.map +1 -0
- package/dist/decisions/client.js +41 -0
- package/dist/handoff.d.ts +11 -0
- package/dist/handoff.d.ts.map +1 -0
- package/dist/handoff.js +21 -0
- package/dist/index.js +185 -40
- package/dist/jobs/briefing.js +1 -1
- package/dist/jobs/extraction.d.ts.map +1 -1
- package/dist/jobs/extraction.js +112 -22
- package/dist/jobs/fastModeReview.d.ts +39 -0
- package/dist/jobs/fastModeReview.d.ts.map +1 -0
- package/dist/jobs/fastModeReview.js +192 -0
- package/dist/jobs/voiceReview.d.ts +24 -0
- package/dist/jobs/voiceReview.d.ts.map +1 -0
- package/dist/jobs/voiceReview.js +128 -0
- package/dist/mcp/clients.d.ts +5 -0
- package/dist/mcp/clients.d.ts.map +1 -1
- package/dist/mcp/clients.js +1 -1
- package/dist/mcp/config.d.ts +3 -1
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +48 -6
- package/dist/mcp/paired.js +1 -0
- package/dist/notesContext.d.ts.map +1 -1
- package/dist/notesContext.js +3 -2
- package/dist/room/client.d.ts +20 -7
- package/dist/room/client.d.ts.map +1 -1
- package/dist/room/client.js +266 -47
- package/dist/room/computer.d.ts.map +1 -1
- package/dist/room/computer.js +9 -0
- package/dist/room/context.d.ts +3 -2
- package/dist/room/context.d.ts.map +1 -1
- package/dist/room/context.js +10 -3
- package/dist/room/turnQueue.d.ts +40 -0
- package/dist/room/turnQueue.d.ts.map +1 -0
- package/dist/room/turnQueue.js +301 -0
- package/dist/skills/lucidity-automations/SKILL.md +54 -0
- package/dist/speech/captures.d.ts +30 -0
- package/dist/speech/captures.d.ts.map +1 -0
- package/dist/speech/captures.js +209 -0
- package/dist/speech/fluidAudio.d.ts +28 -0
- package/dist/speech/fluidAudio.d.ts.map +1 -0
- package/dist/speech/fluidAudio.js +182 -0
- package/dist/speech/service.d.ts +14 -0
- package/dist/speech/service.d.ts.map +1 -0
- package/dist/speech/service.js +88 -0
- package/dist/speech/types.d.ts +19 -0
- package/dist/speech/types.d.ts.map +1 -0
- package/dist/speech/types.js +1 -0
- package/dist/turnLog.d.ts +1 -0
- package/dist/turnLog.d.ts.map +1 -1
- package/dist/turnLog.js +3 -0
- package/native/speech/Package.resolved +15 -0
- package/native/speech/Package.swift +16 -0
- package/native/speech/Sources/lucidity-speech/Speech.swift +81 -0
- package/package.json +6 -2
- package/src/automations/agent.ts +239 -0
- package/src/automations/cli.ts +52 -0
- package/src/automations/connections.ts +83 -0
- package/src/automations/designer.ts +594 -0
- package/src/automations/history.ts +59 -0
- package/src/automations/learning.ts +180 -0
- package/src/automations/pinterest.ts +146 -0
- package/src/automations/service.ts +505 -0
- package/src/automations/setup.ts +71 -0
- package/src/automations/skill.ts +40 -0
- package/src/automations/store.ts +63 -0
- package/src/chat/server.ts +62 -3
- package/src/coding/commandContext.ts +29 -0
- package/src/coding/runCodeTurn.ts +65 -21
- package/src/coding/worktree.ts +3 -4
- package/src/config.ts +29 -2
- package/src/decisions/cli.ts +136 -0
- package/src/decisions/client.ts +62 -0
- package/src/handoff.ts +28 -0
- package/src/index.ts +202 -67
- package/src/jobs/briefing.ts +1 -1
- package/src/jobs/extraction.ts +157 -32
- package/src/jobs/fastModeReview.ts +221 -0
- package/src/jobs/voiceReview.ts +156 -0
- package/src/mcp/clients.ts +1 -1
- package/src/mcp/config.ts +56 -6
- package/src/mcp/paired.ts +1 -0
- package/src/notesContext.ts +3 -2
- package/src/room/client.ts +320 -54
- package/src/room/computer.ts +9 -0
- package/src/room/context.ts +12 -3
- package/src/room/turnQueue.ts +358 -0
- package/src/speech/captures.ts +265 -0
- package/src/speech/fluidAudio.ts +242 -0
- package/src/speech/service.ts +108 -0
- package/src/speech/types.ts +13 -0
- package/src/turnLog.ts +4 -0
- package/vendor/decisions/LICENSE +662 -0
- package/vendor/decisions/dist/capture.d.ts +79 -0
- package/vendor/decisions/dist/capture.js +183 -0
- package/vendor/decisions/dist/command.d.ts +202 -0
- package/vendor/decisions/dist/command.js +750 -0
- package/vendor/decisions/dist/dayPlan.d.ts +9 -0
- package/vendor/decisions/dist/dayPlan.js +82 -0
- package/vendor/decisions/dist/gate.d.ts +12 -0
- package/vendor/decisions/dist/gate.js +18 -0
- package/vendor/decisions/dist/index.d.ts +6 -0
- package/vendor/decisions/dist/index.js +6 -0
- package/vendor/decisions/dist/jev.d.ts +15 -0
- package/vendor/decisions/dist/jev.js +244 -0
- package/vendor/decisions/dist/types.d.ts +67 -0
- package/vendor/decisions/dist/types.js +1 -0
- package/vendor/decisions/package.json +22 -0
- package/vendor/decisions/src/capture.ts +199 -0
- package/vendor/decisions/src/command.ts +836 -0
- package/vendor/decisions/src/dayPlan.ts +80 -0
- package/vendor/decisions/src/gate.ts +32 -0
- package/vendor/decisions/src/index.ts +6 -0
- package/vendor/decisions/src/jev.ts +295 -0
- package/vendor/decisions/src/types.ts +79 -0
- package/vendor/mcp-server/README.md +6 -1
- package/vendor/mcp-server/dist/client.d.ts +1 -0
- package/vendor/mcp-server/dist/client.d.ts.map +1 -1
- package/vendor/mcp-server/dist/client.js +8 -0
- package/vendor/mcp-server/dist/commentProvider.d.ts +3 -0
- package/vendor/mcp-server/dist/commentProvider.d.ts.map +1 -0
- package/vendor/mcp-server/dist/commentProvider.js +10 -0
- package/vendor/mcp-server/dist/index.js +21 -6
- package/vendor/mcp-server/dist/tools/automations.d.ts +6 -0
- package/vendor/mcp-server/dist/tools/automations.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/automations.js +163 -0
- package/vendor/mcp-server/dist/tools/commandEventFormat.d.ts +52 -0
- package/vendor/mcp-server/dist/tools/commandEventFormat.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/commandEventFormat.js +83 -0
- package/vendor/mcp-server/dist/tools/commandEvents.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/commandEvents.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/commandEvents.js +21 -0
- package/vendor/mcp-server/dist/tools/comments.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/comments.js +25 -4
- package/vendor/mcp-server/dist/tools/index.d.ts +2 -0
- package/vendor/mcp-server/dist/tools/index.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/index.js +2 -0
- package/vendor/mcp-server/dist/tools/journal.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/journal.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/journal.js +131 -0
- package/vendor/mcp-server/dist/tools/taskActivity.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/taskActivity.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/taskActivity.js +32 -0
- package/vendor/mcp-server/dist/tools/taskOccurrences.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/taskOccurrences.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/taskOccurrences.js +12 -0
- package/vendor/mcp-server/dist/tools/taskTrash.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/taskTrash.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/taskTrash.js +21 -0
- package/vendor/mcp-server/dist/tools/tasks.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/tasks.js +67 -27
- package/vendor/mcp-server/package.json +5 -1
- package/vendor/mcp-server/src/client.ts +10 -0
- package/vendor/mcp-server/src/commentProvider.ts +9 -0
- package/vendor/mcp-server/src/index.ts +20 -6
- package/vendor/mcp-server/src/tools/automations.ts +199 -0
- package/vendor/mcp-server/src/tools/commandEventFormat.ts +108 -0
- package/vendor/mcp-server/src/tools/commandEvents.ts +27 -0
- package/vendor/mcp-server/src/tools/comments.ts +24 -3
- package/vendor/mcp-server/src/tools/index.ts +2 -0
- package/vendor/mcp-server/src/tools/journal.ts +168 -0
- package/vendor/mcp-server/src/tools/taskActivity.ts +55 -0
- package/vendor/mcp-server/src/tools/taskOccurrences.ts +26 -0
- package/vendor/mcp-server/src/tools/taskTrash.ts +23 -0
- package/vendor/mcp-server/src/tools/tasks.ts +66 -30
- package/vendor/notes/dist/index.d.ts +2 -0
- package/vendor/notes/dist/index.d.ts.map +1 -1
- package/vendor/notes/dist/index.js +2 -0
- package/vendor/notes/dist/journal-backend.d.ts +4 -0
- package/vendor/notes/dist/journal-backend.d.ts.map +1 -0
- package/vendor/notes/dist/journal-backend.js +33 -0
- package/vendor/notes/dist/journal.d.ts +7 -0
- package/vendor/notes/dist/journal.d.ts.map +1 -0
- package/vendor/notes/dist/journal.js +173 -0
- package/vendor/notes/dist/vault.d.ts.map +1 -1
- package/vendor/notes/dist/vault.js +6 -1
- package/vendor/notes/src/index.ts +2 -0
- package/vendor/notes/src/journal-backend.ts +53 -0
- package/vendor/notes/src/journal.ts +194 -0
- package/vendor/notes/src/vault.ts +9 -1
- package/vendor/runtime/README.md +4 -0
- package/vendor/runtime/dist/executor/claudeAgent.d.ts +2 -0
- package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/claudeAgent.js +117 -8
- package/vendor/runtime/dist/executor/claudeCode.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/claudeCode.js +8 -4
- package/vendor/runtime/dist/executor/codex.d.ts +2 -0
- package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codex.js +214 -11
- package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/PlanType.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CreditsSnapshot.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CreditsSnapshot.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CreditsSnapshot.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts +26 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitReachedType.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitReachedType.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitReachedType.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetCredit.d.ts +27 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetCredit.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetCredit.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetCreditStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetCreditStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetCreditStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetCreditsSummary.d.ts +13 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetCreditsSummary.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetCreditsSummary.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetType.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetType.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitResetType.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts +20 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitWindow.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitWindow.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitWindow.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewDelivery.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewDelivery.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewDelivery.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts +12 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewTarget.d.ts +17 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewTarget.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewTarget.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillDependencies.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillDependencies.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillDependencies.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillErrorInfo.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillErrorInfo.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillErrorInfo.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillInterface.d.ts +18 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillInterface.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillInterface.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillMetadata.d.ts +22 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillMetadata.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillMetadata.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillScope.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillScope.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillScope.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillToolDependency.d.ts +9 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillToolDependency.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillToolDependency.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillsListEntry.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillsListEntry.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillsListEntry.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillsListResponse.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillsListResponse.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SkillsListResponse.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SpendControlLimitSnapshot.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SpendControlLimitSnapshot.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SpendControlLimitSnapshot.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSetNameParams.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSetNameParams.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSetNameParams.js +2 -0
- package/vendor/runtime/dist/executor/health.d.ts +1 -0
- package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/health.js +3 -0
- package/vendor/runtime/dist/executor/liveTurns.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/liveTurns.js +3 -0
- package/vendor/runtime/dist/executor/providerRouter.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/providerRouter.js +2 -1
- package/vendor/runtime/dist/executor/types.d.ts +10 -0
- package/vendor/runtime/dist/executor/types.d.ts.map +1 -1
- package/vendor/runtime/dist/harness/index.d.ts +2 -0
- package/vendor/runtime/dist/harness/index.d.ts.map +1 -1
- package/vendor/runtime/dist/harness/index.js +46 -1
- package/vendor/runtime/dist/harness/types.d.ts +5 -1
- package/vendor/runtime/dist/harness/types.d.ts.map +1 -1
- 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 +2 -0
- package/vendor/runtime/dist/journal/context.d.ts +18 -0
- package/vendor/runtime/dist/journal/context.d.ts.map +1 -1
- package/vendor/runtime/dist/journal/context.js +19 -5
- package/vendor/runtime/dist/prompts/briefing.d.ts +4 -7
- package/vendor/runtime/dist/prompts/briefing.d.ts.map +1 -1
- package/vendor/runtime/dist/prompts/briefing.js +61 -12
- package/vendor/runtime/dist/prompts/cardStatement.d.ts +7 -0
- package/vendor/runtime/dist/prompts/cardStatement.d.ts.map +1 -0
- package/vendor/runtime/dist/prompts/cardStatement.js +52 -0
- package/vendor/runtime/dist/prompts/chat.d.ts +1 -0
- package/vendor/runtime/dist/prompts/chat.d.ts.map +1 -1
- package/vendor/runtime/dist/prompts/chat.js +15 -1
- package/vendor/runtime/dist/prompts/dayPlanning.d.ts +44 -0
- package/vendor/runtime/dist/prompts/dayPlanning.d.ts.map +1 -0
- package/vendor/runtime/dist/prompts/dayPlanning.js +42 -0
- package/vendor/runtime/dist/prompts/projectCapture.d.ts +7 -0
- package/vendor/runtime/dist/prompts/projectCapture.d.ts.map +1 -0
- package/vendor/runtime/dist/prompts/projectCapture.js +31 -0
- package/vendor/runtime/src/executor/claudeAgent.ts +137 -7
- package/vendor/runtime/src/executor/claudeCode.ts +6 -4
- package/vendor/runtime/src/executor/codex.ts +281 -20
- package/vendor/runtime/src/executor/codexProtocol/PlanType.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CreditsSnapshot.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/GetAccountRateLimitsResponse.ts +25 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitReachedType.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitResetCredit.ts +27 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitResetCreditStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitResetCreditsSummary.ts +14 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitResetType.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitSnapshot.ts +14 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitWindow.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ReviewDelivery.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ReviewStartParams.ts +12 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ReviewTarget.ts +9 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SkillDependencies.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SkillErrorInfo.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SkillInterface.ts +14 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SkillMetadata.ts +17 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SkillScope.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SkillToolDependency.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SkillsListEntry.ts +7 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SkillsListResponse.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SpendControlLimitSnapshot.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSetNameParams.ts +5 -0
- package/vendor/runtime/src/executor/health.ts +3 -0
- package/vendor/runtime/src/executor/liveTurns.ts +3 -0
- package/vendor/runtime/src/executor/providerRouter.ts +2 -1
- package/vendor/runtime/src/executor/types.ts +10 -0
- package/vendor/runtime/src/harness/index.ts +51 -6
- package/vendor/runtime/src/harness/types.ts +5 -1
- package/vendor/runtime/src/index.ts +4 -1
- package/vendor/runtime/src/journal/context.ts +40 -7
- package/vendor/runtime/src/prompts/briefing.ts +62 -17
- package/vendor/runtime/src/prompts/cardStatement.ts +64 -0
- package/vendor/runtime/src/prompts/chat.ts +25 -3
- package/vendor/runtime/src/prompts/dayPlanning.ts +46 -0
- package/vendor/runtime/src/prompts/projectCapture.ts +51 -0
- package/vendor/shared/dist/agentCommands.d.ts +22 -0
- package/vendor/shared/dist/agentCommands.d.ts.map +1 -0
- package/vendor/shared/dist/agentCommands.js +11 -0
- package/vendor/shared/dist/automationTemplates.d.ts +37 -0
- package/vendor/shared/dist/automationTemplates.d.ts.map +1 -0
- package/vendor/shared/dist/automationTemplates.js +48 -0
- package/vendor/shared/dist/automations.d.ts +1052 -0
- package/vendor/shared/dist/automations.d.ts.map +1 -0
- package/vendor/shared/dist/automations.js +300 -0
- package/vendor/shared/dist/cardStatement.d.ts +28 -0
- package/vendor/shared/dist/cardStatement.d.ts.map +1 -0
- package/vendor/shared/dist/cardStatement.js +37 -0
- package/vendor/shared/dist/cardStudio.d.ts +756 -0
- package/vendor/shared/dist/cardStudio.d.ts.map +1 -0
- package/vendor/shared/dist/cardStudio.js +297 -0
- package/vendor/shared/dist/commandLocal.d.ts +218 -0
- package/vendor/shared/dist/commandLocal.d.ts.map +1 -0
- package/vendor/shared/dist/commandLocal.js +664 -0
- package/vendor/shared/dist/commandText.d.ts +12 -0
- package/vendor/shared/dist/commandText.d.ts.map +1 -0
- package/vendor/shared/dist/commandText.js +21 -0
- package/vendor/shared/dist/commands.d.ts +1534 -0
- package/vendor/shared/dist/commands.d.ts.map +1 -0
- package/vendor/shared/dist/commands.js +233 -0
- package/vendor/shared/dist/computer.d.ts +9 -9
- package/vendor/shared/dist/computer.d.ts.map +1 -1
- package/vendor/shared/dist/computer.js +12 -2
- 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 +9 -2
- package/vendor/shared/dist/dayPlan.d.ts +86 -0
- package/vendor/shared/dist/dayPlan.d.ts.map +1 -0
- package/vendor/shared/dist/dayPlan.js +46 -0
- package/vendor/shared/dist/dayPlanning.d.ts +139 -0
- package/vendor/shared/dist/dayPlanning.d.ts.map +1 -0
- package/vendor/shared/dist/dayPlanning.js +67 -0
- package/vendor/shared/dist/githubContributions.d.ts +93 -0
- package/vendor/shared/dist/githubContributions.d.ts.map +1 -0
- package/vendor/shared/dist/githubContributions.js +54 -0
- package/vendor/shared/dist/habitContributions.d.ts +26 -0
- package/vendor/shared/dist/habitContributions.d.ts.map +1 -0
- package/vendor/shared/dist/habitContributions.js +119 -0
- package/vendor/shared/dist/index.d.ts +28 -2
- package/vendor/shared/dist/index.d.ts.map +1 -1
- package/vendor/shared/dist/index.js +25 -2
- package/vendor/shared/dist/journal-migration.d.ts +29 -0
- package/vendor/shared/dist/journal-migration.d.ts.map +1 -0
- package/vendor/shared/dist/journal-migration.js +73 -0
- package/vendor/shared/dist/journal-vault.d.ts +414 -0
- package/vendor/shared/dist/journal-vault.d.ts.map +1 -0
- package/vendor/shared/dist/journal-vault.js +972 -0
- package/vendor/shared/dist/projectCapture.d.ts +73 -0
- package/vendor/shared/dist/projectCapture.d.ts.map +1 -0
- package/vendor/shared/dist/projectCapture.js +66 -0
- package/vendor/shared/dist/quickAdd.d.ts +90 -0
- package/vendor/shared/dist/quickAdd.d.ts.map +1 -0
- package/vendor/shared/dist/quickAdd.js +260 -0
- package/vendor/shared/dist/recurrence.d.ts +44 -0
- package/vendor/shared/dist/recurrence.d.ts.map +1 -0
- package/vendor/shared/dist/recurrence.js +37 -0
- package/vendor/shared/dist/reminderWords.d.ts +11 -0
- package/vendor/shared/dist/reminderWords.d.ts.map +1 -0
- package/vendor/shared/dist/reminderWords.js +63 -0
- package/vendor/shared/dist/schemas/comment.d.ts +13 -1
- package/vendor/shared/dist/schemas/comment.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/comment.js +5 -0
- package/vendor/shared/dist/schemas/conversation.d.ts +3 -3
- package/vendor/shared/dist/schemas/harness.d.ts +976 -59
- package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/harness.js +124 -3
- package/vendor/shared/dist/schemas/journal.d.ts +10 -0
- package/vendor/shared/dist/schemas/journal.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/journal.js +10 -2
- package/vendor/shared/dist/schemas/notification.d.ts +1 -1
- package/vendor/shared/dist/schemas/organization.d.ts +3 -2
- package/vendor/shared/dist/schemas/organization.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/organization.js +3 -2
- package/vendor/shared/dist/schemas/proposal.d.ts +7 -3
- package/vendor/shared/dist/schemas/proposal.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/proposal.js +2 -1
- package/vendor/shared/dist/schemas/request.d.ts +44 -4
- package/vendor/shared/dist/schemas/request.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/task.d.ts +83 -8
- package/vendor/shared/dist/schemas/task.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/task.js +20 -2
- package/vendor/shared/dist/schemas/timeSession.d.ts +2 -2
- package/vendor/shared/dist/smartCapture.d.ts +60 -0
- package/vendor/shared/dist/smartCapture.d.ts.map +1 -0
- package/vendor/shared/dist/smartCapture.js +56 -0
- package/vendor/shared/dist/speech.d.ts +39 -0
- package/vendor/shared/dist/speech.d.ts.map +1 -0
- package/vendor/shared/dist/speech.js +36 -0
- package/vendor/shared/dist/spokenNames.d.ts +25 -0
- package/vendor/shared/dist/spokenNames.d.ts.map +1 -0
- package/vendor/shared/dist/spokenNames.js +120 -0
- package/vendor/shared/dist/taskActivity.d.ts +76 -0
- package/vendor/shared/dist/taskActivity.d.ts.map +1 -0
- package/vendor/shared/dist/taskActivity.js +27 -0
- package/vendor/shared/dist/vault-search.d.ts +50 -0
- package/vendor/shared/dist/vault-search.d.ts.map +1 -0
- package/vendor/shared/dist/vault-search.js +177 -0
- package/vendor/shared/dist/voiceCapture.d.ts +32 -0
- package/vendor/shared/dist/voiceCapture.d.ts.map +1 -0
- package/vendor/shared/dist/voiceCapture.js +29 -0
- package/vendor/shared/package.json +4 -0
- package/vendor/shared/src/agentCommands.ts +35 -0
- package/vendor/shared/src/automationTemplates.ts +54 -0
- package/vendor/shared/src/automations.ts +329 -0
- package/vendor/shared/src/cardStatement.ts +49 -0
- package/vendor/shared/src/cardStudio.ts +340 -0
- package/vendor/shared/src/commandLocal.ts +740 -0
- package/vendor/shared/src/commandText.ts +25 -0
- package/vendor/shared/src/commands.ts +255 -0
- package/vendor/shared/src/computer.ts +25 -6
- package/vendor/shared/src/constants.ts +9 -2
- package/vendor/shared/src/dayPlan.ts +81 -0
- package/vendor/shared/src/dayPlanning.ts +77 -0
- package/vendor/shared/src/githubContributions.ts +70 -0
- package/vendor/shared/src/habitContributions.ts +144 -0
- package/vendor/shared/src/index.ts +44 -1
- package/vendor/shared/src/journal-migration.ts +130 -0
- package/vendor/shared/src/journal-vault.ts +1240 -0
- package/vendor/shared/src/projectCapture.ts +86 -0
- package/vendor/shared/src/quickAdd.ts +310 -0
- package/vendor/shared/src/recurrence.ts +37 -0
- package/vendor/shared/src/reminderWords.ts +54 -0
- package/vendor/shared/src/schemas/comment.ts +5 -0
- package/vendor/shared/src/schemas/harness.ts +146 -7
- package/vendor/shared/src/schemas/journal.ts +15 -6
- package/vendor/shared/src/schemas/organization.ts +3 -2
- package/vendor/shared/src/schemas/proposal.ts +6 -1
- package/vendor/shared/src/schemas/task.ts +20 -2
- package/vendor/shared/src/smartCapture.ts +67 -0
- package/vendor/shared/src/speech.ts +44 -0
- package/vendor/shared/src/spokenNames.ts +128 -0
- package/vendor/shared/src/taskActivity.ts +34 -0
- package/vendor/shared/src/vault-search.ts +243 -0
- package/vendor/shared/src/voiceCapture.ts +34 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/schemas/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/schemas/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsDxB,eAAO,MAAM,kBAAkB;;;;;;;;iBAI7B,CAAC;AAKH;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe3B,CAAC;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;iBAEhC,CAAC;AAIH,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAI/B,CAAC;AAKH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4B5B,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;iBAEhC,CAAC;AAKH,eAAO,MAAM,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;;;iBAajC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyBhC,CAAC;AAcH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0InC,CAAC;AAQH,eAAO,MAAM,oBAAoB;;;;;;;;iBAK/B,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { VoiceCaptureAudioSchema, VoiceCaptureReceiptSchema, } from '../voiceCapture.js';
|
|
3
|
+
import { ComputerSpeechSchema, SpeechAudioSchema, SpeechModelIdSchema, SpeechTranscriptSchema, } from '../speech.js';
|
|
4
|
+
import { AutomationCommandSchema, AutomationSnapshotSchema, } from '../automations.js';
|
|
5
|
+
import { DayPlanningContextSchema } from '../dayPlanning.js';
|
|
6
|
+
import { ProjectPlanningContextSchema } from '../projectCapture.js';
|
|
7
|
+
import { validatedCardSegments } from '../cardStatement.js';
|
|
2
8
|
import { SENDER_KINDS, APPROVAL_DECISIONS, WORKSPACE_MODES, WORKER_STATUSES, EFFORT_LEVELS, DELIVERY_CHANNELS, AGENT_MODES, } from '../constants.js';
|
|
3
9
|
/**
|
|
4
10
|
* The Lucid harness wire contract (M6). One shape that every transport speaks:
|
|
@@ -29,14 +35,34 @@ export const HarnessImageSchema = z.object({
|
|
|
29
35
|
});
|
|
30
36
|
// At most a handful per turn — keeps the worst-case replay-buffer footprint bounded.
|
|
31
37
|
const harnessImagesField = z.array(HarnessImageSchema).max(6).optional();
|
|
38
|
+
/**
|
|
39
|
+
* Carries a conversation over to the other provider, for when its own provider has run out of
|
|
40
|
+
* allowance or the user switches. The provider sessions can't share memory, so the new one gets
|
|
41
|
+
* the conversation as the phone shows it. Only read on a turn with no `resume`.
|
|
42
|
+
*/
|
|
43
|
+
export const ProviderHandoffSchema = z.object({
|
|
44
|
+
from: z.enum(['claude', 'codex']),
|
|
45
|
+
/** Oldest first, already trimmed by the phone to its most recent part. */
|
|
46
|
+
transcript: z.string().min(1).max(120_000),
|
|
47
|
+
});
|
|
48
|
+
/** Start a new session on this provider instead of the configured default. Ignored with `resume`. */
|
|
49
|
+
const providerField = z.enum(['claude', 'codex']).optional();
|
|
32
50
|
// One-shot question to Lucid ("Ask Lucid"). The only kind that carries free text.
|
|
33
51
|
export const AskRequestSchema = HarnessRequestBase.extend({
|
|
34
52
|
kind: z.literal('ask'),
|
|
35
53
|
prompt: z.string().min(1).max(8000),
|
|
54
|
+
/** Feature-gated, tool-free project interpretation; never resumes a chat session. */
|
|
55
|
+
projectPlan: ProjectPlanningContextSchema.optional(),
|
|
56
|
+
dayPlan: DayPlanningContextSchema.optional(),
|
|
36
57
|
/** Photos attached to the question (vision). Optional; absent on a text-only ask. */
|
|
37
58
|
images: harnessImagesField,
|
|
38
59
|
/** Claude Code session id to continue (conversation continuity via --resume). */
|
|
39
60
|
resume: z.string().optional(),
|
|
61
|
+
provider: providerField,
|
|
62
|
+
handoff: ProviderHandoffSchema.optional(),
|
|
63
|
+
/** Daemon-owned durable queue; feature-gated by turn-queue. */
|
|
64
|
+
queue: z.boolean().optional(),
|
|
65
|
+
afterRequestId: z.uuidv7().optional(),
|
|
40
66
|
});
|
|
41
67
|
// Today's briefing. The engine derives the content from the user's tasks, so no
|
|
42
68
|
// input beyond the envelope is needed.
|
|
@@ -62,6 +88,11 @@ export const CodeRequestSchema = HarnessRequestBase.extend({
|
|
|
62
88
|
/** Claude Code session id to continue — threads both the conversation (--resume)
|
|
63
89
|
* and the files (re-attach the session's lucid/<repoId> branch) across turns. */
|
|
64
90
|
resume: z.string().optional(),
|
|
91
|
+
provider: providerField,
|
|
92
|
+
/** Also keeps the workspace as it is, where a turn without `resume` would start it fresh. */
|
|
93
|
+
handoff: ProviderHandoffSchema.optional(),
|
|
94
|
+
queue: z.boolean().optional(),
|
|
95
|
+
afterRequestId: z.uuidv7().optional(),
|
|
65
96
|
/** Conductor worker id (a fleet subtask's id). Present when the phone drills into one
|
|
66
97
|
* worker of a fan-out and sends it a follow-up turn: the daemon runs it in that worker's
|
|
67
98
|
* isolated `fleet/<repoId>/<workerId>` worktree, on its own lane. Absent → the bare repo
|
|
@@ -288,12 +319,14 @@ const timeString = z
|
|
|
288
319
|
// The capability dial the phone can flip (GitHub #98). `connected` is reserved and not
|
|
289
320
|
// editable, so it's absent from the patch; the view reports it read-only.
|
|
290
321
|
export const DaemonCapabilitiesPatchSchema = z
|
|
291
|
-
.object({ tasks: z.boolean(), memory: z.boolean() })
|
|
322
|
+
.object({ tasks: z.boolean(), memory: z.boolean(), automations: z.boolean() })
|
|
292
323
|
.partial();
|
|
293
324
|
// The daemon's config as shown to the phone — every displayable field, with secrets
|
|
294
325
|
// (`apiKey`, `oauthToken`) redacted to a presence boolean. Read-only fields (paths,
|
|
295
326
|
// repo allowlist, apiUrl) are included so the screen can surface the whole config.
|
|
296
327
|
export const DaemonConfigViewSchema = z.object({
|
|
328
|
+
sttModel: SpeechModelIdSchema.optional(),
|
|
329
|
+
speech: ComputerSpeechSchema.optional(),
|
|
297
330
|
// Editable, applied live. Two role-scoped model/effort pairs: `chat*` drives the
|
|
298
331
|
// real-time turns a human waits on (Ask Lucid + voice), tuned for latency; `code*`
|
|
299
332
|
// drives repo coding turns and the batch jobs (briefing/weekly/attention), tuned
|
|
@@ -318,6 +351,7 @@ export const DaemonConfigViewSchema = z.object({
|
|
|
318
351
|
tasks: z.boolean(),
|
|
319
352
|
memory: z.boolean(),
|
|
320
353
|
connected: z.boolean(),
|
|
354
|
+
automations: z.boolean().optional(),
|
|
321
355
|
}),
|
|
322
356
|
// How much of the machine chat may touch (Puny God). Editable; restart-wired.
|
|
323
357
|
agentMode: z.enum(AGENT_MODES),
|
|
@@ -338,6 +372,7 @@ export const DaemonConfigViewSchema = z.object({
|
|
|
338
372
|
// and read-only fields are intentionally excluded, so the daemon rejects anything else.
|
|
339
373
|
export const DaemonConfigPatchSchema = z
|
|
340
374
|
.object({
|
|
375
|
+
sttModel: SpeechModelIdSchema,
|
|
341
376
|
chatProvider: z.enum(['claude', 'codex']),
|
|
342
377
|
codeProvider: z.enum(['claude', 'codex']),
|
|
343
378
|
chatModel: z.string().min(1),
|
|
@@ -363,6 +398,12 @@ export const SteerRequestSchema = HarnessRequestBase.extend({
|
|
|
363
398
|
targetId: z.uuidv7(),
|
|
364
399
|
prompt: z.string().trim().min(1).max(8000),
|
|
365
400
|
});
|
|
401
|
+
export const QueueControlRequestSchema = HarnessRequestBase.extend({
|
|
402
|
+
kind: z.literal('queue-control'),
|
|
403
|
+
targetId: z.uuidv7(),
|
|
404
|
+
action: z.enum(['cancel', 'steer']),
|
|
405
|
+
activeId: z.uuidv7().optional(),
|
|
406
|
+
});
|
|
366
407
|
export const PermissionRequestSchema = HarnessRequestBase.extend({
|
|
367
408
|
kind: z.literal('permission'),
|
|
368
409
|
targetId: z.uuidv7(),
|
|
@@ -373,6 +414,15 @@ export const ModelsRequestSchema = HarnessRequestBase.extend({
|
|
|
373
414
|
kind: z.literal('models'),
|
|
374
415
|
provider: AgentProviderSchema,
|
|
375
416
|
});
|
|
417
|
+
export const CommandsRequestSchema = HarnessRequestBase.extend({
|
|
418
|
+
kind: z.literal('commands'),
|
|
419
|
+
provider: AgentProviderSchema,
|
|
420
|
+
context: z.object({
|
|
421
|
+
repoId: z.string().min(1),
|
|
422
|
+
mode: z.enum(['worktree', 'in-place']).optional(),
|
|
423
|
+
workerId: z.string().min(1).optional(),
|
|
424
|
+
}).optional(),
|
|
425
|
+
});
|
|
376
426
|
// Read the daemon's current config for the Daemon Settings screen.
|
|
377
427
|
export const GetConfigRequestSchema = HarnessRequestBase.extend({
|
|
378
428
|
kind: z.literal('getConfig'),
|
|
@@ -393,9 +443,37 @@ export const AttentionRequestSchema = HarnessRequestBase.extend({
|
|
|
393
443
|
refresh: z.boolean().optional(),
|
|
394
444
|
});
|
|
395
445
|
export const HarnessRequestSchema = z.discriminatedUnion('kind', [
|
|
446
|
+
HarnessRequestBase.extend({
|
|
447
|
+
kind: z.literal('voice-capture'),
|
|
448
|
+
credentialId: z.uuid(),
|
|
449
|
+
captureId: z.uuid(),
|
|
450
|
+
audio: VoiceCaptureAudioSchema,
|
|
451
|
+
}),
|
|
452
|
+
HarnessRequestBase.extend({
|
|
453
|
+
kind: z.literal('voice-capture-status'),
|
|
454
|
+
credentialId: z.uuid(),
|
|
455
|
+
captureId: z.uuid(),
|
|
456
|
+
}),
|
|
457
|
+
HarnessRequestBase.extend({
|
|
458
|
+
kind: z.literal('transcribe'),
|
|
459
|
+
audio: SpeechAudioSchema,
|
|
460
|
+
}),
|
|
461
|
+
HarnessRequestBase.extend({
|
|
462
|
+
kind: z.literal('getAutomations'),
|
|
463
|
+
jobId: z.string().max(120).optional(),
|
|
464
|
+
runId: z.string().max(120).optional(),
|
|
465
|
+
before: z.string().max(120).optional(),
|
|
466
|
+
limit: z.number().int().min(1).max(30).optional(),
|
|
467
|
+
}),
|
|
468
|
+
HarnessRequestBase.extend({
|
|
469
|
+
kind: z.literal('automation'),
|
|
470
|
+
command: AutomationCommandSchema,
|
|
471
|
+
}),
|
|
472
|
+
QueueControlRequestSchema,
|
|
396
473
|
SteerRequestSchema,
|
|
397
474
|
PermissionRequestSchema,
|
|
398
475
|
ModelsRequestSchema,
|
|
476
|
+
CommandsRequestSchema,
|
|
399
477
|
AskRequestSchema,
|
|
400
478
|
BriefingRequestSchema,
|
|
401
479
|
JournalRequestSchema,
|
|
@@ -459,10 +537,19 @@ export const DeviceConflictSchema = z.object({
|
|
|
459
537
|
// The cost of having no `requestId` is that the relay won't hold it for a phone that's offline,
|
|
460
538
|
// so a push can be missed. The phone caches the last board and the daemon recomposes on its next
|
|
461
539
|
// trigger, so a miss heals rather than persisting.
|
|
462
|
-
export const AttentionBoardEntrySchema = z
|
|
540
|
+
export const AttentionBoardEntrySchema = z
|
|
541
|
+
.object({
|
|
463
542
|
/** Short all-caps eyebrow for the card ("WORK", "SHIPPING"). Absent → the card says ATTENTION. */
|
|
464
543
|
label: z.string().optional(),
|
|
465
544
|
text: z.string(),
|
|
545
|
+
/** Existing task behind the card's Open task action. Older boards may have no target. */
|
|
546
|
+
taskId: z.string().min(1).optional(),
|
|
547
|
+
/** Optional AI-authored runs. Unknown/invalid styles fall back to the plain text. */
|
|
548
|
+
segments: z.unknown().optional(),
|
|
549
|
+
})
|
|
550
|
+
.transform(({ segments: input, ...board }) => {
|
|
551
|
+
const segments = validatedCardSegments(board.text, input);
|
|
552
|
+
return { ...board, ...(segments ? { segments } : {}) };
|
|
466
553
|
});
|
|
467
554
|
export const AttentionBoardSchema = z.object({
|
|
468
555
|
type: z.literal('attention_board'),
|
|
@@ -603,9 +690,34 @@ export const ModelsResponseSchema = HarnessResponseBase.extend({
|
|
|
603
690
|
provider: AgentProviderSchema,
|
|
604
691
|
models: z.array(AgentModelOptionSchema),
|
|
605
692
|
});
|
|
693
|
+
export const CommandsResponseSchema = HarnessResponseBase.extend({
|
|
694
|
+
kind: z.literal('commands'),
|
|
695
|
+
provider: AgentProviderSchema,
|
|
696
|
+
commands: z.array(z.object({
|
|
697
|
+
name: z.string(),
|
|
698
|
+
description: z.string(),
|
|
699
|
+
argumentHint: z.string(),
|
|
700
|
+
acceptsArguments: z.boolean().optional(),
|
|
701
|
+
aliases: z.array(z.string()).optional(),
|
|
702
|
+
clearsContext: z.boolean().optional(),
|
|
703
|
+
})),
|
|
704
|
+
});
|
|
606
705
|
export const HarnessResponseSchema = z.discriminatedUnion('kind', [
|
|
706
|
+
HarnessResponseBase.extend({
|
|
707
|
+
kind: z.literal('voice-capture'),
|
|
708
|
+
receipt: VoiceCaptureReceiptSchema.nullable(),
|
|
709
|
+
}),
|
|
710
|
+
HarnessResponseBase.extend({
|
|
711
|
+
kind: z.literal('transcription'),
|
|
712
|
+
transcript: SpeechTranscriptSchema,
|
|
713
|
+
}),
|
|
714
|
+
HarnessResponseBase.extend({
|
|
715
|
+
kind: z.literal('automations'),
|
|
716
|
+
snapshot: AutomationSnapshotSchema,
|
|
717
|
+
}),
|
|
607
718
|
ControlResponseSchema,
|
|
608
719
|
ModelsResponseSchema,
|
|
720
|
+
CommandsResponseSchema,
|
|
609
721
|
AskResponseSchema,
|
|
610
722
|
BriefingResponseSchema,
|
|
611
723
|
JournalResponseSchema,
|
|
@@ -628,6 +740,11 @@ export const HarnessResponseSchema = z.discriminatedUnion('kind', [
|
|
|
628
740
|
// kept OUT of this schema (the relay forwards frames verbatim and never validates them
|
|
629
741
|
// through here), so it isn't a member below.
|
|
630
742
|
export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
743
|
+
z.object({
|
|
744
|
+
type: z.literal('queue_state'),
|
|
745
|
+
requestId: z.uuidv7(),
|
|
746
|
+
state: z.enum(['queued', 'running']),
|
|
747
|
+
}),
|
|
631
748
|
z.object({
|
|
632
749
|
// Durable receipt written before execution; recovery only pulls saved output.
|
|
633
750
|
type: z.literal('accepted'),
|
|
@@ -755,7 +872,11 @@ export const HarnessStreamEventSchema = z.discriminatedUnion('type', [
|
|
|
755
872
|
message: z.string(),
|
|
756
873
|
}),
|
|
757
874
|
// A `cancel` request successfully stopped this in-flight turn.
|
|
758
|
-
z.object({
|
|
875
|
+
z.object({
|
|
876
|
+
type: z.literal('cancelled'),
|
|
877
|
+
requestId: z.uuidv7(),
|
|
878
|
+
queueAction: z.enum(['cancel', 'steer']).optional(),
|
|
879
|
+
}),
|
|
759
880
|
]);
|
|
760
881
|
// ---- Message (forward-compat: chat + M4 agent turns) ----------------------
|
|
761
882
|
// A single conversational turn. Carries `senderKind` so an agent reply can later
|
|
@@ -123,6 +123,11 @@ export declare const JournalSegmentWithObservationsSchema: z.ZodObject<{
|
|
|
123
123
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
124
124
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
125
125
|
}, z.core.$strip>>;
|
|
126
|
+
revisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
conflicts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
128
|
+
revision: z.ZodString;
|
|
129
|
+
text: z.ZodString;
|
|
130
|
+
}, z.core.$strip>>>;
|
|
126
131
|
}, z.core.$strip>;
|
|
127
132
|
export declare const JournalDayWithSegmentsSchema: z.ZodObject<{
|
|
128
133
|
id: z.ZodUUID;
|
|
@@ -169,6 +174,11 @@ export declare const JournalDayWithSegmentsSchema: z.ZodObject<{
|
|
|
169
174
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
170
175
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
171
176
|
}, z.core.$strip>>;
|
|
177
|
+
revisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
178
|
+
conflicts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
179
|
+
revision: z.ZodString;
|
|
180
|
+
text: z.ZodString;
|
|
181
|
+
}, z.core.$strip>>>;
|
|
172
182
|
}, z.core.$strip>>;
|
|
173
183
|
}, z.core.$strip>;
|
|
174
184
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal.d.ts","sourceRoot":"","sources":["../../src/schemas/journal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"journal.d.ts","sourceRoot":"","sources":["../../src/schemas/journal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,eAAe,aAIxB,CAAC;AAEL;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,wDAM2C,CAAC;AAEzE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;iBAcrC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;iBAY/B,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;iBAWtC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;iBAO3B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;iBAiBnC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQhD,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEvC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAMlC,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAqBnC,CAAC;AAEL;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;iBAoBzC,CAAC"}
|
|
@@ -2,7 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
import { JOURNAL_SOURCES, JOURNAL_OBSERVATION_KINDS, OBSERVATION_LABEL_MAX_LENGTH, TRANSCRIPT_MAX_LENGTH, isValidLocalDate, } from '../constants.js';
|
|
3
3
|
export const LocalDateSchema = z
|
|
4
4
|
.string()
|
|
5
|
-
.refine(isValidLocalDate, {
|
|
5
|
+
.refine(isValidLocalDate, {
|
|
6
|
+
message: 'Expected a real calendar date as YYYY-MM-DD',
|
|
7
|
+
});
|
|
6
8
|
/**
|
|
7
9
|
* Trimmed at the ends but otherwise untouched — no whitespace collapsing, unlike a bio.
|
|
8
10
|
* This is a verbatim record of what someone said, and the paragraph breaks a long
|
|
@@ -60,7 +62,9 @@ export const CorrectJournalSegmentSchema = z.object({
|
|
|
60
62
|
message: `A correction cannot exceed ${TRANSCRIPT_MAX_LENGTH} characters`,
|
|
61
63
|
})
|
|
62
64
|
.transform((s) => s.trim())
|
|
63
|
-
.refine((s) => s.length > 0, {
|
|
65
|
+
.refine((s) => s.length > 0, {
|
|
66
|
+
message: 'A correction cannot be empty — send null to clear it',
|
|
67
|
+
})
|
|
64
68
|
.nullable(),
|
|
65
69
|
});
|
|
66
70
|
export const JournalDaySchema = z.object({
|
|
@@ -97,6 +101,10 @@ export const JournalObservationSchema = z.object({
|
|
|
97
101
|
*/
|
|
98
102
|
export const JournalSegmentWithObservationsSchema = JournalSegmentSchema.extend({
|
|
99
103
|
observations: z.array(JournalObservationSchema),
|
|
104
|
+
revisions: z.array(z.string()).optional(),
|
|
105
|
+
conflicts: z
|
|
106
|
+
.array(z.object({ revision: z.string(), text: z.string() }))
|
|
107
|
+
.optional(),
|
|
100
108
|
});
|
|
101
109
|
export const JournalDayWithSegmentsSchema = JournalDaySchema.extend({
|
|
102
110
|
segments: z.array(JournalSegmentWithObservationsSchema),
|
|
@@ -15,9 +15,9 @@ export declare const NotificationSchema: z.ZodObject<{
|
|
|
15
15
|
id: z.ZodUUID;
|
|
16
16
|
userId: z.ZodUUID;
|
|
17
17
|
kind: z.ZodEnum<{
|
|
18
|
+
stale: "stale";
|
|
18
19
|
assigned: "assigned";
|
|
19
20
|
commented: "commented";
|
|
20
|
-
stale: "stale";
|
|
21
21
|
digest: "digest";
|
|
22
22
|
}>;
|
|
23
23
|
summary: z.ZodString;
|
|
@@ -35,7 +35,7 @@ export declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
|
35
35
|
/**
|
|
36
36
|
* An organization's public profile — the GitHub-shaped page. What it contains
|
|
37
37
|
* depends on the viewer: a member sees every project, everyone else sees only
|
|
38
|
-
* the public ones.
|
|
38
|
+
* the public ones. People and their roles are returned only to active members.
|
|
39
39
|
*/
|
|
40
40
|
export declare const OrganizationProfileSchema: z.ZodObject<{
|
|
41
41
|
id: z.ZodUUID;
|
|
@@ -76,7 +76,8 @@ export declare const OrganizationProfileSchema: z.ZodObject<{
|
|
|
76
76
|
openTasks: z.ZodNumber;
|
|
77
77
|
}, z.core.$strip>>;
|
|
78
78
|
}, z.core.$strip>;
|
|
79
|
-
/**
|
|
79
|
+
/** An active affiliation: own profile, or an organization shared with the viewer.
|
|
80
|
+
* `role` belongs to the person whose profile is being viewed, not the viewer. */
|
|
80
81
|
export declare const UserOrganizationSchema: z.ZodObject<{
|
|
81
82
|
id: z.ZodUUID;
|
|
82
83
|
name: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/schemas/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;iBAWnC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;iBAiB7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;iBAenC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;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 @@ export const UpdateOrganizationSchema = z.object({
|
|
|
55
55
|
/**
|
|
56
56
|
* An organization's public profile — the GitHub-shaped page. What it contains
|
|
57
57
|
* depends on the viewer: a member sees every project, everyone else sees only
|
|
58
|
-
* the public ones.
|
|
58
|
+
* the public ones. People and their roles are returned only to active members.
|
|
59
59
|
*/
|
|
60
60
|
export const OrganizationProfileSchema = z.object({
|
|
61
61
|
id: z.uuidv7(),
|
|
@@ -83,7 +83,8 @@ export const OrganizationProfileSchema = z.object({
|
|
|
83
83
|
openTasks: z.number(),
|
|
84
84
|
})),
|
|
85
85
|
});
|
|
86
|
-
/**
|
|
86
|
+
/** An active affiliation: own profile, or an organization shared with the viewer.
|
|
87
|
+
* `role` belongs to the person whose profile is being viewed, not the viewer. */
|
|
87
88
|
export const UserOrganizationSchema = z.object({
|
|
88
89
|
id: z.uuidv7(),
|
|
89
90
|
name: z.string(),
|
|
@@ -63,9 +63,9 @@ export declare const ProposalSchema: z.ZodObject<{
|
|
|
63
63
|
id: z.ZodUUID;
|
|
64
64
|
userId: z.ZodUUID;
|
|
65
65
|
kind: z.ZodEnum<{
|
|
66
|
+
move: "move";
|
|
66
67
|
task: "task";
|
|
67
68
|
link: "link";
|
|
68
|
-
move: "move";
|
|
69
69
|
}>;
|
|
70
70
|
status: z.ZodEnum<{
|
|
71
71
|
pending: "pending";
|
|
@@ -94,9 +94,9 @@ export declare const ProposalWithEvidenceSchema: z.ZodObject<{
|
|
|
94
94
|
id: z.ZodUUID;
|
|
95
95
|
userId: z.ZodUUID;
|
|
96
96
|
kind: z.ZodEnum<{
|
|
97
|
+
move: "move";
|
|
97
98
|
task: "task";
|
|
98
99
|
link: "link";
|
|
99
|
-
move: "move";
|
|
100
100
|
}>;
|
|
101
101
|
status: z.ZodEnum<{
|
|
102
102
|
pending: "pending";
|
|
@@ -113,6 +113,10 @@ export declare const ProposalWithEvidenceSchema: z.ZodObject<{
|
|
|
113
113
|
decidedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
114
114
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
115
115
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
116
|
+
storage: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
vault: "vault";
|
|
118
|
+
server: "server";
|
|
119
|
+
}>>;
|
|
116
120
|
evidence: z.ZodNullable<z.ZodObject<{
|
|
117
121
|
segmentId: z.ZodUUID;
|
|
118
122
|
localDate: z.ZodString;
|
|
@@ -122,9 +126,9 @@ export declare const ProposalWithEvidenceSchema: z.ZodObject<{
|
|
|
122
126
|
}, z.core.$strip>;
|
|
123
127
|
export declare const CreateProposalSchema: z.ZodObject<{
|
|
124
128
|
kind: z.ZodEnum<{
|
|
129
|
+
move: "move";
|
|
125
130
|
task: "task";
|
|
126
131
|
link: "link";
|
|
127
|
-
move: "move";
|
|
128
132
|
}>;
|
|
129
133
|
summary: z.ZodString;
|
|
130
134
|
confidence: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proposal.d.ts","sourceRoot":"","sources":["../../src/schemas/proposal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"proposal.d.ts","sourceRoot":"","sources":["../../src/schemas/proposal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;;;;iBAKpC,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;mBAIhC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;iBAezB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWrC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO/B,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;iBAE/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { PROPOSAL_KINDS, PROPOSAL_STATUSES, PROPOSAL_LINK_TARGETS } from '../constants.js';
|
|
2
|
+
import { PROPOSAL_KINDS, PROPOSAL_STATUSES, PROPOSAL_LINK_TARGETS, } from '../constants.js';
|
|
3
3
|
/**
|
|
4
4
|
* A task Lucid heard you commit to. Accepting creates it.
|
|
5
5
|
*
|
|
@@ -70,6 +70,7 @@ export const ProposalSchema = z.object({
|
|
|
70
70
|
* to prevent, not a UI detail.
|
|
71
71
|
*/
|
|
72
72
|
export const ProposalWithEvidenceSchema = ProposalSchema.extend({
|
|
73
|
+
storage: z.enum(['vault', 'server']).optional(),
|
|
73
74
|
evidence: z
|
|
74
75
|
.object({
|
|
75
76
|
segmentId: z.uuidv7(),
|
|
@@ -61,10 +61,10 @@ export declare const UpdateRequestSchema: z.ZodObject<{
|
|
|
61
61
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
62
|
isPrivate: z.ZodOptional<z.ZodBoolean>;
|
|
63
63
|
status: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
blocked: "blocked";
|
|
65
|
+
completed: "completed";
|
|
64
66
|
pending: "pending";
|
|
65
67
|
in_progress: "in_progress";
|
|
66
|
-
completed: "completed";
|
|
67
|
-
blocked: "blocked";
|
|
68
68
|
deferred: "deferred";
|
|
69
69
|
}>>;
|
|
70
70
|
}, z.core.$strip>;
|
|
@@ -87,6 +87,11 @@ export declare const RequestWithTaskSchema: z.ZodObject<{
|
|
|
87
87
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
88
88
|
task: z.ZodObject<{
|
|
89
89
|
title: z.ZodString;
|
|
90
|
+
recurrenceTimeZone: z.ZodOptional<z.ZodString>;
|
|
91
|
+
recurringReminder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
92
|
+
daysBefore: z.ZodNumber;
|
|
93
|
+
time: z.ZodString;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
90
95
|
id: z.ZodUUID;
|
|
91
96
|
userId: z.ZodUUID;
|
|
92
97
|
projectId: z.ZodNullable<z.ZodUUID>;
|
|
@@ -103,17 +108,49 @@ export declare const RequestWithTaskSchema: z.ZodObject<{
|
|
|
103
108
|
subtaskCompleted: z.ZodOptional<z.ZodNumber>;
|
|
104
109
|
description: z.ZodNullable<z.ZodString>;
|
|
105
110
|
status: z.ZodEnum<{
|
|
111
|
+
blocked: "blocked";
|
|
112
|
+
completed: "completed";
|
|
106
113
|
pending: "pending";
|
|
107
114
|
in_progress: "in_progress";
|
|
108
|
-
completed: "completed";
|
|
109
|
-
blocked: "blocked";
|
|
110
115
|
deferred: "deferred";
|
|
111
116
|
}>;
|
|
112
117
|
priority: z.ZodNumber;
|
|
113
118
|
position: z.ZodNullable<z.ZodNumber>;
|
|
114
119
|
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
115
120
|
previousIdentifiers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
121
|
+
captureContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
122
|
+
capturedAt: z.ZodISODateTime;
|
|
123
|
+
timeZone: z.ZodString;
|
|
124
|
+
source: z.ZodEnum<{
|
|
125
|
+
web: "web";
|
|
126
|
+
watch: "watch";
|
|
127
|
+
api: "api";
|
|
128
|
+
app: "app";
|
|
129
|
+
shortcut: "shortcut";
|
|
130
|
+
mcp: "mcp";
|
|
131
|
+
daemon: "daemon";
|
|
132
|
+
}>;
|
|
133
|
+
lockedFields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
134
|
+
date: "date";
|
|
135
|
+
project: "project";
|
|
136
|
+
}>>>;
|
|
137
|
+
analyze: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
heard: z.ZodOptional<z.ZodString>;
|
|
139
|
+
readBy: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
phone: "phone";
|
|
141
|
+
jev: "jev";
|
|
142
|
+
}>>;
|
|
143
|
+
}, z.core.$strip>>>;
|
|
144
|
+
captureRevision: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
dueDatePrecision: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
146
|
+
time: "time";
|
|
147
|
+
date: "date";
|
|
148
|
+
}>>>;
|
|
149
|
+
dueTimeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
150
|
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
151
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
152
|
+
deletedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
153
|
+
deletionBatchId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
117
154
|
dueDate: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
118
155
|
reminderAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
119
156
|
recurringFrequency: z.ZodNullable<z.ZodEnum<{
|
|
@@ -122,6 +159,9 @@ export declare const RequestWithTaskSchema: z.ZodObject<{
|
|
|
122
159
|
monthly: "monthly";
|
|
123
160
|
yearly: "yearly";
|
|
124
161
|
}>>;
|
|
162
|
+
recurrenceAnchor: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
163
|
+
recurrenceVersion: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
currentOccurrenceId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
125
165
|
reviewedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
126
166
|
activeTimerStartedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
127
167
|
totalElapsedSeconds: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/schemas/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB,0BAA2B,CAAC;AAC5D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,SAAS,CAAC;AAC9C,eAAO,MAAM,wBAAwB,gBAAgB,CAAC;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB;;;;;;CAMxB,CAAC;AAEX,kFAAkF;AAClF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;iBAW9B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;iBAWxB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;iBAS9B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/schemas/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB,0BAA2B,CAAC;AAC5D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,SAAS,CAAC;AAC9C,eAAO,MAAM,wBAAwB,gBAAgB,CAAC;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB;;;;;;CAMxB,CAAC;AAEX,kFAAkF;AAClF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;iBAW9B,CAAC;AAEH,eAAO,MAA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