@opencorelabs/lucidity 0.9.5 → 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 +4 -0
- package/dist/automations/service.d.ts.map +1 -1
- package/dist/automations/service.js +24 -3
- 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/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 +4 -0
- package/dist/coding/listPrs.d.ts.map +1 -1
- package/dist/coding/listPrs.js +1 -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 +25 -8
- package/dist/coding/runCodeTurn.d.ts.map +1 -1
- package/dist/coding/runCodeTurn.js +93 -77
- 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 +230 -4
- package/dist/coding/workspaceRegistry.d.ts.map +1 -1
- package/dist/coding/workspaceRegistry.js +827 -37
- 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 +1 -1
- package/dist/coding/worktree.d.ts.map +1 -1
- package/dist/coding/worktree.js +3 -2
- package/dist/coding/worktreeSetup.d.ts +1 -1
- package/dist/coding/worktreeSetup.d.ts.map +1 -1
- package/dist/coding/worktreeSetup.js +43 -10
- 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 +232 -56
- 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 +1 -1
- package/dist/jobs/briefing.d.ts.map +1 -1
- package/dist/jobs/briefing.js +16 -33
- 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/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 +18 -1
- package/dist/providerRecovery.d.ts.map +1 -1
- package/dist/providerRecovery.js +3 -1
- 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 +41 -0
- package/dist/room/client.d.ts.map +1 -1
- package/dist/room/client.js +224 -25
- 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 -3
- 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/turnQueue.d.ts +24 -2
- package/dist/room/turnQueue.d.ts.map +1 -1
- package/dist/room/turnQueue.js +96 -30
- package/dist/runtimeStore.d.ts +17 -0
- package/dist/runtimeStore.d.ts.map +1 -1
- package/dist/runtimeStore.js +33 -4
- 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/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 +25 -3
- package/src/automations/skill.ts +5 -37
- 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 +1 -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 +106 -92
- package/src/coding/workspaceOverview.ts +99 -0
- package/src/coding/workspaceRegistry.ts +762 -39
- package/src/coding/workspaceTitle.ts +10 -0
- package/src/coding/worktree.ts +3 -2
- package/src/coding/worktreeSetup.ts +33 -10
- 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 +224 -50
- package/src/install.ts +4 -2
- package/src/jobs/briefing.ts +18 -29
- 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/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 +3 -1
- 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 +238 -31
- package/src/room/codingActivity.ts +70 -0
- package/src/room/computer.ts +19 -3
- package/src/room/context.ts +7 -2
- package/src/room/desktop-live.integration.ts +203 -0
- package/src/room/turnQueue.ts +91 -34
- package/src/runtimeStore.ts +36 -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/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 +8 -0
- package/vendor/runtime/dist/executor/claudeAgent.d.ts +18 -1
- package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/claudeAgent.js +157 -39
- 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 +18 -2
- package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codex.js +134 -18
- 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 +19 -1
- package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/health.js +19 -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 +18 -1
- package/vendor/runtime/dist/executor/ownership.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/ownership.js +3 -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 +30 -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 +2 -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 +6 -1
- 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 +149 -37
- 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 +136 -21
- 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 +16 -2
- 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 +3 -1
- 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 +27 -7
- package/vendor/runtime/src/executor/usage.ts +58 -0
- package/vendor/runtime/src/harness/index.ts +2 -5
- package/vendor/runtime/src/harness/types.ts +3 -1
- package/vendor/runtime/src/index.ts +7 -1
- 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 +61 -14
- package/vendor/shared/dist/automations.d.ts.map +1 -1
- package/vendor/shared/dist/automations.js +10 -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 +25 -0
- 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 +5 -0
- 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 +29 -2
- package/vendor/shared/dist/index.d.ts.map +1 -1
- package/vendor/shared/dist/index.js +26 -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 +43 -0
- package/vendor/shared/dist/messagingSafety.d.ts.map +1 -1
- package/vendor/shared/dist/messagingSafety.js +6 -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 +1631 -17
- package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/harness.js +106 -3
- 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.js +1 -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/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 +3 -1
- 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/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 +740 -2
- package/vendor/shared/dist/workspaces.d.ts.map +1 -1
- package/vendor/shared/dist/workspaces.js +108 -2
- 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 +10 -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 +40 -0
- package/vendor/shared/src/constants.ts +5 -0
- 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 +35 -1
- 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 +10 -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 +120 -3
- package/vendor/shared/src/schemas/notification.ts +2 -1
- package/vendor/shared/src/schemas/organization.ts +2 -0
- package/vendor/shared/src/smartCapture.ts +1 -1
- package/vendor/shared/src/spokenNames.ts +1 -1
- package/vendor/shared/src/taskSharing.ts +13 -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 -1
- 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 +119 -2
|
@@ -2,6 +2,16 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
/** Additive v1 contract. Feature names, not app release numbers, gate operations. */
|
|
4
4
|
export const COMPUTER_PROTOCOL = 1;
|
|
5
|
+
export const ControlDeviceProfileSchema = z.object({
|
|
6
|
+
name: z.string().trim().min(1).max(120),
|
|
7
|
+
kind: z.enum(['phone', 'tablet', 'desktop']),
|
|
8
|
+
});
|
|
9
|
+
export type ControlDeviceProfile = z.infer<typeof ControlDeviceProfileSchema>;
|
|
10
|
+
export const ControlDeviceSchema = ControlDeviceProfileSchema.extend({
|
|
11
|
+
id: z.string().min(1).max(128),
|
|
12
|
+
connected: z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
export type ControlDevice = z.infer<typeof ControlDeviceSchema>;
|
|
5
15
|
export const ComputerSchema = z.object({
|
|
6
16
|
id: z.string().min(1).max(128),
|
|
7
17
|
name: z.string().min(1).max(120),
|
|
@@ -19,7 +29,9 @@ export const ProviderHealthSchema = z.object({
|
|
|
19
29
|
export type ProviderHealth = z.infer<typeof ProviderHealthSchema>;
|
|
20
30
|
export type ComputerProvider = 'claude' | 'codex';
|
|
21
31
|
export const ComputerRuntimeSchema = z.object({
|
|
32
|
+
appVersion: z.string().trim().min(1).max(120).optional(),
|
|
22
33
|
protocol: z.number().int().positive(),
|
|
34
|
+
managedUpdates: z.literal(1).optional(),
|
|
23
35
|
features: z.array(z.string().max(80)).max(64),
|
|
24
36
|
permissions: z.array(z.string().max(80)).max(64),
|
|
25
37
|
providers: z.object({
|
|
@@ -41,30 +53,48 @@ export const ComputerHelloSchema = z.object({
|
|
|
41
53
|
export const ComputerPresenceSchema = z.object({
|
|
42
54
|
type: z.literal('presence'),
|
|
43
55
|
readOnly: z.boolean().optional(),
|
|
56
|
+
automaticControl: z.literal(1).optional(),
|
|
57
|
+
controlRevision: z.number().int().nonnegative().optional(),
|
|
44
58
|
daemonConnected: z.boolean(),
|
|
45
59
|
machine: z.string().nullable().optional(),
|
|
46
60
|
// Undefined means an older relay or failed lookup; null means verified never paired.
|
|
47
61
|
computer: ComputerSchema.nullable().optional(),
|
|
48
62
|
runtime: ComputerRuntimeSchema.nullable().optional(),
|
|
63
|
+
deviceId: z.string().max(128).optional(),
|
|
64
|
+
controllerId: z.string().max(128).nullable().optional(),
|
|
65
|
+
devices: z.array(ControlDeviceSchema).max(32).optional(),
|
|
49
66
|
});
|
|
50
67
|
export type ComputerPresence = z.infer<typeof ComputerPresenceSchema>;
|
|
51
68
|
export type ComputerFeature =
|
|
69
|
+
| 'file-attachments'
|
|
70
|
+
| 'pasted-text-previews'
|
|
71
|
+
| 'file-upload'
|
|
72
|
+
| 'video-upload'
|
|
52
73
|
| 'checkout-history'
|
|
53
74
|
| 'workspaces'
|
|
75
|
+
| 'workspace-io'
|
|
76
|
+
| 'workspace-models'
|
|
54
77
|
| 'repo-settings'
|
|
55
78
|
| 'worktree-delete'
|
|
56
79
|
| 'turn-queue'
|
|
57
80
|
| 'provider-handoff'
|
|
81
|
+
| 'provider-fallback'
|
|
82
|
+
| 'queue-pause'
|
|
83
|
+
| 'repository-requests'
|
|
58
84
|
| 'queue-control'
|
|
85
|
+
| 'queue-draft'
|
|
59
86
|
| 'day-plan'
|
|
60
87
|
| 'ask'
|
|
61
88
|
| 'code'
|
|
62
89
|
| 'briefing'
|
|
63
90
|
| 'attention'
|
|
64
91
|
| 'models'
|
|
92
|
+
| 'usage'
|
|
65
93
|
| 'commands'
|
|
94
|
+
| 'mcp-status'
|
|
66
95
|
| 'steer'
|
|
67
96
|
| 'permission'
|
|
97
|
+
| 'progress-check'
|
|
68
98
|
| 'pull'
|
|
69
99
|
| 'repos'
|
|
70
100
|
| 'prs'
|
|
@@ -151,7 +181,9 @@ export function computerAvailability(
|
|
|
151
181
|
'getConfig',
|
|
152
182
|
'getAutomations',
|
|
153
183
|
'models',
|
|
184
|
+
'usage',
|
|
154
185
|
'commands',
|
|
186
|
+
'mcp-status',
|
|
155
187
|
'repos',
|
|
156
188
|
'prs',
|
|
157
189
|
'journal',
|
|
@@ -193,6 +225,14 @@ export function computerAvailability(
|
|
|
193
225
|
provider ?? runtime.defaults[feature === 'ask' ? 'chat' : 'code'];
|
|
194
226
|
const health = runtime.providers[selected];
|
|
195
227
|
const label = selected === 'claude' ? 'Claude' : 'Codex';
|
|
228
|
+
const other = selected === 'claude' ? 'codex' : 'claude';
|
|
229
|
+
const alternate = runtime.providers[other];
|
|
230
|
+
if (runtime.features.includes('provider-fallback') &&
|
|
231
|
+
(health.auth !== 'authenticated' || health.allowance === 'exhausted' || health.problem) &&
|
|
232
|
+
alternate.auth === 'authenticated' && alternate.allowance !== 'exhausted' && !alternate.problem) {
|
|
233
|
+
return { state: 'ready', title: `${other === 'claude' ? 'Claude' : 'Codex'} available`,
|
|
234
|
+
detail: 'Lucidity can use the other provider when it can safely carry the request and conversation history.', canSend: true };
|
|
235
|
+
}
|
|
196
236
|
if (health.auth === 'login_required' || health.problem === 'login')
|
|
197
237
|
return blocked(
|
|
198
238
|
'provider',
|
|
@@ -379,7 +379,12 @@ export function normalizeBio(input: string): string | null {
|
|
|
379
379
|
// re-fetches an interrupted turn's frames from the daemon's durable turn log
|
|
380
380
|
// (`sinceSeq` onward) so a dropped reply is recovered, never re-run.
|
|
381
381
|
export const HARNESS_REQUEST_KINDS = [
|
|
382
|
+
'file-upload',
|
|
383
|
+
'video-upload',
|
|
384
|
+
'usage',
|
|
382
385
|
'workspaces',
|
|
386
|
+
'workspace-io',
|
|
387
|
+
'recall',
|
|
383
388
|
'getAutomations',
|
|
384
389
|
'automation',
|
|
385
390
|
'queue-control',
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Independent of COMPUTER_PROTOCOL: keep recovery usable across AI protocol changes. */
|
|
4
|
+
export const DAEMON_UPDATE_PROTOCOL = 1;
|
|
5
|
+
export const DaemonVersionSchema = z.string().regex(/^(0|[1-9]\d{0,8})\.(0|[1-9]\d{0,8})\.(0|[1-9]\d{0,8})$/);
|
|
6
|
+
// A socket opening alone does not prove that the relay accepted its credentials.
|
|
7
|
+
export const DaemonUpdateProbeSchema = z.object({
|
|
8
|
+
type: z.literal('daemon_update_probe'),
|
|
9
|
+
protocol: z.literal(DAEMON_UPDATE_PROTOCOL),
|
|
10
|
+
nonce: z.string().uuid(),
|
|
11
|
+
version: DaemonVersionSchema,
|
|
12
|
+
}).strict();
|
|
13
|
+
export const DaemonUpdateReadySchema = DaemonUpdateProbeSchema.extend({
|
|
14
|
+
type: z.literal('daemon_update_ready'),
|
|
15
|
+
});
|
|
16
|
+
export const DaemonUpdateChannelSchema = z.enum(['internal', 'beta', 'stable']);
|
|
17
|
+
export type DaemonUpdateChannel = z.infer<typeof DaemonUpdateChannelSchema>;
|
|
18
|
+
|
|
19
|
+
export function compareDaemonVersions(left: string, right: string): number {
|
|
20
|
+
const a = DaemonVersionSchema.parse(left).split('.').map(Number);
|
|
21
|
+
const b = DaemonVersionSchema.parse(right).split('.').map(Number);
|
|
22
|
+
for (let i = 0; i < 3; i++) {
|
|
23
|
+
const difference = a[i]! - b[i]!;
|
|
24
|
+
if (difference) return Math.sign(difference);
|
|
25
|
+
}
|
|
26
|
+
return 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const DaemonReleaseSchema = z.object({
|
|
30
|
+
version: DaemonVersionSchema,
|
|
31
|
+
// No arbitrary download origins, redirects, credentials or URL parameters.
|
|
32
|
+
archiveUrl: z.string().max(300),
|
|
33
|
+
integrity: z.string().regex(/^sha512-[A-Za-z0-9+/]{86}==$/),
|
|
34
|
+
bytes: z.number().int().min(1).max(512 * 1024 * 1024),
|
|
35
|
+
platforms: z.array(z.enum(['darwin-arm64', 'darwin-x64', 'win32-x64', 'win32-arm64', 'linux-x64', 'linux-arm64'])).min(1).max(6),
|
|
36
|
+
nodeMinimum: DaemonVersionSchema,
|
|
37
|
+
updateProtocol: z.number().int().positive(),
|
|
38
|
+
// Equal epochs promise both releases can read each other's persisted state.
|
|
39
|
+
stateEpoch: z.number().int().nonnegative(),
|
|
40
|
+
}).strict().refine((release) => release.archiveUrl ===
|
|
41
|
+
`https://registry.npmjs.org/@opencorelabs/lucidity/-/lucidity-${release.version}.tgz`,
|
|
42
|
+
{ message: 'Expected the exact public Lucidity npm archive URL' });
|
|
43
|
+
export type DaemonRelease = z.infer<typeof DaemonReleaseSchema>;
|
|
44
|
+
|
|
45
|
+
export const DaemonReleaseManifestSchema = z.object({
|
|
46
|
+
schema: z.literal(1),
|
|
47
|
+
channel: DaemonUpdateChannelSchema,
|
|
48
|
+
sequence: z.number().int().positive().max(Number.MAX_SAFE_INTEGER),
|
|
49
|
+
issuedAt: z.string().datetime(),
|
|
50
|
+
expiresAt: z.string().datetime(),
|
|
51
|
+
minimumVersion: DaemonVersionSchema,
|
|
52
|
+
withdrawnVersions: z.array(DaemonVersionSchema).max(1000),
|
|
53
|
+
// Null pauses distribution without clearing the supported minimum.
|
|
54
|
+
release: DaemonReleaseSchema.nullable(),
|
|
55
|
+
rollout: z.object({
|
|
56
|
+
percent: z.number().int().min(0).max(100),
|
|
57
|
+
salt: z.string().min(1).max(100),
|
|
58
|
+
}).strict(),
|
|
59
|
+
}).strict().superRefine((manifest, ctx) => {
|
|
60
|
+
const issued = Date.parse(manifest.issuedAt);
|
|
61
|
+
const expires = Date.parse(manifest.expiresAt);
|
|
62
|
+
if (expires <= issued || expires - issued > 30 * 24 * 60 * 60_000)
|
|
63
|
+
ctx.addIssue({ code: 'custom', message: 'Manifest validity must be between zero and 30 days' });
|
|
64
|
+
if (manifest.release && (compareDaemonVersions(manifest.release.version, manifest.minimumVersion) < 0 ||
|
|
65
|
+
manifest.withdrawnVersions.includes(manifest.release.version)))
|
|
66
|
+
ctx.addIssue({ code: 'custom', message: 'Offered release must be supported and not withdrawn' });
|
|
67
|
+
});
|
|
68
|
+
export type DaemonReleaseManifest = z.infer<typeof DaemonReleaseManifestSchema>;
|
|
69
|
+
|
|
70
|
+
export const DaemonUpdateStatusSchema = z.object({
|
|
71
|
+
protocol: z.literal(DAEMON_UPDATE_PROTOCOL),
|
|
72
|
+
installedVersion: DaemonVersionSchema,
|
|
73
|
+
targetVersion: DaemonVersionSchema.optional(),
|
|
74
|
+
phase: z.enum(['current', 'checking', 'downloading', 'waiting_for_work', 'restarting', 'verifying', 'rolled_back', 'blocked']),
|
|
75
|
+
required: z.boolean(),
|
|
76
|
+
problem: z.enum(['network', 'verification', 'runtime', 'state_migration', 'startup', 'manual_recovery']).optional(),
|
|
77
|
+
});
|
|
78
|
+
export type DaemonUpdateStatus = z.infer<typeof DaemonUpdateStatusSchema>;
|
|
79
|
+
|
|
80
|
+
export interface DaemonInstallation {
|
|
81
|
+
version: string;
|
|
82
|
+
channel: DaemonUpdateChannel;
|
|
83
|
+
managed: boolean;
|
|
84
|
+
platform: string;
|
|
85
|
+
nodeVersion: string;
|
|
86
|
+
stateEpoch: number;
|
|
87
|
+
updateProtocol: number;
|
|
88
|
+
/** Deterministic installation bucket in [0, 100), computed with manifest salt. */
|
|
89
|
+
rolloutBucket: number;
|
|
90
|
+
failedVersions: readonly string[];
|
|
91
|
+
}
|
|
92
|
+
export interface DaemonUpdateDecision {
|
|
93
|
+
action: 'none' | 'stage' | 'blocked' | 'unmanaged';
|
|
94
|
+
required: boolean;
|
|
95
|
+
allowNewWork: boolean;
|
|
96
|
+
reason: 'current' | 'rollout' | 'update' | 'unmanaged' | 'no_release' | 'platform' | 'runtime' | 'state_migration' | 'failed_release' | 'downgrade' | 'no_client_requirement';
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function daemonVersionSupported(version: string, manifest: DaemonReleaseManifest): boolean {
|
|
100
|
+
return compareDaemonVersions(version, manifest.minimumVersion) >= 0 && !manifest.withdrawnVersions.includes(version);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** Call only after authenticating and freshness-checking the manifest. */
|
|
104
|
+
export function decideDaemonUpdate(manifest: DaemonReleaseManifest, installed: DaemonInstallation, clientRequested = false): DaemonUpdateDecision {
|
|
105
|
+
DaemonVersionSchema.parse(installed.version);
|
|
106
|
+
DaemonVersionSchema.parse(installed.nodeVersion);
|
|
107
|
+
if (manifest.channel !== installed.channel) throw new Error('Update channel mismatch');
|
|
108
|
+
if (!Number.isFinite(installed.rolloutBucket) || installed.rolloutBucket < 0 || installed.rolloutBucket >= 100)
|
|
109
|
+
throw new Error('Invalid rollout bucket');
|
|
110
|
+
const required = !daemonVersionSupported(installed.version, manifest);
|
|
111
|
+
const decision = (action: DaemonUpdateDecision['action'], reason: DaemonUpdateDecision['reason']): DaemonUpdateDecision =>
|
|
112
|
+
({ action, reason, required, allowNewWork: !required });
|
|
113
|
+
if (!installed.managed) return decision('unmanaged', 'unmanaged');
|
|
114
|
+
if (!required && !clientRequested) return decision('none', 'no_client_requirement');
|
|
115
|
+
const release = manifest.release;
|
|
116
|
+
if (!release) return decision(required ? 'blocked' : 'none', 'no_release');
|
|
117
|
+
const order = compareDaemonVersions(release.version, installed.version);
|
|
118
|
+
if (order === 0) return decision('none', 'current');
|
|
119
|
+
if (order < 0) return decision(required ? 'blocked' : 'none', 'downgrade');
|
|
120
|
+
if (!required && installed.rolloutBucket >= manifest.rollout.percent) return decision('none', 'rollout');
|
|
121
|
+
if (!release.platforms.includes(installed.platform as DaemonRelease['platforms'][number])) return decision('blocked', 'platform');
|
|
122
|
+
if (compareDaemonVersions(installed.nodeVersion, release.nodeMinimum) < 0 || release.updateProtocol !== installed.updateProtocol)
|
|
123
|
+
return decision('blocked', 'runtime');
|
|
124
|
+
if (release.stateEpoch !== installed.stateEpoch) return decision('blocked', 'state_migration');
|
|
125
|
+
if (installed.failedVersions.includes(release.version)) return decision('blocked', 'failed_release');
|
|
126
|
+
return decision('stage', 'update');
|
|
127
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WORKSPACE_IO_READ_ACTIONS } from './workspaceIO.js';
|
|
3
|
+
|
|
4
|
+
export const DEVICE_IDLE_MS = 30_000;
|
|
5
|
+
export const DeviceActivitySchema = z.object({
|
|
6
|
+
type: z.literal('client_activity'),
|
|
7
|
+
state: z.enum(['foreground', 'background', 'input']),
|
|
8
|
+
});
|
|
9
|
+
export type DeviceActivity = z.infer<typeof DeviceActivitySchema>['state'];
|
|
10
|
+
|
|
11
|
+
const reads = new Set(['pull', 'getConfig', 'getAutomations', 'models', 'usage', 'commands', 'mcp-status', 'repos', 'prs', 'journal', 'progress-check']);
|
|
12
|
+
const workspaceReads = new Set(['list', 'history', 'settings', 'model-settings', 'overview-source', 'message-source', 'message-image', 'pasted-text', 'delivery-status']);
|
|
13
|
+
|
|
14
|
+
/** Reads and navigation never claim attention, including opening saved history. */
|
|
15
|
+
export function passiveRoomRequest(request: unknown): boolean {
|
|
16
|
+
if (!request || typeof request !== 'object') return false;
|
|
17
|
+
const { kind, command } = request as { kind?: string; command?: { action?: string; operation?: { action?: string } } };
|
|
18
|
+
if (reads.has(kind ?? '')) return true;
|
|
19
|
+
if (kind === 'workspaces') return workspaceReads.has(command?.action ?? '');
|
|
20
|
+
return kind === 'workspace-io' && WORKSPACE_IO_READ_ACTIONS.has(command?.operation?.action ?? '');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** A request is wrapped only after the relay advertises support. Never persist or
|
|
24
|
+
* replay this envelope: its computer and revision belong to the live connection. */
|
|
25
|
+
export function interactiveRoomRequest(request: unknown, presence: {
|
|
26
|
+
automaticControl?: 1; controlRevision?: number; computer?: { id: string } | null;
|
|
27
|
+
} | null): unknown {
|
|
28
|
+
if (!presence?.automaticControl || !presence.computer || passiveRoomRequest(request)) return request;
|
|
29
|
+
const { kind, command } = request as { kind?: string; command?: { action?: string } };
|
|
30
|
+
// Diagnostics and one-time cache migration may run during passive refresh.
|
|
31
|
+
const background = kind === 'incident' || kind === 'voice-diag-report' ||
|
|
32
|
+
(kind === 'workspaces' && command?.action === 'import');
|
|
33
|
+
return { type: 'client_command', computerId: presence.computer.id,
|
|
34
|
+
revision: presence.controlRevision, ...(background ? { claimAttention: false } : {}), request };
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ComputerClientSchema } from './releaseCompatibility.js';
|
|
3
|
+
|
|
4
|
+
export const DoctorRequestSchema = z.object({
|
|
5
|
+
type: z.literal('doctor_ensure'), protocol: z.literal(1),
|
|
6
|
+
id: z.uuidv7(), computerId: z.string().min(1).max(128),
|
|
7
|
+
capability: z.literal('shell-commands'),
|
|
8
|
+
}).strict();
|
|
9
|
+
export const DoctorRelayRequestSchema = DoctorRequestSchema.extend({
|
|
10
|
+
accountId: z.string().min(1).max(128), ...ComputerClientSchema.shape,
|
|
11
|
+
}).strict();
|
|
12
|
+
export const DoctorProgressSchema = DoctorRelayRequestSchema.extend({
|
|
13
|
+
phase: z.enum(['preparing', 'waiting_for_work', 'restarting', 'verifying', 'ready', 'needs_action']),
|
|
14
|
+
problem: z.enum(['no_release', 'verification', 'network', 'startup', 'unknown_client', 'live_capability', 'identity']).optional(),
|
|
15
|
+
}).strict();
|
|
16
|
+
export type DoctorRequest = z.infer<typeof DoctorRequestSchema>;
|
|
17
|
+
export type DoctorRelayRequest = z.infer<typeof DoctorRelayRequestSchema>;
|
|
18
|
+
export type DoctorProgress = z.infer<typeof DoctorProgressSchema>;
|
|
19
|
+
export const DOCTOR_SHELL_FEATURES = ['shell-commands', 'shell-receipts'] as const;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HarnessFileSchema } from './files.js';
|
|
3
|
+
|
|
4
|
+
export const FILE_UPLOAD_MAX_BYTES = 100 * 1024 * 1024;
|
|
5
|
+
export const FILE_UPLOAD_CHUNK_BYTES = 192 * 1024;
|
|
6
|
+
export const FileUploadIdSchema = z.uuid();
|
|
7
|
+
export const FileUploadMetadataSchema = HarnessFileSchema.pick({ name: true, mediaType: true }).extend({
|
|
8
|
+
fileId: FileUploadIdSchema,
|
|
9
|
+
size: z.number().int().positive().max(FILE_UPLOAD_MAX_BYTES),
|
|
10
|
+
// A native file digest detects changed source bytes when resuming an upload.
|
|
11
|
+
md5: z.string().regex(/^[a-f0-9]{32}$/),
|
|
12
|
+
});
|
|
13
|
+
export const FileUploadCommandSchema = z.discriminatedUnion('action', [
|
|
14
|
+
FileUploadMetadataSchema.extend({ action: z.literal('start') }),
|
|
15
|
+
z.object({ action: z.literal('chunk'), fileId: FileUploadIdSchema,
|
|
16
|
+
offset: z.number().int().nonnegative().max(FILE_UPLOAD_MAX_BYTES),
|
|
17
|
+
base64: z.string().min(4).max(FILE_UPLOAD_CHUNK_BYTES / 3 * 4) }),
|
|
18
|
+
z.object({ action: z.literal('finish'), fileId: FileUploadIdSchema }),
|
|
19
|
+
z.object({ action: z.literal('cancel'), fileId: FileUploadIdSchema }),
|
|
20
|
+
]);
|
|
21
|
+
export const FileUploadReceiptSchema = z.object({
|
|
22
|
+
fileId: FileUploadIdSchema,
|
|
23
|
+
offset: z.number().int().nonnegative().max(FILE_UPLOAD_MAX_BYTES),
|
|
24
|
+
ready: z.boolean(),
|
|
25
|
+
});
|
|
26
|
+
export type FileUploadMetadata = z.infer<typeof FileUploadMetadataSchema>;
|
|
27
|
+
export type FileUploadCommand = z.infer<typeof FileUploadCommandSchema>;
|
|
28
|
+
export type FileUploadReceipt = z.infer<typeof FileUploadReceiptSchema>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Documents travel with the durable turn, bounded like the existing inline image payloads. */
|
|
4
|
+
export const FILE_MAX_BYTES = 10 * 1024 * 1024;
|
|
5
|
+
export const FILE_MAX_COUNT = 6;
|
|
6
|
+
export const HarnessFileSchema = z.object({
|
|
7
|
+
name: z
|
|
8
|
+
.string()
|
|
9
|
+
.min(1)
|
|
10
|
+
.max(180)
|
|
11
|
+
.refine((name) => !/[\\/\u0000-\u001f]/.test(name) && name !== '.' && name !== '..'),
|
|
12
|
+
mediaType: z
|
|
13
|
+
.string()
|
|
14
|
+
.max(100)
|
|
15
|
+
.regex(/^[a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+$/),
|
|
16
|
+
dataBase64: z
|
|
17
|
+
.string()
|
|
18
|
+
.min(4)
|
|
19
|
+
.max(Math.ceil(FILE_MAX_BYTES / 3) * 4),
|
|
20
|
+
});
|
|
21
|
+
export type HarnessFile = z.infer<typeof HarnessFileSchema>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export * from './files.js';
|
|
1
2
|
export * from './dayPlanning.js';
|
|
2
3
|
export * from './workspaces.js';
|
|
4
|
+
export * from './recall.js';
|
|
5
|
+
export * from './memory.js';
|
|
3
6
|
export * from './githubContributions.js';
|
|
4
7
|
export * from './projectCapture.js';
|
|
5
8
|
export * from './taskActivity.js';
|
|
@@ -244,6 +247,10 @@ export {
|
|
|
244
247
|
AgentProviderSchema,
|
|
245
248
|
SteerRequestSchema,
|
|
246
249
|
PermissionRequestSchema,
|
|
250
|
+
ProgressCheckRequestSchema,
|
|
251
|
+
CodingProgressSchema,
|
|
252
|
+
CodingProgressEventSchema,
|
|
253
|
+
type CodingProgress,
|
|
247
254
|
ModelsRequestSchema,
|
|
248
255
|
ControlResponseSchema,
|
|
249
256
|
ModelsResponseSchema,
|
|
@@ -288,7 +295,7 @@ export {
|
|
|
288
295
|
VoiceDiagAckResponseSchema,
|
|
289
296
|
ProviderHandoffSchema,
|
|
290
297
|
} from './schemas/harness.js';
|
|
291
|
-
export type { ProviderHandoff } from './schemas/harness.js';
|
|
298
|
+
export type { ProviderHandoff, ProviderRole } from './schemas/harness.js';
|
|
292
299
|
|
|
293
300
|
// Types
|
|
294
301
|
export type {
|
|
@@ -424,8 +431,12 @@ export type {
|
|
|
424
431
|
|
|
425
432
|
export { AgentModelOptionSchema } from './schemas/harness.js';
|
|
426
433
|
export type { AgentModelOption } from './schemas/harness.js';
|
|
434
|
+
export { AgentMcpServerSchema } from './schemas/harness.js';
|
|
435
|
+
export type { AgentMcpServer } from './schemas/harness.js';
|
|
427
436
|
|
|
428
437
|
export * from './computer.js';
|
|
438
|
+
export * from './daemonUpdates.js';
|
|
439
|
+
export * from './releaseCompatibility.js';
|
|
429
440
|
export * from './cardStudio.js';
|
|
430
441
|
export * from './habitContributions.js';
|
|
431
442
|
export * from './speech.js';
|
|
@@ -447,3 +458,26 @@ export * from './goals.js';
|
|
|
447
458
|
export * from './goalNotes.js';
|
|
448
459
|
|
|
449
460
|
export * from './messagingSafety.js';
|
|
461
|
+
export * from './commentMentions.js';
|
|
462
|
+
|
|
463
|
+
export { AiUsageSchema, AiUsageWindowSchema } from './aiUsage.js';
|
|
464
|
+
export type { AiUsage, AiUsageWindow } from './aiUsage.js';
|
|
465
|
+
|
|
466
|
+
export * from './artifacts.js';
|
|
467
|
+
export * from './lucidInvocations.js';
|
|
468
|
+
export * from './repositoryRouting.js';
|
|
469
|
+
export * from './lucidFollowups.js';
|
|
470
|
+
|
|
471
|
+
export * from './videos.js';
|
|
472
|
+
export * from './updateControl.js';
|
|
473
|
+
export * from './codingActivity.js';
|
|
474
|
+
export * from './taskSharing.js';
|
|
475
|
+
export * from './workspaceIO.js';
|
|
476
|
+
export * from './fileUploads.js';
|
|
477
|
+
export * from './turnTiming.js';
|
|
478
|
+
export * from './agentMessages.js';
|
|
479
|
+
export * from './doctor.js';
|
|
480
|
+
export * from './activityRecovery.js';
|
|
481
|
+
export * from './accountDevices.js';
|
|
482
|
+
export * from './deviceInteraction.js';
|
|
483
|
+
export * from './repositoryRequests.js';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { LucidSourceSchema } from './lucidInvocations.js';
|
|
3
|
+
import { RecurrenceTimeZoneSchema } from './recurrence.js';
|
|
4
|
+
|
|
5
|
+
export const FollowupConditionSchema = z.discriminatedUnion('kind', [
|
|
6
|
+
z.object({ kind: z.literal('none') }).strict(),
|
|
7
|
+
z.object({ kind: z.literal('reply'), userId: z.uuid() }).strict(),
|
|
8
|
+
z.object({ kind: z.literal('task_completed'), taskId: z.uuid() }).strict(),
|
|
9
|
+
]);
|
|
10
|
+
export const FollowupStateSchema = z.enum([
|
|
11
|
+
'needs_details',
|
|
12
|
+
'scheduled',
|
|
13
|
+
'delivered',
|
|
14
|
+
'resolved',
|
|
15
|
+
'cancelled',
|
|
16
|
+
'unavailable',
|
|
17
|
+
'expired',
|
|
18
|
+
]);
|
|
19
|
+
export const LucidFollowupSchema = z.object({
|
|
20
|
+
id: z.uuid(),
|
|
21
|
+
invokerId: z.uuid(),
|
|
22
|
+
revision: z.number().int().nonnegative(),
|
|
23
|
+
state: FollowupStateSchema,
|
|
24
|
+
kind: z.enum(['reminder', 'draft']),
|
|
25
|
+
source: LucidSourceSchema.nullable(),
|
|
26
|
+
text: z.string().max(4000).nullable(),
|
|
27
|
+
condition: FollowupConditionSchema.nullable(),
|
|
28
|
+
scheduledAt: z.string().nullable(),
|
|
29
|
+
timeZone: z.string().nullable(),
|
|
30
|
+
detail: z.string(),
|
|
31
|
+
createdAt: z.string(),
|
|
32
|
+
updatedAt: z.string(),
|
|
33
|
+
});
|
|
34
|
+
export const SaveLucidFollowupSchema = z
|
|
35
|
+
.object({
|
|
36
|
+
commandId: z.uuid(),
|
|
37
|
+
revision: z.number().int().nonnegative(),
|
|
38
|
+
source: LucidSourceSchema,
|
|
39
|
+
kind: z.enum(['reminder', 'draft']),
|
|
40
|
+
text: z.string().trim().min(1).max(4000),
|
|
41
|
+
condition: FollowupConditionSchema,
|
|
42
|
+
localDate: z.iso.date(),
|
|
43
|
+
localTime: z.string().regex(/^(?:[01]\d|2[0-3]):[0-5]\d$/),
|
|
44
|
+
timeZone: RecurrenceTimeZoneSchema,
|
|
45
|
+
})
|
|
46
|
+
.strict();
|
|
47
|
+
export type FollowupCondition = z.infer<typeof FollowupConditionSchema>;
|
|
48
|
+
export type LucidFollowup = z.infer<typeof LucidFollowupSchema>;
|
|
49
|
+
export type SaveLucidFollowup = z.infer<typeof SaveLucidFollowupSchema>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { commentMentionTokens } from './commentMentions.js';
|
|
3
|
+
import { InvocationRoutingSchema } from './repositoryRouting.js';
|
|
4
|
+
|
|
5
|
+
/** An explicit agent address in new prose, never a quoted example or code sample. */
|
|
6
|
+
export function hasLucidMention(content: string): boolean {
|
|
7
|
+
let fence: string | undefined;
|
|
8
|
+
let quoted = false;
|
|
9
|
+
const prose = content.split('\n').map((line) => {
|
|
10
|
+
const marker = /^ {0,3}(`{3,}|~{3,})/.exec(line)?.[1];
|
|
11
|
+
if (fence) {
|
|
12
|
+
if (marker && marker[0] === fence[0] && marker.length >= fence.length) fence = undefined;
|
|
13
|
+
return '';
|
|
14
|
+
}
|
|
15
|
+
if (marker) { fence = marker; return ''; }
|
|
16
|
+
if (!line.trim()) quoted = false;
|
|
17
|
+
if (/^ {0,3}>/.test(line)) quoted = true;
|
|
18
|
+
if (quoted || /^( {4}|\t)/.test(line)) return '';
|
|
19
|
+
return line;
|
|
20
|
+
}).join('\n').replace(
|
|
21
|
+
/"[^"\n]*"|“[^”\n]*”|‘[^’\n]*’|(?<!\w)'[^'\n]*'(?!\w)|<(code|pre)\b[^>]*>[\s\S]*?<\/\1>/gi,
|
|
22
|
+
'',
|
|
23
|
+
);
|
|
24
|
+
return commentMentionTokens(prose).some(({ handle }) => handle === 'lucid');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const LucidSourceSchema = z.discriminatedUnion('kind', [
|
|
28
|
+
z.object({ kind: z.literal('comment'), taskId: z.uuid(), commentId: z.uuid() }),
|
|
29
|
+
z.object({ kind: z.literal('message'), conversationId: z.uuid(), messageId: z.uuid() }),
|
|
30
|
+
]);
|
|
31
|
+
|
|
32
|
+
export const LucidInvocationSchema = z.object({
|
|
33
|
+
id: z.uuid(),
|
|
34
|
+
source: LucidSourceSchema,
|
|
35
|
+
invokerId: z.uuid(),
|
|
36
|
+
status: z.enum(['queued', 'running', 'completed', 'stopped', 'failed', 'invalidated']),
|
|
37
|
+
replyId: z.uuid(),
|
|
38
|
+
hasPrivateReply: z.boolean().optional(),
|
|
39
|
+
sharedReplyId: z.uuid().nullable().optional(),
|
|
40
|
+
createdAt: z.string(),
|
|
41
|
+
updatedAt: z.string(),
|
|
42
|
+
/** Requester-only status, never a provider error or raw tool output. */
|
|
43
|
+
detail: z.string(),
|
|
44
|
+
routingState: InvocationRoutingSchema.shape.state.optional(),
|
|
45
|
+
hasFollowup: z.boolean().optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export type LucidSource = z.infer<typeof LucidSourceSchema>;
|
|
49
|
+
export type LucidInvocation = z.infer<typeof LucidInvocationSchema>;
|
|
50
|
+
|
|
51
|
+
export type LucidMentionCandidate = { kind: 'lucid'; name: 'Lucid'; handle: 'lucid' };
|
|
52
|
+
|
|
53
|
+
/** Initial shared context; the invocation may retrieve more through explicit MCP tools. */
|
|
54
|
+
export type LucidInvocationContext = {
|
|
55
|
+
invocationId: string;
|
|
56
|
+
source: LucidSource;
|
|
57
|
+
invoker: { id: string; name: string; handle: string | null };
|
|
58
|
+
participants?: Array<{ id: string; name: string; handle: string | null }>;
|
|
59
|
+
instruction: string;
|
|
60
|
+
task?: { title: string; description: string | null; [field: string]: unknown };
|
|
61
|
+
discussion: Array<{ id: string; author: string; kind: 'human' | 'agent'; content: string }>;
|
|
62
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const MemorySourceSchema = z.object({ id: z.string().min(1).max(4000), revision: z.string().min(1).max(100) });
|
|
4
|
+
const certainty = z.enum(['explicit', 'inferred', 'unknown']);
|
|
5
|
+
const content = z.object({ text: z.string(), certainty, sources: z.array(MemorySourceSchema), pinned: z.boolean().optional() });
|
|
6
|
+
export const MemoryRecordSchema = content.extend({
|
|
7
|
+
sources: z.array(MemorySourceSchema.extend({ href: z.string().optional() })),
|
|
8
|
+
id: z.string(), key: z.string(), projectId: z.string().optional(), version: z.number().int(),
|
|
9
|
+
state: z.enum(['active', 'forgotten']), provenance: z.enum(['user', 'source', 'legacy']),
|
|
10
|
+
createdAt: z.string(), updatedAt: z.string(),
|
|
11
|
+
history: z.array(content.extend({ version: z.number().int(), at: z.string() })),
|
|
12
|
+
evidenceStatus: z.enum(['available', 'unknown', 'changed', 'unavailable', 'forgotten']).optional(),
|
|
13
|
+
});
|
|
14
|
+
export type MemoryRecord = z.infer<typeof MemoryRecordSchema>;
|
|
15
|
+
const scope = { projectId: z.string().min(1).max(300).optional() };
|
|
16
|
+
const mutation = { operationId: z.string().uuid(), ...scope };
|
|
17
|
+
const fact = { text: z.string().trim().min(1).max(4000), certainty: z.enum(['explicit', 'inferred']),
|
|
18
|
+
currentSourceQuote: z.string().trim().min(1).max(4000).optional(),
|
|
19
|
+
sources: z.array(MemorySourceSchema).max(8).default([]), pinned: z.boolean().optional() };
|
|
20
|
+
export const MemoryCommandSchema = z.discriminatedUnion('action', [
|
|
21
|
+
z.object({ action: z.literal('list'), ...scope, includeForgotten: z.boolean().default(false),
|
|
22
|
+
offset: z.number().int().min(0).max(100000).default(0), limit: z.number().int().min(1).max(100).default(20) }),
|
|
23
|
+
z.object({ action: z.literal('remember'), ...mutation, ...fact, key: z.string().trim().min(1).max(200),
|
|
24
|
+
reRemember: z.boolean().default(false) }),
|
|
25
|
+
z.object({ action: z.literal('correct'), ...mutation, ...fact, id: z.string(), expectedVersion: z.number().int().min(1) }),
|
|
26
|
+
z.object({ action: z.literal('forget'), ...mutation, id: z.string(), expectedVersion: z.number().int().min(1) }),
|
|
27
|
+
]);
|
|
28
|
+
export type MemoryCommand = z.input<typeof MemoryCommandSchema>;
|
|
29
|
+
export const MemoryResultSchema = z.object({ memories: z.array(MemoryRecordSchema), notice: z.string().optional(), nextOffset: z.number().optional() });
|
|
30
|
+
export type MemoryResult = z.infer<typeof MemoryResultSchema>;
|
|
@@ -9,3 +9,13 @@ export const MessageReportSchema = z.object({
|
|
|
9
9
|
});
|
|
10
10
|
export type MessageReportInput = z.infer<typeof MessageReportSchema>;
|
|
11
11
|
export type MessagingSafetyState = { blockedByMe: boolean; canMessage: boolean };
|
|
12
|
+
|
|
13
|
+
export const CONTENT_REPORT_TYPES = ['profile', 'organization', 'project', 'task', 'comment', 'notification', 'task_event', 'standup'] as const;
|
|
14
|
+
export const ContentReportTargetSchema = z.object({
|
|
15
|
+
contentType: z.enum(CONTENT_REPORT_TYPES),
|
|
16
|
+
contentId: z.uuid(),
|
|
17
|
+
});
|
|
18
|
+
export const ContentReportSchema = MessageReportSchema.omit({ messageId: true }).extend(ContentReportTargetSchema.shape);
|
|
19
|
+
export type ContentReportTarget = z.infer<typeof ContentReportTargetSchema>;
|
|
20
|
+
export type ContentReportInput = z.infer<typeof ContentReportSchema>;
|
|
21
|
+
export type ContentReportPreview = { userId: string | null; evidence: string };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ConversationSourceSchema } from './workspaces.js';
|
|
3
|
+
import { MemoryCommandSchema, MemoryResultSchema } from './memory.js';
|
|
4
|
+
|
|
5
|
+
export const RecallQuerySchema = z.object({
|
|
6
|
+
query: z.string().trim().min(1).max(500),
|
|
7
|
+
repoId: z.string().max(300).optional(),
|
|
8
|
+
projectId: z.string().max(300).optional(),
|
|
9
|
+
conversationId: z.string().max(1000).optional(),
|
|
10
|
+
order: z.enum(['relevance', 'newest']).optional(),
|
|
11
|
+
messagesOnly: z.boolean().optional(),
|
|
12
|
+
limit: z.number().int().min(1).max(20).default(8),
|
|
13
|
+
offset: z.number().int().min(0).max(10_000).default(0),
|
|
14
|
+
});
|
|
15
|
+
export type RecallQuery = z.infer<typeof RecallQuerySchema>;
|
|
16
|
+
export const RecallDocumentSchema = z.object({
|
|
17
|
+
id: z.string(), revision: z.string(), title: z.string(), text: z.string(),
|
|
18
|
+
href: z.string().optional(),
|
|
19
|
+
kind: z.enum(['message', 'topic', 'project', 'milestone', 'task', 'comment', 'note', 'journal', 'memory']),
|
|
20
|
+
authority: z.enum(['original', 'derived', 'live']),
|
|
21
|
+
repoId: z.string().optional(), projectId: z.string().optional(), conversationId: z.string().optional(),
|
|
22
|
+
recordedAt: z.string().optional(),
|
|
23
|
+
savedAt: z.string().optional(),
|
|
24
|
+
speaker: z.enum(['user', 'assistant']).optional(),
|
|
25
|
+
location: z.object({
|
|
26
|
+
repoId: z.string().optional(), workerId: z.string().optional(),
|
|
27
|
+
source: ConversationSourceSchema.optional(),
|
|
28
|
+
path: z.string().optional(), entityId: z.string().optional(),
|
|
29
|
+
}),
|
|
30
|
+
sources: z.array(ConversationSourceSchema).optional(),
|
|
31
|
+
sourceIds: z.array(z.object({ id: z.string(), revision: z.string() })).optional(),
|
|
32
|
+
});
|
|
33
|
+
export type RecallDocument = z.infer<typeof RecallDocumentSchema>;
|
|
34
|
+
export type RecallHit = Omit<RecallDocument, 'text'> & { excerpt: string };
|
|
35
|
+
export const RecallHitSchema = RecallDocumentSchema.omit({ text: true }).extend({ excerpt: z.string() });
|
|
36
|
+
export const RecallResultSchema = z.object({
|
|
37
|
+
hits: z.array(RecallHitSchema), nextOffset: z.number().optional(),
|
|
38
|
+
coverage: z.array(z.object({ source: z.string(), status: z.enum(['available', 'partial', 'unavailable']), detail: z.string() })),
|
|
39
|
+
});
|
|
40
|
+
export const RecallReadResultSchema = z.discriminatedUnion('status', [
|
|
41
|
+
z.object({ status: z.literal('available'), document: RecallDocumentSchema,
|
|
42
|
+
related: z.array(RecallHitSchema).optional(), notice: z.string().optional(), nextOffset: z.number().optional() }),
|
|
43
|
+
z.object({ status: z.enum(['unavailable', 'changed']), message: z.string() }),
|
|
44
|
+
]);
|
|
45
|
+
export type RecallReadResult = z.infer<typeof RecallReadResultSchema>;
|
|
46
|
+
export const RecallCommandSchema = z.discriminatedUnion('action', [
|
|
47
|
+
z.object({ action: z.literal('memory'), command: MemoryCommandSchema }),
|
|
48
|
+
z.object({ action: z.literal('search'), query: RecallQuerySchema }),
|
|
49
|
+
z.object({ action: z.literal('project'), query: RecallQuerySchema }),
|
|
50
|
+
z.object({ action: z.literal('personal'), source: z.enum(['notes', 'journal']), query: RecallQuerySchema }),
|
|
51
|
+
z.object({ action: z.literal('note-source'), path: z.string().min(1).max(1000),
|
|
52
|
+
vaultPath: z.string().min(1).max(4000), revision: z.string().min(1).max(100) }),
|
|
53
|
+
z.object({ action: z.literal('read'), id: z.string().min(1).max(4000), revision: z.string().min(1).max(100),
|
|
54
|
+
owner: z.string().max(100).optional(), offset: z.number().int().min(0).max(10_000_000).default(0) }),
|
|
55
|
+
]);
|
|
56
|
+
export type RecallCommand = z.input<typeof RecallCommandSchema>;
|
|
57
|
+
export const RecallResponseSchema = z.union([RecallReadResultSchema, RecallResultSchema, MemoryResultSchema]);
|
|
58
|
+
export type RecallResponse = z.infer<typeof RecallResponseSchema>;
|
|
59
|
+
export interface RecallResult {
|
|
60
|
+
hits: RecallHit[];
|
|
61
|
+
nextOffset?: number;
|
|
62
|
+
coverage: Array<{ source: string; status: 'available' | 'partial' | 'unavailable'; detail: string }>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** Literal terms only: callers cannot inject FTS operators or expensive expressions. */
|
|
66
|
+
export function recallTerms(query: string): string[] {
|
|
67
|
+
const stop = new Set('a an and are as at be been by did do does for from had has have how i in is it its me my of on or our should that the their them then there this to was we were what when where which who why will with would you your'.split(' '));
|
|
68
|
+
return [...new Set((query.toLowerCase().match(/[\p{L}\p{N}_-]+/gu) ?? []).filter(t => !stop.has(t)))].slice(0, 24);
|
|
69
|
+
}
|