@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,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const isGreetingTitle: (title: string) => boolean;
|
|
3
|
+
export declare const worktreeTitleSchema: z.ZodString;
|
|
4
|
+
export declare const titleSuggestionRequestSchema: z.ZodObject<{
|
|
5
|
+
action: z.ZodLiteral<"suggest-title">;
|
|
6
|
+
requestId: z.ZodString;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export declare 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\u20136 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.";
|
|
10
|
+
export declare const isTitleSuggestionEvent: (event: {
|
|
11
|
+
type: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
}) => boolean;
|
|
14
|
+
//# sourceMappingURL=workspaceTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceTitle.d.ts","sourceRoot":"","sources":["../../src/coding/workspaceTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,YAAuE,CAAC;AACrH,eAAO,MAAM,mBAAmB,aAC0E,CAAC;AAC3G,eAAO,MAAM,4BAA4B;;;;kBAC6B,CAAC;AACvE,eAAO,MAAM,uBAAuB,8kBAAykB,CAAC;AAC9mB,eAAO,MAAM,sBAAsB,GAAI,OAAO;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,YACqD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const isGreetingTitle = (title) => /^(?:initial greeting|greetings?|hello)[.!]?$/i.test(title.trim());
|
|
3
|
+
export const worktreeTitleSchema = z.string().trim().min(1).max(60)
|
|
4
|
+
.refine(value => !/[\r\n\t]/.test(value) && !/^Worktree\s+\d+$/i.test(value) && !isGreetingTitle(value));
|
|
5
|
+
export const titleSuggestionRequestSchema = z.object({ action: z.literal('suggest-title'),
|
|
6
|
+
requestId: z.string().uuid(), title: worktreeTitleSchema }).strict();
|
|
7
|
+
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.`;
|
|
8
|
+
export const isTitleSuggestionEvent = (event) => event.type === 'tool_call' && /^(?:(?:functions\.)?mcp__lucidity__|lucidity[./])?suggest_worktree_title$/.test(event.name ?? '');
|
|
@@ -8,26 +8,22 @@ export interface Workspace {
|
|
|
8
8
|
/** The branch commits land on. `HEAD` when the in-place checkout is detached. */
|
|
9
9
|
branch: string;
|
|
10
10
|
mode: WorkspaceMode;
|
|
11
|
+
/** Variables the turn's agent runs with, such as the worktree's port block. */
|
|
12
|
+
env?: Record<string, string>;
|
|
11
13
|
}
|
|
12
|
-
/** The stable branch name for a coding session.
|
|
13
|
-
* a
|
|
14
|
-
* subtask's id), so N workers on one repo hold N isolated branches.
|
|
14
|
+
/** The stable branch name for a coding session. The repository's main session is
|
|
15
|
+
* `lucid/<repo>`; a worktree gets `wt/<repo>/<workerId>`.
|
|
15
16
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* exclusive (the D/F conflict). Keeping workers under `fleet/` leaves the bare
|
|
20
|
-
* `lucid/<repo>` — the classic single session AND the fleet's integration target,
|
|
21
|
-
* the one branch a fleet PR opens from — untouched. `workerId` absent → the classic
|
|
22
|
-
* branch, byte-for-byte as before. */
|
|
17
|
+
* Worktrees live under their own `wt/` namespace instead of `lucid/<repo>/…` because a git
|
|
18
|
+
* ref can't be both a leaf and a directory, so `lucid/<repo>` and `lucid/<repo>/<workerId>`
|
|
19
|
+
* cannot both exist. */
|
|
23
20
|
export declare function sessionBranch(repoId: string, workerId?: string): string;
|
|
24
|
-
/** The stable
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* default root (tests point it at a temp dir); `workerId` absent → the classic path. */
|
|
21
|
+
/** The stable folder for a coding session (constant across turns, so `--resume` resolves).
|
|
22
|
+
* The main session lives at `<base>/<repo>`; a worktree at `<base>/wt/<repo>/<workerId>`, a
|
|
23
|
+
* sibling of it and never nested inside it (which would put a checkout within a checkout).
|
|
24
|
+
* `baseDir` overrides the default root (tests point it at a temp dir). */
|
|
29
25
|
export declare function sessionWorktreePath(repoId: string, baseDir?: string, workerId?: string): string;
|
|
30
|
-
/** The branch checked out in `repoRoot`, or `HEAD` when detached. */
|
|
26
|
+
/** The branch checked out in `repoRoot`, including before its first commit, or `HEAD` when detached. */
|
|
31
27
|
export declare function currentBranch(repoRoot: string): Promise<string>;
|
|
32
28
|
export declare function workspaceBranchExists(repoRoot: string, repoId: string, workerId?: string): Promise<boolean>;
|
|
33
29
|
/** Resolve the fetched remote base without changing the existing checkout. */
|
|
@@ -75,9 +71,7 @@ export declare function ensureWorkspace(repoRoot: string, repoId: string, opts?:
|
|
|
75
71
|
fresh?: boolean;
|
|
76
72
|
startPoint?: string;
|
|
77
73
|
baseDir?: string;
|
|
78
|
-
/**
|
|
79
|
-
* worktree/branch so N workers run in parallel on one repo. Absent → the classic
|
|
80
|
-
* single session, unchanged. */
|
|
74
|
+
/** Present → that worktree's own folder and branch. Absent → the main session. */
|
|
81
75
|
workerId?: string;
|
|
82
76
|
}): Promise<Workspace>;
|
|
83
77
|
/**
|
|
@@ -141,6 +135,55 @@ export declare function commitWorkspace(ws: Workspace, message: string, paths: s
|
|
|
141
135
|
export declare function removeWorktree(repoRoot: string, ws: Workspace, opts?: {
|
|
142
136
|
keepBranch?: boolean;
|
|
143
137
|
}): Promise<void>;
|
|
138
|
+
/** Where an archived worker's files are parked. Under `refs/lucid/`, so no branch or push sees it. */
|
|
139
|
+
export declare function archivedWorktreeRef(workerId: string): string;
|
|
140
|
+
/**
|
|
141
|
+
* Free an archived worker's folder. Its full working state (tracked, staged and untracked,
|
|
142
|
+
* gitignored files excluded) is parked first as a commit on top of the worktree's HEAD, so
|
|
143
|
+
* uncommitted work survives. The branch stays. Throws before removing anything if the
|
|
144
|
+
* snapshot cannot be written.
|
|
145
|
+
*/
|
|
146
|
+
export declare function archiveWorktree(repoRoot: string, ws: Workspace, workerId: string, opts?: {
|
|
147
|
+
deleteBranch?: boolean;
|
|
148
|
+
}): Promise<void>;
|
|
149
|
+
/** The commit an archived worker's branch pointed at, for re-creating a branch deleted on archive. */
|
|
150
|
+
export declare function archivedHead(repoRoot: string, workerId: string): Promise<string | undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* What deleting an archived worker would lose: commits on its branch (or, when the branch was
|
|
153
|
+
* deleted on archive, on the commit its snapshot was taken from) that are in none of `baseRefs`,
|
|
154
|
+
* the remote default branch or the branch's own remote copy, plus whether the snapshot holds
|
|
155
|
+
* files that were never committed.
|
|
156
|
+
*
|
|
157
|
+
* A commit whose change is already in the base under another sha does not count, so a branch
|
|
158
|
+
* that was rebase-merged reads as merged. A squash merge cannot be recognised this way and
|
|
159
|
+
* still counts. Remote refs are refreshed first when anything looks unmerged, since a pull
|
|
160
|
+
* request merged on GitHub is only visible after a fetch; offline, the last fetched state is used.
|
|
161
|
+
*/
|
|
162
|
+
export declare function unmergedArchivedWork(repoRoot: string, workerId: string, branch: string, baseRefs?: (string | undefined)[]): Promise<{
|
|
163
|
+
commits: number;
|
|
164
|
+
uncommitted: boolean;
|
|
165
|
+
}>;
|
|
166
|
+
/** Remove what an archived worker left in the repository: its local branch, if it still has one,
|
|
167
|
+
* and its snapshot. The remote branch is not touched. */
|
|
168
|
+
export declare function deleteArchivedWorktree(repoRoot: string, workerId: string, branch: string): Promise<void>;
|
|
169
|
+
/** Per-file added and removed line counts for everything in a folder that differs from `base`,
|
|
170
|
+
* committed or not. Tracked files only; a binary file counts as zero lines. */
|
|
171
|
+
export declare function numstatSince(path: string, base: string): Promise<Map<string, [added: number, removed: number]>>;
|
|
172
|
+
/** What changed between two readings of {@link numstatSince} taken against the same base: the
|
|
173
|
+
* turn's own work, with whatever was already uncommitted when it started taken out. */
|
|
174
|
+
export declare function turnChangeCounts(before: Map<string, [number, number]>, after: Map<string, [number, number]>): {
|
|
175
|
+
added: number;
|
|
176
|
+
removed: number;
|
|
177
|
+
files: string[];
|
|
178
|
+
} | undefined;
|
|
179
|
+
/** The commit checked out in a folder. */
|
|
180
|
+
export declare function headSha(path: string): Promise<string>;
|
|
181
|
+
/**
|
|
182
|
+
* Put an archived worker's uncommitted files back into its re-created worktree. They return
|
|
183
|
+
* unstaged. If the branch moved while the worker was archived the snapshot no longer fits, so
|
|
184
|
+
* it is left under its ref for a manual `git restore --source` and nothing is overwritten.
|
|
185
|
+
*/
|
|
186
|
+
export declare function restoreArchivedFiles(repoRoot: string, ws: Workspace, workerId: string): Promise<void>;
|
|
144
187
|
/** A review can inspect tracked changes without staging or reading unrelated untracked files. */
|
|
145
188
|
export declare function reviewDiff(ws: Workspace): Promise<string>;
|
|
146
189
|
//# sourceMappingURL=worktree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worktree.d.ts","sourceRoot":"","sources":["../../src/coding/worktree.ts"],"names":[],"mapp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AAC,CAuCpD;AAED;0DAC0D;AAC1D,wBAAsB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAM9G;AAED;gFACgF;AAChF,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAQrH;AAED;wFACwF;AACxF,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACrC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACnC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,SAAS,CAajE;AAED,0CAA0C;AAC1C,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE3D;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO3G;AAED,iGAAiG;AACjG,wBAAsB,UAAU,CAAC,EAAE,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAI/D"}
|
package/dist/coding/worktree.js
CHANGED
|
@@ -16,35 +16,30 @@ async function git(cwd, args, env) {
|
|
|
16
16
|
function slug(repoId) {
|
|
17
17
|
return repoId.replace(/[^A-Za-z0-9._-]/g, '-');
|
|
18
18
|
}
|
|
19
|
-
/** The stable branch name for a coding session.
|
|
20
|
-
* a
|
|
21
|
-
* subtask's id), so N workers on one repo hold N isolated branches.
|
|
19
|
+
/** The stable branch name for a coding session. The repository's main session is
|
|
20
|
+
* `lucid/<repo>`; a worktree gets `wt/<repo>/<workerId>`.
|
|
22
21
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* exclusive (the D/F conflict). Keeping workers under `fleet/` leaves the bare
|
|
27
|
-
* `lucid/<repo>` — the classic single session AND the fleet's integration target,
|
|
28
|
-
* the one branch a fleet PR opens from — untouched. `workerId` absent → the classic
|
|
29
|
-
* branch, byte-for-byte as before. */
|
|
22
|
+
* Worktrees live under their own `wt/` namespace instead of `lucid/<repo>/…` because a git
|
|
23
|
+
* ref can't be both a leaf and a directory, so `lucid/<repo>` and `lucid/<repo>/<workerId>`
|
|
24
|
+
* cannot both exist. */
|
|
30
25
|
export function sessionBranch(repoId, workerId) {
|
|
31
26
|
return workerId
|
|
32
|
-
? `
|
|
27
|
+
? `wt/${slug(repoId)}/${slug(workerId)}`
|
|
33
28
|
: `lucid/${slug(repoId)}`;
|
|
34
29
|
}
|
|
35
|
-
/** The stable
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* default root (tests point it at a temp dir); `workerId` absent → the classic path. */
|
|
30
|
+
/** The stable folder for a coding session (constant across turns, so `--resume` resolves).
|
|
31
|
+
* The main session lives at `<base>/<repo>`; a worktree at `<base>/wt/<repo>/<workerId>`, a
|
|
32
|
+
* sibling of it and never nested inside it (which would put a checkout within a checkout).
|
|
33
|
+
* `baseDir` overrides the default root (tests point it at a temp dir). */
|
|
40
34
|
export function sessionWorktreePath(repoId, baseDir = WORKTREE_BASE, workerId) {
|
|
41
35
|
return workerId
|
|
42
|
-
? join(baseDir, '
|
|
36
|
+
? join(baseDir, 'wt', slug(repoId), slug(workerId))
|
|
43
37
|
: join(baseDir, slug(repoId));
|
|
44
38
|
}
|
|
45
|
-
/** The branch checked out in `repoRoot`, or `HEAD` when detached. */
|
|
39
|
+
/** The branch checked out in `repoRoot`, including before its first commit, or `HEAD` when detached. */
|
|
46
40
|
export async function currentBranch(repoRoot) {
|
|
47
|
-
return (await git(repoRoot, ['
|
|
41
|
+
return (await git(repoRoot, ['symbolic-ref', '--quiet', '--short', 'HEAD'])
|
|
42
|
+
.catch(() => git(repoRoot, ['rev-parse', '--abbrev-ref', 'HEAD']))).trim();
|
|
48
43
|
}
|
|
49
44
|
export async function workspaceBranchExists(repoRoot, repoId, workerId) {
|
|
50
45
|
return git(repoRoot, ['show-ref', '--verify', `refs/heads/${sessionBranch(repoId, workerId)}`]).then(() => true, () => false);
|
|
@@ -276,6 +271,144 @@ export async function removeWorktree(repoRoot, ws, opts = {}) {
|
|
|
276
271
|
}
|
|
277
272
|
}
|
|
278
273
|
}
|
|
274
|
+
/** Where an archived worker's files are parked. Under `refs/lucid/`, so no branch or push sees it. */
|
|
275
|
+
export function archivedWorktreeRef(workerId) {
|
|
276
|
+
return `refs/lucid/archived/${slug(workerId)}`;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Free an archived worker's folder. Its full working state (tracked, staged and untracked,
|
|
280
|
+
* gitignored files excluded) is parked first as a commit on top of the worktree's HEAD, so
|
|
281
|
+
* uncommitted work survives. The branch stays. Throws before removing anything if the
|
|
282
|
+
* snapshot cannot be written.
|
|
283
|
+
*/
|
|
284
|
+
export async function archiveWorktree(repoRoot, ws, workerId, opts = {}) {
|
|
285
|
+
if (ws.mode === 'in-place' || resolve(ws.path) === resolve(repoRoot)) {
|
|
286
|
+
throw new Error(`refusing to remove the repo checkout itself: ${ws.path}`);
|
|
287
|
+
}
|
|
288
|
+
if (!existsSync(ws.path))
|
|
289
|
+
return;
|
|
290
|
+
const tree = await snapshotTree(ws);
|
|
291
|
+
const head = (await git(ws.path, ['rev-parse', 'HEAD'])).trim();
|
|
292
|
+
const sha = (await git(ws.path, ['commit-tree', tree, '-p', head, '-m', 'Archived worktree'])).trim();
|
|
293
|
+
await git(repoRoot, ['update-ref', archivedWorktreeRef(workerId), sha]);
|
|
294
|
+
await git(repoRoot, ['worktree', 'remove', '--force', ws.path]);
|
|
295
|
+
// The snapshot's parent is the branch tip, so the branch can be re-created from it on restore.
|
|
296
|
+
if (opts.deleteBranch)
|
|
297
|
+
await git(repoRoot, ['branch', '-D', ws.branch]).catch(() => { });
|
|
298
|
+
}
|
|
299
|
+
/** The commit an archived worker's branch pointed at, for re-creating a branch deleted on archive. */
|
|
300
|
+
export async function archivedHead(repoRoot, workerId) {
|
|
301
|
+
return git(repoRoot, ['rev-parse', '--verify', '--quiet', `${archivedWorktreeRef(workerId)}^`]).then((s) => s.trim() || undefined, () => undefined);
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* What deleting an archived worker would lose: commits on its branch (or, when the branch was
|
|
305
|
+
* deleted on archive, on the commit its snapshot was taken from) that are in none of `baseRefs`,
|
|
306
|
+
* the remote default branch or the branch's own remote copy, plus whether the snapshot holds
|
|
307
|
+
* files that were never committed.
|
|
308
|
+
*
|
|
309
|
+
* A commit whose change is already in the base under another sha does not count, so a branch
|
|
310
|
+
* that was rebase-merged reads as merged. A squash merge cannot be recognised this way and
|
|
311
|
+
* still counts. Remote refs are refreshed first when anything looks unmerged, since a pull
|
|
312
|
+
* request merged on GitHub is only visible after a fetch; offline, the last fetched state is used.
|
|
313
|
+
*/
|
|
314
|
+
export async function unmergedArchivedWork(repoRoot, workerId, branch, baseRefs = []) {
|
|
315
|
+
const sha = (ref) => git(repoRoot, ['rev-parse', '--verify', '--quiet', '--end-of-options', `${ref}^{commit}`]).then((s) => s.trim() || undefined, () => undefined);
|
|
316
|
+
const present = async (refs) => [...new Set((await Promise.all(refs.map((ref) => (ref ? sha(ref) : undefined)))).filter((s) => !!s))];
|
|
317
|
+
const snapshot = archivedWorktreeRef(workerId);
|
|
318
|
+
const trees = await git(repoRoot, ['rev-parse', '--verify', '--quiet', `${snapshot}^{tree}`])
|
|
319
|
+
.then(async (tree) => [tree.trim(), (await git(repoRoot, ['rev-parse', '--verify', '--quiet', `${snapshot}^^{tree}`])).trim()], () => []);
|
|
320
|
+
const uncommitted = trees.length === 2 && trees[0] !== trees[1];
|
|
321
|
+
const tips = await present([`refs/heads/${branch}`, `${snapshot}^`]);
|
|
322
|
+
if (!tips.length)
|
|
323
|
+
return { commits: 0, uncommitted };
|
|
324
|
+
const kept = async () => {
|
|
325
|
+
const remoteDefault = await git(repoRoot, ['symbolic-ref', '--quiet', '--short', 'refs/remotes/origin/HEAD']).then((s) => s.trim(), () => '');
|
|
326
|
+
const refs = await present([
|
|
327
|
+
...baseRefs.flatMap((ref) => (!ref || ref === 'HEAD' || ref.startsWith('origin/') ? [ref] : [`origin/${ref}`, ref])),
|
|
328
|
+
remoteDefault, remoteDefault && `refs/heads/${remoteDefault.replace(/^origin\//, '')}`,
|
|
329
|
+
`refs/remotes/origin/${branch}`, `${branch}@{upstream}`,
|
|
330
|
+
]);
|
|
331
|
+
// A repository with no remote and no configured base has only its own checkout to compare against.
|
|
332
|
+
return refs.length ? refs : present(['HEAD']);
|
|
333
|
+
};
|
|
334
|
+
const ahead = async (bases) => (await git(repoRoot, ['rev-list', '--no-merges', ...tips, '--not', ...bases])).split('\n').filter(Boolean);
|
|
335
|
+
let bases = await kept();
|
|
336
|
+
let commits = await ahead(bases);
|
|
337
|
+
if (commits.length) {
|
|
338
|
+
await exec('git', ['fetch', 'origin'], { cwd: repoRoot, timeout: 20_000 }).catch(() => { });
|
|
339
|
+
bases = await kept();
|
|
340
|
+
commits = await ahead(bases);
|
|
341
|
+
}
|
|
342
|
+
if (commits.length && bases[0]) {
|
|
343
|
+
const applied = new Set(commits);
|
|
344
|
+
for (const tip of tips) {
|
|
345
|
+
const fresh = await git(repoRoot, ['rev-list', '--no-merges', '--cherry-pick', '--right-only', `${bases[0]}...${tip}`]);
|
|
346
|
+
for (const commit of fresh.split('\n'))
|
|
347
|
+
applied.delete(commit);
|
|
348
|
+
}
|
|
349
|
+
commits = commits.filter((commit) => !applied.has(commit));
|
|
350
|
+
}
|
|
351
|
+
return { commits: commits.length, uncommitted };
|
|
352
|
+
}
|
|
353
|
+
/** Remove what an archived worker left in the repository: its local branch, if it still has one,
|
|
354
|
+
* and its snapshot. The remote branch is not touched. */
|
|
355
|
+
export async function deleteArchivedWorktree(repoRoot, workerId, branch) {
|
|
356
|
+
// A folder removed by hand still holds its branch until its worktree entry is pruned.
|
|
357
|
+
await git(repoRoot, ['worktree', 'prune']).catch(() => { });
|
|
358
|
+
const exists = await git(repoRoot, ['show-ref', '--verify', `refs/heads/${branch}`]).then(() => true, () => false);
|
|
359
|
+
if (exists)
|
|
360
|
+
await git(repoRoot, ['branch', '-D', '--end-of-options', branch]);
|
|
361
|
+
await git(repoRoot, ['update-ref', '-d', archivedWorktreeRef(workerId)]);
|
|
362
|
+
}
|
|
363
|
+
/** Per-file added and removed line counts for everything in a folder that differs from `base`,
|
|
364
|
+
* committed or not. Tracked files only; a binary file counts as zero lines. */
|
|
365
|
+
export async function numstatSince(path, base) {
|
|
366
|
+
const out = await git(path, ['diff', '--numstat', '-z', base]);
|
|
367
|
+
const stats = new Map();
|
|
368
|
+
for (const row of out.split('\0')) {
|
|
369
|
+
const [added, removed, file] = row.split('\t');
|
|
370
|
+
if (file)
|
|
371
|
+
stats.set(file, [Number(added) || 0, Number(removed) || 0]);
|
|
372
|
+
}
|
|
373
|
+
return stats;
|
|
374
|
+
}
|
|
375
|
+
/** What changed between two readings of {@link numstatSince} taken against the same base: the
|
|
376
|
+
* turn's own work, with whatever was already uncommitted when it started taken out. */
|
|
377
|
+
export function turnChangeCounts(before, after) {
|
|
378
|
+
let added = 0;
|
|
379
|
+
let removed = 0;
|
|
380
|
+
const files = [];
|
|
381
|
+
for (const file of new Set([...before.keys(), ...after.keys()])) {
|
|
382
|
+
const [a0, r0] = before.get(file) ?? [0, 0];
|
|
383
|
+
const [a1, r1] = after.get(file) ?? [0, 0];
|
|
384
|
+
if (a0 === a1 && r0 === r1)
|
|
385
|
+
continue;
|
|
386
|
+
added += Math.max(0, a1 - a0);
|
|
387
|
+
removed += Math.max(0, r1 - r0);
|
|
388
|
+
if (files.length < 40)
|
|
389
|
+
files.push(file);
|
|
390
|
+
}
|
|
391
|
+
return files.length ? { added, removed, files } : undefined;
|
|
392
|
+
}
|
|
393
|
+
/** The commit checked out in a folder. */
|
|
394
|
+
export async function headSha(path) {
|
|
395
|
+
return (await git(path, ['rev-parse', 'HEAD'])).trim();
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Put an archived worker's uncommitted files back into its re-created worktree. They return
|
|
399
|
+
* unstaged. If the branch moved while the worker was archived the snapshot no longer fits, so
|
|
400
|
+
* it is left under its ref for a manual `git restore --source` and nothing is overwritten.
|
|
401
|
+
*/
|
|
402
|
+
export async function restoreArchivedFiles(repoRoot, ws, workerId) {
|
|
403
|
+
const ref = archivedWorktreeRef(workerId);
|
|
404
|
+
const parent = await git(repoRoot, ['rev-parse', '--verify', '--quiet', `${ref}^`]).then((s) => s.trim(), () => '');
|
|
405
|
+
if (!parent)
|
|
406
|
+
return;
|
|
407
|
+
if (parent !== (await git(ws.path, ['rev-parse', 'HEAD'])).trim())
|
|
408
|
+
return;
|
|
409
|
+
await git(ws.path, ['restore', `--source=${ref}`, '--worktree', '--', '.']);
|
|
410
|
+
await git(repoRoot, ['update-ref', '-d', ref]);
|
|
411
|
+
}
|
|
279
412
|
/** A review can inspect tracked changes without staging or reading unrelated untracked files. */
|
|
280
413
|
export async function reviewDiff(ws) {
|
|
281
414
|
const diff = await git(ws.path, ['diff', '--no-ext-diff', '--no-textconv', 'HEAD', '--']);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The files the copy list matches in the repository right now. */
|
|
2
|
+
export declare function matchedFiles(repoRoot: string, include: string[]): string[];
|
|
3
|
+
/** Copy the repository's listed files into the worktree. A file already there is never overwritten. */
|
|
4
|
+
export declare function copyIncludedFiles(repoRoot: string, worktree: string, include: string[]): string[];
|
|
5
|
+
/** Run one of the repository's commands (setup or archive) in the worktree. */
|
|
6
|
+
export declare function runSetupScript(repoRoot: string, worktree: string, name: string, setup: string, port?: number, signal?: AbortSignal): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=worktreeSetup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktreeSetup.d.ts","sourceRoot":"","sources":["../../src/coding/worktreeSetup.ts"],"names":[],"mappings":"AAoBA,mEAAmE;AACnE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAE1E;AAED,uGAAuG;AACvG,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAUjG;AAED,+EAA+E;AAC/E,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAiCxJ"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
const SETUP_TIMEOUT_MS = 15 * 60 * 1000;
|
|
5
|
+
/** Wildcards are honoured in the file name only: `.env*` and `apps/api/.env.*` work, `**` does not. */
|
|
6
|
+
function matches(repoRoot, pattern) {
|
|
7
|
+
const clean = posix.normalize(pattern);
|
|
8
|
+
if (clean.startsWith('..') || clean.startsWith('/'))
|
|
9
|
+
return [];
|
|
10
|
+
const dir = posix.dirname(clean);
|
|
11
|
+
if (/[*?]/.test(dir))
|
|
12
|
+
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))
|
|
16
|
+
return [];
|
|
17
|
+
return readdirSync(from)
|
|
18
|
+
.filter((entry) => name.test(entry) && statSync(join(from, entry)).isFile())
|
|
19
|
+
.map((entry) => posix.join(dir, entry));
|
|
20
|
+
}
|
|
21
|
+
/** The files the copy list matches in the repository right now. */
|
|
22
|
+
export function matchedFiles(repoRoot, include) {
|
|
23
|
+
return [...new Set(include.flatMap((pattern) => matches(repoRoot, pattern)))];
|
|
24
|
+
}
|
|
25
|
+
/** Copy the repository's listed files into the worktree. A file already there is never overwritten. */
|
|
26
|
+
export function copyIncludedFiles(repoRoot, worktree, include) {
|
|
27
|
+
const copied = [];
|
|
28
|
+
for (const file of matchedFiles(repoRoot, include)) {
|
|
29
|
+
const to = join(worktree, file);
|
|
30
|
+
if (existsSync(to))
|
|
31
|
+
continue;
|
|
32
|
+
mkdirSync(dirname(to), { recursive: true });
|
|
33
|
+
copyFileSync(join(repoRoot, file), to);
|
|
34
|
+
copied.push(file);
|
|
35
|
+
}
|
|
36
|
+
return copied;
|
|
37
|
+
}
|
|
38
|
+
/** Run one of the repository's commands (setup or archive) in the worktree. */
|
|
39
|
+
export async function runSetupScript(repoRoot, worktree, name, setup, port, signal) {
|
|
40
|
+
signal?.throwIfAborted();
|
|
41
|
+
await new Promise((resolve, reject) => {
|
|
42
|
+
const child = spawn('/bin/sh', ['-c', setup], {
|
|
43
|
+
cwd: worktree, detached: process.platform !== 'win32', stdio: ['ignore', 'pipe', 'pipe'],
|
|
44
|
+
env: { ...process.env, LUCIDITY_ROOT_PATH: repoRoot, LUCIDITY_WORKTREE_PATH: worktree, LUCIDITY_WORKTREE_NAME: name,
|
|
45
|
+
...(port ? { LUCIDITY_PORT: String(port) } : {}) },
|
|
46
|
+
});
|
|
47
|
+
let error, stderr = '', bytes = 0;
|
|
48
|
+
const stop = (reason) => {
|
|
49
|
+
error ??= new Error(reason);
|
|
50
|
+
// Stop the entire setup process group before a corrected destination can start.
|
|
51
|
+
try {
|
|
52
|
+
if (child.pid && process.platform !== 'win32')
|
|
53
|
+
process.kill(-child.pid, 'SIGKILL');
|
|
54
|
+
else
|
|
55
|
+
child.kill('SIGKILL');
|
|
56
|
+
}
|
|
57
|
+
catch { /* already exited */ }
|
|
58
|
+
};
|
|
59
|
+
const abort = () => stop('Workspace setup was stopped.');
|
|
60
|
+
const timer = setTimeout(() => stop('Workspace setup timed out.'), SETUP_TIMEOUT_MS);
|
|
61
|
+
signal?.addEventListener('abort', abort, { once: true });
|
|
62
|
+
if (signal?.aborted)
|
|
63
|
+
abort();
|
|
64
|
+
child.on('error', (failure) => { error = failure; });
|
|
65
|
+
child.stdout.on('data', (chunk) => { bytes += chunk.length; if (bytes > 32 * 1024 * 1024)
|
|
66
|
+
stop('Workspace setup output is too large.'); });
|
|
67
|
+
child.stderr.on('data', (chunk) => {
|
|
68
|
+
stderr = (stderr + chunk.toString()).slice(-4000);
|
|
69
|
+
bytes += chunk.length;
|
|
70
|
+
if (bytes > 32 * 1024 * 1024)
|
|
71
|
+
stop('Workspace setup output is too large.');
|
|
72
|
+
});
|
|
73
|
+
child.on('close', (code) => {
|
|
74
|
+
clearTimeout(timer);
|
|
75
|
+
signal?.removeEventListener('abort', abort);
|
|
76
|
+
if (error || code !== 0)
|
|
77
|
+
reject(Object.assign(error ?? new Error(`Workspace setup exited with ${code}.`), { stderr }));
|
|
78
|
+
else
|
|
79
|
+
resolve();
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}
|
package/dist/config.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SessionRetention } from '@lucidity/runtime';
|
|
1
2
|
import { EFFORT_LEVELS, type AgentMode, type DaemonConfigView, type DaemonConfigPatch } from '@lucidity/shared';
|
|
2
3
|
import { type DeliveryChannel } from './delivery/index.js';
|
|
3
4
|
export { EFFORT_LEVELS };
|
|
@@ -46,12 +47,16 @@ export interface Capabilities {
|
|
|
46
47
|
automations?: boolean;
|
|
47
48
|
}
|
|
48
49
|
export interface DaemonConfig {
|
|
50
|
+
/** Idle provider process budgets, read at daemon startup. */
|
|
51
|
+
sessionRetention?: Partial<Record<'claude' | 'codex', SessionRetention>>;
|
|
49
52
|
/** Local recording transcription, independent of the chat/code providers. */
|
|
50
53
|
sttModel?: string;
|
|
51
54
|
/** Master switch for proactive jobs. Existing installations retain their behavior. */
|
|
52
55
|
scheduledWork?: boolean;
|
|
53
56
|
chatProvider?: 'claude' | 'codex';
|
|
54
57
|
codeProvider?: 'claude' | 'codex';
|
|
58
|
+
/** Compatibility field for older clients. Provider fallback is now automatic. */
|
|
59
|
+
backgroundFallback?: boolean;
|
|
55
60
|
/** Lucidity API key, `luc_…`. */
|
|
56
61
|
apiKey: string;
|
|
57
62
|
/** API base URL. Default: `http://localhost:3001`. */
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAUnF,OAAO,EAIL,aAAa,EACb,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,UAAU,QAA+B,CAAC;AACvD,eAAO,MAAM,WAAW,QAAkC,CA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,EAAE,CAmBb"}
|
package/dist/config.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { resolveSessionRetention } from '@lucidity/runtime';
|
|
1
2
|
import { homedir, hostname } from 'node:os';
|
|
2
3
|
import { join } from 'node:path';
|
|
3
4
|
import { existsSync, readFileSync, writeFileSync, chmodSync, statSync, } from 'node:fs';
|
|
@@ -24,9 +25,9 @@ const EXAMPLE = `{
|
|
|
24
25
|
"apiKey": "luc_xxx", // from Lucidity → Settings → API Key
|
|
25
26
|
"apiUrl": "http://localhost:3001",
|
|
26
27
|
"briefingTime": "08:00",
|
|
27
|
-
"chatModel": "
|
|
28
|
+
"chatModel": "default", // optional; provider default for Ask Lucid + voice
|
|
28
29
|
"chatEffort": "low", // optional; low | medium | high | xhigh | max (default low)
|
|
29
|
-
"codeModel": "
|
|
30
|
+
"codeModel": "default", // optional; provider default for coding + briefings; Activity follows the coding conversation
|
|
30
31
|
"codeEffort": "high", // optional; low | medium | high | xhigh | max (default high)
|
|
31
32
|
"timezone": "Asia/Kolkata", // optional; IANA name
|
|
32
33
|
"delivery": "macos", // optional; "macos" | "stdout"
|
|
@@ -195,6 +196,7 @@ export function loadConfig(configPath = CONFIG_PATH) {
|
|
|
195
196
|
if (!sttModel.success)
|
|
196
197
|
fail(`${configPath}: "sttModel" must be a speech model ID.`);
|
|
197
198
|
return {
|
|
199
|
+
sessionRetention: parseSessionRetention(obj['sessionRetention']),
|
|
198
200
|
sttModel: sttModel.data,
|
|
199
201
|
apiKey,
|
|
200
202
|
apiUrl,
|
|
@@ -203,6 +205,7 @@ export function loadConfig(configPath = CONFIG_PATH) {
|
|
|
203
205
|
briefingTime,
|
|
204
206
|
chatProvider,
|
|
205
207
|
codeProvider,
|
|
208
|
+
backgroundFallback: true,
|
|
206
209
|
chatModel,
|
|
207
210
|
chatEffort,
|
|
208
211
|
codeModel,
|
|
@@ -233,6 +236,7 @@ const EDITABLE_KEYS = [
|
|
|
233
236
|
'sttModel',
|
|
234
237
|
'chatProvider',
|
|
235
238
|
'codeProvider',
|
|
239
|
+
'backgroundFallback',
|
|
236
240
|
'chatModel',
|
|
237
241
|
'chatEffort',
|
|
238
242
|
'codeModel',
|
|
@@ -258,6 +262,7 @@ export function configView(config) {
|
|
|
258
262
|
sttModel: config.sttModel ?? DEFAULT_SPEECH_MODEL,
|
|
259
263
|
chatProvider: config.chatProvider ?? 'claude',
|
|
260
264
|
codeProvider: config.codeProvider ?? 'claude',
|
|
265
|
+
backgroundFallback: true,
|
|
261
266
|
chatModel: config.chatModel,
|
|
262
267
|
chatEffort: config.chatEffort,
|
|
263
268
|
codeModel: config.codeModel,
|
|
@@ -310,6 +315,7 @@ export function writeConfigPatch(configPath, patch) {
|
|
|
310
315
|
if (p[key] !== undefined)
|
|
311
316
|
raw[key] = p[key];
|
|
312
317
|
}
|
|
318
|
+
raw['backgroundFallback'] = true;
|
|
313
319
|
if (patch.capabilities) {
|
|
314
320
|
const cur = typeof raw['capabilities'] === 'object' && raw['capabilities'] !== null
|
|
315
321
|
? raw['capabilities']
|
|
@@ -351,7 +357,8 @@ export function persistNormalizedConfig(config, configPath = CONFIG_PATH) {
|
|
|
351
357
|
catch {
|
|
352
358
|
return false;
|
|
353
359
|
}
|
|
354
|
-
const stale = '
|
|
360
|
+
const stale = raw['backgroundFallback'] !== true ||
|
|
361
|
+
'model' in raw ||
|
|
355
362
|
'effort' in raw ||
|
|
356
363
|
raw['chatModel'] !== config.chatModel ||
|
|
357
364
|
raw['chatEffort'] !== config.chatEffort ||
|
|
@@ -360,6 +367,7 @@ export function persistNormalizedConfig(config, configPath = CONFIG_PATH) {
|
|
|
360
367
|
if (!stale)
|
|
361
368
|
return false;
|
|
362
369
|
raw['chatModel'] = config.chatModel;
|
|
370
|
+
raw['backgroundFallback'] = true;
|
|
363
371
|
raw['chatEffort'] = config.chatEffort;
|
|
364
372
|
raw['codeModel'] = config.codeModel;
|
|
365
373
|
raw['codeEffort'] = config.codeEffort;
|
|
@@ -431,6 +439,7 @@ export function applyPatchInMemory(config, patch) {
|
|
|
431
439
|
config.chatProvider = patch.chatProvider;
|
|
432
440
|
if (patch.codeProvider !== undefined)
|
|
433
441
|
config.codeProvider = patch.codeProvider;
|
|
442
|
+
config.backgroundFallback = true;
|
|
434
443
|
if (patch.chatModel !== undefined)
|
|
435
444
|
config.chatModel = patch.chatModel;
|
|
436
445
|
if (patch.chatEffort !== undefined)
|
|
@@ -597,3 +606,29 @@ function parseDay(value) {
|
|
|
597
606
|
}
|
|
598
607
|
return 0;
|
|
599
608
|
}
|
|
609
|
+
/** Keep malformed process budgets from silently disabling or expanding retention. */
|
|
610
|
+
function parseSessionRetention(value) {
|
|
611
|
+
if (value === undefined)
|
|
612
|
+
return;
|
|
613
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
614
|
+
throw new Error('sessionRetention must be an object keyed by claude or codex.');
|
|
615
|
+
const result = {};
|
|
616
|
+
for (const [provider, raw] of Object.entries(value)) {
|
|
617
|
+
if (provider !== 'claude' && provider !== 'codex')
|
|
618
|
+
throw new Error('sessionRetention supports only claude and codex.');
|
|
619
|
+
if (!raw || typeof raw !== 'object' || Array.isArray(raw) ||
|
|
620
|
+
Object.keys(raw).some((key) => key !== 'maxIdleSessions' && key !== 'idleTtlMs'))
|
|
621
|
+
throw new Error(`sessionRetention.${provider} must contain maxIdleSessions and/or idleTtlMs.`);
|
|
622
|
+
for (const key of ['maxIdleSessions', 'idleTtlMs']) {
|
|
623
|
+
if (key in raw && typeof raw[key] !== 'number')
|
|
624
|
+
throw new Error(`sessionRetention.${provider}.${key} must be a number.`);
|
|
625
|
+
}
|
|
626
|
+
try {
|
|
627
|
+
result[provider] = resolveSessionRetention(raw);
|
|
628
|
+
}
|
|
629
|
+
catch (error) {
|
|
630
|
+
throw new Error(`sessionRetention.${provider}: ${error.message}`);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
return result;
|
|
634
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"existingWorkspace.d.ts","sourceRoot":"","sources":["../../src/editor/existingWorkspace.ts"],"names":[],"mappings":"AAIA,2EAA2E;AAC3E,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAWrG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { realpath } from 'node:fs/promises';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { git } from './files.js';
|
|
4
|
+
/** Both locations must already be Git checkouts of the same repository. */
|
|
5
|
+
export async function existingWorkspace(repo, folder, branch) {
|
|
6
|
+
const [root, selected] = await Promise.all([realpath(repo), realpath(folder)]);
|
|
7
|
+
const top = await realpath((await git(selected, ['rev-parse', '--show-toplevel'])).trim());
|
|
8
|
+
if (top !== selected)
|
|
9
|
+
throw new Error('The saved folder is no longer a Git workspace root.');
|
|
10
|
+
const common = async (cwd) => realpath(path.resolve(cwd, (await git(cwd, ['rev-parse', '--git-common-dir'])).trim()));
|
|
11
|
+
if (await common(root) !== await common(selected))
|
|
12
|
+
throw new Error('The saved folder belongs to a different repository.');
|
|
13
|
+
const actual = (await git(selected, ['branch', '--show-current'])).trim() || 'detached';
|
|
14
|
+
if (actual !== branch)
|
|
15
|
+
throw new Error('The saved branch changed. Restore or review the original workspace before continuing.');
|
|
16
|
+
// Provider session stores can key by the spelling of cwd. Validate the real
|
|
17
|
+
// location, but retain the path the old host used (including macOS aliases).
|
|
18
|
+
return path.resolve(folder);
|
|
19
|
+
}
|