@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,180 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import type {
|
|
3
|
+
Options,
|
|
4
|
+
Query,
|
|
5
|
+
SDKMessage,
|
|
6
|
+
SDKUserMessage,
|
|
7
|
+
query,
|
|
8
|
+
} from '@anthropic-ai/claude-agent-sdk';
|
|
9
|
+
import { AsyncQueue } from './asyncQueue.js';
|
|
10
|
+
import type { ExecutorRunInput } from './types.js';
|
|
11
|
+
|
|
12
|
+
/** One SDK process, with approval and cancellation ownership rebound for each turn. */
|
|
13
|
+
export class ClaudeSession {
|
|
14
|
+
readonly incoming = new AsyncQueue<SDKUserMessage>();
|
|
15
|
+
readonly query: Query;
|
|
16
|
+
readonly controller = new AbortController();
|
|
17
|
+
pid?: number;
|
|
18
|
+
sessionId?: string;
|
|
19
|
+
totalCostUsd = 0;
|
|
20
|
+
private connected = true;
|
|
21
|
+
private closing?: Promise<void>;
|
|
22
|
+
private iterator?: AsyncIterator<SDKMessage, void>;
|
|
23
|
+
private ahead?: Promise<IteratorResult<SDKMessage, void>>;
|
|
24
|
+
private commands = new Set<string>();
|
|
25
|
+
private binding?: {
|
|
26
|
+
input: ExecutorRunInput;
|
|
27
|
+
signal: AbortSignal;
|
|
28
|
+
abort: () => void;
|
|
29
|
+
approve: Options['canUseTool'];
|
|
30
|
+
};
|
|
31
|
+
get isConnected(): boolean {
|
|
32
|
+
return this.connected && !this.controller.signal.aborted;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
constructor(
|
|
36
|
+
factory: typeof query,
|
|
37
|
+
options: Options,
|
|
38
|
+
readonly fingerprint: string,
|
|
39
|
+
input: ExecutorRunInput,
|
|
40
|
+
signal: AbortSignal,
|
|
41
|
+
) {
|
|
42
|
+
this.bind(input, signal, options.canUseTool);
|
|
43
|
+
this.query = factory({
|
|
44
|
+
prompt: this.incoming,
|
|
45
|
+
options: {
|
|
46
|
+
...options,
|
|
47
|
+
abortController: this.controller,
|
|
48
|
+
canUseTool: async (...args) => {
|
|
49
|
+
const owner = this.binding;
|
|
50
|
+
if (!owner || owner.signal.aborted || args[2].signal.aborted)
|
|
51
|
+
return { behavior: 'deny', message: 'Turn ended.' };
|
|
52
|
+
const answer = await owner.approve?.(...args);
|
|
53
|
+
return this.binding === owner &&
|
|
54
|
+
!owner.signal.aborted &&
|
|
55
|
+
!args[2].signal.aborted &&
|
|
56
|
+
answer
|
|
57
|
+
? answer
|
|
58
|
+
: { behavior: 'deny', message: 'Turn ended.' };
|
|
59
|
+
},
|
|
60
|
+
spawnClaudeCodeProcess: (options) => {
|
|
61
|
+
const child = spawn(options.command, options.args, {
|
|
62
|
+
cwd: options.cwd,
|
|
63
|
+
env: options.env,
|
|
64
|
+
signal: options.signal,
|
|
65
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
66
|
+
});
|
|
67
|
+
child.stderr.on('data', () => {});
|
|
68
|
+
child.once('close', () => {
|
|
69
|
+
this.connected = false;
|
|
70
|
+
});
|
|
71
|
+
child.once('error', () => {
|
|
72
|
+
this.connected = false;
|
|
73
|
+
});
|
|
74
|
+
this.pid = child.pid;
|
|
75
|
+
try {
|
|
76
|
+
this.binding?.input.onRecovery?.({ pid: child.pid });
|
|
77
|
+
} catch (error) {
|
|
78
|
+
child.kill('SIGKILL');
|
|
79
|
+
throw error;
|
|
80
|
+
}
|
|
81
|
+
return child;
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
bind(
|
|
88
|
+
input: ExecutorRunInput,
|
|
89
|
+
signal: AbortSignal,
|
|
90
|
+
approve: Options['canUseTool'],
|
|
91
|
+
): void {
|
|
92
|
+
if (this.binding)
|
|
93
|
+
throw new Error('Claude conversation already has an active turn.');
|
|
94
|
+
if (!this.isConnected) throw new Error('Claude conversation disconnected.');
|
|
95
|
+
this.commands.clear();
|
|
96
|
+
const abort = () => this.controller.abort();
|
|
97
|
+
this.binding = { input, signal, abort, approve };
|
|
98
|
+
signal.addEventListener('abort', abort, { once: true });
|
|
99
|
+
if (signal.aborted) abort();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
detach(): void {
|
|
103
|
+
const owner = this.binding;
|
|
104
|
+
owner?.signal.removeEventListener('abort', owner.abort);
|
|
105
|
+
this.binding = undefined;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
send(message: SDKUserMessage): void {
|
|
109
|
+
if (message.uuid) this.commands.add(message.uuid);
|
|
110
|
+
this.incoming.push(message);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
private completedCommand(event: SDKMessage): boolean {
|
|
114
|
+
// The bundled CLI emits these receipts after result; this SDK's union omits them.
|
|
115
|
+
const receipt = event as unknown as { type?: unknown; state?: unknown; command_uuid?: unknown; session_id?: unknown };
|
|
116
|
+
if (receipt.type !== 'command_lifecycle' || receipt.state !== 'completed' ||
|
|
117
|
+
receipt.session_id !== this.sessionId || typeof receipt.command_uuid !== 'string' ||
|
|
118
|
+
!this.commands.has(receipt.command_uuid)) return false;
|
|
119
|
+
this.commands.delete(receipt.command_uuid);
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
private next(): Promise<IteratorResult<SDKMessage, void>> {
|
|
124
|
+
this.iterator ??= this.query[Symbol.asyncIterator]();
|
|
125
|
+
return this.iterator.next();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** Breaking a turn's iterator must not call return() on the SDK's conversation. */
|
|
129
|
+
async *events(): AsyncGenerator<SDKMessage> {
|
|
130
|
+
for (;;) {
|
|
131
|
+
const next = this.ahead ?? this.next();
|
|
132
|
+
this.ahead = undefined;
|
|
133
|
+
const event = await next;
|
|
134
|
+
if (event.done) {
|
|
135
|
+
this.connected = false;
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
if (!this.completedCommand(event.value)) yield event.value;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
idle(): void {
|
|
143
|
+
this.detach();
|
|
144
|
+
// Drain bookkeeping between turns. Unsolicited work must never leak into a later reply.
|
|
145
|
+
void this.watchIdle().catch(() => {
|
|
146
|
+
void this.close().catch(() => {});
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
private async watchIdle(): Promise<void> {
|
|
151
|
+
while (this.isConnected && !this.binding) {
|
|
152
|
+
const pending = (this.ahead ??= this.next());
|
|
153
|
+
const event = await pending;
|
|
154
|
+
if (this.binding) return; // The next turn now owns this read.
|
|
155
|
+
this.ahead = undefined;
|
|
156
|
+
if (event.done) {
|
|
157
|
+
await this.close();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (
|
|
161
|
+
this.completedCommand(event.value) || event.value.type === 'rate_limit_event' ||
|
|
162
|
+
(event.value.type === 'system' && event.value.subtype === 'status')
|
|
163
|
+
)
|
|
164
|
+
continue;
|
|
165
|
+
await this.close();
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
close(): Promise<void> {
|
|
170
|
+
if (this.closing) return this.closing;
|
|
171
|
+
this.connected = false;
|
|
172
|
+
this.detach();
|
|
173
|
+
this.incoming.end();
|
|
174
|
+
this.closing = Promise.resolve().then(async () => {
|
|
175
|
+
this.query.close();
|
|
176
|
+
await this.query.return();
|
|
177
|
+
});
|
|
178
|
+
return this.closing;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { reportSession, type SessionRetention, type SessionObserver } from './sessionRetention.js';
|
|
2
|
+
import { artifactFromToolResult } from '@lucidity/shared';
|
|
3
|
+
import { codexUsage } from './usage.js';
|
|
1
4
|
import {
|
|
2
5
|
parseAgentCommand,
|
|
3
6
|
findAgentCommand,
|
|
@@ -5,6 +8,7 @@ import {
|
|
|
5
8
|
} from '@lucidity/shared';
|
|
6
9
|
import { readFileSync } from 'node:fs';
|
|
7
10
|
import { randomUUID } from 'node:crypto';
|
|
11
|
+
import { dirname } from 'node:path';
|
|
8
12
|
import {
|
|
9
13
|
CodexRpc,
|
|
10
14
|
initializeCodex,
|
|
@@ -12,6 +16,7 @@ import {
|
|
|
12
16
|
type RpcMessage,
|
|
13
17
|
} from './codexRpc.js';
|
|
14
18
|
import { LiveTurns, abortError } from './liveTurns.js';
|
|
19
|
+
import { inheritsCodingIntegrations } from './integrations.js';
|
|
15
20
|
import {
|
|
16
21
|
CodexSessions,
|
|
17
22
|
codexBindingFingerprint,
|
|
@@ -23,6 +28,8 @@ import type {
|
|
|
23
28
|
ExecutorStreamEvent,
|
|
24
29
|
ExecutorModel,
|
|
25
30
|
ExecutorResult,
|
|
31
|
+
ProviderRunRef,
|
|
32
|
+
ProviderInspection,
|
|
26
33
|
} from './types.js';
|
|
27
34
|
import type { ThreadStartParams } from './codexProtocol/v2/ThreadStartParams.js';
|
|
28
35
|
import type { ThreadResumeParams } from './codexProtocol/v2/ThreadResumeParams.js';
|
|
@@ -34,6 +41,8 @@ import type { ReviewStartParams } from './codexProtocol/v2/ReviewStartParams.js'
|
|
|
34
41
|
import type { ThreadSetNameParams } from './codexProtocol/v2/ThreadSetNameParams.js';
|
|
35
42
|
import type { GetAccountRateLimitsResponse } from './codexProtocol/v2/GetAccountRateLimitsResponse.js';
|
|
36
43
|
import type { SkillsListResponse } from './codexProtocol/v2/SkillsListResponse.js';
|
|
44
|
+
import type { ThreadReadResponse } from './codexProtocol/v2/ThreadReadResponse.js';
|
|
45
|
+
import type { ThreadReadParams } from './codexProtocol/v2/ThreadReadParams.js';
|
|
37
46
|
|
|
38
47
|
// App-server does not persist an empty thread until its first turn. Keep a durable
|
|
39
48
|
// reset marker in Lucidity's provider session envelope until that turn starts.
|
|
@@ -53,18 +62,18 @@ function userInput(
|
|
|
53
62
|
];
|
|
54
63
|
}
|
|
55
64
|
|
|
56
|
-
/**
|
|
65
|
+
/** Keep coding integrations; isolate companion and scoped runs. */
|
|
57
66
|
export function codexRunConfig(
|
|
58
67
|
input: ExecutorRunInput,
|
|
59
68
|
inherited: Record<string, unknown>,
|
|
60
69
|
): NonNullable<ThreadStartParams['config']> {
|
|
70
|
+
const inheritIntegrations = inheritsCodingIntegrations(input);
|
|
61
71
|
const config: NonNullable<ThreadStartParams['config']> = {
|
|
62
72
|
'features.shell_tool': !!input.permissionMode && !input.noTools,
|
|
63
|
-
'features.apps': false,
|
|
73
|
+
...(!inheritIntegrations ? { 'features.apps': false, 'features.plugins': false } : {}),
|
|
64
74
|
'features.multi_agent': false,
|
|
65
75
|
'features.multi_agent_v2': false,
|
|
66
|
-
//
|
|
67
|
-
'features.plugins': false,
|
|
76
|
+
// These native capabilities still need their own Lucidity interaction support.
|
|
68
77
|
'features.browser_use': false,
|
|
69
78
|
'features.browser_use_external': false,
|
|
70
79
|
'features.browser_use_full_cdp_access': false,
|
|
@@ -83,7 +92,7 @@ export function codexRunConfig(
|
|
|
83
92
|
model_provider: 'openai',
|
|
84
93
|
};
|
|
85
94
|
// config/read expands optional fields to null; those cannot round-trip to TOML.
|
|
86
|
-
//
|
|
95
|
+
// Preserve coding server policy and transport, omitting absent optional fields.
|
|
87
96
|
const serversConfig: Record<
|
|
88
97
|
string,
|
|
89
98
|
{
|
|
@@ -95,8 +104,9 @@ export function codexRunConfig(
|
|
|
95
104
|
for (const [name, raw] of Object.entries(
|
|
96
105
|
(inherited.mcp_servers ?? {}) as Record<string, Record<string, unknown>>,
|
|
97
106
|
)) {
|
|
98
|
-
serversConfig[name] =
|
|
99
|
-
|
|
107
|
+
serversConfig[name] = inheritIntegrations
|
|
108
|
+
? JSON.parse(JSON.stringify(raw, (_key, value) => value ?? undefined))
|
|
109
|
+
: typeof raw.url === 'string'
|
|
100
110
|
? { url: raw.url, enabled: false }
|
|
101
111
|
: {
|
|
102
112
|
command:
|
|
@@ -109,13 +119,28 @@ export function codexRunConfig(
|
|
|
109
119
|
config.web_search = input.readTools.includes('WebSearch')
|
|
110
120
|
? 'live'
|
|
111
121
|
: 'disabled';
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
name
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
if (!inheritIntegrations) {
|
|
123
|
+
config.plugins = Object.fromEntries(
|
|
124
|
+
Object.keys((inherited.plugins ?? {}) as object).map((name) => [
|
|
125
|
+
name,
|
|
126
|
+
{ enabled: false },
|
|
127
|
+
]),
|
|
128
|
+
);
|
|
129
|
+
}
|
|
118
130
|
if (input.noTools) config.web_search = 'disabled';
|
|
131
|
+
if (input.isolateContext) {
|
|
132
|
+
if (input.resume || input.permissionMode || input.readTools?.length || input.allowedTools?.length || (!input.noTools && !input.mcp))
|
|
133
|
+
throw new Error('Isolated context requires a fresh session with only explicit MCP tools.');
|
|
134
|
+
Object.assign(config, {
|
|
135
|
+
web_search: 'disabled',
|
|
136
|
+
project_doc_max_bytes: 0,
|
|
137
|
+
'memories.use_memories': false,
|
|
138
|
+
'memories.generate_memories': false,
|
|
139
|
+
'tools.view_image': false,
|
|
140
|
+
'features.apply_patch_freeform': false,
|
|
141
|
+
developer_instructions: input.systemPrompt ?? 'Answer using only the supplied context.',
|
|
142
|
+
});
|
|
143
|
+
}
|
|
119
144
|
if (input.mcp && !input.noTools) {
|
|
120
145
|
const servers = JSON.parse(readFileSync(input.mcp.configPath, 'utf8'))
|
|
121
146
|
.mcpServers as Record<
|
|
@@ -161,21 +186,59 @@ export function codexRunConfig(
|
|
|
161
186
|
export class CodexExecutor implements AgentExecutor {
|
|
162
187
|
readonly name = 'codex-app-server';
|
|
163
188
|
readonly strictResume = true;
|
|
189
|
+
readonly recoveryCapability = 'native-turn';
|
|
164
190
|
private readonly turns = new LiveTurns();
|
|
165
|
-
private readonly sessions
|
|
191
|
+
private readonly sessions: CodexSessions;
|
|
166
192
|
constructor(
|
|
167
193
|
private readonly options: {
|
|
168
194
|
command?: string;
|
|
169
|
-
|
|
195
|
+
sessionRetention?: SessionRetention;
|
|
196
|
+
onSessionEvent?: SessionObserver;
|
|
197
|
+
connect?: (cwd?: string, env?: Record<string, string>) => CodexConnection;
|
|
170
198
|
} = {},
|
|
171
|
-
) {
|
|
172
|
-
|
|
199
|
+
) {
|
|
200
|
+
this.sessions = new CodexSessions(options.sessionRetention?.maxIdleSessions, options.sessionRetention?.idleTtlMs, options.onSessionEvent);
|
|
201
|
+
}
|
|
202
|
+
private connect(cwd?: string, env?: Record<string, string>) {
|
|
173
203
|
return (
|
|
174
|
-
this.options.connect?.(cwd) ?? new CodexRpc(this.options.command, cwd)
|
|
204
|
+
this.options.connect?.(cwd, env) ?? new CodexRpc(this.options.command, cwd, env)
|
|
175
205
|
);
|
|
176
206
|
}
|
|
177
|
-
|
|
178
|
-
|
|
207
|
+
async inspect(ref: ProviderRunRef, options: { cwd?: string; timeoutMs?: number } = {}): Promise<ProviderInspection> {
|
|
208
|
+
if (!ref.sessionId || !ref.turnId || ref.inspectionDisabled)
|
|
209
|
+
return { status: 'unsupported', reason: 'No inspectable native Codex turn was recorded.' };
|
|
210
|
+
const rpc = this.connect(options.cwd);
|
|
211
|
+
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
212
|
+
try {
|
|
213
|
+
return await Promise.race([
|
|
214
|
+
(async (): Promise<ProviderInspection> => {
|
|
215
|
+
await initializeCodex(rpc);
|
|
216
|
+
const { thread } = await rpc.request<ThreadReadResponse>('thread/read', {
|
|
217
|
+
threadId: ref.sessionId!, includeTurns: true,
|
|
218
|
+
} satisfies ThreadReadParams);
|
|
219
|
+
if (thread.id !== ref.sessionId || thread.status?.type === 'active')
|
|
220
|
+
return { status: 'unknown', reason: 'Codex history does not identify an inactive matching thread.' };
|
|
221
|
+
const turn = thread.turns?.find((turn) => turn.id === ref.turnId);
|
|
222
|
+
if (!turn || turn.status !== 'completed' || turn.itemsView !== 'full')
|
|
223
|
+
return { status: 'unknown', reason: 'Codex has no complete result for this exact turn.' };
|
|
224
|
+
const answer = [...turn.items].reverse().find((item) => item.type === 'agentMessage' && item.phase !== 'commentary');
|
|
225
|
+
if (!answer || answer.type !== 'agentMessage' || typeof answer.text !== 'string')
|
|
226
|
+
return { status: 'unknown', reason: 'The completed turn has no retained final answer.' };
|
|
227
|
+
return { status: 'completed', result: { text: answer.text.trim(), sessionId: thread.id } };
|
|
228
|
+
})(),
|
|
229
|
+
new Promise<ProviderInspection>((resolve) => {
|
|
230
|
+
timer = setTimeout(() => resolve({ status: 'unknown', reason: 'Codex history inspection timed out.' }), Math.min(options.timeoutMs ?? 10_000, 30_000));
|
|
231
|
+
}),
|
|
232
|
+
]);
|
|
233
|
+
} catch {
|
|
234
|
+
return { status: 'unknown', reason: 'Codex history is unavailable or unreadable with the installed runtime.' };
|
|
235
|
+
} finally {
|
|
236
|
+
clearTimeout(timer);
|
|
237
|
+
await rpc.close();
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
steer(requestId: string, text: string, images?: ExecutorRunInput['images']) {
|
|
241
|
+
return this.turns.steer(requestId, text, images);
|
|
179
242
|
}
|
|
180
243
|
async interrupt(requestId: string) {
|
|
181
244
|
return this.turns.interrupt(requestId);
|
|
@@ -184,6 +247,25 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
184
247
|
await Promise.all([this.turns.dispose(), this.sessions.dispose()]);
|
|
185
248
|
}
|
|
186
249
|
|
|
250
|
+
async usage() {
|
|
251
|
+
const rpc = this.connect();
|
|
252
|
+
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
253
|
+
try {
|
|
254
|
+
return await Promise.race([
|
|
255
|
+
(async () => {
|
|
256
|
+
await initializeCodex(rpc);
|
|
257
|
+
return codexUsage(await rpc.request('account/rateLimits/read', {}));
|
|
258
|
+
})(),
|
|
259
|
+
new Promise<never>((_, reject) => {
|
|
260
|
+
timer = setTimeout(() => reject(new Error('Codex usage is unavailable.')), 15_000);
|
|
261
|
+
}),
|
|
262
|
+
]);
|
|
263
|
+
} finally {
|
|
264
|
+
clearTimeout(timer);
|
|
265
|
+
await rpc.close();
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
187
269
|
async models(): Promise<ExecutorModel[]> {
|
|
188
270
|
const rpc = this.connect();
|
|
189
271
|
try {
|
|
@@ -216,6 +298,47 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
216
298
|
}
|
|
217
299
|
}
|
|
218
300
|
|
|
301
|
+
async mcpStatus(input: Pick<ExecutorRunInput, 'cwd' | 'permissionMode' | 'mcp'> = {}): Promise<import('@lucidity/shared').AgentMcpServer[]> {
|
|
302
|
+
const rpc = this.connect(input.cwd);
|
|
303
|
+
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
304
|
+
try {
|
|
305
|
+
return await Promise.race([
|
|
306
|
+
(async () => {
|
|
307
|
+
await initializeCodex(rpc);
|
|
308
|
+
const inherited = await rpc.request<{ config: Record<string, unknown> }>('config/read', { includeLayers: false, cwd: input.cwd });
|
|
309
|
+
// An ephemeral thread loads the same integrations without sending a prompt or changing the user's session.
|
|
310
|
+
const { thread } = await rpc.request<{ thread: { id: string } }>('thread/start', {
|
|
311
|
+
ephemeral: true, cwd: input.cwd, approvalPolicy: 'never', sandbox: 'read-only',
|
|
312
|
+
config: codexRunConfig({ ...input, userPrompt: '' }, inherited.config),
|
|
313
|
+
});
|
|
314
|
+
const servers: import('@lucidity/shared').AgentMcpServer[] = [];
|
|
315
|
+
let cursor: string | null = null;
|
|
316
|
+
const seen = new Set<string>();
|
|
317
|
+
do {
|
|
318
|
+
const page: { data: Array<{ name: string; runtimeStatus?: string | null; tools?: Record<string, unknown>; toolsError?: string | null; authStatus?: string }>; nextCursor: string | null } =
|
|
319
|
+
await rpc.request('mcpServerStatus/list', { threadId: thread.id, detail: 'toolsAndAuthOnly', cursor, limit: 100 });
|
|
320
|
+
for (const server of page.data) {
|
|
321
|
+
const status = server.runtimeStatus;
|
|
322
|
+
servers.push({ name: server.name.slice(0, 200),
|
|
323
|
+
status: status === 'connected' ? 'connected'
|
|
324
|
+
: status === 'authenticationRequired' || server.authStatus === 'notLoggedIn' ? 'needs-auth'
|
|
325
|
+
: status === 'disabled' ? 'disabled'
|
|
326
|
+
: status === 'failed' || status === 'cancelled' || server.toolsError ? 'failed'
|
|
327
|
+
: status === 'starting' || status === 'notStarted' ? 'pending' : 'unknown',
|
|
328
|
+
...(server.tools && !server.toolsError ? { toolCount: Object.keys(server.tools).length } : {}),
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
cursor = page.nextCursor;
|
|
332
|
+
if (cursor && (seen.has(cursor) || servers.length >= 1000)) throw new Error('MCP discovery returned too many results.');
|
|
333
|
+
if (cursor) seen.add(cursor);
|
|
334
|
+
} while (cursor);
|
|
335
|
+
return servers;
|
|
336
|
+
})(),
|
|
337
|
+
new Promise<never>((_, reject) => { timer = setTimeout(() => reject(new Error('MCP discovery timed out.')), 20_000); }),
|
|
338
|
+
]);
|
|
339
|
+
} finally { clearTimeout(timer); await rpc.close(); }
|
|
340
|
+
}
|
|
341
|
+
|
|
219
342
|
async commands(
|
|
220
343
|
input: Pick<ExecutorRunInput, 'cwd' | 'permissionMode'> = {},
|
|
221
344
|
): Promise<AgentCommandOption[]> {
|
|
@@ -323,7 +446,7 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
323
446
|
let thread: CodexThread | undefined;
|
|
324
447
|
let fingerprint = '';
|
|
325
448
|
let reusable = false;
|
|
326
|
-
const owner = this.turns.open(input, async (text) => {
|
|
449
|
+
const owner = this.turns.open(input, async (text, images) => {
|
|
327
450
|
if (command)
|
|
328
451
|
throw new Error(
|
|
329
452
|
'Wait for the command to finish before sending a message.',
|
|
@@ -333,7 +456,7 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
333
456
|
const params: TurnSteerParams = {
|
|
334
457
|
threadId,
|
|
335
458
|
expectedTurnId: turnId,
|
|
336
|
-
input: userInput({ userPrompt: text }),
|
|
459
|
+
input: userInput({ userPrompt: text, images }),
|
|
337
460
|
};
|
|
338
461
|
await rpc.request('turn/steer', params);
|
|
339
462
|
});
|
|
@@ -393,8 +516,10 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
393
516
|
};
|
|
394
517
|
try {
|
|
395
518
|
owner.check();
|
|
519
|
+
const setupStarted = performance.now();
|
|
396
520
|
const pooled = await this.sessions.take(input.resume);
|
|
397
|
-
rpc = pooled?.rpc ?? this.connect(input.cwd);
|
|
521
|
+
rpc = pooled?.rpc ?? this.connect(input.cwd, input.env);
|
|
522
|
+
input.onRecovery?.({ pid: rpc.pid, inspectionDisabled: !!command });
|
|
398
523
|
rpc.onRequest = onRequest;
|
|
399
524
|
owner.check();
|
|
400
525
|
if (!pooled) await initializeCodex(rpc);
|
|
@@ -413,6 +538,7 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
413
538
|
{ includeLayers: false, cwd: input.cwd },
|
|
414
539
|
);
|
|
415
540
|
const params: ThreadStartParams = {
|
|
541
|
+
...(input.isolateContext ? { ephemeral: true, baseInstructions: 'You are Lucid. Use the supplied context and explicitly connected tools to fulfill the invoking user\'s request.' } : {}),
|
|
416
542
|
cwd: input.cwd,
|
|
417
543
|
model: input.model,
|
|
418
544
|
modelProvider: 'openai',
|
|
@@ -435,13 +561,21 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
435
561
|
developerInstructions: input.systemPrompt,
|
|
436
562
|
config: codexRunConfig(input, inherited.config),
|
|
437
563
|
};
|
|
438
|
-
|
|
564
|
+
if (input.isolateContext) {
|
|
565
|
+
const catalog = await rpc.request<SkillsListResponse>('skills/list', { cwds: [input.cwd], forceReload: true });
|
|
566
|
+
params.config!['skills.config'] = catalog.data.flatMap((entry) => entry.skills.map((skill) => ({
|
|
567
|
+
path: dirname(skill.path), enabled: false,
|
|
568
|
+
})));
|
|
569
|
+
}
|
|
570
|
+
fingerprint = codexBindingFingerprint({ params, env: input.env });
|
|
439
571
|
if (pooled && pooled.fingerprint !== fingerprint) {
|
|
440
572
|
// Permissions, MCP tools, model, cwd or instructions changed. A new transport
|
|
441
573
|
// resumes only after the old owner has fully exited.
|
|
442
574
|
await rpc.close();
|
|
575
|
+
reportSession(this.options.onSessionEvent, { action: 'closed', sessionId: input.resume, reason: 'configuration' });
|
|
443
576
|
owner.check();
|
|
444
|
-
rpc = this.connect(input.cwd);
|
|
577
|
+
rpc = this.connect(input.cwd, input.env);
|
|
578
|
+
input.onRecovery?.({ pid: rpc.pid });
|
|
445
579
|
rpc.onRequest = onRequest;
|
|
446
580
|
await initializeCodex(rpc);
|
|
447
581
|
}
|
|
@@ -455,6 +589,20 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
455
589
|
} satisfies ThreadResumeParams)
|
|
456
590
|
: await rpc.request<CodexThread>('thread/start', params);
|
|
457
591
|
threadId = thread.thread.id;
|
|
592
|
+
reportSession(this.options.onSessionEvent, {
|
|
593
|
+
action: pooled?.fingerprint === fingerprint ? 'reused' : input.resume && !isEmptySession(input.resume) ? 'resumed' : 'started',
|
|
594
|
+
sessionId: threadId, durationMs: Math.round(performance.now() - setupStarted), requestId: input.requestId,
|
|
595
|
+
});
|
|
596
|
+
input.onRecovery?.({ sessionId: threadId });
|
|
597
|
+
const retained = pooled?.fingerprint === fingerprint;
|
|
598
|
+
// A retained thread object predates this turn and may no longer describe its settings.
|
|
599
|
+
const reportedModel = retained ? null : thread.model ?? null;
|
|
600
|
+
const reportedEffort = retained || input.effort ? null : thread.reasoningEffort ?? null;
|
|
601
|
+
input.onExecutionSettings?.({ stage: 'runtime-confirmed', sessionId: threadId,
|
|
602
|
+
evidence: retained ? 'retained-connection-no-new-settings-response' : 'thread-start-or-resume-response',
|
|
603
|
+
settings: { provider: 'codex', model: reportedModel, effort: reportedEffort,
|
|
604
|
+
provenance: { provider: 'provider-response', model: reportedModel ? 'provider-response' : 'not-reported',
|
|
605
|
+
effort: input.effort ? 'turn-override-not-echoed' : reportedEffort ? 'provider-response' : 'not-reported' } } });
|
|
458
606
|
const sessionId =
|
|
459
607
|
isEmptySession(input.resume) &&
|
|
460
608
|
command &&
|
|
@@ -554,6 +702,7 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
554
702
|
);
|
|
555
703
|
turnId = turn.turn.id;
|
|
556
704
|
}
|
|
705
|
+
if (turnId) input.onRecovery?.({ turnId });
|
|
557
706
|
let finalText = '';
|
|
558
707
|
let streamedText = '';
|
|
559
708
|
for await (const event of rpc.events) {
|
|
@@ -576,12 +725,15 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
576
725
|
event.method === 'item/completed'
|
|
577
726
|
) {
|
|
578
727
|
const item = p.item as {
|
|
728
|
+
id?: string;
|
|
729
|
+
status?: string;
|
|
579
730
|
type: string;
|
|
580
731
|
text?: string;
|
|
581
732
|
phase?: string;
|
|
582
733
|
tool?: string;
|
|
583
734
|
server?: string;
|
|
584
735
|
review?: string;
|
|
736
|
+
result?: { content?: unknown; structuredContent?: unknown };
|
|
585
737
|
};
|
|
586
738
|
if (
|
|
587
739
|
item.type === 'exitedReviewMode' &&
|
|
@@ -594,6 +746,11 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
594
746
|
item.phase !== 'commentary'
|
|
595
747
|
)
|
|
596
748
|
finalText = item.text ?? finalText;
|
|
749
|
+
if (event.method === 'item/completed' && item.type === 'mcpToolCall' &&
|
|
750
|
+
item.server === 'lucidity' && item.tool === 'attach_file' && item.status === 'completed') {
|
|
751
|
+
const artifact = artifactFromToolResult(item.result?.structuredContent) ?? artifactFromToolResult(item.result?.content);
|
|
752
|
+
if (artifact) yield { type: 'artifact', artifact };
|
|
753
|
+
}
|
|
597
754
|
const name =
|
|
598
755
|
item.type === 'commandExecution'
|
|
599
756
|
? 'Shell'
|
|
@@ -610,10 +767,14 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
610
767
|
: item.type === 'dynamicToolCall'
|
|
611
768
|
? (item.tool ?? 'Dynamic tool')
|
|
612
769
|
: undefined;
|
|
770
|
+
if (item.type === 'contextCompaction')
|
|
771
|
+
yield { type: 'compaction', phase: event.method === 'item/started' ? 'start' : 'end' };
|
|
613
772
|
if (name)
|
|
614
773
|
yield {
|
|
615
774
|
type: 'tool_call',
|
|
616
775
|
name,
|
|
776
|
+
...(item.id ? { itemId: item.id } : {}),
|
|
777
|
+
...(item.status ? { outcome: item.status } : {}),
|
|
617
778
|
phase: event.method === 'item/started' ? 'start' : 'end',
|
|
618
779
|
};
|
|
619
780
|
} else if (event.method === 'turn/completed') {
|
|
@@ -658,7 +819,7 @@ export class CodexExecutor implements AgentExecutor {
|
|
|
658
819
|
ended = true;
|
|
659
820
|
owner.controller.signal.removeEventListener('abort', abort);
|
|
660
821
|
try {
|
|
661
|
-
if (rpc && reusable && thread && !owner.controller.signal.aborted)
|
|
822
|
+
if (rpc && reusable && thread && !input.isolateContext && !owner.controller.signal.aborted)
|
|
662
823
|
await this.sessions.keep({ rpc, thread, fingerprint });
|
|
663
824
|
else await rpc?.close();
|
|
664
825
|
} finally {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
export type ImageGenerationFailure = { "type": "usageLimitExceeded", limitId: string, resetsAt: number | null, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { AbsolutePathBuf } from "./AbsolutePathBuf.js";
|
|
5
|
+
import type { ImageGenerationFailure } from "./ImageGenerationFailure.js";
|
|
6
|
+
|
|
7
|
+
export type ImageGenerationItem = { id: string, status: string, revisedPrompt: string | null, result: string, transparentBackground?: boolean, failure: ImageGenerationFailure | null, savedPath?: AbsolutePathBuf, };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A UTF-8 path for preserving raw path compatibility at the app-server API
|
|
7
|
+
* boundary while Codex migrates to [`PathUri`].
|
|
8
|
+
*
|
|
9
|
+
* Supports storing arbitrary strings read from the API and converting to and
|
|
10
|
+
* from [`PathUri`] using an explicitly selected native path convention.
|
|
11
|
+
*
|
|
12
|
+
* When converting from [`PathUri`], "native" refers to the supplied
|
|
13
|
+
* [`PathConvention`], which may be foreign to the operating system running
|
|
14
|
+
* this process. The inner string is private so path-producing code must use a
|
|
15
|
+
* path conversion method instead of bypassing the intended conversion
|
|
16
|
+
* boundary. Non-UTF-8 paths are converted to UTF-8 lossily because this API
|
|
17
|
+
* value is serialized as a JSON string.
|
|
18
|
+
*
|
|
19
|
+
* Deserialization and [`Self::from_string`] accept any UTF-8 string without
|
|
20
|
+
* interpreting or validating it. Use [`Self::from_string`] when a caller
|
|
21
|
+
* already owns legacy app-server path text and needs to preserve its wire
|
|
22
|
+
* spelling; use [`Self::from_path`], [`Self::from_abs_path`], or
|
|
23
|
+
* [`Self::from_path_uri`] when converting an actual path value. Relative
|
|
24
|
+
* path text remains valid until an operation such as [`Self::to_path_uri`]
|
|
25
|
+
* requires an absolute path.
|
|
26
|
+
*/
|
|
27
|
+
export type LegacyAppPathString = string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Classifies an assistant message as interim commentary or final answer text.
|
|
7
|
+
*
|
|
8
|
+
* Providers do not emit this consistently, so callers must treat `None` as
|
|
9
|
+
* "phase unknown" and keep compatibility behavior for legacy models.
|
|
10
|
+
*/
|
|
11
|
+
export type MessagePhase = "commentary" | "final_answer";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Display item emitted by the interruptible `clock.sleep` tool.
|
|
7
|
+
*/
|
|
8
|
+
export type SleepItem = { id: string, durationMs: number, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
import type { AgentPath } from "./AgentPath.js";
|
|
5
|
+
import type { ThreadId } from "./ThreadId.js";
|
|
6
|
+
|
|
7
|
+
export type SubAgentSource = "review" | "compact" | { "thread_spawn": { parent_thread_id: ThreadId, depth: number, agent_path: AgentPath | null, agent_nickname: string | null, agent_role: string | null, } } | "memory_consolidation" | { "other": string };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
2
|
+
|
|
3
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Identifier for a Codex thread.
|
|
7
|
+
*
|
|
8
|
+
* Codex-generated thread IDs are UUIDv7, and some use cases rely on that.
|
|
9
|
+
*/
|
|
10
|
+
export type ThreadId = string;
|