substrate-ai 0.2.27 → 0.2.28
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 +6 -6
- package/dist/index.d.ts +7 -0
- package/dist/{run-DG5j6vJI.js → run-BCyrbL3w.js} +437 -164
- package/dist/{run-jLeEo8FW.js → run-CIgIYtKf.js} +1 -1
- package/dist/{upgrade-CjjAx5kD.js → upgrade-CJ0JFQ2c.js} +2 -2
- package/dist/{upgrade-CF8EjNuO.js → upgrade-DzpjKYlD.js} +2 -2
- package/dist/{version-manager-impl-C6jmvble.js → version-manager-impl-BDfiGXWX.js} +1 -1
- package/dist/{version-manager-impl-CZ6KF1Ds.js → version-manager-impl-CtzNu7YZ.js} +17 -3
- package/package.json +1 -1
- package/packs/bmad/prompts/code-review.md +23 -2
package/dist/cli/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { DatabaseWrapper, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, buildPipelineStatusOutput, createContextCompiler, createDispatcher, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, findPackageRoot, formatOutput, formatPhaseCompletionSummary, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, parseDbTimestampAsUtc, registerHealthCommand, registerRunCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, runAnalysisPhase, runMigrations, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-
|
|
2
|
+
import { DatabaseWrapper, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, buildPipelineStatusOutput, createContextCompiler, createDispatcher, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, findPackageRoot, formatOutput, formatPhaseCompletionSummary, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, parseDbTimestampAsUtc, registerHealthCommand, registerRunCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, runAnalysisPhase, runMigrations, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-BCyrbL3w.js";
|
|
3
3
|
import { createLogger, deepMask } from "../logger-D2fS2ccL.js";
|
|
4
4
|
import { AdapterRegistry, ConfigError, ConfigIncompatibleFormatError } from "../errors-CswS7Mzg.js";
|
|
5
|
-
import { CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, PartialSubstrateConfigSchema, SUPPORTED_CONFIG_FORMAT_VERSIONS, SubstrateConfigSchema, defaultConfigMigrator } from "../version-manager-impl-
|
|
5
|
+
import { CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, PartialSubstrateConfigSchema, SUPPORTED_CONFIG_FORMAT_VERSIONS, SubstrateConfigSchema, defaultConfigMigrator } from "../version-manager-impl-CtzNu7YZ.js";
|
|
6
6
|
import { createEventBus } from "../helpers-DljGJnFF.js";
|
|
7
7
|
import { addTokenUsage, createDecision, createPipelineRun, getDecisionsByCategory, getDecisionsByPhaseForRun, getLatestRun, getTokenUsageSummary, listRequirements, updatePipelineRun } from "../decisions-Dq4cAA2L.js";
|
|
8
8
|
import { ESCALATION_DIAGNOSIS, EXPERIMENT_RESULT, OPERATIONAL_FINDING, STORY_METRICS, aggregateTokenUsageForRun, compareRunMetrics, getBaselineRunMetrics, getRunMetrics, getStoryMetricsForRun, incrementRunRestarts, listRunMetrics, tagRunAsBaseline } from "../operational-CnMlvWqc.js";
|
|
9
9
|
import { abortMerge, createWorktree, getConflictingFiles, getMergedFiles, getOrphanedWorktrees, performMerge, removeBranch, removeWorktree, simulateMerge, verifyGitVersion } from "../git-utils-CtmrZrHS.js";
|
|
10
|
-
import { registerUpgradeCommand } from "../upgrade-
|
|
10
|
+
import { registerUpgradeCommand } from "../upgrade-CJ0JFQ2c.js";
|
|
11
11
|
import { Command } from "commander";
|
|
12
12
|
import { fileURLToPath } from "url";
|
|
13
13
|
import { dirname, join, resolve } from "path";
|
|
@@ -2888,7 +2888,7 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
2888
2888
|
const expDb = expDbWrapper.db;
|
|
2889
2889
|
const { runRunAction: runPipeline } = await import(
|
|
2890
2890
|
/* @vite-ignore */
|
|
2891
|
-
"../run-
|
|
2891
|
+
"../run-CIgIYtKf.js"
|
|
2892
2892
|
);
|
|
2893
2893
|
const runStoryFn = async (opts) => {
|
|
2894
2894
|
const exitCode = await runPipeline({
|
|
@@ -6964,8 +6964,8 @@ async function createProgram() {
|
|
|
6964
6964
|
/** Fire-and-forget startup version check (story 8.3, AC3/AC5) */
|
|
6965
6965
|
function checkForUpdatesInBackground(currentVersion) {
|
|
6966
6966
|
if (process.env.SUBSTRATE_NO_UPDATE_CHECK === "1") return;
|
|
6967
|
-
import("../upgrade-
|
|
6968
|
-
const { createVersionManager } = await import("../version-manager-impl-
|
|
6967
|
+
import("../upgrade-DzpjKYlD.js").then(async () => {
|
|
6968
|
+
const { createVersionManager } = await import("../version-manager-impl-BDfiGXWX.js");
|
|
6969
6969
|
const vm = createVersionManager();
|
|
6970
6970
|
const result = await vm.checkForUpdates();
|
|
6971
6971
|
if (result.updateAvailable) {
|
package/dist/index.d.ts
CHANGED
|
@@ -740,6 +740,13 @@ declare const SubstrateConfigSchema: z.ZodObject<{
|
|
|
740
740
|
planning_costs_count_against_budget: z.ZodBoolean;
|
|
741
741
|
warning_threshold_percent: z.ZodNumber;
|
|
742
742
|
}, z.core.$strict>>;
|
|
743
|
+
token_ceilings: z.ZodOptional<z.ZodObject<{
|
|
744
|
+
'create-story': z.ZodOptional<z.ZodNumber>;
|
|
745
|
+
'dev-story': z.ZodOptional<z.ZodNumber>;
|
|
746
|
+
'code-review': z.ZodOptional<z.ZodNumber>;
|
|
747
|
+
'test-plan': z.ZodOptional<z.ZodNumber>;
|
|
748
|
+
'test-expansion': z.ZodOptional<z.ZodNumber>;
|
|
749
|
+
}, z.core.$strip>>;
|
|
743
750
|
}, z.core.$strict>;
|
|
744
751
|
type SubstrateConfig = z.infer<typeof SubstrateConfigSchema>;
|
|
745
752
|
|