@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cardStudio.d.ts","sourceRoot":"","sources":["../src/cardStudio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;EAQvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,eAAO,MAAM,eAAe;;;EAA4B,CAAC;AACzD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY,EAAE;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB,EAkDA,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,YAAY,GAAG,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAC;AAC3D,eAAO,MAAM,wBAAwB,EAAE,eAStC,C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A0B,CAAC,CAAC;AAC9E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,aAAa,GACrB,cAAc,CA4BhB"}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const CardIdSchema = z.enum([
|
|
3
|
+
'attention',
|
|
4
|
+
'today',
|
|
5
|
+
'github',
|
|
6
|
+
'habits',
|
|
7
|
+
'habit-contributions',
|
|
8
|
+
'focus',
|
|
9
|
+
'weekly-review',
|
|
10
|
+
]);
|
|
11
|
+
export const CardStyleSchema = z.enum(['glance', 'act']);
|
|
12
|
+
export const CARD_CATALOG = [
|
|
13
|
+
{
|
|
14
|
+
id: 'attention',
|
|
15
|
+
name: 'Attention',
|
|
16
|
+
description: 'A timely nudge from Lucid, with a next step you can take.',
|
|
17
|
+
source: 'Lucid on your connected computer',
|
|
18
|
+
styles: false,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 'today',
|
|
22
|
+
name: 'Today',
|
|
23
|
+
description: 'Keep today’s tasks and overdue work in view.',
|
|
24
|
+
source: 'Your Lucidity tasks',
|
|
25
|
+
styles: false,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'github',
|
|
29
|
+
name: 'GitHub',
|
|
30
|
+
description: 'Your contributions, one day at a time.',
|
|
31
|
+
source: 'Your connected GitHub account',
|
|
32
|
+
styles: false,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'habits',
|
|
36
|
+
name: 'Daily rhythm',
|
|
37
|
+
description: 'Small actions that add up. Set a habit and mark each day.',
|
|
38
|
+
source: 'Your habit check-ins',
|
|
39
|
+
styles: true,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 'habit-contributions',
|
|
43
|
+
name: 'Habit contributions',
|
|
44
|
+
description: 'A card for each habit. See the days you showed up, then flip to make it yours.',
|
|
45
|
+
source: 'Your habit check-ins, shared with Daily rhythm',
|
|
46
|
+
styles: true,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'focus',
|
|
50
|
+
name: 'Focus',
|
|
51
|
+
description: 'Protect a little time with a 25 or 50 minute session.',
|
|
52
|
+
source: 'Your focus sessions',
|
|
53
|
+
styles: true,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'weekly-review',
|
|
57
|
+
name: 'Week in view',
|
|
58
|
+
description: 'Look back at finished tasks and where your week went.',
|
|
59
|
+
source: 'Completed tasks assigned to you, or created by you without an assignee',
|
|
60
|
+
styles: true,
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
export const CardPreferencesSchema = z.object({
|
|
64
|
+
order: z
|
|
65
|
+
.array(CardIdSchema)
|
|
66
|
+
.max(7)
|
|
67
|
+
.refine((ids) => new Set(ids).size === ids.length),
|
|
68
|
+
styles: z.object({
|
|
69
|
+
habits: CardStyleSchema,
|
|
70
|
+
'habit-contributions': CardStyleSchema.default('glance'),
|
|
71
|
+
focus: CardStyleSchema,
|
|
72
|
+
'weekly-review': CardStyleSchema,
|
|
73
|
+
}),
|
|
74
|
+
dismissed: z.array(z.string().max(240)).max(100),
|
|
75
|
+
});
|
|
76
|
+
export const DEFAULT_CARD_PREFERENCES = {
|
|
77
|
+
order: ['attention', 'today', 'github'],
|
|
78
|
+
styles: {
|
|
79
|
+
habits: 'act',
|
|
80
|
+
'habit-contributions': 'glance',
|
|
81
|
+
focus: 'act',
|
|
82
|
+
'weekly-review': 'act',
|
|
83
|
+
},
|
|
84
|
+
dismissed: [],
|
|
85
|
+
};
|
|
86
|
+
export const CardPreferenceChangeSchema = z.discriminatedUnion('type', [
|
|
87
|
+
z.object({
|
|
88
|
+
type: z.literal('add'),
|
|
89
|
+
id: CardIdSchema,
|
|
90
|
+
index: z.number().int().min(0).max(6).optional(),
|
|
91
|
+
}),
|
|
92
|
+
z.object({ type: z.literal('remove'), id: CardIdSchema }),
|
|
93
|
+
z.object({
|
|
94
|
+
type: z.literal('move'),
|
|
95
|
+
id: CardIdSchema,
|
|
96
|
+
before: CardIdSchema.nullable(),
|
|
97
|
+
}),
|
|
98
|
+
z.object({
|
|
99
|
+
type: z.literal('style'),
|
|
100
|
+
id: z.enum(['habits', 'habit-contributions', 'focus', 'weekly-review']),
|
|
101
|
+
style: CardStyleSchema,
|
|
102
|
+
}),
|
|
103
|
+
z.object({ type: z.literal('dismiss'), key: z.string().min(1).max(240) }),
|
|
104
|
+
]);
|
|
105
|
+
/** Operations merge against the latest account state, avoiding lost edits across devices. */
|
|
106
|
+
export function changeCardPreferences(current, change) {
|
|
107
|
+
const next = {
|
|
108
|
+
order: [...current.order],
|
|
109
|
+
styles: { ...current.styles },
|
|
110
|
+
dismissed: [...current.dismissed],
|
|
111
|
+
};
|
|
112
|
+
if (change.type === 'add' && !next.order.includes(change.id))
|
|
113
|
+
next.order.splice(change.index ?? next.order.length, 0, change.id);
|
|
114
|
+
if (change.type === 'remove')
|
|
115
|
+
next.order = next.order.filter((id) => id !== change.id);
|
|
116
|
+
if (change.type === 'move' && next.order.includes(change.id) && change.before !== change.id) {
|
|
117
|
+
next.order = next.order.filter((id) => id !== change.id);
|
|
118
|
+
const index = change.before === null ? -1 : next.order.indexOf(change.before);
|
|
119
|
+
next.order.splice(index < 0 ? next.order.length : index, 0, change.id);
|
|
120
|
+
}
|
|
121
|
+
if (change.type === 'style')
|
|
122
|
+
next.styles[change.id] = change.style;
|
|
123
|
+
if (change.type === 'dismiss')
|
|
124
|
+
next.dismissed = [...new Set([...next.dismissed, change.key])].slice(-100);
|
|
125
|
+
return next;
|
|
126
|
+
}
|
|
127
|
+
export const StudioDateSchema = z
|
|
128
|
+
.string()
|
|
129
|
+
.regex(/^\d{4}-\d{2}-\d{2}$/)
|
|
130
|
+
.refine((value) => {
|
|
131
|
+
const date = new Date(`${value}T12:00:00Z`);
|
|
132
|
+
return Number.isFinite(date.getTime()) && date.toISOString().slice(0, 10) === value;
|
|
133
|
+
});
|
|
134
|
+
export function studioLocalDate(now, timeZone) {
|
|
135
|
+
const parts = new Intl.DateTimeFormat('en-US', {
|
|
136
|
+
timeZone,
|
|
137
|
+
year: 'numeric',
|
|
138
|
+
month: '2-digit',
|
|
139
|
+
day: '2-digit',
|
|
140
|
+
}).formatToParts(now);
|
|
141
|
+
const part = (type) => parts.find((p) => p.type === type).value;
|
|
142
|
+
return `${part('year')}-${part('month')}-${part('day')}`;
|
|
143
|
+
}
|
|
144
|
+
export function shiftStudioDate(date, days) {
|
|
145
|
+
const value = new Date(`${date}T12:00:00Z`);
|
|
146
|
+
value.setUTCDate(value.getUTCDate() + days);
|
|
147
|
+
return value.toISOString().slice(0, 10);
|
|
148
|
+
}
|
|
149
|
+
/** Previous complete Monday–Sunday week; calendar arithmetic is independent of DST. */
|
|
150
|
+
export function studioWeek(today, offset = 0) {
|
|
151
|
+
const weekday = (new Date(`${today}T12:00:00Z`).getUTCDay() + 6) % 7;
|
|
152
|
+
const start = shiftStudioDate(today, -weekday - 7 + offset * 7);
|
|
153
|
+
return {
|
|
154
|
+
start,
|
|
155
|
+
end: shiftStudioDate(start, 7),
|
|
156
|
+
days: Array.from({ length: 7 }, (_, i) => shiftStudioDate(start, i)),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export const HabitColorSchema = z.enum(['green', 'amber', 'berry', 'blue', 'coral', 'teal']);
|
|
160
|
+
export const HabitIconSchema = z.enum([
|
|
161
|
+
'check',
|
|
162
|
+
'book',
|
|
163
|
+
'guitar',
|
|
164
|
+
'dumbbell',
|
|
165
|
+
'walk',
|
|
166
|
+
'water',
|
|
167
|
+
'leaf',
|
|
168
|
+
'heart',
|
|
169
|
+
'moon',
|
|
170
|
+
'pencil',
|
|
171
|
+
'code',
|
|
172
|
+
'music',
|
|
173
|
+
]);
|
|
174
|
+
/** Recent editable days plus an immutable prefix keep lifetime statistics small and exact. */
|
|
175
|
+
export const HabitHistorySchema = z.object({
|
|
176
|
+
windowStart: StudioDateSchema,
|
|
177
|
+
firstDayBefore: StudioDateSchema.nullable(),
|
|
178
|
+
totalBefore: z.number().int().nonnegative(),
|
|
179
|
+
longestBefore: z.number().int().nonnegative(),
|
|
180
|
+
streakBefore: z.number().int().nonnegative(),
|
|
181
|
+
days: z.array(StudioDateSchema),
|
|
182
|
+
});
|
|
183
|
+
export const HabitInputSchema = z.object({
|
|
184
|
+
name: z.string().trim().min(1).max(80),
|
|
185
|
+
goal: z.string().trim().max(80).default(''),
|
|
186
|
+
color: HabitColorSchema.optional(),
|
|
187
|
+
// Optional for older clients/caches; the database supplies the default on creation.
|
|
188
|
+
icon: HabitIconSchema.optional(),
|
|
189
|
+
});
|
|
190
|
+
export const HabitSchema = HabitInputSchema.extend({
|
|
191
|
+
id: z.string().uuid(),
|
|
192
|
+
archived: z.boolean(),
|
|
193
|
+
createdAt: z.string(),
|
|
194
|
+
updatedAt: z.string(),
|
|
195
|
+
days: z.array(StudioDateSchema),
|
|
196
|
+
// Optional while old devices/caches transition; missing history is not a zero total.
|
|
197
|
+
history: HabitHistorySchema.optional(),
|
|
198
|
+
});
|
|
199
|
+
export const FocusSessionSchema = z.object({
|
|
200
|
+
id: z.string().uuid(),
|
|
201
|
+
taskId: z.string().uuid().nullable(),
|
|
202
|
+
taskTitle: z.string().nullable(),
|
|
203
|
+
durationSeconds: z.number(),
|
|
204
|
+
elapsedSeconds: z.number(),
|
|
205
|
+
resumedAt: z.string().nullable(),
|
|
206
|
+
startedAt: z.string(),
|
|
207
|
+
endedAt: z.string().nullable(),
|
|
208
|
+
status: z.enum(['running', 'paused', 'completed', 'ended']),
|
|
209
|
+
revision: z.number(),
|
|
210
|
+
});
|
|
211
|
+
export function focusElapsed(session, now = Date.now()) {
|
|
212
|
+
return Math.min(session.durationSeconds, session.elapsedSeconds +
|
|
213
|
+
(session.resumedAt
|
|
214
|
+
? Math.max(0, Math.floor((now - Date.parse(session.resumedAt)) / 1000))
|
|
215
|
+
: 0));
|
|
216
|
+
}
|
|
217
|
+
export const StudioSnapshotSchema = z.object({
|
|
218
|
+
revision: z.number().int().nonnegative().default(0),
|
|
219
|
+
preferences: CardPreferencesSchema,
|
|
220
|
+
habits: z.array(HabitSchema),
|
|
221
|
+
focus: z.object({
|
|
222
|
+
active: FocusSessionSchema.nullable(),
|
|
223
|
+
history: z.array(FocusSessionSchema),
|
|
224
|
+
}),
|
|
225
|
+
refreshedAt: z.string(),
|
|
226
|
+
today: StudioDateSchema,
|
|
227
|
+
});
|
|
228
|
+
export const WeeklyReviewSchema = z.object({
|
|
229
|
+
start: StudioDateSchema,
|
|
230
|
+
end: StudioDateSchema,
|
|
231
|
+
total: z.number(),
|
|
232
|
+
refreshedAt: z.string(),
|
|
233
|
+
days: z.array(z.object({ date: StudioDateSchema, count: z.number() })),
|
|
234
|
+
projects: z.array(z.object({
|
|
235
|
+
id: z.string().nullable(),
|
|
236
|
+
name: z.string(),
|
|
237
|
+
count: z.number(),
|
|
238
|
+
})),
|
|
239
|
+
tasks: z.array(z.object({ id: z.string(), title: z.string(), completedAt: z.string() })),
|
|
240
|
+
nextOffset: z.number().nullable(),
|
|
241
|
+
});
|
|
242
|
+
/** Durable commands carry desired values; replaying a toggle would undo the user's intent. */
|
|
243
|
+
export const StudioCommandSchema = z.discriminatedUnion('type', [
|
|
244
|
+
z.object({
|
|
245
|
+
type: z.literal('preferences'),
|
|
246
|
+
changes: z.array(CardPreferenceChangeSchema).min(1).max(12),
|
|
247
|
+
}),
|
|
248
|
+
z.object({
|
|
249
|
+
type: z.literal('check-in'),
|
|
250
|
+
habitId: z.string().uuid(),
|
|
251
|
+
day: StudioDateSchema,
|
|
252
|
+
checked: z.boolean(),
|
|
253
|
+
timeZone: z.string().min(1).max(100),
|
|
254
|
+
}),
|
|
255
|
+
]);
|
|
256
|
+
export const StudioOperationSchema = z.object({
|
|
257
|
+
version: z.literal(1),
|
|
258
|
+
id: z.string().uuid(),
|
|
259
|
+
command: StudioCommandSchema,
|
|
260
|
+
});
|
|
261
|
+
export const StudioAcknowledgmentSchema = z.object({
|
|
262
|
+
id: z.string().uuid(),
|
|
263
|
+
revision: z.number().int().nonnegative(),
|
|
264
|
+
preferences: CardPreferencesSchema,
|
|
265
|
+
});
|
|
266
|
+
export const CardStoreRecordSchema = z.object({
|
|
267
|
+
version: z.literal(1),
|
|
268
|
+
confirmed: StudioSnapshotSchema.nullable(),
|
|
269
|
+
operations: z.array(StudioOperationSchema.extend({ failure: z.string().optional() })),
|
|
270
|
+
faces: z.record(z.string(), z.object({ face: CardStyleSchema, defaultStyle: CardStyleSchema })),
|
|
271
|
+
});
|
|
272
|
+
export function applyStudioCommand(snapshot, command) {
|
|
273
|
+
if (command.type === 'preferences')
|
|
274
|
+
return {
|
|
275
|
+
...snapshot,
|
|
276
|
+
preferences: command.changes.reduce(changeCardPreferences, snapshot.preferences),
|
|
277
|
+
};
|
|
278
|
+
return {
|
|
279
|
+
...snapshot,
|
|
280
|
+
habits: snapshot.habits.map((habit) => habit.id !== command.habitId
|
|
281
|
+
? habit
|
|
282
|
+
: {
|
|
283
|
+
...habit,
|
|
284
|
+
days: command.checked
|
|
285
|
+
? [...new Set([...habit.days, command.day])].sort()
|
|
286
|
+
: habit.days.filter((day) => day !== command.day),
|
|
287
|
+
history: habit.history && command.day >= habit.history.windowStart
|
|
288
|
+
? {
|
|
289
|
+
...habit.history,
|
|
290
|
+
days: command.checked
|
|
291
|
+
? [...new Set([...habit.history.days, command.day])].sort()
|
|
292
|
+
: habit.history.days.filter((day) => day !== command.day),
|
|
293
|
+
}
|
|
294
|
+
: habit.history,
|
|
295
|
+
}),
|
|
296
|
+
};
|
|
297
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { type CommandExecutableStep } from './commands.js';
|
|
2
|
+
/**
|
|
3
|
+
* Act instructions the phone carries out by itself, with no network: going to a screen, or opening
|
|
4
|
+
* a project or milestone by its name. Sending "open projects" to the API and Jev took three and a
|
|
5
|
+
* half seconds to do what a tap does at once.
|
|
6
|
+
*
|
|
7
|
+
* Deliberately narrow. The whole instruction has to be a known place or exactly one name the phone
|
|
8
|
+
* already has, after the usual "take me to my ... please". Anything else, and anything that could
|
|
9
|
+
* mean two things (a project called "Notes"), returns null and goes to Jev as before.
|
|
10
|
+
*/
|
|
11
|
+
/** A project or milestone the phone already has loaded. */
|
|
12
|
+
export interface LocalCommandTarget {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
|
16
|
+
export interface LocalCommandContext {
|
|
17
|
+
projects: readonly LocalCommandTarget[];
|
|
18
|
+
milestones: readonly LocalCommandTarget[];
|
|
19
|
+
/** For "Neucleosoft procurement": places each organization has its own of. */
|
|
20
|
+
organizations?: readonly LocalCommandTarget[];
|
|
21
|
+
/** What the screen shows, top to bottom: what "the first task" means. */
|
|
22
|
+
onScreen?: readonly OnScreenItem[];
|
|
23
|
+
}
|
|
24
|
+
export interface OnScreenItem {
|
|
25
|
+
kind: 'task' | 'project' | 'milestone';
|
|
26
|
+
id: string;
|
|
27
|
+
title: string;
|
|
28
|
+
}
|
|
29
|
+
export type LocalCommandStep = Extract<CommandExecutableStep, {
|
|
30
|
+
kind: 'navigate' | 'open' | 'back';
|
|
31
|
+
}>;
|
|
32
|
+
export interface OrdinalReference {
|
|
33
|
+
/** 1-based, or the last one. */
|
|
34
|
+
position: number | 'last';
|
|
35
|
+
kind?: OnScreenItem['kind'];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* "the first task", "the second one", "task number 3", "the last project": a position in a list,
|
|
39
|
+
* with or without a verb in front. Null when the words are anything more than that.
|
|
40
|
+
*/
|
|
41
|
+
export declare function ordinalReference(text: string): OrdinalReference | null;
|
|
42
|
+
/** The item a reference points at among `items`, counting only the kind it names. */
|
|
43
|
+
export declare function pickByOrdinal<T>(items: readonly T[], ref: OrdinalReference): T | null;
|
|
44
|
+
/** One clause, carried out on the phone if it is certainly a place or a name. Null means ask Jev. */
|
|
45
|
+
export declare function resolveLocalCommand(text: string, context: LocalCommandContext): LocalCommandStep | null;
|
|
46
|
+
/**
|
|
47
|
+
* The first step of an instruction when the phone can carry it out itself, and the clauses left
|
|
48
|
+
* after it, which each get the same chance in turn. `single` is a clause already split off.
|
|
49
|
+
*/
|
|
50
|
+
export declare function planLocally(text: string, context: LocalCommandContext, single?: boolean): {
|
|
51
|
+
step: LocalCommandStep;
|
|
52
|
+
rest: string[];
|
|
53
|
+
} | null;
|
|
54
|
+
/**
|
|
55
|
+
* Which organization "open procurement" means: the one named, else the one on screen (a Team page,
|
|
56
|
+
* an organization's profile), else the one selected on the Team tab, else the only one there is.
|
|
57
|
+
* With several and nothing to go on, the caller asks.
|
|
58
|
+
*/
|
|
59
|
+
export declare function organizationFor(step: LocalCommandStep | CommandExecutableStep, where: {
|
|
60
|
+
onScreen: string | null;
|
|
61
|
+
selected: string | null;
|
|
62
|
+
organizations: readonly LocalCommandTarget[];
|
|
63
|
+
}): {
|
|
64
|
+
step: CommandExecutableStep;
|
|
65
|
+
organization: LocalCommandTarget;
|
|
66
|
+
} | {
|
|
67
|
+
choose: LocalCommandTarget[];
|
|
68
|
+
} | null;
|
|
69
|
+
/** The reply for a step done on the phone, worded as the API words it. */
|
|
70
|
+
export declare function describeLocalStep(step: LocalCommandStep): string;
|
|
71
|
+
/**
|
|
72
|
+
* The words of a new task when the instruction is certainly one ("add buy milk tomorrow" gives
|
|
73
|
+
* "buy milk tomorrow"), an empty string when it names no task at all ("add a new task"), and null
|
|
74
|
+
* when it isn't an add.
|
|
75
|
+
*/
|
|
76
|
+
export declare function addedTaskWords(text: string): string | null;
|
|
77
|
+
/**
|
|
78
|
+
* A project named at the end of a new task, the way it is said rather than typed: "buy milk to the
|
|
79
|
+
* shopping list", "fix login in Lucidity", "call the bank for the finance project". Returns the
|
|
80
|
+
* words without it. Null when no project matches, or when two do.
|
|
81
|
+
*/
|
|
82
|
+
export declare function spokenProject(words: string, projects: readonly LocalCommandTarget[]): {
|
|
83
|
+
projectId: string;
|
|
84
|
+
projectName: string;
|
|
85
|
+
words: string;
|
|
86
|
+
} | null;
|
|
87
|
+
/** Whether what was said means "I'm finished with Act" rather than an instruction. */
|
|
88
|
+
export declare function isDismissal(text: string): boolean;
|
|
89
|
+
/** A change to the task that's open, said without naming it: "make it due Friday", "mark it done". */
|
|
90
|
+
export type TaskEdit = {
|
|
91
|
+
kind: 'due';
|
|
92
|
+
words: string;
|
|
93
|
+
} | {
|
|
94
|
+
kind: 'clearDue';
|
|
95
|
+
} | {
|
|
96
|
+
kind: 'move';
|
|
97
|
+
projectId: string | null;
|
|
98
|
+
projectName: string | null;
|
|
99
|
+
} | {
|
|
100
|
+
kind: 'status';
|
|
101
|
+
status: 'complete' | 'reopen' | 'start' | 'blocked' | 'deferred' | 'pending';
|
|
102
|
+
} | {
|
|
103
|
+
kind: 'priority';
|
|
104
|
+
priority: number;
|
|
105
|
+
} | {
|
|
106
|
+
kind: 'delete';
|
|
107
|
+
}
|
|
108
|
+
/** Out of the task sheet. */
|
|
109
|
+
| {
|
|
110
|
+
kind: 'close';
|
|
111
|
+
}
|
|
112
|
+
/** Empty text: nothing was said after "add a comment", so ask what it should say. */
|
|
113
|
+
| {
|
|
114
|
+
kind: 'comment';
|
|
115
|
+
text: string;
|
|
116
|
+
}
|
|
117
|
+
/** No titles: ask for one. */
|
|
118
|
+
| {
|
|
119
|
+
kind: 'subtasks';
|
|
120
|
+
titles: string[];
|
|
121
|
+
}
|
|
122
|
+
/** Empty title: ask for one. */
|
|
123
|
+
| {
|
|
124
|
+
kind: 'rename';
|
|
125
|
+
title: string;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* `add` appends to a description that exists and writes one that doesn't; `set` replaces it;
|
|
129
|
+
* `append` always adds to the end. Empty text: ask for it.
|
|
130
|
+
*/
|
|
131
|
+
| {
|
|
132
|
+
kind: 'describe';
|
|
133
|
+
text: string;
|
|
134
|
+
mode: 'add' | 'set' | 'append';
|
|
135
|
+
} | {
|
|
136
|
+
kind: 'clearDescription';
|
|
137
|
+
}
|
|
138
|
+
/** Null stops it repeating. */
|
|
139
|
+
| {
|
|
140
|
+
kind: 'repeat';
|
|
141
|
+
frequency: 'daily' | 'weekly' | 'monthly' | 'yearly' | null;
|
|
142
|
+
}
|
|
143
|
+
/** When, as words for the caller to read; empty asks. */
|
|
144
|
+
| {
|
|
145
|
+
kind: 'remind';
|
|
146
|
+
words: string;
|
|
147
|
+
} | {
|
|
148
|
+
kind: 'clearReminder';
|
|
149
|
+
}
|
|
150
|
+
/** A milestone by the words it was called, looked up in the task's own project. Null takes it out of one. */
|
|
151
|
+
| {
|
|
152
|
+
kind: 'milestone';
|
|
153
|
+
name: string | null;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Read out the description, the comments, or the task itself. `position` is a task counted on
|
|
157
|
+
* the screen ("the description of the first task"), for when none is open.
|
|
158
|
+
*/
|
|
159
|
+
| {
|
|
160
|
+
kind: 'read';
|
|
161
|
+
what: 'description' | 'comments' | 'all';
|
|
162
|
+
position?: number | 'last';
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* The one item in `list` called `words` as people say names: without "the" or emoji, in either
|
|
166
|
+
* number. Null when none is, or when two are.
|
|
167
|
+
*/
|
|
168
|
+
export declare function namedTarget<T extends LocalCommandTarget>(list: readonly T[], words: string): T | null;
|
|
169
|
+
/**
|
|
170
|
+
* What an instruction changes about the task that's open, when it doesn't name another one. Null
|
|
171
|
+
* when it isn't one of these, or names a project that doesn't exist; that goes to Jev as before.
|
|
172
|
+
* Dates come back as words for the caller to read (`due` with empty words: "add a due date").
|
|
173
|
+
*/
|
|
174
|
+
export declare function taskEdit(text: string, projects: readonly LocalCommandTarget[], milestones?: readonly LocalCommandTarget[]): TaskEdit | null;
|
|
175
|
+
/**
|
|
176
|
+
* A change to a whole project: by name, or "this project" on the project's own screen. `project`
|
|
177
|
+
* is null when none is called that (with `name` as said), or when no name was given (empty `name`).
|
|
178
|
+
*/
|
|
179
|
+
export type ProjectEdit = {
|
|
180
|
+
kind: 'deleteProject' | 'archiveProject';
|
|
181
|
+
project: LocalCommandTarget | null;
|
|
182
|
+
name: string;
|
|
183
|
+
} | {
|
|
184
|
+
kind: 'renameProject';
|
|
185
|
+
project: LocalCommandTarget | null;
|
|
186
|
+
name: string;
|
|
187
|
+
to: string;
|
|
188
|
+
};
|
|
189
|
+
export declare function projectEdit(text: string, projects: readonly LocalCommandTarget[], here?: LocalCommandTarget | null): ProjectEdit | null;
|
|
190
|
+
/**
|
|
191
|
+
* Which offered choice a spoken answer picks, besides by position: "yes" takes the first, and a
|
|
192
|
+
* word that starts exactly one choice's label ("archive", "delete it") takes that one.
|
|
193
|
+
*/
|
|
194
|
+
export declare function choiceBySaying(labels: readonly string[], text: string): number | null;
|
|
195
|
+
/** A question Fast mode asked about a task ("What should the comment say?"), answered next. */
|
|
196
|
+
export type TaskEditQuestion = 'due' | 'comment' | 'subtask' | 'title' | 'description' | 'newDescription' | 'reminder';
|
|
197
|
+
/** The next words, read as the answer to `question` rather than as an instruction. */
|
|
198
|
+
export declare function answerTo(question: TaskEditQuestion, text: string): TaskEdit;
|
|
199
|
+
/**
|
|
200
|
+
* Edits Jev can't carry out, so only the phone can, and only to a task it knows. With no task
|
|
201
|
+
* open they must not go to Jev, which reads "add a comment ..." as a new task called "Comment ...".
|
|
202
|
+
*/
|
|
203
|
+
export declare function phoneOnlyEdit(edit: TaskEdit): boolean;
|
|
204
|
+
/** A priority named anywhere in an instruction ("mark car wash as high priority"), for Jev's steps. */
|
|
205
|
+
export declare function priorityIn(text: string): number | null;
|
|
206
|
+
/**
|
|
207
|
+
* How often an instruction says a task repeats, from anywhere in it: null when it says to stop,
|
|
208
|
+
* undefined when it says neither.
|
|
209
|
+
*/
|
|
210
|
+
export declare function frequencyIn(text: string): 'daily' | 'weekly' | 'monthly' | 'yearly' | null | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* Words that start an edit of an existing task ("add a comment ...", "add subtasks ..."), which
|
|
213
|
+
* must never become a new task whoever read them.
|
|
214
|
+
*/
|
|
215
|
+
export declare function isTaskEditPhrase(text: string): boolean;
|
|
216
|
+
/** How a priority reads in a reply: "high priority", or "priority 300" between the named levels. */
|
|
217
|
+
export declare function priorityLabel(priority: number): string;
|
|
218
|
+
//# sourceMappingURL=commandLocal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandLocal.d.ts","sourceRoot":"","sources":["../src/commandLocal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiG,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAG1J;;;;;;;;GAQG;AAEH,2DAA2D;AAC3D,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxC,UAAU,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC1C,8EAA8E;IAC9E,aAAa,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC9C,yEAAyE;IACzE,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CACpC;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,M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