@opencorelabs/lucidity 0.2.0 → 0.6.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 +36 -34
- package/bin/lucidity.js +2 -0
- 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 +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +21 -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 +190 -34
- 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 +26 -0
- package/dist/mcp/clients.d.ts.map +1 -0
- package/dist/mcp/clients.js +193 -0
- package/dist/mcp/config.d.ts +5 -2
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +48 -6
- package/dist/mcp/paired.d.ts +2 -0
- package/dist/mcp/paired.d.ts.map +1 -0
- package/dist/mcp/paired.js +21 -0
- package/dist/mcp/pairedConfig.d.ts +3 -0
- package/dist/mcp/pairedConfig.d.ts.map +1 -0
- package/dist/mcp/pairedConfig.js +33 -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 +262 -45
- package/dist/room/computer.d.ts.map +1 -1
- package/dist/room/computer.js +8 -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/setup/page.d.ts +3 -0
- package/dist/setup/page.d.ts.map +1 -0
- package/dist/setup/page.js +120 -0
- package/dist/setup/server.d.ts +26 -0
- package/dist/setup/server.d.ts.map +1 -0
- package/dist/setup/server.js +398 -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 +32 -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 +204 -58
- 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 +269 -0
- package/src/mcp/config.ts +58 -7
- package/src/mcp/paired.ts +23 -0
- package/src/mcp/pairedConfig.ts +44 -0
- package/src/notesContext.ts +3 -2
- package/src/room/client.ts +316 -52
- package/src/room/computer.ts +8 -0
- package/src/room/context.ts +12 -3
- package/src/room/turnQueue.ts +358 -0
- package/src/setup/page.ts +122 -0
- package/src/setup/server.ts +483 -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/gate.d.ts +12 -0
- package/vendor/decisions/dist/gate.js +18 -0
- package/vendor/decisions/dist/index.d.ts +5 -0
- package/vendor/decisions/dist/index.js +5 -0
- package/vendor/decisions/dist/jev.d.ts +15 -0
- package/vendor/decisions/dist/jev.js +242 -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/gate.ts +32 -0
- package/vendor/decisions/src/index.ts +5 -0
- package/vendor/decisions/src/jev.ts +293 -0
- package/vendor/decisions/src/types.ts +79 -0
- package/vendor/mcp-server/README.md +130 -48
- 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 +26 -5
- 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 +41 -5
- 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/memory.d.ts +2 -2
- package/vendor/mcp-server/dist/tools/memory.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/memory.js +24 -14
- package/vendor/mcp-server/dist/tools/milestones.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/milestones.js +30 -0
- package/vendor/mcp-server/dist/tools/notes.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/notes.js +30 -5
- package/vendor/mcp-server/dist/tools/projects.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/projects.js +15 -0
- package/vendor/mcp-server/dist/tools/queries.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/queries.js +27 -2
- 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 +99 -22
- 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 +33 -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 +43 -4
- 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/memory.ts +26 -12
- package/vendor/mcp-server/src/tools/milestones.ts +36 -0
- package/vendor/mcp-server/src/tools/notes.ts +35 -4
- package/vendor/mcp-server/src/tools/projects.ts +18 -0
- package/vendor/mcp-server/src/tools/queries.ts +30 -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 +104 -24
- 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 +113 -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 +213 -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 +8 -0
- package/vendor/runtime/dist/executor/types.d.ts.map +1 -1
- package/vendor/runtime/dist/harness/index.d.ts +1 -0
- package/vendor/runtime/dist/harness/index.d.ts.map +1 -1
- package/vendor/runtime/dist/harness/index.js +35 -1
- package/vendor/runtime/dist/harness/types.d.ts +4 -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/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 +133 -7
- package/vendor/runtime/src/executor/claudeCode.ts +6 -4
- package/vendor/runtime/src/executor/codex.ts +280 -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 +8 -0
- package/vendor/runtime/src/harness/index.ts +40 -6
- package/vendor/runtime/src/harness/types.ts +4 -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/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/brandArtwork.d.ts +4 -0
- package/vendor/shared/dist/brandArtwork.d.ts.map +1 -0
- package/vendor/shared/dist/brandArtwork.js +7 -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 +662 -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 +1516 -0
- package/vendor/shared/dist/commands.d.ts.map +1 -0
- package/vendor/shared/dist/commands.js +231 -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 +11 -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/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 +26 -1
- package/vendor/shared/dist/index.d.ts.map +1 -1
- package/vendor/shared/dist/index.js +23 -1
- 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 +922 -59
- package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/harness.js +122 -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/setupAppearance.d.ts +6 -0
- package/vendor/shared/dist/setupAppearance.d.ts.map +1 -0
- package/vendor/shared/dist/setupAppearance.js +17 -0
- 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/brandArtwork.ts +7 -0
- package/vendor/shared/src/cardStatement.ts +49 -0
- package/vendor/shared/src/cardStudio.ts +340 -0
- package/vendor/shared/src/commandLocal.ts +738 -0
- package/vendor/shared/src/commandText.ts +25 -0
- package/vendor/shared/src/commands.ts +253 -0
- package/vendor/shared/src/computer.ts +23 -6
- package/vendor/shared/src/constants.ts +9 -2
- package/vendor/shared/src/githubContributions.ts +70 -0
- package/vendor/shared/src/habitContributions.ts +144 -0
- package/vendor/shared/src/index.ts +42 -0
- 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 +144 -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/setupAppearance.ts +32 -0
- 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,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,3 +1,13 @@
|
|
|
1
|
+
export * from './githubContributions.js';
|
|
2
|
+
export * from './projectCapture.js';
|
|
3
|
+
export * from './taskActivity.js';
|
|
4
|
+
export * from './recurrence.js';
|
|
5
|
+
export * from './vault-search.js';
|
|
6
|
+
export * from './journal-vault.js';
|
|
7
|
+
export * from './journal-migration.js';
|
|
8
|
+
export { CARD_SYMBOL_NAMES, CardStatementSegmentSchema, validatedCardSegments, } from './cardStatement.js';
|
|
9
|
+
export type { CardSymbol, CardStatementSegment, StyledCardStatement, } from './cardStatement.js';
|
|
10
|
+
export { setupPage, setupStyles, setupMark, setupIllustration, escapeSetupHtml, } from './setupAppearance.js';
|
|
1
11
|
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';
|
|
2
12
|
export type { AgentMode, WorkerStatus, JournalSource, JournalObservationKind, ProposalKind, ProposalStatus, ProposalLinkTarget, } from './constants.js';
|
|
3
13
|
export { parseFrontmatter, noteTitle } from './notes.js';
|
|
@@ -17,9 +27,24 @@ export { ProjectMemberSchema, CreateProjectMemberSchema, UpdateProjectMemberSche
|
|
|
17
27
|
export { OrganizationSchema, CreateOrganizationSchema, UpdateOrganizationSchema, UpdateOrganizationSettingsSchema, OrganizationMemberWithUserSchema, InviteOrganizationMemberSchema, UpdateOrganizationMemberSchema, OrganizationDomainSchema, CreateOrganizationDomainSchema, MembershipRequestWithUserSchema, OrganizationPreviewSchema, OrganizationProfileSchema, UserOrganizationSchema, CreateInvitationSchema, InvitationSchema, InvitationPreviewSchema, } from './schemas/organization.js';
|
|
18
28
|
export { REQUEST_KIND_VALUES, REQUEST_STATUS_LABELS, PROCUREMENT_PROJECT_KEY, PROCUREMENT_PROJECT_NAME, RequestSchema, CreateRequestSchema, UpdateRequestSchema, RequestWithTaskSchema, } from './schemas/request.js';
|
|
19
29
|
export { NOTIFICATION_KINDS, NOTIFICATION_TARGETS, NotificationSchema, NotificationActorSchema, UnreadCountSchema, } from './schemas/notification.js';
|
|
20
|
-
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';
|
|
30
|
+
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';
|
|
31
|
+
export type { ProviderHandoff } from './schemas/harness.js';
|
|
21
32
|
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';
|
|
22
33
|
export { AgentModelOptionSchema } from './schemas/harness.js';
|
|
23
34
|
export type { AgentModelOption } from './schemas/harness.js';
|
|
24
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 { parseAgentCommand, findAgentCommand } from './agentCommands.js';
|
|
49
|
+
export type { AgentCommandOption, AgentCommandContext } from './agentCommands.js';
|
|
25
50
|
//# 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,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,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,UAAU,EACV,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,SAAS,EACT,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,4BAA4B,EAC5B,iBAAiB,E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Ac,EACd,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
export * from './githubContributions.js';
|
|
2
|
+
export * from './projectCapture.js';
|
|
3
|
+
export * from './taskActivity.js';
|
|
4
|
+
export * from './recurrence.js';
|
|
5
|
+
export * from './vault-search.js';
|
|
6
|
+
export * from './journal-vault.js';
|
|
7
|
+
export * from './journal-migration.js';
|
|
1
8
|
// Constants
|
|
9
|
+
export { CARD_SYMBOL_NAMES, CardStatementSegmentSchema, validatedCardSegments, } from './cardStatement.js';
|
|
10
|
+
export { setupPage, setupStyles, setupMark, setupIllustration, escapeSetupHtml, } from './setupAppearance.js';
|
|
2
11
|
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
12
|
// Notes
|
|
4
13
|
export { parseFrontmatter, noteTitle } from './notes.js';
|
|
@@ -20,6 +29,19 @@ export { ProjectMemberSchema, CreateProjectMemberSchema, UpdateProjectMemberSche
|
|
|
20
29
|
export { OrganizationSchema, CreateOrganizationSchema, UpdateOrganizationSchema, UpdateOrganizationSettingsSchema, OrganizationMemberWithUserSchema, InviteOrganizationMemberSchema, UpdateOrganizationMemberSchema, OrganizationDomainSchema, CreateOrganizationDomainSchema, MembershipRequestWithUserSchema, OrganizationPreviewSchema, OrganizationProfileSchema, UserOrganizationSchema, CreateInvitationSchema, InvitationSchema, InvitationPreviewSchema, } from './schemas/organization.js';
|
|
21
30
|
export { REQUEST_KIND_VALUES, REQUEST_STATUS_LABELS, PROCUREMENT_PROJECT_KEY, PROCUREMENT_PROJECT_NAME, RequestSchema, CreateRequestSchema, UpdateRequestSchema, RequestWithTaskSchema, } from './schemas/request.js';
|
|
22
31
|
export { NOTIFICATION_KINDS, NOTIFICATION_TARGETS, NotificationSchema, NotificationActorSchema, UnreadCountSchema, } from './schemas/notification.js';
|
|
23
|
-
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';
|
|
32
|
+
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';
|
|
24
33
|
export { AgentModelOptionSchema } from './schemas/harness.js';
|
|
25
34
|
export * from './computer.js';
|
|
35
|
+
export * from './cardStudio.js';
|
|
36
|
+
export * from './habitContributions.js';
|
|
37
|
+
export * from './speech.js';
|
|
38
|
+
export * from './smartCapture.js';
|
|
39
|
+
export * from './commands.js';
|
|
40
|
+
export * from './commandText.js';
|
|
41
|
+
export * from './commandLocal.js';
|
|
42
|
+
export * from './reminderWords.js';
|
|
43
|
+
export * from './spokenNames.js';
|
|
44
|
+
export * from './voiceCapture.js';
|
|
45
|
+
export * from './automations.js';
|
|
46
|
+
export * from './automationTemplates.js';
|
|
47
|
+
export { parseAgentCommand, findAgentCommand } from './agentCommands.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { JournalVault, type JournalLegacySnapshot } from './journal-vault.js';
|
|
2
|
+
export interface JournalStorageStatus {
|
|
3
|
+
userId: string;
|
|
4
|
+
mode: 'server' | 'migrating' | 'private';
|
|
5
|
+
migrationId: string | null;
|
|
6
|
+
vaultReceipt: string | null;
|
|
7
|
+
canMigrate?: boolean;
|
|
8
|
+
hostedPurgedAt?: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface JournalMigrationApi {
|
|
11
|
+
begin(): Promise<JournalStorageStatus>;
|
|
12
|
+
page(entity: keyof JournalLegacySnapshot, migrationId: string, after?: string): Promise<{
|
|
13
|
+
items: unknown[];
|
|
14
|
+
next: string | null;
|
|
15
|
+
}>;
|
|
16
|
+
manifest(): Promise<{
|
|
17
|
+
migrationId: string;
|
|
18
|
+
digest: string;
|
|
19
|
+
counts: Record<string, number>;
|
|
20
|
+
}>;
|
|
21
|
+
complete(receipt: {
|
|
22
|
+
migrationId: string;
|
|
23
|
+
sourceDigest: string;
|
|
24
|
+
vaultDigest: string;
|
|
25
|
+
}): Promise<JournalStorageStatus>;
|
|
26
|
+
}
|
|
27
|
+
/** No deletion endpoint. Only verified files can become the canonical Journal. */
|
|
28
|
+
export declare function migrateJournal(api: JournalMigrationApi, vault: JournalVault, hash: (text: string) => Promise<string>, progress?: (text: string) => void, beforeCutover?: (vault: JournalVault) => Promise<void>): Promise<JournalStorageStatus>;
|
|
29
|
+
//# sourceMappingURL=journal-migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journal-migration.d.ts","sourceRoot":"","sources":["../src/journal-migration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAEZ,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;IACzC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AACD,MAAM,WAAW,mBAAmB;IAClC,KAAK,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACvC,IAAI,CACF,MAAM,EAAE,MAAM,qBAAqB,EACnC,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;IACtD,QAAQ,IAAI,OAAO,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAChC,CAAC,CAAC;IACH,QAAQ,CAAC,OAAO,EAAE;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACnC;AASD,kFAAkF;AAClF,wBAAsB,cAAc,CAClC,GAAG,EAAE,mBAAmB,EACxB,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,EACvC,QAAQ,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAe,EAC3C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,iCAmFvD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { JournalVaultError, } from './journal-vault.js';
|
|
2
|
+
const entities = [
|
|
3
|
+
'days',
|
|
4
|
+
'segments',
|
|
5
|
+
'observations',
|
|
6
|
+
'extractions',
|
|
7
|
+
'proposals',
|
|
8
|
+
];
|
|
9
|
+
/** No deletion endpoint. Only verified files can become the canonical Journal. */
|
|
10
|
+
export async function migrateJournal(api, vault, hash, progress = () => { }, beforeCutover) {
|
|
11
|
+
// Verify the destination before stopping hosted writes.
|
|
12
|
+
await vault.refresh();
|
|
13
|
+
progress('Preparing your Journal…');
|
|
14
|
+
const storage = await api.begin();
|
|
15
|
+
if (storage.userId !== vault.owner || !storage.migrationId)
|
|
16
|
+
throw new Error('Journal migration account mismatch.');
|
|
17
|
+
if (storage.mode === 'private') {
|
|
18
|
+
const activation = vault.activation();
|
|
19
|
+
if (activation?.kind === 'activation' &&
|
|
20
|
+
activation.id === storage.migrationId &&
|
|
21
|
+
activation.vaultDigest === storage.vaultReceipt) {
|
|
22
|
+
await beforeCutover?.(vault);
|
|
23
|
+
return storage;
|
|
24
|
+
}
|
|
25
|
+
throw new JournalVaultError('unavailable', 'Journal already uses iCloud. Its files are still arriving on this device; original hosted records have not been imported again.');
|
|
26
|
+
}
|
|
27
|
+
const snapshot = {
|
|
28
|
+
days: [],
|
|
29
|
+
segments: [],
|
|
30
|
+
observations: [],
|
|
31
|
+
extractions: [],
|
|
32
|
+
proposals: [],
|
|
33
|
+
};
|
|
34
|
+
const digestParts = [];
|
|
35
|
+
for (const entity of entities) {
|
|
36
|
+
digestParts.push(entity + '\n');
|
|
37
|
+
let after;
|
|
38
|
+
const seen = new Set();
|
|
39
|
+
do {
|
|
40
|
+
const page = await api.page(entity, storage.migrationId, after);
|
|
41
|
+
snapshot[entity].push(...page.items);
|
|
42
|
+
for (const item of page.items)
|
|
43
|
+
digestParts.push(JSON.stringify(item) + '\n');
|
|
44
|
+
if (page.next && seen.has(page.next))
|
|
45
|
+
throw new Error('Journal export cursor did not advance.');
|
|
46
|
+
if (page.next)
|
|
47
|
+
seen.add(page.next);
|
|
48
|
+
after = page.next ?? undefined;
|
|
49
|
+
progress(`Copying Journal history… ${snapshot.segments.length} captures`);
|
|
50
|
+
} while (after);
|
|
51
|
+
}
|
|
52
|
+
const sourceDigest = await hash(digestParts.join(''));
|
|
53
|
+
const manifest = await api.manifest();
|
|
54
|
+
if (manifest.migrationId !== storage.migrationId ||
|
|
55
|
+
manifest.digest !== sourceDigest ||
|
|
56
|
+
entities.some((entity) => manifest.counts[entity] !== snapshot[entity].length))
|
|
57
|
+
throw new Error('Journal export verification failed. Original history is preserved.');
|
|
58
|
+
progress('Verifying the files in your vault…');
|
|
59
|
+
const receipt = await vault.importLegacy(snapshot);
|
|
60
|
+
await beforeCutover?.(vault);
|
|
61
|
+
// File first, server switch second. If the response is lost, the activation file
|
|
62
|
+
// permits an idempotent retry; another device never imports stale hosted copies.
|
|
63
|
+
await vault.activate(storage.migrationId, sourceDigest, receipt.vaultDigest, receipt.files);
|
|
64
|
+
const completed = await api.complete({
|
|
65
|
+
migrationId: storage.migrationId,
|
|
66
|
+
sourceDigest,
|
|
67
|
+
vaultDigest: receipt.vaultDigest,
|
|
68
|
+
});
|
|
69
|
+
if (completed.mode !== 'private' ||
|
|
70
|
+
completed.vaultReceipt !== receipt.vaultDigest)
|
|
71
|
+
throw new Error('Journal cutover is not confirmed. Retry to finish; original records are preserved.');
|
|
72
|
+
return completed;
|
|
73
|
+
}
|