@sudocode-ai/local-server 0.1.7 → 0.1.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/README.md +6 -0
- package/dist/errors/agent-errors.d.ts +43 -0
- package/dist/errors/agent-errors.d.ts.map +1 -0
- package/dist/errors/agent-errors.js +69 -0
- package/dist/errors/agent-errors.js.map +1 -0
- package/dist/execution/adapters/claude-adapter.d.ts +63 -0
- package/dist/execution/adapters/claude-adapter.d.ts.map +1 -0
- package/dist/execution/adapters/claude-adapter.js +82 -0
- package/dist/execution/adapters/claude-adapter.js.map +1 -0
- package/dist/execution/adapters/codex-adapter.d.ts +67 -0
- package/dist/execution/adapters/codex-adapter.d.ts.map +1 -0
- package/dist/execution/adapters/codex-adapter.js +183 -0
- package/dist/execution/adapters/codex-adapter.js.map +1 -0
- package/dist/execution/adapters/codex-config-builder.d.ts +30 -0
- package/dist/execution/adapters/codex-config-builder.d.ts.map +1 -0
- package/dist/execution/adapters/codex-config-builder.js +110 -0
- package/dist/execution/adapters/codex-config-builder.js.map +1 -0
- package/dist/execution/adapters/copilot-adapter.d.ts +94 -0
- package/dist/execution/adapters/copilot-adapter.d.ts.map +1 -0
- package/dist/execution/adapters/copilot-adapter.js +163 -0
- package/dist/execution/adapters/copilot-adapter.js.map +1 -0
- package/dist/execution/adapters/copilot-config-builder.d.ts +48 -0
- package/dist/execution/adapters/copilot-config-builder.d.ts.map +1 -0
- package/dist/execution/adapters/copilot-config-builder.js +125 -0
- package/dist/execution/adapters/copilot-config-builder.js.map +1 -0
- package/dist/execution/adapters/cursor-adapter.d.ts +66 -0
- package/dist/execution/adapters/cursor-adapter.d.ts.map +1 -0
- package/dist/execution/adapters/cursor-adapter.js +121 -0
- package/dist/execution/adapters/cursor-adapter.js.map +1 -0
- package/dist/execution/adapters/cursor-config-builder.d.ts +29 -0
- package/dist/execution/adapters/cursor-config-builder.d.ts.map +1 -0
- package/dist/execution/adapters/cursor-config-builder.js +49 -0
- package/dist/execution/adapters/cursor-config-builder.js.map +1 -0
- package/dist/execution/adapters/shared/config-presets.d.ts +102 -0
- package/dist/execution/adapters/shared/config-presets.d.ts.map +1 -0
- package/dist/execution/adapters/shared/config-presets.js +205 -0
- package/dist/execution/adapters/shared/config-presets.js.map +1 -0
- package/dist/execution/adapters/shared/config-utils.d.ts +95 -0
- package/dist/execution/adapters/shared/config-utils.d.ts.map +1 -0
- package/dist/execution/adapters/shared/config-utils.js +163 -0
- package/dist/execution/adapters/shared/config-utils.js.map +1 -0
- package/dist/execution/adapters/shared/index.d.ts +8 -0
- package/dist/execution/adapters/shared/index.d.ts.map +1 -0
- package/dist/execution/adapters/shared/index.js +8 -0
- package/dist/execution/adapters/shared/index.js.map +1 -0
- package/dist/execution/executors/agent-executor-wrapper.d.ts +153 -0
- package/dist/execution/executors/agent-executor-wrapper.d.ts.map +1 -0
- package/dist/execution/executors/agent-executor-wrapper.js +652 -0
- package/dist/execution/executors/agent-executor-wrapper.js.map +1 -0
- package/dist/execution/executors/executor-factory.d.ts +95 -0
- package/dist/execution/executors/executor-factory.d.ts.map +1 -0
- package/dist/execution/executors/executor-factory.js +120 -0
- package/dist/execution/executors/executor-factory.js.map +1 -0
- package/dist/execution/output/ag-ui-adapter.d.ts +0 -2
- package/dist/execution/output/ag-ui-adapter.d.ts.map +1 -1
- package/dist/execution/output/ag-ui-adapter.js +0 -2
- package/dist/execution/output/ag-ui-adapter.js.map +1 -1
- package/dist/execution/output/index.d.ts +0 -3
- package/dist/execution/output/index.d.ts.map +1 -1
- package/dist/execution/output/index.js +0 -2
- package/dist/execution/output/index.js.map +1 -1
- package/dist/execution/output/normalized-to-ag-ui-adapter.d.ts +108 -0
- package/dist/execution/output/normalized-to-ag-ui-adapter.d.ts.map +1 -0
- package/dist/execution/output/normalized-to-ag-ui-adapter.js +321 -0
- package/dist/execution/output/normalized-to-ag-ui-adapter.js.map +1 -0
- package/dist/execution/process/builders/claude.d.ts +24 -57
- package/dist/execution/process/builders/claude.d.ts.map +1 -1
- package/dist/execution/process/builders/claude.js +153 -19
- package/dist/execution/process/builders/claude.js.map +1 -1
- package/dist/execution/transport/ipc-transport-manager.d.ts +74 -0
- package/dist/execution/transport/ipc-transport-manager.d.ts.map +1 -0
- package/dist/execution/transport/ipc-transport-manager.js +104 -0
- package/dist/execution/transport/ipc-transport-manager.js.map +1 -0
- package/dist/execution/transport/transport-manager.d.ts.map +1 -1
- package/dist/execution/transport/transport-manager.js +3 -0
- package/dist/execution/transport/transport-manager.js.map +1 -1
- package/dist/execution/worktree/conflict-detector.d.ts +85 -0
- package/dist/execution/worktree/conflict-detector.d.ts.map +1 -0
- package/dist/execution/worktree/conflict-detector.js +129 -0
- package/dist/execution/worktree/conflict-detector.js.map +1 -0
- package/dist/execution/worktree/git-cli.d.ts +9 -0
- package/dist/execution/worktree/git-cli.d.ts.map +1 -1
- package/dist/execution/worktree/git-cli.js +10 -0
- package/dist/execution/worktree/git-cli.js.map +1 -1
- package/dist/execution/worktree/git-sync-cli.d.ts +198 -0
- package/dist/execution/worktree/git-sync-cli.d.ts.map +1 -0
- package/dist/execution/worktree/git-sync-cli.js +401 -0
- package/dist/execution/worktree/git-sync-cli.js.map +1 -0
- package/dist/execution/worktree/manager.d.ts +18 -0
- package/dist/execution/worktree/manager.d.ts.map +1 -1
- package/dist/execution/worktree/manager.js +9 -3
- package/dist/execution/worktree/manager.js.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +124 -229
- package/dist/index.js.map +1 -1
- package/dist/middleware/project-context.d.ts +37 -0
- package/dist/middleware/project-context.d.ts.map +1 -0
- package/dist/middleware/project-context.js +91 -0
- package/dist/middleware/project-context.js.map +1 -0
- package/dist/public/assets/index-DV9Tbujb.css +1 -0
- package/dist/public/assets/index-DcDX9-Ad.js +740 -0
- package/dist/public/assets/index-DcDX9-Ad.js.map +1 -0
- package/dist/public/assets/{react-vendor-ByUx1V_q.js → react-vendor-DiL5hC7l.js} +2 -2
- package/dist/public/assets/{react-vendor-ByUx1V_q.js.map → react-vendor-DiL5hC7l.js.map} +1 -1
- package/dist/public/assets/ui-vendor-B4WMPEfa.js +54 -0
- package/dist/public/assets/ui-vendor-B4WMPEfa.js.map +1 -0
- package/dist/public/index.html +4 -4
- package/dist/routes/agents.d.ts +3 -0
- package/dist/routes/agents.d.ts.map +1 -0
- package/dist/routes/agents.js +62 -0
- package/dist/routes/agents.js.map +1 -0
- package/dist/routes/config.d.ts +3 -0
- package/dist/routes/config.d.ts.map +1 -0
- package/dist/routes/config.js +25 -0
- package/dist/routes/config.js.map +1 -0
- package/dist/routes/editors.d.ts +15 -0
- package/dist/routes/editors.d.ts.map +1 -0
- package/dist/routes/editors.js +98 -0
- package/dist/routes/editors.js.map +1 -0
- package/dist/routes/executions-stream.d.ts +8 -5
- package/dist/routes/executions-stream.d.ts.map +1 -1
- package/dist/routes/executions-stream.js +10 -6
- package/dist/routes/executions-stream.js.map +1 -1
- package/dist/routes/executions.d.ts +6 -10
- package/dist/routes/executions.d.ts.map +1 -1
- package/dist/routes/executions.js +792 -37
- package/dist/routes/executions.js.map +1 -1
- package/dist/routes/feedback.d.ts +3 -2
- package/dist/routes/feedback.d.ts.map +1 -1
- package/dist/routes/feedback.js +12 -10
- package/dist/routes/feedback.js.map +1 -1
- package/dist/routes/files.d.ts +18 -0
- package/dist/routes/files.d.ts.map +1 -0
- package/dist/routes/files.js +89 -0
- package/dist/routes/files.js.map +1 -0
- package/dist/routes/issues.d.ts +3 -2
- package/dist/routes/issues.d.ts.map +1 -1
- package/dist/routes/issues.js +19 -18
- package/dist/routes/issues.js.map +1 -1
- package/dist/routes/projects.d.ts +11 -0
- package/dist/routes/projects.d.ts.map +1 -0
- package/dist/routes/projects.js +447 -0
- package/dist/routes/projects.js.map +1 -0
- package/dist/routes/relationships.d.ts +3 -2
- package/dist/routes/relationships.d.ts.map +1 -1
- package/dist/routes/relationships.js +12 -10
- package/dist/routes/relationships.js.map +1 -1
- package/dist/routes/repo-info.d.ts +3 -0
- package/dist/routes/repo-info.d.ts.map +1 -0
- package/dist/routes/repo-info.js +203 -0
- package/dist/routes/repo-info.js.map +1 -0
- package/dist/routes/specs.d.ts +3 -2
- package/dist/routes/specs.d.ts.map +1 -1
- package/dist/routes/specs.js +19 -18
- package/dist/routes/specs.js.map +1 -1
- package/dist/routes/version.d.ts +3 -0
- package/dist/routes/version.d.ts.map +1 -0
- package/dist/routes/version.js +25 -0
- package/dist/routes/version.js.map +1 -0
- package/dist/services/agent-registry.d.ts +140 -0
- package/dist/services/agent-registry.d.ts.map +1 -0
- package/dist/services/agent-registry.js +272 -0
- package/dist/services/agent-registry.js.map +1 -0
- package/dist/services/editor-service.d.ts +57 -0
- package/dist/services/editor-service.d.ts.map +1 -0
- package/dist/services/editor-service.js +204 -0
- package/dist/services/editor-service.js.map +1 -0
- package/dist/services/execution-changes-service.d.ts +110 -0
- package/dist/services/execution-changes-service.d.ts.map +1 -0
- package/dist/services/execution-changes-service.js +700 -0
- package/dist/services/execution-changes-service.js.map +1 -0
- package/dist/services/execution-lifecycle.d.ts +1 -0
- package/dist/services/execution-lifecycle.d.ts.map +1 -1
- package/dist/services/execution-lifecycle.js +37 -7
- package/dist/services/execution-lifecycle.js.map +1 -1
- package/dist/services/execution-logs-store.d.ts +75 -0
- package/dist/services/execution-logs-store.d.ts.map +1 -1
- package/dist/services/execution-logs-store.js +142 -2
- package/dist/services/execution-logs-store.js.map +1 -1
- package/dist/services/execution-service.d.ts +82 -59
- package/dist/services/execution-service.d.ts.map +1 -1
- package/dist/services/execution-service.js +514 -469
- package/dist/services/execution-service.js.map +1 -1
- package/dist/services/execution-worker-pool.d.ts +116 -0
- package/dist/services/execution-worker-pool.d.ts.map +1 -0
- package/dist/services/execution-worker-pool.js +326 -0
- package/dist/services/execution-worker-pool.js.map +1 -0
- package/dist/services/executions.d.ts +3 -0
- package/dist/services/executions.d.ts.map +1 -1
- package/dist/services/executions.js +11 -17
- package/dist/services/executions.js.map +1 -1
- package/dist/services/export.d.ts +8 -2
- package/dist/services/export.d.ts.map +1 -1
- package/dist/services/export.js +29 -23
- package/dist/services/export.js.map +1 -1
- package/dist/services/file-search/git-ls-files-strategy.d.ts +72 -0
- package/dist/services/file-search/git-ls-files-strategy.d.ts.map +1 -0
- package/dist/services/file-search/git-ls-files-strategy.js +176 -0
- package/dist/services/file-search/git-ls-files-strategy.js.map +1 -0
- package/dist/services/file-search/index.d.ts +9 -0
- package/dist/services/file-search/index.d.ts.map +1 -0
- package/dist/services/file-search/index.js +10 -0
- package/dist/services/file-search/index.js.map +1 -0
- package/dist/services/file-search/registry.d.ts +97 -0
- package/dist/services/file-search/registry.d.ts.map +1 -0
- package/dist/services/file-search/registry.js +140 -0
- package/dist/services/file-search/registry.js.map +1 -0
- package/dist/services/file-search/strategy.d.ts +58 -0
- package/dist/services/file-search/strategy.d.ts.map +1 -0
- package/dist/services/file-search/strategy.js +8 -0
- package/dist/services/file-search/strategy.js.map +1 -0
- package/dist/services/project-context.d.ts +69 -0
- package/dist/services/project-context.d.ts.map +1 -0
- package/dist/services/project-context.js +113 -0
- package/dist/services/project-context.js.map +1 -0
- package/dist/services/project-manager.d.ts +95 -0
- package/dist/services/project-manager.d.ts.map +1 -0
- package/dist/services/project-manager.js +388 -0
- package/dist/services/project-manager.js.map +1 -0
- package/dist/services/project-registry.d.ts +98 -0
- package/dist/services/project-registry.d.ts.map +1 -0
- package/dist/services/project-registry.js +289 -0
- package/dist/services/project-registry.js.map +1 -0
- package/dist/services/prompt-resolver.d.ts +97 -0
- package/dist/services/prompt-resolver.d.ts.map +1 -0
- package/dist/services/prompt-resolver.js +377 -0
- package/dist/services/prompt-resolver.js.map +1 -0
- package/dist/services/repo-info.d.ts +12 -0
- package/dist/services/repo-info.d.ts.map +1 -1
- package/dist/services/repo-info.js +46 -0
- package/dist/services/repo-info.js.map +1 -1
- package/dist/services/version-service.d.ts +14 -0
- package/dist/services/version-service.d.ts.map +1 -0
- package/dist/services/version-service.js +57 -0
- package/dist/services/version-service.js.map +1 -0
- package/dist/services/watcher.d.ts +3 -4
- package/dist/services/watcher.d.ts.map +1 -1
- package/dist/services/watcher.js +18 -35
- package/dist/services/watcher.js.map +1 -1
- package/dist/services/websocket.d.ts +30 -16
- package/dist/services/websocket.d.ts.map +1 -1
- package/dist/services/websocket.js +102 -37
- package/dist/services/websocket.js.map +1 -1
- package/dist/services/worktree-sync-service.d.ts +326 -0
- package/dist/services/worktree-sync-service.d.ts.map +1 -0
- package/dist/services/worktree-sync-service.js +1091 -0
- package/dist/services/worktree-sync-service.js.map +1 -0
- package/dist/types/editor.d.ts +49 -0
- package/dist/types/editor.d.ts.map +1 -0
- package/dist/types/editor.js +50 -0
- package/dist/types/editor.js.map +1 -0
- package/dist/types/project.d.ts +58 -0
- package/dist/types/project.d.ts.map +1 -0
- package/dist/types/project.js +10 -0
- package/dist/types/project.js.map +1 -0
- package/dist/utils/executable-check.d.ts +36 -0
- package/dist/utils/executable-check.d.ts.map +1 -0
- package/dist/utils/executable-check.js +79 -0
- package/dist/utils/executable-check.js.map +1 -0
- package/dist/workers/execution-worker.d.ts +18 -0
- package/dist/workers/execution-worker.d.ts.map +1 -0
- package/dist/workers/execution-worker.js +340 -0
- package/dist/workers/execution-worker.js.map +1 -0
- package/dist/workers/worker-ipc.d.ts +84 -0
- package/dist/workers/worker-ipc.d.ts.map +1 -0
- package/dist/workers/worker-ipc.js +29 -0
- package/dist/workers/worker-ipc.js.map +1 -0
- package/package.json +6 -5
- package/dist/execution/output/ag-ui-integration.d.ts +0 -96
- package/dist/execution/output/ag-ui-integration.d.ts.map +0 -1
- package/dist/execution/output/ag-ui-integration.js +0 -96
- package/dist/execution/output/ag-ui-integration.js.map +0 -1
- package/dist/execution/output/claude-code-output-processor.d.ts +0 -321
- package/dist/execution/output/claude-code-output-processor.d.ts.map +0 -1
- package/dist/execution/output/claude-code-output-processor.js +0 -769
- package/dist/execution/output/claude-code-output-processor.js.map +0 -1
- package/dist/public/assets/index-B3SEMufD.js +0 -580
- package/dist/public/assets/index-B3SEMufD.js.map +0 -1
- package/dist/public/assets/index-D2YGL3gX.css +0 -1
- package/dist/public/assets/ui-vendor-CotR6bx9.js +0 -54
- package/dist/public/assets/ui-vendor-CotR6bx9.js.map +0 -1
package/dist/public/index.html
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Sudocode</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/assets/react-vendor-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/ui-vendor-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DcDX9-Ad.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/react-vendor-DiL5hC7l.js">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/ui-vendor-B4WMPEfa.js">
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DV9Tbujb.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,SAAS,CAAC;AAGpD,wBAAgB,kBAAkB,IAAI,MAAM,CA8D3C"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Router } from "express";
|
|
2
|
+
import { agentRegistryService } from "../services/agent-registry.js";
|
|
3
|
+
export function createAgentsRouter() {
|
|
4
|
+
const router = Router();
|
|
5
|
+
/**
|
|
6
|
+
* GET /api/agents
|
|
7
|
+
* Returns list of available agents with their metadata, implementation status,
|
|
8
|
+
* and executable availability
|
|
9
|
+
*
|
|
10
|
+
* Query parameters:
|
|
11
|
+
* - verify: If 'false', skips verification (default: true)
|
|
12
|
+
* - skipCache: If 'true', bypasses cache and performs fresh verification (default: false)
|
|
13
|
+
*/
|
|
14
|
+
router.get("/", async (req, res) => {
|
|
15
|
+
try {
|
|
16
|
+
// Default to verifying agents unless explicitly disabled
|
|
17
|
+
const shouldVerify = req.query.verify !== 'false';
|
|
18
|
+
const skipCache = req.query.skipCache === 'true';
|
|
19
|
+
if (shouldVerify) {
|
|
20
|
+
// Clear cache if skipCache is requested
|
|
21
|
+
if (skipCache) {
|
|
22
|
+
agentRegistryService.clearVerificationCache();
|
|
23
|
+
}
|
|
24
|
+
// Get agents with verification
|
|
25
|
+
const agents = await agentRegistryService.getAvailableAgentsWithVerification();
|
|
26
|
+
res.status(200).json({
|
|
27
|
+
agents: agents.map((agent) => ({
|
|
28
|
+
type: agent.name,
|
|
29
|
+
displayName: agent.displayName,
|
|
30
|
+
supportedModes: agent.supportedModes,
|
|
31
|
+
supportsStreaming: agent.supportsStreaming,
|
|
32
|
+
supportsStructuredOutput: agent.supportsStructuredOutput,
|
|
33
|
+
implemented: agent.implemented,
|
|
34
|
+
available: agent.available,
|
|
35
|
+
executablePath: agent.executablePath,
|
|
36
|
+
verificationError: agent.verificationError,
|
|
37
|
+
})),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
// Get agents without verification (faster, but no availability info)
|
|
42
|
+
const agents = agentRegistryService.getAvailableAgents();
|
|
43
|
+
res.status(200).json({
|
|
44
|
+
agents: agents.map((agent) => ({
|
|
45
|
+
type: agent.name,
|
|
46
|
+
displayName: agent.displayName,
|
|
47
|
+
supportedModes: agent.supportedModes,
|
|
48
|
+
supportsStreaming: agent.supportsStreaming,
|
|
49
|
+
supportsStructuredOutput: agent.supportsStructuredOutput,
|
|
50
|
+
implemented: agent.implemented,
|
|
51
|
+
})),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
console.error("Failed to get agents:", error);
|
|
57
|
+
res.status(500).json({ error: "Failed to retrieve agents" });
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
return router;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,UAAU,kBAAkB;IAChC,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC;IAExB;;;;;;;;OAQG;IACH,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,EAAE;QACpD,IAAI,CAAC;YACH,yDAAyD;YACzD,MAAM,YAAY,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,KAAK,OAAO,CAAC;YAClD,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS,KAAK,MAAM,CAAC;YAEjD,IAAI,YAAY,EAAE,CAAC;gBACjB,wCAAwC;gBACxC,IAAI,SAAS,EAAE,CAAC;oBACd,oBAAoB,CAAC,sBAAsB,EAAE,CAAC;gBAChD,CAAC;gBAED,+BAA+B;gBAC/B,MAAM,MAAM,GAAG,MAAM,oBAAoB,CAAC,kCAAkC,EAAE,CAAC;gBAE/E,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;oBACnB,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;wBAC7B,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,WAAW,EAAE,KAAK,CAAC,WAAW;wBAC9B,cAAc,EAAE,KAAK,CAAC,cAAc;wBACpC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;wBAC1C,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;wBACxD,WAAW,EAAE,KAAK,CAAC,WAAW;wBAC9B,SAAS,EAAE,KAAK,CAAC,SAAS;wBAC1B,cAAc,EAAE,KAAK,CAAC,cAAc;wBACpC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;qBAC3C,CAAC,CAAC;iBACJ,CAAC,CAAC;YACL,CAAC;iBAAM,CAAC;gBACN,qEAAqE;gBACrE,MAAM,MAAM,GAAG,oBAAoB,CAAC,kBAAkB,EAAE,CAAC;gBAEzD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;oBACnB,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;wBAC7B,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,WAAW,EAAE,KAAK,CAAC,WAAW;wBAC9B,cAAc,EAAE,KAAK,CAAC,cAAc;wBACpC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;wBAC1C,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;wBACxD,WAAW,EAAE,KAAK,CAAC,WAAW;qBAC/B,CAAC,CAAC;iBACJ,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;YAC9C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,2BAA2B,EAAE,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/routes/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,SAAS,CAAC;AAIpD,wBAAgB,kBAAkB,IAAI,MAAM,CAqB3C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Router } from "express";
|
|
2
|
+
import { existsSync, readFileSync } from "fs";
|
|
3
|
+
import * as path from "path";
|
|
4
|
+
export function createConfigRouter() {
|
|
5
|
+
const router = Router();
|
|
6
|
+
// Config endpoint - returns sudocode configuration for a specific project
|
|
7
|
+
router.get("/", (req, res) => {
|
|
8
|
+
try {
|
|
9
|
+
const configPath = path.join(req.project.sudocodeDir, "config.json");
|
|
10
|
+
if (!existsSync(configPath)) {
|
|
11
|
+
// Return empty config if file doesn't exist
|
|
12
|
+
res.status(200).json({});
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const config = JSON.parse(readFileSync(configPath, "utf-8"));
|
|
16
|
+
res.status(200).json(config);
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
console.error("Failed to read config:", error);
|
|
20
|
+
res.status(500).json({ error: "Failed to read config" });
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return router;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/routes/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,MAAM,UAAU,kBAAkB;IAChC,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC;IAExB,0EAA0E;IAC1E,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,EAAE;QAC9C,IAAI,CAAC;YACH,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;YACtE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC5B,4CAA4C;gBAC5C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACzB,OAAO;YACT,CAAC;YACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;YAC7D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;YAC/C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,uBAAuB,EAAE,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editors API routes (mapped to /api)
|
|
3
|
+
*
|
|
4
|
+
* Provides REST API for IDE/editor integration.
|
|
5
|
+
*
|
|
6
|
+
* Note: All routes require X-Project-ID header via requireProject() middleware
|
|
7
|
+
*/
|
|
8
|
+
import { Router } from "express";
|
|
9
|
+
/**
|
|
10
|
+
* Create editors router
|
|
11
|
+
*
|
|
12
|
+
* @returns Express router with editor endpoints
|
|
13
|
+
*/
|
|
14
|
+
export declare function createEditorsRouter(): Router;
|
|
15
|
+
//# sourceMappingURL=editors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editors.d.ts","sourceRoot":"","sources":["../../src/routes/editors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAqB,MAAM,SAAS,CAAC;AAIpD;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CA2F5C"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editors API routes (mapped to /api)
|
|
3
|
+
*
|
|
4
|
+
* Provides REST API for IDE/editor integration.
|
|
5
|
+
*
|
|
6
|
+
* Note: All routes require X-Project-ID header via requireProject() middleware
|
|
7
|
+
*/
|
|
8
|
+
import { Router } from "express";
|
|
9
|
+
import { EditorService } from "../services/editor-service.js";
|
|
10
|
+
import { EditorOpenError } from "../types/editor.js";
|
|
11
|
+
/**
|
|
12
|
+
* Create editors router
|
|
13
|
+
*
|
|
14
|
+
* @returns Express router with editor endpoints
|
|
15
|
+
*/
|
|
16
|
+
export function createEditorsRouter() {
|
|
17
|
+
const router = Router();
|
|
18
|
+
/**
|
|
19
|
+
* POST /api/open-in-ide
|
|
20
|
+
*
|
|
21
|
+
* Open a worktree path in configured IDE
|
|
22
|
+
*
|
|
23
|
+
* Request body:
|
|
24
|
+
* - worktreePath: string - Path to the worktree to open
|
|
25
|
+
* - editorType?: string - Optional editor type override
|
|
26
|
+
*
|
|
27
|
+
* Response:
|
|
28
|
+
* - success: boolean
|
|
29
|
+
* - message?: string
|
|
30
|
+
* - error?: { code: string, details: string }
|
|
31
|
+
*/
|
|
32
|
+
router.post("/open-in-ide", async (req, res) => {
|
|
33
|
+
try {
|
|
34
|
+
const { worktreePath, editorType } = req.body || {};
|
|
35
|
+
// Validate worktree path
|
|
36
|
+
if (!worktreePath) {
|
|
37
|
+
res.status(400).json({
|
|
38
|
+
success: false,
|
|
39
|
+
message: "worktreePath is required",
|
|
40
|
+
error: {
|
|
41
|
+
code: "MISSING_WORKTREE_PATH",
|
|
42
|
+
details: "Request body must include worktreePath",
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
// Create EditorService instance
|
|
48
|
+
const editorService = new EditorService(req.project.path);
|
|
49
|
+
// Open worktree in IDE (with optional editor type override)
|
|
50
|
+
const editorTypeOverride = editorType
|
|
51
|
+
? editorType
|
|
52
|
+
: undefined;
|
|
53
|
+
await editorService.openWorktree(worktreePath, editorTypeOverride);
|
|
54
|
+
res.json({
|
|
55
|
+
success: true,
|
|
56
|
+
message: "Opening worktree in IDE...",
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
console.error(`Failed to open worktree in IDE:`, error);
|
|
61
|
+
// Handle EditorOpenError with specific error codes and HTTP status mapping
|
|
62
|
+
if (error instanceof EditorOpenError) {
|
|
63
|
+
let statusCode = 500;
|
|
64
|
+
switch (error.code) {
|
|
65
|
+
case "EDITOR_NOT_FOUND":
|
|
66
|
+
statusCode = 404;
|
|
67
|
+
break;
|
|
68
|
+
case "WORKTREE_MISSING":
|
|
69
|
+
statusCode = 400;
|
|
70
|
+
break;
|
|
71
|
+
case "SPAWN_FAILED":
|
|
72
|
+
statusCode = 500;
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
res.status(statusCode).json({
|
|
76
|
+
success: false,
|
|
77
|
+
message: error.message,
|
|
78
|
+
error: {
|
|
79
|
+
code: error.code,
|
|
80
|
+
details: error.details || "",
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
// Generic error handling
|
|
86
|
+
res.status(500).json({
|
|
87
|
+
success: false,
|
|
88
|
+
message: "Failed to open worktree in IDE",
|
|
89
|
+
error: {
|
|
90
|
+
code: "INTERNAL_ERROR",
|
|
91
|
+
details: error instanceof Error ? error.message : String(error),
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
return router;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=editors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editors.js","sourceRoot":"","sources":["../../src/routes/editors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAqB,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAc,MAAM,oBAAoB,CAAC;AAEjE;;;;GAIG;AACH,MAAM,UAAU,mBAAmB;IACjC,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC;IAExB;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,EAAE;QAChE,IAAI,CAAC;YACH,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;YAEpD,yBAAyB;YACzB,IAAI,CAAC,YAAY,EAAE,CAAC;gBAClB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;oBACnB,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,0BAA0B;oBACnC,KAAK,EAAE;wBACL,IAAI,EAAE,uBAAuB;wBAC7B,OAAO,EAAE,wCAAwC;qBAClD;iBACF,CAAC,CAAC;gBACH,OAAO;YACT,CAAC;YAED,gCAAgC;YAChC,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,GAAG,CAAC,OAAQ,CAAC,IAAI,CAAC,CAAC;YAE3D,4DAA4D;YAC5D,MAAM,kBAAkB,GAAG,UAAU;gBACnC,CAAC,CAAE,UAAyB;gBAC5B,CAAC,CAAC,SAAS,CAAC;YAEd,MAAM,aAAa,CAAC,YAAY,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC;YAEnE,GAAG,CAAC,IAAI,CAAC;gBACP,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,4BAA4B;aACtC,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,iCAAiC,EAAE,KAAK,CAAC,CAAC;YAExD,2EAA2E;YAC3E,IAAI,KAAK,YAAY,eAAe,EAAE,CAAC;gBACrC,IAAI,UAAU,GAAG,GAAG,CAAC;gBAErB,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;oBACnB,KAAK,kBAAkB;wBACrB,UAAU,GAAG,GAAG,CAAC;wBACjB,MAAM;oBACR,KAAK,kBAAkB;wBACrB,UAAU,GAAG,GAAG,CAAC;wBACjB,MAAM;oBACR,KAAK,cAAc;wBACjB,UAAU,GAAG,GAAG,CAAC;wBACjB,MAAM;gBACV,CAAC;gBAED,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC;oBAC1B,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,KAAK,CAAC,OAAO;oBACtB,KAAK,EAAE;wBACL,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,EAAE;qBAC7B;iBACF,CAAC,CAAC;gBACH,OAAO;YACT,CAAC;YAED,yBAAyB;YACzB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBACnB,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,gCAAgC;gBACzC,KAAK,EAAE;oBACL,IAAI,EAAE,gBAAgB;oBACtB,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;iBAChE;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -4,21 +4,24 @@
|
|
|
4
4
|
* SSE endpoint for streaming execution events to clients.
|
|
5
5
|
* Integrates with TransportManager to broadcast AG-UI events.
|
|
6
6
|
*
|
|
7
|
+
* Note: All routes require X-Project-ID header via requireProject() middleware
|
|
8
|
+
*
|
|
7
9
|
* @module routes/executions-stream
|
|
8
10
|
*/
|
|
9
11
|
import { Router } from "express";
|
|
10
|
-
import type { TransportManager } from "../execution/transport/transport-manager.js";
|
|
11
12
|
/**
|
|
12
13
|
* Create execution stream routes
|
|
13
14
|
*
|
|
14
|
-
*
|
|
15
|
+
* Note: TransportManager is accessed via req.project which is injected
|
|
16
|
+
* by the requireProject() middleware
|
|
17
|
+
*
|
|
15
18
|
* @returns Express router with SSE endpoints
|
|
16
19
|
*
|
|
17
20
|
* @example
|
|
18
21
|
* ```typescript
|
|
19
|
-
* const router = createExecutionStreamRoutes(
|
|
20
|
-
* app.use('/api/executions', router);
|
|
22
|
+
* const router = createExecutionStreamRoutes();
|
|
23
|
+
* app.use('/api/executions', requireProject(projectManager), router);
|
|
21
24
|
* ```
|
|
22
25
|
*/
|
|
23
|
-
export declare function createExecutionStreamRoutes(
|
|
26
|
+
export declare function createExecutionStreamRoutes(): Router;
|
|
24
27
|
//# sourceMappingURL=executions-stream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions-stream.d.ts","sourceRoot":"","sources":["../../src/routes/executions-stream.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"executions-stream.d.ts","sourceRoot":"","sources":["../../src/routes/executions-stream.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAIjC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,CAqCpD"}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* SSE endpoint for streaming execution events to clients.
|
|
5
5
|
* Integrates with TransportManager to broadcast AG-UI events.
|
|
6
6
|
*
|
|
7
|
+
* Note: All routes require X-Project-ID header via requireProject() middleware
|
|
8
|
+
*
|
|
7
9
|
* @module routes/executions-stream
|
|
8
10
|
*/
|
|
9
11
|
import { Router } from "express";
|
|
@@ -11,16 +13,18 @@ import { randomUUID } from "crypto";
|
|
|
11
13
|
/**
|
|
12
14
|
* Create execution stream routes
|
|
13
15
|
*
|
|
14
|
-
*
|
|
16
|
+
* Note: TransportManager is accessed via req.project which is injected
|
|
17
|
+
* by the requireProject() middleware
|
|
18
|
+
*
|
|
15
19
|
* @returns Express router with SSE endpoints
|
|
16
20
|
*
|
|
17
21
|
* @example
|
|
18
22
|
* ```typescript
|
|
19
|
-
* const router = createExecutionStreamRoutes(
|
|
20
|
-
* app.use('/api/executions', router);
|
|
23
|
+
* const router = createExecutionStreamRoutes();
|
|
24
|
+
* app.use('/api/executions', requireProject(projectManager), router);
|
|
21
25
|
* ```
|
|
22
26
|
*/
|
|
23
|
-
export function createExecutionStreamRoutes(
|
|
27
|
+
export function createExecutionStreamRoutes() {
|
|
24
28
|
const router = Router();
|
|
25
29
|
/**
|
|
26
30
|
* SSE endpoint for execution event stream
|
|
@@ -39,14 +43,14 @@ export function createExecutionStreamRoutes(transportManager) {
|
|
|
39
43
|
// Generate unique client ID
|
|
40
44
|
const clientId = randomUUID();
|
|
41
45
|
// Get buffered events for replay
|
|
42
|
-
const bufferedEvents = transportManager.getBufferedEvents(executionId);
|
|
46
|
+
const bufferedEvents = req.project.transportManager.getBufferedEvents(executionId);
|
|
43
47
|
const replayEvents = bufferedEvents.map((buffered) => ({
|
|
44
48
|
event: buffered.event.type,
|
|
45
49
|
data: buffered.event,
|
|
46
50
|
}));
|
|
47
51
|
// Establish SSE connection through transport manager
|
|
48
52
|
// This will set appropriate headers, send connection acknowledgment, and replay buffered events
|
|
49
|
-
transportManager
|
|
53
|
+
req.project.transportManager
|
|
50
54
|
.getSseTransport()
|
|
51
55
|
.handleConnection(clientId, res, executionId, replayEvents);
|
|
52
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions-stream.js","sourceRoot":"","sources":["../../src/routes/executions-stream.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"executions-stream.js","sourceRoot":"","sources":["../../src/routes/executions-stream.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,2BAA2B;IACzC,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC;IAExB;;;;;;;;;OASG;IACH,MAAM,CAAC,GAAG,CAAC,sBAAsB,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,EAAE;QACjE,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;QAEnC,+CAA+C;QAC/C,sDAAsD;QAEtD,4BAA4B;QAC5B,MAAM,QAAQ,GAAG,UAAU,EAAE,CAAC;QAE9B,iCAAiC;QACjC,MAAM,cAAc,GAAG,GAAG,CAAC,OAAQ,CAAC,gBAAiB,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;QACrF,MAAM,YAAY,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YACrD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI;YAC1B,IAAI,EAAE,QAAQ,CAAC,KAAK;SACrB,CAAC,CAAC,CAAC;QAEJ,qDAAqD;QACrD,gGAAgG;QAChG,GAAG,CAAC,OAAQ,CAAC,gBAAiB;aAC3B,eAAe,EAAE;aACjB,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -2,21 +2,17 @@
|
|
|
2
2
|
* Executions API routes (mapped to /api)
|
|
3
3
|
*
|
|
4
4
|
* Provides REST API for managing issue executions.
|
|
5
|
+
*
|
|
6
|
+
* Note: All routes require X-Project-ID header via requireProject() middleware
|
|
5
7
|
*/
|
|
6
8
|
import { Router } from "express";
|
|
7
|
-
import type Database from "better-sqlite3";
|
|
8
|
-
import { ExecutionService } from "../services/execution-service.js";
|
|
9
|
-
import { ExecutionLogsStore } from "../services/execution-logs-store.js";
|
|
10
|
-
import type { TransportManager } from "../execution/transport/transport-manager.js";
|
|
11
9
|
/**
|
|
12
10
|
* Create executions router
|
|
13
11
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @param executionService - Optional execution service instance
|
|
18
|
-
* @param logsStore - Optional execution logs store instance
|
|
12
|
+
* Note: ExecutionService and ExecutionLogsStore are accessed via req.project
|
|
13
|
+
* which is injected by the requireProject() middleware
|
|
14
|
+
*
|
|
19
15
|
* @returns Express router with execution endpoints
|
|
20
16
|
*/
|
|
21
|
-
export declare function createExecutionsRouter(
|
|
17
|
+
export declare function createExecutionsRouter(): Router;
|
|
22
18
|
//# sourceMappingURL=executions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../src/routes/executions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../src/routes/executions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAqB,MAAM,SAAS,CAAC;AA2DpD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CAusC/C"}
|