@mcoda/mswarm 0.1.57 → 0.1.61
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 +19 -0
- package/dist/codali-executor.d.ts +278 -0
- package/dist/codali-executor.d.ts.map +1 -0
- package/dist/codali-executor.js +243 -0
- package/dist/codali-executor.js.map +1 -0
- package/dist/runtime.d.ts +46 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +298 -30
- package/dist/runtime.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +66 -1
- package/dist/server.js.map +1 -1
- package/dist/vendor/codali/agents/AgentProtocol.d.ts +287 -0
- package/dist/vendor/codali/agents/AgentProtocol.d.ts.map +1 -0
- package/dist/vendor/codali/agents/AgentProtocol.js +365 -0
- package/dist/vendor/codali/agents/AgentResolver.d.ts +23 -0
- package/dist/vendor/codali/agents/AgentResolver.d.ts.map +1 -0
- package/dist/vendor/codali/agents/AgentResolver.js +77 -0
- package/dist/vendor/codali/agents/PhaseAgentSelector.d.ts +23 -0
- package/dist/vendor/codali/agents/PhaseAgentSelector.d.ts.map +1 -0
- package/dist/vendor/codali/agents/PhaseAgentSelector.js +287 -0
- package/dist/vendor/codali/cli/EvalCommand.d.ts +37 -0
- package/dist/vendor/codali/cli/EvalCommand.d.ts.map +1 -0
- package/dist/vendor/codali/cli/EvalCommand.js +333 -0
- package/dist/vendor/codali/cli/FeedbackCommand.d.ts +22 -0
- package/dist/vendor/codali/cli/FeedbackCommand.d.ts.map +1 -0
- package/dist/vendor/codali/cli/FeedbackCommand.js +163 -0
- package/dist/vendor/codali/cli/RunCommand.d.ts +78 -0
- package/dist/vendor/codali/cli/RunCommand.d.ts.map +1 -0
- package/dist/vendor/codali/cli/RunCommand.js +2261 -0
- package/dist/vendor/codali/cli.d.ts +3 -0
- package/dist/vendor/codali/cli.d.ts.map +1 -0
- package/dist/vendor/codali/cli.js +109 -0
- package/dist/vendor/codali/cognitive/ArchitectPlanner.d.ts +107 -0
- package/dist/vendor/codali/cognitive/ArchitectPlanner.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ArchitectPlanner.js +1726 -0
- package/dist/vendor/codali/cognitive/BuilderOutputParser.d.ts +25 -0
- package/dist/vendor/codali/cognitive/BuilderOutputParser.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/BuilderOutputParser.js +164 -0
- package/dist/vendor/codali/cognitive/BuilderRunner.d.ts +76 -0
- package/dist/vendor/codali/cognitive/BuilderRunner.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/BuilderRunner.js +1159 -0
- package/dist/vendor/codali/cognitive/ContextAssembler.d.ts +91 -0
- package/dist/vendor/codali/cognitive/ContextAssembler.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ContextAssembler.js +4547 -0
- package/dist/vendor/codali/cognitive/ContextBudget.d.ts +19 -0
- package/dist/vendor/codali/cognitive/ContextBudget.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ContextBudget.js +35 -0
- package/dist/vendor/codali/cognitive/ContextFileLoader.d.ts +30 -0
- package/dist/vendor/codali/cognitive/ContextFileLoader.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ContextFileLoader.js +307 -0
- package/dist/vendor/codali/cognitive/ContextManager.d.ts +47 -0
- package/dist/vendor/codali/cognitive/ContextManager.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ContextManager.js +272 -0
- package/dist/vendor/codali/cognitive/ContextRedactor.d.ts +18 -0
- package/dist/vendor/codali/cognitive/ContextRedactor.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ContextRedactor.js +53 -0
- package/dist/vendor/codali/cognitive/ContextSelector.d.ts +22 -0
- package/dist/vendor/codali/cognitive/ContextSelector.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ContextSelector.js +431 -0
- package/dist/vendor/codali/cognitive/ContextSerializer.d.ts +8 -0
- package/dist/vendor/codali/cognitive/ContextSerializer.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ContextSerializer.js +882 -0
- package/dist/vendor/codali/cognitive/ContextStore.d.ts +27 -0
- package/dist/vendor/codali/cognitive/ContextStore.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ContextStore.js +79 -0
- package/dist/vendor/codali/cognitive/ContextSummarizer.d.ts +16 -0
- package/dist/vendor/codali/cognitive/ContextSummarizer.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ContextSummarizer.js +45 -0
- package/dist/vendor/codali/cognitive/CostEstimator.d.ts +31 -0
- package/dist/vendor/codali/cognitive/CostEstimator.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/CostEstimator.js +66 -0
- package/dist/vendor/codali/cognitive/CriticEvaluator.d.ts +32 -0
- package/dist/vendor/codali/cognitive/CriticEvaluator.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/CriticEvaluator.js +297 -0
- package/dist/vendor/codali/cognitive/EvidenceGate.d.ts +9 -0
- package/dist/vendor/codali/cognitive/EvidenceGate.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/EvidenceGate.js +75 -0
- package/dist/vendor/codali/cognitive/GoldenExampleIndexer.d.ts +12 -0
- package/dist/vendor/codali/cognitive/GoldenExampleIndexer.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/GoldenExampleIndexer.js +34 -0
- package/dist/vendor/codali/cognitive/GoldenSetStore.d.ts +33 -0
- package/dist/vendor/codali/cognitive/GoldenSetStore.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/GoldenSetStore.js +159 -0
- package/dist/vendor/codali/cognitive/IntentSignals.d.ts +7 -0
- package/dist/vendor/codali/cognitive/IntentSignals.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/IntentSignals.js +285 -0
- package/dist/vendor/codali/cognitive/LearningGovernance.d.ts +100 -0
- package/dist/vendor/codali/cognitive/LearningGovernance.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/LearningGovernance.js +276 -0
- package/dist/vendor/codali/cognitive/MemoryWriteback.d.ts +64 -0
- package/dist/vendor/codali/cognitive/MemoryWriteback.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/MemoryWriteback.js +287 -0
- package/dist/vendor/codali/cognitive/PatchApplier.d.ts +49 -0
- package/dist/vendor/codali/cognitive/PatchApplier.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/PatchApplier.js +199 -0
- package/dist/vendor/codali/cognitive/PatchInterpreter.d.ts +35 -0
- package/dist/vendor/codali/cognitive/PatchInterpreter.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/PatchInterpreter.js +100 -0
- package/dist/vendor/codali/cognitive/PatchOutputNormalizer.d.ts +7 -0
- package/dist/vendor/codali/cognitive/PatchOutputNormalizer.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/PatchOutputNormalizer.js +59 -0
- package/dist/vendor/codali/cognitive/PostMortemAnalyzer.d.ts +17 -0
- package/dist/vendor/codali/cognitive/PostMortemAnalyzer.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/PostMortemAnalyzer.js +131 -0
- package/dist/vendor/codali/cognitive/PreferenceExtraction.d.ts +3 -0
- package/dist/vendor/codali/cognitive/PreferenceExtraction.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/PreferenceExtraction.js +85 -0
- package/dist/vendor/codali/cognitive/Prompts.d.ts +15 -0
- package/dist/vendor/codali/cognitive/Prompts.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/Prompts.js +326 -0
- package/dist/vendor/codali/cognitive/ProviderRouting.d.ts +16 -0
- package/dist/vendor/codali/cognitive/ProviderRouting.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ProviderRouting.js +24 -0
- package/dist/vendor/codali/cognitive/QueryExtraction.d.ts +12 -0
- package/dist/vendor/codali/cognitive/QueryExtraction.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/QueryExtraction.js +262 -0
- package/dist/vendor/codali/cognitive/RunHistoryIndexer.d.ts +13 -0
- package/dist/vendor/codali/cognitive/RunHistoryIndexer.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/RunHistoryIndexer.js +125 -0
- package/dist/vendor/codali/cognitive/SmartPipeline.d.ts +92 -0
- package/dist/vendor/codali/cognitive/SmartPipeline.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/SmartPipeline.js +4804 -0
- package/dist/vendor/codali/cognitive/Types.d.ts +474 -0
- package/dist/vendor/codali/cognitive/Types.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/Types.js +7 -0
- package/dist/vendor/codali/cognitive/ValidationRunner.d.ts +57 -0
- package/dist/vendor/codali/cognitive/ValidationRunner.d.ts.map +1 -0
- package/dist/vendor/codali/cognitive/ValidationRunner.js +515 -0
- package/dist/vendor/codali/config/Config.d.ts +249 -0
- package/dist/vendor/codali/config/Config.d.ts.map +1 -0
- package/dist/vendor/codali/config/Config.js +200 -0
- package/dist/vendor/codali/config/ConfigLoader.d.ts +56 -0
- package/dist/vendor/codali/config/ConfigLoader.d.ts.map +1 -0
- package/dist/vendor/codali/config/ConfigLoader.js +1246 -0
- package/dist/vendor/codali/docdex/DocdexClient.d.ts +158 -0
- package/dist/vendor/codali/docdex/DocdexClient.d.ts.map +1 -0
- package/dist/vendor/codali/docdex/DocdexClient.js +785 -0
- package/dist/vendor/codali/eval/EvalRunner.d.ts +35 -0
- package/dist/vendor/codali/eval/EvalRunner.d.ts.map +1 -0
- package/dist/vendor/codali/eval/EvalRunner.js +38 -0
- package/dist/vendor/codali/eval/EvalTaskExecutor.d.ts +81 -0
- package/dist/vendor/codali/eval/EvalTaskExecutor.d.ts.map +1 -0
- package/dist/vendor/codali/eval/EvalTaskExecutor.js +371 -0
- package/dist/vendor/codali/eval/GateEvaluator.d.ts +31 -0
- package/dist/vendor/codali/eval/GateEvaluator.d.ts.map +1 -0
- package/dist/vendor/codali/eval/GateEvaluator.js +134 -0
- package/dist/vendor/codali/eval/MetricTypes.d.ts +28 -0
- package/dist/vendor/codali/eval/MetricTypes.d.ts.map +1 -0
- package/dist/vendor/codali/eval/MetricTypes.js +1 -0
- package/dist/vendor/codali/eval/MetricsAggregator.d.ts +4 -0
- package/dist/vendor/codali/eval/MetricsAggregator.d.ts.map +1 -0
- package/dist/vendor/codali/eval/MetricsAggregator.js +97 -0
- package/dist/vendor/codali/eval/RegressionComparator.d.ts +29 -0
- package/dist/vendor/codali/eval/RegressionComparator.d.ts.map +1 -0
- package/dist/vendor/codali/eval/RegressionComparator.js +155 -0
- package/dist/vendor/codali/eval/ReportInputAdapter.d.ts +52 -0
- package/dist/vendor/codali/eval/ReportInputAdapter.d.ts.map +1 -0
- package/dist/vendor/codali/eval/ReportInputAdapter.js +229 -0
- package/dist/vendor/codali/eval/ReportSerializer.d.ts +32 -0
- package/dist/vendor/codali/eval/ReportSerializer.d.ts.map +1 -0
- package/dist/vendor/codali/eval/ReportSerializer.js +33 -0
- package/dist/vendor/codali/eval/ReportStore.d.ts +18 -0
- package/dist/vendor/codali/eval/ReportStore.d.ts.map +1 -0
- package/dist/vendor/codali/eval/ReportStore.js +96 -0
- package/dist/vendor/codali/eval/SuiteLoader.d.ts +12 -0
- package/dist/vendor/codali/eval/SuiteLoader.d.ts.map +1 -0
- package/dist/vendor/codali/eval/SuiteLoader.js +51 -0
- package/dist/vendor/codali/eval/SuiteSchema.d.ts +56 -0
- package/dist/vendor/codali/eval/SuiteSchema.d.ts.map +1 -0
- package/dist/vendor/codali/eval/SuiteSchema.js +357 -0
- package/dist/vendor/codali/index.d.ts +11 -0
- package/dist/vendor/codali/index.d.ts.map +1 -0
- package/dist/vendor/codali/index.js +5 -0
- package/dist/vendor/codali/providers/CodexCliProvider.d.ts +8 -0
- package/dist/vendor/codali/providers/CodexCliProvider.d.ts.map +1 -0
- package/dist/vendor/codali/providers/CodexCliProvider.js +282 -0
- package/dist/vendor/codali/providers/OllamaRemoteProvider.d.ts +8 -0
- package/dist/vendor/codali/providers/OllamaRemoteProvider.d.ts.map +1 -0
- package/dist/vendor/codali/providers/OllamaRemoteProvider.js +300 -0
- package/dist/vendor/codali/providers/OpenAiCompatibleProvider.d.ts +8 -0
- package/dist/vendor/codali/providers/OpenAiCompatibleProvider.d.ts.map +1 -0
- package/dist/vendor/codali/providers/OpenAiCompatibleProvider.js +192 -0
- package/dist/vendor/codali/providers/ProviderRegistry.d.ts +12 -0
- package/dist/vendor/codali/providers/ProviderRegistry.d.ts.map +1 -0
- package/dist/vendor/codali/providers/ProviderRegistry.js +28 -0
- package/dist/vendor/codali/providers/ProviderTypes.d.ts +81 -0
- package/dist/vendor/codali/providers/ProviderTypes.d.ts.map +1 -0
- package/dist/vendor/codali/providers/ProviderTypes.js +1 -0
- package/dist/vendor/codali/runtime/CodaliRuntime.d.ts +189 -0
- package/dist/vendor/codali/runtime/CodaliRuntime.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/CodaliRuntime.js +1435 -0
- package/dist/vendor/codali/runtime/DeepInvestigationErrors.d.ts +39 -0
- package/dist/vendor/codali/runtime/DeepInvestigationErrors.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/DeepInvestigationErrors.js +57 -0
- package/dist/vendor/codali/runtime/RunContext.d.ts +27 -0
- package/dist/vendor/codali/runtime/RunContext.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/RunContext.js +51 -0
- package/dist/vendor/codali/runtime/RunLogQuery.d.ts +48 -0
- package/dist/vendor/codali/runtime/RunLogQuery.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/RunLogQuery.js +36 -0
- package/dist/vendor/codali/runtime/RunLogReader.d.ts +19 -0
- package/dist/vendor/codali/runtime/RunLogReader.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/RunLogReader.js +361 -0
- package/dist/vendor/codali/runtime/RunLogger.d.ts +71 -0
- package/dist/vendor/codali/runtime/RunLogger.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/RunLogger.js +100 -0
- package/dist/vendor/codali/runtime/RunTelemetryTypes.d.ts +117 -0
- package/dist/vendor/codali/runtime/RunTelemetryTypes.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/RunTelemetryTypes.js +299 -0
- package/dist/vendor/codali/runtime/Runner.d.ts +66 -0
- package/dist/vendor/codali/runtime/Runner.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/Runner.js +215 -0
- package/dist/vendor/codali/runtime/StoragePaths.d.ts +3 -0
- package/dist/vendor/codali/runtime/StoragePaths.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/StoragePaths.js +19 -0
- package/dist/vendor/codali/runtime/WorkspaceLock.d.ts +30 -0
- package/dist/vendor/codali/runtime/WorkspaceLock.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/WorkspaceLock.js +141 -0
- package/dist/vendor/codali/session/InstructionLoader.d.ts +14 -0
- package/dist/vendor/codali/session/InstructionLoader.d.ts.map +1 -0
- package/dist/vendor/codali/session/InstructionLoader.js +107 -0
- package/dist/vendor/codali/session/SessionStore.d.ts +81 -0
- package/dist/vendor/codali/session/SessionStore.d.ts.map +1 -0
- package/dist/vendor/codali/session/SessionStore.js +244 -0
- package/dist/vendor/codali/subagents/SubagentOrchestrator.d.ts +68 -0
- package/dist/vendor/codali/subagents/SubagentOrchestrator.d.ts.map +1 -0
- package/dist/vendor/codali/subagents/SubagentOrchestrator.js +150 -0
- package/dist/vendor/codali/tools/ToolRegistry.d.ts +9 -0
- package/dist/vendor/codali/tools/ToolRegistry.d.ts.map +1 -0
- package/dist/vendor/codali/tools/ToolRegistry.js +293 -0
- package/dist/vendor/codali/tools/ToolTypes.d.ts +66 -0
- package/dist/vendor/codali/tools/ToolTypes.d.ts.map +1 -0
- package/dist/vendor/codali/tools/ToolTypes.js +40 -0
- package/dist/vendor/codali/tools/diff/DiffTool.d.ts +3 -0
- package/dist/vendor/codali/tools/diff/DiffTool.d.ts.map +1 -0
- package/dist/vendor/codali/tools/diff/DiffTool.js +34 -0
- package/dist/vendor/codali/tools/docdex/DocdexTools.d.ts +4 -0
- package/dist/vendor/codali/tools/docdex/DocdexTools.d.ts.map +1 -0
- package/dist/vendor/codali/tools/docdex/DocdexTools.js +490 -0
- package/dist/vendor/codali/tools/filesystem/FileTools.d.ts +3 -0
- package/dist/vendor/codali/tools/filesystem/FileTools.d.ts.map +1 -0
- package/dist/vendor/codali/tools/filesystem/FileTools.js +141 -0
- package/dist/vendor/codali/tools/search/SearchTool.d.ts +3 -0
- package/dist/vendor/codali/tools/search/SearchTool.d.ts.map +1 -0
- package/dist/vendor/codali/tools/search/SearchTool.js +46 -0
- package/dist/vendor/codali/tools/shell/ShellTool.d.ts +3 -0
- package/dist/vendor/codali/tools/shell/ShellTool.d.ts.map +1 -0
- package/dist/vendor/codali/tools/shell/ShellTool.js +104 -0
- package/package.json +5 -3
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { GlobalRepository } from "@mcoda/db";
|
|
2
|
+
import { CryptoHelper } from "@mcoda/shared";
|
|
3
|
+
const PROVIDERS_REQUIRING_API_KEY = new Set(["openai-compatible"]);
|
|
4
|
+
const PROVIDERS_REQUIRING_BASE_URL = new Set(["ollama-remote"]);
|
|
5
|
+
const SESSION_AUTH_ADAPTERS = new Set(["codex-cli", "openai-cli", "gemini-cli"]);
|
|
6
|
+
const UNSUPPORTED_CODALI_ADAPTERS = new Set(["gemini-cli", "zhipu-api"]);
|
|
7
|
+
const resolveString = (value) => {
|
|
8
|
+
return typeof value === "string" && value.trim() ? value : undefined;
|
|
9
|
+
};
|
|
10
|
+
const resolveBaseUrl = (agent) => {
|
|
11
|
+
const config = (agent.config ?? {});
|
|
12
|
+
return (resolveString(config.baseUrl) ??
|
|
13
|
+
resolveString(config.endpoint) ??
|
|
14
|
+
resolveString(config.apiBaseUrl));
|
|
15
|
+
};
|
|
16
|
+
export const resolveProviderFromAdapter = (adapter, explicitProvider) => {
|
|
17
|
+
if (explicitProvider) {
|
|
18
|
+
const requiresApiKey = PROVIDERS_REQUIRING_API_KEY.has(explicitProvider) &&
|
|
19
|
+
!SESSION_AUTH_ADAPTERS.has(adapter);
|
|
20
|
+
return { provider: explicitProvider, requiresApiKey };
|
|
21
|
+
}
|
|
22
|
+
if (UNSUPPORTED_CODALI_ADAPTERS.has(adapter)) {
|
|
23
|
+
throw new Error(`CODALI_UNSUPPORTED_ADAPTER: ${adapter} is not supported; configure a codali provider explicitly or choose a different agent.`);
|
|
24
|
+
}
|
|
25
|
+
if (adapter === "openai-api") {
|
|
26
|
+
return { provider: "openai-compatible", requiresApiKey: true };
|
|
27
|
+
}
|
|
28
|
+
if (["openai-cli", "codex-cli"].includes(adapter)) {
|
|
29
|
+
return { provider: "codex-cli", requiresApiKey: false };
|
|
30
|
+
}
|
|
31
|
+
if (["ollama-remote", "ollama-cli", "local-model"].includes(adapter)) {
|
|
32
|
+
return { provider: "ollama-remote", requiresApiKey: false };
|
|
33
|
+
}
|
|
34
|
+
throw new Error(`CODALI_UNSUPPORTED_ADAPTER: ${adapter} is not supported; configure a codali provider explicitly or choose a different agent.`);
|
|
35
|
+
};
|
|
36
|
+
export const resolveAgentConfigFromRecord = async (agent, repo, overrides = {}) => {
|
|
37
|
+
const { provider, requiresApiKey } = resolveProviderFromAdapter(agent.adapter, overrides.provider);
|
|
38
|
+
if (provider === "openai-compatible" && agent.openaiCompatible === false) {
|
|
39
|
+
const label = agent.slug ?? agent.id;
|
|
40
|
+
throw new Error(`Agent ${label} is not marked openai-compatible; update the agent metadata or choose a different provider.`);
|
|
41
|
+
}
|
|
42
|
+
const model = overrides.model ?? agent.defaultModel;
|
|
43
|
+
if (!model) {
|
|
44
|
+
const label = agent.slug ?? agent.id;
|
|
45
|
+
throw new Error(`Agent ${label} has no default model`);
|
|
46
|
+
}
|
|
47
|
+
const baseUrl = overrides.baseUrl ?? resolveBaseUrl(agent);
|
|
48
|
+
if (PROVIDERS_REQUIRING_BASE_URL.has(provider) && !baseUrl) {
|
|
49
|
+
const label = agent.slug ?? agent.id;
|
|
50
|
+
throw new Error(`Agent ${label} is missing a baseUrl for provider ${provider}; update the agent config.`);
|
|
51
|
+
}
|
|
52
|
+
let apiKey = overrides.apiKey;
|
|
53
|
+
if (!apiKey && requiresApiKey) {
|
|
54
|
+
const secret = await repo.getAgentAuthSecret(agent.id);
|
|
55
|
+
if (secret?.encryptedSecret) {
|
|
56
|
+
apiKey = await CryptoHelper.decryptSecret(secret.encryptedSecret);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (requiresApiKey && !apiKey) {
|
|
60
|
+
const label = agent.slug ?? agent.id;
|
|
61
|
+
throw new Error(`AUTH_REQUIRED: API key missing for agent ${label}; run \"mcoda agent auth set ${label}\".`);
|
|
62
|
+
}
|
|
63
|
+
return { agent, provider, model, baseUrl, apiKey, requiresApiKey };
|
|
64
|
+
};
|
|
65
|
+
export const resolveAgentConfig = async (agentRef, overrides = {}) => {
|
|
66
|
+
const repo = await GlobalRepository.create();
|
|
67
|
+
try {
|
|
68
|
+
const agent = (await repo.getAgentById(agentRef)) ?? (await repo.getAgentBySlug(agentRef));
|
|
69
|
+
if (!agent) {
|
|
70
|
+
throw new Error(`Agent ${agentRef} not found`);
|
|
71
|
+
}
|
|
72
|
+
return await resolveAgentConfigFromRecord(agent, repo, overrides);
|
|
73
|
+
}
|
|
74
|
+
finally {
|
|
75
|
+
await repo.close();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Agent } from "@mcoda/shared";
|
|
2
|
+
import type { PipelinePhase } from "../cognitive/ProviderRouting.js";
|
|
3
|
+
import type { BuilderConfig } from "../config/Config.js";
|
|
4
|
+
import { type ResolvedAgentConfig } from "./AgentResolver.js";
|
|
5
|
+
export type PhaseAgentSource = "override" | "auto" | "fallback" | "none";
|
|
6
|
+
export interface PhaseAgentSelection {
|
|
7
|
+
phase: PipelinePhase;
|
|
8
|
+
agent?: Agent;
|
|
9
|
+
capabilities: string[];
|
|
10
|
+
resolved?: ResolvedAgentConfig;
|
|
11
|
+
source: PhaseAgentSource;
|
|
12
|
+
score?: number;
|
|
13
|
+
reason?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface PhaseAgentSelectionOptions {
|
|
16
|
+
overrides: Partial<Record<PipelinePhase, string>>;
|
|
17
|
+
builderMode: BuilderConfig["mode"];
|
|
18
|
+
fallbackAgent?: ResolvedAgentConfig;
|
|
19
|
+
allowCloudModels?: boolean;
|
|
20
|
+
excludeAgentIds?: Partial<Record<PipelinePhase, string[]>>;
|
|
21
|
+
}
|
|
22
|
+
export declare const selectPhaseAgents: (options: PhaseAgentSelectionOptions) => Promise<Record<PipelinePhase, PhaseAgentSelection>>;
|
|
23
|
+
//# sourceMappingURL=PhaseAgentSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhaseAgentSelector.d.ts","sourceRoot":"","sources":["../../src/agents/PhaseAgentSelector.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;AAEzE,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;IAClD,WAAW,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;CAC5D;AAuLD,eAAO,MAAM,iBAAiB,GAC5B,SAAS,0BAA0B,KAClC,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC,CA6IpD,CAAC"}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { GlobalRepository } from "@mcoda/db";
|
|
2
|
+
import { resolveAgentConfigFromRecord, } from "./AgentResolver.js";
|
|
3
|
+
const PHASE_CAPABILITIES = {
|
|
4
|
+
librarian: ["docdex_query", "summarization", "keyword_extraction", "log_analysis"],
|
|
5
|
+
architect: ["plan", "system_architecture", "architectural_design", "deep_reasoning"],
|
|
6
|
+
builder: ["code_write", "complex_refactoring", "migration_assist", "debugging"],
|
|
7
|
+
critic: ["code_review", "pull_request_review", "final_code_review", "standard_compliance"],
|
|
8
|
+
interpreter: ["code_review", "pull_request_review", "final_code_review", "standard_compliance"],
|
|
9
|
+
};
|
|
10
|
+
const PHASE_REQUIRED_CAPS = {
|
|
11
|
+
librarian: ["docdex_query", "summarization", "keyword_extraction", "log_analysis"],
|
|
12
|
+
architect: ["plan", "system_architecture", "architectural_design", "deep_reasoning"],
|
|
13
|
+
builder: ["code_write", "simple_refactor", "iterative_coding", "migration_assist"],
|
|
14
|
+
critic: ["code_review", "pull_request_review", "final_code_review", "standard_compliance"],
|
|
15
|
+
interpreter: ["code_review", "pull_request_review", "final_code_review", "standard_compliance"],
|
|
16
|
+
};
|
|
17
|
+
const PHASE_BEST_USAGE = {
|
|
18
|
+
librarian: ["lightweight_tasks", "log_analysis", "summarization", "doc_generation"],
|
|
19
|
+
architect: ["system_architecture", "architectural_design", "deep_reasoning", "plan"],
|
|
20
|
+
builder: ["code_write", "coding_light", "iterative_coding", "rapid_prototyping"],
|
|
21
|
+
critic: ["code_review", "code_review_secondary", "production_verification"],
|
|
22
|
+
interpreter: ["code_review", "code_review_secondary", "production_verification"],
|
|
23
|
+
};
|
|
24
|
+
const STRUCTURED_OUTPUT_CAPABILITIES = [
|
|
25
|
+
"strict_instruction_following",
|
|
26
|
+
"json_formatting",
|
|
27
|
+
"schema_adherence",
|
|
28
|
+
"structured_output",
|
|
29
|
+
];
|
|
30
|
+
const PATCH_JSON_EXECUTION_CAPABILITIES = [
|
|
31
|
+
"iterative_coding",
|
|
32
|
+
"simple_refactor",
|
|
33
|
+
];
|
|
34
|
+
const PATCH_JSON_RELIABILITY_CAPABILITIES = [
|
|
35
|
+
"iterative_coding",
|
|
36
|
+
"strict_instruction_following",
|
|
37
|
+
"json_formatting",
|
|
38
|
+
"schema_adherence",
|
|
39
|
+
"structured_output",
|
|
40
|
+
"test_fixing",
|
|
41
|
+
];
|
|
42
|
+
const ADAPTERS_REQUIRING_AUTH = new Set([
|
|
43
|
+
"openai-api",
|
|
44
|
+
"zhipu-api",
|
|
45
|
+
"gemini-cli",
|
|
46
|
+
"codex-cli",
|
|
47
|
+
]);
|
|
48
|
+
const countMatches = (capabilities, required) => required.filter((cap) => capabilities.includes(cap)).length;
|
|
49
|
+
const isManagedMswarmCloudAgent = (agent) => {
|
|
50
|
+
const config = agent.config;
|
|
51
|
+
if (!config || typeof config !== "object" || Array.isArray(config)) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
const managed = config.mswarmCloud;
|
|
55
|
+
return Boolean(managed &&
|
|
56
|
+
typeof managed === "object" &&
|
|
57
|
+
!Array.isArray(managed) &&
|
|
58
|
+
managed.managed === true);
|
|
59
|
+
};
|
|
60
|
+
const isCloudModel = (agent) => {
|
|
61
|
+
if (isManagedMswarmCloudAgent(agent)) {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
return Boolean(agent.defaultModel?.toLowerCase().includes(":cloud"));
|
|
65
|
+
};
|
|
66
|
+
const normalizeAdapter = (adapter) => (adapter ?? "").trim().toLowerCase();
|
|
67
|
+
const requiresConfiguredAuth = (agent) => ADAPTERS_REQUIRING_AUTH.has(normalizeAdapter(agent.adapter));
|
|
68
|
+
const adjustScoreForReadiness = (score, agent, readiness) => {
|
|
69
|
+
let adjusted = score;
|
|
70
|
+
if (readiness.healthStatus === "degraded")
|
|
71
|
+
adjusted -= 25;
|
|
72
|
+
if (requiresConfiguredAuth(agent) && readiness.authConfigured === false)
|
|
73
|
+
adjusted -= 80;
|
|
74
|
+
return adjusted;
|
|
75
|
+
};
|
|
76
|
+
const scoreAgent = (phase, agent, capabilities, builderMode) => {
|
|
77
|
+
if (builderMode === "tool_calls" && phase === "builder" && agent.supportsTools === false) {
|
|
78
|
+
return Number.NEGATIVE_INFINITY;
|
|
79
|
+
}
|
|
80
|
+
const rating = agent.rating ?? 0;
|
|
81
|
+
const reasoning = agent.reasoningRating ?? rating;
|
|
82
|
+
const cost = agent.costPerMillion ?? 0;
|
|
83
|
+
const maxComplexity = agent.maxComplexity ?? 0;
|
|
84
|
+
const capHits = countMatches(capabilities, PHASE_CAPABILITIES[phase]);
|
|
85
|
+
const requiredHits = countMatches(capabilities, PHASE_REQUIRED_CAPS[phase]);
|
|
86
|
+
const structuredHits = countMatches(capabilities, STRUCTURED_OUTPUT_CAPABILITIES);
|
|
87
|
+
const patchExecutionHits = countMatches(capabilities, PATCH_JSON_EXECUTION_CAPABILITIES);
|
|
88
|
+
const patchReliabilityHits = countMatches(capabilities, PATCH_JSON_RELIABILITY_CAPABILITIES);
|
|
89
|
+
const hasIterativeCoding = capabilities.includes("iterative_coding");
|
|
90
|
+
const hasToolRunner = capabilities.includes("tool_runner");
|
|
91
|
+
const usageBoost = agent.bestUsage && PHASE_BEST_USAGE[phase].includes(agent.bestUsage) ? 2 : 0;
|
|
92
|
+
const patchJsonBuilder = phase === "builder" && builderMode === "patch_json";
|
|
93
|
+
let score = 0;
|
|
94
|
+
if (phase === "architect" || phase === "critic" || phase === "interpreter") {
|
|
95
|
+
score += reasoning * 3 + rating * 2;
|
|
96
|
+
}
|
|
97
|
+
else if (phase === "builder") {
|
|
98
|
+
score += rating * 2 + reasoning;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
score += rating + reasoning * 0.5;
|
|
102
|
+
}
|
|
103
|
+
score += capHits * 4;
|
|
104
|
+
if (capHits === 0)
|
|
105
|
+
score -= 3;
|
|
106
|
+
score += requiredHits * 2;
|
|
107
|
+
if (patchJsonBuilder)
|
|
108
|
+
score += requiredHits * 3;
|
|
109
|
+
score += usageBoost;
|
|
110
|
+
if (patchJsonBuilder) {
|
|
111
|
+
score += structuredHits * 14;
|
|
112
|
+
score += patchExecutionHits * 4;
|
|
113
|
+
score += patchReliabilityHits * 3;
|
|
114
|
+
if (structuredHits === 0)
|
|
115
|
+
score -= 24;
|
|
116
|
+
if (patchExecutionHits === 0)
|
|
117
|
+
score -= 8;
|
|
118
|
+
if (!hasIterativeCoding)
|
|
119
|
+
score -= 8;
|
|
120
|
+
else
|
|
121
|
+
score += 8;
|
|
122
|
+
if (requiredHits === 0)
|
|
123
|
+
score -= 12;
|
|
124
|
+
if (agent.supportsTools === false)
|
|
125
|
+
score -= 14;
|
|
126
|
+
else
|
|
127
|
+
score += 3;
|
|
128
|
+
if (hasToolRunner)
|
|
129
|
+
score += 2;
|
|
130
|
+
}
|
|
131
|
+
const prefersStructuredBuilder = patchJsonBuilder && structuredHits > 0;
|
|
132
|
+
const costPenalty = phase === "builder"
|
|
133
|
+
? prefersStructuredBuilder ? 1.5 : patchJsonBuilder ? 2 : 5
|
|
134
|
+
: phase === "librarian" ? 4 : phase === "architect" ? 1.5 : 1;
|
|
135
|
+
if (phase === "builder") {
|
|
136
|
+
score -= cost * costPenalty;
|
|
137
|
+
score -= maxComplexity * 0.5;
|
|
138
|
+
}
|
|
139
|
+
else if (phase === "librarian") {
|
|
140
|
+
score -= cost * costPenalty;
|
|
141
|
+
score -= maxComplexity;
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
score -= cost * costPenalty;
|
|
145
|
+
}
|
|
146
|
+
return score;
|
|
147
|
+
};
|
|
148
|
+
const resolveOverrideAgent = async (repo, agentRef) => {
|
|
149
|
+
const agent = (await repo.getAgentById(agentRef)) ?? (await repo.getAgentBySlug(agentRef));
|
|
150
|
+
if (!agent) {
|
|
151
|
+
throw new Error(`Agent ${agentRef} not found`);
|
|
152
|
+
}
|
|
153
|
+
const capabilities = await repo.getAgentCapabilities(agent.id);
|
|
154
|
+
const resolved = await resolveAgentConfigFromRecord(agent, repo);
|
|
155
|
+
return { agent, capabilities, resolved };
|
|
156
|
+
};
|
|
157
|
+
export const selectPhaseAgents = async (options) => {
|
|
158
|
+
const repo = await GlobalRepository.create();
|
|
159
|
+
try {
|
|
160
|
+
const agents = await repo.listAgents();
|
|
161
|
+
const capCache = new Map();
|
|
162
|
+
const readinessCache = new Map();
|
|
163
|
+
const getCaps = async (agent) => {
|
|
164
|
+
const cached = capCache.get(agent.id);
|
|
165
|
+
if (cached)
|
|
166
|
+
return cached;
|
|
167
|
+
const caps = await repo.getAgentCapabilities(agent.id);
|
|
168
|
+
capCache.set(agent.id, caps);
|
|
169
|
+
return caps;
|
|
170
|
+
};
|
|
171
|
+
const getReadiness = async (agent) => {
|
|
172
|
+
const cached = readinessCache.get(agent.id);
|
|
173
|
+
if (cached)
|
|
174
|
+
return cached;
|
|
175
|
+
const [auth, health] = await Promise.all([
|
|
176
|
+
repo.getAgentAuthMetadata(agent.id),
|
|
177
|
+
repo.getAgentHealth(agent.id),
|
|
178
|
+
]);
|
|
179
|
+
const readiness = {
|
|
180
|
+
authConfigured: auth.configured,
|
|
181
|
+
healthStatus: health?.status,
|
|
182
|
+
};
|
|
183
|
+
readinessCache.set(agent.id, readiness);
|
|
184
|
+
return readiness;
|
|
185
|
+
};
|
|
186
|
+
const buildSelection = async (phase) => {
|
|
187
|
+
const excludedIds = new Set(options.excludeAgentIds?.[phase] ?? []);
|
|
188
|
+
const overrideRef = options.overrides[phase];
|
|
189
|
+
if (overrideRef) {
|
|
190
|
+
const resolvedOverride = await resolveOverrideAgent(repo, overrideRef);
|
|
191
|
+
return {
|
|
192
|
+
phase,
|
|
193
|
+
agent: resolvedOverride.agent,
|
|
194
|
+
capabilities: resolvedOverride.capabilities,
|
|
195
|
+
resolved: resolvedOverride.resolved,
|
|
196
|
+
source: "override",
|
|
197
|
+
reason: "routing.agent override",
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
const scored = [];
|
|
201
|
+
const patchJsonBuilder = phase === "builder" && options.builderMode === "patch_json";
|
|
202
|
+
for (const agent of agents) {
|
|
203
|
+
if (excludedIds.has(agent.id))
|
|
204
|
+
continue;
|
|
205
|
+
if (!agent.defaultModel)
|
|
206
|
+
continue;
|
|
207
|
+
if (!options.allowCloudModels && isCloudModel(agent))
|
|
208
|
+
continue;
|
|
209
|
+
const readiness = await getReadiness(agent);
|
|
210
|
+
if (readiness.healthStatus === "unreachable")
|
|
211
|
+
continue;
|
|
212
|
+
const caps = await getCaps(agent);
|
|
213
|
+
const requiredHits = countMatches(caps, PHASE_REQUIRED_CAPS[phase]);
|
|
214
|
+
const structuredHits = countMatches(caps, STRUCTURED_OUTPUT_CAPABILITIES);
|
|
215
|
+
const patchExecutionHits = countMatches(caps, PATCH_JSON_EXECUTION_CAPABILITIES);
|
|
216
|
+
const score = adjustScoreForReadiness(scoreAgent(phase, agent, caps, options.builderMode), agent, readiness);
|
|
217
|
+
if (!Number.isFinite(score))
|
|
218
|
+
continue;
|
|
219
|
+
scored.push({
|
|
220
|
+
agent,
|
|
221
|
+
caps,
|
|
222
|
+
score,
|
|
223
|
+
requiredHits,
|
|
224
|
+
structuredHits,
|
|
225
|
+
patchExecutionHits,
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
const hasRequired = scored.some((candidate) => candidate.requiredHits > 0);
|
|
229
|
+
let candidates = hasRequired
|
|
230
|
+
? scored.filter((candidate) => candidate.requiredHits > 0)
|
|
231
|
+
: scored;
|
|
232
|
+
if (patchJsonBuilder) {
|
|
233
|
+
const structuredCandidates = candidates.filter((candidate) => candidate.structuredHits > 0);
|
|
234
|
+
if (structuredCandidates.length > 0) {
|
|
235
|
+
candidates = structuredCandidates;
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
const patchExecutionCandidates = candidates.filter((candidate) => candidate.patchExecutionHits > 0);
|
|
239
|
+
if (patchExecutionCandidates.length > 0) {
|
|
240
|
+
candidates = patchExecutionCandidates;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
candidates.sort((a, b) => b.score - a.score);
|
|
245
|
+
for (const candidate of candidates) {
|
|
246
|
+
try {
|
|
247
|
+
const resolved = await resolveAgentConfigFromRecord(candidate.agent, repo);
|
|
248
|
+
return {
|
|
249
|
+
phase,
|
|
250
|
+
agent: candidate.agent,
|
|
251
|
+
capabilities: candidate.caps,
|
|
252
|
+
resolved,
|
|
253
|
+
source: "auto",
|
|
254
|
+
score: candidate.score,
|
|
255
|
+
reason: "scored capability match",
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
catch {
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
if (options.fallbackAgent) {
|
|
263
|
+
const fallbackCaps = await getCaps(options.fallbackAgent.agent);
|
|
264
|
+
return {
|
|
265
|
+
phase,
|
|
266
|
+
agent: options.fallbackAgent.agent,
|
|
267
|
+
capabilities: fallbackCaps,
|
|
268
|
+
resolved: options.fallbackAgent,
|
|
269
|
+
source: "fallback",
|
|
270
|
+
reason: "auto selection failed",
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
return { phase, capabilities: [], source: "none", reason: "no eligible agents" };
|
|
274
|
+
};
|
|
275
|
+
const result = {
|
|
276
|
+
librarian: await buildSelection("librarian"),
|
|
277
|
+
architect: await buildSelection("architect"),
|
|
278
|
+
builder: await buildSelection("builder"),
|
|
279
|
+
critic: await buildSelection("critic"),
|
|
280
|
+
interpreter: await buildSelection("interpreter"),
|
|
281
|
+
};
|
|
282
|
+
return result;
|
|
283
|
+
}
|
|
284
|
+
finally {
|
|
285
|
+
await repo.close();
|
|
286
|
+
}
|
|
287
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const EVAL_EXIT_CODES: {
|
|
2
|
+
readonly usage_error: 2;
|
|
3
|
+
readonly suite_validation_error: 3;
|
|
4
|
+
readonly run_failure: 4;
|
|
5
|
+
readonly gate_failure: 5;
|
|
6
|
+
};
|
|
7
|
+
type EvalExitCode = (typeof EVAL_EXIT_CODES)[keyof typeof EVAL_EXIT_CODES];
|
|
8
|
+
export declare class EvalCommandError extends Error {
|
|
9
|
+
readonly exitCode: EvalExitCode;
|
|
10
|
+
constructor(message: string, exitCode: EvalExitCode);
|
|
11
|
+
}
|
|
12
|
+
export interface ParsedEvalArgs {
|
|
13
|
+
suite_path?: string;
|
|
14
|
+
output: "text" | "json";
|
|
15
|
+
baseline_path?: string;
|
|
16
|
+
report_dir?: string;
|
|
17
|
+
workspace_root?: string;
|
|
18
|
+
config_path?: string;
|
|
19
|
+
provider?: string;
|
|
20
|
+
model?: string;
|
|
21
|
+
api_key?: string;
|
|
22
|
+
base_url?: string;
|
|
23
|
+
agent?: string;
|
|
24
|
+
agent_id?: string;
|
|
25
|
+
agent_slug?: string;
|
|
26
|
+
workflow_profile?: string;
|
|
27
|
+
smart?: boolean;
|
|
28
|
+
no_deep_investigation?: boolean;
|
|
29
|
+
help?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare const parseEvalArgs: (argv: string[]) => ParsedEvalArgs;
|
|
32
|
+
export declare class EvalCommand {
|
|
33
|
+
static helpText(): string;
|
|
34
|
+
static run(argv: string[]): Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=EvalCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvalCommand.d.ts","sourceRoot":"","sources":["../../src/cli/EvalCommand.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,KAAK,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAE3E,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;gBAEpB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY;CAKpD;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AA+BD,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,KAAG,cAkG9C,CAAC;AA2DF,qBAAa,WAAW;IACtB,MAAM,CAAC,QAAQ,IAAI,MAAM;WAIZ,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAqJhD"}
|