@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,139 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DayPlanningProjectSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodUUID;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
key: z.ZodNullable<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const DayPlanningActionSchema: z.ZodObject<{
|
|
8
|
+
words: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
11
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
focus: z.ZodBoolean;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
export declare const DayPlanningExtractionSchema: z.ZodObject<{
|
|
15
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
16
|
+
words: z.ZodString;
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
19
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
focus: z.ZodBoolean;
|
|
21
|
+
}, z.core.$strict>>;
|
|
22
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
23
|
+
words: z.ZodString;
|
|
24
|
+
question: z.ZodString;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
export declare const DayPlanningCandidateSchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodUUID;
|
|
29
|
+
title: z.ZodString;
|
|
30
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
31
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
32
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const DayPlanningMatchesSchema: z.ZodObject<{
|
|
35
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
36
|
+
actionIndex: z.ZodNumber;
|
|
37
|
+
taskId: z.ZodNullable<z.ZodUUID>;
|
|
38
|
+
question: z.ZodNullable<z.ZodString>;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
export declare const DayPlanningContextSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
|
+
phase: z.ZodLiteral<"extract">;
|
|
43
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
44
|
+
id: z.ZodUUID;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
key: z.ZodNullable<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
phase: z.ZodLiteral<"match">;
|
|
50
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
51
|
+
words: z.ZodString;
|
|
52
|
+
title: z.ZodString;
|
|
53
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
54
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
focus: z.ZodBoolean;
|
|
56
|
+
}, z.core.$strict>>;
|
|
57
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
58
|
+
actionIndex: z.ZodNumber;
|
|
59
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
60
|
+
id: z.ZodUUID;
|
|
61
|
+
title: z.ZodString;
|
|
62
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
63
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
64
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>], "phase">;
|
|
68
|
+
export declare const DayPlanningReviewSchema: z.ZodObject<{
|
|
69
|
+
text: z.ZodString;
|
|
70
|
+
extraction: z.ZodObject<{
|
|
71
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
72
|
+
words: z.ZodString;
|
|
73
|
+
title: z.ZodString;
|
|
74
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
75
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
76
|
+
focus: z.ZodBoolean;
|
|
77
|
+
}, z.core.$strict>>;
|
|
78
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
79
|
+
words: z.ZodString;
|
|
80
|
+
question: z.ZodString;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
matching: z.ZodObject<{
|
|
84
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
85
|
+
actionIndex: z.ZodNumber;
|
|
86
|
+
taskId: z.ZodNullable<z.ZodUUID>;
|
|
87
|
+
question: z.ZodNullable<z.ZodString>;
|
|
88
|
+
}, z.core.$strict>>;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
export type DayPlanningAction = z.infer<typeof DayPlanningActionSchema>;
|
|
92
|
+
export type DayPlanningExtraction = z.infer<typeof DayPlanningExtractionSchema>;
|
|
93
|
+
export type DayPlanningMatches = z.infer<typeof DayPlanningMatchesSchema>;
|
|
94
|
+
export type DayPlanningContext = z.infer<typeof DayPlanningContextSchema>;
|
|
95
|
+
export type DayPlanningProject = z.infer<typeof DayPlanningProjectSchema>;
|
|
96
|
+
export type DayPlanningCandidate = z.infer<typeof DayPlanningCandidateSchema>;
|
|
97
|
+
export type DayPlanningReview = z.infer<typeof DayPlanningReviewSchema>;
|
|
98
|
+
export declare const dayPlanningOutputSchema: (phase: DayPlanningContext["phase"]) => z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
99
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
100
|
+
words: z.ZodString;
|
|
101
|
+
title: z.ZodString;
|
|
102
|
+
projectId: z.ZodNullable<z.ZodUUID>;
|
|
103
|
+
taskNumber: z.ZodNullable<z.ZodNumber>;
|
|
104
|
+
focus: z.ZodBoolean;
|
|
105
|
+
}, z.core.$strict>>;
|
|
106
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
107
|
+
words: z.ZodString;
|
|
108
|
+
question: z.ZodString;
|
|
109
|
+
}, z.core.$strict>>;
|
|
110
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
111
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
112
|
+
actionIndex: z.ZodNumber;
|
|
113
|
+
taskId: z.ZodNullable<z.ZodUUID>;
|
|
114
|
+
question: z.ZodNullable<z.ZodString>;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
}, z.core.$strict>>;
|
|
117
|
+
export declare function validateDayPlanningExtraction(text: string, result: DayPlanningExtraction, projects: DayPlanningProject[]): {
|
|
118
|
+
actions: {
|
|
119
|
+
words: string;
|
|
120
|
+
title: string;
|
|
121
|
+
projectId: string | null;
|
|
122
|
+
taskNumber: number | null;
|
|
123
|
+
focus: boolean;
|
|
124
|
+
}[];
|
|
125
|
+
questions: {
|
|
126
|
+
words: string;
|
|
127
|
+
question: string;
|
|
128
|
+
}[];
|
|
129
|
+
};
|
|
130
|
+
export declare function validateDayPlanningMatches(context: Extract<DayPlanningContext, {
|
|
131
|
+
phase: 'match';
|
|
132
|
+
}>, result: DayPlanningMatches): {
|
|
133
|
+
matches: {
|
|
134
|
+
actionIndex: number;
|
|
135
|
+
taskId: string | null;
|
|
136
|
+
question: string | null;
|
|
137
|
+
}[];
|
|
138
|
+
};
|
|
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;mBAC2C,CAAC;AAGtH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE,QAAQ,EAAE,kBAAkB,EAAE;;;;;;;;;;;;EAexH;AACD,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,EAAE,MAAM,EAAE,kBAAkB;;;;;;EAc9H"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const words = z.string().trim().min(1).max(4000);
|
|
3
|
+
const title = z.string().trim().min(1).max(300);
|
|
4
|
+
export const DayPlanningProjectSchema = z.object({
|
|
5
|
+
id: z.uuid(), name: z.string().max(255), key: z.string().nullable(),
|
|
6
|
+
});
|
|
7
|
+
export const DayPlanningActionSchema = z.strictObject({
|
|
8
|
+
words, title, projectId: z.uuid().nullable(),
|
|
9
|
+
taskNumber: z.number().int().positive().nullable(), focus: z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
export const DayPlanningExtractionSchema = z.strictObject({
|
|
12
|
+
actions: z.array(DayPlanningActionSchema).max(30),
|
|
13
|
+
questions: z.array(z.strictObject({ words, question: title })).max(12),
|
|
14
|
+
});
|
|
15
|
+
export const DayPlanningCandidateSchema = z.object({
|
|
16
|
+
id: z.uuid(), title: z.string().max(500), projectId: z.uuid().nullable(),
|
|
17
|
+
projectName: z.string().nullable(), taskNumber: z.number().int().nullable(),
|
|
18
|
+
});
|
|
19
|
+
export const DayPlanningMatchesSchema = z.strictObject({
|
|
20
|
+
matches: z.array(z.strictObject({
|
|
21
|
+
actionIndex: z.number().int().min(0).max(29),
|
|
22
|
+
taskId: z.uuid().nullable(), question: title.nullable(),
|
|
23
|
+
})).max(30),
|
|
24
|
+
});
|
|
25
|
+
export const DayPlanningContextSchema = z.discriminatedUnion('phase', [
|
|
26
|
+
z.object({ phase: z.literal('extract'), projects: z.array(DayPlanningProjectSchema).max(200) }),
|
|
27
|
+
z.object({ phase: z.literal('match'), actions: z.array(DayPlanningActionSchema).max(30),
|
|
28
|
+
candidates: z.array(z.object({ actionIndex: z.number().int().min(0).max(29),
|
|
29
|
+
tasks: z.array(DayPlanningCandidateSchema).max(10) })).max(30) }),
|
|
30
|
+
]);
|
|
31
|
+
export const DayPlanningReviewSchema = z.object({
|
|
32
|
+
text: words, extraction: DayPlanningExtractionSchema, matching: DayPlanningMatchesSchema,
|
|
33
|
+
});
|
|
34
|
+
export const dayPlanningOutputSchema = (phase) => z.toJSONSchema(phase === 'extract' ? DayPlanningExtractionSchema : DayPlanningMatchesSchema, { target: 'draft-7' });
|
|
35
|
+
const normalized = (value) => value.toLowerCase().replace(/\s+/g, ' ').trim();
|
|
36
|
+
export function validateDayPlanningExtraction(text, result, projects) {
|
|
37
|
+
if (result.actions.filter((action) => action.focus).length > 1)
|
|
38
|
+
throw new Error('The plan needs one main focus. Please review again.');
|
|
39
|
+
for (const item of [...result.actions, ...result.questions]) {
|
|
40
|
+
if (!normalized(text).includes(normalized(item.words)))
|
|
41
|
+
throw new Error('The plan could not be checked against your words. Please review again.');
|
|
42
|
+
}
|
|
43
|
+
for (const action of result.actions) {
|
|
44
|
+
if (/^(?:and|i|then|also|so|but|today|okay|ok)[.!?]*$/i.test(action.title) ||
|
|
45
|
+
!/\p{L}/u.test(action.title))
|
|
46
|
+
throw new Error('The plan contains an unfinished thought. Please review again.');
|
|
47
|
+
if (action.projectId && !projects.some((project) => project.id === action.projectId))
|
|
48
|
+
throw new Error('A project in this plan is unavailable. Please review again.');
|
|
49
|
+
}
|
|
50
|
+
return result;
|
|
51
|
+
}
|
|
52
|
+
export function validateDayPlanningMatches(context, result) {
|
|
53
|
+
const indexes = result.matches.map((match) => match.actionIndex);
|
|
54
|
+
if (indexes.length !== context.actions.length || new Set(indexes).size !== indexes.length ||
|
|
55
|
+
indexes.some((index) => !context.actions[index]))
|
|
56
|
+
throw new Error('The task matches are incomplete. Please review again.');
|
|
57
|
+
for (const match of result.matches) {
|
|
58
|
+
if (!match.taskId)
|
|
59
|
+
continue;
|
|
60
|
+
const action = context.actions[match.actionIndex];
|
|
61
|
+
const task = context.candidates.find((group) => group.actionIndex === match.actionIndex)?.tasks.find((item) => item.id === match.taskId);
|
|
62
|
+
if (!task || (action.projectId && action.projectId !== task.projectId) ||
|
|
63
|
+
(action.taskNumber !== null && (!action.projectId || action.taskNumber !== task.taskNumber)) || match.question)
|
|
64
|
+
throw new Error('A suggested task could not be verified. Please review again.');
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GITHUB_REFRESH_MS: number;
|
|
3
|
+
export declare const GITHUB_RETRY_MS: number;
|
|
4
|
+
export declare const GITHUB_CONNECT_REDIRECT = "lucidity://github-connect";
|
|
5
|
+
export declare const GitHubConnectionSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
login: z.ZodNullable<z.ZodString>;
|
|
8
|
+
source: z.ZodEnum<{
|
|
9
|
+
github: "github";
|
|
10
|
+
clerk: "clerk";
|
|
11
|
+
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const GitHubConnectionStatusSchema: z.ZodObject<{
|
|
14
|
+
available: z.ZodBoolean;
|
|
15
|
+
connection: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
login: z.ZodNullable<z.ZodString>;
|
|
18
|
+
source: z.ZodEnum<{
|
|
19
|
+
github: "github";
|
|
20
|
+
clerk: "clerk";
|
|
21
|
+
}>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const GitHubConnectStartSchema: z.ZodObject<{
|
|
25
|
+
authorizationUrl: z.ZodURL;
|
|
26
|
+
redirectUrl: z.ZodLiteral<"lucidity://github-connect">;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const GitHubConnectCompleteSchema: z.ZodObject<{
|
|
29
|
+
code: z.ZodString;
|
|
30
|
+
state: z.ZodString;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type GitHubConnection = z.infer<typeof GitHubConnectionSchema>;
|
|
33
|
+
export declare const GitHubContributionDaySchema: z.ZodObject<{
|
|
34
|
+
date: z.ZodISODate;
|
|
35
|
+
contributionCount: z.ZodNumber;
|
|
36
|
+
contributionLevel: z.ZodEnum<{
|
|
37
|
+
NONE: "NONE";
|
|
38
|
+
FIRST_QUARTILE: "FIRST_QUARTILE";
|
|
39
|
+
SECOND_QUARTILE: "SECOND_QUARTILE";
|
|
40
|
+
THIRD_QUARTILE: "THIRD_QUARTILE";
|
|
41
|
+
FOURTH_QUARTILE: "FOURTH_QUARTILE";
|
|
42
|
+
}>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export declare const GitHubContributionSnapshotSchema: z.ZodObject<{
|
|
45
|
+
login: z.ZodString;
|
|
46
|
+
fetchedAt: z.ZodNumber;
|
|
47
|
+
totalContributions: z.ZodNumber;
|
|
48
|
+
weeks: z.ZodArray<z.ZodObject<{
|
|
49
|
+
contributionDays: z.ZodArray<z.ZodObject<{
|
|
50
|
+
date: z.ZodISODate;
|
|
51
|
+
contributionCount: z.ZodNumber;
|
|
52
|
+
contributionLevel: z.ZodEnum<{
|
|
53
|
+
NONE: "NONE";
|
|
54
|
+
FIRST_QUARTILE: "FIRST_QUARTILE";
|
|
55
|
+
SECOND_QUARTILE: "SECOND_QUARTILE";
|
|
56
|
+
THIRD_QUARTILE: "THIRD_QUARTILE";
|
|
57
|
+
FOURTH_QUARTILE: "FOURTH_QUARTILE";
|
|
58
|
+
}>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export declare const GitHubContributionsResponseSchema: z.ZodObject<{
|
|
63
|
+
status: z.ZodEnum<{
|
|
64
|
+
ready: "ready";
|
|
65
|
+
unavailable: "unavailable";
|
|
66
|
+
refreshing: "refreshing";
|
|
67
|
+
reconnect: "reconnect";
|
|
68
|
+
disconnected: "disconnected";
|
|
69
|
+
}>;
|
|
70
|
+
snapshot: z.ZodNullable<z.ZodObject<{
|
|
71
|
+
login: z.ZodString;
|
|
72
|
+
fetchedAt: z.ZodNumber;
|
|
73
|
+
totalContributions: z.ZodNumber;
|
|
74
|
+
weeks: z.ZodArray<z.ZodObject<{
|
|
75
|
+
contributionDays: z.ZodArray<z.ZodObject<{
|
|
76
|
+
date: z.ZodISODate;
|
|
77
|
+
contributionCount: z.ZodNumber;
|
|
78
|
+
contributionLevel: z.ZodEnum<{
|
|
79
|
+
NONE: "NONE";
|
|
80
|
+
FIRST_QUARTILE: "FIRST_QUARTILE";
|
|
81
|
+
SECOND_QUARTILE: "SECOND_QUARTILE";
|
|
82
|
+
THIRD_QUARTILE: "THIRD_QUARTILE";
|
|
83
|
+
FOURTH_QUARTILE: "FOURTH_QUARTILE";
|
|
84
|
+
}>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
retryAt: z.ZodNumber;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type GitHubContributionDay = z.infer<typeof GitHubContributionDaySchema>;
|
|
91
|
+
export type GitHubContributionSnapshot = z.infer<typeof GitHubContributionSnapshotSchema>;
|
|
92
|
+
export type GitHubContributionsResponse = z.infer<typeof GitHubContributionsResponseSchema>;
|
|
93
|
+
//# sourceMappingURL=githubContributions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"githubContributions.d.ts","sourceRoot":"","sources":["../src/githubContributions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB,QAAsB,CAAC;AACrD,eAAO,MAAM,eAAe,QAAiB,CAAC;AAE9C,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,sBAAsB;;;;;;;iBAIjC,CAAC;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;iBAGvC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAUtC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;iBAY3C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU5C,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const GITHUB_REFRESH_MS = 12 * 60 * 60 * 1000;
|
|
3
|
+
export const GITHUB_RETRY_MS = 15 * 60 * 1000;
|
|
4
|
+
export const GITHUB_CONNECT_REDIRECT = 'lucidity://github-connect';
|
|
5
|
+
export const GitHubConnectionSchema = z.object({
|
|
6
|
+
id: z.string().min(1),
|
|
7
|
+
login: z.string().nullable(),
|
|
8
|
+
source: z.enum(['github', 'clerk']),
|
|
9
|
+
});
|
|
10
|
+
export const GitHubConnectionStatusSchema = z.object({
|
|
11
|
+
available: z.boolean(),
|
|
12
|
+
connection: GitHubConnectionSchema.nullable(),
|
|
13
|
+
});
|
|
14
|
+
export const GitHubConnectStartSchema = z.object({
|
|
15
|
+
authorizationUrl: z.url(),
|
|
16
|
+
redirectUrl: z.literal(GITHUB_CONNECT_REDIRECT),
|
|
17
|
+
});
|
|
18
|
+
export const GitHubConnectCompleteSchema = z.object({
|
|
19
|
+
code: z.string().min(1).max(512),
|
|
20
|
+
state: z.string().regex(/^[A-Za-z0-9_-]{43}$/),
|
|
21
|
+
});
|
|
22
|
+
export const GitHubContributionDaySchema = z.object({
|
|
23
|
+
date: z.iso.date(),
|
|
24
|
+
contributionCount: z.number().int().nonnegative(),
|
|
25
|
+
contributionLevel: z.enum([
|
|
26
|
+
'NONE',
|
|
27
|
+
'FIRST_QUARTILE',
|
|
28
|
+
'SECOND_QUARTILE',
|
|
29
|
+
'THIRD_QUARTILE',
|
|
30
|
+
'FOURTH_QUARTILE',
|
|
31
|
+
]),
|
|
32
|
+
});
|
|
33
|
+
export const GitHubContributionSnapshotSchema = z.object({
|
|
34
|
+
login: z.string().regex(/^[a-z\d](?:[a-z\d-]{0,37}[a-z\d])?$/i),
|
|
35
|
+
fetchedAt: z.number().int().positive(),
|
|
36
|
+
totalContributions: z.number().int().nonnegative(),
|
|
37
|
+
weeks: z
|
|
38
|
+
.array(z.object({
|
|
39
|
+
contributionDays: z.array(GitHubContributionDaySchema).min(1).max(7),
|
|
40
|
+
}))
|
|
41
|
+
.min(1)
|
|
42
|
+
.max(54),
|
|
43
|
+
});
|
|
44
|
+
export const GitHubContributionsResponseSchema = z.object({
|
|
45
|
+
status: z.enum([
|
|
46
|
+
'ready',
|
|
47
|
+
'refreshing',
|
|
48
|
+
'unavailable',
|
|
49
|
+
'reconnect',
|
|
50
|
+
'disconnected',
|
|
51
|
+
]),
|
|
52
|
+
snapshot: GitHubContributionSnapshotSchema.nullable(),
|
|
53
|
+
retryAt: z.number().int().nonnegative(),
|
|
54
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type HabitColor, type HabitIcon, type HabitHistory, type StudioHabit } from './cardStudio.js';
|
|
2
|
+
export declare const HABIT_ICONS: Record<HabitIcon, string>;
|
|
3
|
+
/** Colours are tokens, not arbitrary styles. Each has a readable light/dark treatment. */
|
|
4
|
+
export declare const HABIT_COLORS: Record<HabitColor, {
|
|
5
|
+
label: string;
|
|
6
|
+
light: string;
|
|
7
|
+
dark: string;
|
|
8
|
+
lightSurface: string;
|
|
9
|
+
darkSurface: string;
|
|
10
|
+
}>;
|
|
11
|
+
/** 91 recent days cover all thirteen calendar weeks and the existing 90-day editor. */
|
|
12
|
+
export declare function buildHabitHistory(dates: readonly string[], today: string): HabitHistory;
|
|
13
|
+
export declare function habitContributionSummary(habit: StudioHabit, today: string, timeZone: string): {
|
|
14
|
+
start: string;
|
|
15
|
+
eligibleDays: number;
|
|
16
|
+
total: number;
|
|
17
|
+
longest: number;
|
|
18
|
+
completion: number;
|
|
19
|
+
} | null;
|
|
20
|
+
export type HabitCellState = 'logged' | 'unlogged' | 'unavailable';
|
|
21
|
+
export declare function habitContributionWeeks(days: readonly string[], today: string, start: string): {
|
|
22
|
+
day: string;
|
|
23
|
+
state: HabitCellState;
|
|
24
|
+
today: boolean;
|
|
25
|
+
}[][];
|
|
26
|
+
//# sourceMappingURL=habitContributions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"habitContributions.d.ts","sourceRoot":"","sources":["../src/habitContributions.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAajD,CAAC;AAEF,0FAA0F;AAC1F,eAAO,MAAM,YAAY,EAAE,MAAM,CAC/B,UAAU,EACV;IACE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB,CA4CF,CAAC;AAEF,uFAAuF;AACvF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY,CAoBvF;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;SA0B3F;AAED,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,UAAU,GAAG,aAAa,CAAC;AACnE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;MAY3F"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { shiftStudioDate, studioLocalDate, } from './cardStudio.js';
|
|
2
|
+
export const HABIT_ICONS = {
|
|
3
|
+
check: 'Checkmark',
|
|
4
|
+
book: 'Book',
|
|
5
|
+
guitar: 'Guitar',
|
|
6
|
+
dumbbell: 'Weights',
|
|
7
|
+
walk: 'Walking',
|
|
8
|
+
water: 'Water',
|
|
9
|
+
leaf: 'Leaf',
|
|
10
|
+
heart: 'Heart',
|
|
11
|
+
moon: 'Moon',
|
|
12
|
+
pencil: 'Pencil',
|
|
13
|
+
code: 'Code',
|
|
14
|
+
music: 'Music',
|
|
15
|
+
};
|
|
16
|
+
/** Colours are tokens, not arbitrary styles. Each has a readable light/dark treatment. */
|
|
17
|
+
export const HABIT_COLORS = {
|
|
18
|
+
green: {
|
|
19
|
+
label: 'Green',
|
|
20
|
+
light: '#3E7C56',
|
|
21
|
+
dark: '#8DD5A5',
|
|
22
|
+
lightSurface: '#E8F0E7',
|
|
23
|
+
darkSurface: '#25392C',
|
|
24
|
+
},
|
|
25
|
+
amber: {
|
|
26
|
+
label: 'Amber',
|
|
27
|
+
light: '#996019',
|
|
28
|
+
dark: '#E8BC75',
|
|
29
|
+
lightSurface: '#F0E6D2',
|
|
30
|
+
darkSurface: '#3C3020',
|
|
31
|
+
},
|
|
32
|
+
berry: {
|
|
33
|
+
label: 'Berry',
|
|
34
|
+
light: '#A34470',
|
|
35
|
+
dark: '#E7A4C4',
|
|
36
|
+
lightSurface: '#F5E7ED',
|
|
37
|
+
darkSurface: '#3D2935',
|
|
38
|
+
},
|
|
39
|
+
blue: {
|
|
40
|
+
label: 'Blue',
|
|
41
|
+
light: '#356F9C',
|
|
42
|
+
dark: '#8AC6EE',
|
|
43
|
+
lightSurface: '#E5EFF6',
|
|
44
|
+
darkSurface: '#233744',
|
|
45
|
+
},
|
|
46
|
+
coral: {
|
|
47
|
+
label: 'Coral',
|
|
48
|
+
light: '#B04D37',
|
|
49
|
+
dark: '#F2AD96',
|
|
50
|
+
lightSurface: '#F6E7DF',
|
|
51
|
+
darkSurface: '#402D27',
|
|
52
|
+
},
|
|
53
|
+
teal: {
|
|
54
|
+
label: 'Teal',
|
|
55
|
+
light: '#277C79',
|
|
56
|
+
dark: '#84D5CD',
|
|
57
|
+
lightSurface: '#E2F0EC',
|
|
58
|
+
darkSurface: '#233C38',
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
/** 91 recent days cover all thirteen calendar weeks and the existing 90-day editor. */
|
|
62
|
+
export function buildHabitHistory(dates, today) {
|
|
63
|
+
const windowStart = shiftStudioDate(today, -90);
|
|
64
|
+
const days = [...new Set(dates)].filter((day) => day <= today).sort();
|
|
65
|
+
const before = days.filter((day) => day < windowStart);
|
|
66
|
+
let longestBefore = 0;
|
|
67
|
+
let streak = 0;
|
|
68
|
+
let previous;
|
|
69
|
+
for (const day of before) {
|
|
70
|
+
streak = previous && shiftStudioDate(previous, 1) === day ? streak + 1 : 1;
|
|
71
|
+
longestBefore = Math.max(longestBefore, streak);
|
|
72
|
+
previous = day;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
windowStart,
|
|
76
|
+
firstDayBefore: before[0] ?? null,
|
|
77
|
+
totalBefore: before.length,
|
|
78
|
+
longestBefore,
|
|
79
|
+
streakBefore: previous === shiftStudioDate(windowStart, -1) ? streak : 0,
|
|
80
|
+
days: days.filter((day) => day >= windowStart),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
export function habitContributionSummary(habit, today, timeZone) {
|
|
84
|
+
if (!habit.history)
|
|
85
|
+
return null;
|
|
86
|
+
const history = habit.history;
|
|
87
|
+
const days = [...new Set(history.days)].filter((day) => day <= today).sort();
|
|
88
|
+
const created = studioLocalDate(new Date(habit.createdAt), timeZone);
|
|
89
|
+
// Daily rhythm permits backdating. Honour those real check-ins rather than hide them.
|
|
90
|
+
const start = [created, history.firstDayBefore ?? today, days[0] ?? today, today].sort()[0];
|
|
91
|
+
let streak = history.streakBefore;
|
|
92
|
+
let longest = history.longestBefore;
|
|
93
|
+
let previous = shiftStudioDate(history.windowStart, -1);
|
|
94
|
+
for (const day of days) {
|
|
95
|
+
streak = shiftStudioDate(previous, 1) === day ? streak + 1 : 1;
|
|
96
|
+
longest = Math.max(longest, streak);
|
|
97
|
+
previous = day;
|
|
98
|
+
}
|
|
99
|
+
const eligibleDays = Math.round((Date.parse(today + 'T12:00:00Z') - Date.parse(start + 'T12:00:00Z')) / 86_400_000) +
|
|
100
|
+
1;
|
|
101
|
+
const total = history.totalBefore + days.length;
|
|
102
|
+
return {
|
|
103
|
+
start,
|
|
104
|
+
eligibleDays,
|
|
105
|
+
total,
|
|
106
|
+
longest,
|
|
107
|
+
completion: Math.round((100 * total) / eligibleDays),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export function habitContributionWeeks(days, today, start) {
|
|
111
|
+
const weekday = (new Date(today + 'T12:00:00Z').getUTCDay() + 6) % 7;
|
|
112
|
+
const first = shiftStudioDate(today, -weekday - 84);
|
|
113
|
+
const logged = new Set(days);
|
|
114
|
+
return Array.from({ length: 13 }, (_, week) => Array.from({ length: 7 }, (_, row) => {
|
|
115
|
+
const day = shiftStudioDate(first, week * 7 + row);
|
|
116
|
+
const state = day < start || day > today ? 'unavailable' : logged.has(day) ? 'logged' : 'unlogged';
|
|
117
|
+
return { day, state, today: day === today };
|
|
118
|
+
}));
|
|
119
|
+
}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './dayPlanning.js';
|
|
2
|
+
export * from './githubContributions.js';
|
|
3
|
+
export * from './projectCapture.js';
|
|
4
|
+
export * from './taskActivity.js';
|
|
5
|
+
export * from './recurrence.js';
|
|
6
|
+
export * from './vault-search.js';
|
|
7
|
+
export * from './journal-vault.js';
|
|
8
|
+
export * from './journal-migration.js';
|
|
9
|
+
export { CARD_SYMBOL_NAMES, CardStatementSegmentSchema, validatedCardSegments, } from './cardStatement.js';
|
|
10
|
+
export type { CardSymbol, CardStatementSegment, StyledCardStatement, } from './cardStatement.js';
|
|
11
|
+
export { setupPage, setupStyles, setupMark, setupIllustration, escapeSetupHtml, } from './setupAppearance.js';
|
|
2
12
|
export { TASK_STATUS, TASK_STATUS_VALUES, PRIORITY_MIN, PRIORITY_MAX, COMMENT_SOURCE_VALUES, AI_REVIEW_DEPTH_VALUES, TIME_SESSION_DEVICE_VALUES, PROJECT_VISIBILITY_VALUES, MEMBER_ACCESS_VALUES, PROJECT_ACCESS_VALUES, SENDER_KINDS, CONNECTION_STATUS_VALUES, HANDLE_MIN_LENGTH, HANDLE_MAX_LENGTH, HANDLE_PATTERN, HANDLE_RESERVED, MESSAGE_MAX_LENGTH, BIO_MAX_LENGTH, normalizeHandle, isReservedHandle, normalizeBio, HARNESS_REQUEST_KINDS, WORKSPACE_MODES, EFFORT_LEVELS, EFFORT_OPTIONS, claudeModelLabel, effortLabel, DELIVERY_CHANNELS, DAEMON_RESTART_FIELDS, AGENT_MODES, WORKER_STATUSES, JOURNAL_SOURCES, JOURNAL_OBSERVATION_KINDS, OBSERVATION_LABEL_MAX_LENGTH, EXTRACTOR_VERSION, PROPOSAL_KINDS, PROPOSAL_MIN_CONFIDENCE, PROPOSAL_STATUSES, PROPOSAL_LINK_TARGETS, LINK_AUTO_ACCEPT_CONFIDENCE, TRANSCRIPT_MAX_LENGTH, isValidLocalDate, ORG_ROLE_VALUES, ORG_ROLE_RANK, ORG_ENROLLMENT_MODE_VALUES, ORG_HANDLE_MIN_LENGTH, ORG_HANDLE_MAX_LENGTH, ORG_HANDLE_PATTERN, ORG_HANDLE_RESERVED, normalizeOrgHandle, isReservedOrgHandle, PROJECT_KEY_PATTERN, PROJECT_KEY_MIN_LENGTH, PROJECT_KEY_MAX_LENGTH, deriveProjectKey, taskIdentifier, ORG_CAPABILITY_DEFAULTS, ORG_CAPABILITY_VALUES, orgCapabilityAllows, } from './constants.js';
|
|
3
13
|
export type { AgentMode, WorkerStatus, JournalSource, JournalObservationKind, ProposalKind, ProposalStatus, ProposalLinkTarget, } from './constants.js';
|
|
4
14
|
export { parseFrontmatter, noteTitle } from './notes.js';
|
|
@@ -18,9 +28,25 @@ export { ProjectMemberSchema, CreateProjectMemberSchema, UpdateProjectMemberSche
|
|
|
18
28
|
export { OrganizationSchema, CreateOrganizationSchema, UpdateOrganizationSchema, UpdateOrganizationSettingsSchema, OrganizationMemberWithUserSchema, InviteOrganizationMemberSchema, UpdateOrganizationMemberSchema, OrganizationDomainSchema, CreateOrganizationDomainSchema, MembershipRequestWithUserSchema, OrganizationPreviewSchema, OrganizationProfileSchema, UserOrganizationSchema, CreateInvitationSchema, InvitationSchema, InvitationPreviewSchema, } from './schemas/organization.js';
|
|
19
29
|
export { REQUEST_KIND_VALUES, REQUEST_STATUS_LABELS, PROCUREMENT_PROJECT_KEY, PROCUREMENT_PROJECT_NAME, RequestSchema, CreateRequestSchema, UpdateRequestSchema, RequestWithTaskSchema, } from './schemas/request.js';
|
|
20
30
|
export { NOTIFICATION_KINDS, NOTIFICATION_TARGETS, NotificationSchema, NotificationActorSchema, UnreadCountSchema, } from './schemas/notification.js';
|
|
21
|
-
export { AgentProviderSchema, SteerRequestSchema, PermissionRequestSchema, ModelsRequestSchema, ControlResponseSchema, ModelsResponseSchema, AskRequestSchema, BriefingRequestSchema, JournalRequestSchema, CodeRequestSchema, ConductRequestSchema, FleetPlanSchema, FleetWorkerSchema, RepoListRequestSchema, ListPrsRequestSchema, GetConfigRequestSchema, SetConfigRequestSchema, IncidentTransitionSchema, IncidentTurnSchema, IncidentSnapshotSchema, IncidentDiagEventSchema, IncidentReportRequestSchema, IncidentAckResponseSchema, DaemonConfigViewSchema, DaemonConfigPatchSchema, DaemonCapabilitiesPatchSchema, ConfigResponseSchema, HarnessRequestSchema, ApprovalRequestSchema, ApprovalResponseSchema, JournalEntrySchema, AskResponseSchema, BriefingResponseSchema, JournalResponseSchema, RepoListResponseSchema, PrInfoSchema, PrListResponseSchema, HarnessResponseSchema, HarnessStreamEventSchema, HarnessMessageSchema, DeviceConflictSchema, AttentionBoardSchema, AttentionBoardEntrySchema, AttentionRequestSchema, AttentionResponseSchema, VoiceDiagChunkSchema, VoiceDiagReportRequestSchema, VoiceDiagAckResponseSchema, } from './schemas/harness.js';
|
|
31
|
+
export { AgentProviderSchema, SteerRequestSchema, PermissionRequestSchema, ModelsRequestSchema, ControlResponseSchema, ModelsResponseSchema, AskRequestSchema, BriefingRequestSchema, JournalRequestSchema, CodeRequestSchema, ConductRequestSchema, FleetPlanSchema, FleetWorkerSchema, RepoListRequestSchema, ListPrsRequestSchema, GetConfigRequestSchema, SetConfigRequestSchema, IncidentTransitionSchema, IncidentTurnSchema, IncidentSnapshotSchema, IncidentDiagEventSchema, IncidentReportRequestSchema, IncidentAckResponseSchema, DaemonConfigViewSchema, DaemonConfigPatchSchema, DaemonCapabilitiesPatchSchema, ConfigResponseSchema, HarnessRequestSchema, ApprovalRequestSchema, ApprovalResponseSchema, JournalEntrySchema, AskResponseSchema, BriefingResponseSchema, JournalResponseSchema, RepoListResponseSchema, PrInfoSchema, PrListResponseSchema, HarnessResponseSchema, HarnessStreamEventSchema, HarnessMessageSchema, DeviceConflictSchema, AttentionBoardSchema, AttentionBoardEntrySchema, AttentionRequestSchema, AttentionResponseSchema, VoiceDiagChunkSchema, VoiceDiagReportRequestSchema, VoiceDiagAckResponseSchema, ProviderHandoffSchema, } from './schemas/harness.js';
|
|
32
|
+
export type { ProviderHandoff } from './schemas/harness.js';
|
|
22
33
|
export type { Task, CreateTask, UpdateTask, User, CreateUser, UpdateUser, Project, CreateProject, UpdateProject, SharedProject, Milestone, CreateMilestone, UpdateMilestone, Comment, CreateComment, UpdateComment, TimeSession, CreateTimeSession, UpdateTimeSession, ProjectMember, CreateProjectMember, UpdateProjectMember, ProjectMemberWithUser, Organization, CreateOrganization, UpdateOrganization, OrganizationMemberWithUser, InviteOrganizationMember, UpdateOrganizationMember, OrganizationDomain, CreateOrganizationDomain, MembershipRequestWithUser, OrganizationPreview, OrganizationProfile, UserOrganization, OrgRole, OrgEnrollmentMode, OrgCapability, CreateInvitation, Invitation, InvitationPreview, RequestKind, Request, CreateRequest, UpdateRequest, RequestWithTask, Notification, NotificationKind, NotificationTarget, InviteProjectMember, ProjectVisibility, MemberAccess, ProjectAccess, PublicUser, PublicProfile, ClaimHandle, UpdateProfile, Connection, CreateConnection, ConnectionWithUser, ConnectionStatus, Conversation, CreateConversation, ConversationSummary, JournalDay, JournalDayWithSegments, JournalDaySummary, JournalSegment, CreateJournalSegment, CorrectJournalSegment, JournalSegmentWithObservations, ExtractedObservation, WriteJournalObservations, JournalObservation, Proposal, ProposalWithEvidence, CreateProposal, AcceptProposal, RejectProposal, TaskProposalPayload, LinkProposalPayload, Message, CreateMessage, MessageWithAuthor, SenderKind, HarnessRequestKind, WorkspaceMode, HarnessImage, AskRequest, BriefingRequest, JournalRequest, CodeRequest, ConductRequest, FleetPlan, FleetWorker, RepoListRequest, ListPrsRequest, PrInfo, PrListResponse, GetConfigRequest, SetConfigRequest, DaemonConfigView, DaemonConfigPatch, ConfigResponse, IncidentTransition, IncidentTurn, IncidentSnapshot, IncidentDiagEvent, IncidentReportRequest, IncidentAckResponse, HarnessRequest, HarnessRequestInput, ApprovalRequest, ApprovalResponse, ApprovalDecision, JournalEntry, AskResponse, BriefingResponse, JournalResponse, RepoListResponse, HarnessResponse, HarnessStreamEvent, HarnessMessage, DeviceConflict, AttentionBoard, AttentionBoardEntry, AttentionRequest, AttentionResponse, VoiceDiagChunk, VoiceDiagReportRequest, VoiceDiagAckResponse, } from './types.js';
|
|
23
34
|
export { AgentModelOptionSchema } from './schemas/harness.js';
|
|
24
35
|
export type { AgentModelOption } from './schemas/harness.js';
|
|
25
36
|
export * from './computer.js';
|
|
37
|
+
export * from './cardStudio.js';
|
|
38
|
+
export * from './habitContributions.js';
|
|
39
|
+
export * from './speech.js';
|
|
40
|
+
export * from './smartCapture.js';
|
|
41
|
+
export * from './commands.js';
|
|
42
|
+
export * from './commandText.js';
|
|
43
|
+
export * from './commandLocal.js';
|
|
44
|
+
export * from './reminderWords.js';
|
|
45
|
+
export * from './spokenNames.js';
|
|
46
|
+
export * from './voiceCapture.js';
|
|
47
|
+
export * from './automations.js';
|
|
48
|
+
export * from './automationTemplates.js';
|
|
49
|
+
export * from './dayPlan.js';
|
|
50
|
+
export { parseAgentCommand, findAgentCommand } from './agentCommands.js';
|
|
51
|
+
export type { AgentCommandOption, AgentCommandContext } from './agentCommands.js';
|
|
26
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EACL,iBAAiB,EACjB,0B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O,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
export * from './dayPlanning.js';
|
|
2
|
+
export * from './githubContributions.js';
|
|
3
|
+
export * from './projectCapture.js';
|
|
4
|
+
export * from './taskActivity.js';
|
|
5
|
+
export * from './recurrence.js';
|
|
6
|
+
export * from './vault-search.js';
|
|
7
|
+
export * from './journal-vault.js';
|
|
8
|
+
export * from './journal-migration.js';
|
|
1
9
|
// Constants
|
|
2
|
-
export {
|
|
10
|
+
export { CARD_SYMBOL_NAMES, CardStatementSegmentSchema, validatedCardSegments, } from './cardStatement.js';
|
|
11
|
+
export { setupPage, setupStyles, setupMark, setupIllustration, escapeSetupHtml, } from './setupAppearance.js';
|
|
3
12
|
export { TASK_STATUS, TASK_STATUS_VALUES, PRIORITY_MIN, PRIORITY_MAX, COMMENT_SOURCE_VALUES, AI_REVIEW_DEPTH_VALUES, TIME_SESSION_DEVICE_VALUES, PROJECT_VISIBILITY_VALUES, MEMBER_ACCESS_VALUES, PROJECT_ACCESS_VALUES, SENDER_KINDS, CONNECTION_STATUS_VALUES, HANDLE_MIN_LENGTH, HANDLE_MAX_LENGTH, HANDLE_PATTERN, HANDLE_RESERVED, MESSAGE_MAX_LENGTH, BIO_MAX_LENGTH, normalizeHandle, isReservedHandle, normalizeBio, HARNESS_REQUEST_KINDS, WORKSPACE_MODES, EFFORT_LEVELS, EFFORT_OPTIONS, claudeModelLabel, effortLabel, DELIVERY_CHANNELS, DAEMON_RESTART_FIELDS, AGENT_MODES, WORKER_STATUSES, JOURNAL_SOURCES, JOURNAL_OBSERVATION_KINDS, OBSERVATION_LABEL_MAX_LENGTH, EXTRACTOR_VERSION, PROPOSAL_KINDS, PROPOSAL_MIN_CONFIDENCE, PROPOSAL_STATUSES, PROPOSAL_LINK_TARGETS, LINK_AUTO_ACCEPT_CONFIDENCE, TRANSCRIPT_MAX_LENGTH, isValidLocalDate, ORG_ROLE_VALUES, ORG_ROLE_RANK, ORG_ENROLLMENT_MODE_VALUES, ORG_HANDLE_MIN_LENGTH, ORG_HANDLE_MAX_LENGTH, ORG_HANDLE_PATTERN, ORG_HANDLE_RESERVED, normalizeOrgHandle, isReservedOrgHandle, PROJECT_KEY_PATTERN, PROJECT_KEY_MIN_LENGTH, PROJECT_KEY_MAX_LENGTH, deriveProjectKey, taskIdentifier, ORG_CAPABILITY_DEFAULTS, ORG_CAPABILITY_VALUES, orgCapabilityAllows, } from './constants.js';
|
|
4
13
|
// Notes
|
|
5
14
|
export { parseFrontmatter, noteTitle } from './notes.js';
|
|
@@ -21,6 +30,20 @@ export { ProjectMemberSchema, CreateProjectMemberSchema, UpdateProjectMemberSche
|
|
|
21
30
|
export { OrganizationSchema, CreateOrganizationSchema, UpdateOrganizationSchema, UpdateOrganizationSettingsSchema, OrganizationMemberWithUserSchema, InviteOrganizationMemberSchema, UpdateOrganizationMemberSchema, OrganizationDomainSchema, CreateOrganizationDomainSchema, MembershipRequestWithUserSchema, OrganizationPreviewSchema, OrganizationProfileSchema, UserOrganizationSchema, CreateInvitationSchema, InvitationSchema, InvitationPreviewSchema, } from './schemas/organization.js';
|
|
22
31
|
export { REQUEST_KIND_VALUES, REQUEST_STATUS_LABELS, PROCUREMENT_PROJECT_KEY, PROCUREMENT_PROJECT_NAME, RequestSchema, CreateRequestSchema, UpdateRequestSchema, RequestWithTaskSchema, } from './schemas/request.js';
|
|
23
32
|
export { NOTIFICATION_KINDS, NOTIFICATION_TARGETS, NotificationSchema, NotificationActorSchema, UnreadCountSchema, } from './schemas/notification.js';
|
|
24
|
-
export { AgentProviderSchema, SteerRequestSchema, PermissionRequestSchema, ModelsRequestSchema, ControlResponseSchema, ModelsResponseSchema, AskRequestSchema, BriefingRequestSchema, JournalRequestSchema, CodeRequestSchema, ConductRequestSchema, FleetPlanSchema, FleetWorkerSchema, RepoListRequestSchema, ListPrsRequestSchema, GetConfigRequestSchema, SetConfigRequestSchema, IncidentTransitionSchema, IncidentTurnSchema, IncidentSnapshotSchema, IncidentDiagEventSchema, IncidentReportRequestSchema, IncidentAckResponseSchema, DaemonConfigViewSchema, DaemonConfigPatchSchema, DaemonCapabilitiesPatchSchema, ConfigResponseSchema, HarnessRequestSchema, ApprovalRequestSchema, ApprovalResponseSchema, JournalEntrySchema, AskResponseSchema, BriefingResponseSchema, JournalResponseSchema, RepoListResponseSchema, PrInfoSchema, PrListResponseSchema, HarnessResponseSchema, HarnessStreamEventSchema, HarnessMessageSchema, DeviceConflictSchema, AttentionBoardSchema, AttentionBoardEntrySchema, AttentionRequestSchema, AttentionResponseSchema, VoiceDiagChunkSchema, VoiceDiagReportRequestSchema, VoiceDiagAckResponseSchema, } from './schemas/harness.js';
|
|
33
|
+
export { AgentProviderSchema, SteerRequestSchema, PermissionRequestSchema, ModelsRequestSchema, ControlResponseSchema, ModelsResponseSchema, AskRequestSchema, BriefingRequestSchema, JournalRequestSchema, CodeRequestSchema, ConductRequestSchema, FleetPlanSchema, FleetWorkerSchema, RepoListRequestSchema, ListPrsRequestSchema, GetConfigRequestSchema, SetConfigRequestSchema, IncidentTransitionSchema, IncidentTurnSchema, IncidentSnapshotSchema, IncidentDiagEventSchema, IncidentReportRequestSchema, IncidentAckResponseSchema, DaemonConfigViewSchema, DaemonConfigPatchSchema, DaemonCapabilitiesPatchSchema, ConfigResponseSchema, HarnessRequestSchema, ApprovalRequestSchema, ApprovalResponseSchema, JournalEntrySchema, AskResponseSchema, BriefingResponseSchema, JournalResponseSchema, RepoListResponseSchema, PrInfoSchema, PrListResponseSchema, HarnessResponseSchema, HarnessStreamEventSchema, HarnessMessageSchema, DeviceConflictSchema, AttentionBoardSchema, AttentionBoardEntrySchema, AttentionRequestSchema, AttentionResponseSchema, VoiceDiagChunkSchema, VoiceDiagReportRequestSchema, VoiceDiagAckResponseSchema, ProviderHandoffSchema, } from './schemas/harness.js';
|
|
25
34
|
export { AgentModelOptionSchema } from './schemas/harness.js';
|
|
26
35
|
export * from './computer.js';
|
|
36
|
+
export * from './cardStudio.js';
|
|
37
|
+
export * from './habitContributions.js';
|
|
38
|
+
export * from './speech.js';
|
|
39
|
+
export * from './smartCapture.js';
|
|
40
|
+
export * from './commands.js';
|
|
41
|
+
export * from './commandText.js';
|
|
42
|
+
export * from './commandLocal.js';
|
|
43
|
+
export * from './reminderWords.js';
|
|
44
|
+
export * from './spokenNames.js';
|
|
45
|
+
export * from './voiceCapture.js';
|
|
46
|
+
export * from './automations.js';
|
|
47
|
+
export * from './automationTemplates.js';
|
|
48
|
+
export * from './dayPlan.js';
|
|
49
|
+
export { parseAgentCommand, findAgentCommand } from './agentCommands.js';
|