substrate-ai 0.2.9 → 0.2.10
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 { createLogger, deepMask } from "../logger-C6n1g8uP.js";
|
|
3
3
|
import { AdapterRegistry, createEventBus } from "../event-bus-J-bw-pkp.js";
|
|
4
4
|
import { CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, PartialSubstrateConfigSchema, SUPPORTED_CONFIG_FORMAT_VERSIONS, SubstrateConfigSchema, defaultConfigMigrator } from "../version-manager-impl-BpVx2DkY.js";
|
|
5
|
-
import { DatabaseWrapper, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, buildPipelineStatusOutput, createContextCompiler, createDispatcher, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, findPackageRoot, formatOutput, formatPhaseCompletionSummary, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getSubstrateDefaultSettings, parseDbTimestampAsUtc, registerRunCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, runAnalysisPhase, runMigrations, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-
|
|
5
|
+
import { DatabaseWrapper, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, buildPipelineStatusOutput, createContextCompiler, createDispatcher, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, findPackageRoot, formatOutput, formatPhaseCompletionSummary, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getSubstrateDefaultSettings, parseDbTimestampAsUtc, registerRunCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, runAnalysisPhase, runMigrations, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-XqzHIF6m.js";
|
|
6
6
|
import { ConfigError, ConfigIncompatibleFormatError } from "../errors-BPqtzQ4U.js";
|
|
7
7
|
import { addTokenUsage, createDecision, getDecisionsByPhaseForRun, getLatestRun, getPipelineRunById, getTokenUsageSummary, listRequirements, updatePipelineRun } from "../decisions-DNYByk0U.js";
|
|
8
8
|
import { aggregateTokenUsageForRun, compareRunMetrics, getBaselineRunMetrics, getRunMetrics, getStoryMetricsForRun, incrementRunRestarts, listRunMetrics, tagRunAsBaseline } from "../metrics-BSg8VIHd.js";
|
|
@@ -2833,7 +2833,7 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
2833
2833
|
const expDb = expDbWrapper.db;
|
|
2834
2834
|
const { runRunAction: runPipeline } = await import(
|
|
2835
2835
|
/* @vite-ignore */
|
|
2836
|
-
"../run-
|
|
2836
|
+
"../run-CDdKFwfI.js"
|
|
2837
2837
|
);
|
|
2838
2838
|
const runStoryFn = async (opts) => {
|
|
2839
2839
|
const exitCode = await runPipeline({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./logger-C6n1g8uP.js";
|
|
2
2
|
import "./event-bus-J-bw-pkp.js";
|
|
3
|
-
import { registerRunCommand, runRunAction } from "./run-
|
|
3
|
+
import { registerRunCommand, runRunAction } from "./run-XqzHIF6m.js";
|
|
4
4
|
import "./decisions-DNYByk0U.js";
|
|
5
5
|
import "./metrics-BSg8VIHd.js";
|
|
6
6
|
|
|
@@ -874,6 +874,7 @@ function createPackLoader() {
|
|
|
874
874
|
*/
|
|
875
875
|
/** Canonical pipeline phase names. This is the single source of truth for all phase lists. */
|
|
876
876
|
const VALID_PHASES = [
|
|
877
|
+
"research",
|
|
877
878
|
"analysis",
|
|
878
879
|
"planning",
|
|
879
880
|
"solutioning",
|
|
@@ -10281,7 +10282,7 @@ async function runRunAction(options) {
|
|
|
10281
10282
|
}
|
|
10282
10283
|
}
|
|
10283
10284
|
let concept;
|
|
10284
|
-
if (startPhase === "analysis" || startPhase === void 0) {
|
|
10285
|
+
if (startPhase === "research" || startPhase === "analysis" || startPhase === void 0) {
|
|
10285
10286
|
if (conceptFile !== void 0 && conceptFile !== "") try {
|
|
10286
10287
|
concept = await readFile(conceptFile, "utf-8");
|
|
10287
10288
|
} catch (err) {
|
|
@@ -10292,8 +10293,8 @@ async function runRunAction(options) {
|
|
|
10292
10293
|
return 1;
|
|
10293
10294
|
}
|
|
10294
10295
|
else if (conceptArg !== void 0 && conceptArg !== "") concept = conceptArg;
|
|
10295
|
-
else if (startPhase === "analysis") {
|
|
10296
|
-
const errorMsg = "--concept or --concept-file required when starting from analysis phase";
|
|
10296
|
+
else if (startPhase === "research" || startPhase === "analysis") {
|
|
10297
|
+
const errorMsg = "--concept or --concept-file required when starting from research or analysis phase";
|
|
10297
10298
|
if (outputFormat === "json") process.stdout.write(formatOutput(null, "json", false, errorMsg) + "\n");
|
|
10298
10299
|
else process.stderr.write(`Error: ${errorMsg}\n`);
|
|
10299
10300
|
return 1;
|
|
@@ -11102,4 +11103,4 @@ function registerRunCommand(program, _version = "0.0.0", projectRoot = process.c
|
|
|
11102
11103
|
|
|
11103
11104
|
//#endregion
|
|
11104
11105
|
export { DatabaseWrapper, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, buildPipelineStatusOutput, createContextCompiler, createDispatcher, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, findPackageRoot, formatOutput, formatPhaseCompletionSummary, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getSubstrateDefaultSettings, parseDbTimestampAsUtc, registerRunCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, runAnalysisPhase, runMigrations, runPlanningPhase, runRunAction, runSolutioningPhase, validateStopAfterFromConflict };
|
|
11105
|
-
//# sourceMappingURL=run-
|
|
11106
|
+
//# sourceMappingURL=run-XqzHIF6m.js.map
|