@opencorelabs/lucidity 0.8.0 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -5
- package/bin/lucidity.js +9 -1
- package/dist/agentControls.d.ts +3 -3
- package/dist/agentControls.d.ts.map +1 -1
- package/dist/agentControls.js +9 -6
- package/dist/assets/speech/lucidity-speech +0 -0
- package/dist/automations/agent.d.ts.map +1 -1
- package/dist/automations/agent.js +8 -3
- package/dist/automations/githubIssues.d.ts +25 -0
- package/dist/automations/githubIssues.d.ts.map +1 -0
- package/dist/automations/githubIssues.js +48 -0
- package/dist/automations/service.d.ts +8 -0
- package/dist/automations/service.d.ts.map +1 -1
- package/dist/automations/service.js +84 -25
- package/dist/automations/skill.d.ts +1 -1
- package/dist/automations/skill.d.ts.map +1 -1
- package/dist/automations/skill.js +3 -25
- package/dist/automations/store.d.ts +9 -3
- package/dist/automations/store.d.ts.map +1 -1
- package/dist/automations/store.js +45 -32
- package/dist/automations/workflow.d.ts +14 -0
- package/dist/automations/workflow.d.ts.map +1 -0
- package/dist/automations/workflow.js +57 -0
- package/dist/automations/workflowCrash.integration.d.ts +2 -0
- package/dist/automations/workflowCrash.integration.d.ts.map +1 -0
- package/dist/automations/workflowCrash.integration.js +78 -0
- package/dist/chat/server.d.ts +18 -0
- package/dist/chat/server.d.ts.map +1 -1
- package/dist/chat/server.js +203 -84
- package/dist/coding/agentMessages.d.ts +37 -0
- package/dist/coding/agentMessages.d.ts.map +1 -0
- package/dist/coding/agentMessages.js +220 -0
- package/dist/coding/agentSettings.d.ts +9 -0
- package/dist/coding/agentSettings.d.ts.map +1 -0
- package/dist/coding/agentSettings.js +22 -0
- package/dist/coding/fileContext.d.ts +4 -0
- package/dist/coding/fileContext.d.ts.map +1 -0
- package/dist/coding/fileContext.js +61 -0
- package/dist/coding/listPrs.d.ts +6 -0
- package/dist/coding/listPrs.d.ts.map +1 -1
- package/dist/coding/listPrs.js +11 -1
- package/dist/coding/lucidRouting.d.ts +67 -0
- package/dist/coding/lucidRouting.d.ts.map +1 -0
- package/dist/coding/lucidRouting.js +216 -0
- package/dist/coding/overviewSources.d.ts +52 -0
- package/dist/coding/overviewSources.d.ts.map +1 -0
- package/dist/coding/overviewSources.js +78 -0
- package/dist/coding/progress.d.ts +27 -0
- package/dist/coding/progress.d.ts.map +1 -0
- package/dist/coding/progress.js +152 -0
- package/dist/coding/repositoryRequests.d.ts +38 -0
- package/dist/coding/repositoryRequests.d.ts.map +1 -0
- package/dist/coding/repositoryRequests.js +137 -0
- package/dist/coding/runCodeTurn.d.ts +28 -22
- package/dist/coding/runCodeTurn.d.ts.map +1 -1
- package/dist/coding/runCodeTurn.js +109 -158
- package/dist/coding/runReview.d.ts +10 -0
- package/dist/coding/runReview.d.ts.map +1 -0
- package/dist/coding/runReview.js +87 -0
- package/dist/coding/workspaceOverview.d.ts +106 -0
- package/dist/coding/workspaceOverview.d.ts.map +1 -0
- package/dist/coding/workspaceOverview.js +96 -0
- package/dist/coding/workspaceRegistry.d.ts +278 -4
- package/dist/coding/workspaceRegistry.d.ts.map +1 -1
- package/dist/coding/workspaceRegistry.js +1008 -27
- package/dist/coding/workspaceTitle.d.ts +14 -0
- package/dist/coding/workspaceTitle.d.ts.map +1 -0
- package/dist/coding/workspaceTitle.js +8 -0
- package/dist/coding/worktree.d.ts +62 -19
- package/dist/coding/worktree.d.ts.map +1 -1
- package/dist/coding/worktree.js +152 -19
- package/dist/coding/worktreeSetup.d.ts +7 -0
- package/dist/coding/worktreeSetup.d.ts.map +1 -0
- package/dist/coding/worktreeSetup.js +82 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +38 -3
- package/dist/editor/existingWorkspace.d.ts +3 -0
- package/dist/editor/existingWorkspace.d.ts.map +1 -0
- package/dist/editor/existingWorkspace.js +19 -0
- package/dist/editor/fileActions.d.ts +26 -0
- package/dist/editor/fileActions.d.ts.map +1 -0
- package/dist/editor/fileActions.js +134 -0
- package/dist/editor/files.d.ts +27 -0
- package/dist/editor/files.d.ts.map +1 -0
- package/dist/editor/files.js +279 -0
- package/dist/editor/gitActions.d.ts +18 -0
- package/dist/editor/gitActions.d.ts.map +1 -0
- package/dist/editor/gitActions.js +140 -0
- package/dist/editor/localEndpoint.d.ts +4 -0
- package/dist/editor/localEndpoint.d.ts.map +1 -0
- package/dist/editor/localEndpoint.js +35 -0
- package/dist/editor/service.d.ts +28 -0
- package/dist/editor/service.d.ts.map +1 -0
- package/dist/editor/service.js +101 -0
- package/dist/editor/shellCommands.d.ts +21 -0
- package/dist/editor/shellCommands.d.ts.map +1 -0
- package/dist/editor/shellCommands.js +165 -0
- package/dist/editor/terminals.d.ts +34 -0
- package/dist/editor/terminals.d.ts.map +1 -0
- package/dist/editor/terminals.js +161 -0
- package/dist/editor/types.d.ts +37 -0
- package/dist/editor/types.d.ts.map +1 -0
- package/dist/editor/types.js +1 -0
- package/dist/files/store.d.ts +13 -0
- package/dist/files/store.d.ts.map +1 -0
- package/dist/files/store.js +150 -0
- package/dist/goals/assessment.d.ts +6 -6
- package/dist/index.js +249 -80
- package/dist/install.d.ts +7 -0
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +5 -2
- package/dist/jobs/briefing.d.ts +2 -16
- package/dist/jobs/briefing.d.ts.map +1 -1
- package/dist/jobs/briefing.js +57 -102
- package/dist/jobs/extraction.d.ts +2 -1
- package/dist/jobs/extraction.d.ts.map +1 -1
- package/dist/jobs/extraction.js +2 -2
- package/dist/jobs/fastModeReview.d.ts +3 -1
- package/dist/jobs/fastModeReview.d.ts.map +1 -1
- package/dist/jobs/fastModeReview.js +20 -11
- package/dist/jobs/voiceReview.js +4 -4
- package/dist/jobs/weeklyReview.d.ts +1 -1
- package/dist/jobs/weeklyReview.d.ts.map +1 -1
- package/dist/jobs/weeklyReview.js +2 -5
- package/dist/logTimestamps.d.ts +10 -0
- package/dist/logTimestamps.d.ts.map +1 -0
- package/dist/logTimestamps.js +12 -0
- package/dist/lucidInvocations.d.ts +44 -0
- package/dist/lucidInvocations.d.ts.map +1 -0
- package/dist/lucidInvocations.js +164 -0
- package/dist/mcp/config.d.ts +8 -2
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +52 -10
- package/dist/mcp/paired.js +1 -0
- package/dist/providerFallbackContext.d.ts +5 -0
- package/dist/providerFallbackContext.d.ts.map +1 -0
- package/dist/providerFallbackContext.js +58 -0
- package/dist/providerRecovery.d.ts +65 -0
- package/dist/providerRecovery.d.ts.map +1 -0
- package/dist/providerRecovery.js +102 -0
- package/dist/providerRoles.d.ts +9 -0
- package/dist/providerRoles.d.ts.map +1 -0
- package/dist/providerRoles.js +25 -0
- package/dist/recall/command.d.ts +139 -0
- package/dist/recall/command.d.ts.map +1 -0
- package/dist/recall/command.js +35 -0
- package/dist/recall/context.d.ts +5 -0
- package/dist/recall/context.d.ts.map +1 -0
- package/dist/recall/context.js +66 -0
- package/dist/recall/conversations.d.ts +182 -0
- package/dist/recall/conversations.d.ts.map +1 -0
- package/dist/recall/conversations.js +58 -0
- package/dist/recall/documents.d.ts +76 -0
- package/dist/recall/documents.d.ts.map +1 -0
- package/dist/recall/documents.js +32 -0
- package/dist/recall/evaluation.d.ts +77 -0
- package/dist/recall/evaluation.d.ts.map +1 -0
- package/dist/recall/evaluation.js +88 -0
- package/dist/recall/factory.d.ts +6 -0
- package/dist/recall/factory.d.ts.map +1 -0
- package/dist/recall/factory.js +20 -0
- package/dist/recall/index.d.ts +13 -0
- package/dist/recall/index.d.ts.map +1 -0
- package/dist/recall/index.js +92 -0
- package/dist/recall/memories.d.ts +16 -0
- package/dist/recall/memories.d.ts.map +1 -0
- package/dist/recall/memories.js +136 -0
- package/dist/recall/memorySelection.d.ts +4 -0
- package/dist/recall/memorySelection.d.ts.map +1 -0
- package/dist/recall/memorySelection.js +16 -0
- package/dist/recall/memoryService.d.ts +22 -0
- package/dist/recall/memoryService.d.ts.map +1 -0
- package/dist/recall/memoryService.js +171 -0
- package/dist/recall/personal.d.ts +127 -0
- package/dist/recall/personal.d.ts.map +1 -0
- package/dist/recall/personal.js +125 -0
- package/dist/recall/projects.d.ts +67 -0
- package/dist/recall/projects.d.ts.map +1 -0
- package/dist/recall/projects.js +117 -0
- package/dist/recall/query.d.ts +5 -0
- package/dist/recall/query.d.ts.map +1 -0
- package/dist/recall/query.js +17 -0
- package/dist/recall/semanticEvaluation.d.ts +2 -0
- package/dist/recall/semanticEvaluation.d.ts.map +1 -0
- package/dist/recall/semanticEvaluation.js +123 -0
- package/dist/recall/service.d.ts +62 -0
- package/dist/recall/service.d.ts.map +1 -0
- package/dist/recall/service.js +94 -0
- package/dist/room/client.d.ts +43 -20
- package/dist/room/client.d.ts.map +1 -1
- package/dist/room/client.js +242 -54
- package/dist/room/codingActivity.d.ts +21 -0
- package/dist/room/codingActivity.d.ts.map +1 -0
- package/dist/room/codingActivity.js +86 -0
- package/dist/room/computer.d.ts.map +1 -1
- package/dist/room/computer.js +19 -4
- package/dist/room/context.d.ts +3 -2
- package/dist/room/context.d.ts.map +1 -1
- package/dist/room/context.js +5 -4
- package/dist/room/desktop-live.integration.d.ts +2 -0
- package/dist/room/desktop-live.integration.d.ts.map +1 -0
- package/dist/room/desktop-live.integration.js +219 -0
- package/dist/room/incidents.d.ts +3 -0
- package/dist/room/incidents.d.ts.map +1 -1
- package/dist/room/incidents.js +1 -0
- package/dist/room/turnQueue.d.ts +24 -2
- package/dist/room/turnQueue.d.ts.map +1 -1
- package/dist/room/turnQueue.js +123 -51
- package/dist/runtimeStore.d.ts +19 -0
- package/dist/runtimeStore.d.ts.map +1 -1
- package/dist/runtimeStore.js +49 -3
- package/dist/setup/page.d.ts +1 -1
- package/dist/setup/page.d.ts.map +1 -1
- package/dist/setup/page.js +15 -2
- package/dist/setup/server.d.ts +5 -1
- package/dist/setup/server.d.ts.map +1 -1
- package/dist/setup/server.js +37 -13
- package/dist/skills/install.d.ts +8 -0
- package/dist/skills/install.d.ts.map +1 -0
- package/dist/skills/install.js +82 -0
- package/dist/skills/lucidity/SKILL.md +65 -0
- package/dist/skills/lucidity-task-handoff/SKILL.md +122 -0
- package/dist/speech/captures.d.ts +4 -0
- package/dist/speech/captures.d.ts.map +1 -1
- package/dist/speech/captures.js +53 -41
- package/dist/updateCli.d.ts +2 -0
- package/dist/updateCli.d.ts.map +1 -0
- package/dist/updateCli.js +40 -0
- package/dist/updateService.d.ts +3 -0
- package/dist/updateService.d.ts.map +1 -0
- package/dist/updateService.js +23 -0
- package/dist/updates/admission.d.ts +23 -0
- package/dist/updates/admission.d.ts.map +1 -0
- package/dist/updates/admission.js +76 -0
- package/dist/updates/bootstrap.d.ts +23 -0
- package/dist/updates/bootstrap.d.ts.map +1 -0
- package/dist/updates/bootstrap.js +95 -0
- package/dist/updates/bootstrapConfig.d.ts +34 -0
- package/dist/updates/bootstrapConfig.d.ts.map +1 -0
- package/dist/updates/bootstrapConfig.js +35 -0
- package/dist/updates/connection.d.ts +20 -0
- package/dist/updates/connection.d.ts.map +1 -0
- package/dist/updates/connection.js +111 -0
- package/dist/updates/developmentAdmission.d.ts +29 -0
- package/dist/updates/developmentAdmission.d.ts.map +1 -0
- package/dist/updates/developmentAdmission.js +73 -0
- package/dist/updates/developmentCli.d.ts +2 -0
- package/dist/updates/developmentCli.d.ts.map +1 -0
- package/dist/updates/developmentCli.js +61 -0
- package/dist/updates/developmentRefresh.d.ts +73 -0
- package/dist/updates/developmentRefresh.d.ts.map +1 -0
- package/dist/updates/developmentRefresh.js +157 -0
- package/dist/updates/developmentService.d.ts +13 -0
- package/dist/updates/developmentService.d.ts.map +1 -0
- package/dist/updates/developmentService.js +217 -0
- package/dist/updates/download.d.ts +7 -0
- package/dist/updates/download.d.ts.map +1 -0
- package/dist/updates/download.js +52 -0
- package/dist/updates/feed.d.ts +7 -0
- package/dist/updates/feed.d.ts.map +1 -0
- package/dist/updates/feed.js +37 -0
- package/dist/updates/installService.d.ts +3 -0
- package/dist/updates/installService.d.ts.map +1 -0
- package/dist/updates/installService.js +78 -0
- package/dist/updates/installationReferences.d.ts +17 -0
- package/dist/updates/installationReferences.d.ts.map +1 -0
- package/dist/updates/installationReferences.js +104 -0
- package/dist/updates/installationStore.d.ts +49 -0
- package/dist/updates/installationStore.d.ts.map +1 -0
- package/dist/updates/installationStore.js +237 -0
- package/dist/updates/installer.d.ts +29 -0
- package/dist/updates/installer.d.ts.map +1 -0
- package/dist/updates/installer.js +205 -0
- package/dist/updates/journal.d.ts +228 -0
- package/dist/updates/journal.d.ts.map +1 -0
- package/dist/updates/journal.js +249 -0
- package/dist/updates/managedLifecycle.d.ts +26 -0
- package/dist/updates/managedLifecycle.d.ts.map +1 -0
- package/dist/updates/managedLifecycle.js +60 -0
- package/dist/updates/migrateService.d.ts +2 -0
- package/dist/updates/migrateService.d.ts.map +1 -0
- package/dist/updates/migrateService.js +44 -0
- package/dist/updates/migration.d.ts +15 -0
- package/dist/updates/migration.d.ts.map +1 -0
- package/dist/updates/migration.js +108 -0
- package/dist/updates/processControl.d.ts +47 -0
- package/dist/updates/processControl.d.ts.map +1 -0
- package/dist/updates/processControl.js +98 -0
- package/dist/updates/processHost.d.ts +52 -0
- package/dist/updates/processHost.d.ts.map +1 -0
- package/dist/updates/processHost.js +165 -0
- package/dist/updates/registerService.d.ts +4 -0
- package/dist/updates/registerService.d.ts.map +1 -0
- package/dist/updates/registerService.js +34 -0
- package/dist/updates/releases.d.ts +84 -0
- package/dist/updates/releases.d.ts.map +1 -0
- package/dist/updates/releases.js +51 -0
- package/dist/updates/retention.d.ts +32 -0
- package/dist/updates/retention.d.ts.map +1 -0
- package/dist/updates/retention.js +188 -0
- package/dist/updates/runner.d.ts +6 -0
- package/dist/updates/runner.d.ts.map +1 -0
- package/dist/updates/runner.js +117 -0
- package/dist/updates/service.d.ts +53 -0
- package/dist/updates/service.d.ts.map +1 -0
- package/dist/updates/service.js +268 -0
- package/dist/updates/servicePlan.d.ts +29 -0
- package/dist/updates/servicePlan.d.ts.map +1 -0
- package/dist/updates/servicePlan.js +58 -0
- package/dist/updates/signCatalog.d.ts +10 -0
- package/dist/updates/signCatalog.d.ts.map +1 -0
- package/dist/updates/signCatalog.js +44 -0
- package/dist/updates/supervisor.d.ts +27 -0
- package/dist/updates/supervisor.d.ts.map +1 -0
- package/dist/updates/supervisor.js +137 -0
- package/dist/updates/windowsService.d.ts +12 -0
- package/dist/updates/windowsService.d.ts.map +1 -0
- package/dist/updates/windowsService.js +51 -0
- package/dist/vault.d.ts +6 -3
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +18 -4
- package/dist/video/context.d.ts +4 -0
- package/dist/video/context.d.ts.map +1 -0
- package/dist/video/context.js +74 -0
- package/dist/video/store.d.ts +22 -0
- package/dist/video/store.d.ts.map +1 -0
- package/dist/video/store.js +184 -0
- package/npm-shrinkwrap.json +1792 -0
- package/package.json +4 -1
- package/src/agentControls.ts +11 -7
- package/src/automations/agent.ts +11 -2
- package/src/automations/githubIssues.ts +63 -0
- package/src/automations/service.ts +72 -24
- package/src/automations/skill.ts +5 -37
- package/src/automations/store.ts +41 -50
- package/src/automations/workflow.ts +49 -0
- package/src/automations/workflowCrash.integration.ts +70 -0
- package/src/chat/server.ts +162 -89
- package/src/coding/agentMessages.ts +217 -0
- package/src/coding/agentSettings.ts +22 -0
- package/src/coding/fileContext.ts +72 -0
- package/src/coding/listPrs.ts +15 -1
- package/src/coding/lucidRouting.ts +211 -0
- package/src/coding/overviewSources.ts +86 -0
- package/src/coding/progress.ts +146 -0
- package/src/coding/repositoryRequests.ts +117 -0
- package/src/coding/runCodeTurn.ts +127 -182
- package/src/coding/runReview.ts +83 -0
- package/src/coding/workspaceOverview.ts +99 -0
- package/src/coding/workspaceRegistry.ts +921 -28
- package/src/coding/workspaceTitle.ts +10 -0
- package/src/coding/worktree.ts +164 -22
- package/src/coding/worktreeSetup.ts +73 -0
- package/src/config.ts +37 -2
- package/src/editor/existingWorkspace.ts +17 -0
- package/src/editor/fileActions.ts +162 -0
- package/src/editor/files.ts +276 -0
- package/src/editor/gitActions.ts +150 -0
- package/src/editor/localEndpoint.ts +28 -0
- package/src/editor/service.ts +93 -0
- package/src/editor/shellCommands.ts +132 -0
- package/src/editor/terminals.ts +129 -0
- package/src/editor/types.ts +32 -0
- package/src/files/store.ts +131 -0
- package/src/index.ts +242 -77
- package/src/install.ts +4 -2
- package/src/jobs/briefing.ts +56 -114
- package/src/jobs/extraction.ts +5 -4
- package/src/jobs/fastModeReview.ts +22 -11
- package/src/jobs/voiceReview.ts +4 -4
- package/src/jobs/weeklyReview.ts +2 -4
- package/src/logTimestamps.ts +14 -0
- package/src/lucidInvocations.ts +152 -0
- package/src/mcp/config.ts +48 -10
- package/src/mcp/paired.ts +1 -0
- package/src/providerFallbackContext.ts +48 -0
- package/src/providerRecovery.ts +101 -0
- package/src/providerRoles.ts +35 -0
- package/src/recall/command.ts +42 -0
- package/src/recall/context.ts +64 -0
- package/src/recall/conversations.ts +53 -0
- package/src/recall/documents.ts +32 -0
- package/src/recall/evaluation.ts +89 -0
- package/src/recall/factory.ts +21 -0
- package/src/recall/index.ts +87 -0
- package/src/recall/memories.ts +123 -0
- package/src/recall/memorySelection.ts +17 -0
- package/src/recall/memoryService.ts +138 -0
- package/src/recall/personal.ts +97 -0
- package/src/recall/projects.ts +98 -0
- package/src/recall/query.ts +21 -0
- package/src/recall/semanticEvaluation.ts +101 -0
- package/src/recall/service.ts +85 -0
- package/src/room/client.ts +257 -85
- package/src/room/codingActivity.ts +70 -0
- package/src/room/computer.ts +19 -4
- package/src/room/context.ts +7 -2
- package/src/room/desktop-live.integration.ts +203 -0
- package/src/room/incidents.ts +4 -0
- package/src/room/turnQueue.ts +117 -62
- package/src/runtimeStore.ts +53 -4
- package/src/setup/page.ts +15 -2
- package/src/setup/server.ts +28 -5
- package/src/skills/install.ts +65 -0
- package/src/speech/captures.ts +56 -44
- package/src/updateCli.ts +37 -0
- package/src/updateService.ts +21 -0
- package/src/updates/admission.ts +70 -0
- package/src/updates/bootstrap.ts +77 -0
- package/src/updates/bootstrapConfig.ts +29 -0
- package/src/updates/connection.ts +84 -0
- package/src/updates/developmentAdmission.ts +56 -0
- package/src/updates/developmentCli.ts +47 -0
- package/src/updates/developmentRefresh.ts +130 -0
- package/src/updates/developmentService.ts +170 -0
- package/src/updates/download.ts +53 -0
- package/src/updates/feed.ts +34 -0
- package/src/updates/installService.ts +67 -0
- package/src/updates/installationReferences.ts +87 -0
- package/src/updates/installationStore.ts +196 -0
- package/src/updates/installer.ts +203 -0
- package/src/updates/journal.ts +250 -0
- package/src/updates/managedLifecycle.ts +64 -0
- package/src/updates/migrateService.ts +33 -0
- package/src/updates/migration.ts +92 -0
- package/src/updates/processControl.ts +96 -0
- package/src/updates/processHost.ts +159 -0
- package/src/updates/registerService.ts +27 -0
- package/src/updates/releases.ts +53 -0
- package/src/updates/retention.ts +154 -0
- package/src/updates/runner.ts +104 -0
- package/src/updates/service.ts +241 -0
- package/src/updates/servicePlan.ts +63 -0
- package/src/updates/signCatalog.ts +40 -0
- package/src/updates/supervisor.ts +114 -0
- package/src/updates/windowsService.ts +54 -0
- package/src/vault.ts +16 -7
- package/src/video/context.ts +101 -0
- package/src/video/store.ts +250 -0
- package/vendor/decisions/dist/followup.d.ts +14 -0
- package/vendor/decisions/dist/followup.js +86 -0
- package/vendor/decisions/dist/index.d.ts +3 -0
- package/vendor/decisions/dist/index.js +3 -0
- package/vendor/decisions/dist/repositoryReplay.d.ts +103 -0
- package/vendor/decisions/dist/repositoryReplay.js +177 -0
- package/vendor/decisions/dist/repositoryRouting.d.ts +21 -0
- package/vendor/decisions/dist/repositoryRouting.js +125 -0
- package/vendor/decisions/src/followup.ts +129 -0
- package/vendor/decisions/src/index.ts +3 -0
- package/vendor/decisions/src/repositoryReplay.ts +312 -0
- package/vendor/decisions/src/repositoryRouting.ts +167 -0
- package/vendor/mcp-server/README.md +6 -0
- package/vendor/mcp-server/dist/index.js +21 -7
- package/vendor/mcp-server/dist/localDaemon.d.ts +4 -0
- package/vendor/mcp-server/dist/localDaemon.d.ts.map +1 -0
- package/vendor/mcp-server/dist/localDaemon.js +41 -0
- package/vendor/mcp-server/dist/tools/agents.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/agents.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/agents.js +60 -0
- package/vendor/mcp-server/dist/tools/artifacts.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/artifacts.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/artifacts.js +22 -0
- package/vendor/mcp-server/dist/tools/automations.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/automations.js +7 -32
- package/vendor/mcp-server/dist/tools/commandEventFormat.d.ts +1 -1
- package/vendor/mcp-server/dist/tools/commandEventFormat.js +2 -2
- package/vendor/mcp-server/dist/tools/commandEvents.js +1 -1
- package/vendor/mcp-server/dist/tools/comments.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/comments.js +5 -1
- package/vendor/mcp-server/dist/tools/journal.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/journal.js +1 -0
- package/vendor/mcp-server/dist/tools/memory.d.ts +0 -10
- package/vendor/mcp-server/dist/tools/memory.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/memory.js +28 -102
- package/vendor/mcp-server/dist/tools/notes.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/notes.js +38 -4
- package/vendor/mcp-server/dist/tools/recall.d.ts +6 -0
- package/vendor/mcp-server/dist/tools/recall.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/recall.js +78 -0
- package/vendor/mcp-server/dist/tools/summary.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/summary.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/summary.js +22 -0
- package/vendor/mcp-server/dist/tools/taskSheet.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/taskSheet.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/taskSheet.js +32 -0
- package/vendor/mcp-server/dist/tools/tasks.d.ts.map +1 -1
- package/vendor/mcp-server/dist/tools/tasks.js +117 -24
- package/vendor/mcp-server/dist/tools/worktrees.d.ts +3 -0
- package/vendor/mcp-server/dist/tools/worktrees.d.ts.map +1 -0
- package/vendor/mcp-server/dist/tools/worktrees.js +51 -0
- package/vendor/mcp-server/package.json +1 -1
- package/vendor/mcp-server/src/index.ts +17 -7
- package/vendor/mcp-server/src/localDaemon.ts +56 -0
- package/vendor/mcp-server/src/tools/agents.ts +78 -0
- package/vendor/mcp-server/src/tools/artifacts.ts +26 -0
- package/vendor/mcp-server/src/tools/automations.ts +7 -47
- package/vendor/mcp-server/src/tools/commandEventFormat.ts +2 -2
- package/vendor/mcp-server/src/tools/commandEvents.ts +1 -1
- package/vendor/mcp-server/src/tools/comments.ts +4 -1
- package/vendor/mcp-server/src/tools/journal.ts +1 -0
- package/vendor/mcp-server/src/tools/memory.ts +37 -130
- package/vendor/mcp-server/src/tools/notes.ts +35 -5
- package/vendor/mcp-server/src/tools/recall.ts +89 -0
- package/vendor/mcp-server/src/tools/summary.ts +30 -0
- package/vendor/mcp-server/src/tools/taskSheet.ts +60 -0
- package/vendor/mcp-server/src/tools/tasks.ts +125 -24
- package/vendor/mcp-server/src/tools/worktrees.ts +61 -0
- package/vendor/notes/dist/artifacts.d.ts +8 -0
- package/vendor/notes/dist/artifacts.d.ts.map +1 -0
- package/vendor/notes/dist/artifacts.js +105 -0
- package/vendor/notes/dist/index.d.ts +1 -0
- package/vendor/notes/dist/index.d.ts.map +1 -1
- package/vendor/notes/dist/index.js +1 -0
- package/vendor/notes/dist/vault.d.ts.map +1 -1
- package/vendor/notes/dist/vault.js +2 -0
- package/vendor/notes/src/artifacts.ts +100 -0
- package/vendor/notes/src/index.ts +2 -0
- package/vendor/notes/src/vault.ts +1 -0
- package/vendor/runtime/README.md +42 -0
- package/vendor/runtime/dist/executor/claudeAgent.d.ts +22 -1
- package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/claudeAgent.js +199 -28
- package/vendor/runtime/dist/executor/claudeCode.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/claudeCode.js +19 -2
- package/vendor/runtime/dist/executor/claudeSession.d.ts +32 -0
- package/vendor/runtime/dist/executor/claudeSession.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/claudeSession.js +154 -0
- package/vendor/runtime/dist/executor/codex.d.ts +25 -4
- package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codex.js +181 -22
- package/vendor/runtime/dist/executor/codexProtocol/AgentPath.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/AgentPath.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/AgentPath.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.d.ts +12 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.d.ts +24 -0
- package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/SleepItem.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/SleepItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/SleepItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.d.ts +14 -0
- package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/ThreadId.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/ThreadId.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/ThreadId.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.d.ts +15 -0
- package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.d.ts +29 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.d.ts +20 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.d.ts +11 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.d.ts +9 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.d.ts +4 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.d.ts +6 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.d.ts +16 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.d.ts +4 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.d.ts +9 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.d.ts +7 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.d.ts +100 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.d.ts +216 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.d.ts +11 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.d.ts +5 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.d.ts +19 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.d.ts +8 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.d.ts +12 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.d.ts +36 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.d.ts +12 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.d.ts +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.js +2 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.d.ts +15 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.js +2 -0
- package/vendor/runtime/dist/executor/codexRpc.d.ts +3 -1
- package/vendor/runtime/dist/executor/codexRpc.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexRpc.js +3 -2
- package/vendor/runtime/dist/executor/codexSessions.d.ts +5 -10
- package/vendor/runtime/dist/executor/codexSessions.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/codexSessions.js +12 -78
- package/vendor/runtime/dist/executor/fallback.d.ts +27 -0
- package/vendor/runtime/dist/executor/fallback.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/fallback.js +45 -0
- package/vendor/runtime/dist/executor/health.d.ts +25 -2
- package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/health.js +23 -2
- package/vendor/runtime/dist/executor/integrations.d.ts +4 -0
- package/vendor/runtime/dist/executor/integrations.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/integrations.js +5 -0
- package/vendor/runtime/dist/executor/liveTurns.d.ts +2 -2
- package/vendor/runtime/dist/executor/liveTurns.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/liveTurns.js +3 -3
- package/vendor/runtime/dist/executor/ownership.d.ts +24 -2
- package/vendor/runtime/dist/executor/ownership.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/ownership.js +10 -1
- package/vendor/runtime/dist/executor/providerRouter.d.ts +13 -0
- package/vendor/runtime/dist/executor/providerRouter.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/providerRouter.js +91 -5
- package/vendor/runtime/dist/executor/sessionRetention.d.ts +34 -0
- package/vendor/runtime/dist/executor/sessionRetention.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/sessionRetention.js +126 -0
- package/vendor/runtime/dist/executor/types.d.ts +55 -7
- package/vendor/runtime/dist/executor/types.d.ts.map +1 -1
- package/vendor/runtime/dist/executor/usage.d.ts +5 -0
- package/vendor/runtime/dist/executor/usage.d.ts.map +1 -0
- package/vendor/runtime/dist/executor/usage.js +56 -0
- package/vendor/runtime/dist/harness/index.d.ts.map +1 -1
- package/vendor/runtime/dist/harness/index.js +3 -5
- package/vendor/runtime/dist/harness/types.d.ts +3 -1
- package/vendor/runtime/dist/harness/types.d.ts.map +1 -1
- package/vendor/runtime/dist/index.d.ts +7 -2
- package/vendor/runtime/dist/index.d.ts.map +1 -1
- package/vendor/runtime/dist/index.js +3 -0
- package/vendor/runtime/dist/prompts/recall.d.ts +15 -0
- package/vendor/runtime/dist/prompts/recall.d.ts.map +1 -0
- package/vendor/runtime/dist/prompts/recall.js +71 -0
- package/vendor/runtime/src/executor/claudeAgent.ts +189 -31
- package/vendor/runtime/src/executor/claudeCode.ts +17 -3
- package/vendor/runtime/src/executor/claudeSession.ts +180 -0
- package/vendor/runtime/src/executor/codex.ts +187 -26
- package/vendor/runtime/src/executor/codexProtocol/AgentPath.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/ImageGenerationFailure.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/ImageGenerationItem.ts +7 -0
- package/vendor/runtime/src/executor/codexProtocol/LegacyAppPathString.ts +27 -0
- package/vendor/runtime/src/executor/codexProtocol/MessagePhase.ts +11 -0
- package/vendor/runtime/src/executor/codexProtocol/SleepItem.ts +8 -0
- package/vendor/runtime/src/executor/codexProtocol/SubAgentSource.ts +7 -0
- package/vendor/runtime/src/executor/codexProtocol/ThreadId.ts +10 -0
- package/vendor/runtime/src/executor/codexProtocol/WebSearchItem.ts +14 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/AgentMessageDelivery.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/AsyncUserInputQuestion.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CodexErrorInfo.ts +12 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentState.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentTool.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentToolCallStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CommandAction.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CommandExecutionSource.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/CommandExecutionStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/DynamicToolCallStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/FileUpdateChange.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/GitInfo.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/HookPromptFragment.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpAppDisplayMode.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpAppUi.ts +9 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallAppContext.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallError.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallResult.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MemoryCitation.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MemoryCitationEntry.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MisalignmentErrorDetails.ts +18 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/MisalignmentSteer.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/NonSteerableTurnKind.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/PatchApplyStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/PatchChangeKind.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SessionSource.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/SubAgentActivityKind.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/Thread.ts +104 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadActiveFlag.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadHistoryMode.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadItem.ts +125 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadReadParams.ts +12 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadReadResponse.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSection.ts +21 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSectionAppearance.ts +8 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/ThreadStatus.ts +6 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/Turn.ts +37 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnError.ts +11 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnItemsView.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/TurnStatus.ts +5 -0
- package/vendor/runtime/src/executor/codexProtocol/v2/WebSearchAction.ts +5 -0
- package/vendor/runtime/src/executor/codexRpc.ts +4 -2
- package/vendor/runtime/src/executor/codexSessions.ts +18 -82
- package/vendor/runtime/src/executor/fallback.ts +63 -0
- package/vendor/runtime/src/executor/health.ts +21 -3
- package/vendor/runtime/src/executor/integrations.ts +7 -0
- package/vendor/runtime/src/executor/liveTurns.ts +5 -5
- package/vendor/runtime/src/executor/ownership.ts +11 -2
- package/vendor/runtime/src/executor/providerRouter.ts +85 -4
- package/vendor/runtime/src/executor/sessionRetention.ts +166 -0
- package/vendor/runtime/src/executor/types.ts +45 -8
- package/vendor/runtime/src/executor/usage.ts +58 -0
- package/vendor/runtime/src/harness/index.ts +3 -5
- package/vendor/runtime/src/harness/types.ts +3 -1
- package/vendor/runtime/src/index.ts +8 -2
- package/vendor/runtime/src/prompts/recall.ts +72 -0
- package/vendor/shared/dist/accountDevices.d.ts +62 -0
- package/vendor/shared/dist/accountDevices.d.ts.map +1 -0
- package/vendor/shared/dist/accountDevices.js +25 -0
- package/vendor/shared/dist/activityRecovery.d.ts +37 -0
- package/vendor/shared/dist/activityRecovery.d.ts.map +1 -0
- package/vendor/shared/dist/activityRecovery.js +39 -0
- package/vendor/shared/dist/agentMessages.d.ts +187 -0
- package/vendor/shared/dist/agentMessages.d.ts.map +1 -0
- package/vendor/shared/dist/agentMessages.js +70 -0
- package/vendor/shared/dist/aiUsage.d.ts +30 -0
- package/vendor/shared/dist/aiUsage.d.ts.map +1 -0
- package/vendor/shared/dist/aiUsage.js +14 -0
- package/vendor/shared/dist/artifacts.d.ts +28 -0
- package/vendor/shared/dist/artifacts.d.ts.map +1 -0
- package/vendor/shared/dist/artifacts.js +47 -0
- package/vendor/shared/dist/automationTemplates.d.ts.map +1 -1
- package/vendor/shared/dist/automationTemplates.js +1 -0
- package/vendor/shared/dist/automations.d.ts +95 -14
- package/vendor/shared/dist/automations.d.ts.map +1 -1
- package/vendor/shared/dist/automations.js +22 -3
- package/vendor/shared/dist/cardStudio.d.ts +31 -31
- package/vendor/shared/dist/chatActivity.d.ts +17 -0
- package/vendor/shared/dist/chatActivity.d.ts.map +1 -0
- package/vendor/shared/dist/chatActivity.js +47 -0
- package/vendor/shared/dist/codingActivity.d.ts +60 -0
- package/vendor/shared/dist/codingActivity.d.ts.map +1 -0
- package/vendor/shared/dist/codingActivity.js +33 -0
- package/vendor/shared/dist/commandLocal.d.ts +1 -1
- package/vendor/shared/dist/commandLocal.d.ts.map +1 -1
- package/vendor/shared/dist/commands.d.ts +32 -32
- package/vendor/shared/dist/commands.d.ts.map +1 -1
- package/vendor/shared/dist/commands.js +1 -1
- package/vendor/shared/dist/commentMentions.d.ts +20 -0
- package/vendor/shared/dist/commentMentions.d.ts.map +1 -0
- package/vendor/shared/dist/commentMentions.js +14 -0
- package/vendor/shared/dist/computer.d.ts +48 -8
- package/vendor/shared/dist/computer.d.ts.map +1 -1
- package/vendor/shared/dist/computer.js +26 -2
- package/vendor/shared/dist/constants.d.ts +1 -1
- package/vendor/shared/dist/constants.d.ts.map +1 -1
- package/vendor/shared/dist/constants.js +8 -10
- package/vendor/shared/dist/daemonUpdates.d.ts +123 -0
- package/vendor/shared/dist/daemonUpdates.d.ts.map +1 -0
- package/vendor/shared/dist/daemonUpdates.js +106 -0
- package/vendor/shared/dist/deviceInteraction.d.ts +23 -0
- package/vendor/shared/dist/deviceInteraction.d.ts.map +1 -0
- package/vendor/shared/dist/deviceInteraction.js +32 -0
- package/vendor/shared/dist/doctor.d.ts +50 -0
- package/vendor/shared/dist/doctor.d.ts.map +1 -0
- package/vendor/shared/dist/doctor.js +15 -0
- package/vendor/shared/dist/fileUploads.d.ts +39 -0
- package/vendor/shared/dist/fileUploads.d.ts.map +1 -0
- package/vendor/shared/dist/fileUploads.js +24 -0
- package/vendor/shared/dist/files.d.ts +11 -0
- package/vendor/shared/dist/files.d.ts.map +1 -0
- package/vendor/shared/dist/files.js +19 -0
- package/vendor/shared/dist/githubContributions.d.ts +1 -1
- package/vendor/shared/dist/goals.d.ts +7 -7
- package/vendor/shared/dist/index.d.ts +32 -3
- package/vendor/shared/dist/index.d.ts.map +1 -1
- package/vendor/shared/dist/index.js +28 -1
- package/vendor/shared/dist/journal-vault.d.ts +1 -1
- package/vendor/shared/dist/lucidFollowups.d.ts +95 -0
- package/vendor/shared/dist/lucidFollowups.d.ts.map +1 -0
- package/vendor/shared/dist/lucidFollowups.js +45 -0
- package/vendor/shared/dist/lucidInvocations.d.ts +82 -0
- package/vendor/shared/dist/lucidInvocations.d.ts.map +1 -0
- package/vendor/shared/dist/lucidInvocations.js +47 -0
- package/vendor/shared/dist/memory.d.ts +162 -0
- package/vendor/shared/dist/memory.d.ts.map +1 -0
- package/vendor/shared/dist/memory.js +26 -0
- package/vendor/shared/dist/messagingSafety.d.ts +64 -0
- package/vendor/shared/dist/messagingSafety.d.ts.map +1 -0
- package/vendor/shared/dist/messagingSafety.js +14 -0
- package/vendor/shared/dist/recall.d.ts +803 -0
- package/vendor/shared/dist/recall.d.ts.map +1 -0
- package/vendor/shared/dist/recall.js +56 -0
- package/vendor/shared/dist/releaseCompatibility.d.ts +228 -0
- package/vendor/shared/dist/releaseCompatibility.d.ts.map +1 -0
- package/vendor/shared/dist/releaseCompatibility.js +145 -0
- package/vendor/shared/dist/repositoryRequests.d.ts +173 -0
- package/vendor/shared/dist/repositoryRequests.d.ts.map +1 -0
- package/vendor/shared/dist/repositoryRequests.js +38 -0
- package/vendor/shared/dist/repositoryRouting.d.ts +169 -0
- package/vendor/shared/dist/repositoryRouting.d.ts.map +1 -0
- package/vendor/shared/dist/repositoryRouting.js +102 -0
- package/vendor/shared/dist/roomClient.d.ts +107 -0
- package/vendor/shared/dist/roomClient.d.ts.map +1 -0
- package/vendor/shared/dist/roomClient.js +371 -0
- package/vendor/shared/dist/schemas/comment.d.ts +46 -0
- package/vendor/shared/dist/schemas/comment.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/comment.js +10 -0
- package/vendor/shared/dist/schemas/conversation.d.ts +80 -1
- package/vendor/shared/dist/schemas/conversation.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/conversation.js +12 -1
- package/vendor/shared/dist/schemas/harness.d.ts +1724 -181
- package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/harness.js +125 -127
- package/vendor/shared/dist/schemas/notification.d.ts +3 -1
- package/vendor/shared/dist/schemas/notification.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/notification.js +2 -1
- package/vendor/shared/dist/schemas/organization.d.ts +2 -0
- package/vendor/shared/dist/schemas/organization.d.ts.map +1 -1
- package/vendor/shared/dist/schemas/organization.js +2 -0
- package/vendor/shared/dist/schemas/project.d.ts +2 -2
- package/vendor/shared/dist/schemas/request.d.ts +1 -1
- package/vendor/shared/dist/schemas/task.d.ts +1 -1
- package/vendor/shared/dist/smartCapture.d.ts +24 -0
- package/vendor/shared/dist/smartCapture.d.ts.map +1 -1
- package/vendor/shared/dist/smartCapture.js +16 -1
- package/vendor/shared/dist/spokenNames.d.ts +1 -1
- package/vendor/shared/dist/spokenNames.js +1 -1
- package/vendor/shared/dist/taskActivity.d.ts +5 -5
- package/vendor/shared/dist/taskSharing.d.ts +8 -0
- package/vendor/shared/dist/taskSharing.d.ts.map +1 -0
- package/vendor/shared/dist/taskSharing.js +9 -0
- package/vendor/shared/dist/taskSync.d.ts +342 -0
- package/vendor/shared/dist/taskSync.d.ts.map +1 -0
- package/vendor/shared/dist/taskSync.js +111 -0
- package/vendor/shared/dist/thinking-orb/engine/core.d.ts +31 -0
- package/vendor/shared/dist/thinking-orb/engine/core.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/core.js +62 -0
- package/vendor/shared/dist/thinking-orb/engine/ctx.d.ts +9 -0
- package/vendor/shared/dist/thinking-orb/engine/ctx.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/ctx.js +1 -0
- package/vendor/shared/dist/thinking-orb/engine/lattice.d.ts +5 -0
- package/vendor/shared/dist/thinking-orb/engine/lattice.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/lattice.js +184 -0
- package/vendor/shared/dist/thinking-orb/engine/morph.d.ts +3 -0
- package/vendor/shared/dist/thinking-orb/engine/morph.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/morph.js +117 -0
- package/vendor/shared/dist/thinking-orb/engine/orbits.d.ts +3 -0
- package/vendor/shared/dist/thinking-orb/engine/orbits.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/orbits.js +66 -0
- package/vendor/shared/dist/thinking-orb/engine/profiles.d.ts +8 -0
- package/vendor/shared/dist/thinking-orb/engine/profiles.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/profiles.js +113 -0
- package/vendor/shared/dist/thinking-orb/engine/registry.d.ts +4 -0
- package/vendor/shared/dist/thinking-orb/engine/registry.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/registry.js +14 -0
- package/vendor/shared/dist/thinking-orb/engine/ribbon.d.ts +3 -0
- package/vendor/shared/dist/thinking-orb/engine/ribbon.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/ribbon.js +64 -0
- package/vendor/shared/dist/thinking-orb/engine/types.d.ts +6 -0
- package/vendor/shared/dist/thinking-orb/engine/types.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/engine/types.js +2 -0
- package/vendor/shared/dist/thinking-orb/index.d.ts +7 -0
- package/vendor/shared/dist/thinking-orb/index.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/index.js +2 -0
- package/vendor/shared/dist/thinking-orb/presets.d.ts +12 -0
- package/vendor/shared/dist/thinking-orb/presets.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/presets.js +67 -0
- package/vendor/shared/dist/thinking-orb/types.d.ts +24 -0
- package/vendor/shared/dist/thinking-orb/types.d.ts.map +1 -0
- package/vendor/shared/dist/thinking-orb/types.js +1 -0
- package/vendor/shared/dist/turnTiming.d.ts +13 -0
- package/vendor/shared/dist/turnTiming.d.ts.map +1 -0
- package/vendor/shared/dist/turnTiming.js +18 -0
- package/vendor/shared/dist/types.d.ts +4 -5
- package/vendor/shared/dist/types.d.ts.map +1 -1
- package/vendor/shared/dist/updateControl.d.ts +168 -0
- package/vendor/shared/dist/updateControl.d.ts.map +1 -0
- package/vendor/shared/dist/updateControl.js +43 -0
- package/vendor/shared/dist/videos.d.ts +31 -0
- package/vendor/shared/dist/videos.d.ts.map +1 -0
- package/vendor/shared/dist/videos.js +34 -0
- package/vendor/shared/dist/voiceCapture.d.ts +1 -1
- package/vendor/shared/dist/workspaceIO.d.ts +188 -0
- package/vendor/shared/dist/workspaceIO.d.ts.map +1 -0
- package/vendor/shared/dist/workspaceIO.js +50 -0
- package/vendor/shared/dist/workspaces.d.ts +857 -2
- package/vendor/shared/dist/workspaces.d.ts.map +1 -1
- package/vendor/shared/dist/workspaces.js +156 -1
- package/vendor/shared/package.json +12 -0
- package/vendor/shared/src/accountDevices.ts +28 -0
- package/vendor/shared/src/activityRecovery.ts +42 -0
- package/vendor/shared/src/agentMessages.ts +82 -0
- package/vendor/shared/src/aiUsage.ts +18 -0
- package/vendor/shared/src/artifacts.ts +48 -0
- package/vendor/shared/src/automationTemplates.ts +1 -0
- package/vendor/shared/src/automations.ts +22 -3
- package/vendor/shared/src/chatActivity.ts +56 -0
- package/vendor/shared/src/codingActivity.ts +40 -0
- package/vendor/shared/src/commandLocal.ts +1 -1
- package/vendor/shared/src/commands.ts +1 -1
- package/vendor/shared/src/commentMentions.ts +20 -0
- package/vendor/shared/src/computer.ts +43 -3
- package/vendor/shared/src/constants.ts +8 -10
- package/vendor/shared/src/daemonUpdates.ts +127 -0
- package/vendor/shared/src/deviceInteraction.ts +35 -0
- package/vendor/shared/src/doctor.ts +19 -0
- package/vendor/shared/src/fileUploads.ts +28 -0
- package/vendor/shared/src/files.ts +21 -0
- package/vendor/shared/src/index.ts +38 -7
- package/vendor/shared/src/lucidFollowups.ts +49 -0
- package/vendor/shared/src/lucidInvocations.ts +62 -0
- package/vendor/shared/src/memory.ts +30 -0
- package/vendor/shared/src/messagingSafety.ts +21 -0
- package/vendor/shared/src/recall.ts +69 -0
- package/vendor/shared/src/releaseCompatibility.ts +162 -0
- package/vendor/shared/src/repositoryRequests.ts +44 -0
- package/vendor/shared/src/repositoryRouting.ts +117 -0
- package/vendor/shared/src/roomClient.ts +351 -0
- package/vendor/shared/src/schemas/comment.ts +10 -0
- package/vendor/shared/src/schemas/conversation.ts +12 -1
- package/vendor/shared/src/schemas/harness.ts +138 -133
- package/vendor/shared/src/schemas/notification.ts +2 -1
- package/vendor/shared/src/schemas/organization.ts +2 -0
- package/vendor/shared/src/smartCapture.ts +28 -1
- package/vendor/shared/src/spokenNames.ts +1 -1
- package/vendor/shared/src/taskSharing.ts +13 -0
- package/vendor/shared/src/taskSync.ts +81 -0
- package/vendor/shared/src/thinking-orb/ATTRIBUTION.md +36 -0
- package/vendor/shared/src/thinking-orb/engine/core.ts +81 -0
- package/vendor/shared/src/thinking-orb/engine/ctx.ts +15 -0
- package/vendor/shared/src/thinking-orb/engine/lattice.ts +205 -0
- package/vendor/shared/src/thinking-orb/engine/morph.ts +130 -0
- package/vendor/shared/src/thinking-orb/engine/orbits.ts +80 -0
- package/vendor/shared/src/thinking-orb/engine/profiles.ts +119 -0
- package/vendor/shared/src/thinking-orb/engine/registry.ts +18 -0
- package/vendor/shared/src/thinking-orb/engine/ribbon.ts +71 -0
- package/vendor/shared/src/thinking-orb/engine/types.ts +15 -0
- package/vendor/shared/src/thinking-orb/index.ts +6 -0
- package/vendor/shared/src/thinking-orb/presets.ts +88 -0
- package/vendor/shared/src/thinking-orb/types.ts +25 -0
- package/vendor/shared/src/turnTiming.ts +20 -0
- package/vendor/shared/src/types.ts +1 -7
- package/vendor/shared/src/updateControl.ts +45 -0
- package/vendor/shared/src/videos.ts +37 -0
- package/vendor/shared/src/workspaceIO.ts +61 -0
- package/vendor/shared/src/workspaces.ts +173 -1
- package/dist/coding/conduct.d.ts +0 -48
- package/dist/coding/conduct.d.ts.map +0 -1
- package/dist/coding/conduct.js +0 -263
- package/dist/coding/fleetPlan.d.ts +0 -20
- package/dist/coding/fleetPlan.d.ts.map +0 -1
- package/dist/coding/fleetPlan.js +0 -125
- package/dist/coding/fleetTasks.d.ts +0 -33
- package/dist/coding/fleetTasks.d.ts.map +0 -1
- package/dist/coding/fleetTasks.js +0 -75
- package/src/coding/conduct.ts +0 -325
- package/src/coding/fleetPlan.ts +0 -135
- package/src/coding/fleetTasks.ts +0 -109
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recall.d.ts","sourceRoot":"","sources":["../src/recall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;iBAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgB/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA4E,CAAC;AACzG,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG7B,CAAC;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAS9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA4E,CAAC;AAC9G,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,aAAa,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACtG;AAED,wFAAwF;AACxF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAGnD"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ConversationSourceSchema } from './workspaces.js';
|
|
3
|
+
import { MemoryCommandSchema, MemoryResultSchema } from './memory.js';
|
|
4
|
+
export const RecallQuerySchema = z.object({
|
|
5
|
+
query: z.string().trim().min(1).max(500),
|
|
6
|
+
repoId: z.string().max(300).optional(),
|
|
7
|
+
projectId: z.string().max(300).optional(),
|
|
8
|
+
conversationId: z.string().max(1000).optional(),
|
|
9
|
+
order: z.enum(['relevance', 'newest']).optional(),
|
|
10
|
+
messagesOnly: z.boolean().optional(),
|
|
11
|
+
limit: z.number().int().min(1).max(20).default(8),
|
|
12
|
+
offset: z.number().int().min(0).max(10_000).default(0),
|
|
13
|
+
});
|
|
14
|
+
export const RecallDocumentSchema = z.object({
|
|
15
|
+
id: z.string(), revision: z.string(), title: z.string(), text: z.string(),
|
|
16
|
+
href: z.string().optional(),
|
|
17
|
+
kind: z.enum(['message', 'topic', 'project', 'milestone', 'task', 'comment', 'note', 'journal', 'memory']),
|
|
18
|
+
authority: z.enum(['original', 'derived', 'live']),
|
|
19
|
+
repoId: z.string().optional(), projectId: z.string().optional(), conversationId: z.string().optional(),
|
|
20
|
+
recordedAt: z.string().optional(),
|
|
21
|
+
savedAt: z.string().optional(),
|
|
22
|
+
speaker: z.enum(['user', 'assistant']).optional(),
|
|
23
|
+
location: z.object({
|
|
24
|
+
repoId: z.string().optional(), workerId: z.string().optional(),
|
|
25
|
+
source: ConversationSourceSchema.optional(),
|
|
26
|
+
path: z.string().optional(), entityId: z.string().optional(),
|
|
27
|
+
}),
|
|
28
|
+
sources: z.array(ConversationSourceSchema).optional(),
|
|
29
|
+
sourceIds: z.array(z.object({ id: z.string(), revision: z.string() })).optional(),
|
|
30
|
+
});
|
|
31
|
+
export const RecallHitSchema = RecallDocumentSchema.omit({ text: true }).extend({ excerpt: z.string() });
|
|
32
|
+
export const RecallResultSchema = z.object({
|
|
33
|
+
hits: z.array(RecallHitSchema), nextOffset: z.number().optional(),
|
|
34
|
+
coverage: z.array(z.object({ source: z.string(), status: z.enum(['available', 'partial', 'unavailable']), detail: z.string() })),
|
|
35
|
+
});
|
|
36
|
+
export const RecallReadResultSchema = z.discriminatedUnion('status', [
|
|
37
|
+
z.object({ status: z.literal('available'), document: RecallDocumentSchema,
|
|
38
|
+
related: z.array(RecallHitSchema).optional(), notice: z.string().optional(), nextOffset: z.number().optional() }),
|
|
39
|
+
z.object({ status: z.enum(['unavailable', 'changed']), message: z.string() }),
|
|
40
|
+
]);
|
|
41
|
+
export const RecallCommandSchema = z.discriminatedUnion('action', [
|
|
42
|
+
z.object({ action: z.literal('memory'), command: MemoryCommandSchema }),
|
|
43
|
+
z.object({ action: z.literal('search'), query: RecallQuerySchema }),
|
|
44
|
+
z.object({ action: z.literal('project'), query: RecallQuerySchema }),
|
|
45
|
+
z.object({ action: z.literal('personal'), source: z.enum(['notes', 'journal']), query: RecallQuerySchema }),
|
|
46
|
+
z.object({ action: z.literal('note-source'), path: z.string().min(1).max(1000),
|
|
47
|
+
vaultPath: z.string().min(1).max(4000), revision: z.string().min(1).max(100) }),
|
|
48
|
+
z.object({ action: z.literal('read'), id: z.string().min(1).max(4000), revision: z.string().min(1).max(100),
|
|
49
|
+
owner: z.string().max(100).optional(), offset: z.number().int().min(0).max(10_000_000).default(0) }),
|
|
50
|
+
]);
|
|
51
|
+
export const RecallResponseSchema = z.union([RecallReadResultSchema, RecallResultSchema, MemoryResultSchema]);
|
|
52
|
+
/** Literal terms only: callers cannot inject FTS operators or expensive expressions. */
|
|
53
|
+
export function recallTerms(query) {
|
|
54
|
+
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(' '));
|
|
55
|
+
return [...new Set((query.toLowerCase().match(/[\p{L}\p{N}_-]+/gu) ?? []).filter(t => !stop.has(t)))].slice(0, 24);
|
|
56
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type DaemonInstallation, type DaemonRelease, type DaemonUpdateDecision } from './daemonUpdates.js';
|
|
3
|
+
export declare const ClientReleaseSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
generation: z.ZodNumber;
|
|
6
|
+
platform: z.ZodEnum<{
|
|
7
|
+
windows: "windows";
|
|
8
|
+
macos: "macos";
|
|
9
|
+
ios: "ios";
|
|
10
|
+
android: "android";
|
|
11
|
+
}>;
|
|
12
|
+
appVersion: z.ZodString;
|
|
13
|
+
protocols: z.ZodArray<z.ZodNumber>;
|
|
14
|
+
minimumDaemon: z.ZodString;
|
|
15
|
+
recommendedDaemon: z.ZodString;
|
|
16
|
+
supported: z.ZodBoolean;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export type ClientRelease = z.infer<typeof ClientReleaseSchema>;
|
|
19
|
+
/** Retained for existing mobile consumers. */
|
|
20
|
+
export declare const MobileReleaseSchema: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
generation: z.ZodNumber;
|
|
23
|
+
platform: z.ZodEnum<{
|
|
24
|
+
windows: "windows";
|
|
25
|
+
macos: "macos";
|
|
26
|
+
ios: "ios";
|
|
27
|
+
android: "android";
|
|
28
|
+
}>;
|
|
29
|
+
appVersion: z.ZodString;
|
|
30
|
+
protocols: z.ZodArray<z.ZodNumber>;
|
|
31
|
+
minimumDaemon: z.ZodString;
|
|
32
|
+
recommendedDaemon: z.ZodString;
|
|
33
|
+
supported: z.ZodBoolean;
|
|
34
|
+
}, z.core.$strict>;
|
|
35
|
+
export type MobileRelease = ClientRelease;
|
|
36
|
+
export declare const CompatibleDaemonSchema: z.ZodObject<{
|
|
37
|
+
artifact: z.ZodObject<{
|
|
38
|
+
version: z.ZodString;
|
|
39
|
+
archiveUrl: z.ZodString;
|
|
40
|
+
integrity: z.ZodString;
|
|
41
|
+
bytes: z.ZodNumber;
|
|
42
|
+
platforms: z.ZodArray<z.ZodEnum<{
|
|
43
|
+
"darwin-arm64": "darwin-arm64";
|
|
44
|
+
"darwin-x64": "darwin-x64";
|
|
45
|
+
"win32-x64": "win32-x64";
|
|
46
|
+
"win32-arm64": "win32-arm64";
|
|
47
|
+
"linux-x64": "linux-x64";
|
|
48
|
+
"linux-arm64": "linux-arm64";
|
|
49
|
+
}>>;
|
|
50
|
+
nodeMinimum: z.ZodString;
|
|
51
|
+
updateProtocol: z.ZodNumber;
|
|
52
|
+
stateEpoch: z.ZodNumber;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
clientProtocols: z.ZodArray<z.ZodNumber>;
|
|
55
|
+
serverProtocols: z.ZodArray<z.ZodNumber>;
|
|
56
|
+
features: z.ZodArray<z.ZodString>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
export type CompatibleDaemon = z.infer<typeof CompatibleDaemonSchema>;
|
|
59
|
+
/** Highest mutually understood protocol. Features still need their own capability check. */
|
|
60
|
+
export declare function negotiateComputerProtocol(client: readonly number[], daemon: readonly number[]): number | null;
|
|
61
|
+
export declare const ReleaseCatalogSchema: z.ZodObject<{
|
|
62
|
+
schema: z.ZodLiteral<2>;
|
|
63
|
+
channel: z.ZodEnum<{
|
|
64
|
+
internal: "internal";
|
|
65
|
+
beta: "beta";
|
|
66
|
+
stable: "stable";
|
|
67
|
+
}>;
|
|
68
|
+
sequence: z.ZodNumber;
|
|
69
|
+
issuedAt: z.ZodString;
|
|
70
|
+
expiresAt: z.ZodString;
|
|
71
|
+
minimumVersion: z.ZodString;
|
|
72
|
+
withdrawnVersions: z.ZodArray<z.ZodString>;
|
|
73
|
+
distributionPaused: z.ZodBoolean;
|
|
74
|
+
serverProtocols: z.ZodArray<z.ZodNumber>;
|
|
75
|
+
rollout: z.ZodObject<{
|
|
76
|
+
percent: z.ZodNumber;
|
|
77
|
+
salt: z.ZodString;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
clients: z.ZodArray<z.ZodObject<{
|
|
80
|
+
id: z.ZodString;
|
|
81
|
+
generation: z.ZodNumber;
|
|
82
|
+
platform: z.ZodEnum<{
|
|
83
|
+
windows: "windows";
|
|
84
|
+
macos: "macos";
|
|
85
|
+
ios: "ios";
|
|
86
|
+
android: "android";
|
|
87
|
+
}>;
|
|
88
|
+
appVersion: z.ZodString;
|
|
89
|
+
protocols: z.ZodArray<z.ZodNumber>;
|
|
90
|
+
minimumDaemon: z.ZodString;
|
|
91
|
+
recommendedDaemon: z.ZodString;
|
|
92
|
+
supported: z.ZodBoolean;
|
|
93
|
+
}, z.core.$strict>>;
|
|
94
|
+
daemons: z.ZodArray<z.ZodObject<{
|
|
95
|
+
artifact: z.ZodObject<{
|
|
96
|
+
version: z.ZodString;
|
|
97
|
+
archiveUrl: z.ZodString;
|
|
98
|
+
integrity: z.ZodString;
|
|
99
|
+
bytes: z.ZodNumber;
|
|
100
|
+
platforms: z.ZodArray<z.ZodEnum<{
|
|
101
|
+
"darwin-arm64": "darwin-arm64";
|
|
102
|
+
"darwin-x64": "darwin-x64";
|
|
103
|
+
"win32-x64": "win32-x64";
|
|
104
|
+
"win32-arm64": "win32-arm64";
|
|
105
|
+
"linux-x64": "linux-x64";
|
|
106
|
+
"linux-arm64": "linux-arm64";
|
|
107
|
+
}>>;
|
|
108
|
+
nodeMinimum: z.ZodString;
|
|
109
|
+
updateProtocol: z.ZodNumber;
|
|
110
|
+
stateEpoch: z.ZodNumber;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
clientProtocols: z.ZodArray<z.ZodNumber>;
|
|
113
|
+
serverProtocols: z.ZodArray<z.ZodNumber>;
|
|
114
|
+
features: z.ZodArray<z.ZodString>;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
export type ReleaseCatalog = z.infer<typeof ReleaseCatalogSchema>;
|
|
118
|
+
export declare const DaemonUpdatePolicySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
119
|
+
schema: z.ZodLiteral<1>;
|
|
120
|
+
channel: z.ZodEnum<{
|
|
121
|
+
internal: "internal";
|
|
122
|
+
beta: "beta";
|
|
123
|
+
stable: "stable";
|
|
124
|
+
}>;
|
|
125
|
+
sequence: z.ZodNumber;
|
|
126
|
+
issuedAt: z.ZodString;
|
|
127
|
+
expiresAt: z.ZodString;
|
|
128
|
+
minimumVersion: z.ZodString;
|
|
129
|
+
withdrawnVersions: z.ZodArray<z.ZodString>;
|
|
130
|
+
release: z.ZodNullable<z.ZodObject<{
|
|
131
|
+
version: z.ZodString;
|
|
132
|
+
archiveUrl: z.ZodString;
|
|
133
|
+
integrity: z.ZodString;
|
|
134
|
+
bytes: z.ZodNumber;
|
|
135
|
+
platforms: z.ZodArray<z.ZodEnum<{
|
|
136
|
+
"darwin-arm64": "darwin-arm64";
|
|
137
|
+
"darwin-x64": "darwin-x64";
|
|
138
|
+
"win32-x64": "win32-x64";
|
|
139
|
+
"win32-arm64": "win32-arm64";
|
|
140
|
+
"linux-x64": "linux-x64";
|
|
141
|
+
"linux-arm64": "linux-arm64";
|
|
142
|
+
}>>;
|
|
143
|
+
nodeMinimum: z.ZodString;
|
|
144
|
+
updateProtocol: z.ZodNumber;
|
|
145
|
+
stateEpoch: z.ZodNumber;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
rollout: z.ZodObject<{
|
|
148
|
+
percent: z.ZodNumber;
|
|
149
|
+
salt: z.ZodString;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
+
schema: z.ZodLiteral<2>;
|
|
153
|
+
channel: z.ZodEnum<{
|
|
154
|
+
internal: "internal";
|
|
155
|
+
beta: "beta";
|
|
156
|
+
stable: "stable";
|
|
157
|
+
}>;
|
|
158
|
+
sequence: z.ZodNumber;
|
|
159
|
+
issuedAt: z.ZodString;
|
|
160
|
+
expiresAt: z.ZodString;
|
|
161
|
+
minimumVersion: z.ZodString;
|
|
162
|
+
withdrawnVersions: z.ZodArray<z.ZodString>;
|
|
163
|
+
distributionPaused: z.ZodBoolean;
|
|
164
|
+
serverProtocols: z.ZodArray<z.ZodNumber>;
|
|
165
|
+
rollout: z.ZodObject<{
|
|
166
|
+
percent: z.ZodNumber;
|
|
167
|
+
salt: z.ZodString;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
clients: z.ZodArray<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
generation: z.ZodNumber;
|
|
172
|
+
platform: z.ZodEnum<{
|
|
173
|
+
windows: "windows";
|
|
174
|
+
macos: "macos";
|
|
175
|
+
ios: "ios";
|
|
176
|
+
android: "android";
|
|
177
|
+
}>;
|
|
178
|
+
appVersion: z.ZodString;
|
|
179
|
+
protocols: z.ZodArray<z.ZodNumber>;
|
|
180
|
+
minimumDaemon: z.ZodString;
|
|
181
|
+
recommendedDaemon: z.ZodString;
|
|
182
|
+
supported: z.ZodBoolean;
|
|
183
|
+
}, z.core.$strict>>;
|
|
184
|
+
daemons: z.ZodArray<z.ZodObject<{
|
|
185
|
+
artifact: z.ZodObject<{
|
|
186
|
+
version: z.ZodString;
|
|
187
|
+
archiveUrl: z.ZodString;
|
|
188
|
+
integrity: z.ZodString;
|
|
189
|
+
bytes: z.ZodNumber;
|
|
190
|
+
platforms: z.ZodArray<z.ZodEnum<{
|
|
191
|
+
"darwin-arm64": "darwin-arm64";
|
|
192
|
+
"darwin-x64": "darwin-x64";
|
|
193
|
+
"win32-x64": "win32-x64";
|
|
194
|
+
"win32-arm64": "win32-arm64";
|
|
195
|
+
"linux-x64": "linux-x64";
|
|
196
|
+
"linux-arm64": "linux-arm64";
|
|
197
|
+
}>>;
|
|
198
|
+
nodeMinimum: z.ZodString;
|
|
199
|
+
updateProtocol: z.ZodNumber;
|
|
200
|
+
stateEpoch: z.ZodNumber;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
clientProtocols: z.ZodArray<z.ZodNumber>;
|
|
203
|
+
serverProtocols: z.ZodArray<z.ZodNumber>;
|
|
204
|
+
features: z.ZodArray<z.ZodString>;
|
|
205
|
+
}, z.core.$strict>>;
|
|
206
|
+
}, z.core.$strict>]>;
|
|
207
|
+
export type DaemonUpdatePolicy = z.infer<typeof DaemonUpdatePolicySchema>;
|
|
208
|
+
/** Retire releases explicitly; removing and later reusing an identity must not rewrite history. */
|
|
209
|
+
export declare function assertCatalogEvolution(previous: ReleaseCatalog, next: ReleaseCatalog): void;
|
|
210
|
+
export declare const ComputerClientSchema: z.ZodObject<{
|
|
211
|
+
deviceId: z.ZodString;
|
|
212
|
+
releaseId: z.ZodString;
|
|
213
|
+
}, z.core.$strict>;
|
|
214
|
+
export type ComputerClient = z.infer<typeof ComputerClientSchema>;
|
|
215
|
+
export type DeviceCompatibility = ComputerClient & {
|
|
216
|
+
state: 'ready' | 'update_app' | 'update_computer' | 'unknown_release';
|
|
217
|
+
protocol: number | null;
|
|
218
|
+
};
|
|
219
|
+
export type CoordinatedUpdateDecision = Omit<DaemonUpdateDecision, 'reason'> & {
|
|
220
|
+
reason: DaemonUpdateDecision['reason'] | 'unknown_client' | 'unknown_daemon' | 'compatibility_conflict' | 'distribution_paused' | 'missing_capability';
|
|
221
|
+
target: DaemonRelease | null;
|
|
222
|
+
devices: DeviceCompatibility[];
|
|
223
|
+
};
|
|
224
|
+
export declare function catalogDaemonSupported(catalog: ReleaseCatalog, version: string): boolean;
|
|
225
|
+
export declare function computerClientCompatibility(catalog: ReleaseCatalog, version: string, devices: readonly ComputerClient[]): DeviceCompatibility[];
|
|
226
|
+
/** Pure release selection. Only authenticated, catalog-recognized device reports may enroll. */
|
|
227
|
+
export declare function selectDaemonRelease(catalog: ReleaseCatalog, installed: DaemonInstallation, devices: readonly ComputerClient[], requiredFeatures?: readonly string[]): CoordinatedUpdateDecision;
|
|
228
|
+
//# sourceMappingURL=releaseCompatibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"releaseCompatibility.d.ts","sourceRoot":"","sources":["../src/releaseCompatibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEsC,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,KAAK,oBAAoB,EAClH,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;kBAW+B,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,8CAA8C;AAC9C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;kBAAsB,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;AAE1C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;kBAKxB,CAAC;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,4FAA4F;AAC5F,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAG7G;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwB/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA+D,CAAC;AACrG,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,mGAAmG;AACnG,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,GAAG,IAAI,CAa3F;AAED,eAAO,MAAM,oBAAoB;;;kBAGtB,CAAC;AACZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IACjD,KAAK,EAAE,OAAO,GAAG,YAAY,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;IACtE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,GAAG;IAC7E,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,wBAAwB,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;IACvJ,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;CAChC,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAIxF;AAOD,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,cAAc,EAAE,GAAG,mBAAmB,EAAE,CAS/I;AAED,gGAAgG;AAChG,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,cAAc,EAAE,EAAE,gBAAgB,GAAE,SAAS,MAAM,EAAO,GAAG,yBAAyB,CAuCnM"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DaemonReleaseSchema, DaemonReleaseManifestSchema, DaemonUpdateChannelSchema, DaemonVersionSchema, compareDaemonVersions, decideDaemonUpdate, } from './daemonUpdates.js';
|
|
3
|
+
const ProtocolsSchema = z.array(z.number().int().positive().max(1000)).min(1).max(16)
|
|
4
|
+
.refine((values) => new Set(values).size === values.length, 'Duplicate protocol');
|
|
5
|
+
export const ClientReleaseSchema = z.object({
|
|
6
|
+
// Immutable identity includes native build and OTA revision, not only the display version.
|
|
7
|
+
id: z.string().regex(/^[a-zA-Z0-9._-]{1,120}$/),
|
|
8
|
+
generation: z.number().int().positive().max(Number.MAX_SAFE_INTEGER),
|
|
9
|
+
platform: z.enum(['ios', 'android', 'macos', 'windows']),
|
|
10
|
+
appVersion: DaemonVersionSchema,
|
|
11
|
+
protocols: ProtocolsSchema,
|
|
12
|
+
minimumDaemon: DaemonVersionSchema,
|
|
13
|
+
recommendedDaemon: DaemonVersionSchema,
|
|
14
|
+
supported: z.boolean(),
|
|
15
|
+
}).strict().refine((release) => compareDaemonVersions(release.recommendedDaemon, release.minimumDaemon) >= 0, { message: 'Recommended daemon must meet the client minimum' });
|
|
16
|
+
/** Retained for existing mobile consumers. */
|
|
17
|
+
export const MobileReleaseSchema = ClientReleaseSchema;
|
|
18
|
+
export const CompatibleDaemonSchema = z.object({
|
|
19
|
+
artifact: DaemonReleaseSchema,
|
|
20
|
+
clientProtocols: ProtocolsSchema,
|
|
21
|
+
serverProtocols: ProtocolsSchema,
|
|
22
|
+
features: z.array(z.string().min(1).max(80)).max(64),
|
|
23
|
+
}).strict();
|
|
24
|
+
/** Highest mutually understood protocol. Features still need their own capability check. */
|
|
25
|
+
export function negotiateComputerProtocol(client, daemon) {
|
|
26
|
+
const common = client.filter((protocol) => daemon.includes(protocol));
|
|
27
|
+
return common.length ? Math.max(...common) : null;
|
|
28
|
+
}
|
|
29
|
+
export const ReleaseCatalogSchema = z.object({
|
|
30
|
+
schema: z.literal(2), channel: DaemonUpdateChannelSchema,
|
|
31
|
+
sequence: z.number().int().positive().max(Number.MAX_SAFE_INTEGER),
|
|
32
|
+
issuedAt: z.string().datetime(), expiresAt: z.string().datetime(),
|
|
33
|
+
minimumVersion: DaemonVersionSchema,
|
|
34
|
+
withdrawnVersions: z.array(DaemonVersionSchema).max(1000),
|
|
35
|
+
distributionPaused: z.boolean(),
|
|
36
|
+
serverProtocols: ProtocolsSchema,
|
|
37
|
+
rollout: z.object({ percent: z.number().int().min(0).max(100), salt: z.string().min(1).max(100) }).strict(),
|
|
38
|
+
clients: z.array(ClientReleaseSchema).max(512),
|
|
39
|
+
daemons: z.array(CompatibleDaemonSchema).min(1).max(128),
|
|
40
|
+
}).strict().superRefine((catalog, ctx) => {
|
|
41
|
+
const invalid = (message) => ctx.addIssue({ code: 'custom', message });
|
|
42
|
+
const lifetime = Date.parse(catalog.expiresAt) - Date.parse(catalog.issuedAt);
|
|
43
|
+
if (lifetime <= 0 || lifetime > 30 * 86400_000)
|
|
44
|
+
invalid('Catalog validity must be between zero and 30 days');
|
|
45
|
+
if (new Set(catalog.clients.map((release) => release.id)).size !== catalog.clients.length)
|
|
46
|
+
invalid('Duplicate client release ID');
|
|
47
|
+
if (new Set(catalog.clients.map((release) => `${release.platform}:${release.generation}`)).size !== catalog.clients.length)
|
|
48
|
+
invalid('Duplicate client release generation');
|
|
49
|
+
if (new Set(catalog.daemons.map((release) => release.artifact.version)).size !== catalog.daemons.length)
|
|
50
|
+
invalid('Duplicate daemon version');
|
|
51
|
+
for (const client of catalog.clients.filter((release) => release.supported)) {
|
|
52
|
+
const recommended = catalog.daemons.find((release) => release.artifact.version === client.recommendedDaemon);
|
|
53
|
+
if (!recommended || negotiateComputerProtocol(client.protocols, recommended.clientProtocols) === null)
|
|
54
|
+
invalid(`Client release ${client.id} needs a declared compatible recommendation`);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export const DaemonUpdatePolicySchema = z.union([DaemonReleaseManifestSchema, ReleaseCatalogSchema]);
|
|
58
|
+
/** Retire releases explicitly; removing and later reusing an identity must not rewrite history. */
|
|
59
|
+
export function assertCatalogEvolution(previous, next) {
|
|
60
|
+
if (previous.channel !== next.channel)
|
|
61
|
+
throw new Error('Release channel mismatch');
|
|
62
|
+
for (const old of previous.clients) {
|
|
63
|
+
const current = next.clients.find((client) => client.id === old.id);
|
|
64
|
+
if (!current)
|
|
65
|
+
throw new Error('Published client releases must be retained or explicitly retired');
|
|
66
|
+
if (JSON.stringify({ ...old, supported: true }) !== JSON.stringify({ ...current, supported: true }))
|
|
67
|
+
throw new Error('Published client compatibility declarations are immutable');
|
|
68
|
+
}
|
|
69
|
+
for (const old of previous.daemons) {
|
|
70
|
+
const current = next.daemons.find((daemon) => daemon.artifact.version === old.artifact.version);
|
|
71
|
+
if (!current || JSON.stringify(old) !== JSON.stringify(current))
|
|
72
|
+
throw new Error('Published daemon compatibility declarations are immutable');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export const ComputerClientSchema = z.object({
|
|
76
|
+
deviceId: z.string().min(1).max(128),
|
|
77
|
+
releaseId: z.string().regex(/^[a-zA-Z0-9._-]{1,120}$/),
|
|
78
|
+
}).strict();
|
|
79
|
+
export function catalogDaemonSupported(catalog, version) {
|
|
80
|
+
const daemon = catalog.daemons.find((entry) => entry.artifact.version === version);
|
|
81
|
+
return Boolean(daemon && compareDaemonVersions(version, catalog.minimumVersion) >= 0 &&
|
|
82
|
+
!catalog.withdrawnVersions.includes(version) && negotiateComputerProtocol(daemon.serverProtocols, catalog.serverProtocols) !== null);
|
|
83
|
+
}
|
|
84
|
+
function supportsClient(daemon, client) {
|
|
85
|
+
return compareDaemonVersions(daemon.artifact.version, client.minimumDaemon) >= 0 &&
|
|
86
|
+
negotiateComputerProtocol(client.protocols, daemon.clientProtocols) !== null;
|
|
87
|
+
}
|
|
88
|
+
export function computerClientCompatibility(catalog, version, devices) {
|
|
89
|
+
const daemon = catalog.daemons.find((entry) => entry.artifact.version === version);
|
|
90
|
+
return devices.map((device) => {
|
|
91
|
+
const client = catalog.clients.find((entry) => entry.id === device.releaseId);
|
|
92
|
+
const protocol = daemon && client ? negotiateComputerProtocol(client.protocols, daemon.clientProtocols) : null;
|
|
93
|
+
const state = !client ? 'unknown_release' : !client.supported ? 'update_app' :
|
|
94
|
+
daemon && catalogDaemonSupported(catalog, version) && supportsClient(daemon, client) ? 'ready' : 'update_computer';
|
|
95
|
+
return { ...device, state, protocol: state === 'ready' ? protocol : null };
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/** Pure release selection. Only authenticated, catalog-recognized device reports may enroll. */
|
|
99
|
+
export function selectDaemonRelease(catalog, installed, devices, requiredFeatures = []) {
|
|
100
|
+
if (catalog.channel !== installed.channel)
|
|
101
|
+
throw new Error('Update channel mismatch');
|
|
102
|
+
if (!Number.isFinite(installed.rolloutBucket) || installed.rolloutBucket < 0 || installed.rolloutBucket >= 100)
|
|
103
|
+
throw new Error('Invalid rollout bucket');
|
|
104
|
+
const deviceStates = computerClientCompatibility(catalog, installed.version, devices);
|
|
105
|
+
const globalBlock = !catalogDaemonSupported(catalog, installed.version);
|
|
106
|
+
const required = globalBlock || deviceStates.some((device) => device.state === 'update_computer');
|
|
107
|
+
const result = (action, reason, target = null) => ({ action, reason, target, required, allowNewWork: !globalBlock, devices: deviceStates });
|
|
108
|
+
if (!installed.managed)
|
|
109
|
+
return result('unmanaged', 'unmanaged');
|
|
110
|
+
if (!catalog.daemons.some((daemon) => daemon.artifact.version === installed.version))
|
|
111
|
+
return result('blocked', 'unknown_daemon');
|
|
112
|
+
if (deviceStates.some((device) => device.state === 'unknown_release'))
|
|
113
|
+
return result('blocked', 'unknown_client');
|
|
114
|
+
const clients = devices.flatMap((device) => catalog.clients.filter((client) => client.id === device.releaseId && client.supported));
|
|
115
|
+
let wanted = catalog.minimumVersion;
|
|
116
|
+
for (const client of clients)
|
|
117
|
+
if (compareDaemonVersions(client.recommendedDaemon, wanted) > 0)
|
|
118
|
+
wanted = client.recommendedDaemon;
|
|
119
|
+
const hasFeatures = (daemon) => requiredFeatures.every(feature => daemon.features.includes(feature));
|
|
120
|
+
const capabilityMissing = !hasFeatures(catalog.daemons.find(daemon => daemon.artifact.version === installed.version));
|
|
121
|
+
if (!required && !capabilityMissing && compareDaemonVersions(installed.version, wanted) >= 0)
|
|
122
|
+
return result('none', clients.length ? 'current' : 'no_client_requirement');
|
|
123
|
+
if (catalog.distributionPaused)
|
|
124
|
+
return result('blocked', 'distribution_paused');
|
|
125
|
+
// Old supported devices constrain every candidate, even while asleep/disconnected.
|
|
126
|
+
const candidates = catalog.daemons.filter((daemon) => compareDaemonVersions(daemon.artifact.version, installed.version) > 0 &&
|
|
127
|
+
compareDaemonVersions(daemon.artifact.version, wanted) >= 0 &&
|
|
128
|
+
hasFeatures(daemon) && catalogDaemonSupported(catalog, daemon.artifact.version) && clients.every((client) => supportsClient(daemon, client)))
|
|
129
|
+
.sort((a, b) => compareDaemonVersions(a.artifact.version, b.artifact.version));
|
|
130
|
+
if (!candidates.length)
|
|
131
|
+
return result('blocked', capabilityMissing ? 'missing_capability' : 'compatibility_conflict');
|
|
132
|
+
// Prefer the lowest tested release satisfying all requirements, never the newest by default.
|
|
133
|
+
let blocked;
|
|
134
|
+
for (const candidate of candidates) {
|
|
135
|
+
const gate = decideDaemonUpdate({ schema: 1, channel: catalog.channel, sequence: catalog.sequence,
|
|
136
|
+
issuedAt: catalog.issuedAt, expiresAt: catalog.expiresAt, minimumVersion: catalog.minimumVersion,
|
|
137
|
+
withdrawnVersions: catalog.withdrawnVersions, release: candidate.artifact,
|
|
138
|
+
rollout: required ? { ...catalog.rollout, percent: 100 } : catalog.rollout,
|
|
139
|
+
}, installed, true);
|
|
140
|
+
if (gate.action === 'stage')
|
|
141
|
+
return result('stage', 'update', candidate.artifact);
|
|
142
|
+
blocked ??= result(gate.action, gate.reason);
|
|
143
|
+
}
|
|
144
|
+
return blocked;
|
|
145
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const RepositoryDestinationInputSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodUUID;
|
|
4
|
+
projectId: z.ZodUUID;
|
|
5
|
+
computerId: z.ZodString;
|
|
6
|
+
repoId: z.ZodString;
|
|
7
|
+
enabled: z.ZodBoolean;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export declare const RepositoryDestinationSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodUUID;
|
|
11
|
+
projectId: z.ZodUUID;
|
|
12
|
+
computerId: z.ZodString;
|
|
13
|
+
repoId: z.ZodString;
|
|
14
|
+
enabled: z.ZodBoolean;
|
|
15
|
+
owner: z.ZodObject<{
|
|
16
|
+
id: z.ZodUUID;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
handle: z.ZodNullable<z.ZodString>;
|
|
19
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
projectName: z.ZodString;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
export declare const RepositoryRequestInputSchema: z.ZodObject<{
|
|
24
|
+
id: z.ZodUUID;
|
|
25
|
+
destinationId: z.ZodUUID;
|
|
26
|
+
prompt: z.ZodString;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
export declare const RepositoryRequestTargetSchema: z.ZodObject<{
|
|
29
|
+
workerId: z.ZodOptional<z.ZodUUID>;
|
|
30
|
+
mode: z.ZodEnum<{
|
|
31
|
+
worktree: "worktree";
|
|
32
|
+
"in-place": "in-place";
|
|
33
|
+
}>;
|
|
34
|
+
conversationRevision: z.ZodString;
|
|
35
|
+
expectedBranch: z.ZodString;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export declare const RepositoryRequestApprovalSchema: z.ZodObject<{
|
|
38
|
+
digest: z.ZodString;
|
|
39
|
+
target: z.ZodObject<{
|
|
40
|
+
workerId: z.ZodOptional<z.ZodUUID>;
|
|
41
|
+
mode: z.ZodEnum<{
|
|
42
|
+
worktree: "worktree";
|
|
43
|
+
"in-place": "in-place";
|
|
44
|
+
}>;
|
|
45
|
+
conversationRevision: z.ZodString;
|
|
46
|
+
expectedBranch: z.ZodString;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
export declare const RepositoryRequestSchema: z.ZodObject<{
|
|
50
|
+
id: z.ZodUUID;
|
|
51
|
+
destinationId: z.ZodUUID;
|
|
52
|
+
prompt: z.ZodString;
|
|
53
|
+
digest: z.ZodString;
|
|
54
|
+
status: z.ZodEnum<{
|
|
55
|
+
unavailable: "unavailable";
|
|
56
|
+
approved: "approved";
|
|
57
|
+
cancelled: "cancelled";
|
|
58
|
+
pending: "pending";
|
|
59
|
+
queued: "queued";
|
|
60
|
+
delivering: "delivering";
|
|
61
|
+
delivered: "delivered";
|
|
62
|
+
declined: "declined";
|
|
63
|
+
}>;
|
|
64
|
+
sender: z.ZodObject<{
|
|
65
|
+
id: z.ZodUUID;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
handle: z.ZodNullable<z.ZodString>;
|
|
68
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
recipient: z.ZodObject<{
|
|
71
|
+
id: z.ZodUUID;
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
handle: z.ZodNullable<z.ZodString>;
|
|
74
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
repoId: z.ZodString;
|
|
77
|
+
projectName: z.ZodString;
|
|
78
|
+
computerId: z.ZodString;
|
|
79
|
+
createdAt: z.ZodString;
|
|
80
|
+
target: z.ZodNullable<z.ZodObject<{
|
|
81
|
+
workerId: z.ZodOptional<z.ZodUUID>;
|
|
82
|
+
mode: z.ZodEnum<{
|
|
83
|
+
worktree: "worktree";
|
|
84
|
+
"in-place": "in-place";
|
|
85
|
+
}>;
|
|
86
|
+
conversationRevision: z.ZodString;
|
|
87
|
+
expectedBranch: z.ZodString;
|
|
88
|
+
}, z.core.$strict>>;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
export declare const RepositoryInboxSchema: z.ZodObject<{
|
|
91
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
92
|
+
id: z.ZodUUID;
|
|
93
|
+
destinationId: z.ZodUUID;
|
|
94
|
+
prompt: z.ZodString;
|
|
95
|
+
digest: z.ZodString;
|
|
96
|
+
status: z.ZodEnum<{
|
|
97
|
+
unavailable: "unavailable";
|
|
98
|
+
approved: "approved";
|
|
99
|
+
cancelled: "cancelled";
|
|
100
|
+
pending: "pending";
|
|
101
|
+
queued: "queued";
|
|
102
|
+
delivering: "delivering";
|
|
103
|
+
delivered: "delivered";
|
|
104
|
+
declined: "declined";
|
|
105
|
+
}>;
|
|
106
|
+
sender: z.ZodObject<{
|
|
107
|
+
id: z.ZodUUID;
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
handle: z.ZodNullable<z.ZodString>;
|
|
110
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
recipient: z.ZodObject<{
|
|
113
|
+
id: z.ZodUUID;
|
|
114
|
+
name: z.ZodString;
|
|
115
|
+
handle: z.ZodNullable<z.ZodString>;
|
|
116
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
repoId: z.ZodString;
|
|
119
|
+
projectName: z.ZodString;
|
|
120
|
+
computerId: z.ZodString;
|
|
121
|
+
createdAt: z.ZodString;
|
|
122
|
+
target: z.ZodNullable<z.ZodObject<{
|
|
123
|
+
workerId: z.ZodOptional<z.ZodUUID>;
|
|
124
|
+
mode: z.ZodEnum<{
|
|
125
|
+
worktree: "worktree";
|
|
126
|
+
"in-place": "in-place";
|
|
127
|
+
}>;
|
|
128
|
+
conversationRevision: z.ZodString;
|
|
129
|
+
expectedBranch: z.ZodString;
|
|
130
|
+
}, z.core.$strict>>;
|
|
131
|
+
}, z.core.$strict>>;
|
|
132
|
+
destinations: z.ZodArray<z.ZodObject<{
|
|
133
|
+
id: z.ZodUUID;
|
|
134
|
+
projectId: z.ZodUUID;
|
|
135
|
+
computerId: z.ZodString;
|
|
136
|
+
repoId: z.ZodString;
|
|
137
|
+
enabled: z.ZodBoolean;
|
|
138
|
+
owner: z.ZodObject<{
|
|
139
|
+
id: z.ZodUUID;
|
|
140
|
+
name: z.ZodString;
|
|
141
|
+
handle: z.ZodNullable<z.ZodString>;
|
|
142
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
projectName: z.ZodString;
|
|
145
|
+
}, z.core.$strict>>;
|
|
146
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
147
|
+
id: z.ZodUUID;
|
|
148
|
+
name: z.ZodString;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
export type RepositoryDestination = z.infer<typeof RepositoryDestinationSchema>;
|
|
152
|
+
export type RepositoryRequest = z.infer<typeof RepositoryRequestSchema>;
|
|
153
|
+
export type RepositoryInbox = z.infer<typeof RepositoryInboxSchema>;
|
|
154
|
+
export type RepositoryRequestTarget = z.infer<typeof RepositoryRequestTargetSchema>;
|
|
155
|
+
export declare const RepositoryPendingCountSchema: z.ZodObject<{
|
|
156
|
+
pending: z.ZodNumber;
|
|
157
|
+
repositories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
158
|
+
repoId: z.ZodString;
|
|
159
|
+
pending: z.ZodNumber;
|
|
160
|
+
}, z.core.$strip>>>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
export type RepositoryPendingCount = z.infer<typeof RepositoryPendingCountSchema>;
|
|
163
|
+
export declare const repositoryRequestStatus: {
|
|
164
|
+
pending: string;
|
|
165
|
+
approved: string;
|
|
166
|
+
delivering: string;
|
|
167
|
+
queued: string;
|
|
168
|
+
delivered: string;
|
|
169
|
+
declined: string;
|
|
170
|
+
cancelled: string;
|
|
171
|
+
unavailable: string;
|
|
172
|
+
};
|
|
173
|
+
//# sourceMappingURL=repositoryRequests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repositoryRequests.d.ts","sourceRoot":"","sources":["../src/repositoryRequests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gCAAgC;;;;;;kBAGlC,CAAC;AACZ,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;kBAEtC,CAAC;AACH,eAAO,MAAM,4BAA4B;;;;kBAE9B,CAAC;AACZ,eAAO,MAAM,6BAA6B;;;;;;;;kBAGgE,CAAC;AAC3G,eAAO,MAAM,+BAA+B;;;;;;;;;;;kBAEjC,CAAC;AACZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKlC,CAAC;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,eAAO,MAAM,4BAA4B;;;;;;iBAIvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,eAAO,MAAM,uBAAuB;;;;;;;;;CAGmB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ParticipantIdentitySchema } from './agentMessages.js';
|
|
3
|
+
export const RepositoryDestinationInputSchema = z.object({
|
|
4
|
+
id: z.uuidv7(), projectId: z.uuid(), computerId: z.string().min(1).max(128),
|
|
5
|
+
repoId: z.string().min(1).max(255), enabled: z.boolean(),
|
|
6
|
+
}).strict();
|
|
7
|
+
export const RepositoryDestinationSchema = RepositoryDestinationInputSchema.extend({
|
|
8
|
+
owner: ParticipantIdentitySchema, projectName: z.string(),
|
|
9
|
+
});
|
|
10
|
+
export const RepositoryRequestInputSchema = z.object({
|
|
11
|
+
id: z.uuidv7(), destinationId: z.uuidv7(), prompt: z.string().min(1).max(100_000).refine(value => !!value.trim(), 'Write a prompt first.'),
|
|
12
|
+
}).strict();
|
|
13
|
+
export const RepositoryRequestTargetSchema = z.object({
|
|
14
|
+
workerId: z.uuidv7().optional(), mode: z.enum(['in-place', 'worktree']),
|
|
15
|
+
conversationRevision: z.string().min(1).max(128), expectedBranch: z.string().min(1).max(255),
|
|
16
|
+
}).strict().refine(value => value.mode === 'in-place' || !!value.workerId, 'Choose an existing worktree.');
|
|
17
|
+
export const RepositoryRequestApprovalSchema = z.object({
|
|
18
|
+
digest: z.string().regex(/^[a-f0-9]{64}$/), target: RepositoryRequestTargetSchema,
|
|
19
|
+
}).strict();
|
|
20
|
+
export const RepositoryRequestSchema = RepositoryRequestInputSchema.extend({
|
|
21
|
+
digest: z.string(), status: z.enum(['pending', 'approved', 'delivering', 'queued', 'delivered', 'declined', 'cancelled', 'unavailable']),
|
|
22
|
+
sender: ParticipantIdentitySchema, recipient: ParticipantIdentitySchema,
|
|
23
|
+
repoId: z.string(), projectName: z.string(), computerId: z.string(),
|
|
24
|
+
createdAt: z.string(), target: RepositoryRequestTargetSchema.nullable(),
|
|
25
|
+
});
|
|
26
|
+
export const RepositoryInboxSchema = z.object({
|
|
27
|
+
requests: z.array(RepositoryRequestSchema), destinations: z.array(RepositoryDestinationSchema),
|
|
28
|
+
projects: z.array(z.object({ id: z.uuid(), name: z.string() })),
|
|
29
|
+
});
|
|
30
|
+
export const RepositoryPendingCountSchema = z.object({
|
|
31
|
+
pending: z.number().int().nonnegative(),
|
|
32
|
+
// Optional while desktop/mobile and the API roll out independently.
|
|
33
|
+
repositories: z.array(z.object({ repoId: z.string(), pending: z.number().int().nonnegative() })).optional(),
|
|
34
|
+
});
|
|
35
|
+
export const repositoryRequestStatus = {
|
|
36
|
+
pending: 'Awaiting approval', approved: 'Waiting for computer', delivering: 'Adding to queue', queued: 'Queued', delivered: 'Delivered to agent',
|
|
37
|
+
declined: 'Declined', cancelled: 'Cancelled', unavailable: 'Unavailable',
|
|
38
|
+
};
|