@oscharko-dev/keiko-server 0.2.7 → 0.2.9
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/dist/.tsbuildinfo +1 -1
- package/dist/chat-handlers.d.ts +18 -2
- package/dist/chat-handlers.d.ts.map +1 -1
- package/dist/chat-handlers.js +185 -3
- package/dist/command-runner-errors.d.ts +17 -0
- package/dist/command-runner-errors.d.ts.map +1 -0
- package/dist/command-runner-errors.js +37 -0
- package/dist/command-runner-evidence.d.ts +23 -0
- package/dist/command-runner-evidence.d.ts.map +1 -0
- package/dist/command-runner-evidence.js +69 -0
- package/dist/command-runner-routes.d.ts +7 -0
- package/dist/command-runner-routes.d.ts.map +1 -0
- package/dist/command-runner-routes.js +175 -0
- package/dist/command-runner.d.ts +29 -0
- package/dist/command-runner.d.ts.map +1 -0
- package/dist/command-runner.js +348 -0
- package/dist/conversation-prompt.d.ts +2 -2
- package/dist/conversation-prompt.d.ts.map +1 -1
- package/dist/conversation-prompt.js +17 -1
- package/dist/csp.d.ts.map +1 -1
- package/dist/csp.js +3 -0
- package/dist/deps.d.ts +28 -1
- package/dist/deps.d.ts.map +1 -1
- package/dist/deps.js +288 -13
- package/dist/discussion-prompt.d.ts +4 -0
- package/dist/discussion-prompt.d.ts.map +1 -0
- package/dist/discussion-prompt.js +19 -0
- package/dist/editor/agentActionAudit.d.ts +18 -0
- package/dist/editor/agentActionAudit.d.ts.map +1 -0
- package/dist/editor/agentActionAudit.js +80 -0
- package/dist/editor/agentRoutes.d.ts +1 -0
- package/dist/editor/agentRoutes.d.ts.map +1 -1
- package/dist/editor/agentRoutes.js +292 -55
- package/dist/editor/agentSessionRegistry.d.ts +35 -0
- package/dist/editor/agentSessionRegistry.d.ts.map +1 -0
- package/dist/editor/agentSessionRegistry.js +243 -0
- package/dist/editor/completionRoutes.d.ts.map +1 -1
- package/dist/editor/completionRoutes.js +5 -10
- package/dist/editor/languageRoutes.d.ts +12 -1
- package/dist/editor/languageRoutes.d.ts.map +1 -1
- package/dist/editor/languageRoutes.js +71 -8
- package/dist/editor/languageService.d.ts +3 -2
- package/dist/editor/languageService.d.ts.map +1 -1
- package/dist/editor/languageService.js +41 -3
- package/dist/editor/languageServiceHost.d.ts.map +1 -1
- package/dist/editor/languageServiceHost.js +2 -2
- package/dist/editor/lsp/hostLanguageOperation.d.ts +17 -0
- package/dist/editor/lsp/hostLanguageOperation.d.ts.map +1 -0
- package/dist/editor/lsp/hostLanguageOperation.js +436 -0
- package/dist/editor/lsp/hostLanguageProviders.d.ts +26 -0
- package/dist/editor/lsp/hostLanguageProviders.d.ts.map +1 -0
- package/dist/editor/lsp/hostLanguageProviders.js +161 -0
- package/dist/editor/lsp/lspFrameCodec.d.ts +13 -0
- package/dist/editor/lsp/lspFrameCodec.d.ts.map +1 -0
- package/dist/editor/lsp/lspFrameCodec.js +164 -0
- package/dist/editor/lsp/lspJsonRpcClient.d.ts +34 -0
- package/dist/editor/lsp/lspJsonRpcClient.d.ts.map +1 -0
- package/dist/editor/lsp/lspJsonRpcClient.js +173 -0
- package/dist/editor/lsp/lspLanguageProvider.d.ts +7 -0
- package/dist/editor/lsp/lspLanguageProvider.d.ts.map +1 -0
- package/dist/editor/lsp/lspLanguageProvider.js +29 -0
- package/dist/editor/lsp/lspLifecycleLedger.d.ts +5 -0
- package/dist/editor/lsp/lspLifecycleLedger.d.ts.map +1 -0
- package/dist/editor/lsp/lspLifecycleLedger.js +37 -0
- package/dist/editor/lsp/lspNodeAdapter.d.ts +31 -0
- package/dist/editor/lsp/lspNodeAdapter.d.ts.map +1 -0
- package/dist/editor/lsp/lspNodeAdapter.js +230 -0
- package/dist/editor/lsp/lspProcessManager.d.ts +24 -0
- package/dist/editor/lsp/lspProcessManager.d.ts.map +1 -0
- package/dist/editor/lsp/lspProcessManager.js +255 -0
- package/dist/editor/lsp/lspRestartThrottle.d.ts +6 -0
- package/dist/editor/lsp/lspRestartThrottle.d.ts.map +1 -0
- package/dist/editor/lsp/lspRestartThrottle.js +24 -0
- package/dist/editor/lsp/lspStatusRoute.d.ts +8 -0
- package/dist/editor/lsp/lspStatusRoute.d.ts.map +1 -0
- package/dist/editor/lsp/lspStatusRoute.js +22 -0
- package/dist/editor/lsp/lspTransport.d.ts +19 -0
- package/dist/editor/lsp/lspTransport.d.ts.map +1 -0
- package/dist/editor/lsp/lspTransport.js +55 -0
- package/dist/editor/lsp/testing/fakeLspProcess.d.ts +23 -0
- package/dist/editor/lsp/testing/fakeLspProcess.d.ts.map +1 -0
- package/dist/editor/lsp/testing/fakeLspProcess.js +132 -0
- package/dist/files.d.ts +63 -0
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +799 -1
- package/dist/gateway-readiness.d.ts +6 -0
- package/dist/gateway-readiness.d.ts.map +1 -0
- package/dist/gateway-readiness.js +624 -0
- package/dist/gateway-setup.d.ts +2 -0
- package/dist/gateway-setup.d.ts.map +1 -1
- package/dist/gateway-setup.js +275 -11
- package/dist/gitDelivery/actionSheetProjection.d.ts +30 -0
- package/dist/gitDelivery/actionSheetProjection.d.ts.map +1 -0
- package/dist/gitDelivery/actionSheetProjection.js +206 -0
- package/dist/gitDelivery/actionSheetRoutes.d.ts +29 -0
- package/dist/gitDelivery/actionSheetRoutes.d.ts.map +1 -0
- package/dist/gitDelivery/actionSheetRoutes.js +293 -0
- package/dist/gitDelivery/agentOperationsRoutes.d.ts +33 -0
- package/dist/gitDelivery/agentOperationsRoutes.d.ts.map +1 -0
- package/dist/gitDelivery/agentOperationsRoutes.js +405 -0
- package/dist/gitDelivery/commitRoutes.d.ts +23 -0
- package/dist/gitDelivery/commitRoutes.d.ts.map +1 -0
- package/dist/gitDelivery/commitRoutes.js +204 -0
- package/dist/gitDelivery/evidenceRoutes.d.ts +9 -0
- package/dist/gitDelivery/evidenceRoutes.d.ts.map +1 -0
- package/dist/gitDelivery/evidenceRoutes.js +101 -0
- package/dist/gitDelivery/execution.d.ts +38 -0
- package/dist/gitDelivery/execution.d.ts.map +1 -0
- package/dist/gitDelivery/execution.js +117 -0
- package/dist/gitDelivery/localMutationRoutes.d.ts +30 -0
- package/dist/gitDelivery/localMutationRoutes.d.ts.map +1 -0
- package/dist/gitDelivery/localMutationRoutes.js +165 -0
- package/dist/gitDelivery/mergeExecution.d.ts +63 -0
- package/dist/gitDelivery/mergeExecution.d.ts.map +1 -0
- package/dist/gitDelivery/mergeExecution.js +168 -0
- package/dist/gitDelivery/mergeRoutes.d.ts +12 -0
- package/dist/gitDelivery/mergeRoutes.d.ts.map +1 -0
- package/dist/gitDelivery/mergeRoutes.js +218 -0
- package/dist/gitDelivery/mutationEvidenceLedger.d.ts +23 -0
- package/dist/gitDelivery/mutationEvidenceLedger.d.ts.map +1 -0
- package/dist/gitDelivery/mutationEvidenceLedger.js +87 -0
- package/dist/gitDelivery/prExecution.d.ts +54 -0
- package/dist/gitDelivery/prExecution.d.ts.map +1 -0
- package/dist/gitDelivery/prExecution.js +192 -0
- package/dist/gitDelivery/prRoutes.d.ts +12 -0
- package/dist/gitDelivery/prRoutes.d.ts.map +1 -0
- package/dist/gitDelivery/prRoutes.js +256 -0
- package/dist/gitDelivery/pushExecution.d.ts +43 -0
- package/dist/gitDelivery/pushExecution.d.ts.map +1 -0
- package/dist/gitDelivery/pushExecution.js +124 -0
- package/dist/gitDelivery/pushRoutes.d.ts +12 -0
- package/dist/gitDelivery/pushRoutes.d.ts.map +1 -0
- package/dist/gitDelivery/pushRoutes.js +200 -0
- package/dist/gitDelivery/requestGuards.d.ts +15 -0
- package/dist/gitDelivery/requestGuards.d.ts.map +1 -0
- package/dist/gitDelivery/requestGuards.js +97 -0
- package/dist/gitDelivery/syncEvidence.d.ts +37 -0
- package/dist/gitDelivery/syncEvidence.d.ts.map +1 -0
- package/dist/gitDelivery/syncEvidence.js +85 -0
- package/dist/gitDelivery/syncExecution.d.ts +30 -0
- package/dist/gitDelivery/syncExecution.d.ts.map +1 -0
- package/dist/gitDelivery/syncExecution.js +266 -0
- package/dist/gitDelivery/syncRoutes.d.ts +13 -0
- package/dist/gitDelivery/syncRoutes.d.ts.map +1 -0
- package/dist/gitDelivery/syncRoutes.js +200 -0
- package/dist/gitPorcelainStatus.d.ts +15 -0
- package/dist/gitPorcelainStatus.d.ts.map +1 -0
- package/dist/gitPorcelainStatus.js +104 -0
- package/dist/gitRepositoryReads.d.ts +10 -0
- package/dist/gitRepositoryReads.d.ts.map +1 -0
- package/dist/gitRepositoryReads.js +314 -0
- package/dist/gitRepositoryRoutes.d.ts +7 -0
- package/dist/gitRepositoryRoutes.d.ts.map +1 -0
- package/dist/gitRepositoryRoutes.js +221 -0
- package/dist/gitRoutes.d.ts +66 -0
- package/dist/gitRoutes.d.ts.map +1 -0
- package/dist/gitRoutes.js +543 -0
- package/dist/governed-workflow.d.ts +2 -0
- package/dist/governed-workflow.d.ts.map +1 -1
- package/dist/governed-workflow.js +4 -0
- package/dist/grounded-qa-hybrid.d.ts.map +1 -1
- package/dist/grounded-qa-hybrid.js +2 -0
- package/dist/grounded-qa-multi-source.d.ts.map +1 -1
- package/dist/grounded-qa-multi-source.js +1 -0
- package/dist/grounded-qa.d.ts +11 -0
- package/dist/grounded-qa.d.ts.map +1 -1
- package/dist/grounded-qa.js +14 -4
- package/dist/headers.d.ts +4 -1
- package/dist/headers.d.ts.map +1 -1
- package/dist/headers.js +11 -4
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
- package/dist/local-knowledge-grounded-qa.js +11 -2
- package/dist/qualityIntelligence/figmaSnapshotRoutes.d.ts +1 -1
- package/dist/qualityIntelligence/figmaSnapshotRoutes.d.ts.map +1 -1
- package/dist/qualityIntelligence/figmaSnapshotRoutes.js +1 -1
- package/dist/read-handlers.d.ts +5 -0
- package/dist/read-handlers.d.ts.map +1 -1
- package/dist/read-handlers.js +57 -1
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +260 -12
- package/dist/run-engine.d.ts.map +1 -1
- package/dist/run-engine.js +3 -0
- package/dist/run-handlers.d.ts +0 -1
- package/dist/run-handlers.d.ts.map +1 -1
- package/dist/run-handlers.js +64 -211
- package/dist/run-request.d.ts +11 -0
- package/dist/run-request.d.ts.map +1 -1
- package/dist/run-request.js +158 -10
- package/dist/runtime/capabilityDetector.d.ts +38 -0
- package/dist/runtime/capabilityDetector.d.ts.map +1 -0
- package/dist/runtime/capabilityDetector.js +443 -0
- package/dist/runtime/capabilityRoutes.d.ts +9 -0
- package/dist/runtime/capabilityRoutes.d.ts.map +1 -0
- package/dist/runtime/capabilityRoutes.js +45 -0
- package/dist/runtime/containerEngineDetector.d.ts +17 -0
- package/dist/runtime/containerEngineDetector.d.ts.map +1 -0
- package/dist/runtime/containerEngineDetector.js +222 -0
- package/dist/runtime/containerRoutes.d.ts +8 -0
- package/dist/runtime/containerRoutes.d.ts.map +1 -0
- package/dist/runtime/containerRoutes.js +207 -0
- package/dist/runtime/containerRunner-errors.d.ts +18 -0
- package/dist/runtime/containerRunner-errors.d.ts.map +1 -0
- package/dist/runtime/containerRunner-errors.js +42 -0
- package/dist/runtime/containerRunner-evidence.d.ts +24 -0
- package/dist/runtime/containerRunner-evidence.d.ts.map +1 -0
- package/dist/runtime/containerRunner-evidence.js +74 -0
- package/dist/runtime/containerRunner.d.ts +37 -0
- package/dist/runtime/containerRunner.d.ts.map +1 -0
- package/dist/runtime/containerRunner.js +443 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +24 -4
- package/dist/store/db.d.ts.map +1 -1
- package/dist/store/db.js +2 -1
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/messages.d.ts +2 -1
- package/dist/store/messages.d.ts.map +1 -1
- package/dist/store/messages.js +46 -4
- package/dist/store/schema.d.ts +1 -1
- package/dist/store/schema.d.ts.map +1 -1
- package/dist/store/schema.js +68 -1
- package/dist/store/types.d.ts +3 -2
- package/dist/store/types.d.ts.map +1 -1
- package/dist/task-workspace/active-store.d.ts +21 -0
- package/dist/task-workspace/active-store.d.ts.map +1 -0
- package/dist/task-workspace/active-store.js +55 -0
- package/dist/task-workspace/authorization.d.ts +7 -0
- package/dist/task-workspace/authorization.d.ts.map +1 -0
- package/dist/task-workspace/authorization.js +54 -0
- package/dist/task-workspace/binding.d.ts +3 -0
- package/dist/task-workspace/binding.d.ts.map +1 -0
- package/dist/task-workspace/binding.js +22 -0
- package/dist/task-workspace/cleanup.d.ts +4 -0
- package/dist/task-workspace/cleanup.d.ts.map +1 -0
- package/dist/task-workspace/cleanup.js +428 -0
- package/dist/task-workspace/errors.d.ts +14 -0
- package/dist/task-workspace/errors.d.ts.map +1 -0
- package/dist/task-workspace/errors.js +81 -0
- package/dist/task-workspace/evidence.d.ts +32 -0
- package/dist/task-workspace/evidence.d.ts.map +1 -0
- package/dist/task-workspace/evidence.js +52 -0
- package/dist/task-workspace/field-safety.d.ts +3 -0
- package/dist/task-workspace/field-safety.d.ts.map +1 -0
- package/dist/task-workspace/field-safety.js +42 -0
- package/dist/task-workspace/health.d.ts +4 -0
- package/dist/task-workspace/health.d.ts.map +1 -0
- package/dist/task-workspace/health.js +163 -0
- package/dist/task-workspace/lifecycle.d.ts +3 -0
- package/dist/task-workspace/lifecycle.d.ts.map +1 -0
- package/dist/task-workspace/lifecycle.js +248 -0
- package/dist/task-workspace/locks.d.ts +13 -0
- package/dist/task-workspace/locks.d.ts.map +1 -0
- package/dist/task-workspace/locks.js +44 -0
- package/dist/task-workspace/managed-root.d.ts +7 -0
- package/dist/task-workspace/managed-root.d.ts.map +1 -0
- package/dist/task-workspace/managed-root.js +98 -0
- package/dist/task-workspace/mutex.d.ts +8 -0
- package/dist/task-workspace/mutex.d.ts.map +1 -0
- package/dist/task-workspace/mutex.js +82 -0
- package/dist/task-workspace/naming.d.ts +15 -0
- package/dist/task-workspace/naming.d.ts.map +1 -0
- package/dist/task-workspace/naming.js +0 -0
- package/dist/task-workspace/provisioning.d.ts +3 -0
- package/dist/task-workspace/provisioning.d.ts.map +1 -0
- package/dist/task-workspace/provisioning.js +528 -0
- package/dist/task-workspace/reconciliation.d.ts +15 -0
- package/dist/task-workspace/reconciliation.d.ts.map +1 -0
- package/dist/task-workspace/reconciliation.js +274 -0
- package/dist/task-workspace/repair.d.ts +3 -0
- package/dist/task-workspace/repair.d.ts.map +1 -0
- package/dist/task-workspace/repair.js +286 -0
- package/dist/task-workspace/routes.d.ts +19 -0
- package/dist/task-workspace/routes.d.ts.map +1 -0
- package/dist/task-workspace/routes.js +481 -0
- package/dist/task-workspace/store.d.ts +12 -0
- package/dist/task-workspace/store.d.ts.map +1 -0
- package/dist/task-workspace/store.js +128 -0
- package/dist/task-workspace/types.d.ts +170 -0
- package/dist/task-workspace/types.d.ts.map +1 -0
- package/dist/task-workspace/types.js +5 -0
- package/dist/voice-action-governance.d.ts +23 -0
- package/dist/voice-action-governance.d.ts.map +1 -0
- package/dist/voice-action-governance.js +126 -0
- package/dist/voice-handlers.d.ts +6 -0
- package/dist/voice-handlers.d.ts.map +1 -0
- package/dist/voice-handlers.js +570 -0
- package/dist/voice-realtime-grounded-tool.d.ts +31 -0
- package/dist/voice-realtime-grounded-tool.d.ts.map +1 -0
- package/dist/voice-realtime-grounded-tool.js +322 -0
- package/dist/voice-realtime.d.ts +69 -0
- package/dist/voice-realtime.d.ts.map +1 -0
- package/dist/voice-realtime.js +787 -0
- package/dist/workspace-state-handlers.d.ts +5 -0
- package/dist/workspace-state-handlers.d.ts.map +1 -0
- package/dist/workspace-state-handlers.js +106 -0
- package/package.json +20 -19
- package/dist/grounded-handoff.d.ts +0 -4
- package/dist/grounded-handoff.d.ts.map +0 -1
- package/dist/grounded-handoff.js +0 -445
package/dist/routes.js
CHANGED
|
@@ -5,27 +5,38 @@
|
|
|
5
5
|
// server serializes) OR the STREAMING sentinel, meaning it has taken over the raw ServerResponse
|
|
6
6
|
// (the SSE events route). Non-2xx bodies use the redacted error envelope `{ error: { code, message } }`.
|
|
7
7
|
import { SDK_VERSION } from "@oscharko-dev/keiko-sdk";
|
|
8
|
-
import { handleConfig, handleModels, handleWorkflows, handleWorkspace, handleEvidenceList, handleEvidenceDetail, } from "./read-handlers.js";
|
|
9
|
-
import {
|
|
8
|
+
import { handleConfig, handleModels, handleVoiceCapability, handleWorkflows, handleWorkspace, handleEvidenceList, handleEvidenceDetail, } from "./read-handlers.js";
|
|
9
|
+
import { handleGetWorkspaceState, handlePutWorkspaceState } from "./workspace-state-handlers.js";
|
|
10
|
+
import { handleVoiceSpeak, handleVoiceSpeakStream, handleVoiceTranscribe, } from "./voice-handlers.js";
|
|
11
|
+
import { handleCreateRun, handleRunEvents, handleCancelRun, handleGetRun, handleApplyRun, } from "./run-handlers.js";
|
|
10
12
|
import { handleListProjects, handleCreateProject, handleUpdateProject, handleDeleteProject, handleListChats, handleCreateChat, handleUpdateChat, handleDeleteChat, handleListMessages, handleCreateMessage, handleCreateRunSummaryPair, handleUpdateMessage, } from "./store-handlers.js";
|
|
11
|
-
import { handleCreateDesktopChat, handleSendDesktopChat } from "./chat-handlers.js";
|
|
13
|
+
import { handleAppendDesktopVoiceTurn, handleCreateDesktopChat, handleSendDesktopChat, } from "./chat-handlers.js";
|
|
12
14
|
import { handleSendDesktopChatStream } from "./chat-stream-handlers.js";
|
|
15
|
+
import { handleCloneRepository } from "./gitRepositoryRoutes.js";
|
|
13
16
|
import { handleListMemories, handleMemoryReviewQueue, handleGetMemory, handleEditMemory, handlePinMemory, handleUnpinMemory, handleArchiveMemory, handleForgetMemory, handleForgetMemories, handleDeleteMemory, handleCorrectMemory, handleResolveMemoryConflict, handleAcceptMemoryProposal, handleRejectMemoryProposal, } from "./memory-handlers.js";
|
|
14
17
|
import { handleMemoryRetrieveContext, handleMemoryCaptureFromConversation, } from "./memory-conv-handlers.js";
|
|
15
18
|
import { handleCancelConsolidationJob, handleCreateConsolidationJob, handleGetConsolidationJob, } from "./memory-consolidation-handlers.js";
|
|
16
19
|
import { handleRunMaintenance } from "./memory-maintenance-handlers.js";
|
|
17
20
|
import { handleGroundedAsk } from "./grounded-qa.js";
|
|
18
|
-
import {
|
|
21
|
+
import { handleRealtimeGroundedVoiceTool } from "./voice-realtime-grounded-tool.js";
|
|
22
|
+
import { handleGatewayReadiness } from "./gateway-readiness.js";
|
|
19
23
|
import { handleGatewaySetup } from "./gateway-setup.js";
|
|
20
24
|
import { handleCreateTerminalExecution, handleDeleteTerminalExecution, handleTerminalDirectories, handleTerminalEvents, handleTerminalPolicy, } from "./terminal-routes.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
25
|
+
import { handleRuntimeCapabilities } from "./runtime/capabilityRoutes.js";
|
|
26
|
+
import { handleCommandCatalog, handleCommandEvents, handleCreateCommandRun, handleDeleteCommandRun, } from "./command-runner-routes.js";
|
|
27
|
+
import { handleActivateTaskWorkspace, handleCleanupOrphanTaskWorkspaces, handleCleanupTaskWorkspace, handleClearActiveTaskWorkspace, handleGetActiveTaskWorkspace, handleGetTaskWorkspace, handleGetTaskWorkspaceHealth, handleGetTaskWorkspaceReconciliation, handleHandoffTaskWorkspace, handleListTaskWorkspaces, handlePauseTaskWorkspace, handleProvisionTaskWorkspace, handleReconcileTaskWorkspaces, handleRepairTaskWorkspace, handleResumeTaskWorkspace, handleSetActiveTaskWorkspace, } from "./task-workspace/routes.js";
|
|
28
|
+
import { handleContainerCapability, handleContainerCatalog, handleContainerEvents, handleCreateContainerRun, handleDeleteContainerRun, } from "./runtime/containerRoutes.js";
|
|
29
|
+
import { handleFilesContent, handleFilesCopy, handleFilesCreate, handleFilesDelete, handleFilesDirectories, handleFilesPreview, handleFilesRename, handleFilesSearch, handleFilesTree, } from "./files.js";
|
|
30
|
+
import { handleGitBranches, handleGitDiff, handleGitStatus } from "./gitRoutes.js";
|
|
31
|
+
import { handleGitHistory, handleGitRemotes, handleGitSummary } from "./gitRepositoryReads.js";
|
|
32
|
+
import { handleEditorLanguage, handleEditorLanguageCapabilitiesForRoute, } from "./editor/languageRoutes.js";
|
|
33
|
+
import { handleEditorLspStatus } from "./editor/lsp/lspStatusRoute.js";
|
|
23
34
|
import { handleEditorContext, handleEditorLocalKnowledgeRetrieve, handleEditorRepoSearch, } from "./editor/contextRoutes.js";
|
|
24
35
|
import { handleEditorCompletion } from "./editor/completionRoutes.js";
|
|
25
36
|
import { handleEditorInlineCompletion, handleEditorInlineCompletionTelemetry, } from "./editor/inlineCompletionRoutes.js";
|
|
26
37
|
import { handleEditorTestGeneration } from "./editor/testGenerationRoutes.js";
|
|
27
38
|
import { handleEditorPatchApply } from "./editor/patchApplyRoutes.js";
|
|
28
|
-
import { handleEditorAgentActions, handleEditorAgentEvents, handleEditorAgentSessions, handleEditorAgentSnapshot, } from "./editor/agentRoutes.js";
|
|
39
|
+
import { handleEditorAgentActions, handleEditorAgentAudit, handleEditorAgentEvents, handleEditorAgentSessions, handleEditorAgentSnapshot, } from "./editor/agentRoutes.js";
|
|
29
40
|
import { handleBrowserApplyScreenshot, handleBrowserContent, handleBrowserEvents, handleBrowserNavigate, handleBrowserScreenshot, handleBrowserStatus, handleCreateBrowserSession, handleDeleteBrowserSession, } from "./browser.js";
|
|
30
41
|
import { handleCancelLocalKnowledgeCapsuleIndexing, handleConnectLocalKnowledgeCapsule, handleCreateLocalKnowledgeCapsule, handleCreateLocalKnowledgeCapsuleSet, handleDeleteLocalKnowledgeCapsule, handleDisconnectLocalKnowledgeCapsule, handleGetLocalKnowledgeCapsule, handleListLocalKnowledgeCapsules, handleListLocalKnowledgeCapsuleSets, handleReindexLocalKnowledgeCapsule, handleStartLocalKnowledgeCapsuleIndexing, handleUpdateLocalKnowledgeCapsule, } from "./local-knowledge-handlers.js";
|
|
31
42
|
import { handleRelationshipCreate, handleRelationshipDelete, handleRelationshipDependencies, handleRelationshipEvents, handleRelationshipExplain, handleRelationshipGet, handleRelationshipHealth, handleRelationshipImpact, handleRelationshipList, handleRelationshipPatch, handleRelationshipValidate, } from "./relationship-handlers.js";
|
|
@@ -33,6 +44,15 @@ import { handleQiCapabilities, handleQiDryRunFigma, handleQiDryRunJira, handleQi
|
|
|
33
44
|
import { handleFigmaListSnapshots, handleFigmaInspectSnapshotScreenJson, handleFigmaDeleteSnapshot, handleFigmaTriggerSnapshot, handleFigmaLoadSnapshot, handleFigmaLoadSnapshotImage, handleFigmaRevokeToken, handleFigmaUpdateSnapshotMetadata, } from "./qualityIntelligence/figmaSnapshotRoutes.js";
|
|
34
45
|
import { handleFigmaGenerateCode } from "./qualityIntelligence/figmaCodegenRoutes.js";
|
|
35
46
|
import { handlePromptEnhancement, handlePromptEnhancementEvidence, } from "./promptEnhancer/index.js";
|
|
47
|
+
import { GIT_DELIVERY_ACTION_SHEET_ROUTE_GROUP } from "./gitDelivery/actionSheetRoutes.js";
|
|
48
|
+
import { GIT_DELIVERY_EVIDENCE_ROUTE_GROUP } from "./gitDelivery/evidenceRoutes.js";
|
|
49
|
+
import { GIT_DELIVERY_LOCAL_MUTATION_ROUTE_GROUP } from "./gitDelivery/localMutationRoutes.js";
|
|
50
|
+
import { GIT_DELIVERY_COMMIT_ROUTE_GROUP } from "./gitDelivery/commitRoutes.js";
|
|
51
|
+
import { GIT_DELIVERY_PUSH_ROUTE_GROUP } from "./gitDelivery/pushRoutes.js";
|
|
52
|
+
import { GIT_DELIVERY_PR_ROUTE_GROUP } from "./gitDelivery/prRoutes.js";
|
|
53
|
+
import { GIT_DELIVERY_MERGE_ROUTE_GROUP } from "./gitDelivery/mergeRoutes.js";
|
|
54
|
+
import { GIT_DELIVERY_SYNC_ROUTE_GROUP } from "./gitDelivery/syncRoutes.js";
|
|
55
|
+
import { GIT_AGENT_OPERATION_ROUTE_GROUP } from "./gitDelivery/agentOperationsRoutes.js";
|
|
36
56
|
export const STREAMING = Symbol("streaming");
|
|
37
57
|
function health() {
|
|
38
58
|
return { status: 200, body: { status: "ok", version: SDK_VERSION } };
|
|
@@ -45,6 +65,17 @@ export const API_ROUTES = [
|
|
|
45
65
|
{ method: "GET", pattern: "/api/health", handler: health },
|
|
46
66
|
{ method: "GET", pattern: "/api/config", handler: handleConfig },
|
|
47
67
|
{ method: "GET", pattern: "/api/models", handler: handleModels },
|
|
68
|
+
{ method: "GET", pattern: "/api/voice/capability", handler: handleVoiceCapability },
|
|
69
|
+
// Issue #494 (Epic #491) — optional, capability-gated STT composer dictation (ADR-0058 D1/D2/D4).
|
|
70
|
+
// POST a short audio clip (base64 inside the JSON + CSRF envelope) and receive its transcript;
|
|
71
|
+
// answers VOICE_UNAVAILABLE when no speech-to-text capability is configured/enabled.
|
|
72
|
+
{ method: "POST", pattern: "/api/voice/transcribe", handler: handleVoiceTranscribe },
|
|
73
|
+
// Issue #1558 (Epic #1556) — optional, capability-gated assistant speech output (ADR-0095). POST
|
|
74
|
+
// the visible assistant answer text (inside the JSON + CSRF envelope) and receive synthesized audio
|
|
75
|
+
// as base64; answers VOICE_UNAVAILABLE when no speech-output capability is configured/enabled.
|
|
76
|
+
{ method: "POST", pattern: "/api/voice/speak", handler: handleVoiceSpeak },
|
|
77
|
+
{ method: "POST", pattern: "/api/voice/speak/stream", handler: handleVoiceSpeakStream },
|
|
78
|
+
{ method: "POST", pattern: "/api/gateway/readiness", handler: handleGatewayReadiness },
|
|
48
79
|
{ method: "POST", pattern: "/api/gateway/setup", handler: handleGatewaySetup },
|
|
49
80
|
{ method: "GET", pattern: "/api/workflows", handler: handleWorkflows },
|
|
50
81
|
{ method: "POST", pattern: "/api/runs", handler: handleCreateRun },
|
|
@@ -55,15 +86,16 @@ export const API_ROUTES = [
|
|
|
55
86
|
{ method: "GET", pattern: "/api/evidence", handler: handleEvidenceList },
|
|
56
87
|
{ method: "GET", pattern: "/api/evidence/:runId", handler: handleEvidenceDetail },
|
|
57
88
|
{ method: "GET", pattern: "/api/workspace", handler: handleWorkspace },
|
|
89
|
+
{ method: "GET", pattern: "/api/workspace/state", handler: handleGetWorkspaceState },
|
|
90
|
+
{ method: "PUT", pattern: "/api/workspace/state", handler: handlePutWorkspaceState },
|
|
58
91
|
// ADR-0013 D7 — UI-local persistence routes (additive).
|
|
59
92
|
{ method: "GET", pattern: "/api/projects", handler: handleListProjects },
|
|
60
93
|
{ method: "POST", pattern: "/api/projects", handler: handleCreateProject },
|
|
61
94
|
{ method: "PATCH", pattern: "/api/projects", handler: handleUpdateProject },
|
|
62
95
|
{ method: "DELETE", pattern: "/api/projects", handler: handleDeleteProject },
|
|
96
|
+
{ method: "POST", pattern: "/api/repositories/clone", handler: handleCloneRepository },
|
|
63
97
|
{ method: "GET", pattern: "/api/chats", handler: handleListChats },
|
|
64
98
|
{ method: "POST", pattern: "/api/chats", handler: handleCreateChat },
|
|
65
|
-
// Issue #66 — composer launch path: persist chat pair and start the run as one BFF operation.
|
|
66
|
-
{ method: "POST", pattern: "/api/chats/runs", handler: handleCreateChatRun },
|
|
67
99
|
{ method: "PATCH", pattern: "/api/chats", handler: handleUpdateChat },
|
|
68
100
|
{ method: "DELETE", pattern: "/api/chats", handler: handleDeleteChat },
|
|
69
101
|
{ method: "GET", pattern: "/api/chats/messages", handler: handleListMessages },
|
|
@@ -80,13 +112,18 @@ export const API_ROUTES = [
|
|
|
80
112
|
{ method: "POST", pattern: "/api/chats/messages/grounded", handler: handleGroundedAsk },
|
|
81
113
|
{
|
|
82
114
|
method: "POST",
|
|
83
|
-
pattern: "/api/
|
|
84
|
-
handler:
|
|
115
|
+
pattern: "/api/voice/realtime/grounded-tool",
|
|
116
|
+
handler: handleRealtimeGroundedVoiceTool,
|
|
85
117
|
},
|
|
86
118
|
// Desktop canvas V1 — real chat against the configured gateway model without new agent scope.
|
|
87
119
|
{ method: "POST", pattern: "/api/desktop/chats", handler: handleCreateDesktopChat },
|
|
88
120
|
{ method: "POST", pattern: "/api/desktop/chat", handler: handleSendDesktopChat },
|
|
89
121
|
{ method: "POST", pattern: "/api/desktop/chat/stream", handler: handleSendDesktopChatStream },
|
|
122
|
+
{
|
|
123
|
+
method: "POST",
|
|
124
|
+
pattern: "/api/desktop/chat/voice-turn",
|
|
125
|
+
handler: handleAppendDesktopVoiceTurn,
|
|
126
|
+
},
|
|
90
127
|
// ADR-0018 — bounded permitted-command execution. PTY routes (shells/sessions/WS upgrade) and
|
|
91
128
|
// the WebSocket upgrade handler in server.ts are removed; commands run via synchronous POST.
|
|
92
129
|
{ method: "GET", pattern: "/api/terminal/policy", handler: handleTerminalPolicy },
|
|
@@ -98,18 +135,188 @@ export const API_ROUTES = [
|
|
|
98
135
|
handler: handleDeleteTerminalExecution,
|
|
99
136
|
},
|
|
100
137
|
{ method: "GET", pattern: "/api/terminal/events", handler: handleTerminalEvents },
|
|
138
|
+
// Issue #1385 — read-only local runtime inventory. Metadata-only detection: no package manager,
|
|
139
|
+
// Git, language, or container command is executed; root-scoped command sources use contained
|
|
140
|
+
// manifest reads on a registered project.
|
|
141
|
+
{
|
|
142
|
+
method: "GET",
|
|
143
|
+
pattern: "/api/runtime/capabilities",
|
|
144
|
+
handler: (ctx, deps) => handleRuntimeCapabilities(ctx, deps, deps.runtimeCapabilityRouteOptions),
|
|
145
|
+
},
|
|
146
|
+
// Issue #1386 — read-only Git repository status/diff BFF. Git execution stays server-side with
|
|
147
|
+
// fixed args/env, selected-root containment, unsafe-owner surfacing, and bounded diff output.
|
|
148
|
+
{
|
|
149
|
+
method: "GET",
|
|
150
|
+
pattern: "/api/git/status",
|
|
151
|
+
handler: (ctx, deps) => handleGitStatus(ctx, deps, deps.gitRouteOptions),
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
method: "GET",
|
|
155
|
+
pattern: "/api/git/diff",
|
|
156
|
+
handler: (ctx, deps) => handleGitDiff(ctx, deps, deps.gitRouteOptions),
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
method: "GET",
|
|
160
|
+
pattern: "/api/git/branches",
|
|
161
|
+
handler: (ctx, deps) => handleGitBranches(ctx, deps, deps.gitRouteOptions),
|
|
162
|
+
},
|
|
163
|
+
// Issue #1573 — read-only Git repository summary, history, and remotes BFF. Reuses the hardened
|
|
164
|
+
// runner + selected-root containment from the #1386 reads; responses are content-free (counts,
|
|
165
|
+
// typed codes, branch/remote names, ISO dates) and pass through the live-payload redactor.
|
|
166
|
+
{
|
|
167
|
+
method: "GET",
|
|
168
|
+
pattern: "/api/git/summary",
|
|
169
|
+
handler: (ctx, deps) => handleGitSummary(ctx, deps, deps.gitRouteOptions),
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
method: "GET",
|
|
173
|
+
pattern: "/api/git/history",
|
|
174
|
+
handler: (ctx, deps) => handleGitHistory(ctx, deps, deps.gitRouteOptions),
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
method: "GET",
|
|
178
|
+
pattern: "/api/git/remotes",
|
|
179
|
+
handler: (ctx, deps) => handleGitRemotes(ctx, deps, deps.gitRouteOptions),
|
|
180
|
+
},
|
|
181
|
+
// Issue #1387 — controlled test/build/run command executor. Tasks are discovered from package
|
|
182
|
+
// scripts and run through the single governed spawn boundary (keiko-tools runCommand): allowlisted
|
|
183
|
+
// task ids only (never free-form argv), workspace-contained cwd, output cap, timeout, cancellation,
|
|
184
|
+
// and content-free evidence. Literal `catalog`/`events` paths register before the `:runId` route.
|
|
185
|
+
{
|
|
186
|
+
method: "GET",
|
|
187
|
+
pattern: "/api/commands/catalog",
|
|
188
|
+
handler: handleCommandCatalog,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
method: "GET",
|
|
192
|
+
pattern: "/api/commands/events",
|
|
193
|
+
handler: handleCommandEvents,
|
|
194
|
+
},
|
|
195
|
+
{ method: "POST", pattern: "/api/commands/runs", handler: handleCreateCommandRun },
|
|
196
|
+
{
|
|
197
|
+
method: "DELETE",
|
|
198
|
+
pattern: "/api/commands/runs/:runId",
|
|
199
|
+
handler: handleDeleteCommandRun,
|
|
200
|
+
},
|
|
201
|
+
// Issue #445 (Epic #443, ADR-0089) — governed managed task-workspace provisioning + activation.
|
|
202
|
+
// Provision creates a dedicated task branch + managed Git worktree from an approved base branch
|
|
203
|
+
// through the narrow worktree adapter (single governed spawn boundary; no generic git runner) and
|
|
204
|
+
// persists a WorkspaceInstance; activate yields the WorkspaceBinding surfaces bind to. CSRF is
|
|
205
|
+
// enforced by the server's state-changing gate for the POST routes.
|
|
206
|
+
{ method: "POST", pattern: "/api/task-workspaces", handler: handleProvisionTaskWorkspace },
|
|
207
|
+
// Issue #446 (Epic #443, ADR-0090) — the shared ACTIVE task-workspace binding the Studio/editor/
|
|
208
|
+
// runtime/Git-Delivery surfaces consume. `matchRoute` resolves by literal specificity, so the
|
|
209
|
+
// literal `active` and the `?root` collection paths win over the `:workspaceId` param route
|
|
210
|
+
// regardless of registration order. CSRF is enforced by the state-changing gate for POST/DELETE.
|
|
211
|
+
{ method: "GET", pattern: "/api/task-workspaces", handler: handleListTaskWorkspaces },
|
|
212
|
+
{ method: "GET", pattern: "/api/task-workspaces/active", handler: handleGetActiveTaskWorkspace },
|
|
213
|
+
{ method: "POST", pattern: "/api/task-workspaces/active", handler: handleSetActiveTaskWorkspace },
|
|
214
|
+
{
|
|
215
|
+
method: "DELETE",
|
|
216
|
+
pattern: "/api/task-workspaces/active",
|
|
217
|
+
handler: handleClearActiveTaskWorkspace,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
method: "POST",
|
|
221
|
+
pattern: "/api/task-workspaces/:workspaceId/pause",
|
|
222
|
+
handler: handlePauseTaskWorkspace,
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
method: "POST",
|
|
226
|
+
pattern: "/api/task-workspaces/:workspaceId/resume",
|
|
227
|
+
handler: handleResumeTaskWorkspace,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
method: "POST",
|
|
231
|
+
pattern: "/api/task-workspaces/:workspaceId/handoff",
|
|
232
|
+
handler: handleHandoffTaskWorkspace,
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
method: "POST",
|
|
236
|
+
pattern: "/api/task-workspaces/:workspaceId/activate",
|
|
237
|
+
handler: handleActivateTaskWorkspace,
|
|
238
|
+
},
|
|
239
|
+
// Issue #447 (Epic #443, ADR-0091) — startup reconciliation report (read-only, derived from the
|
|
240
|
+
// persisted content-free fields), an explicit live reconcile pass (CSRF-gated POST), and the
|
|
241
|
+
// controlled, operator-approval-gated repair. The literal `reconciliation` path wins over the
|
|
242
|
+
// `:workspaceId` GET by `matchRoute` specificity.
|
|
243
|
+
{
|
|
244
|
+
method: "GET",
|
|
245
|
+
pattern: "/api/task-workspaces/reconciliation",
|
|
246
|
+
handler: handleGetTaskWorkspaceReconciliation,
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
method: "POST",
|
|
250
|
+
pattern: "/api/task-workspaces/reconciliation",
|
|
251
|
+
handler: handleReconcileTaskWorkspaces,
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
method: "POST",
|
|
255
|
+
pattern: "/api/task-workspaces/:workspaceId/repair",
|
|
256
|
+
handler: handleRepairTaskWorkspace,
|
|
257
|
+
},
|
|
258
|
+
// Issue #448 (Epic #443, ADR-0092) — operational health/drift/orphan report (read-only) plus the
|
|
259
|
+
// governed, operator-approval-gated cleanup controls. The literal `health` and `cleanup/orphans`
|
|
260
|
+
// paths win over the `:workspaceId` routes by `matchRoute` specificity.
|
|
261
|
+
{ method: "GET", pattern: "/api/task-workspaces/health", handler: handleGetTaskWorkspaceHealth },
|
|
262
|
+
{
|
|
263
|
+
method: "POST",
|
|
264
|
+
pattern: "/api/task-workspaces/cleanup/orphans",
|
|
265
|
+
handler: handleCleanupOrphanTaskWorkspaces,
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
method: "POST",
|
|
269
|
+
pattern: "/api/task-workspaces/:workspaceId/cleanup",
|
|
270
|
+
handler: handleCleanupTaskWorkspace,
|
|
271
|
+
},
|
|
272
|
+
{ method: "GET", pattern: "/api/task-workspaces/:workspaceId", handler: handleGetTaskWorkspace },
|
|
273
|
+
// Issue #1388 (ADR-0070) — governed container engine detection + execution pilot. The capability
|
|
274
|
+
// route runs an opt-in ACTIVE daemon probe (distinct from the metadata-only #1385 detector); the
|
|
275
|
+
// catalog/run routes degrade to 503 CONTAINER_ENGINE_UNAVAILABLE when no engine is present. A run
|
|
276
|
+
// names a closed-catalog task id only (never a free-form image/argv/flag), executes a server-frozen
|
|
277
|
+
// hardened `docker run` argv through the single runCommand boundary, and writes content-free
|
|
278
|
+
// evidence. Literal `capability`/`catalog`/`events` paths register before the `:runId` route.
|
|
279
|
+
{
|
|
280
|
+
method: "GET",
|
|
281
|
+
pattern: "/api/containers/capability",
|
|
282
|
+
handler: handleContainerCapability,
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
method: "GET",
|
|
286
|
+
pattern: "/api/containers/catalog",
|
|
287
|
+
handler: handleContainerCatalog,
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
method: "GET",
|
|
291
|
+
pattern: "/api/containers/events",
|
|
292
|
+
handler: handleContainerEvents,
|
|
293
|
+
},
|
|
294
|
+
{ method: "POST", pattern: "/api/containers/runs", handler: handleCreateContainerRun },
|
|
295
|
+
{
|
|
296
|
+
method: "DELETE",
|
|
297
|
+
pattern: "/api/containers/runs/:runId",
|
|
298
|
+
handler: handleDeleteContainerRun,
|
|
299
|
+
},
|
|
101
300
|
// Desktop files — selected-root browser, preview, and editor control plane.
|
|
102
301
|
{ method: "GET", pattern: "/api/files/directories", handler: handleFilesDirectories },
|
|
103
302
|
{ method: "GET", pattern: "/api/files/tree", handler: handleFilesTree },
|
|
303
|
+
{ method: "GET", pattern: "/api/files/search", handler: handleFilesSearch },
|
|
104
304
|
{ method: "GET", pattern: "/api/files/preview", handler: handleFilesPreview },
|
|
105
305
|
{ method: "GET", pattern: "/api/files/content", handler: handleFilesContent },
|
|
106
306
|
{ method: "PATCH", pattern: "/api/files/content", handler: handleFilesContent },
|
|
307
|
+
// File-tree mutations (create / rename / delete). State-changing methods inherit the server CSRF +
|
|
308
|
+
// JSON gate; each handler re-resolves containment + deny inside the selected root and is
|
|
309
|
+
// non-destructive by default (atomic no-overwrite create, no-clobber rename, symlinks rejected).
|
|
310
|
+
{ method: "POST", pattern: "/api/files/create", handler: handleFilesCreate },
|
|
311
|
+
{ method: "POST", pattern: "/api/files/rename", handler: handleFilesRename },
|
|
312
|
+
{ method: "POST", pattern: "/api/files/delete", handler: handleFilesDelete },
|
|
313
|
+
{ method: "POST", pattern: "/api/files/copy", handler: handleFilesCopy },
|
|
107
314
|
// Issue #1198 — deterministic, model-free language intelligence (completion, diagnostics, hover,
|
|
108
315
|
// symbols) over an editor overlay (ADR-0042 D4). Capabilities advertises the registered providers.
|
|
109
316
|
{
|
|
110
317
|
method: "GET",
|
|
111
318
|
pattern: "/api/editor/language/capabilities",
|
|
112
|
-
handler:
|
|
319
|
+
handler: (ctx, deps) => handleEditorLanguageCapabilitiesForRoute(ctx, deps, deps.editorLanguageRouteOptions),
|
|
113
320
|
},
|
|
114
321
|
{
|
|
115
322
|
method: "POST",
|
|
@@ -181,6 +388,19 @@ export const API_ROUTES = [
|
|
|
181
388
|
pattern: "/api/editor/agent/events",
|
|
182
389
|
handler: handleEditorAgentEvents,
|
|
183
390
|
},
|
|
391
|
+
// Issue #1395 (ADR-0062) — read-only bounded audit feed of recent agent editor actions.
|
|
392
|
+
{
|
|
393
|
+
method: "GET",
|
|
394
|
+
pattern: "/api/editor/agent/audit",
|
|
395
|
+
handler: handleEditorAgentAudit,
|
|
396
|
+
},
|
|
397
|
+
// Issue #1381 (ADR-0069) — read-only, content-free LSP process lifecycle status feed. Env-gated
|
|
398
|
+
// default-OFF via KEIKO_EDITOR_LSP_STATUS (404 until an operator opts in). No CSP change needed.
|
|
399
|
+
{
|
|
400
|
+
method: "GET",
|
|
401
|
+
pattern: "/api/editor/lsp/status",
|
|
402
|
+
handler: (ctx, deps) => handleEditorLspStatus(ctx, { env: deps.env }),
|
|
403
|
+
},
|
|
184
404
|
{
|
|
185
405
|
method: "POST",
|
|
186
406
|
pattern: "/api/editor/local-knowledge/retrieve",
|
|
@@ -437,6 +657,34 @@ export const API_ROUTES = [
|
|
|
437
657
|
// envelope (refs only, no chat content). Registered as a sibling group so concurrent
|
|
438
658
|
// QI epic merges (e.g. #280) stay mechanically merge-safe.
|
|
439
659
|
...QI_HANDOFF_ROUTE_GROUP,
|
|
660
|
+
// Issue #473 (Epic #470) — governed Git delivery action-sheet route group. Single READ-ONLY
|
|
661
|
+
// POST seam returning a UI-safe GitDeliveryActionSheet projection; never mutates the repo.
|
|
662
|
+
// Registered as a sibling group so concurrent #470 epic merges stay mechanically merge-safe.
|
|
663
|
+
...GIT_DELIVERY_ACTION_SHEET_ROUTE_GROUP,
|
|
664
|
+
...GIT_DELIVERY_EVIDENCE_ROUTE_GROUP,
|
|
665
|
+
// #475 governed local write flows: branch create/switch, staging, and commit preview/execute. These
|
|
666
|
+
// EXECUTE through the #472 kernel + #474 evidence ledger; gated by the same capability flag and CSRF.
|
|
667
|
+
...GIT_DELIVERY_LOCAL_MUTATION_ROUTE_GROUP,
|
|
668
|
+
...GIT_DELIVERY_COMMIT_ROUTE_GROUP,
|
|
669
|
+
// #476 governed remote publish: push preview (read-only) + execute through the SEPARATE publish
|
|
670
|
+
// gateway (dedicated push-only allowlist) + #474 evidence ledger; same capability flag and CSRF.
|
|
671
|
+
...GIT_DELIVERY_PUSH_ROUTE_GROUP,
|
|
672
|
+
// #477 governed GitHub pull request command center: PR preview (read-only metadata/readiness/
|
|
673
|
+
// recommendation) + execute through the SEPARATE PR gateway (dedicated `gh api` allowlist) + #474
|
|
674
|
+
// evidence ledger; same capability flag and CSRF.
|
|
675
|
+
...GIT_DELIVERY_PR_ROUTE_GROUP,
|
|
676
|
+
// #478 governed merge: merge preview (read-only readiness/eligible-strategies/recommendation) +
|
|
677
|
+
// execute through the SEPARATE merge gateway (dedicated `gh api` merge allowlist, readiness gate, final
|
|
678
|
+
// approval) + #474 evidence ledger; same capability flag and CSRF.
|
|
679
|
+
...GIT_DELIVERY_MERGE_ROUTE_GROUP,
|
|
680
|
+
// #1573 governed fetch/pull sync: sync preview (read-only readiness + executable gate) + execute
|
|
681
|
+
// through a preflight-gated credential-capable runner (NOT the #472 kernel — fetch/pull have no
|
|
682
|
+
// GitDeliveryActionKind) + a dedicated content-free sync evidence ledger; same central CSRF + JSON
|
|
683
|
+
// content-type gate.
|
|
684
|
+
...GIT_DELIVERY_SYNC_ROUTE_GROUP,
|
|
685
|
+
// #1577 agent repository operations: typed facade over existing Git read and governed delivery
|
|
686
|
+
// handlers. No shell/provider authority is introduced; command-shaped payloads are denied first.
|
|
687
|
+
...GIT_AGENT_OPERATION_ROUTE_GROUP,
|
|
440
688
|
];
|
|
441
689
|
// Matches a concrete path against a route pattern, capturing `:name` params. Returns the captured
|
|
442
690
|
// params, or undefined when the segment counts differ or a literal segment mismatches.
|
package/dist/run-engine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-engine.d.ts","sourceRoot":"","sources":["../src/run-engine.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAqB7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAa,MAAM,WAAW,CAAC;AAC3E,OAAO,EAIL,KAAK,sBAAsB,EAE5B,MAAM,eAAe,CAAC;AAIvB,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AASD,UAAU,aAAa;IACrB,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAG/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,WAAW,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;IAC3E,QAAQ,CAAC,gCAAgC,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CAC3E;
|
|
1
|
+
{"version":3,"file":"run-engine.d.ts","sourceRoot":"","sources":["../src/run-engine.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAqB7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAa,MAAM,WAAW,CAAC;AAC3E,OAAO,EAIL,KAAK,sBAAsB,EAE5B,MAAM,eAAe,CAAC;AAIvB,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AASD,UAAU,aAAa;IACrB,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAG/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,WAAW,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;IAC3E,QAAQ,CAAC,gCAAgC,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CAC3E;AA+TD,wBAAgB,QAAQ,CACtB,GAAG,EAAE,aAAa,EAClB,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,EACzC,OAAO,GAAE,eAAoB,GAC5B,cAAc,CAoBhB;AA8GD,wBAAsB,QAAQ,CAC5B,QAAQ,EAAE,iBAAiB,EAC3B,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GACxC,OAAO,CAAC,OAAO,CAAC,CAmBlB;AAMD,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/run-engine.js
CHANGED
|
@@ -71,6 +71,7 @@ function workflowFingerprint(request) {
|
|
|
71
71
|
modelId: request.modelId,
|
|
72
72
|
governedHandoff: request.governedHandoff ?? null,
|
|
73
73
|
governedHandoffSourceGroundedRunId: request.governedHandoffSourceGroundedRunId ?? null,
|
|
74
|
+
governedHandoffVoiceAction: request.governedHandoffVoiceAction ?? null,
|
|
74
75
|
workingDirectory: workspaceRoot(request),
|
|
75
76
|
dryRun: true,
|
|
76
77
|
harnessVersion: HARNESS_VERSION,
|
|
@@ -345,6 +346,7 @@ function persistOutcome(ctx, identity, outcome) {
|
|
|
345
346
|
: buildGovernedHandoffEvidence({
|
|
346
347
|
request: ctx.request.governedHandoff,
|
|
347
348
|
sourceGroundedRunId: ctx.request.governedHandoffSourceGroundedRunId,
|
|
349
|
+
voiceAction: ctx.request.governedHandoffVoiceAction,
|
|
348
350
|
}));
|
|
349
351
|
}
|
|
350
352
|
return persistWorkflowEvidence(runIdentity, outcome.report, identity.sink.buffered(), ctx.evidence, ctx.request.governedHandoff === undefined
|
|
@@ -352,6 +354,7 @@ function persistOutcome(ctx, identity, outcome) {
|
|
|
352
354
|
: buildGovernedHandoffEvidence({
|
|
353
355
|
request: ctx.request.governedHandoff,
|
|
354
356
|
sourceGroundedRunId: ctx.request.governedHandoffSourceGroundedRunId,
|
|
357
|
+
voiceAction: ctx.request.governedHandoffVoiceAction,
|
|
355
358
|
}));
|
|
356
359
|
}
|
|
357
360
|
function attachEvidenceReport(report, evidence) {
|
package/dist/run-handlers.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { RouteContext, RouteResult, HandlerOutcome } from "./routes.js";
|
|
2
2
|
import type { UiHandlerDeps } from "./deps.js";
|
|
3
3
|
export declare function handleCreateRun(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
|
|
4
|
-
export declare function handleCreateChatRun(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
|
|
5
4
|
export declare function handleRunEvents(ctx: RouteContext, deps: UiHandlerDeps): HandlerOutcome;
|
|
6
5
|
export declare function handleCancelRun(ctx: RouteContext, deps: UiHandlerDeps): RouteResult;
|
|
7
6
|
export declare function handleGetRun(ctx: RouteContext, deps: UiHandlerDeps): RouteResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-handlers.d.ts","sourceRoot":"","sources":["../src/run-handlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-handlers.d.ts","sourceRoot":"","sources":["../src/run-handlers.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AA8K/C,wBAAsB,eAAe,CACnC,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,WAAW,CAAC,CA6CtB;AAeD,wBAAgB,eAAe,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,cAAc,CAUtF;AA+BD,wBAAgB,eAAe,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,WAAW,CAOnF;AAGD,wBAAgB,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,WAAW,CAYhF;AAuBD,wBAAsB,cAAc,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,CAwBjG"}
|