substrate-ai 0.8.0 → 0.8.1
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { DoltClient, DoltNotInstalled, FileStateStore, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, WorkGraphRepository, buildPipelineStatusOutput, checkDoltInstalled, createDatabaseAdapter, createDoltClient, createStateStore, detectCycles, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, initSchema, initializeDolt, isSyncAdapter, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot } from "../health-C-VRJruD.js";
|
|
3
3
|
import { createLogger } from "../logger-D2fS2ccL.js";
|
|
4
4
|
import { AdapterRegistry } from "../adapter-registry-D2zdMwVu.js";
|
|
5
|
-
import { AdapterTelemetryPersistence, AppError, DEFAULT_CONFIG, DEFAULT_ROUTING_POLICY, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, GitClient, GrammarLoader, IngestionServer, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createConfigSystem, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, registerRunCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-
|
|
5
|
+
import { AdapterTelemetryPersistence, AppError, DEFAULT_CONFIG, DEFAULT_ROUTING_POLICY, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, GitClient, GrammarLoader, IngestionServer, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createConfigSystem, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, registerRunCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-VMOBJZ7f.js";
|
|
6
6
|
import { CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, PartialSubstrateConfigSchema } from "../config-migrator-CtGelIsG.js";
|
|
7
7
|
import { ConfigError, createEventBus } from "../helpers-CpMs8VZX.js";
|
|
8
8
|
import { RoutingRecommender } from "../routing-BVrxrM6v.js";
|
|
@@ -3516,7 +3516,7 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
3516
3516
|
await initSchema(expAdapter);
|
|
3517
3517
|
const { runRunAction: runPipeline } = await import(
|
|
3518
3518
|
/* @vite-ignore */
|
|
3519
|
-
"../run-
|
|
3519
|
+
"../run-C2dsqnZU.js"
|
|
3520
3520
|
);
|
|
3521
3521
|
const runStoryFn = async (opts) => {
|
|
3522
3522
|
const exitCode = await runPipeline({
|
package/dist/index.d.ts
CHANGED
|
@@ -586,6 +586,26 @@ interface RoutingModelSelectedEvent {
|
|
|
586
586
|
/** How the model was selected: 'phase', 'baseline', 'override' */
|
|
587
587
|
source: string;
|
|
588
588
|
}
|
|
589
|
+
/**
|
|
590
|
+
* Emitted when a pipeline phase starts during full pipeline execution.
|
|
591
|
+
*/
|
|
592
|
+
interface PipelinePhaseStartEvent {
|
|
593
|
+
type: 'pipeline:phase-start';
|
|
594
|
+
/** ISO-8601 timestamp generated at emit time */
|
|
595
|
+
ts: string;
|
|
596
|
+
/** Phase name (e.g., 'analysis', 'implementation') */
|
|
597
|
+
phase: string;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Emitted when a pipeline phase completes during full pipeline execution.
|
|
601
|
+
*/
|
|
602
|
+
interface PipelinePhaseCompleteEvent {
|
|
603
|
+
type: 'pipeline:phase-complete';
|
|
604
|
+
/** ISO-8601 timestamp generated at emit time */
|
|
605
|
+
ts: string;
|
|
606
|
+
/** Phase name (e.g., 'analysis', 'implementation') */
|
|
607
|
+
phase: string;
|
|
608
|
+
}
|
|
589
609
|
/**
|
|
590
610
|
* Discriminated union of all pipeline event types.
|
|
591
611
|
*
|
|
@@ -598,7 +618,7 @@ interface RoutingModelSelectedEvent {
|
|
|
598
618
|
* }
|
|
599
619
|
* ```
|
|
600
620
|
*/
|
|
601
|
-
type PipelineEvent = PipelineStartEvent | PipelineCompleteEvent | PipelinePreFlightFailureEvent | PipelineProfileStaleEvent | PipelineContractMismatchEvent | PipelineContractVerificationSummaryEvent | StoryPhaseEvent | StoryDoneEvent | StoryEscalationEvent | StoryWarnEvent | StoryLogEvent | PipelineHeartbeatEvent | StoryStallEvent | StoryZeroDiffEscalationEvent | StoryBuildVerificationFailedEvent | StoryBuildVerificationPassedEvent | StoryInterfaceChangeWarningEvent | StoryMetricsEvent | SupervisorPollEvent | SupervisorKillEvent | SupervisorRestartEvent | SupervisorAbortEvent | SupervisorSummaryEvent | SupervisorAnalysisCompleteEvent | SupervisorAnalysisErrorEvent | SupervisorExperimentStartEvent | SupervisorExperimentSkipEvent | SupervisorExperimentRecommendationsEvent | SupervisorExperimentCompleteEvent | SupervisorExperimentErrorEvent | RoutingModelSelectedEvent; //#endregion
|
|
621
|
+
type PipelineEvent = PipelineStartEvent | PipelineCompleteEvent | PipelinePreFlightFailureEvent | PipelineProfileStaleEvent | PipelineContractMismatchEvent | PipelineContractVerificationSummaryEvent | StoryPhaseEvent | StoryDoneEvent | StoryEscalationEvent | StoryWarnEvent | StoryLogEvent | PipelineHeartbeatEvent | StoryStallEvent | StoryZeroDiffEscalationEvent | StoryBuildVerificationFailedEvent | StoryBuildVerificationPassedEvent | StoryInterfaceChangeWarningEvent | StoryMetricsEvent | SupervisorPollEvent | SupervisorKillEvent | SupervisorRestartEvent | SupervisorAbortEvent | SupervisorSummaryEvent | SupervisorAnalysisCompleteEvent | SupervisorAnalysisErrorEvent | SupervisorExperimentStartEvent | SupervisorExperimentSkipEvent | SupervisorExperimentRecommendationsEvent | SupervisorExperimentCompleteEvent | SupervisorExperimentErrorEvent | RoutingModelSelectedEvent | PipelinePhaseStartEvent | PipelinePhaseCompleteEvent; //#endregion
|
|
602
622
|
//#region src/core/errors.d.ts
|
|
603
623
|
|
|
604
624
|
/**
|
|
@@ -1357,6 +1377,16 @@ interface OrchestratorEvents {
|
|
|
1357
1377
|
reviewCycles: number;
|
|
1358
1378
|
dispatches: number;
|
|
1359
1379
|
};
|
|
1380
|
+
/** A pipeline phase has started (emitted by full pipeline path for NDJSON visibility) */
|
|
1381
|
+
'pipeline:phase-start': {
|
|
1382
|
+
phase: string;
|
|
1383
|
+
ts: string;
|
|
1384
|
+
};
|
|
1385
|
+
/** A pipeline phase has completed (emitted by full pipeline path for NDJSON visibility) */
|
|
1386
|
+
'pipeline:phase-complete': {
|
|
1387
|
+
phase: string;
|
|
1388
|
+
ts: string;
|
|
1389
|
+
};
|
|
1360
1390
|
/**
|
|
1361
1391
|
* Emitted when a dev-story timeout has partial work on disk and the
|
|
1362
1392
|
* orchestrator captures it as a checkpoint for retry (Story 39-5).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./health-C-VRJruD.js";
|
|
2
2
|
import "./logger-D2fS2ccL.js";
|
|
3
|
-
import { registerRunCommand, runRunAction } from "./run-
|
|
3
|
+
import { registerRunCommand, runRunAction } from "./run-VMOBJZ7f.js";
|
|
4
4
|
import "./config-migrator-CtGelIsG.js";
|
|
5
5
|
import "./helpers-CpMs8VZX.js";
|
|
6
6
|
import "./routing-BVrxrM6v.js";
|
|
@@ -1588,6 +1588,34 @@ const PIPELINE_EVENT_METADATA = [
|
|
|
1588
1588
|
}
|
|
1589
1589
|
]
|
|
1590
1590
|
},
|
|
1591
|
+
{
|
|
1592
|
+
type: "pipeline:phase-start",
|
|
1593
|
+
description: "A pipeline phase has started during full pipeline execution.",
|
|
1594
|
+
when: "When --from is used and a phase begins (analysis, planning, solutioning, implementation).",
|
|
1595
|
+
fields: [{
|
|
1596
|
+
name: "ts",
|
|
1597
|
+
type: "string",
|
|
1598
|
+
description: "Timestamp."
|
|
1599
|
+
}, {
|
|
1600
|
+
name: "phase",
|
|
1601
|
+
type: "string",
|
|
1602
|
+
description: "Phase name (e.g., analysis, implementation)."
|
|
1603
|
+
}]
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
type: "pipeline:phase-complete",
|
|
1607
|
+
description: "A pipeline phase has completed during full pipeline execution.",
|
|
1608
|
+
when: "When --from is used and a phase finishes successfully.",
|
|
1609
|
+
fields: [{
|
|
1610
|
+
name: "ts",
|
|
1611
|
+
type: "string",
|
|
1612
|
+
description: "Timestamp."
|
|
1613
|
+
}, {
|
|
1614
|
+
name: "phase",
|
|
1615
|
+
type: "string",
|
|
1616
|
+
description: "Phase name (e.g., analysis, implementation)."
|
|
1617
|
+
}]
|
|
1618
|
+
},
|
|
1591
1619
|
{
|
|
1592
1620
|
type: "pipeline:pre-flight-failure",
|
|
1593
1621
|
description: "Pre-flight build check failed before any story was dispatched. Pipeline aborts immediately.",
|
|
@@ -20259,14 +20287,9 @@ async function runRunAction(options) {
|
|
|
20259
20287
|
const result = readdirSync(artifactsDir, { encoding: "utf-8" });
|
|
20260
20288
|
if (Array.isArray(result)) files = result;
|
|
20261
20289
|
} catch {}
|
|
20262
|
-
if (files !== void 0)
|
|
20263
|
-
const
|
|
20264
|
-
if (
|
|
20265
|
-
const errorMsg = `Story file not found for key: ${key}`;
|
|
20266
|
-
if (outputFormat === "json") process.stdout.write(formatOutput(null, "json", false, errorMsg) + "\n");
|
|
20267
|
-
else process.stderr.write(`Error: ${errorMsg}\n`);
|
|
20268
|
-
return 1;
|
|
20269
|
-
}
|
|
20290
|
+
if (files !== void 0) {
|
|
20291
|
+
const missing = parsedStoryKeys.filter((key) => !files.some((f) => f.startsWith(`${key}-`) && f.endsWith(".md")));
|
|
20292
|
+
if (missing.length > 0) logger.info({ missing }, `Story files not found for ${missing.length} key(s) — create-story phase will generate them`);
|
|
20270
20293
|
}
|
|
20271
20294
|
}
|
|
20272
20295
|
} else {
|
|
@@ -21302,4 +21325,4 @@ function registerRunCommand(program, _version = "0.0.0", projectRoot = process.c
|
|
|
21302
21325
|
|
|
21303
21326
|
//#endregion
|
|
21304
21327
|
export { AdapterTelemetryPersistence, AppError, DEFAULT_CONFIG, DEFAULT_ROUTING_POLICY, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, GitClient, GrammarLoader, IngestionServer, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createConfigSystem, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, registerRunCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runRunAction, runSolutioningPhase, validateStopAfterFromConflict };
|
|
21305
|
-
//# sourceMappingURL=run-
|
|
21328
|
+
//# sourceMappingURL=run-VMOBJZ7f.js.map
|