@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,20 @@
|
|
|
1
|
+
/** Handle tokens in prose. Code, escaped @ signs, email addresses and URLs are not pings. */
|
|
2
|
+
export function commentMentionTokens(content: string): { handle: string; start: number; end: number }[] {
|
|
3
|
+
const prose = content.replace(
|
|
4
|
+
/(`{3,}|~{3,})[^\n]*\n[\s\S]*?(?:\n\1[^\n]*(?:\n|$)|$)|(`+)[^`]*?\2|https?:\/\/\S+|\]\([^)]*\)|\\@/g,
|
|
5
|
+
(match) => ' '.repeat(match.length),
|
|
6
|
+
);
|
|
7
|
+
return [...prose.matchAll(/(?<![\w@/])@([a-z0-9_]{3,20})(?![\w@])/gi)]
|
|
8
|
+
.filter((match) => /[a-z0-9]/i.test(match[1]!))
|
|
9
|
+
.map((match) => ({ handle: match[1]!.toLowerCase(), start: match.index!, end: match.index! + match[0].length }));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Completion at the end of the draft, shared by the native comment composers. */
|
|
13
|
+
export function commentMentionQuery(text: string): { start: number; query: string } | null {
|
|
14
|
+
const match = /(?:^|[\s(])@([a-z0-9_]{0,20})$/i.exec(text);
|
|
15
|
+
if (!match) return null;
|
|
16
|
+
return { start: text.length - match[1]!.length - 1, query: match[1]!.toLowerCase() };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type CommentMention = { userId: string; handle: string };
|
|
20
|
+
export type CommentMentionCandidate = CommentMention & { name: string; avatarUrl: string | null };
|
|
@@ -2,6 +2,16 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
/** Additive v1 contract. Feature names, not app release numbers, gate operations. */
|
|
4
4
|
export const COMPUTER_PROTOCOL = 1;
|
|
5
|
+
export const ControlDeviceProfileSchema = z.object({
|
|
6
|
+
name: z.string().trim().min(1).max(120),
|
|
7
|
+
kind: z.enum(['phone', 'tablet', 'desktop']),
|
|
8
|
+
});
|
|
9
|
+
export type ControlDeviceProfile = z.infer<typeof ControlDeviceProfileSchema>;
|
|
10
|
+
export const ControlDeviceSchema = ControlDeviceProfileSchema.extend({
|
|
11
|
+
id: z.string().min(1).max(128),
|
|
12
|
+
connected: z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
export type ControlDevice = z.infer<typeof ControlDeviceSchema>;
|
|
5
15
|
export const ComputerSchema = z.object({
|
|
6
16
|
id: z.string().min(1).max(128),
|
|
7
17
|
name: z.string().min(1).max(120),
|
|
@@ -19,7 +29,9 @@ export const ProviderHealthSchema = z.object({
|
|
|
19
29
|
export type ProviderHealth = z.infer<typeof ProviderHealthSchema>;
|
|
20
30
|
export type ComputerProvider = 'claude' | 'codex';
|
|
21
31
|
export const ComputerRuntimeSchema = z.object({
|
|
32
|
+
appVersion: z.string().trim().min(1).max(120).optional(),
|
|
22
33
|
protocol: z.number().int().positive(),
|
|
34
|
+
managedUpdates: z.literal(1).optional(),
|
|
23
35
|
features: z.array(z.string().max(80)).max(64),
|
|
24
36
|
permissions: z.array(z.string().max(80)).max(64),
|
|
25
37
|
providers: z.object({
|
|
@@ -41,29 +53,48 @@ export const ComputerHelloSchema = z.object({
|
|
|
41
53
|
export const ComputerPresenceSchema = z.object({
|
|
42
54
|
type: z.literal('presence'),
|
|
43
55
|
readOnly: z.boolean().optional(),
|
|
56
|
+
automaticControl: z.literal(1).optional(),
|
|
57
|
+
controlRevision: z.number().int().nonnegative().optional(),
|
|
44
58
|
daemonConnected: z.boolean(),
|
|
45
59
|
machine: z.string().nullable().optional(),
|
|
46
60
|
// Undefined means an older relay or failed lookup; null means verified never paired.
|
|
47
61
|
computer: ComputerSchema.nullable().optional(),
|
|
48
62
|
runtime: ComputerRuntimeSchema.nullable().optional(),
|
|
63
|
+
deviceId: z.string().max(128).optional(),
|
|
64
|
+
controllerId: z.string().max(128).nullable().optional(),
|
|
65
|
+
devices: z.array(ControlDeviceSchema).max(32).optional(),
|
|
49
66
|
});
|
|
50
67
|
export type ComputerPresence = z.infer<typeof ComputerPresenceSchema>;
|
|
51
68
|
export type ComputerFeature =
|
|
69
|
+
| 'file-attachments'
|
|
70
|
+
| 'pasted-text-previews'
|
|
71
|
+
| 'file-upload'
|
|
72
|
+
| 'video-upload'
|
|
52
73
|
| 'checkout-history'
|
|
53
74
|
| 'workspaces'
|
|
75
|
+
| 'workspace-io'
|
|
76
|
+
| 'workspace-models'
|
|
77
|
+
| 'repo-settings'
|
|
78
|
+
| 'worktree-delete'
|
|
54
79
|
| 'turn-queue'
|
|
55
80
|
| 'provider-handoff'
|
|
81
|
+
| 'provider-fallback'
|
|
82
|
+
| 'queue-pause'
|
|
83
|
+
| 'repository-requests'
|
|
56
84
|
| 'queue-control'
|
|
85
|
+
| 'queue-draft'
|
|
57
86
|
| 'day-plan'
|
|
58
87
|
| 'ask'
|
|
59
88
|
| 'code'
|
|
60
|
-
| 'conduct'
|
|
61
89
|
| 'briefing'
|
|
62
90
|
| 'attention'
|
|
63
91
|
| 'models'
|
|
92
|
+
| 'usage'
|
|
64
93
|
| 'commands'
|
|
94
|
+
| 'mcp-status'
|
|
65
95
|
| 'steer'
|
|
66
96
|
| 'permission'
|
|
97
|
+
| 'progress-check'
|
|
67
98
|
| 'pull'
|
|
68
99
|
| 'repos'
|
|
69
100
|
| 'prs'
|
|
@@ -98,7 +129,6 @@ export const INFERENCE_FEATURES = new Set<string>([
|
|
|
98
129
|
'ask',
|
|
99
130
|
'day-plan',
|
|
100
131
|
'code',
|
|
101
|
-
'conduct',
|
|
102
132
|
'briefing',
|
|
103
133
|
'attention',
|
|
104
134
|
]);
|
|
@@ -151,7 +181,9 @@ export function computerAvailability(
|
|
|
151
181
|
'getConfig',
|
|
152
182
|
'getAutomations',
|
|
153
183
|
'models',
|
|
184
|
+
'usage',
|
|
154
185
|
'commands',
|
|
186
|
+
'mcp-status',
|
|
155
187
|
'repos',
|
|
156
188
|
'prs',
|
|
157
189
|
'journal',
|
|
@@ -174,7 +206,7 @@ export function computerAvailability(
|
|
|
174
206
|
`Update Lucidity on ${presence.computer?.name ?? presence.machine ?? 'your computer'} to use this feature. Other compatible features remain available.`,
|
|
175
207
|
);
|
|
176
208
|
if (
|
|
177
|
-
['code', '
|
|
209
|
+
['code', 'repos', 'prs'].includes(feature) &&
|
|
178
210
|
!runtime.permissions.includes('coding')
|
|
179
211
|
)
|
|
180
212
|
return blocked(
|
|
@@ -193,6 +225,14 @@ export function computerAvailability(
|
|
|
193
225
|
provider ?? runtime.defaults[feature === 'ask' ? 'chat' : 'code'];
|
|
194
226
|
const health = runtime.providers[selected];
|
|
195
227
|
const label = selected === 'claude' ? 'Claude' : 'Codex';
|
|
228
|
+
const other = selected === 'claude' ? 'codex' : 'claude';
|
|
229
|
+
const alternate = runtime.providers[other];
|
|
230
|
+
if (runtime.features.includes('provider-fallback') &&
|
|
231
|
+
(health.auth !== 'authenticated' || health.allowance === 'exhausted' || health.problem) &&
|
|
232
|
+
alternate.auth === 'authenticated' && alternate.allowance !== 'exhausted' && !alternate.problem) {
|
|
233
|
+
return { state: 'ready', title: `${other === 'claude' ? 'Claude' : 'Codex'} available`,
|
|
234
|
+
detail: 'Lucidity can use the other provider when it can safely carry the request and conversation history.', canSend: true };
|
|
235
|
+
}
|
|
196
236
|
if (health.auth === 'login_required' || health.problem === 'login')
|
|
197
237
|
return blocked(
|
|
198
238
|
'provider',
|
|
@@ -379,7 +379,12 @@ export function normalizeBio(input: string): string | null {
|
|
|
379
379
|
// re-fetches an interrupted turn's frames from the daemon's durable turn log
|
|
380
380
|
// (`sinceSeq` onward) so a dropped reply is recovered, never re-run.
|
|
381
381
|
export const HARNESS_REQUEST_KINDS = [
|
|
382
|
+
'file-upload',
|
|
383
|
+
'video-upload',
|
|
384
|
+
'usage',
|
|
382
385
|
'workspaces',
|
|
386
|
+
'workspace-io',
|
|
387
|
+
'recall',
|
|
383
388
|
'getAutomations',
|
|
384
389
|
'automation',
|
|
385
390
|
'queue-control',
|
|
@@ -395,10 +400,6 @@ export const HARNESS_REQUEST_KINDS = [
|
|
|
395
400
|
'getConfig',
|
|
396
401
|
'setConfig',
|
|
397
402
|
'incident',
|
|
398
|
-
// Conductor (fleet of coding agents): `plan` decomposes a goal into workers (returns a
|
|
399
|
-
// fan-out plan, runs no code); `run` executes an approved plan — one isolated worker
|
|
400
|
-
// worktree per subtask, dispatched in merge order, integrated back onto lucid/<repo>.
|
|
401
|
-
'conduct',
|
|
402
403
|
// Phone asks for the Dashboard's attention board (#320) — returns the cached one when it's
|
|
403
404
|
// still fresh, otherwise composes a new one.
|
|
404
405
|
'attention',
|
|
@@ -471,12 +472,9 @@ export const DELIVERY_CHANNELS = ['macos', 'stdout'] as const;
|
|
|
471
472
|
export const AGENT_MODES = ['off', 'auto', 'danger'] as const;
|
|
472
473
|
export type AgentMode = (typeof AGENT_MODES)[number];
|
|
473
474
|
|
|
474
|
-
//
|
|
475
|
-
// `
|
|
476
|
-
//
|
|
477
|
-
// integrated onto the fleet branch; `blocked` = paused for an approval or a merge conflict;
|
|
478
|
-
// `failed` = its turn errored. Mapped to Lucidity task status by the dogfood helper
|
|
479
|
-
// (pending/in_progress/blocked/completed), since a worker IS a subtask.
|
|
475
|
+
// What a worktree's chat is doing, as the phone shows it. `queued` = being created; `working` =
|
|
476
|
+
// its turn is streaming; `review` = idle and waiting for you; `failed` = its turn or setup errored.
|
|
477
|
+
// `merged` and `blocked` are kept for lanes saved by older builds.
|
|
480
478
|
export const WORKER_STATUSES = [
|
|
481
479
|
'queued',
|
|
482
480
|
'working',
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Independent of COMPUTER_PROTOCOL: keep recovery usable across AI protocol changes. */
|
|
4
|
+
export const DAEMON_UPDATE_PROTOCOL = 1;
|
|
5
|
+
export const DaemonVersionSchema = z.string().regex(/^(0|[1-9]\d{0,8})\.(0|[1-9]\d{0,8})\.(0|[1-9]\d{0,8})$/);
|
|
6
|
+
// A socket opening alone does not prove that the relay accepted its credentials.
|
|
7
|
+
export const DaemonUpdateProbeSchema = z.object({
|
|
8
|
+
type: z.literal('daemon_update_probe'),
|
|
9
|
+
protocol: z.literal(DAEMON_UPDATE_PROTOCOL),
|
|
10
|
+
nonce: z.string().uuid(),
|
|
11
|
+
version: DaemonVersionSchema,
|
|
12
|
+
}).strict();
|
|
13
|
+
export const DaemonUpdateReadySchema = DaemonUpdateProbeSchema.extend({
|
|
14
|
+
type: z.literal('daemon_update_ready'),
|
|
15
|
+
});
|
|
16
|
+
export const DaemonUpdateChannelSchema = z.enum(['internal', 'beta', 'stable']);
|
|
17
|
+
export type DaemonUpdateChannel = z.infer<typeof DaemonUpdateChannelSchema>;
|
|
18
|
+
|
|
19
|
+
export function compareDaemonVersions(left: string, right: string): number {
|
|
20
|
+
const a = DaemonVersionSchema.parse(left).split('.').map(Number);
|
|
21
|
+
const b = DaemonVersionSchema.parse(right).split('.').map(Number);
|
|
22
|
+
for (let i = 0; i < 3; i++) {
|
|
23
|
+
const difference = a[i]! - b[i]!;
|
|
24
|
+
if (difference) return Math.sign(difference);
|
|
25
|
+
}
|
|
26
|
+
return 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const DaemonReleaseSchema = z.object({
|
|
30
|
+
version: DaemonVersionSchema,
|
|
31
|
+
// No arbitrary download origins, redirects, credentials or URL parameters.
|
|
32
|
+
archiveUrl: z.string().max(300),
|
|
33
|
+
integrity: z.string().regex(/^sha512-[A-Za-z0-9+/]{86}==$/),
|
|
34
|
+
bytes: z.number().int().min(1).max(512 * 1024 * 1024),
|
|
35
|
+
platforms: z.array(z.enum(['darwin-arm64', 'darwin-x64', 'win32-x64', 'win32-arm64', 'linux-x64', 'linux-arm64'])).min(1).max(6),
|
|
36
|
+
nodeMinimum: DaemonVersionSchema,
|
|
37
|
+
updateProtocol: z.number().int().positive(),
|
|
38
|
+
// Equal epochs promise both releases can read each other's persisted state.
|
|
39
|
+
stateEpoch: z.number().int().nonnegative(),
|
|
40
|
+
}).strict().refine((release) => release.archiveUrl ===
|
|
41
|
+
`https://registry.npmjs.org/@opencorelabs/lucidity/-/lucidity-${release.version}.tgz`,
|
|
42
|
+
{ message: 'Expected the exact public Lucidity npm archive URL' });
|
|
43
|
+
export type DaemonRelease = z.infer<typeof DaemonReleaseSchema>;
|
|
44
|
+
|
|
45
|
+
export const DaemonReleaseManifestSchema = z.object({
|
|
46
|
+
schema: z.literal(1),
|
|
47
|
+
channel: DaemonUpdateChannelSchema,
|
|
48
|
+
sequence: z.number().int().positive().max(Number.MAX_SAFE_INTEGER),
|
|
49
|
+
issuedAt: z.string().datetime(),
|
|
50
|
+
expiresAt: z.string().datetime(),
|
|
51
|
+
minimumVersion: DaemonVersionSchema,
|
|
52
|
+
withdrawnVersions: z.array(DaemonVersionSchema).max(1000),
|
|
53
|
+
// Null pauses distribution without clearing the supported minimum.
|
|
54
|
+
release: DaemonReleaseSchema.nullable(),
|
|
55
|
+
rollout: z.object({
|
|
56
|
+
percent: z.number().int().min(0).max(100),
|
|
57
|
+
salt: z.string().min(1).max(100),
|
|
58
|
+
}).strict(),
|
|
59
|
+
}).strict().superRefine((manifest, ctx) => {
|
|
60
|
+
const issued = Date.parse(manifest.issuedAt);
|
|
61
|
+
const expires = Date.parse(manifest.expiresAt);
|
|
62
|
+
if (expires <= issued || expires - issued > 30 * 24 * 60 * 60_000)
|
|
63
|
+
ctx.addIssue({ code: 'custom', message: 'Manifest validity must be between zero and 30 days' });
|
|
64
|
+
if (manifest.release && (compareDaemonVersions(manifest.release.version, manifest.minimumVersion) < 0 ||
|
|
65
|
+
manifest.withdrawnVersions.includes(manifest.release.version)))
|
|
66
|
+
ctx.addIssue({ code: 'custom', message: 'Offered release must be supported and not withdrawn' });
|
|
67
|
+
});
|
|
68
|
+
export type DaemonReleaseManifest = z.infer<typeof DaemonReleaseManifestSchema>;
|
|
69
|
+
|
|
70
|
+
export const DaemonUpdateStatusSchema = z.object({
|
|
71
|
+
protocol: z.literal(DAEMON_UPDATE_PROTOCOL),
|
|
72
|
+
installedVersion: DaemonVersionSchema,
|
|
73
|
+
targetVersion: DaemonVersionSchema.optional(),
|
|
74
|
+
phase: z.enum(['current', 'checking', 'downloading', 'waiting_for_work', 'restarting', 'verifying', 'rolled_back', 'blocked']),
|
|
75
|
+
required: z.boolean(),
|
|
76
|
+
problem: z.enum(['network', 'verification', 'runtime', 'state_migration', 'startup', 'manual_recovery']).optional(),
|
|
77
|
+
});
|
|
78
|
+
export type DaemonUpdateStatus = z.infer<typeof DaemonUpdateStatusSchema>;
|
|
79
|
+
|
|
80
|
+
export interface DaemonInstallation {
|
|
81
|
+
version: string;
|
|
82
|
+
channel: DaemonUpdateChannel;
|
|
83
|
+
managed: boolean;
|
|
84
|
+
platform: string;
|
|
85
|
+
nodeVersion: string;
|
|
86
|
+
stateEpoch: number;
|
|
87
|
+
updateProtocol: number;
|
|
88
|
+
/** Deterministic installation bucket in [0, 100), computed with manifest salt. */
|
|
89
|
+
rolloutBucket: number;
|
|
90
|
+
failedVersions: readonly string[];
|
|
91
|
+
}
|
|
92
|
+
export interface DaemonUpdateDecision {
|
|
93
|
+
action: 'none' | 'stage' | 'blocked' | 'unmanaged';
|
|
94
|
+
required: boolean;
|
|
95
|
+
allowNewWork: boolean;
|
|
96
|
+
reason: 'current' | 'rollout' | 'update' | 'unmanaged' | 'no_release' | 'platform' | 'runtime' | 'state_migration' | 'failed_release' | 'downgrade' | 'no_client_requirement';
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function daemonVersionSupported(version: string, manifest: DaemonReleaseManifest): boolean {
|
|
100
|
+
return compareDaemonVersions(version, manifest.minimumVersion) >= 0 && !manifest.withdrawnVersions.includes(version);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** Call only after authenticating and freshness-checking the manifest. */
|
|
104
|
+
export function decideDaemonUpdate(manifest: DaemonReleaseManifest, installed: DaemonInstallation, clientRequested = false): DaemonUpdateDecision {
|
|
105
|
+
DaemonVersionSchema.parse(installed.version);
|
|
106
|
+
DaemonVersionSchema.parse(installed.nodeVersion);
|
|
107
|
+
if (manifest.channel !== installed.channel) throw new Error('Update channel mismatch');
|
|
108
|
+
if (!Number.isFinite(installed.rolloutBucket) || installed.rolloutBucket < 0 || installed.rolloutBucket >= 100)
|
|
109
|
+
throw new Error('Invalid rollout bucket');
|
|
110
|
+
const required = !daemonVersionSupported(installed.version, manifest);
|
|
111
|
+
const decision = (action: DaemonUpdateDecision['action'], reason: DaemonUpdateDecision['reason']): DaemonUpdateDecision =>
|
|
112
|
+
({ action, reason, required, allowNewWork: !required });
|
|
113
|
+
if (!installed.managed) return decision('unmanaged', 'unmanaged');
|
|
114
|
+
if (!required && !clientRequested) return decision('none', 'no_client_requirement');
|
|
115
|
+
const release = manifest.release;
|
|
116
|
+
if (!release) return decision(required ? 'blocked' : 'none', 'no_release');
|
|
117
|
+
const order = compareDaemonVersions(release.version, installed.version);
|
|
118
|
+
if (order === 0) return decision('none', 'current');
|
|
119
|
+
if (order < 0) return decision(required ? 'blocked' : 'none', 'downgrade');
|
|
120
|
+
if (!required && installed.rolloutBucket >= manifest.rollout.percent) return decision('none', 'rollout');
|
|
121
|
+
if (!release.platforms.includes(installed.platform as DaemonRelease['platforms'][number])) return decision('blocked', 'platform');
|
|
122
|
+
if (compareDaemonVersions(installed.nodeVersion, release.nodeMinimum) < 0 || release.updateProtocol !== installed.updateProtocol)
|
|
123
|
+
return decision('blocked', 'runtime');
|
|
124
|
+
if (release.stateEpoch !== installed.stateEpoch) return decision('blocked', 'state_migration');
|
|
125
|
+
if (installed.failedVersions.includes(release.version)) return decision('blocked', 'failed_release');
|
|
126
|
+
return decision('stage', 'update');
|
|
127
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WORKSPACE_IO_READ_ACTIONS } from './workspaceIO.js';
|
|
3
|
+
|
|
4
|
+
export const DEVICE_IDLE_MS = 30_000;
|
|
5
|
+
export const DeviceActivitySchema = z.object({
|
|
6
|
+
type: z.literal('client_activity'),
|
|
7
|
+
state: z.enum(['foreground', 'background', 'input']),
|
|
8
|
+
});
|
|
9
|
+
export type DeviceActivity = z.infer<typeof DeviceActivitySchema>['state'];
|
|
10
|
+
|
|
11
|
+
const reads = new Set(['pull', 'getConfig', 'getAutomations', 'models', 'usage', 'commands', 'mcp-status', 'repos', 'prs', 'journal', 'progress-check']);
|
|
12
|
+
const workspaceReads = new Set(['list', 'history', 'settings', 'model-settings', 'overview-source', 'message-source', 'message-image', 'pasted-text', 'delivery-status']);
|
|
13
|
+
|
|
14
|
+
/** Reads and navigation never claim attention, including opening saved history. */
|
|
15
|
+
export function passiveRoomRequest(request: unknown): boolean {
|
|
16
|
+
if (!request || typeof request !== 'object') return false;
|
|
17
|
+
const { kind, command } = request as { kind?: string; command?: { action?: string; operation?: { action?: string } } };
|
|
18
|
+
if (reads.has(kind ?? '')) return true;
|
|
19
|
+
if (kind === 'workspaces') return workspaceReads.has(command?.action ?? '');
|
|
20
|
+
return kind === 'workspace-io' && WORKSPACE_IO_READ_ACTIONS.has(command?.operation?.action ?? '');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** A request is wrapped only after the relay advertises support. Never persist or
|
|
24
|
+
* replay this envelope: its computer and revision belong to the live connection. */
|
|
25
|
+
export function interactiveRoomRequest(request: unknown, presence: {
|
|
26
|
+
automaticControl?: 1; controlRevision?: number; computer?: { id: string } | null;
|
|
27
|
+
} | null): unknown {
|
|
28
|
+
if (!presence?.automaticControl || !presence.computer || passiveRoomRequest(request)) return request;
|
|
29
|
+
const { kind, command } = request as { kind?: string; command?: { action?: string } };
|
|
30
|
+
// Diagnostics and one-time cache migration may run during passive refresh.
|
|
31
|
+
const background = kind === 'incident' || kind === 'voice-diag-report' ||
|
|
32
|
+
(kind === 'workspaces' && command?.action === 'import');
|
|
33
|
+
return { type: 'client_command', computerId: presence.computer.id,
|
|
34
|
+
revision: presence.controlRevision, ...(background ? { claimAttention: false } : {}), request };
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ComputerClientSchema } from './releaseCompatibility.js';
|
|
3
|
+
|
|
4
|
+
export const DoctorRequestSchema = z.object({
|
|
5
|
+
type: z.literal('doctor_ensure'), protocol: z.literal(1),
|
|
6
|
+
id: z.uuidv7(), computerId: z.string().min(1).max(128),
|
|
7
|
+
capability: z.literal('shell-commands'),
|
|
8
|
+
}).strict();
|
|
9
|
+
export const DoctorRelayRequestSchema = DoctorRequestSchema.extend({
|
|
10
|
+
accountId: z.string().min(1).max(128), ...ComputerClientSchema.shape,
|
|
11
|
+
}).strict();
|
|
12
|
+
export const DoctorProgressSchema = DoctorRelayRequestSchema.extend({
|
|
13
|
+
phase: z.enum(['preparing', 'waiting_for_work', 'restarting', 'verifying', 'ready', 'needs_action']),
|
|
14
|
+
problem: z.enum(['no_release', 'verification', 'network', 'startup', 'unknown_client', 'live_capability', 'identity']).optional(),
|
|
15
|
+
}).strict();
|
|
16
|
+
export type DoctorRequest = z.infer<typeof DoctorRequestSchema>;
|
|
17
|
+
export type DoctorRelayRequest = z.infer<typeof DoctorRelayRequestSchema>;
|
|
18
|
+
export type DoctorProgress = z.infer<typeof DoctorProgressSchema>;
|
|
19
|
+
export const DOCTOR_SHELL_FEATURES = ['shell-commands', 'shell-receipts'] as const;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HarnessFileSchema } from './files.js';
|
|
3
|
+
|
|
4
|
+
export const FILE_UPLOAD_MAX_BYTES = 100 * 1024 * 1024;
|
|
5
|
+
export const FILE_UPLOAD_CHUNK_BYTES = 192 * 1024;
|
|
6
|
+
export const FileUploadIdSchema = z.uuid();
|
|
7
|
+
export const FileUploadMetadataSchema = HarnessFileSchema.pick({ name: true, mediaType: true }).extend({
|
|
8
|
+
fileId: FileUploadIdSchema,
|
|
9
|
+
size: z.number().int().positive().max(FILE_UPLOAD_MAX_BYTES),
|
|
10
|
+
// A native file digest detects changed source bytes when resuming an upload.
|
|
11
|
+
md5: z.string().regex(/^[a-f0-9]{32}$/),
|
|
12
|
+
});
|
|
13
|
+
export const FileUploadCommandSchema = z.discriminatedUnion('action', [
|
|
14
|
+
FileUploadMetadataSchema.extend({ action: z.literal('start') }),
|
|
15
|
+
z.object({ action: z.literal('chunk'), fileId: FileUploadIdSchema,
|
|
16
|
+
offset: z.number().int().nonnegative().max(FILE_UPLOAD_MAX_BYTES),
|
|
17
|
+
base64: z.string().min(4).max(FILE_UPLOAD_CHUNK_BYTES / 3 * 4) }),
|
|
18
|
+
z.object({ action: z.literal('finish'), fileId: FileUploadIdSchema }),
|
|
19
|
+
z.object({ action: z.literal('cancel'), fileId: FileUploadIdSchema }),
|
|
20
|
+
]);
|
|
21
|
+
export const FileUploadReceiptSchema = z.object({
|
|
22
|
+
fileId: FileUploadIdSchema,
|
|
23
|
+
offset: z.number().int().nonnegative().max(FILE_UPLOAD_MAX_BYTES),
|
|
24
|
+
ready: z.boolean(),
|
|
25
|
+
});
|
|
26
|
+
export type FileUploadMetadata = z.infer<typeof FileUploadMetadataSchema>;
|
|
27
|
+
export type FileUploadCommand = z.infer<typeof FileUploadCommandSchema>;
|
|
28
|
+
export type FileUploadReceipt = z.infer<typeof FileUploadReceiptSchema>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Documents travel with the durable turn, bounded like the existing inline image payloads. */
|
|
4
|
+
export const FILE_MAX_BYTES = 10 * 1024 * 1024;
|
|
5
|
+
export const FILE_MAX_COUNT = 6;
|
|
6
|
+
export const HarnessFileSchema = z.object({
|
|
7
|
+
name: z
|
|
8
|
+
.string()
|
|
9
|
+
.min(1)
|
|
10
|
+
.max(180)
|
|
11
|
+
.refine((name) => !/[\\/\u0000-\u001f]/.test(name) && name !== '.' && name !== '..'),
|
|
12
|
+
mediaType: z
|
|
13
|
+
.string()
|
|
14
|
+
.max(100)
|
|
15
|
+
.regex(/^[a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+$/),
|
|
16
|
+
dataBase64: z
|
|
17
|
+
.string()
|
|
18
|
+
.min(4)
|
|
19
|
+
.max(Math.ceil(FILE_MAX_BYTES / 3) * 4),
|
|
20
|
+
});
|
|
21
|
+
export type HarnessFile = z.infer<typeof HarnessFileSchema>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
export * from './files.js';
|
|
1
2
|
export * from './dayPlanning.js';
|
|
2
3
|
export * from './workspaces.js';
|
|
4
|
+
export * from './recall.js';
|
|
5
|
+
export * from './memory.js';
|
|
3
6
|
export * from './githubContributions.js';
|
|
4
7
|
export * from './projectCapture.js';
|
|
5
8
|
export * from './taskActivity.js';
|
|
6
9
|
export * from './recurrence.js';
|
|
10
|
+
export * from './taskSync.js';
|
|
7
11
|
export * from './vault-search.js';
|
|
8
12
|
export * from './journal-vault.js';
|
|
9
13
|
export * from './journal-migration.js';
|
|
@@ -243,6 +247,10 @@ export {
|
|
|
243
247
|
AgentProviderSchema,
|
|
244
248
|
SteerRequestSchema,
|
|
245
249
|
PermissionRequestSchema,
|
|
250
|
+
ProgressCheckRequestSchema,
|
|
251
|
+
CodingProgressSchema,
|
|
252
|
+
CodingProgressEventSchema,
|
|
253
|
+
type CodingProgress,
|
|
246
254
|
ModelsRequestSchema,
|
|
247
255
|
ControlResponseSchema,
|
|
248
256
|
ModelsResponseSchema,
|
|
@@ -250,9 +258,6 @@ export {
|
|
|
250
258
|
BriefingRequestSchema,
|
|
251
259
|
JournalRequestSchema,
|
|
252
260
|
CodeRequestSchema,
|
|
253
|
-
ConductRequestSchema,
|
|
254
|
-
FleetPlanSchema,
|
|
255
|
-
FleetWorkerSchema,
|
|
256
261
|
RepoListRequestSchema,
|
|
257
262
|
ListPrsRequestSchema,
|
|
258
263
|
GetConfigRequestSchema,
|
|
@@ -290,7 +295,7 @@ export {
|
|
|
290
295
|
VoiceDiagAckResponseSchema,
|
|
291
296
|
ProviderHandoffSchema,
|
|
292
297
|
} from './schemas/harness.js';
|
|
293
|
-
export type { ProviderHandoff } from './schemas/harness.js';
|
|
298
|
+
export type { ProviderHandoff, ProviderRole } from './schemas/harness.js';
|
|
294
299
|
|
|
295
300
|
// Types
|
|
296
301
|
export type {
|
|
@@ -386,9 +391,6 @@ export type {
|
|
|
386
391
|
BriefingRequest,
|
|
387
392
|
JournalRequest,
|
|
388
393
|
CodeRequest,
|
|
389
|
-
ConductRequest,
|
|
390
|
-
FleetPlan,
|
|
391
|
-
FleetWorker,
|
|
392
394
|
RepoListRequest,
|
|
393
395
|
ListPrsRequest,
|
|
394
396
|
PrInfo,
|
|
@@ -429,8 +431,12 @@ export type {
|
|
|
429
431
|
|
|
430
432
|
export { AgentModelOptionSchema } from './schemas/harness.js';
|
|
431
433
|
export type { AgentModelOption } from './schemas/harness.js';
|
|
434
|
+
export { AgentMcpServerSchema } from './schemas/harness.js';
|
|
435
|
+
export type { AgentMcpServer } from './schemas/harness.js';
|
|
432
436
|
|
|
433
437
|
export * from './computer.js';
|
|
438
|
+
export * from './daemonUpdates.js';
|
|
439
|
+
export * from './releaseCompatibility.js';
|
|
434
440
|
export * from './cardStudio.js';
|
|
435
441
|
export * from './habitContributions.js';
|
|
436
442
|
export * from './speech.js';
|
|
@@ -450,3 +456,28 @@ export type { AgentCommandOption, AgentCommandContext } from './agentCommands.js
|
|
|
450
456
|
|
|
451
457
|
export * from './goals.js';
|
|
452
458
|
export * from './goalNotes.js';
|
|
459
|
+
|
|
460
|
+
export * from './messagingSafety.js';
|
|
461
|
+
export * from './commentMentions.js';
|
|
462
|
+
|
|
463
|
+
export { AiUsageSchema, AiUsageWindowSchema } from './aiUsage.js';
|
|
464
|
+
export type { AiUsage, AiUsageWindow } from './aiUsage.js';
|
|
465
|
+
|
|
466
|
+
export * from './artifacts.js';
|
|
467
|
+
export * from './lucidInvocations.js';
|
|
468
|
+
export * from './repositoryRouting.js';
|
|
469
|
+
export * from './lucidFollowups.js';
|
|
470
|
+
|
|
471
|
+
export * from './videos.js';
|
|
472
|
+
export * from './updateControl.js';
|
|
473
|
+
export * from './codingActivity.js';
|
|
474
|
+
export * from './taskSharing.js';
|
|
475
|
+
export * from './workspaceIO.js';
|
|
476
|
+
export * from './fileUploads.js';
|
|
477
|
+
export * from './turnTiming.js';
|
|
478
|
+
export * from './agentMessages.js';
|
|
479
|
+
export * from './doctor.js';
|
|
480
|
+
export * from './activityRecovery.js';
|
|
481
|
+
export * from './accountDevices.js';
|
|
482
|
+
export * from './deviceInteraction.js';
|
|
483
|
+
export * from './repositoryRequests.js';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { LucidSourceSchema } from './lucidInvocations.js';
|
|
3
|
+
import { RecurrenceTimeZoneSchema } from './recurrence.js';
|
|
4
|
+
|
|
5
|
+
export const FollowupConditionSchema = z.discriminatedUnion('kind', [
|
|
6
|
+
z.object({ kind: z.literal('none') }).strict(),
|
|
7
|
+
z.object({ kind: z.literal('reply'), userId: z.uuid() }).strict(),
|
|
8
|
+
z.object({ kind: z.literal('task_completed'), taskId: z.uuid() }).strict(),
|
|
9
|
+
]);
|
|
10
|
+
export const FollowupStateSchema = z.enum([
|
|
11
|
+
'needs_details',
|
|
12
|
+
'scheduled',
|
|
13
|
+
'delivered',
|
|
14
|
+
'resolved',
|
|
15
|
+
'cancelled',
|
|
16
|
+
'unavailable',
|
|
17
|
+
'expired',
|
|
18
|
+
]);
|
|
19
|
+
export const LucidFollowupSchema = z.object({
|
|
20
|
+
id: z.uuid(),
|
|
21
|
+
invokerId: z.uuid(),
|
|
22
|
+
revision: z.number().int().nonnegative(),
|
|
23
|
+
state: FollowupStateSchema,
|
|
24
|
+
kind: z.enum(['reminder', 'draft']),
|
|
25
|
+
source: LucidSourceSchema.nullable(),
|
|
26
|
+
text: z.string().max(4000).nullable(),
|
|
27
|
+
condition: FollowupConditionSchema.nullable(),
|
|
28
|
+
scheduledAt: z.string().nullable(),
|
|
29
|
+
timeZone: z.string().nullable(),
|
|
30
|
+
detail: z.string(),
|
|
31
|
+
createdAt: z.string(),
|
|
32
|
+
updatedAt: z.string(),
|
|
33
|
+
});
|
|
34
|
+
export const SaveLucidFollowupSchema = z
|
|
35
|
+
.object({
|
|
36
|
+
commandId: z.uuid(),
|
|
37
|
+
revision: z.number().int().nonnegative(),
|
|
38
|
+
source: LucidSourceSchema,
|
|
39
|
+
kind: z.enum(['reminder', 'draft']),
|
|
40
|
+
text: z.string().trim().min(1).max(4000),
|
|
41
|
+
condition: FollowupConditionSchema,
|
|
42
|
+
localDate: z.iso.date(),
|
|
43
|
+
localTime: z.string().regex(/^(?:[01]\d|2[0-3]):[0-5]\d$/),
|
|
44
|
+
timeZone: RecurrenceTimeZoneSchema,
|
|
45
|
+
})
|
|
46
|
+
.strict();
|
|
47
|
+
export type FollowupCondition = z.infer<typeof FollowupConditionSchema>;
|
|
48
|
+
export type LucidFollowup = z.infer<typeof LucidFollowupSchema>;
|
|
49
|
+
export type SaveLucidFollowup = z.infer<typeof SaveLucidFollowupSchema>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { commentMentionTokens } from './commentMentions.js';
|
|
3
|
+
import { InvocationRoutingSchema } from './repositoryRouting.js';
|
|
4
|
+
|
|
5
|
+
/** An explicit agent address in new prose, never a quoted example or code sample. */
|
|
6
|
+
export function hasLucidMention(content: string): boolean {
|
|
7
|
+
let fence: string | undefined;
|
|
8
|
+
let quoted = false;
|
|
9
|
+
const prose = content.split('\n').map((line) => {
|
|
10
|
+
const marker = /^ {0,3}(`{3,}|~{3,})/.exec(line)?.[1];
|
|
11
|
+
if (fence) {
|
|
12
|
+
if (marker && marker[0] === fence[0] && marker.length >= fence.length) fence = undefined;
|
|
13
|
+
return '';
|
|
14
|
+
}
|
|
15
|
+
if (marker) { fence = marker; return ''; }
|
|
16
|
+
if (!line.trim()) quoted = false;
|
|
17
|
+
if (/^ {0,3}>/.test(line)) quoted = true;
|
|
18
|
+
if (quoted || /^( {4}|\t)/.test(line)) return '';
|
|
19
|
+
return line;
|
|
20
|
+
}).join('\n').replace(
|
|
21
|
+
/"[^"\n]*"|“[^”\n]*”|‘[^’\n]*’|(?<!\w)'[^'\n]*'(?!\w)|<(code|pre)\b[^>]*>[\s\S]*?<\/\1>/gi,
|
|
22
|
+
'',
|
|
23
|
+
);
|
|
24
|
+
return commentMentionTokens(prose).some(({ handle }) => handle === 'lucid');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const LucidSourceSchema = z.discriminatedUnion('kind', [
|
|
28
|
+
z.object({ kind: z.literal('comment'), taskId: z.uuid(), commentId: z.uuid() }),
|
|
29
|
+
z.object({ kind: z.literal('message'), conversationId: z.uuid(), messageId: z.uuid() }),
|
|
30
|
+
]);
|
|
31
|
+
|
|
32
|
+
export const LucidInvocationSchema = z.object({
|
|
33
|
+
id: z.uuid(),
|
|
34
|
+
source: LucidSourceSchema,
|
|
35
|
+
invokerId: z.uuid(),
|
|
36
|
+
status: z.enum(['queued', 'running', 'completed', 'stopped', 'failed', 'invalidated']),
|
|
37
|
+
replyId: z.uuid(),
|
|
38
|
+
hasPrivateReply: z.boolean().optional(),
|
|
39
|
+
sharedReplyId: z.uuid().nullable().optional(),
|
|
40
|
+
createdAt: z.string(),
|
|
41
|
+
updatedAt: z.string(),
|
|
42
|
+
/** Requester-only status, never a provider error or raw tool output. */
|
|
43
|
+
detail: z.string(),
|
|
44
|
+
routingState: InvocationRoutingSchema.shape.state.optional(),
|
|
45
|
+
hasFollowup: z.boolean().optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export type LucidSource = z.infer<typeof LucidSourceSchema>;
|
|
49
|
+
export type LucidInvocation = z.infer<typeof LucidInvocationSchema>;
|
|
50
|
+
|
|
51
|
+
export type LucidMentionCandidate = { kind: 'lucid'; name: 'Lucid'; handle: 'lucid' };
|
|
52
|
+
|
|
53
|
+
/** Initial shared context; the invocation may retrieve more through explicit MCP tools. */
|
|
54
|
+
export type LucidInvocationContext = {
|
|
55
|
+
invocationId: string;
|
|
56
|
+
source: LucidSource;
|
|
57
|
+
invoker: { id: string; name: string; handle: string | null };
|
|
58
|
+
participants?: Array<{ id: string; name: string; handle: string | null }>;
|
|
59
|
+
instruction: string;
|
|
60
|
+
task?: { title: string; description: string | null; [field: string]: unknown };
|
|
61
|
+
discussion: Array<{ id: string; author: string; kind: 'human' | 'agent'; content: string }>;
|
|
62
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const MemorySourceSchema = z.object({ id: z.string().min(1).max(4000), revision: z.string().min(1).max(100) });
|
|
4
|
+
const certainty = z.enum(['explicit', 'inferred', 'unknown']);
|
|
5
|
+
const content = z.object({ text: z.string(), certainty, sources: z.array(MemorySourceSchema), pinned: z.boolean().optional() });
|
|
6
|
+
export const MemoryRecordSchema = content.extend({
|
|
7
|
+
sources: z.array(MemorySourceSchema.extend({ href: z.string().optional() })),
|
|
8
|
+
id: z.string(), key: z.string(), projectId: z.string().optional(), version: z.number().int(),
|
|
9
|
+
state: z.enum(['active', 'forgotten']), provenance: z.enum(['user', 'source', 'legacy']),
|
|
10
|
+
createdAt: z.string(), updatedAt: z.string(),
|
|
11
|
+
history: z.array(content.extend({ version: z.number().int(), at: z.string() })),
|
|
12
|
+
evidenceStatus: z.enum(['available', 'unknown', 'changed', 'unavailable', 'forgotten']).optional(),
|
|
13
|
+
});
|
|
14
|
+
export type MemoryRecord = z.infer<typeof MemoryRecordSchema>;
|
|
15
|
+
const scope = { projectId: z.string().min(1).max(300).optional() };
|
|
16
|
+
const mutation = { operationId: z.string().uuid(), ...scope };
|
|
17
|
+
const fact = { text: z.string().trim().min(1).max(4000), certainty: z.enum(['explicit', 'inferred']),
|
|
18
|
+
currentSourceQuote: z.string().trim().min(1).max(4000).optional(),
|
|
19
|
+
sources: z.array(MemorySourceSchema).max(8).default([]), pinned: z.boolean().optional() };
|
|
20
|
+
export const MemoryCommandSchema = z.discriminatedUnion('action', [
|
|
21
|
+
z.object({ action: z.literal('list'), ...scope, includeForgotten: z.boolean().default(false),
|
|
22
|
+
offset: z.number().int().min(0).max(100000).default(0), limit: z.number().int().min(1).max(100).default(20) }),
|
|
23
|
+
z.object({ action: z.literal('remember'), ...mutation, ...fact, key: z.string().trim().min(1).max(200),
|
|
24
|
+
reRemember: z.boolean().default(false) }),
|
|
25
|
+
z.object({ action: z.literal('correct'), ...mutation, ...fact, id: z.string(), expectedVersion: z.number().int().min(1) }),
|
|
26
|
+
z.object({ action: z.literal('forget'), ...mutation, id: z.string(), expectedVersion: z.number().int().min(1) }),
|
|
27
|
+
]);
|
|
28
|
+
export type MemoryCommand = z.input<typeof MemoryCommandSchema>;
|
|
29
|
+
export const MemoryResultSchema = z.object({ memories: z.array(MemoryRecordSchema), notice: z.string().optional(), nextOffset: z.number().optional() });
|
|
30
|
+
export type MemoryResult = z.infer<typeof MemoryResultSchema>;
|