@opencorelabs/lucidity 0.8.0 → 0.9.6
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 +46 -5
- package/bin/lucidity.js +9 -1
- package/dist/agentControls.d.ts +3 -3
- package/dist/agentControls.d.ts.map +1 -1
- package/dist/agentControls.js +9 -6
- package/dist/assets/speech/lucidity-speech +0 -0
- package/dist/automations/agent.d.ts.map +1 -1
- package/dist/automations/agent.js +8 -3
- package/dist/automations/githubIssues.d.ts +25 -0
- package/dist/automations/githubIssues.d.ts.map +1 -0
- package/dist/automations/githubIssues.js +48 -0
- package/dist/automations/service.d.ts +8 -0
- package/dist/automations/service.d.ts.map +1 -1
- package/dist/automations/service.js +84 -25
- package/dist/automations/skill.d.ts +1 -1
- package/dist/automations/skill.d.ts.map +1 -1
- package/dist/automations/skill.js +3 -25
- package/dist/automations/store.d.ts +9 -3
- package/dist/automations/store.d.ts.map +1 -1
- package/dist/automations/store.js +45 -32
- package/dist/automations/workflow.d.ts +14 -0
- package/dist/automations/workflow.d.ts.map +1 -0
- package/dist/automations/workflow.js +57 -0
- package/dist/automations/workflowCrash.integration.d.ts +2 -0
- package/dist/automations/workflowCrash.integration.d.ts.map +1 -0
- package/dist/automations/workflowCrash.integration.js +78 -0
- package/dist/chat/server.d.ts +18 -0
- package/dist/chat/server.d.ts.map +1 -1
- package/dist/chat/server.js +203 -84
- package/dist/coding/agentMessages.d.ts +37 -0
- package/dist/coding/agentMessages.d.ts.map +1 -0
- package/dist/coding/agentMessages.js +220 -0
- package/dist/coding/agentSettings.d.ts +9 -0
- package/dist/coding/agentSettings.d.ts.map +1 -0
- package/dist/coding/agentSettings.js +22 -0
- package/dist/coding/fileContext.d.ts +4 -0
- package/dist/coding/fileContext.d.ts.map +1 -0
- package/dist/coding/fileContext.js +61 -0
- package/dist/coding/listPrs.d.ts +6 -0
- package/dist/coding/listPrs.d.ts.map +1 -1
- package/dist/coding/listPrs.js +11 -1
- package/dist/coding/lucidRouting.d.ts +67 -0
- package/dist/coding/lucidRouting.d.ts.map +1 -0
- package/dist/coding/lucidRouting.js +216 -0
- package/dist/coding/overviewSources.d.ts +52 -0
- package/dist/coding/overviewSources.d.ts.map +1 -0
- package/dist/coding/overviewSources.js +78 -0
- package/dist/coding/progress.d.ts +27 -0
- package/dist/coding/progress.d.ts.map +1 -0
- package/dist/coding/progress.js +152 -0
- package/dist/coding/repositoryRequests.d.ts +38 -0
- package/dist/coding/repositoryRequests.d.ts.map +1 -0
- package/dist/coding/repositoryRequests.js +137 -0
- package/dist/coding/runCodeTurn.d.ts +28 -22
- package/dist/coding/runCodeTurn.d.ts.map +1 -1
- package/dist/coding/runCodeTurn.js +109 -158
- package/dist/coding/runReview.d.ts +10 -0
- package/dist/coding/runReview.d.ts.map +1 -0
- package/dist/coding/runReview.js +87 -0
- package/dist/coding/workspaceOverview.d.ts +106 -0
- package/dist/coding/workspaceOverview.d.ts.map +1 -0
- package/dist/coding/workspaceOverview.js +96 -0
- package/dist/coding/workspaceRegistry.d.ts +278 -4
- package/dist/coding/workspaceRegistry.d.ts.map +1 -1
- package/dist/coding/workspaceRegistry.js +1008 -27
- package/dist/coding/workspaceTitle.d.ts +14 -0
- package/dist/coding/workspaceTitle.d.ts.map +1 -0
- package/dist/coding/workspaceTitle.js +8 -0
- package/dist/coding/worktree.d.ts +62 -19
- package/dist/coding/worktree.d.ts.map +1 -1
- package/dist/coding/worktree.js +152 -19
- package/dist/coding/worktreeSetup.d.ts +7 -0
- package/dist/coding/worktreeSetup.d.ts.map +1 -0
- package/dist/coding/worktreeSetup.js +82 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +38 -3
- package/dist/editor/existingWorkspace.d.ts +3 -0
- package/dist/editor/existingWorkspace.d.ts.map +1 -0
- package/dist/editor/existingWorkspace.js +19 -0
- package/dist/editor/fileActions.d.ts +26 -0
- package/dist/editor/fileActions.d.ts.map +1 -0
- package/dist/editor/fileActions.js +134 -0
- package/dist/editor/files.d.ts +27 -0
- package/dist/editor/files.d.ts.map +1 -0
- package/dist/editor/files.js +279 -0
- package/dist/editor/gitActions.d.ts +18 -0
- package/dist/editor/gitActions.d.ts.map +1 -0
- package/dist/editor/gitActions.js +140 -0
- package/dist/editor/localEndpoint.d.ts +4 -0
- package/dist/editor/localEndpoint.d.ts.map +1 -0
- package/dist/editor/localEndpoint.js +35 -0
- package/dist/editor/service.d.ts +28 -0
- package/dist/editor/service.d.ts.map +1 -0
- package/dist/editor/service.js +101 -0
- package/dist/editor/shellCommands.d.ts +21 -0
- package/dist/editor/shellCommands.d.ts.map +1 -0
- package/dist/editor/shellCommands.js +165 -0
- package/dist/editor/terminals.d.ts +34 -0
- package/dist/editor/terminals.d.ts.map +1 -0
- package/dist/editor/terminals.js +161 -0
- package/dist/editor/types.d.ts +37 -0
- package/dist/editor/types.d.ts.map +1 -0
- package/dist/editor/types.js +1 -0
- package/dist/files/store.d.ts +13 -0
- package/dist/files/store.d.ts.map +1 -0
- package/dist/files/store.js +150 -0
- package/dist/goals/assessment.d.ts +6 -6
- package/dist/index.js +249 -80
- package/dist/install.d.ts +7 -0
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +5 -2
- package/dist/jobs/briefing.d.ts +2 -16
- package/dist/jobs/briefing.d.ts.map +1 -1
- package/dist/jobs/briefing.js +57 -102
- package/dist/jobs/extraction.d.ts +2 -1
- package/dist/jobs/extraction.d.ts.map +1 -1
- package/dist/jobs/extraction.js +2 -2
- package/dist/jobs/fastModeReview.d.ts +3 -1
- package/dist/jobs/fastModeReview.d.ts.map +1 -1
- package/dist/jobs/fastModeReview.js +20 -11
- package/dist/jobs/voiceReview.js +4 -4
- package/dist/jobs/weeklyReview.d.ts +1 -1
- package/dist/jobs/weeklyReview.d.ts.map +1 -1
- package/dist/jobs/weeklyReview.js +2 -5
- package/dist/logTimestamps.d.ts +10 -0
- package/dist/logTimestamps.d.ts.map +1 -0
- package/dist/logTimestamps.js +12 -0
- package/dist/lucidInvocations.d.ts +44 -0
- package/dist/lucidInvocations.d.ts.map +1 -0
- package/dist/lucidInvocations.js +164 -0
- package/dist/mcp/config.d.ts +8 -2
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +52 -10
- package/dist/mcp/paired.js +1 -0
- package/dist/providerFallbackContext.d.ts +5 -0
- package/dist/providerFallbackContext.d.ts.map +1 -0
- package/dist/providerFallbackContext.js +58 -0
- package/dist/providerRecovery.d.ts +65 -0
- package/dist/providerRecovery.d.ts.map +1 -0
- package/dist/providerRecovery.js +102 -0
- package/dist/providerRoles.d.ts +9 -0
- package/dist/providerRoles.d.ts.map +1 -0
- package/dist/providerRoles.js +25 -0
- package/dist/recall/command.d.ts +139 -0
- package/dist/recall/command.d.ts.map +1 -0
- package/dist/recall/command.js +35 -0
- package/dist/recall/context.d.ts +5 -0
- package/dist/recall/context.d.ts.map +1 -0
- package/dist/recall/context.js +66 -0
- package/dist/recall/conversations.d.ts +182 -0
- package/dist/recall/conversations.d.ts.map +1 -0
- package/dist/recall/conversations.js +58 -0
- package/dist/recall/documents.d.ts +76 -0
- package/dist/recall/documents.d.ts.map +1 -0
- package/dist/recall/documents.js +32 -0
- package/dist/recall/evaluation.d.ts +77 -0
- package/dist/recall/evaluation.d.ts.map +1 -0
- package/dist/recall/evaluation.js +88 -0
- package/dist/recall/factory.d.ts +6 -0
- package/dist/recall/factory.d.ts.map +1 -0
- package/dist/recall/factory.js +20 -0
- package/dist/recall/index.d.ts +13 -0
- package/dist/recall/index.d.ts.map +1 -0
- package/dist/recall/index.js +92 -0
- package/dist/recall/memories.d.ts +16 -0
- package/dist/recall/memories.d.ts.map +1 -0
- package/dist/recall/memories.js +136 -0
- package/dist/recall/memorySelection.d.ts +4 -0
- package/dist/recall/memorySelection.d.ts.map +1 -0
- package/dist/recall/memorySelection.js +16 -0
- package/dist/recall/memoryService.d.ts +22 -0
- package/dist/recall/memoryService.d.ts.map +1 -0
- package/dist/recall/memoryService.js +171 -0
- package/dist/recall/personal.d.ts +127 -0
- package/dist/recall/personal.d.ts.map +1 -0
- package/dist/recall/personal.js +125 -0
- package/dist/recall/projects.d.ts +67 -0
- package/dist/recall/projects.d.ts.map +1 -0
- package/dist/recall/projects.js +117 -0
- package/dist/recall/query.d.ts +5 -0
- package/dist/recall/query.d.ts.map +1 -0
- package/dist/recall/query.js +17 -0
- package/dist/recall/semanticEvaluation.d.ts +2 -0
- package/dist/recall/semanticEvaluation.d.ts.map +1 -0
- package/dist/recall/semanticEvaluation.js +123 -0
- package/dist/recall/service.d.ts +62 -0
- package/dist/recall/service.d.ts.map +1 -0
- package/dist/recall/service.js +94 -0
- package/dist/room/client.d.ts +43 -20
- package/dist/room/client.d.ts.map +1 -1
- package/dist/room/client.js +242 -54
- package/dist/room/codingActivity.d.ts +21 -0
- package/dist/room/codingActivity.d.ts.map +1 -0
- package/dist/room/codingActivity.js +86 -0
- package/dist/room/computer.d.ts.map +1 -1
- package/dist/room/computer.js +19 -4
- package/dist/room/context.d.ts +3 -2
- package/dist/room/context.d.ts.map +1 -1
- package/dist/room/context.js +5 -4
- package/dist/room/desktop-live.integration.d.ts +2 -0
- package/dist/room/desktop-live.integration.d.ts.map +1 -0
- package/dist/room/desktop-live.integration.js +219 -0
- package/dist/room/incidents.d.ts +3 -0
- package/dist/room/incidents.d.ts.map +1 -1
- package/dist/room/incidents.js +1 -0
- package/dist/room/turnQueue.d.ts +24 -2
- package/dist/room/turnQueue.d.ts.map +1 -1
- package/dist/room/turnQueue.js +123 -51
- package/dist/runtimeStore.d.ts +19 -0
- package/dist/runtimeStore.d.ts.map +1 -1
- package/dist/runtimeStore.js +49 -3
- package/dist/setup/page.d.ts +1 -1
- package/dist/setup/page.d.ts.map +1 -1
- package/dist/setup/page.js +15 -2
- package/dist/setup/server.d.ts +5 -1
- package/dist/setup/server.d.ts.map +1 -1
- package/dist/setup/server.js +37 -13
- package/dist/skills/install.d.ts +8 -0
- package/dist/skills/install.d.ts.map +1 -0
- package/dist/skills/install.js +82 -0
- package/dist/skills/lucidity/SKILL.md +65 -0
- package/dist/skills/lucidity-task-handoff/SKILL.md +122 -0
- package/dist/speech/captures.d.ts +4 -0
- package/dist/speech/captures.d.ts.map +1 -1
- package/dist/speech/captures.js +53 -41
- package/dist/updateCli.d.ts +2 -0
- package/dist/updateCli.d.ts.map +1 -0
- package/dist/updateCli.js +40 -0
- package/dist/updateService.d.ts +3 -0
- package/dist/updateService.d.ts.map +1 -0
- package/dist/updateService.js +23 -0
- package/dist/updates/admission.d.ts +23 -0
- package/dist/updates/admission.d.ts.map +1 -0
- package/dist/updates/admission.js +76 -0
- package/dist/updates/bootstrap.d.ts +23 -0
- package/dist/updates/bootstrap.d.ts.map +1 -0
- package/dist/updates/bootstrap.js +95 -0
- package/dist/updates/bootstrapConfig.d.ts +34 -0
- package/dist/updates/bootstrapConfig.d.ts.map +1 -0
- package/dist/updates/bootstrapConfig.js +35 -0
- package/dist/updates/connection.d.ts +20 -0
- package/dist/updates/connection.d.ts.map +1 -0
- package/dist/updates/connection.js +111 -0
- package/dist/updates/developmentAdmission.d.ts +29 -0
- package/dist/updates/developmentAdmission.d.ts.map +1 -0
- package/dist/updates/developmentAdmission.js +73 -0
- package/dist/updates/developmentCli.d.ts +2 -0
- package/dist/updates/developmentCli.d.ts.map +1 -0
- package/dist/updates/developmentCli.js +61 -0
- package/dist/updates/developmentRefresh.d.ts +73 -0
- package/dist/updates/developmentRefresh.d.ts.map +1 -0
- package/dist/updates/developmentRefresh.js +157 -0
- package/dist/updates/developmentService.d.ts +13 -0
- package/dist/updates/developmentService.d.ts.map +1 -0
- package/dist/updates/developmentService.js +217 -0
- package/dist/updates/download.d.ts +7 -0
- package/dist/updates/download.d.ts.map +1 -0
- package/dist/updates/download.js +52 -0
- package/dist/updates/feed.d.ts +7 -0
- package/dist/updates/feed.d.ts.map +1 -0
- package/dist/updates/feed.js +37 -0
- package/dist/updates/installService.d.ts +3 -0
- package/dist/updates/installService.d.ts.map +1 -0
- package/dist/updates/installService.js +78 -0
- package/dist/updates/installationReferences.d.ts +17 -0
- package/dist/updates/installationReferences.d.ts.map +1 -0
- package/dist/updates/installationReferences.js +104 -0
- package/dist/updates/installationStore.d.ts +49 -0
- package/dist/updates/installationStore.d.ts.map +1 -0
- package/dist/updates/installationStore.js +237 -0
- package/dist/updates/installer.d.ts +29 -0
- package/dist/updates/installer.d.ts.map +1 -0
- package/dist/updates/installer.js +205 -0
- package/dist/updates/journal.d.ts +228 -0
- package/dist/updates/journal.d.ts.map +1 -0
- package/dist/updates/journal.js +249 -0
- package/dist/updates/managedLifecycle.d.ts +26 -0
- package/dist/updates/managedLifecycle.d.ts.map +1 -0
- package/dist/updates/managedLifecycle.js +60 -0
- package/dist/updates/migrateService.d.ts +2 -0
- package/dist/updates/migrateService.d.ts.map +1 -0
- package/dist/updates/migrateService.js +44 -0
- package/dist/updates/migration.d.ts +15 -0
- package/dist/updates/migration.d.ts.map +1 -0
- package/dist/updates/migration.js +108 -0
- package/dist/updates/processControl.d.ts +47 -0
- package/dist/updates/processControl.d.ts.map +1 -0
- package/dist/updates/processControl.js +98 -0
- package/dist/updates/processHost.d.ts +52 -0
- package/dist/updates/processHost.d.ts.map +1 -0
- package/dist/updates/processHost.js +165 -0
- package/dist/updates/registerService.d.ts +4 -0
- package/dist/updates/registerService.d.ts.map +1 -0
- package/dist/updates/registerService.js +34 -0
- package/dist/updates/releases.d.ts +84 -0
- package/dist/updates/releases.d.ts.map +1 -0
- package/dist/updates/releases.js +51 -0
- package/dist/updates/retention.d.ts +32 -0
- package/dist/updates/retention.d.ts.map +1 -0
- package/dist/updates/retention.js +188 -0
- package/dist/updates/runner.d.ts +6 -0
- package/dist/updates/runner.d.ts.map +1 -0
- package/dist/updates/runner.js +117 -0
- package/dist/updates/service.d.ts +53 -0
- package/dist/updates/service.d.ts.map +1 -0
- package/dist/updates/service.js +268 -0
- package/dist/updates/servicePlan.d.ts +29 -0
- package/dist/updates/servicePlan.d.ts.map +1 -0
- package/dist/updates/servicePlan.js +58 -0
- package/dist/updates/signCatalog.d.ts +10 -0
- package/dist/updates/signCatalog.d.ts.map +1 -0
- package/dist/updates/signCatalog.js +44 -0
- package/dist/updates/supervisor.d.ts +27 -0
- package/dist/updates/supervisor.d.ts.map +1 -0
- package/dist/updates/supervisor.js +137 -0
- package/dist/updates/windowsService.d.ts +12 -0
- package/dist/updates/windowsService.d.ts.map +1 -0
- package/dist/updates/windowsService.js +51 -0
- package/dist/vault.d.ts +6 -3
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +18 -4
- package/dist/video/context.d.ts +4 -0
- package/dist/video/context.d.ts.map +1 -0
- package/dist/video/context.js +74 -0
- package/dist/video/store.d.ts +22 -0
- package/dist/video/store.d.ts.map +1 -0
- package/dist/video/store.js +184 -0
- package/npm-shrinkwrap.json +1792 -0
- package/package.json +4 -1
- package/src/agentControls.ts +11 -7
- package/src/automations/agent.ts +11 -2
- package/src/automations/githubIssues.ts +63 -0
- package/src/automations/service.ts +72 -24
- package/src/automations/skill.ts +5 -37
- package/src/automations/store.ts +41 -50
- package/src/automations/workflow.ts +49 -0
- package/src/automations/workflowCrash.integration.ts +70 -0
- package/src/chat/server.ts +162 -89
- package/src/coding/agentMessages.ts +217 -0
- package/src/coding/agentSettings.ts +22 -0
- package/src/coding/fileContext.ts +72 -0
- package/src/coding/listPrs.ts +15 -1
- package/src/coding/lucidRouting.ts +211 -0
- package/src/coding/overviewSources.ts +86 -0
- package/src/coding/progress.ts +146 -0
- package/src/coding/repositoryRequests.ts +117 -0
- package/src/coding/runCodeTurn.ts +127 -182
- package/src/coding/runReview.ts +83 -0
- package/src/coding/workspaceOverview.ts +99 -0
- package/src/coding/workspaceRegistry.ts +921 -28
- package/src/coding/workspaceTitle.ts +10 -0
- package/src/coding/worktree.ts +164 -22
- package/src/coding/worktreeSetup.ts +73 -0
- package/src/config.ts +37 -2
- package/src/editor/existingWorkspace.ts +17 -0
- package/src/editor/fileActions.ts +162 -0
- package/src/editor/files.ts +276 -0
- package/src/editor/gitActions.ts +150 -0
- package/src/editor/localEndpoint.ts +28 -0
- package/src/editor/service.ts +93 -0
- package/src/editor/shellCommands.ts +132 -0
- package/src/editor/terminals.ts +129 -0
- package/src/editor/types.ts +32 -0
- package/src/files/store.ts +131 -0
- package/src/index.ts +242 -77
- package/src/install.ts +4 -2
- package/src/jobs/briefing.ts +56 -114
- package/src/jobs/extraction.ts +5 -4
- package/src/jobs/fastModeReview.ts +22 -11
- package/src/jobs/voiceReview.ts +4 -4
- package/src/jobs/weeklyReview.ts +2 -4
- package/src/logTimestamps.ts +14 -0
- package/src/lucidInvocations.ts +152 -0
- package/src/mcp/config.ts +48 -10
- package/src/mcp/paired.ts +1 -0
- package/src/providerFallbackContext.ts +48 -0
- package/src/providerRecovery.ts +101 -0
- package/src/providerRoles.ts +35 -0
- package/src/recall/command.ts +42 -0
- package/src/recall/context.ts +64 -0
- package/src/recall/conversations.ts +53 -0
- package/src/recall/documents.ts +32 -0
- package/src/recall/evaluation.ts +89 -0
- package/src/recall/factory.ts +21 -0
- package/src/recall/index.ts +87 -0
- package/src/recall/memories.ts +123 -0
- package/src/recall/memorySelection.ts +17 -0
- package/src/recall/memoryService.ts +138 -0
- package/src/recall/personal.ts +97 -0
- package/src/recall/projects.ts +98 -0
- package/src/recall/query.ts +21 -0
- package/src/recall/semanticEvaluation.ts +101 -0
- package/src/recall/service.ts +85 -0
- package/src/room/client.ts +257 -85
- package/src/room/codingActivity.ts +70 -0
- package/src/room/computer.ts +19 -4
- package/src/room/context.ts +7 -2
- package/src/room/desktop-live.integration.ts +203 -0
- package/src/room/incidents.ts +4 -0
- package/src/room/turnQueue.ts +117 -62
- package/src/runtimeStore.ts +53 -4
- package/src/setup/page.ts +15 -2
- package/src/setup/server.ts +28 -5
- package/src/skills/install.ts +65 -0
- package/src/speech/captures.ts +56 -44
- package/src/updateCli.ts +37 -0
- package/src/updateService.ts +21 -0
- package/src/updates/admission.ts +70 -0
- package/src/updates/bootstrap.ts +77 -0
- package/src/updates/bootstrapConfig.ts +29 -0
- package/src/updates/connection.ts +84 -0
- package/src/updates/developmentAdmission.ts +56 -0
- package/src/updates/developmentCli.ts +47 -0
- package/src/updates/developmentRefresh.ts +130 -0
- package/src/updates/developmentService.ts +170 -0
- package/src/updates/download.ts +53 -0
- package/src/updates/feed.ts +34 -0
- package/src/updates/installService.ts +67 -0
- package/src/updates/installationReferences.ts +87 -0
- package/src/updates/installationStore.ts +196 -0
- package/src/updates/installer.ts +203 -0
- package/src/updates/journal.ts +250 -0
- package/src/updates/managedLifecycle.ts +64 -0
- package/src/updates/migrateService.ts +33 -0
- package/src/updates/migration.ts +92 -0
- package/src/updates/processControl.ts +96 -0
- package/src/updates/processHost.ts +159 -0
- package/src/updates/registerService.ts +27 -0
- package/src/updates/releases.ts +53 -0
- package/src/updates/retention.ts +154 -0
- package/src/updates/runner.ts +104 -0
- package/src/updates/service.ts +241 -0
- package/src/updates/servicePlan.ts +63 -0
- package/src/updates/signCatalog.ts +40 -0
- package/src/updates/supervisor.ts +114 -0
- package/src/updates/windowsService.ts +54 -0
- package/src/vault.ts +16 -7
- package/src/video/context.ts +101 -0
- package/src/video/store.ts +250 -0
- package/vendor/decisions/dist/followup.d.ts +14 -0
- package/vendor/decisions/dist/followup.js +86 -0
- package/vendor/decisions/dist/index.d.ts +3 -0
- package/vendor/decisions/dist/index.js +3 -0
- package/vendor/decisions/dist/repositoryReplay.d.ts +103 -0
- package/vendor/decisions/dist/repositoryReplay.js +177 -0
- package/vendor/decisions/dist/repositoryRouting.d.ts +21 -0
- package/vendor/decisions/dist/repositoryRouting.js +125 -0
- package/vendor/decisions/src/followup.ts +129 -0
- package/vendor/decisions/src/index.ts +3 -0
- package/vendor/decisions/src/repositoryReplay.ts +312 -0
- package/vendor/decisions/src/repositoryRouting.ts +167 -0
- package/vendor/mcp-server/README.md +6 -0
- package/vendor/mcp-server/dist/index.js +21 -7
- package/vendor/mcp-server/dist/localDaemon.d.ts +4 -0
- package/vendor/mcp-server/dist/localDaemon.d.ts.map +1 -0
- package/vendor/mcp-server/dist/localDaemon.js +41 -0
- package/vendor/mcp-server/dist/tools/agents.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/agents.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/agents.js +60 -0
- package/vendor/mcp-server/dist/tools/artifacts.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/artifacts.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/artifacts.js +22 -0
- package/vendor/mcp-server/dist/tools/automations.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/automations.js +7 -32
- package/vendor/mcp-server/dist/tools/commandEventFormat.d.ts +1 -1
- package/vendor/mcp-server/dist/tools/commandEventFormat.js +2 -2
- package/vendor/mcp-server/dist/tools/commandEvents.js +1 -1
- package/vendor/mcp-server/dist/tools/comments.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/comments.js +5 -1
- package/vendor/mcp-server/dist/tools/journal.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/journal.js +1 -0
- package/vendor/mcp-server/dist/tools/memory.d.ts +0 -10
- package/vendor/mcp-server/dist/tools/memory.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/memory.js +28 -102
- package/vendor/mcp-server/dist/tools/notes.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/notes.js +38 -4
- package/vendor/mcp-server/dist/tools/recall.d.ts +6 -0
- package/vendor/mcp-server/dist/tools/recall.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/recall.js +78 -0
- package/vendor/mcp-server/dist/tools/summary.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/summary.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/summary.js +22 -0
- package/vendor/mcp-server/dist/tools/taskSheet.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/taskSheet.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/taskSheet.js +32 -0
- package/vendor/mcp-server/dist/tools/tasks.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/tasks.js +117 -24
- package/vendor/mcp-server/dist/tools/worktrees.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/worktrees.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/worktrees.js +51 -0
- package/vendor/mcp-server/package.json +1 -1
- package/vendor/mcp-server/src/index.ts +17 -7
- package/vendor/mcp-server/src/localDaemon.ts +56 -0
- package/vendor/mcp-server/src/tools/agents.ts +78 -0
- package/vendor/mcp-server/src/tools/artifacts.ts +26 -0
- package/vendor/mcp-server/src/tools/automations.ts +7 -47
- package/vendor/mcp-server/src/tools/commandEventFormat.ts +2 -2
- package/vendor/mcp-server/src/tools/commandEvents.ts +1 -1
- package/vendor/mcp-server/src/tools/comments.ts +4 -1
- package/vendor/mcp-server/src/tools/journal.ts +1 -0
- package/vendor/mcp-server/src/tools/memory.ts +37 -130
- package/vendor/mcp-server/src/tools/notes.ts +35 -5
- package/vendor/mcp-server/src/tools/recall.ts +89 -0
- package/vendor/mcp-server/src/tools/summary.ts +30 -0
- package/vendor/mcp-server/src/tools/taskSheet.ts +60 -0
- package/vendor/mcp-server/src/tools/tasks.ts +125 -24
- package/vendor/mcp-server/src/tools/worktrees.ts +61 -0
- package/vendor/notes/dist/artifacts.d.ts +8 -0
- package/vendor/notes/dist/artifacts.d.ts.map +1 -0
- package/vendor/notes/dist/artifacts.js +105 -0
- package/vendor/notes/dist/index.d.ts +1 -0
- package/vendor/notes/dist/index.d.ts.map +1 -1
- package/vendor/notes/dist/index.js +1 -0
- package/vendor/notes/dist/vault.d.ts.map +1 -1
- package/vendor/notes/dist/vault.js +2 -0
- package/vendor/notes/src/artifacts.ts +100 -0
- package/vendor/notes/src/index.ts +2 -0
- package/vendor/notes/src/vault.ts +1 -0
- package/vendor/runtime/README.md +42 -0
- package/vendor/runtime/dist/executor/claudeAgent.d.ts +22 -1
- package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/claudeAgent.js +199 -28
- package/vendor/runtime/dist/executor/claudeCode.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/claudeCode.js +19 -2
- package/vendor/runtime/dist/executor/claudeSession.d.ts +32 -0
- package/vendor/runtime/dist/executor/claudeSession.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/claudeSession.js +154 -0
- package/vendor/runtime/dist/executor/codex.d.ts +25 -4
- package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codex.js +181 -22
- package/vendor/runtime/dist/executor/codexProtocol/AgentPath.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/AgentPath.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/AgentPath.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.d.ts +12 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.d.ts +24 -0
- package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/SleepItem.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/SleepItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/SleepItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.d.ts +14 -0
- package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/ThreadId.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/ThreadId.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/ThreadId.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.d.ts +15 -0
- package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.d.ts +29 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.d.ts +20 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.d.ts +11 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.d.ts +9 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.d.ts +4 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.d.ts +16 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.d.ts +4 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.d.ts +9 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.d.ts +100 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.d.ts +216 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.d.ts +11 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.d.ts +19 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.d.ts +12 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.d.ts +36 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.d.ts +12 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.d.ts +15 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.js +2 -0
- package/vendor/runtime/dist/executor/codexRpc.d.ts +3 -1
- package/vendor/runtime/dist/executor/codexRpc.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexRpc.js +3 -2
- package/vendor/runtime/dist/executor/codexSessions.d.ts +5 -10
- package/vendor/runtime/dist/executor/codexSessions.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexSessions.js +12 -78
- package/vendor/runtime/dist/executor/fallback.d.ts +27 -0
- package/vendor/runtime/dist/executor/fallback.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/fallback.js +45 -0
- package/vendor/runtime/dist/executor/health.d.ts +25 -2
- package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/health.js +23 -2
- package/vendor/runtime/dist/executor/integrations.d.ts +4 -0
- package/vendor/runtime/dist/executor/integrations.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/integrations.js +5 -0
- package/vendor/runtime/dist/executor/liveTurns.d.ts +2 -2
- package/vendor/runtime/dist/executor/liveTurns.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/liveTurns.js +3 -3
- package/vendor/runtime/dist/executor/ownership.d.ts +24 -2
- package/vendor/runtime/dist/executor/ownership.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/ownership.js +10 -1
- package/vendor/runtime/dist/executor/providerRouter.d.ts +13 -0
- package/vendor/runtime/dist/executor/providerRouter.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/providerRouter.js +91 -5
- package/vendor/runtime/dist/executor/sessionRetention.d.ts +34 -0
- package/vendor/runtime/dist/executor/sessionRetention.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/sessionRetention.js +126 -0
- package/vendor/runtime/dist/executor/types.d.ts +55 -7
- package/vendor/runtime/dist/executor/types.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/usage.d.ts +5 -0
- package/vendor/runtime/dist/executor/usage.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/usage.js +56 -0
- package/vendor/runtime/dist/harness/index.d.ts.map +1 -1
- package/vendor/runtime/dist/harness/index.js +3 -5
- package/vendor/runtime/dist/harness/types.d.ts +3 -1
- package/vendor/runtime/dist/harness/types.d.ts.map +1 -1
- package/vendor/runtime/dist/index.d.ts +7 -2
- package/vendor/runtime/dist/index.d.ts.map +1 -1
- package/vendor/runtime/dist/index.js +3 -0
- package/vendor/runtime/dist/prompts/recall.d.ts +15 -0
- package/vendor/runtime/dist/prompts/recall.d.ts.map +1 -0
- package/vendor/runtime/dist/prompts/recall.js +71 -0
- package/vendor/runtime/src/executor/claudeAgent.ts +189 -31
- package/vendor/runtime/src/executor/claudeCode.ts +17 -3
- package/vendor/runtime/src/executor/claudeSession.ts +180 -0
- package/vendor/runtime/src/executor/codex.ts +187 -26
- package/vendor/runtime/src/executor/codexProtocol/AgentPath.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/ImageGenerationFailure.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/ImageGenerationItem.ts +7 -0
- package/vendor/runtime/src/executor/codexProtocol/LegacyAppPathString.ts +27 -0
- package/vendor/runtime/src/executor/codexProtocol/MessagePhase.ts +11 -0
- package/vendor/runtime/src/executor/codexProtocol/SleepItem.ts +8 -0
- package/vendor/runtime/src/executor/codexProtocol/SubAgentSource.ts +7 -0
- package/vendor/runtime/src/executor/codexProtocol/ThreadId.ts +10 -0
- package/vendor/runtime/src/executor/codexProtocol/WebSearchItem.ts +14 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/AgentMessageDelivery.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/AsyncUserInputQuestion.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CodexErrorInfo.ts +12 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentState.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentTool.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentToolCallStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CommandAction.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CommandExecutionSource.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CommandExecutionStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/DynamicToolCallStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/FileUpdateChange.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/GitInfo.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/HookPromptFragment.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpAppDisplayMode.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpAppUi.ts +9 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallAppContext.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallError.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallResult.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MemoryCitation.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MemoryCitationEntry.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MisalignmentErrorDetails.ts +18 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MisalignmentSteer.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/NonSteerableTurnKind.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/PatchApplyStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/PatchChangeKind.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SessionSource.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SubAgentActivityKind.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/Thread.ts +104 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadActiveFlag.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadHistoryMode.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadItem.ts +125 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadReadParams.ts +12 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadReadResponse.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSection.ts +21 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSectionAppearance.ts +8 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadStatus.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/Turn.ts +37 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnError.ts +11 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnItemsView.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/WebSearchAction.ts +5 -0
- package/vendor/runtime/src/executor/codexRpc.ts +4 -2
- package/vendor/runtime/src/executor/codexSessions.ts +18 -82
- package/vendor/runtime/src/executor/fallback.ts +63 -0
- package/vendor/runtime/src/executor/health.ts +21 -3
- package/vendor/runtime/src/executor/integrations.ts +7 -0
- package/vendor/runtime/src/executor/liveTurns.ts +5 -5
- package/vendor/runtime/src/executor/ownership.ts +11 -2
- package/vendor/runtime/src/executor/providerRouter.ts +85 -4
- package/vendor/runtime/src/executor/sessionRetention.ts +166 -0
- package/vendor/runtime/src/executor/types.ts +45 -8
- package/vendor/runtime/src/executor/usage.ts +58 -0
- package/vendor/runtime/src/harness/index.ts +3 -5
- package/vendor/runtime/src/harness/types.ts +3 -1
- package/vendor/runtime/src/index.ts +8 -2
- package/vendor/runtime/src/prompts/recall.ts +72 -0
- package/vendor/shared/dist/accountDevices.d.ts +62 -0
- package/vendor/shared/dist/accountDevices.d.ts.map +1 -0
- package/vendor/shared/dist/accountDevices.js +25 -0
- package/vendor/shared/dist/activityRecovery.d.ts +37 -0
- package/vendor/shared/dist/activityRecovery.d.ts.map +1 -0
- package/vendor/shared/dist/activityRecovery.js +39 -0
- package/vendor/shared/dist/agentMessages.d.ts +187 -0
- package/vendor/shared/dist/agentMessages.d.ts.map +1 -0
- package/vendor/shared/dist/agentMessages.js +70 -0
- package/vendor/shared/dist/aiUsage.d.ts +30 -0
- package/vendor/shared/dist/aiUsage.d.ts.map +1 -0
- package/vendor/shared/dist/aiUsage.js +14 -0
- package/vendor/shared/dist/artifacts.d.ts +28 -0
- package/vendor/shared/dist/artifacts.d.ts.map +1 -0
- package/vendor/shared/dist/artifacts.js +47 -0
- package/vendor/shared/dist/automationTemplates.d.ts.map +1 -1
- package/vendor/shared/dist/automationTemplates.js +1 -0
- package/vendor/shared/dist/automations.d.ts +95 -14
- package/vendor/shared/dist/automations.d.ts.map +1 -1
- package/vendor/shared/dist/automations.js +22 -3
- package/vendor/shared/dist/cardStudio.d.ts +31 -31
- package/vendor/shared/dist/chatActivity.d.ts +17 -0
- package/vendor/shared/dist/chatActivity.d.ts.map +1 -0
- package/vendor/shared/dist/chatActivity.js +47 -0
- package/vendor/shared/dist/codingActivity.d.ts +60 -0
- package/vendor/shared/dist/codingActivity.d.ts.map +1 -0
- package/vendor/shared/dist/codingActivity.js +33 -0
- package/vendor/shared/dist/commandLocal.d.ts +1 -1
- package/vendor/shared/dist/commandLocal.d.ts.map +1 -1
- package/vendor/shared/dist/commands.d.ts +32 -32
- package/vendor/shared/dist/commands.d.ts.map +1 -1
- package/vendor/shared/dist/commands.js +1 -1
- package/vendor/shared/dist/commentMentions.d.ts +20 -0
- package/vendor/shared/dist/commentMentions.d.ts.map +1 -0
- package/vendor/shared/dist/commentMentions.js +14 -0
- package/vendor/shared/dist/computer.d.ts +48 -8
- package/vendor/shared/dist/computer.d.ts.map +1 -1
- package/vendor/shared/dist/computer.js +26 -2
- package/vendor/shared/dist/constants.d.ts +1 -1
- package/vendor/shared/dist/constants.d.ts.map +1 -1
- package/vendor/shared/dist/constants.js +8 -10
- package/vendor/shared/dist/daemonUpdates.d.ts +123 -0
- package/vendor/shared/dist/daemonUpdates.d.ts.map +1 -0
- package/vendor/shared/dist/daemonUpdates.js +106 -0
- package/vendor/shared/dist/deviceInteraction.d.ts +23 -0
- package/vendor/shared/dist/deviceInteraction.d.ts.map +1 -0
- package/vendor/shared/dist/deviceInteraction.js +32 -0
- package/vendor/shared/dist/doctor.d.ts +50 -0
- package/vendor/shared/dist/doctor.d.ts.map +1 -0
- package/vendor/shared/dist/doctor.js +15 -0
- package/vendor/shared/dist/fileUploads.d.ts +39 -0
- package/vendor/shared/dist/fileUploads.d.ts.map +1 -0
- package/vendor/shared/dist/fileUploads.js +24 -0
- package/vendor/shared/dist/files.d.ts +11 -0
- package/vendor/shared/dist/files.d.ts.map +1 -0
- package/vendor/shared/dist/files.js +19 -0
- package/vendor/shared/dist/githubContributions.d.ts +1 -1
- package/vendor/shared/dist/goals.d.ts +7 -7
- package/vendor/shared/dist/index.d.ts +32 -3
- package/vendor/shared/dist/index.d.ts.map +1 -1
- package/vendor/shared/dist/index.js +28 -1
- package/vendor/shared/dist/journal-vault.d.ts +1 -1
- package/vendor/shared/dist/lucidFollowups.d.ts +95 -0
- package/vendor/shared/dist/lucidFollowups.d.ts.map +1 -0
- package/vendor/shared/dist/lucidFollowups.js +45 -0
- package/vendor/shared/dist/lucidInvocations.d.ts +82 -0
- package/vendor/shared/dist/lucidInvocations.d.ts.map +1 -0
- package/vendor/shared/dist/lucidInvocations.js +47 -0
- package/vendor/shared/dist/memory.d.ts +162 -0
- package/vendor/shared/dist/memory.d.ts.map +1 -0
- package/vendor/shared/dist/memory.js +26 -0
- package/vendor/shared/dist/messagingSafety.d.ts +64 -0
- package/vendor/shared/dist/messagingSafety.d.ts.map +1 -0
- package/vendor/shared/dist/messagingSafety.js +14 -0
- package/vendor/shared/dist/recall.d.ts +803 -0
- package/vendor/shared/dist/recall.d.ts.map +1 -0
- package/vendor/shared/dist/recall.js +56 -0
- package/vendor/shared/dist/releaseCompatibility.d.ts +228 -0
- package/vendor/shared/dist/releaseCompatibility.d.ts.map +1 -0
- package/vendor/shared/dist/releaseCompatibility.js +145 -0
- package/vendor/shared/dist/repositoryRequests.d.ts +173 -0
- package/vendor/shared/dist/repositoryRequests.d.ts.map +1 -0
- package/vendor/shared/dist/repositoryRequests.js +38 -0
- package/vendor/shared/dist/repositoryRouting.d.ts +169 -0
- package/vendor/shared/dist/repositoryRouting.d.ts.map +1 -0
- package/vendor/shared/dist/repositoryRouting.js +102 -0
- package/vendor/shared/dist/roomClient.d.ts +107 -0
- package/vendor/shared/dist/roomClient.d.ts.map +1 -0
- package/vendor/shared/dist/roomClient.js +371 -0
- package/vendor/shared/dist/schemas/comment.d.ts +46 -0
- package/vendor/shared/dist/schemas/comment.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/comment.js +10 -0
- package/vendor/shared/dist/schemas/conversation.d.ts +80 -1
- package/vendor/shared/dist/schemas/conversation.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/conversation.js +12 -1
- package/vendor/shared/dist/schemas/harness.d.ts +1724 -181
- package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/harness.js +125 -127
- package/vendor/shared/dist/schemas/notification.d.ts +3 -1
- package/vendor/shared/dist/schemas/notification.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/notification.js +2 -1
- package/vendor/shared/dist/schemas/organization.d.ts +2 -0
- package/vendor/shared/dist/schemas/organization.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/organization.js +2 -0
- package/vendor/shared/dist/schemas/project.d.ts +2 -2
- package/vendor/shared/dist/schemas/request.d.ts +1 -1
- package/vendor/shared/dist/schemas/task.d.ts +1 -1
- package/vendor/shared/dist/smartCapture.d.ts +24 -0
- package/vendor/shared/dist/smartCapture.d.ts.map +1 -1
- package/vendor/shared/dist/smartCapture.js +16 -1
- package/vendor/shared/dist/spokenNames.d.ts +1 -1
- package/vendor/shared/dist/spokenNames.js +1 -1
- package/vendor/shared/dist/taskActivity.d.ts +5 -5
- package/vendor/shared/dist/taskSharing.d.ts +8 -0
- package/vendor/shared/dist/taskSharing.d.ts.map +1 -0
- package/vendor/shared/dist/taskSharing.js +9 -0
- package/vendor/shared/dist/taskSync.d.ts +342 -0
- package/vendor/shared/dist/taskSync.d.ts.map +1 -0
- package/vendor/shared/dist/taskSync.js +111 -0
- package/vendor/shared/dist/thinking-orb/engine/core.d.ts +31 -0
- package/vendor/shared/dist/thinking-orb/engine/core.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/core.js +62 -0
- package/vendor/shared/dist/thinking-orb/engine/ctx.d.ts +9 -0
- package/vendor/shared/dist/thinking-orb/engine/ctx.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/ctx.js +1 -0
- package/vendor/shared/dist/thinking-orb/engine/lattice.d.ts +5 -0
- package/vendor/shared/dist/thinking-orb/engine/lattice.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/lattice.js +184 -0
- package/vendor/shared/dist/thinking-orb/engine/morph.d.ts +3 -0
- package/vendor/shared/dist/thinking-orb/engine/morph.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/morph.js +117 -0
- package/vendor/shared/dist/thinking-orb/engine/orbits.d.ts +3 -0
- package/vendor/shared/dist/thinking-orb/engine/orbits.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/orbits.js +66 -0
- package/vendor/shared/dist/thinking-orb/engine/profiles.d.ts +8 -0
- package/vendor/shared/dist/thinking-orb/engine/profiles.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/profiles.js +113 -0
- package/vendor/shared/dist/thinking-orb/engine/registry.d.ts +4 -0
- package/vendor/shared/dist/thinking-orb/engine/registry.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/registry.js +14 -0
- package/vendor/shared/dist/thinking-orb/engine/ribbon.d.ts +3 -0
- package/vendor/shared/dist/thinking-orb/engine/ribbon.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/ribbon.js +64 -0
- package/vendor/shared/dist/thinking-orb/engine/types.d.ts +6 -0
- package/vendor/shared/dist/thinking-orb/engine/types.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/types.js +2 -0
- package/vendor/shared/dist/thinking-orb/index.d.ts +7 -0
- package/vendor/shared/dist/thinking-orb/index.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/index.js +2 -0
- package/vendor/shared/dist/thinking-orb/presets.d.ts +12 -0
- package/vendor/shared/dist/thinking-orb/presets.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/presets.js +67 -0
- package/vendor/shared/dist/thinking-orb/types.d.ts +24 -0
- package/vendor/shared/dist/thinking-orb/types.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/types.js +1 -0
- package/vendor/shared/dist/turnTiming.d.ts +13 -0
- package/vendor/shared/dist/turnTiming.d.ts.map +1 -0
- package/vendor/shared/dist/turnTiming.js +18 -0
- package/vendor/shared/dist/types.d.ts +4 -5
- package/vendor/shared/dist/types.d.ts.map +1 -1
- package/vendor/shared/dist/updateControl.d.ts +168 -0
- package/vendor/shared/dist/updateControl.d.ts.map +1 -0
- package/vendor/shared/dist/updateControl.js +43 -0
- package/vendor/shared/dist/videos.d.ts +31 -0
- package/vendor/shared/dist/videos.d.ts.map +1 -0
- package/vendor/shared/dist/videos.js +34 -0
- package/vendor/shared/dist/voiceCapture.d.ts +1 -1
- package/vendor/shared/dist/workspaceIO.d.ts +188 -0
- package/vendor/shared/dist/workspaceIO.d.ts.map +1 -0
- package/vendor/shared/dist/workspaceIO.js +50 -0
- package/vendor/shared/dist/workspaces.d.ts +857 -2
- package/vendor/shared/dist/workspaces.d.ts.map +1 -1
- package/vendor/shared/dist/workspaces.js +156 -1
- package/vendor/shared/package.json +12 -0
- package/vendor/shared/src/accountDevices.ts +28 -0
- package/vendor/shared/src/activityRecovery.ts +42 -0
- package/vendor/shared/src/agentMessages.ts +82 -0
- package/vendor/shared/src/aiUsage.ts +18 -0
- package/vendor/shared/src/artifacts.ts +48 -0
- package/vendor/shared/src/automationTemplates.ts +1 -0
- package/vendor/shared/src/automations.ts +22 -3
- package/vendor/shared/src/chatActivity.ts +56 -0
- package/vendor/shared/src/codingActivity.ts +40 -0
- package/vendor/shared/src/commandLocal.ts +1 -1
- package/vendor/shared/src/commands.ts +1 -1
- package/vendor/shared/src/commentMentions.ts +20 -0
- package/vendor/shared/src/computer.ts +43 -3
- package/vendor/shared/src/constants.ts +8 -10
- package/vendor/shared/src/daemonUpdates.ts +127 -0
- package/vendor/shared/src/deviceInteraction.ts +35 -0
- package/vendor/shared/src/doctor.ts +19 -0
- package/vendor/shared/src/fileUploads.ts +28 -0
- package/vendor/shared/src/files.ts +21 -0
- package/vendor/shared/src/index.ts +38 -7
- package/vendor/shared/src/lucidFollowups.ts +49 -0
- package/vendor/shared/src/lucidInvocations.ts +62 -0
- package/vendor/shared/src/memory.ts +30 -0
- package/vendor/shared/src/messagingSafety.ts +21 -0
- package/vendor/shared/src/recall.ts +69 -0
- package/vendor/shared/src/releaseCompatibility.ts +162 -0
- package/vendor/shared/src/repositoryRequests.ts +44 -0
- package/vendor/shared/src/repositoryRouting.ts +117 -0
- package/vendor/shared/src/roomClient.ts +351 -0
- package/vendor/shared/src/schemas/comment.ts +10 -0
- package/vendor/shared/src/schemas/conversation.ts +12 -1
- package/vendor/shared/src/schemas/harness.ts +138 -133
- package/vendor/shared/src/schemas/notification.ts +2 -1
- package/vendor/shared/src/schemas/organization.ts +2 -0
- package/vendor/shared/src/smartCapture.ts +28 -1
- package/vendor/shared/src/spokenNames.ts +1 -1
- package/vendor/shared/src/taskSharing.ts +13 -0
- package/vendor/shared/src/taskSync.ts +81 -0
- package/vendor/shared/src/thinking-orb/ATTRIBUTION.md +36 -0
- package/vendor/shared/src/thinking-orb/engine/core.ts +81 -0
- package/vendor/shared/src/thinking-orb/engine/ctx.ts +15 -0
- package/vendor/shared/src/thinking-orb/engine/lattice.ts +205 -0
- package/vendor/shared/src/thinking-orb/engine/morph.ts +130 -0
- package/vendor/shared/src/thinking-orb/engine/orbits.ts +80 -0
- package/vendor/shared/src/thinking-orb/engine/profiles.ts +119 -0
- package/vendor/shared/src/thinking-orb/engine/registry.ts +18 -0
- package/vendor/shared/src/thinking-orb/engine/ribbon.ts +71 -0
- package/vendor/shared/src/thinking-orb/engine/types.ts +15 -0
- package/vendor/shared/src/thinking-orb/index.ts +6 -0
- package/vendor/shared/src/thinking-orb/presets.ts +88 -0
- package/vendor/shared/src/thinking-orb/types.ts +25 -0
- package/vendor/shared/src/turnTiming.ts +20 -0
- package/vendor/shared/src/types.ts +1 -7
- package/vendor/shared/src/updateControl.ts +45 -0
- package/vendor/shared/src/videos.ts +37 -0
- package/vendor/shared/src/workspaceIO.ts +61 -0
- package/vendor/shared/src/workspaces.ts +173 -1
- package/dist/coding/conduct.d.ts +0 -48
- package/dist/coding/conduct.d.ts.map +0 -1
- package/dist/coding/conduct.js +0 -263
- package/dist/coding/fleetPlan.d.ts +0 -20
- package/dist/coding/fleetPlan.d.ts.map +0 -1
- package/dist/coding/fleetPlan.js +0 -125
- package/dist/coding/fleetTasks.d.ts +0 -33
- package/dist/coding/fleetTasks.d.ts.map +0 -1
- package/dist/coding/fleetTasks.js +0 -75
- package/src/coding/conduct.ts +0 -325
- package/src/coding/fleetPlan.ts +0 -135
- package/src/coding/fleetTasks.ts +0 -109
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const isGreetingTitle = (title: string) => /^(?:initial greeting|greetings?|hello)[.!]?$/i.test(title.trim());
|
|
4
|
+
export const worktreeTitleSchema = z.string().trim().min(1).max(60)
|
|
5
|
+
.refine(value => !/[\r\n\t]/.test(value) && !/^Worktree\s+\d+$/i.test(value) && !isGreetingTitle(value));
|
|
6
|
+
export const titleSuggestionRequestSchema = z.object({ action: z.literal('suggest-title'),
|
|
7
|
+
requestId: z.string().uuid(), title: worktreeTitleSchema }).strict();
|
|
8
|
+
export const WORKTREE_TITLE_GUIDANCE = `Worktree title metadata: when the actual task is clear, quietly call suggest_worktree_title once near the end of this normal turn with a specific 2–6 word name (at most 60 characters). Use the conversation context you already have; do not run a separate model or research step for naming. Skip greetings or unclear tasks. This saves an internal suggestion, not a chat message or permission to rename files, branches or folders. Do not announce the call or mention the suggestion in commentary or your final answer. The app controls when it is displayed and preserves manual names.`;
|
|
9
|
+
export const isTitleSuggestionEvent = (event: { type: string; name?: string }) =>
|
|
10
|
+
event.type === 'tool_call' && /^(?:(?:functions\.)?mcp__lucidity__|lucidity[./])?suggest_worktree_title$/.test(event.name ?? '');
|
package/src/coding/worktree.ts
CHANGED
|
@@ -21,6 +21,8 @@ export interface Workspace {
|
|
|
21
21
|
/** The branch commits land on. `HEAD` when the in-place checkout is detached. */
|
|
22
22
|
branch: string;
|
|
23
23
|
mode: WorkspaceMode;
|
|
24
|
+
/** Variables the turn's agent runs with, such as the worktree's port block. */
|
|
25
|
+
env?: Record<string, string>;
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
async function git(cwd: string, args: string[], env?: NodeJS.ProcessEnv): Promise<string> {
|
|
@@ -33,41 +35,36 @@ function slug(repoId: string): string {
|
|
|
33
35
|
return repoId.replace(/[^A-Za-z0-9._-]/g, '-');
|
|
34
36
|
}
|
|
35
37
|
|
|
36
|
-
/** The stable branch name for a coding session.
|
|
37
|
-
* a
|
|
38
|
-
* subtask's id), so N workers on one repo hold N isolated branches.
|
|
38
|
+
/** The stable branch name for a coding session. The repository's main session is
|
|
39
|
+
* `lucid/<repo>`; a worktree gets `wt/<repo>/<workerId>`.
|
|
39
40
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* exclusive (the D/F conflict). Keeping workers under `fleet/` leaves the bare
|
|
44
|
-
* `lucid/<repo>` — the classic single session AND the fleet's integration target,
|
|
45
|
-
* the one branch a fleet PR opens from — untouched. `workerId` absent → the classic
|
|
46
|
-
* branch, byte-for-byte as before. */
|
|
41
|
+
* Worktrees live under their own `wt/` namespace instead of `lucid/<repo>/…` because a git
|
|
42
|
+
* ref can't be both a leaf and a directory, so `lucid/<repo>` and `lucid/<repo>/<workerId>`
|
|
43
|
+
* cannot both exist. */
|
|
47
44
|
export function sessionBranch(repoId: string, workerId?: string): string {
|
|
48
45
|
return workerId
|
|
49
|
-
? `
|
|
46
|
+
? `wt/${slug(repoId)}/${slug(workerId)}`
|
|
50
47
|
: `lucid/${slug(repoId)}`;
|
|
51
48
|
}
|
|
52
49
|
|
|
53
|
-
/** The stable
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* default root (tests point it at a temp dir); `workerId` absent → the classic path. */
|
|
50
|
+
/** The stable folder for a coding session (constant across turns, so `--resume` resolves).
|
|
51
|
+
* The main session lives at `<base>/<repo>`; a worktree at `<base>/wt/<repo>/<workerId>`, a
|
|
52
|
+
* sibling of it and never nested inside it (which would put a checkout within a checkout).
|
|
53
|
+
* `baseDir` overrides the default root (tests point it at a temp dir). */
|
|
58
54
|
export function sessionWorktreePath(
|
|
59
55
|
repoId: string,
|
|
60
56
|
baseDir: string = WORKTREE_BASE,
|
|
61
57
|
workerId?: string,
|
|
62
58
|
): string {
|
|
63
59
|
return workerId
|
|
64
|
-
? join(baseDir, '
|
|
60
|
+
? join(baseDir, 'wt', slug(repoId), slug(workerId))
|
|
65
61
|
: join(baseDir, slug(repoId));
|
|
66
62
|
}
|
|
67
63
|
|
|
68
|
-
/** The branch checked out in `repoRoot`, or `HEAD` when detached. */
|
|
64
|
+
/** The branch checked out in `repoRoot`, including before its first commit, or `HEAD` when detached. */
|
|
69
65
|
export async function currentBranch(repoRoot: string): Promise<string> {
|
|
70
|
-
return (await git(repoRoot, ['
|
|
66
|
+
return (await git(repoRoot, ['symbolic-ref', '--quiet', '--short', 'HEAD'])
|
|
67
|
+
.catch(() => git(repoRoot, ['rev-parse', '--abbrev-ref', 'HEAD']))).trim();
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
export async function workspaceBranchExists(repoRoot: string, repoId: string, workerId?: string): Promise<boolean> {
|
|
@@ -172,9 +169,7 @@ export async function ensureWorkspace(
|
|
|
172
169
|
fresh?: boolean;
|
|
173
170
|
startPoint?: string;
|
|
174
171
|
baseDir?: string;
|
|
175
|
-
/**
|
|
176
|
-
* worktree/branch so N workers run in parallel on one repo. Absent → the classic
|
|
177
|
-
* single session, unchanged. */
|
|
172
|
+
/** Present → that worktree's own folder and branch. Absent → the main session. */
|
|
178
173
|
workerId?: string;
|
|
179
174
|
} = {},
|
|
180
175
|
): Promise<Workspace> {
|
|
@@ -321,6 +316,153 @@ export async function removeWorktree(
|
|
|
321
316
|
}
|
|
322
317
|
}
|
|
323
318
|
|
|
319
|
+
/** Where an archived worker's files are parked. Under `refs/lucid/`, so no branch or push sees it. */
|
|
320
|
+
export function archivedWorktreeRef(workerId: string): string {
|
|
321
|
+
return `refs/lucid/archived/${slug(workerId)}`;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Free an archived worker's folder. Its full working state (tracked, staged and untracked,
|
|
326
|
+
* gitignored files excluded) is parked first as a commit on top of the worktree's HEAD, so
|
|
327
|
+
* uncommitted work survives. The branch stays. Throws before removing anything if the
|
|
328
|
+
* snapshot cannot be written.
|
|
329
|
+
*/
|
|
330
|
+
export async function archiveWorktree(repoRoot: string, ws: Workspace, workerId: string, opts: { deleteBranch?: boolean } = {}): Promise<void> {
|
|
331
|
+
if (ws.mode === 'in-place' || resolve(ws.path) === resolve(repoRoot)) {
|
|
332
|
+
throw new Error(`refusing to remove the repo checkout itself: ${ws.path}`);
|
|
333
|
+
}
|
|
334
|
+
if (!existsSync(ws.path)) return;
|
|
335
|
+
const tree = await snapshotTree(ws);
|
|
336
|
+
const head = (await git(ws.path, ['rev-parse', 'HEAD'])).trim();
|
|
337
|
+
const sha = (await git(ws.path, ['commit-tree', tree, '-p', head, '-m', 'Archived worktree'])).trim();
|
|
338
|
+
await git(repoRoot, ['update-ref', archivedWorktreeRef(workerId), sha]);
|
|
339
|
+
await git(repoRoot, ['worktree', 'remove', '--force', ws.path]);
|
|
340
|
+
// The snapshot's parent is the branch tip, so the branch can be re-created from it on restore.
|
|
341
|
+
if (opts.deleteBranch) await git(repoRoot, ['branch', '-D', ws.branch]).catch(() => {});
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/** The commit an archived worker's branch pointed at, for re-creating a branch deleted on archive. */
|
|
345
|
+
export async function archivedHead(repoRoot: string, workerId: string): Promise<string | undefined> {
|
|
346
|
+
return git(repoRoot, ['rev-parse', '--verify', '--quiet', `${archivedWorktreeRef(workerId)}^`]).then((s) => s.trim() || undefined, () => undefined);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* What deleting an archived worker would lose: commits on its branch (or, when the branch was
|
|
351
|
+
* deleted on archive, on the commit its snapshot was taken from) that are in none of `baseRefs`,
|
|
352
|
+
* the remote default branch or the branch's own remote copy, plus whether the snapshot holds
|
|
353
|
+
* files that were never committed.
|
|
354
|
+
*
|
|
355
|
+
* A commit whose change is already in the base under another sha does not count, so a branch
|
|
356
|
+
* that was rebase-merged reads as merged. A squash merge cannot be recognised this way and
|
|
357
|
+
* still counts. Remote refs are refreshed first when anything looks unmerged, since a pull
|
|
358
|
+
* request merged on GitHub is only visible after a fetch; offline, the last fetched state is used.
|
|
359
|
+
*/
|
|
360
|
+
export async function unmergedArchivedWork(
|
|
361
|
+
repoRoot: string,
|
|
362
|
+
workerId: string,
|
|
363
|
+
branch: string,
|
|
364
|
+
baseRefs: (string | undefined)[] = [],
|
|
365
|
+
): Promise<{ commits: number; uncommitted: boolean }> {
|
|
366
|
+
const sha = (ref: string) =>
|
|
367
|
+
git(repoRoot, ['rev-parse', '--verify', '--quiet', '--end-of-options', `${ref}^{commit}`]).then((s) => s.trim() || undefined, () => undefined);
|
|
368
|
+
const present = async (refs: (string | undefined)[]) =>
|
|
369
|
+
[...new Set((await Promise.all(refs.map((ref) => (ref ? sha(ref) : undefined)))).filter((s): s is string => !!s))];
|
|
370
|
+
const snapshot = archivedWorktreeRef(workerId);
|
|
371
|
+
const trees = await git(repoRoot, ['rev-parse', '--verify', '--quiet', `${snapshot}^{tree}`])
|
|
372
|
+
.then(async (tree) => [tree.trim(), (await git(repoRoot, ['rev-parse', '--verify', '--quiet', `${snapshot}^^{tree}`])).trim()], () => []);
|
|
373
|
+
const uncommitted = trees.length === 2 && trees[0] !== trees[1];
|
|
374
|
+
const tips = await present([`refs/heads/${branch}`, `${snapshot}^`]);
|
|
375
|
+
if (!tips.length) return { commits: 0, uncommitted };
|
|
376
|
+
const kept = async () => {
|
|
377
|
+
const remoteDefault = await git(repoRoot, ['symbolic-ref', '--quiet', '--short', 'refs/remotes/origin/HEAD']).then((s) => s.trim(), () => '');
|
|
378
|
+
const refs = await present([
|
|
379
|
+
...baseRefs.flatMap((ref) => (!ref || ref === 'HEAD' || ref.startsWith('origin/') ? [ref] : [`origin/${ref}`, ref])),
|
|
380
|
+
remoteDefault, remoteDefault && `refs/heads/${remoteDefault.replace(/^origin\//, '')}`,
|
|
381
|
+
`refs/remotes/origin/${branch}`, `${branch}@{upstream}`,
|
|
382
|
+
]);
|
|
383
|
+
// A repository with no remote and no configured base has only its own checkout to compare against.
|
|
384
|
+
return refs.length ? refs : present(['HEAD']);
|
|
385
|
+
};
|
|
386
|
+
const ahead = async (bases: string[]) =>
|
|
387
|
+
(await git(repoRoot, ['rev-list', '--no-merges', ...tips, '--not', ...bases])).split('\n').filter(Boolean);
|
|
388
|
+
let bases = await kept();
|
|
389
|
+
let commits = await ahead(bases);
|
|
390
|
+
if (commits.length) {
|
|
391
|
+
await exec('git', ['fetch', 'origin'], { cwd: repoRoot, timeout: 20_000 }).catch(() => {});
|
|
392
|
+
bases = await kept();
|
|
393
|
+
commits = await ahead(bases);
|
|
394
|
+
}
|
|
395
|
+
if (commits.length && bases[0]) {
|
|
396
|
+
const applied = new Set(commits);
|
|
397
|
+
for (const tip of tips) {
|
|
398
|
+
const fresh = await git(repoRoot, ['rev-list', '--no-merges', '--cherry-pick', '--right-only', `${bases[0]}...${tip}`]);
|
|
399
|
+
for (const commit of fresh.split('\n')) applied.delete(commit);
|
|
400
|
+
}
|
|
401
|
+
commits = commits.filter((commit) => !applied.has(commit));
|
|
402
|
+
}
|
|
403
|
+
return { commits: commits.length, uncommitted };
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/** Remove what an archived worker left in the repository: its local branch, if it still has one,
|
|
407
|
+
* and its snapshot. The remote branch is not touched. */
|
|
408
|
+
export async function deleteArchivedWorktree(repoRoot: string, workerId: string, branch: string): Promise<void> {
|
|
409
|
+
// A folder removed by hand still holds its branch until its worktree entry is pruned.
|
|
410
|
+
await git(repoRoot, ['worktree', 'prune']).catch(() => {});
|
|
411
|
+
const exists = await git(repoRoot, ['show-ref', '--verify', `refs/heads/${branch}`]).then(() => true, () => false);
|
|
412
|
+
if (exists) await git(repoRoot, ['branch', '-D', '--end-of-options', branch]);
|
|
413
|
+
await git(repoRoot, ['update-ref', '-d', archivedWorktreeRef(workerId)]);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/** Per-file added and removed line counts for everything in a folder that differs from `base`,
|
|
417
|
+
* committed or not. Tracked files only; a binary file counts as zero lines. */
|
|
418
|
+
export async function numstatSince(path: string, base: string): Promise<Map<string, [added: number, removed: number]>> {
|
|
419
|
+
const out = await git(path, ['diff', '--numstat', '-z', base]);
|
|
420
|
+
const stats = new Map<string, [number, number]>();
|
|
421
|
+
for (const row of out.split('\0')) {
|
|
422
|
+
const [added, removed, file] = row.split('\t');
|
|
423
|
+
if (file) stats.set(file, [Number(added) || 0, Number(removed) || 0]);
|
|
424
|
+
}
|
|
425
|
+
return stats;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/** What changed between two readings of {@link numstatSince} taken against the same base: the
|
|
429
|
+
* turn's own work, with whatever was already uncommitted when it started taken out. */
|
|
430
|
+
export function turnChangeCounts(
|
|
431
|
+
before: Map<string, [number, number]>,
|
|
432
|
+
after: Map<string, [number, number]>,
|
|
433
|
+
): { added: number; removed: number; files: string[] } | undefined {
|
|
434
|
+
let added = 0;
|
|
435
|
+
let removed = 0;
|
|
436
|
+
const files: string[] = [];
|
|
437
|
+
for (const file of new Set([...before.keys(), ...after.keys()])) {
|
|
438
|
+
const [a0, r0] = before.get(file) ?? [0, 0];
|
|
439
|
+
const [a1, r1] = after.get(file) ?? [0, 0];
|
|
440
|
+
if (a0 === a1 && r0 === r1) continue;
|
|
441
|
+
added += Math.max(0, a1 - a0);
|
|
442
|
+
removed += Math.max(0, r1 - r0);
|
|
443
|
+
if (files.length < 40) files.push(file);
|
|
444
|
+
}
|
|
445
|
+
return files.length ? { added, removed, files } : undefined;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/** The commit checked out in a folder. */
|
|
449
|
+
export async function headSha(path: string): Promise<string> {
|
|
450
|
+
return (await git(path, ['rev-parse', 'HEAD'])).trim();
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Put an archived worker's uncommitted files back into its re-created worktree. They return
|
|
455
|
+
* unstaged. If the branch moved while the worker was archived the snapshot no longer fits, so
|
|
456
|
+
* it is left under its ref for a manual `git restore --source` and nothing is overwritten.
|
|
457
|
+
*/
|
|
458
|
+
export async function restoreArchivedFiles(repoRoot: string, ws: Workspace, workerId: string): Promise<void> {
|
|
459
|
+
const ref = archivedWorktreeRef(workerId);
|
|
460
|
+
const parent = await git(repoRoot, ['rev-parse', '--verify', '--quiet', `${ref}^`]).then((s) => s.trim(), () => '');
|
|
461
|
+
if (!parent) return;
|
|
462
|
+
if (parent !== (await git(ws.path, ['rev-parse', 'HEAD'])).trim()) return;
|
|
463
|
+
await git(ws.path, ['restore', `--source=${ref}`, '--worktree', '--', '.']);
|
|
464
|
+
await git(repoRoot, ['update-ref', '-d', ref]);
|
|
465
|
+
}
|
|
324
466
|
|
|
325
467
|
/** A review can inspect tracked changes without staging or reading unrelated untracked files. */
|
|
326
468
|
export async function reviewDiff(ws: Workspace): Promise<string> {
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import { copyFileSync, existsSync, mkdirSync, readdirSync, statSync } from 'node:fs';
|
|
3
|
+
import { dirname, join, posix } from 'node:path';
|
|
4
|
+
|
|
5
|
+
const SETUP_TIMEOUT_MS = 15 * 60 * 1000;
|
|
6
|
+
|
|
7
|
+
/** Wildcards are honoured in the file name only: `.env*` and `apps/api/.env.*` work, `**` does not. */
|
|
8
|
+
function matches(repoRoot: string, pattern: string): string[] {
|
|
9
|
+
const clean = posix.normalize(pattern);
|
|
10
|
+
if (clean.startsWith('..') || clean.startsWith('/')) return [];
|
|
11
|
+
const dir = posix.dirname(clean);
|
|
12
|
+
if (/[*?]/.test(dir)) return [];
|
|
13
|
+
const name = new RegExp(`^${posix.basename(clean).replace(/[.+^${}()|[\]\\]/g, '\\$&').replace(/\*/g, '.*').replace(/\?/g, '.')}$`);
|
|
14
|
+
const from = join(repoRoot, dir);
|
|
15
|
+
if (!existsSync(from)) return [];
|
|
16
|
+
return readdirSync(from)
|
|
17
|
+
.filter((entry) => name.test(entry) && statSync(join(from, entry)).isFile())
|
|
18
|
+
.map((entry) => posix.join(dir, entry));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** The files the copy list matches in the repository right now. */
|
|
22
|
+
export function matchedFiles(repoRoot: string, include: string[]): string[] {
|
|
23
|
+
return [...new Set(include.flatMap((pattern) => matches(repoRoot, pattern)))];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Copy the repository's listed files into the worktree. A file already there is never overwritten. */
|
|
27
|
+
export function copyIncludedFiles(repoRoot: string, worktree: string, include: string[]): string[] {
|
|
28
|
+
const copied: string[] = [];
|
|
29
|
+
for (const file of matchedFiles(repoRoot, include)) {
|
|
30
|
+
const to = join(worktree, file);
|
|
31
|
+
if (existsSync(to)) continue;
|
|
32
|
+
mkdirSync(dirname(to), { recursive: true });
|
|
33
|
+
copyFileSync(join(repoRoot, file), to);
|
|
34
|
+
copied.push(file);
|
|
35
|
+
}
|
|
36
|
+
return copied;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Run one of the repository's commands (setup or archive) in the worktree. */
|
|
40
|
+
export async function runSetupScript(repoRoot: string, worktree: string, name: string, setup: string, port?: number, signal?: AbortSignal): Promise<void> {
|
|
41
|
+
signal?.throwIfAborted();
|
|
42
|
+
await new Promise<void>((resolve, reject) => {
|
|
43
|
+
const child = spawn('/bin/sh', ['-c', setup], {
|
|
44
|
+
cwd: worktree, detached: process.platform !== 'win32', stdio: ['ignore', 'pipe', 'pipe'],
|
|
45
|
+
env: { ...process.env, LUCIDITY_ROOT_PATH: repoRoot, LUCIDITY_WORKTREE_PATH: worktree, LUCIDITY_WORKTREE_NAME: name,
|
|
46
|
+
...(port ? { LUCIDITY_PORT: String(port) } : {}) },
|
|
47
|
+
});
|
|
48
|
+
let error: Error | undefined, stderr = '', bytes = 0;
|
|
49
|
+
const stop = (reason: string) => {
|
|
50
|
+
error ??= new Error(reason);
|
|
51
|
+
// Stop the entire setup process group before a corrected destination can start.
|
|
52
|
+
try {
|
|
53
|
+
if (child.pid && process.platform !== 'win32') process.kill(-child.pid, 'SIGKILL');
|
|
54
|
+
else child.kill('SIGKILL');
|
|
55
|
+
} catch { /* already exited */ }
|
|
56
|
+
};
|
|
57
|
+
const abort = () => stop('Workspace setup was stopped.');
|
|
58
|
+
const timer = setTimeout(() => stop('Workspace setup timed out.'), SETUP_TIMEOUT_MS);
|
|
59
|
+
signal?.addEventListener('abort', abort, { once: true });
|
|
60
|
+
if (signal?.aborted) abort();
|
|
61
|
+
child.on('error', (failure) => { error = failure; });
|
|
62
|
+
child.stdout.on('data', (chunk: Buffer) => { bytes += chunk.length; if (bytes > 32 * 1024 * 1024) stop('Workspace setup output is too large.'); });
|
|
63
|
+
child.stderr.on('data', (chunk: Buffer) => {
|
|
64
|
+
stderr = (stderr + chunk.toString()).slice(-4000);
|
|
65
|
+
bytes += chunk.length; if (bytes > 32 * 1024 * 1024) stop('Workspace setup output is too large.');
|
|
66
|
+
});
|
|
67
|
+
child.on('close', (code) => {
|
|
68
|
+
clearTimeout(timer); signal?.removeEventListener('abort', abort);
|
|
69
|
+
if (error || code !== 0) reject(Object.assign(error ?? new Error(`Workspace setup exited with ${code}.`), { stderr }));
|
|
70
|
+
else resolve();
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
}
|
package/src/config.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { resolveSessionRetention, type SessionRetention } from '@lucidity/runtime';
|
|
1
2
|
import { homedir, hostname } from 'node:os';
|
|
2
3
|
import { join } from 'node:path';
|
|
3
4
|
import {
|
|
@@ -72,12 +73,16 @@ export interface Capabilities {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
export interface DaemonConfig {
|
|
76
|
+
/** Idle provider process budgets, read at daemon startup. */
|
|
77
|
+
sessionRetention?: Partial<Record<'claude' | 'codex', SessionRetention>>;
|
|
75
78
|
/** Local recording transcription, independent of the chat/code providers. */
|
|
76
79
|
sttModel?: string;
|
|
77
80
|
/** Master switch for proactive jobs. Existing installations retain their behavior. */
|
|
78
81
|
scheduledWork?: boolean;
|
|
79
82
|
chatProvider?: 'claude' | 'codex';
|
|
80
83
|
codeProvider?: 'claude' | 'codex';
|
|
84
|
+
/** Compatibility field for older clients. Provider fallback is now automatic. */
|
|
85
|
+
backgroundFallback?: boolean;
|
|
81
86
|
/** Lucidity API key, `luc_…`. */
|
|
82
87
|
apiKey: string;
|
|
83
88
|
/** API base URL. Default: `http://localhost:3001`. */
|
|
@@ -145,9 +150,9 @@ const EXAMPLE = `{
|
|
|
145
150
|
"apiKey": "luc_xxx", // from Lucidity → Settings → API Key
|
|
146
151
|
"apiUrl": "http://localhost:3001",
|
|
147
152
|
"briefingTime": "08:00",
|
|
148
|
-
"chatModel": "
|
|
153
|
+
"chatModel": "default", // optional; provider default for Ask Lucid + voice
|
|
149
154
|
"chatEffort": "low", // optional; low | medium | high | xhigh | max (default low)
|
|
150
|
-
"codeModel": "
|
|
155
|
+
"codeModel": "default", // optional; provider default for coding + briefings; Activity follows the coding conversation
|
|
151
156
|
"codeEffort": "high", // optional; low | medium | high | xhigh | max (default high)
|
|
152
157
|
"timezone": "Asia/Kolkata", // optional; IANA name
|
|
153
158
|
"delivery": "macos", // optional; "macos" | "stdout"
|
|
@@ -373,6 +378,7 @@ export function loadConfig(configPath: string = CONFIG_PATH): DaemonConfig {
|
|
|
373
378
|
fail(`${configPath}: "sttModel" must be a speech model ID.`);
|
|
374
379
|
|
|
375
380
|
return {
|
|
381
|
+
sessionRetention: parseSessionRetention(obj['sessionRetention']),
|
|
376
382
|
sttModel: sttModel.data,
|
|
377
383
|
apiKey,
|
|
378
384
|
apiUrl,
|
|
@@ -381,6 +387,7 @@ export function loadConfig(configPath: string = CONFIG_PATH): DaemonConfig {
|
|
|
381
387
|
briefingTime,
|
|
382
388
|
chatProvider,
|
|
383
389
|
codeProvider,
|
|
390
|
+
backgroundFallback: true,
|
|
384
391
|
chatModel,
|
|
385
392
|
chatEffort,
|
|
386
393
|
codeModel,
|
|
@@ -412,6 +419,7 @@ const EDITABLE_KEYS = [
|
|
|
412
419
|
'sttModel',
|
|
413
420
|
'chatProvider',
|
|
414
421
|
'codeProvider',
|
|
422
|
+
'backgroundFallback',
|
|
415
423
|
'chatModel',
|
|
416
424
|
'chatEffort',
|
|
417
425
|
'codeModel',
|
|
@@ -438,6 +446,7 @@ export function configView(config: DaemonConfig): DaemonConfigView {
|
|
|
438
446
|
sttModel: config.sttModel ?? DEFAULT_SPEECH_MODEL,
|
|
439
447
|
chatProvider: config.chatProvider ?? 'claude',
|
|
440
448
|
codeProvider: config.codeProvider ?? 'claude',
|
|
449
|
+
backgroundFallback: true,
|
|
441
450
|
chatModel: config.chatModel,
|
|
442
451
|
chatEffort: config.chatEffort,
|
|
443
452
|
codeModel: config.codeModel,
|
|
@@ -495,6 +504,7 @@ export function writeConfigPatch(
|
|
|
495
504
|
for (const key of EDITABLE_KEYS) {
|
|
496
505
|
if (p[key] !== undefined) raw[key] = p[key];
|
|
497
506
|
}
|
|
507
|
+
raw['backgroundFallback'] = true;
|
|
498
508
|
if (patch.capabilities) {
|
|
499
509
|
const cur =
|
|
500
510
|
typeof raw['capabilities'] === 'object' && raw['capabilities'] !== null
|
|
@@ -540,6 +550,7 @@ export function persistNormalizedConfig(
|
|
|
540
550
|
}
|
|
541
551
|
|
|
542
552
|
const stale =
|
|
553
|
+
raw['backgroundFallback'] !== true ||
|
|
543
554
|
'model' in raw ||
|
|
544
555
|
'effort' in raw ||
|
|
545
556
|
raw['chatModel'] !== config.chatModel ||
|
|
@@ -549,6 +560,7 @@ export function persistNormalizedConfig(
|
|
|
549
560
|
if (!stale) return false;
|
|
550
561
|
|
|
551
562
|
raw['chatModel'] = config.chatModel;
|
|
563
|
+
raw['backgroundFallback'] = true;
|
|
552
564
|
raw['chatEffort'] = config.chatEffort;
|
|
553
565
|
raw['codeModel'] = config.codeModel;
|
|
554
566
|
raw['codeEffort'] = config.codeEffort;
|
|
@@ -639,6 +651,7 @@ export function applyPatchInMemory(
|
|
|
639
651
|
config.chatProvider = patch.chatProvider;
|
|
640
652
|
if (patch.codeProvider !== undefined)
|
|
641
653
|
config.codeProvider = patch.codeProvider;
|
|
654
|
+
config.backgroundFallback = true;
|
|
642
655
|
if (patch.chatModel !== undefined) config.chatModel = patch.chatModel;
|
|
643
656
|
if (patch.chatEffort !== undefined) config.chatEffort = patch.chatEffort;
|
|
644
657
|
if (patch.codeModel !== undefined) config.codeModel = patch.codeModel;
|
|
@@ -847,3 +860,25 @@ function parseDay(value: unknown): number {
|
|
|
847
860
|
}
|
|
848
861
|
return 0;
|
|
849
862
|
}
|
|
863
|
+
|
|
864
|
+
/** Keep malformed process budgets from silently disabling or expanding retention. */
|
|
865
|
+
function parseSessionRetention(value: unknown): DaemonConfig['sessionRetention'] {
|
|
866
|
+
if (value === undefined) return;
|
|
867
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
868
|
+
throw new Error('sessionRetention must be an object keyed by claude or codex.');
|
|
869
|
+
const result: NonNullable<DaemonConfig['sessionRetention']> = {};
|
|
870
|
+
for (const [provider, raw] of Object.entries(value)) {
|
|
871
|
+
if (provider !== 'claude' && provider !== 'codex')
|
|
872
|
+
throw new Error('sessionRetention supports only claude and codex.');
|
|
873
|
+
if (!raw || typeof raw !== 'object' || Array.isArray(raw) ||
|
|
874
|
+
Object.keys(raw).some((key) => key !== 'maxIdleSessions' && key !== 'idleTtlMs'))
|
|
875
|
+
throw new Error(`sessionRetention.${provider} must contain maxIdleSessions and/or idleTtlMs.`);
|
|
876
|
+
for (const key of ['maxIdleSessions', 'idleTtlMs']) {
|
|
877
|
+
if (key in raw && typeof (raw as Record<string, unknown>)[key] !== 'number')
|
|
878
|
+
throw new Error(`sessionRetention.${provider}.${key} must be a number.`);
|
|
879
|
+
}
|
|
880
|
+
try { result[provider] = resolveSessionRetention(raw as SessionRetention); }
|
|
881
|
+
catch (error) { throw new Error(`sessionRetention.${provider}: ${(error as Error).message}`); }
|
|
882
|
+
}
|
|
883
|
+
return result;
|
|
884
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { realpath } from 'node:fs/promises';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { git } from './files.js';
|
|
4
|
+
|
|
5
|
+
/** Both locations must already be Git checkouts of the same repository. */
|
|
6
|
+
export async function existingWorkspace(repo: string, folder: string, branch: string): Promise<string> {
|
|
7
|
+
const [root, selected] = await Promise.all([realpath(repo), realpath(folder)]);
|
|
8
|
+
const top = await realpath((await git(selected, ['rev-parse', '--show-toplevel'])).trim());
|
|
9
|
+
if (top !== selected) throw new Error('The saved folder is no longer a Git workspace root.');
|
|
10
|
+
const common = async (cwd: string) => realpath(path.resolve(cwd, (await git(cwd, ['rev-parse', '--git-common-dir'])).trim()));
|
|
11
|
+
if (await common(root) !== await common(selected)) throw new Error('The saved folder belongs to a different repository.');
|
|
12
|
+
const actual = (await git(selected, ['branch', '--show-current'])).trim() || 'detached';
|
|
13
|
+
if (actual !== branch) throw new Error('The saved branch changed. Restore or review the original workspace before continuing.');
|
|
14
|
+
// Provider session stores can key by the spelling of cwd. Validate the real
|
|
15
|
+
// location, but retain the path the old host used (including macOS aliases).
|
|
16
|
+
return path.resolve(folder);
|
|
17
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { promises as fs } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { randomUUID } from 'node:crypto';
|
|
4
|
+
import { execFile } from 'node:child_process';
|
|
5
|
+
import { promisify } from 'node:util';
|
|
6
|
+
import { WorkspaceFiles, validateEditorPath, MAX_FILE_BYTES } from './files.js';
|
|
7
|
+
const exec = promisify(execFile);
|
|
8
|
+
export interface SearchMatch {
|
|
9
|
+
path: string;
|
|
10
|
+
line: number;
|
|
11
|
+
column: number;
|
|
12
|
+
text: string;
|
|
13
|
+
}
|
|
14
|
+
export class FileActions {
|
|
15
|
+
constructor(private store: WorkspaceFiles) {}
|
|
16
|
+
private async destination(id: string, relative: string) {
|
|
17
|
+
validateEditorPath(relative);
|
|
18
|
+
const root = await fs.realpath(this.store.get(id).path);
|
|
19
|
+
const pieces = relative.split('/');
|
|
20
|
+
let parent = root;
|
|
21
|
+
for (const piece of pieces.slice(0, -1)) {
|
|
22
|
+
parent = path.join(parent, piece);
|
|
23
|
+
await fs.mkdir(parent, { recursive: true });
|
|
24
|
+
parent = await fs.realpath(parent);
|
|
25
|
+
const child = path.relative(root, parent);
|
|
26
|
+
if (
|
|
27
|
+
child === '..' ||
|
|
28
|
+
child.startsWith(`..${path.sep}`) ||
|
|
29
|
+
path.isAbsolute(child) ||
|
|
30
|
+
child.split(path.sep).some((part) => part.toLowerCase() === '.git')
|
|
31
|
+
)
|
|
32
|
+
throw new Error(
|
|
33
|
+
'The destination resolves outside the editable workspace.',
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
return path.join(parent, pieces.at(-1)!);
|
|
37
|
+
}
|
|
38
|
+
async create(id: string, relative: string) {
|
|
39
|
+
const destination = await this.destination(id, relative);
|
|
40
|
+
await fs.writeFile(destination, '', { flag: 'wx', mode: 0o644 });
|
|
41
|
+
return this.store.read(id, relative);
|
|
42
|
+
}
|
|
43
|
+
async createFolder(id: string, relative: string) {
|
|
44
|
+
const destination = await this.destination(id, relative);
|
|
45
|
+
await fs.mkdir(destination);
|
|
46
|
+
return { path: relative };
|
|
47
|
+
}
|
|
48
|
+
async rename(id: string, relative: string, next: string) {
|
|
49
|
+
const source = await this.store.resolve(id, relative);
|
|
50
|
+
const lexical = path.join(this.store.get(id).path, relative);
|
|
51
|
+
if ((await fs.lstat(lexical)).isSymbolicLink())
|
|
52
|
+
throw new Error('Rename symbolic links in the terminal.');
|
|
53
|
+
if (!(await fs.stat(source)).isFile())
|
|
54
|
+
throw new Error('Choose a file to rename.');
|
|
55
|
+
const destination = await this.destination(id, next);
|
|
56
|
+
// link() fails if the destination exists; unlike rename(), it cannot replace it.
|
|
57
|
+
await fs.link(source, destination);
|
|
58
|
+
await fs.unlink(source);
|
|
59
|
+
return this.store.read(id, next);
|
|
60
|
+
}
|
|
61
|
+
async remove(id: string, relative: string, expectedVersion: string) {
|
|
62
|
+
const file = await this.store.read(id, relative);
|
|
63
|
+
if (file.version !== expectedVersion)
|
|
64
|
+
throw new Error(
|
|
65
|
+
'This file changed. Review the current version before deleting it.',
|
|
66
|
+
);
|
|
67
|
+
const source = await this.store.resolve(id, relative);
|
|
68
|
+
if (
|
|
69
|
+
(
|
|
70
|
+
await fs.lstat(path.join(this.store.get(id).path, relative))
|
|
71
|
+
).isSymbolicLink()
|
|
72
|
+
)
|
|
73
|
+
throw new Error('Delete symbolic links in the terminal.');
|
|
74
|
+
const recoveryId = randomUUID();
|
|
75
|
+
const dir = path.join(this.store.directory, 'recovery', recoveryId);
|
|
76
|
+
await fs.mkdir(dir, { recursive: true, mode: 0o700 });
|
|
77
|
+
await fs.writeFile(
|
|
78
|
+
path.join(dir, 'record.json'),
|
|
79
|
+
JSON.stringify({
|
|
80
|
+
workspaceId: id,
|
|
81
|
+
path: relative,
|
|
82
|
+
version: file.version,
|
|
83
|
+
}),
|
|
84
|
+
{ mode: 0o600 },
|
|
85
|
+
);
|
|
86
|
+
await fs.rename(source, path.join(dir, 'content'));
|
|
87
|
+
return { recoveryId };
|
|
88
|
+
}
|
|
89
|
+
async restore(id: string, recoveryId: string) {
|
|
90
|
+
if (!/^[a-f0-9-]{36}$/.test(recoveryId))
|
|
91
|
+
throw new Error('Invalid recovery ID.');
|
|
92
|
+
const dir = path.join(this.store.directory, 'recovery', recoveryId);
|
|
93
|
+
const record = JSON.parse(
|
|
94
|
+
await fs.readFile(path.join(dir, 'record.json'), 'utf8'),
|
|
95
|
+
);
|
|
96
|
+
if (record.workspaceId !== id)
|
|
97
|
+
throw new Error('This deleted file belongs to another workspace.');
|
|
98
|
+
const destination = await this.destination(id, record.path);
|
|
99
|
+
await fs.copyFile(
|
|
100
|
+
path.join(dir, 'content'),
|
|
101
|
+
destination,
|
|
102
|
+
fs.constants.COPYFILE_EXCL,
|
|
103
|
+
);
|
|
104
|
+
await fs.rm(dir, { recursive: true });
|
|
105
|
+
return this.store.read(id, record.path);
|
|
106
|
+
}
|
|
107
|
+
async search(
|
|
108
|
+
id: string,
|
|
109
|
+
query: string,
|
|
110
|
+
): Promise<{ matches: SearchMatch[]; truncated: boolean }> {
|
|
111
|
+
if (!query.trim()) return { matches: [], truncated: false };
|
|
112
|
+
let output = '';
|
|
113
|
+
let truncated = false;
|
|
114
|
+
try {
|
|
115
|
+
output = (
|
|
116
|
+
await exec(
|
|
117
|
+
'git',
|
|
118
|
+
[
|
|
119
|
+
'grep',
|
|
120
|
+
'--null',
|
|
121
|
+
'--line-number',
|
|
122
|
+
'--column',
|
|
123
|
+
'--untracked',
|
|
124
|
+
'--exclude-standard',
|
|
125
|
+
'-I',
|
|
126
|
+
'-i',
|
|
127
|
+
'-F',
|
|
128
|
+
'-e',
|
|
129
|
+
query,
|
|
130
|
+
],
|
|
131
|
+
{
|
|
132
|
+
cwd: this.store.get(id).path,
|
|
133
|
+
maxBuffer: MAX_FILE_BYTES,
|
|
134
|
+
timeout: 15_000,
|
|
135
|
+
},
|
|
136
|
+
)
|
|
137
|
+
).stdout;
|
|
138
|
+
} catch (error) {
|
|
139
|
+
const cause = error as { code?: string | number; stdout?: string };
|
|
140
|
+
if (cause.code === 1) return { matches: [], truncated: false };
|
|
141
|
+
if (cause.code !== 'ERR_CHILD_PROCESS_STDIO_MAXBUFFER') throw error;
|
|
142
|
+
output = cause.stdout || '';
|
|
143
|
+
truncated = true;
|
|
144
|
+
}
|
|
145
|
+
const matches: SearchMatch[] = [];
|
|
146
|
+
const pattern = /([^\0]+)\0(\d+)\0(\d+)\0([^\n]*)\n/g;
|
|
147
|
+
for (const item of output.matchAll(pattern)) {
|
|
148
|
+
if (matches.length === 300) {
|
|
149
|
+
truncated = true;
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
// A grep result can name an external symlink. The editor still validates on open.
|
|
153
|
+
matches.push({
|
|
154
|
+
path: item[1]!,
|
|
155
|
+
line: Number(item[2]),
|
|
156
|
+
column: Number(item[3]),
|
|
157
|
+
text: item[4]!.slice(0, 500),
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
return { matches, truncated };
|
|
161
|
+
}
|
|
162
|
+
}
|