@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../src/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../src/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;iBAEnB,CAAC;AAEjB,qGAAqG;AACrG,eAAO,MAAM,kBAAkB;;;;;;;iBAa7B,CAAC;AACH,gGAAgG;AAChG,eAAO,MAAM,gBAAgB;;;;iBAE3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;iBAQnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAIzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkB5C,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8G,CAAC;AACtJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,qFAAqF;AACrF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;iBAI1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAehC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,wGAAwG;AACxG,eAAO,MAAM,kBAAkB;;;iBAI7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkB7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;iBAQ1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,gEAAgE;AAChE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;6BASzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,40 +1,195 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ActivityRecoverySchema } from './activityRecovery.js';
|
|
3
|
+
import { EFFORT_LEVELS } from './constants.js';
|
|
4
|
+
import { AgentHandoffSchema } from './agentMessages.js';
|
|
2
5
|
export const SavedChatMessageSchema = z.object({
|
|
3
6
|
id: z.string().min(1), role: z.enum(['user', 'lucid', 'notice']), text: z.string(),
|
|
4
7
|
}).passthrough();
|
|
8
|
+
/** How one repository's worktrees are prepared. Stored on the computer and edited from the phone. */
|
|
9
|
+
export const RepoSettingsSchema = z.object({
|
|
10
|
+
/** Gitignored files copied from the main checkout into a new worktree. Wildcards in the file name only. */
|
|
11
|
+
copy: z.array(z.string().trim().min(1).max(300)).max(50).default([]),
|
|
12
|
+
/** Shell command run in a new worktree once those files are in place. */
|
|
13
|
+
setup: z.string().trim().max(2000).optional(),
|
|
14
|
+
/** Remote branch new worktrees start from, e.g. `origin/main`. Unset uses the remote default. */
|
|
15
|
+
baseRef: z.string().trim().max(200).optional(),
|
|
16
|
+
/** Shell command run in a worktree just before it is archived. A failure stops the archive. */
|
|
17
|
+
archiveScript: z.string().trim().max(2000).optional(),
|
|
18
|
+
/** Archive a worktree once the pull request for its branch has merged. */
|
|
19
|
+
archiveOnMerge: z.boolean().optional(),
|
|
20
|
+
/** Delete the local branch when a worktree is archived. Restore brings it back from the snapshot. */
|
|
21
|
+
deleteBranchOnArchive: z.boolean().optional(),
|
|
22
|
+
});
|
|
23
|
+
/** Where a repository lives on the computer, and what its copy list matches there right now. */
|
|
24
|
+
export const RepoPlacesSchema = z.object({
|
|
25
|
+
root: z.string(), worktrees: z.string(), copyMatches: z.array(z.string()),
|
|
26
|
+
});
|
|
27
|
+
export const ConversationSourceSchema = z.object({
|
|
28
|
+
version: z.literal(1),
|
|
29
|
+
conversationId: z.string().min(1).max(1000),
|
|
30
|
+
messageId: z.string().min(1).max(300),
|
|
31
|
+
requestId: z.string().min(1).max(300).optional(),
|
|
32
|
+
kind: z.enum(['prompt', 'reply', 'steering', 'legacy']),
|
|
33
|
+
revision: z.string().regex(/^[a-f0-9]{64}$/),
|
|
34
|
+
recordedAt: z.iso.datetime().optional(),
|
|
35
|
+
});
|
|
36
|
+
export const ConversationSourceResultSchema = z.discriminatedUnion('status', [
|
|
37
|
+
z.object({ status: z.literal('available'), source: ConversationSourceSchema,
|
|
38
|
+
role: z.enum(['user', 'assistant']), text: z.string(), outcome: z.string().optional() }),
|
|
39
|
+
z.object({ status: z.enum(['unavailable', 'changed']), message: z.string() }),
|
|
40
|
+
]);
|
|
41
|
+
export const ConversationOverviewContentSchema = z.object({
|
|
42
|
+
title: z.string().trim().min(1).max(100),
|
|
43
|
+
summary: z.string().trim().min(1).max(700),
|
|
44
|
+
/** Oldest topic first. Related refinements belong in the same topic. */
|
|
45
|
+
topics: z.array(z.object({
|
|
46
|
+
title: z.string().trim().min(1).max(100),
|
|
47
|
+
summary: z.string().trim().min(1).max(500),
|
|
48
|
+
decisions: z.array(z.string().trim().min(1).max(300)).max(5),
|
|
49
|
+
/** Absent on older summaries until rebuilt from the saved conversation. */
|
|
50
|
+
id: z.string().optional(),
|
|
51
|
+
mergedFrom: z.array(z.string()).optional(),
|
|
52
|
+
sources: z.array(ConversationSourceSchema).max(8).optional(),
|
|
53
|
+
decisionSources: z.array(z.array(ConversationSourceSchema).max(4)).max(5).optional(),
|
|
54
|
+
/** Explicit completion reports, aligned with decisions. Missing/empty means no completion claim. */
|
|
55
|
+
decisionCompletionSources: z.array(z.array(ConversationSourceSchema).max(4)).max(5).optional(),
|
|
56
|
+
firstRecordedAt: z.iso.datetime().optional(),
|
|
57
|
+
lastRecordedAt: z.iso.datetime().optional(),
|
|
58
|
+
})).min(1).max(12),
|
|
59
|
+
});
|
|
60
|
+
export const ConversationOverviewSchema = ConversationOverviewContentSchema.extend({ updatedAt: z.string(), sourceVersion: z.literal(1).optional() });
|
|
61
|
+
export const ConversationOverviewStateSchema = z.object({
|
|
62
|
+
status: z.enum(['empty', 'updating', 'ready', 'error']),
|
|
63
|
+
overview: ConversationOverviewSchema.optional(),
|
|
64
|
+
recovery: ActivityRecoverySchema.optional(),
|
|
65
|
+
});
|
|
66
|
+
/** Explicit choices for one coding conversation, kept separate for each provider. */
|
|
67
|
+
export const WorkspaceModelPreferencesSchema = z.object({
|
|
68
|
+
provider: z.enum(['claude', 'codex']),
|
|
69
|
+
model: z.string().trim().min(1).max(200),
|
|
70
|
+
effort: z.enum(EFFORT_LEVELS),
|
|
71
|
+
});
|
|
5
72
|
export const WorkerWorkspaceSchema = z.object({
|
|
6
73
|
workerId: z.uuidv7(), repoId: z.string().min(1), title: z.string().min(1).max(200),
|
|
74
|
+
/** Stable compact label, independent of the descriptive title. Older daemons omit it. */
|
|
75
|
+
shortName: z.string().regex(/^Worktree [1-9]\d*$/).optional(),
|
|
7
76
|
brief: z.string().max(8000).default(''),
|
|
8
77
|
workspaceId: z.string(), conversationId: z.string(),
|
|
9
78
|
state: z.enum(['creating', 'ready', 'setup_failed', 'archived']),
|
|
10
79
|
branch: z.string().optional(), baseRef: z.string().optional(), baseSha: z.string().optional(),
|
|
11
80
|
resume: z.string().optional(), error: z.string().optional(),
|
|
81
|
+
/** The setup command's progress on a ready worktree. A failure's output is in `error`. */
|
|
82
|
+
setup: z.enum(['running', 'failed']).optional(),
|
|
83
|
+
/** First of the ten ports reserved for this worktree's servers. */
|
|
84
|
+
port: z.number().int().min(1024).max(65525).optional(),
|
|
12
85
|
createdAt: z.string(), updatedAt: z.string(),
|
|
86
|
+
overview: ConversationOverviewSchema.optional(),
|
|
13
87
|
});
|
|
14
88
|
export const WorkspaceCommandSchema = z.object({
|
|
15
|
-
action: z.enum(['list', 'create', 'history', 'archive', 'restore', 'import', 'clear-history'
|
|
89
|
+
action: z.enum(['list', 'create', 'rename', 'refresh-title', 'history', 'archive', 'restore', 'import', 'clear-history', 'inspect-run', 'continue-run',
|
|
90
|
+
'settings', 'save-settings', 'setup', 'delete', 'overview', 'overview-source', 'message-source', 'model-settings', 'save-model-settings', 'message-image', 'pasted-text', 'delivery-status']),
|
|
91
|
+
source: ConversationSourceSchema.optional(),
|
|
92
|
+
messageId: z.string().min(1).max(400).optional(),
|
|
93
|
+
/** Retry a failed overview without discarding the last saved one. */
|
|
94
|
+
retry: z.boolean().optional(),
|
|
95
|
+
fileIndex: z.number().int().min(0).max(5).optional(),
|
|
96
|
+
textOffset: z.number().int().min(0).max(10_485_760).optional(),
|
|
97
|
+
textLimit: z.number().int().min(1).max(32_000).optional(),
|
|
98
|
+
imageIndex: z.number().int().min(0).max(5).optional(), steeringId: z.string().optional(),
|
|
99
|
+
requestId: z.uuidv7().optional(), reviewId: z.uuidv7().optional(),
|
|
100
|
+
instruction: z.string().trim().min(1).max(8000).optional(),
|
|
16
101
|
repoId: z.string().min(1).optional(), workerId: z.uuidv7().optional(),
|
|
17
102
|
checkout: z.boolean().optional(), revision: z.string().optional(),
|
|
18
103
|
title: z.string().trim().min(1).max(200).optional(),
|
|
19
104
|
brief: z.string().max(8000).optional(), before: z.string().optional(),
|
|
105
|
+
/** History navigation only: remember an explicitly opened Main conversation. */
|
|
106
|
+
open: z.boolean().optional(),
|
|
107
|
+
settings: RepoSettingsSchema.optional(),
|
|
108
|
+
provider: z.enum(['claude', 'codex']).optional(),
|
|
109
|
+
modelPreferences: WorkspaceModelPreferencesSchema.optional(),
|
|
110
|
+
/** `delete` only: go ahead even though the worktree holds work that is not in the base branch. */
|
|
111
|
+
force: z.boolean().optional(),
|
|
20
112
|
legacy: z.object({
|
|
21
113
|
messages: z.array(SavedChatMessageSchema).max(10_000), resume: z.string().optional(),
|
|
22
114
|
sessionCheckout: z.boolean().optional(),
|
|
23
115
|
}).optional(),
|
|
24
116
|
});
|
|
117
|
+
/** Work an archived worktree still holds that is neither in the repository's base branch nor pushed. */
|
|
118
|
+
export const UnmergedWorkSchema = z.object({
|
|
119
|
+
commits: z.number().int().min(0),
|
|
120
|
+
/** The archive snapshot holds files that were never committed. */
|
|
121
|
+
uncommitted: z.boolean(),
|
|
122
|
+
});
|
|
25
123
|
export const WorkspaceRunSchema = z.object({
|
|
26
124
|
requestId: z.string(), prompt: z.string(),
|
|
125
|
+
replyTo: ConversationSourceSchema.optional(),
|
|
126
|
+
agentHandoff: AgentHandoffSchema.optional(),
|
|
127
|
+
fileNames: z.array(z.string().min(1).max(180)).max(6).optional(),
|
|
128
|
+
imageCount: z.number().int().min(0).max(6).optional(), imageOnly: z.boolean().optional(),
|
|
129
|
+
imageNames: z.array(z.string().min(1).max(255).nullable()).max(6).optional(),
|
|
130
|
+
steering: z.array(z.object({ id: z.string(), prompt: z.string(),
|
|
131
|
+
imageCount: z.number().int().min(0).max(6).optional(), imageOnly: z.boolean().optional(),
|
|
132
|
+
imageNames: z.array(z.string().min(1).max(255).nullable()).max(6).optional(),
|
|
133
|
+
/** Last output frame when the provider accepted this instruction. */
|
|
134
|
+
afterSeq: z.number().int().min(0).optional(),
|
|
135
|
+
})).optional(),
|
|
136
|
+
/** A reviewed continuation was durably accepted; the original is not replayable. */
|
|
137
|
+
reviewedContinuationId: z.uuidv7().optional(),
|
|
27
138
|
handoff: z.object({ from: z.enum(['claude', 'codex']), to: z.enum(['claude', 'codex']) }).optional(),
|
|
28
139
|
frames: z.array(z.record(z.string(), z.unknown())),
|
|
29
140
|
terminated: z.boolean(),
|
|
30
141
|
});
|
|
142
|
+
export const RunReviewSchema = z.object({
|
|
143
|
+
requestId: z.uuidv7(), reviewId: z.uuidv7(), inspectedAt: z.string(),
|
|
144
|
+
prompt: z.string(), workspace: z.string().optional(), branch: z.string().optional(),
|
|
145
|
+
changes: z.string(), diff: z.string(), inspectionError: z.string().optional(),
|
|
146
|
+
progress: z.string(), answer: z.string().optional(), evidence: z.string(),
|
|
147
|
+
tools: z.array(z.object({ name: z.string(), phase: z.string(), itemId: z.string().optional(), outcome: z.string().optional() })),
|
|
148
|
+
unresolved: z.array(z.string()),
|
|
149
|
+
continuationId: z.uuidv7(), continuedAt: z.string().optional(), instruction: z.string().optional(),
|
|
150
|
+
});
|
|
151
|
+
/** Durable receipt for a requested worktree lifetime change. */
|
|
152
|
+
export const WorktreeOperationSchema = z.object({
|
|
153
|
+
id: z.string().uuid(), repoId: z.string(), workerId: z.uuidv7(), title: z.string(),
|
|
154
|
+
action: z.enum(['archive', 'delete']),
|
|
155
|
+
state: z.enum(['waiting', 'running', 'done', 'blocked', 'failed']),
|
|
156
|
+
message: z.string(), updatedAt: z.string(),
|
|
157
|
+
});
|
|
158
|
+
export const WorktreeLifecycleRequestSchema = z.discriminatedUnion('action', [
|
|
159
|
+
z.object({ action: z.literal('list') }),
|
|
160
|
+
z.object({ action: z.literal('create'), repoId: z.string().min(1).max(300), workerId: z.uuidv7(),
|
|
161
|
+
title: z.string().trim().min(1).max(120).optional() }),
|
|
162
|
+
z.object({ action: z.enum(['archive', 'delete']), id: z.string().uuid(),
|
|
163
|
+
repoId: z.string().min(1), workerId: z.uuidv7(),
|
|
164
|
+
/** Only after the owner explicitly approves discarding the reported unmerged work. */
|
|
165
|
+
force: z.boolean().optional(),
|
|
166
|
+
}),
|
|
167
|
+
]);
|
|
31
168
|
export const WorkspaceSnapshotSchema = z.object({
|
|
169
|
+
continuationProvider: z.enum(['claude', 'codex']).optional(),
|
|
170
|
+
/** Present only for complete lists, never history or other partial replies. */
|
|
171
|
+
scope: z.object({ repoIds: z.array(z.string()), revision: z.number().int().nonnegative() }).optional(),
|
|
172
|
+
/** Main conversations opened on a client or containing saved work. List replies only. */
|
|
173
|
+
openedCheckouts: z.array(z.string()).optional(),
|
|
174
|
+
operations: z.array(WorktreeOperationSchema).optional(),
|
|
175
|
+
modelPreferences: WorkspaceModelPreferencesSchema.nullable().optional(),
|
|
32
176
|
workers: z.array(WorkerWorkspaceSchema),
|
|
177
|
+
overviewState: ConversationOverviewStateSchema.optional(),
|
|
178
|
+
sourceResult: ConversationSourceResultSchema.optional(),
|
|
179
|
+
review: RunReviewSchema.optional(),
|
|
33
180
|
checkout: z.object({
|
|
34
181
|
repoId: z.string(), conversationId: z.string(), revision: z.string(),
|
|
35
182
|
resume: z.string().optional(),
|
|
36
183
|
}).optional(),
|
|
37
184
|
runs: z.array(WorkspaceRunSchema).optional(),
|
|
185
|
+
delivery: z.object({ requestId: z.uuidv7(), state: z.enum(['accepted', 'missing', 'unavailable']), revision: z.string(),
|
|
186
|
+
requestDigest: z.string().regex(/^[a-f0-9]{64}$/).optional() }).optional(),
|
|
187
|
+
pastedText: z.object({ text: z.string().max(32_000), nextOffset: z.number().int().min(0).optional() }).optional(),
|
|
188
|
+
messageImage: z.string().max(5_000_100).optional(),
|
|
38
189
|
legacyMessages: z.array(SavedChatMessageSchema).optional(),
|
|
39
190
|
nextBefore: z.string().optional(),
|
|
191
|
+
settings: RepoSettingsSchema.optional(),
|
|
192
|
+
places: RepoPlacesSchema.optional(),
|
|
193
|
+
/** A `delete` that was not carried out: what would be lost. Sending it again with `force` deletes. */
|
|
194
|
+
unmerged: UnmergedWorkSchema.optional(),
|
|
40
195
|
});
|
|
@@ -13,6 +13,18 @@
|
|
|
13
13
|
"./quick-add": {
|
|
14
14
|
"types": "./dist/quickAdd.d.ts",
|
|
15
15
|
"default": "./dist/quickAdd.js"
|
|
16
|
+
},
|
|
17
|
+
"./room-client": {
|
|
18
|
+
"types": "./dist/roomClient.d.ts",
|
|
19
|
+
"default": "./dist/roomClient.js"
|
|
20
|
+
},
|
|
21
|
+
"./thinking-orb": {
|
|
22
|
+
"types": "./dist/thinking-orb/index.d.ts",
|
|
23
|
+
"default": "./dist/thinking-orb/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./chat-activity": {
|
|
26
|
+
"types": "./dist/chatActivity.d.ts",
|
|
27
|
+
"default": "./dist/chatActivity.js"
|
|
16
28
|
}
|
|
17
29
|
},
|
|
18
30
|
"keywords": [],
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ControlDeviceProfileSchema } from './computer.js';
|
|
3
|
+
|
|
4
|
+
export const RegisterDeviceSchema = ControlDeviceProfileSchema.extend({
|
|
5
|
+
reminderDeviceId: z.string().uuid().optional(),
|
|
6
|
+
installationId: z.string().min(1).max(128),
|
|
7
|
+
appVersion: z.string().trim().min(1).max(120).optional(),
|
|
8
|
+
}).strict();
|
|
9
|
+
export const AccountDeviceSchema = ControlDeviceProfileSchema.extend({
|
|
10
|
+
id: z.string().uuid(), installationId: z.string(),
|
|
11
|
+
role: z.enum(['computer', 'access']), appVersion: z.string().nullable(),
|
|
12
|
+
createdAt: z.string(), lastSeenAt: z.string(),
|
|
13
|
+
sharedCredential: z.boolean(), current: z.boolean(), connected: z.boolean(), inControl: z.boolean(),
|
|
14
|
+
});
|
|
15
|
+
export const DeviceListSchema = z.object({ devices: z.array(AccountDeviceSchema), newDevices: z.array(z.string().uuid()) });
|
|
16
|
+
export type AccountDevice = z.infer<typeof AccountDeviceSchema>;
|
|
17
|
+
export type DeviceList = z.infer<typeof DeviceListSchema>;
|
|
18
|
+
export type RegisterDevice = z.infer<typeof RegisterDeviceSchema>;
|
|
19
|
+
|
|
20
|
+
export function availableDeviceName(base: string, existing: readonly string[]): string {
|
|
21
|
+
const names = new Set(existing.map(name => name.toLocaleLowerCase('en-US')));
|
|
22
|
+
if (!names.has(base.toLocaleLowerCase('en-US'))) return base;
|
|
23
|
+
for (let number = 2; ; number++) {
|
|
24
|
+
const suffix = ` ${number}`;
|
|
25
|
+
const name = base.slice(0, 120 - suffix.length) + suffix;
|
|
26
|
+
if (!names.has(name.toLocaleLowerCase('en-US'))) return name;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Safe diagnostics only. Provider text, prompts and generated output never cross this boundary. */
|
|
4
|
+
export const ActivityRecoverySchema = z.object({
|
|
5
|
+
id: z.string(),
|
|
6
|
+
problem: z.enum(['response_format', 'source_validation', 'provider_auth', 'provider_limit',
|
|
7
|
+
'provider_unavailable', 'interrupted', 'history_changed', 'unknown']),
|
|
8
|
+
phase: z.enum(['waiting', 'retrying', 'paused', 'needs_action']),
|
|
9
|
+
attempts: z.number().int().nonnegative(),
|
|
10
|
+
updatedAt: z.iso.datetime(),
|
|
11
|
+
nextAttemptAt: z.iso.datetime().optional(),
|
|
12
|
+
retryAfter: z.iso.datetime(),
|
|
13
|
+
});
|
|
14
|
+
export type ActivityRecovery = z.infer<typeof ActivityRecoverySchema>;
|
|
15
|
+
|
|
16
|
+
/** Shared desktop/mobile copy and read scheduling; polling never authorizes another inference. */
|
|
17
|
+
export function activityRecoveryView(state?: { status: string; overview?: unknown; recovery?: ActivityRecovery }, now = Date.now()): {
|
|
18
|
+
notice?: string; canRetry: boolean; refreshAfter: number | false;
|
|
19
|
+
} {
|
|
20
|
+
const recovery = state?.recovery;
|
|
21
|
+
if (state?.status === 'ready' || state?.status === 'empty' || !state) return { canRetry: false, refreshAfter: false };
|
|
22
|
+
const failed = state.overview ? 'Couldn’t update the summary.' : 'Couldn’t create the summary.';
|
|
23
|
+
const kept = state.overview ? ' Showing the last saved version.' : '';
|
|
24
|
+
if (!recovery) return state.status === 'error'
|
|
25
|
+
? { notice: failed + kept, canRetry: true, refreshAfter: false }
|
|
26
|
+
: { canRetry: false, refreshAfter: 3000 };
|
|
27
|
+
if (recovery.phase === 'waiting' || recovery.phase === 'retrying') {
|
|
28
|
+
const notice = recovery.phase === 'retrying' ? 'Automatically retrying the summary.'
|
|
29
|
+
: recovery.problem === 'provider_unavailable' ? 'The summary will retry after a provider connection problem.'
|
|
30
|
+
: 'The summary will retry shortly.';
|
|
31
|
+
return { notice: notice + kept, canRetry: false, refreshAfter: 3000 };
|
|
32
|
+
}
|
|
33
|
+
const notice = recovery.problem === 'provider_auth' ? 'Sign in to your AI provider on your computer, then try again.'
|
|
34
|
+
: recovery.problem === 'provider_limit' ? 'Summary updates are paused because the AI provider’s usage limit was reached.'
|
|
35
|
+
: recovery.problem === 'response_format' || recovery.problem === 'source_validation' ? 'The new summary could not be validated. Updates are paused.'
|
|
36
|
+
: recovery.problem === 'provider_unavailable' ? 'The AI provider is still unavailable. Summary retries are paused.'
|
|
37
|
+
: recovery.problem === 'history_changed' ? 'The conversation changed during recovery. Summary updates are paused.'
|
|
38
|
+
: recovery.problem === 'interrupted' ? 'Summary recovery was interrupted. Retries are paused.'
|
|
39
|
+
: failed;
|
|
40
|
+
const wait = Math.max(0, Date.parse(recovery.retryAfter) - now);
|
|
41
|
+
return { notice: notice + kept, canRetry: wait === 0, refreshAfter: wait || false };
|
|
42
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Snapshot from the authenticated account, never supplied by a sending agent. */
|
|
4
|
+
export const ParticipantIdentitySchema = z.object({
|
|
5
|
+
id: z.uuid(), name: z.string().max(255), handle: z.string().max(30).nullable(),
|
|
6
|
+
avatarUrl: z.string().url().nullable(),
|
|
7
|
+
});
|
|
8
|
+
export type ParticipantIdentity = z.infer<typeof ParticipantIdentitySchema>;
|
|
9
|
+
|
|
10
|
+
/** Display attribution only. The execution prompt and its scope stay on the daemon. */
|
|
11
|
+
export const AgentHandoffSchema = z.object({
|
|
12
|
+
sender: z.string(), message: z.string(), owner: ParticipantIdentitySchema.optional(),
|
|
13
|
+
sourceConversationId: z.string().optional(),
|
|
14
|
+
kind: z.literal('team-request').optional(), approvedBy: ParticipantIdentitySchema.optional(),
|
|
15
|
+
});
|
|
16
|
+
export type AgentHandoff = z.infer<typeof AgentHandoffSchema>;
|
|
17
|
+
|
|
18
|
+
const agentId = z.string().regex(/^[a-f0-9]{64}$/);
|
|
19
|
+
/** Delegated task scope and navigation; cannot override user restrictions or grant extra permissions. */
|
|
20
|
+
export const AgentHandoffContextSchema = z.object({
|
|
21
|
+
projectId: z.uuid().optional(),
|
|
22
|
+
taskId: z.uuid().optional(),
|
|
23
|
+
commentIds: z.array(z.uuid()).max(20).optional(),
|
|
24
|
+
baseRevision: z.string().regex(/^[a-f0-9]{7,64}$/i).optional(),
|
|
25
|
+
constraints: z.array(z.string().min(1).max(500)).max(20).optional(),
|
|
26
|
+
outcome: z.string().min(1).max(2000).optional(),
|
|
27
|
+
sources: z.array(z.object({
|
|
28
|
+
href: z.string().min(1).max(2000),
|
|
29
|
+
id: z.string().max(200).optional(),
|
|
30
|
+
revision: z.string().max(200).optional(),
|
|
31
|
+
authority: z.string().min(1).max(100),
|
|
32
|
+
coverage: z.string().max(1000).optional(),
|
|
33
|
+
}).strict()).max(20).optional(),
|
|
34
|
+
coverage: z.string().max(2000).optional(),
|
|
35
|
+
}).strict();
|
|
36
|
+
|
|
37
|
+
export const AgentExecutionSettingsSchema = z.object({
|
|
38
|
+
provider: z.enum(['claude', 'codex']),
|
|
39
|
+
model: z.string().nullable(),
|
|
40
|
+
effort: z.string().nullable(),
|
|
41
|
+
provenance: z.object({ provider: z.string(), model: z.string(), effort: z.string() }),
|
|
42
|
+
});
|
|
43
|
+
export type AgentExecutionSettings = z.infer<typeof AgentExecutionSettingsSchema>;
|
|
44
|
+
|
|
45
|
+
/** Only the first message of a fresh worktree may choose execution settings. */
|
|
46
|
+
export const AgentInitialSettingsSchema = z.object({
|
|
47
|
+
provider: z.enum(['claude', 'codex']),
|
|
48
|
+
model: z.string().trim().min(1).max(200).optional(),
|
|
49
|
+
effort: z.string().trim().min(1).max(32).optional(),
|
|
50
|
+
}).strict();
|
|
51
|
+
export type AgentInitialSettings = z.infer<typeof AgentInitialSettingsSchema>;
|
|
52
|
+
|
|
53
|
+
export const AgentMessageSchema = z.object({
|
|
54
|
+
sourceId: agentId,
|
|
55
|
+
targetId: agentId,
|
|
56
|
+
message: z.string().trim().min(1).max(6000),
|
|
57
|
+
context: AgentHandoffContextSchema.optional(),
|
|
58
|
+
initialSettings: AgentInitialSettingsSchema.optional(),
|
|
59
|
+
/** Daemon-owned admission snapshot, never accepted from send callers. */
|
|
60
|
+
dispatch: z.object({
|
|
61
|
+
at: z.string(),
|
|
62
|
+
owner: ParticipantIdentitySchema.optional(),
|
|
63
|
+
source: z.object({ title: z.string(), conversationId: z.string() }),
|
|
64
|
+
target: z.object({ title: z.string(), conversationId: z.string(), revision: z.string() }),
|
|
65
|
+
resolved: AgentExecutionSettingsSchema.nullable(),
|
|
66
|
+
}).optional(),
|
|
67
|
+
});
|
|
68
|
+
export type AgentMessage = z.infer<typeof AgentMessageSchema>;
|
|
69
|
+
|
|
70
|
+
export const AgentMessageCommandSchema = z.discriminatedUnion('action', [
|
|
71
|
+
z.object({ action: z.literal('models'), sourceId: agentId, provider: z.enum(['claude', 'codex']) }).strict(),
|
|
72
|
+
z.object({ action: z.literal('list'), sourceId: agentId,
|
|
73
|
+
repoId: z.string().min(1).max(300).optional(),
|
|
74
|
+
limit: z.number().int().min(1).max(20).default(10),
|
|
75
|
+
offset: z.number().int().min(0).max(10000).default(0) }),
|
|
76
|
+
AgentMessageSchema.omit({ dispatch: true }).extend({ action: z.literal('send'), requestId: z.uuidv7() }).strict(),
|
|
77
|
+
z.object({ action: z.literal('await'), sourceId: agentId, requestId: z.uuidv7(),
|
|
78
|
+
timeoutMs: z.number().int().min(0).max(50000).default(50000),
|
|
79
|
+
offset: z.number().int().min(0).max(10000000).default(0) }),
|
|
80
|
+
z.object({ action: z.literal('read'), sourceId: agentId, requestId: z.uuidv7(),
|
|
81
|
+
offset: z.number().int().min(0).max(10000000).default(0) }),
|
|
82
|
+
]);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const AiUsageWindowSchema = z.object({
|
|
4
|
+
id: z.string().min(1).max(160),
|
|
5
|
+
label: z.string().min(1).max(120),
|
|
6
|
+
usedPercent: z.number().finite().nonnegative().nullable(),
|
|
7
|
+
windowMinutes: z.number().int().positive().nullable(),
|
|
8
|
+
resetsAt: z.string().datetime().nullable(),
|
|
9
|
+
});
|
|
10
|
+
export type AiUsageWindow = z.infer<typeof AiUsageWindowSchema>;
|
|
11
|
+
|
|
12
|
+
export const AiUsageSchema = z.object({
|
|
13
|
+
provider: z.enum(['fast-ai', 'claude', 'codex']),
|
|
14
|
+
status: z.enum(['available', 'unavailable']),
|
|
15
|
+
sampledAt: z.string().datetime(),
|
|
16
|
+
windows: z.array(AiUsageWindowSchema).max(32),
|
|
17
|
+
});
|
|
18
|
+
export type AiUsage = z.infer<typeof AiUsageSchema>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const ARTIFACT_MAX_BYTES = 100 * 1024 * 1024;
|
|
4
|
+
export const artifactPath = z.string().min(1).max(1024).refine(
|
|
5
|
+
(path) => !path.includes('\\') && !/[\u0000-\u001f]/.test(path) &&
|
|
6
|
+
path.split('/').every((part) => part.length > 0 && !part.startsWith('.')),
|
|
7
|
+
'Expected a path inside the notes vault',
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
/** Content identity survives moves; the path is a hint for finding the saved copy. */
|
|
11
|
+
export const ArtifactSchema = z.object({
|
|
12
|
+
id: z.string().regex(/^[a-f0-9]{64}$/),
|
|
13
|
+
path: artifactPath,
|
|
14
|
+
name: z.string().min(1).max(240).refine((name) => !/[\/\\\u0000-\u001f]/.test(name)),
|
|
15
|
+
mediaType: z.string().min(1).max(100),
|
|
16
|
+
size: z.number().int().nonnegative().max(ARTIFACT_MAX_BYTES),
|
|
17
|
+
caption: z.string().max(1000).optional(),
|
|
18
|
+
});
|
|
19
|
+
export type Artifact = z.infer<typeof ArtifactSchema>;
|
|
20
|
+
|
|
21
|
+
export const ArtifactReceiptSchema = z.object({
|
|
22
|
+
type: z.literal('lucidity.artifact'),
|
|
23
|
+
artifact: ArtifactSchema,
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** Only called for successful results from Lucidity's attach_file tool. */
|
|
27
|
+
export function artifactFromToolResult(content: unknown): Artifact | undefined {
|
|
28
|
+
if (typeof content === 'string' && content.length <= 5000) {
|
|
29
|
+
try { return ArtifactReceiptSchema.parse(JSON.parse(content)).artifact; }
|
|
30
|
+
catch { return undefined; }
|
|
31
|
+
}
|
|
32
|
+
const direct = ArtifactReceiptSchema.safeParse(content);
|
|
33
|
+
if (direct.success) return direct.data.artifact;
|
|
34
|
+
if (Array.isArray(content)) {
|
|
35
|
+
for (const block of content) {
|
|
36
|
+
if (block?.type !== 'text' || typeof block.text !== 'string' || block.text.length > 5000) continue;
|
|
37
|
+
try {
|
|
38
|
+
const result = ArtifactReceiptSchema.safeParse(JSON.parse(block.text));
|
|
39
|
+
if (result.success) return result.data.artifact;
|
|
40
|
+
} catch { /* Other text in a tool response is not an attachment. */ }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function withArtifact(artifacts: Artifact[] = [], artifact: Artifact): Artifact[] {
|
|
47
|
+
return [...artifacts.filter((item) => item.id !== artifact.id), artifact];
|
|
48
|
+
}
|
|
@@ -27,13 +27,15 @@ const isFigmaFile = (value: string) => {
|
|
|
27
27
|
};
|
|
28
28
|
export const AutomationScheduleSchema = z.object({
|
|
29
29
|
frequency: z
|
|
30
|
-
.enum(['manual', 'daily', 'weekdays', 'weekly', 'interval'])
|
|
30
|
+
.enum(['manual', 'daily', 'weekdays', 'weekly', 'monthly', 'interval'])
|
|
31
31
|
.default('weekly'),
|
|
32
32
|
time: z
|
|
33
33
|
.string()
|
|
34
34
|
.regex(/^([01]\d|2[0-3]):[0-5]\d$/)
|
|
35
35
|
.default('10:00'),
|
|
36
36
|
dayOfWeek: z.number().int().min(0).max(6).default(0),
|
|
37
|
+
// Stops at 28 so a monthly job runs every month instead of skipping the short ones.
|
|
38
|
+
dayOfMonth: z.number().int().min(1).max(28).optional(),
|
|
37
39
|
everyHours: z
|
|
38
40
|
.number()
|
|
39
41
|
.int()
|
|
@@ -94,8 +96,13 @@ export const AutomationSourceSchema = z.enum([
|
|
|
94
96
|
'journal',
|
|
95
97
|
'notes',
|
|
96
98
|
'repository',
|
|
99
|
+
'github',
|
|
97
100
|
'web',
|
|
98
101
|
]);
|
|
102
|
+
/** Both read from one repository: its files, or the open issues on its GitHub remote. */
|
|
103
|
+
export function usesRepository(sources: readonly z.infer<typeof AutomationSourceSchema>[]) {
|
|
104
|
+
return sources.includes('repository') || sources.includes('github');
|
|
105
|
+
}
|
|
99
106
|
export const AgentAutomationInputSchema = z
|
|
100
107
|
.object({
|
|
101
108
|
workflow: z.literal('agent'),
|
|
@@ -104,7 +111,7 @@ export const AgentAutomationInputSchema = z
|
|
|
104
111
|
.default('custom'),
|
|
105
112
|
name: z.string().trim().min(1).max(100),
|
|
106
113
|
brief: z.string().trim().min(1).max(8000),
|
|
107
|
-
sources: z.array(AutomationSourceSchema).max(
|
|
114
|
+
sources: z.array(AutomationSourceSchema).max(6).default([]),
|
|
108
115
|
repoId: id.optional(),
|
|
109
116
|
provider: z.enum(['claude', 'codex']).default('codex'),
|
|
110
117
|
model: z.string().min(1).max(150).default('default'),
|
|
@@ -116,7 +123,7 @@ export const AgentAutomationInputSchema = z
|
|
|
116
123
|
schedule: AutomationScheduleSchema,
|
|
117
124
|
})
|
|
118
125
|
.strict()
|
|
119
|
-
.refine((input) => !input.sources
|
|
126
|
+
.refine((input) => !usesRepository(input.sources) || !!input.repoId, {
|
|
120
127
|
message: 'Choose a repository to use as a source',
|
|
121
128
|
path: ['repoId'],
|
|
122
129
|
});
|
|
@@ -233,6 +240,18 @@ export const AutomationRunSchema = z.object({
|
|
|
233
240
|
costUsd: z.number().optional(),
|
|
234
241
|
sessionId: z.string().optional(),
|
|
235
242
|
summary: z.string().default(''),
|
|
243
|
+
cancelRequested: z.boolean().optional(),
|
|
244
|
+
workflow: z.object({
|
|
245
|
+
version: z.number().int(),
|
|
246
|
+
attempts: z.number().int(),
|
|
247
|
+
possibleAdditionalCost: z.boolean(),
|
|
248
|
+
steps: z.array(z.object({
|
|
249
|
+
key: z.string(),
|
|
250
|
+
status: z.enum(['running', 'completed', 'uncertain', 'failed']),
|
|
251
|
+
attempts: z.number().int(),
|
|
252
|
+
error: z.string().optional(),
|
|
253
|
+
})),
|
|
254
|
+
}).optional(),
|
|
236
255
|
error: z.string().optional(),
|
|
237
256
|
parentRunId: id.optional(),
|
|
238
257
|
input: AutomationInputSchema.optional(),
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// Original set, in the spirit of (not copied from) Claude Code's rotating spinner
|
|
2
|
+
// verbs — a plain "Thinking…" the whole time a turn is unpredictaby long reads as
|
|
3
|
+
// stuck; cycling a few playful words in Lucid's own voice feels alive instead.
|
|
4
|
+
export const THINKING_WORDS = [
|
|
5
|
+
'Thinking',
|
|
6
|
+
'Mulling',
|
|
7
|
+
'Pondering',
|
|
8
|
+
'Sifting',
|
|
9
|
+
'Weighing it up',
|
|
10
|
+
'Chewing on it',
|
|
11
|
+
'Piecing it together',
|
|
12
|
+
'Untangling',
|
|
13
|
+
'Working it out',
|
|
14
|
+
'Turning it over',
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
/** `12s`, or `2m 05s` once a turn runs past a minute — coding turns can be long. */
|
|
18
|
+
export function formatElapsed(secs: number): string {
|
|
19
|
+
if (secs < 60) return `${secs}s`;
|
|
20
|
+
const m = Math.floor(secs / 60);
|
|
21
|
+
return `${m}m ${String(secs % 60).padStart(2, '0')}s`;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** One tool call, anchored to the `text` offset it fired at. */
|
|
25
|
+
export type ToolMark = { name: string; afterChars: number };
|
|
26
|
+
/** Which orb animation fits what Lucid is doing this instant. A read/search tool in flight reads as
|
|
27
|
+
* `searching`; an edit/write/run tool as `solving`; prose streaming with no tool as `shaping`; and
|
|
28
|
+
* the bare pre-token wait (or anything unrecognised) as `working`. Chat only uses these four of the
|
|
29
|
+
* orb's six states — `listening`/`composing` belong to the voice surface. */
|
|
30
|
+
export function orbStateForTurn(
|
|
31
|
+
tools: ToolMark[] | undefined,
|
|
32
|
+
hasText: boolean
|
|
33
|
+
): 'searching' | 'solving' | 'shaping' | 'working' {
|
|
34
|
+
const last = tools && tools.length ? tools[tools.length - 1]!.name.toLowerCase() : '';
|
|
35
|
+
if (last) {
|
|
36
|
+
if (/read|grep|glob|search|fetch|list|explore|find|web|get|todo|ls/.test(last))
|
|
37
|
+
return 'searching';
|
|
38
|
+
if (
|
|
39
|
+
/edit|write|patch|apply|bash|notebook|create|delete|move|run|update|command|multi/.test(last)
|
|
40
|
+
)
|
|
41
|
+
return 'solving';
|
|
42
|
+
return 'working';
|
|
43
|
+
}
|
|
44
|
+
return hasText ? 'shaping' : 'working';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** The label a reply's one tool line carries. Mid-turn only the tool in flight is worth naming;
|
|
48
|
+
* once the turn settles, only the tally is. */
|
|
49
|
+
export function toolLineLabel(tools: ToolMark[], working: boolean): string {
|
|
50
|
+
const rest = tools.length - 1;
|
|
51
|
+
return working
|
|
52
|
+
? `${tools[tools.length - 1]!.name}…`
|
|
53
|
+
: rest === 0
|
|
54
|
+
? `${tools[0]!.name} used`
|
|
55
|
+
: `${tools[0]!.name} and ${rest} more tool${rest === 1 ? '' : 's'} used`;
|
|
56
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const CodingActivityPhaseSchema = z.enum([
|
|
4
|
+
'working', 'reading', 'editing', 'command', 'needs_input', 'reply_ready', 'failed', 'stopped',
|
|
5
|
+
]);
|
|
6
|
+
const label = z.string().min(1).max(160).regex(/^[^\u0000-\u001f\u007f]*$/);
|
|
7
|
+
export const CodingActivitySessionSchema = z.object({
|
|
8
|
+
id: z.uuid(),
|
|
9
|
+
repoId: label,
|
|
10
|
+
workerId: z.uuid().nullable(),
|
|
11
|
+
title: label,
|
|
12
|
+
phase: CodingActivityPhaseSchema,
|
|
13
|
+
startedAt: z.number().int().nonnegative(),
|
|
14
|
+
updatedAt: z.number().int().nonnegative(),
|
|
15
|
+
}).strict();
|
|
16
|
+
export const CodingActivitySnapshotSchema = z.object({
|
|
17
|
+
type: z.literal('coding_activity'),
|
|
18
|
+
protocol: z.literal(1),
|
|
19
|
+
computerId: z.string().min(1).max(128),
|
|
20
|
+
revision: z.number().int().nonnegative(),
|
|
21
|
+
sessions: z.array(CodingActivitySessionSchema).max(32),
|
|
22
|
+
}).strict();
|
|
23
|
+
export type CodingActivitySession = z.infer<typeof CodingActivitySessionSchema>;
|
|
24
|
+
export type CodingActivitySnapshot = z.infer<typeof CodingActivitySnapshotSchema>;
|
|
25
|
+
export type CodingActivityPhase = CodingActivitySession['phase'];
|
|
26
|
+
|
|
27
|
+
export function codingActivityIsRunning(phase: CodingActivityPhase): boolean {
|
|
28
|
+
return !['reply_ready', 'failed', 'stopped'].includes(phase);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function codingActivityOrder(a: CodingActivitySession, b: CodingActivitySession): number {
|
|
32
|
+
const rank = (s: CodingActivitySession) => s.phase === 'needs_input' ? 0
|
|
33
|
+
: s.phase === 'failed' ? 1 : codingActivityIsRunning(s.phase) ? 2 : 3;
|
|
34
|
+
return rank(a) - rank(b) || b.updatedAt - a.updatedAt || a.id.localeCompare(b.id);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const CODING_ACTIVITY_LABELS: Record<CodingActivityPhase, string> = {
|
|
38
|
+
working: 'Working', reading: 'Reading files', editing: 'Editing files', command: 'Running a command',
|
|
39
|
+
needs_input: 'Needs your input', reply_ready: 'Reply ready', failed: 'Needs checking', stopped: 'Stopped',
|
|
40
|
+
};
|
|
@@ -679,7 +679,7 @@ export function choiceBySaying(labels: readonly string[], text: string): number
|
|
|
679
679
|
return hits.length === 1 ? hits[0]! : null;
|
|
680
680
|
}
|
|
681
681
|
|
|
682
|
-
/** A question Fast
|
|
682
|
+
/** A question Fast AI asked about a task ("What should the comment say?"), answered next. */
|
|
683
683
|
export type TaskEditQuestion = 'due' | 'comment' | 'subtask' | 'title' | 'description' | 'newDescription' | 'reminder';
|
|
684
684
|
|
|
685
685
|
/** The next words, read as the answer to `question` rather than as an instruction. */
|
|
@@ -219,7 +219,7 @@ export const COMMAND_EVENT_OUTCOMES = [
|
|
|
219
219
|
] as const;
|
|
220
220
|
const Outcome = z.enum(COMMAND_EVENT_OUTCOMES);
|
|
221
221
|
|
|
222
|
-
/** One instruction said to Fast
|
|
222
|
+
/** One instruction said to Fast AI or Chat, recorded for the Fast AI review. */
|
|
223
223
|
export const CommandEventSchema = z.object({
|
|
224
224
|
id: z.uuid(),
|
|
225
225
|
mode: z.enum(['fast', 'chat']),
|