substrate-ai 0.19.35 → 0.19.36
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/cli/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createLogger } from "../logger-KeHncl-f.js";
|
|
|
4
4
|
import { createEventBus } from "../helpers-CElYrONe.js";
|
|
5
5
|
import { AdapterRegistry, BudgetConfigSchema, CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, ConfigError, CostTrackerConfigSchema, DEFAULT_CONFIG, DoltClient, DoltNotInstalled, GlobalSettingsSchema, IngestionServer, MonitorDatabaseImpl, OPERATIONAL_FINDING, PartialGlobalSettingsSchema, PartialProviderConfigSchema, ProvidersSchema, RoutingRecommender, STORY_METRICS, TelemetryConfigSchema, addTokenUsage, aggregateTokenUsageForRun, checkDoltInstalled, compareRunMetrics, createAmendmentRun, createConfigSystem, createDecision, createDoltClient, createPipelineRun, getActiveDecisions, getAllCostEntriesFiltered, getBaselineRunMetrics, getDecisionsByCategory, getDecisionsByPhaseForRun, getLatestCompletedRun, getLatestRun, getPipelineRunById, getPlanningCostTotal, getRetryableEscalations, getRunMetrics, getRunningPipelineRuns, getSessionCostSummary, getSessionCostSummaryFiltered, getStoryMetricsForRun, getTokenUsageSummary, incrementRunRestarts, initSchema, initializeDolt, listRunMetrics, loadParentRunDecisions, supersedeDecision, tagRunAsBaseline, updatePipelineRun } from "../dist-6ETBV23_.js";
|
|
6
6
|
import "../adapter-registry-DXLMTmfD.js";
|
|
7
|
-
import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-
|
|
7
|
+
import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-BnYv46or.js";
|
|
8
8
|
import "../errors-QZ2_FzOB.js";
|
|
9
9
|
import "../routing-CcBOCuC9.js";
|
|
10
10
|
import "../decisions-C0pz9Clx.js";
|
|
@@ -4833,7 +4833,7 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
4833
4833
|
await initSchema(expAdapter);
|
|
4834
4834
|
const { runRunAction: runPipeline } = await import(
|
|
4835
4835
|
/* @vite-ignore */
|
|
4836
|
-
"../run-
|
|
4836
|
+
"../run-V2hA6nZZ.js"
|
|
4837
4837
|
);
|
|
4838
4838
|
const runStoryFn = async (opts) => {
|
|
4839
4839
|
const exitCode = await runPipeline({
|
|
@@ -18454,6 +18454,20 @@ async function buildRunReport(adapter, runId, opts) {
|
|
|
18454
18454
|
logger$2.debug("Could not query TEST_EXPANSION_FINDING decisions — skipping");
|
|
18455
18455
|
}
|
|
18456
18456
|
for (const [storyKey, exp] of Object.entries(testExpansions)) if (exp.gapCount > 0) warnings.push(`${storyKey}: test expansion found ${exp.gapCount} coverage gap(s), priority=${exp.priority}`);
|
|
18457
|
+
const RESULT_MAP = {
|
|
18458
|
+
"SHIP_IT": "SHIP_IT",
|
|
18459
|
+
"LGTM_WITH_NOTES": "LGTM_WITH_NOTES",
|
|
18460
|
+
"NEEDS_MINOR_FIXES": "NEEDS_MINOR_FIXES",
|
|
18461
|
+
"NEEDS_MAJOR_FIXES": "NEEDS_MAJOR_FIXES",
|
|
18462
|
+
"ESCALATED": "ESCALATED",
|
|
18463
|
+
"escalated": "ESCALATED",
|
|
18464
|
+
"FAILED": "FAILED",
|
|
18465
|
+
"failed": "FAILED",
|
|
18466
|
+
"verification-failed": "FAILED"
|
|
18467
|
+
};
|
|
18468
|
+
function normalizeResult(raw) {
|
|
18469
|
+
return RESULT_MAP[raw] ?? raw.toUpperCase();
|
|
18470
|
+
}
|
|
18457
18471
|
const stories = storyMetrics.map((s$1) => {
|
|
18458
18472
|
let phaseDurations;
|
|
18459
18473
|
if (s$1.phase_durations_json) try {
|
|
@@ -18463,7 +18477,7 @@ async function buildRunReport(adapter, runId, opts) {
|
|
|
18463
18477
|
const qualityScore = efficiencyScores[s$1.story_key];
|
|
18464
18478
|
return {
|
|
18465
18479
|
storyKey: s$1.story_key,
|
|
18466
|
-
result: s$1.result,
|
|
18480
|
+
result: normalizeResult(s$1.result),
|
|
18467
18481
|
wallClockSeconds: s$1.wall_clock_seconds,
|
|
18468
18482
|
inputTokens: s$1.input_tokens,
|
|
18469
18483
|
outputTokens: s$1.output_tokens,
|
|
@@ -42693,4 +42707,4 @@ function registerRunCommand(program, _version = "0.0.0", projectRoot = process.c
|
|
|
42693
42707
|
|
|
42694
42708
|
//#endregion
|
|
42695
42709
|
export { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, normalizeGraphSummaryToStatus, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveMaxReviewCycles, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runRunAction, runSolutioningPhase, validateStopAfterFromConflict, wireNdjsonEmitter };
|
|
42696
|
-
//# sourceMappingURL=run-
|
|
42710
|
+
//# sourceMappingURL=run-BnYv46or.js.map
|
|
@@ -2,7 +2,7 @@ import "./health-Ckl2VOPW.js";
|
|
|
2
2
|
import "./logger-KeHncl-f.js";
|
|
3
3
|
import "./helpers-CElYrONe.js";
|
|
4
4
|
import "./dist-6ETBV23_.js";
|
|
5
|
-
import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, runRunAction, wireNdjsonEmitter } from "./run-
|
|
5
|
+
import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, runRunAction, wireNdjsonEmitter } from "./run-BnYv46or.js";
|
|
6
6
|
import "./routing-CcBOCuC9.js";
|
|
7
7
|
import "./decisions-C0pz9Clx.js";
|
|
8
8
|
|