@opencorelabs/lucidity 0.3.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 +9 -2
- 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 +179 -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 +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/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 +196 -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 +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/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 +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 +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/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 -2
- package/vendor/shared/dist/index.d.ts.map +1 -1
- package/vendor/shared/dist/index.js +23 -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 +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/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 +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 -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 +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/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,5 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
export type PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "team" | "self_serve_business_prolite" | "self_serve_business_usage_based" | "business" | "ent26" | "enterprise_cbp_automation" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "edu_plus" | "edu_pro" | "unknown";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { JsonValue } from "../serde_json/JsonValue.js";
|
|
5
|
+
import type { RateLimitResetCreditsSummary } from "./RateLimitResetCreditsSummary.js";
|
|
6
|
+
import type { RateLimitSnapshot } from "./RateLimitSnapshot.js";
|
|
7
|
+
|
|
8
|
+
export type GetAccountRateLimitsResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* Backward-compatible single-bucket view; mirrors the historical payload.
|
|
11
|
+
*/
|
|
12
|
+
rateLimits: RateLimitSnapshot,
|
|
13
|
+
/**
|
|
14
|
+
* Multi-bucket view keyed by metered `limit_id` (for example, `codex`).
|
|
15
|
+
*/
|
|
16
|
+
rateLimitsByLimitId: { [key in string]?: RateLimitSnapshot } | null, rateLimitResetCredits: RateLimitResetCreditsSummary | null,
|
|
17
|
+
/**
|
|
18
|
+
* Account associated with this usage snapshot, when supplied by the backend.
|
|
19
|
+
*/
|
|
20
|
+
accountId: string | null,
|
|
21
|
+
/**
|
|
22
|
+
* Optional backend-owned banner from the same usage read. Its nested keys retain the
|
|
23
|
+
* backend's snake_case contract; an absent banner leaves the client's existing UI unchanged.
|
|
24
|
+
*/
|
|
25
|
+
rateLimitUpsell: JsonValue | null, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
export type RateLimitReachedType = "rate_limit_reached" | "workspace_owner_credits_depleted" | "workspace_member_credits_depleted" | "workspace_owner_usage_limit_reached" | "workspace_member_usage_limit_reached";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { RateLimitResetCreditStatus } from "./RateLimitResetCreditStatus.js";
|
|
5
|
+
import type { RateLimitResetType } from "./RateLimitResetType.js";
|
|
6
|
+
|
|
7
|
+
export type RateLimitResetCredit = {
|
|
8
|
+
/**
|
|
9
|
+
* Opaque backend identifier for this reset credit.
|
|
10
|
+
*/
|
|
11
|
+
id: string, resetType: RateLimitResetType, status: RateLimitResetCreditStatus,
|
|
12
|
+
/**
|
|
13
|
+
* Unix timestamp in seconds when the credit was granted.
|
|
14
|
+
*/
|
|
15
|
+
grantedAt: number,
|
|
16
|
+
/**
|
|
17
|
+
* Unix timestamp in seconds when the credit expires, or `null` if it does not expire.
|
|
18
|
+
*/
|
|
19
|
+
expiresAt: number | null,
|
|
20
|
+
/**
|
|
21
|
+
* Backend-provided display title for this credit, or `null` when unavailable.
|
|
22
|
+
*/
|
|
23
|
+
title: string | null,
|
|
24
|
+
/**
|
|
25
|
+
* Backend-provided display description for this credit, or `null` when unavailable.
|
|
26
|
+
*/
|
|
27
|
+
description: string | null, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { RateLimitResetCredit } from "./RateLimitResetCredit.js";
|
|
5
|
+
|
|
6
|
+
export type RateLimitResetCreditsSummary = { availableCount: bigint,
|
|
7
|
+
/**
|
|
8
|
+
* Detail rows for available reset credits, when the backend provides them.
|
|
9
|
+
*
|
|
10
|
+
* `null` means only `availableCount` is known, while an empty array means details were fetched
|
|
11
|
+
* and no available credits were returned. The backend may cap this list, so its length can be
|
|
12
|
+
* less than `availableCount`.
|
|
13
|
+
*/
|
|
14
|
+
credits: Array<RateLimitResetCredit> | null, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { PlanType } from "../PlanType.js";
|
|
5
|
+
import type { CreditsSnapshot } from "./CreditsSnapshot.js";
|
|
6
|
+
import type { RateLimitReachedType } from "./RateLimitReachedType.js";
|
|
7
|
+
import type { RateLimitWindow } from "./RateLimitWindow.js";
|
|
8
|
+
import type { SpendControlLimitSnapshot } from "./SpendControlLimitSnapshot.js";
|
|
9
|
+
|
|
10
|
+
export type RateLimitSnapshot = { limitId: string | null, limitName: string | null, primary: RateLimitWindow | null, secondary: RateLimitWindow | null, credits: CreditsSnapshot | null, individualLimit: SpendControlLimitSnapshot | null,
|
|
11
|
+
/**
|
|
12
|
+
* Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.
|
|
13
|
+
*/
|
|
14
|
+
spendControlReached: boolean | null, planType: PlanType | null, rateLimitReachedType: RateLimitReachedType | null, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
export type RateLimitWindow = { usedPercent: number, windowDurationMins: number | null, resetsAt: number | null, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { ReviewDelivery } from "./ReviewDelivery.js";
|
|
5
|
+
import type { ReviewTarget } from "./ReviewTarget.js";
|
|
6
|
+
|
|
7
|
+
export type ReviewStartParams = { threadId: string, target: ReviewTarget,
|
|
8
|
+
/**
|
|
9
|
+
* Where to run the review: inline (default) on the current thread or
|
|
10
|
+
* detached on a new thread (returned in `reviewThreadId`).
|
|
11
|
+
*/
|
|
12
|
+
delivery?: ReviewDelivery | null, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
export type ReviewTarget = { "type": "uncommittedChanges" } | { "type": "baseBranch", branch: string, } | { "type": "commit", sha: string,
|
|
6
|
+
/**
|
|
7
|
+
* Optional human-readable label (e.g., commit subject) for UIs.
|
|
8
|
+
*/
|
|
9
|
+
title: string | null, } | { "type": "custom", instructions: string, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { SkillToolDependency } from "./SkillToolDependency.js";
|
|
5
|
+
|
|
6
|
+
export type SkillDependencies = { tools: Array<SkillToolDependency>, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { AbsolutePathBuf } from "../AbsolutePathBuf.js";
|
|
5
|
+
|
|
6
|
+
export type SkillInterface = { displayName?: string, shortDescription?: string, iconSmall?: AbsolutePathBuf, iconLarge?: AbsolutePathBuf,
|
|
7
|
+
/**
|
|
8
|
+
* Remote small icon URL from the plugin catalog.
|
|
9
|
+
*/
|
|
10
|
+
iconSmallUrl: string | null,
|
|
11
|
+
/**
|
|
12
|
+
* Remote large icon URL from the plugin catalog.
|
|
13
|
+
*/
|
|
14
|
+
iconLargeUrl: string | null, brandColor?: string, defaultPrompt?: string, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { AbsolutePathBuf } from "../AbsolutePathBuf.js";
|
|
5
|
+
import type { SkillDependencies } from "./SkillDependencies.js";
|
|
6
|
+
import type { SkillInterface } from "./SkillInterface.js";
|
|
7
|
+
import type { SkillScope } from "./SkillScope.js";
|
|
8
|
+
|
|
9
|
+
export type SkillMetadata = { name: string, description: string,
|
|
10
|
+
/**
|
|
11
|
+
* Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.
|
|
12
|
+
*/
|
|
13
|
+
shortDescription?: string, interface?: SkillInterface, dependencies?: SkillDependencies, path: AbsolutePathBuf, scope: SkillScope, enabled: boolean,
|
|
14
|
+
/**
|
|
15
|
+
* Owning plugin ID, matching `PluginSummary.id`, when known.
|
|
16
|
+
*/
|
|
17
|
+
pluginId: string | null, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
export type SkillToolDependency = { type: string, value: string, description?: string, transport?: string, command?: string, url?: string, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { SkillErrorInfo } from "./SkillErrorInfo.js";
|
|
5
|
+
import type { SkillMetadata } from "./SkillMetadata.js";
|
|
6
|
+
|
|
7
|
+
export type SkillsListEntry = { cwd: string, skills: Array<SkillMetadata>, errors: Array<SkillErrorInfo>, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { SkillsListEntry } from "./SkillsListEntry.js";
|
|
5
|
+
|
|
6
|
+
export type SkillsListResponse = { data: Array<SkillsListEntry>, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
export type SpendControlLimitSnapshot = { limit: string, used: string, remainingPercent: number, resetsAt: number, };
|
|
@@ -75,6 +75,9 @@ export class HealthAwareExecutor implements AgentExecutor {
|
|
|
75
75
|
})();
|
|
76
76
|
return this.check;
|
|
77
77
|
}
|
|
78
|
+
async commands(input?: Pick<ExecutorRunInput, 'cwd' | 'permissionMode' | 'mcp'>) {
|
|
79
|
+
return (await this.executor.commands?.(input)) ?? [];
|
|
80
|
+
}
|
|
78
81
|
async run(input: ExecutorRunInput) {
|
|
79
82
|
try {
|
|
80
83
|
const result = await this.executor.run(input);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { parseAgentCommand } from '@lucidity/shared';
|
|
1
2
|
import { randomUUID } from 'node:crypto';
|
|
2
3
|
import type { ExecutorRunInput } from './types.js';
|
|
3
4
|
|
|
@@ -50,6 +51,8 @@ export class LiveTurns {
|
|
|
50
51
|
'This turn is no longer running. Queue a new message instead.',
|
|
51
52
|
);
|
|
52
53
|
if (!text.trim()) throw new Error('A correction cannot be empty.');
|
|
54
|
+
if (parseAgentCommand(text))
|
|
55
|
+
throw new Error('Send commands after the current response finishes.');
|
|
53
56
|
await turn.steer(text);
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -53,7 +53,7 @@ export class ProviderRouter implements AgentExecutor {
|
|
|
53
53
|
private resolve(input: ExecutorRunInput) {
|
|
54
54
|
const defaults = this.defaults();
|
|
55
55
|
const session = input.resume ? decodeSession(input.resume) : undefined;
|
|
56
|
-
const provider = session?.provider ?? defaults.provider;
|
|
56
|
+
const provider = session?.provider ?? input.provider ?? defaults.provider;
|
|
57
57
|
const switched = provider !== defaults.provider;
|
|
58
58
|
// Never pass the newly selected provider's model alias into an existing other-provider thread.
|
|
59
59
|
const model = switched ? session?.model : (input.model ?? defaults.model);
|
|
@@ -71,6 +71,7 @@ export class ProviderRouter implements AgentExecutor {
|
|
|
71
71
|
model: model === 'default' ? undefined : model,
|
|
72
72
|
effort: effort === 'auto' ? undefined : effort,
|
|
73
73
|
resume: session?.id,
|
|
74
|
+
provider: undefined,
|
|
74
75
|
},
|
|
75
76
|
};
|
|
76
77
|
}
|
|
@@ -27,6 +27,8 @@ export interface ExecutorRunInput {
|
|
|
27
27
|
systemPrompt?: string;
|
|
28
28
|
/** Inline vision inputs, sent with the text as one user message. */
|
|
29
29
|
images?: ExecutorImage[];
|
|
30
|
+
/** Structured interpretation: disable native tools as well as MCP. */
|
|
31
|
+
noTools?: boolean;
|
|
30
32
|
/** Model alias or full id (`--model`). Falls back to the executor default. */
|
|
31
33
|
model?: string;
|
|
32
34
|
/** Reasoning-effort level (`--effort`): `low | medium | high | xhigh | max`.
|
|
@@ -52,6 +54,8 @@ export interface ExecutorRunInput {
|
|
|
52
54
|
sessionId?: string;
|
|
53
55
|
/** Resume an existing chat session by id (subsequent turns); systemPrompt/model are already bound. */
|
|
54
56
|
resume?: string;
|
|
57
|
+
/** Start a new session on this provider instead of the role default. A `resume` wins. */
|
|
58
|
+
provider?: AgentProvider;
|
|
55
59
|
/** Working directory for the run (the target repo for a coding turn, M7). */
|
|
56
60
|
cwd?: string;
|
|
57
61
|
/** Compatibility policy names; each adapter maps them to native permissions. */
|
|
@@ -63,6 +67,8 @@ export interface ExecutorRunInput {
|
|
|
63
67
|
| 'bypassPermissions';
|
|
64
68
|
/** Tools to pre-approve (`--allowedTools`), the static first filter before auto mode. */
|
|
65
69
|
allowedTools?: string[];
|
|
70
|
+
/** Native read tools available to a scoped automation. MCP tools are scoped separately. */
|
|
71
|
+
readTools?: Array<'Read' | 'Glob' | 'Grep' | 'WebSearch' | 'WebFetch'>;
|
|
66
72
|
}
|
|
67
73
|
|
|
68
74
|
/** Streaming event from {@link AgentExecutor.runStream}. */
|
|
@@ -92,6 +98,8 @@ export interface AgentExecutor {
|
|
|
92
98
|
/** Interrupt a turn owned by this adapter, including conductor workers. */
|
|
93
99
|
interrupt?(requestId: string): Promise<boolean>;
|
|
94
100
|
models?(): Promise<ExecutorModel[]>;
|
|
101
|
+
/** Commands implemented by this adapter and available in the provider runtime. */
|
|
102
|
+
commands?(input?: Pick<ExecutorRunInput, 'cwd' | 'permissionMode' | 'mcp'>): Promise<import('@lucidity/shared').AgentCommandOption[]>;
|
|
95
103
|
dispose?(): Promise<void>;
|
|
96
104
|
|
|
97
105
|
run(input: ExecutorRunInput): Promise<ExecutorResult>;
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
parseBoards,
|
|
5
5
|
} from '../prompts/briefing.js';
|
|
6
6
|
import { buildChatSystemPrompt, buildChatToolsNote } from '../prompts/chat.js';
|
|
7
|
+
import { buildProjectPlanningPrompt, parseProjectPlanningResult } from '../prompts/projectCapture.js';
|
|
7
8
|
import type { AgentExecutor } from '../executor/types.js';
|
|
8
9
|
import type {
|
|
9
10
|
AskInput,
|
|
@@ -39,7 +40,7 @@ export interface LucidHarnessDeps {
|
|
|
39
40
|
*/
|
|
40
41
|
mcp?: { configPath: string; allowedTools?: string[] };
|
|
41
42
|
/** Which capability groups `mcp` exposes, for an accurate tools statement. */
|
|
42
|
-
capabilities?: { tasks: boolean; memory: boolean };
|
|
43
|
+
capabilities?: { tasks: boolean; memory: boolean; automations?: boolean };
|
|
43
44
|
/**
|
|
44
45
|
* Raw shell + file access for the interactive chat (task #330 "Puny God"). When set,
|
|
45
46
|
* `ask`/`askStream` run in `cwd` under this `permissionMode` — dropping the executor's
|
|
@@ -91,11 +92,11 @@ export function createLucidHarness(deps: LucidHarnessDeps): LucidHarness {
|
|
|
91
92
|
|
|
92
93
|
const chatExecutor = deps.chatExecutor ?? executor;
|
|
93
94
|
|
|
94
|
-
function streamFn(
|
|
95
|
+
function streamFn(
|
|
96
|
+
engine = executor,
|
|
97
|
+
): NonNullable<AgentExecutor['runStream']> {
|
|
95
98
|
if (!engine.runStream) {
|
|
96
|
-
throw new Error(
|
|
97
|
-
`Executor "${engine.name}" does not support streaming.`,
|
|
98
|
-
);
|
|
99
|
+
throw new Error(`Executor "${engine.name}" does not support streaming.`);
|
|
99
100
|
}
|
|
100
101
|
return engine.runStream.bind(engine);
|
|
101
102
|
}
|
|
@@ -103,6 +104,23 @@ export function createLucidHarness(deps: LucidHarnessDeps): LucidHarness {
|
|
|
103
104
|
return {
|
|
104
105
|
strictResume: chatExecutor.strictResume,
|
|
105
106
|
async ask(input) {
|
|
107
|
+
if (input.projectPlan) {
|
|
108
|
+
const result = await chatExecutor.run({
|
|
109
|
+
...buildProjectPlanningPrompt(input.prompt, input.projectPlan),
|
|
110
|
+
requestId: input.requestId,
|
|
111
|
+
model: input.model,
|
|
112
|
+
effort: input.effort,
|
|
113
|
+
timeoutMs: input.timeoutMs ?? 120_000,
|
|
114
|
+
signal: input.signal,
|
|
115
|
+
noTools: true,
|
|
116
|
+
// No MCP, workspace access, images, or conversation resume. Interpretation
|
|
117
|
+
// cannot mutate anything; the API validates and commits the finished plan.
|
|
118
|
+
});
|
|
119
|
+
return {
|
|
120
|
+
text: JSON.stringify(parseProjectPlanningResult(result.text, input.projectPlan)),
|
|
121
|
+
costUsd: result.costUsd,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
106
124
|
const { systemPrompt, userPrompt, images } = askPrompts(input);
|
|
107
125
|
const result = await chatExecutor.run({
|
|
108
126
|
systemPrompt,
|
|
@@ -115,6 +133,7 @@ export function createLucidHarness(deps: LucidHarnessDeps): LucidHarness {
|
|
|
115
133
|
timeoutMs: input.timeoutMs,
|
|
116
134
|
signal: input.signal,
|
|
117
135
|
resume: input.resume,
|
|
136
|
+
provider: input.provider,
|
|
118
137
|
mcp,
|
|
119
138
|
permissionMode: agent?.permissionMode,
|
|
120
139
|
cwd: agent?.cwd,
|
|
@@ -127,6 +146,14 @@ export function createLucidHarness(deps: LucidHarnessDeps): LucidHarness {
|
|
|
127
146
|
},
|
|
128
147
|
|
|
129
148
|
askStream(input) {
|
|
149
|
+
if (input.projectPlan) {
|
|
150
|
+
const ask = this.ask.bind(this);
|
|
151
|
+
return (async function* () {
|
|
152
|
+
const reply = await ask(input);
|
|
153
|
+
yield { type: 'delta' as const, text: reply.text };
|
|
154
|
+
yield { type: 'done' as const, text: reply.text, costUsd: reply.costUsd };
|
|
155
|
+
})();
|
|
156
|
+
}
|
|
130
157
|
const run = streamFn(chatExecutor);
|
|
131
158
|
const { systemPrompt, userPrompt, images } = askPrompts(input);
|
|
132
159
|
return run({
|
|
@@ -140,6 +167,7 @@ export function createLucidHarness(deps: LucidHarnessDeps): LucidHarness {
|
|
|
140
167
|
timeoutMs: input.timeoutMs,
|
|
141
168
|
signal: input.signal,
|
|
142
169
|
resume: input.resume,
|
|
170
|
+
provider: input.provider,
|
|
143
171
|
mcp,
|
|
144
172
|
permissionMode: agent?.permissionMode,
|
|
145
173
|
cwd: agent?.cwd,
|
|
@@ -192,7 +220,13 @@ export function createLucidHarness(deps: LucidHarnessDeps): LucidHarness {
|
|
|
192
220
|
signal: input.signal,
|
|
193
221
|
});
|
|
194
222
|
// The board-only prompt has no delimiter to split on — its whole output is boards.
|
|
195
|
-
return {
|
|
223
|
+
return {
|
|
224
|
+
boards: parseBoards(result.text, [
|
|
225
|
+
...input.tasks,
|
|
226
|
+
...(input.flagged ?? []),
|
|
227
|
+
]),
|
|
228
|
+
costUsd: result.costUsd,
|
|
229
|
+
};
|
|
196
230
|
},
|
|
197
231
|
|
|
198
232
|
async journal(query: JournalQuery = {}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Task, User, JournalEntry } from '@lucidity/shared';
|
|
1
|
+
import type { Task, User, JournalEntry, ProjectPlanningContext } from '@lucidity/shared';
|
|
2
2
|
import type {
|
|
3
3
|
AgentExecutor,
|
|
4
4
|
ExecutorImage,
|
|
@@ -14,6 +14,7 @@ import type { AttentionBoardEntry } from '../prompts/briefing.js';
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
export interface AskInput {
|
|
17
|
+
projectPlan?: ProjectPlanningContext;
|
|
17
18
|
requestId?: string;
|
|
18
19
|
onApproval?: import('../executor/types.js').ExecutorRunInput['onApproval'];
|
|
19
20
|
user: Pick<User, 'name'>;
|
|
@@ -36,6 +37,8 @@ export interface AskInput {
|
|
|
36
37
|
signal?: AbortSignal;
|
|
37
38
|
/** Claude Code session id to --resume, for conversation continuity across turns. */
|
|
38
39
|
resume?: string;
|
|
40
|
+
/** Start a new session on this provider instead of the chat default. Ignored with `resume`. */
|
|
41
|
+
provider?: import('../executor/types.js').AgentProvider;
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
export interface BriefingInput {
|
|
@@ -50,7 +50,7 @@ export { parseFacts, mergeFacts, renderMemoryFile } from './memory/merge.js';
|
|
|
50
50
|
export { loadDefaultPersona } from './persona/index.js';
|
|
51
51
|
|
|
52
52
|
// Executor seam
|
|
53
|
-
export type { AgentExecutor, ExecutorRunInput, ExecutorResult, ExecutorStreamEvent } from './executor/types.js';
|
|
53
|
+
export type { AgentExecutor, ExecutorRunInput, ExecutorResult, ExecutorStreamEvent, ExecutorImage } from './executor/types.js';
|
|
54
54
|
export { ClaudeCodeExecutor } from './executor/claudeCode.js';
|
|
55
55
|
export type { ClaudeCodeExecutorOptions } from './executor/claudeCode.js';
|
|
56
56
|
export {
|
|
@@ -84,3 +84,6 @@ export { CODEX_RUNTIME_VERSION } from './executor/codexRpc.js';
|
|
|
84
84
|
export { ProviderRouter, encodeSession, decodeSession } from './executor/providerRouter.js';
|
|
85
85
|
export type { AgentProvider, ExecutorApproval, ExecutorModel } from './executor/types.js';
|
|
86
86
|
export { HealthAwareExecutor, providerFailure } from './executor/health.js';
|
|
87
|
+
|
|
88
|
+
// Bounded decisions, independent of subscription-backed chat/coding executors.
|
|
89
|
+
export * from '@lucidity/decisions';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { ApiClient } from '../client.js';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
buildJournalDigest,
|
|
4
|
+
type JournalDigest,
|
|
5
|
+
type DigestDay,
|
|
6
|
+
} from './digest.js';
|
|
3
7
|
|
|
4
8
|
/**
|
|
5
9
|
* Fetching the journal and reducing it to something a prompt can hold.
|
|
@@ -15,6 +19,20 @@ import { buildJournalDigest, type JournalDigest, type DigestDay } from './digest
|
|
|
15
19
|
*/
|
|
16
20
|
|
|
17
21
|
export interface LoadJournalContextOptions {
|
|
22
|
+
backend?: {
|
|
23
|
+
days(opts: { limit: number }): Promise<DaySummary[]>;
|
|
24
|
+
day(
|
|
25
|
+
date: string,
|
|
26
|
+
): Promise<{
|
|
27
|
+
localDate: string;
|
|
28
|
+
segments: {
|
|
29
|
+
capturedAt: Date | string;
|
|
30
|
+
transcript: string;
|
|
31
|
+
correctedTranscript: string | null;
|
|
32
|
+
conflicts?: unknown[];
|
|
33
|
+
}[];
|
|
34
|
+
} | null>;
|
|
35
|
+
};
|
|
18
36
|
/** How many recent days to consider. The digest then decides what actually fits. */
|
|
19
37
|
days?: number;
|
|
20
38
|
/** The question being asked, so relevant older days can outrank merely recent ones. */
|
|
@@ -46,7 +64,9 @@ export async function loadJournalContext(
|
|
|
46
64
|
const wanted = options.days ?? DEFAULT_DAYS;
|
|
47
65
|
|
|
48
66
|
try {
|
|
49
|
-
const summaries =
|
|
67
|
+
const summaries = options.backend
|
|
68
|
+
? await options.backend.days({ limit: wanted })
|
|
69
|
+
: await api.request<DaySummary[]>(`/api/journal/days?limit=${wanted}`);
|
|
50
70
|
if (!Array.isArray(summaries) || summaries.length === 0) return undefined;
|
|
51
71
|
|
|
52
72
|
// The list endpoint returns previews, not transcripts — a preview is a one-line gist, and
|
|
@@ -56,11 +76,24 @@ export async function loadJournalContext(
|
|
|
56
76
|
const days: DigestDay[] = [];
|
|
57
77
|
for (const summary of summaries) {
|
|
58
78
|
try {
|
|
59
|
-
const day =
|
|
60
|
-
|
|
61
|
-
|
|
79
|
+
const day = options.backend
|
|
80
|
+
? await options.backend.day(summary.localDate)
|
|
81
|
+
: await api.request<DayWithSegments>(
|
|
82
|
+
`/api/journal/days/${encodeURIComponent(summary.localDate)}`,
|
|
83
|
+
);
|
|
62
84
|
if (day?.segments?.length) {
|
|
63
|
-
days.push({
|
|
85
|
+
days.push({
|
|
86
|
+
localDate: day.localDate,
|
|
87
|
+
segments: day.segments
|
|
88
|
+
.filter((s) => !('conflicts' in s) || !s.conflicts?.length)
|
|
89
|
+
.map((s) => ({
|
|
90
|
+
...s,
|
|
91
|
+
capturedAt:
|
|
92
|
+
typeof s.capturedAt === 'string'
|
|
93
|
+
? s.capturedAt
|
|
94
|
+
: s.capturedAt.toISOString(),
|
|
95
|
+
})),
|
|
96
|
+
});
|
|
64
97
|
}
|
|
65
98
|
} catch {
|
|
66
99
|
// One unreadable day is not worth losing the other thirteen over.
|
|
@@ -88,7 +121,7 @@ export async function loadJournalContext(
|
|
|
88
121
|
return digest.text ? digest : undefined;
|
|
89
122
|
} catch (err) {
|
|
90
123
|
console.error(
|
|
91
|
-
|
|
124
|
+
'[journal] context unavailable; check the connected vault or storage configuration.',
|
|
92
125
|
);
|
|
93
126
|
return undefined;
|
|
94
127
|
}
|