substrate-ai 0.19.20 → 0.19.21
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/adapter-registry-CHFfvph6.js +4 -0
- package/dist/cli/index.js +13 -13
- package/dist/{decisions-BEAzpqOy.js → decisions-B9fESQQz.js} +1 -1
- package/dist/{dist-CtFYOaeA.js → dist-DmhbWZ0f.js} +21 -12
- package/dist/{errors-CWSATPPa.js → errors-CrFWBvB4.js} +2 -2
- package/dist/{experimenter-ChKZzonq.js → experimenter-BzWRPx13.js} +1 -1
- package/dist/{health-DlKuVhQH.js → health-BQgWJ1Kf.js} +2 -2
- package/dist/{health-CkQncTB5.js → health-Cw21tMNg.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{routing-DXoZWjBO.js → routing-CLiOXDct.js} +1 -1
- package/dist/{run-MGg8SzDA.js → run-CjaZyR8x.js} +5 -4
- package/dist/run-IuX7h-wp.js +9 -0
- package/dist/{upgrade-D_od33Mu.js → upgrade-BPh0o_3L.js} +2 -2
- package/dist/{upgrade-UCMt4b7A.js → upgrade-o__Q1Kdc.js} +2 -2
- package/dist/{version-manager-impl-DA5apVDT.js → version-manager-impl-BO2Gvy5R.js} +1 -1
- package/package.json +1 -1
- package/dist/adapter-registry-BDvUQgG3.js +0 -4
- package/dist/run-DVwQH8Ea.js +0 -9
package/dist/cli/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { FileStateStore, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, WorkGraphRepository, buildPipelineStatusOutput, createDatabaseAdapter, createStateStore, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot } from "../health-
|
|
2
|
+
import { FileStateStore, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, WorkGraphRepository, buildPipelineStatusOutput, createDatabaseAdapter, createStateStore, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot } from "../health-Cw21tMNg.js";
|
|
3
3
|
import { createLogger } from "../logger-KeHncl-f.js";
|
|
4
4
|
import { createEventBus } from "../helpers-CElYrONe.js";
|
|
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, getSessionCostSummary, getSessionCostSummaryFiltered, getStoryMetricsForRun, getTokenUsageSummary, incrementRunRestarts, initSchema, initializeDolt, listRunMetrics, loadParentRunDecisions, supersedeDecision, tagRunAsBaseline, updatePipelineRun } from "../dist-
|
|
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, getSessionCostSummary, getSessionCostSummaryFiltered, getStoryMetricsForRun, getTokenUsageSummary, incrementRunRestarts, initSchema, initializeDolt, listRunMetrics, loadParentRunDecisions, supersedeDecision, tagRunAsBaseline, updatePipelineRun } from "../dist-DmhbWZ0f.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-
|
|
8
|
-
import "../errors-
|
|
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-CjaZyR8x.js";
|
|
8
|
+
import "../errors-CrFWBvB4.js";
|
|
9
9
|
import "../routing-CcBOCuC9.js";
|
|
10
10
|
import "../decisions-C0pz9Clx.js";
|
|
11
11
|
import "../version-manager-impl-BmOWu8ml.js";
|
|
12
|
-
import { registerUpgradeCommand } from "../upgrade-
|
|
12
|
+
import { registerUpgradeCommand } from "../upgrade-o__Q1Kdc.js";
|
|
13
13
|
import { Command } from "commander";
|
|
14
14
|
import { fileURLToPath } from "url";
|
|
15
15
|
import { dirname, join, resolve } from "path";
|
|
@@ -3215,7 +3215,7 @@ async function runStatusAction(options) {
|
|
|
3215
3215
|
if (run === void 0) run = await getLatestRun(adapter);
|
|
3216
3216
|
}
|
|
3217
3217
|
if (run === void 0) {
|
|
3218
|
-
const { inspectProcessTree } = await import("../health-
|
|
3218
|
+
const { inspectProcessTree } = await import("../health-BQgWJ1Kf.js");
|
|
3219
3219
|
const substrateDirPath = join(projectRoot, ".substrate");
|
|
3220
3220
|
const processInfo = inspectProcessTree({
|
|
3221
3221
|
projectRoot,
|
|
@@ -4102,7 +4102,7 @@ function defaultSupervisorDeps() {
|
|
|
4102
4102
|
if (cached === null) {
|
|
4103
4103
|
const { AdapterRegistry: AR } = await import(
|
|
4104
4104
|
/* @vite-ignore */
|
|
4105
|
-
"../adapter-registry-
|
|
4105
|
+
"../adapter-registry-CHFfvph6.js"
|
|
4106
4106
|
);
|
|
4107
4107
|
cached = new AR();
|
|
4108
4108
|
await cached.discoverAndRegister();
|
|
@@ -4544,11 +4544,11 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
4544
4544
|
try {
|
|
4545
4545
|
const { createExperimenter } = await import(
|
|
4546
4546
|
/* @vite-ignore */
|
|
4547
|
-
"../experimenter-
|
|
4547
|
+
"../experimenter-BzWRPx13.js"
|
|
4548
4548
|
);
|
|
4549
4549
|
const { getLatestRun: getLatest } = await import(
|
|
4550
4550
|
/* @vite-ignore */
|
|
4551
|
-
"../decisions-
|
|
4551
|
+
"../decisions-B9fESQQz.js"
|
|
4552
4552
|
);
|
|
4553
4553
|
const expAdapter = createDatabaseAdapter({
|
|
4554
4554
|
backend: "auto",
|
|
@@ -4558,7 +4558,7 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
4558
4558
|
await initSchema(expAdapter);
|
|
4559
4559
|
const { runRunAction: runPipeline } = await import(
|
|
4560
4560
|
/* @vite-ignore */
|
|
4561
|
-
"../run-
|
|
4561
|
+
"../run-IuX7h-wp.js"
|
|
4562
4562
|
);
|
|
4563
4563
|
const runStoryFn = async (opts) => {
|
|
4564
4564
|
const exitCode = await runPipeline({
|
|
@@ -5088,7 +5088,7 @@ async function runMetricsAction(options) {
|
|
|
5088
5088
|
const routingConfigPath = join(dbDir, "routing.yml");
|
|
5089
5089
|
let routingConfig = null;
|
|
5090
5090
|
if (existsSync$1(routingConfigPath)) try {
|
|
5091
|
-
const { loadModelRoutingConfig } = await import("../routing-
|
|
5091
|
+
const { loadModelRoutingConfig } = await import("../routing-CLiOXDct.js");
|
|
5092
5092
|
routingConfig = loadModelRoutingConfig(routingConfigPath);
|
|
5093
5093
|
} catch {}
|
|
5094
5094
|
if (routingConfig === null) routingConfig = {
|
|
@@ -8248,8 +8248,8 @@ async function createProgram() {
|
|
|
8248
8248
|
/** Fire-and-forget startup version check (story 8.3, AC3/AC5) */
|
|
8249
8249
|
function checkForUpdatesInBackground(currentVersion) {
|
|
8250
8250
|
if (process.env.SUBSTRATE_NO_UPDATE_CHECK === "1") return;
|
|
8251
|
-
import("../upgrade-
|
|
8252
|
-
const { createVersionManager } = await import("../version-manager-impl-
|
|
8251
|
+
import("../upgrade-BPh0o_3L.js").then(async () => {
|
|
8252
|
+
const { createVersionManager } = await import("../version-manager-impl-BO2Gvy5R.js");
|
|
8253
8253
|
const vm = createVersionManager();
|
|
8254
8254
|
const result = await vm.checkForUpdates();
|
|
8255
8255
|
if (result.updateAvailable) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addTokenUsage, createDecision, createPipelineRun, createRequirement, getArtifactByTypeForRun, getArtifactsByRun, getDecisionsByCategory, getDecisionsByPhase, getDecisionsByPhaseForRun, getLatestRun, getPipelineRunById, getRunningPipelineRuns, getTokenUsageSummary, listRequirements, registerArtifact, updateDecision, updatePipelineRun, updatePipelineRunConfig, upsertDecision } from "./dist-
|
|
1
|
+
import { addTokenUsage, createDecision, createPipelineRun, createRequirement, getArtifactByTypeForRun, getArtifactsByRun, getDecisionsByCategory, getDecisionsByPhase, getDecisionsByPhaseForRun, getLatestRun, getPipelineRunById, getRunningPipelineRuns, getTokenUsageSummary, listRequirements, registerArtifact, updateDecision, updatePipelineRun, updatePipelineRunConfig, upsertDecision } from "./dist-DmhbWZ0f.js";
|
|
2
2
|
import "./decisions-C0pz9Clx.js";
|
|
3
3
|
|
|
4
4
|
export { getLatestRun };
|
|
@@ -516,12 +516,15 @@ const CHARS_PER_TOKEN$3 = 4;
|
|
|
516
516
|
/**
|
|
517
517
|
* Extract top-level field names from a Zod schema for prompt injection.
|
|
518
518
|
* Returns field names with type hints (e.g., "result: <string>", "files_modified: <list>").
|
|
519
|
+
* Exported for testing.
|
|
519
520
|
*/
|
|
520
521
|
function extractSchemaFields(schema) {
|
|
521
522
|
let current = schema;
|
|
522
523
|
let def = current?._def;
|
|
523
|
-
while (
|
|
524
|
-
current = def.schema;
|
|
524
|
+
while (true) {
|
|
525
|
+
if (def?.typeName === "ZodEffects" && def?.schema != null) current = def.schema;
|
|
526
|
+
else if (def?.type === "pipe" && def?.in != null) current = def.in;
|
|
527
|
+
else break;
|
|
525
528
|
def = current?._def;
|
|
526
529
|
}
|
|
527
530
|
const shape = current?.shape;
|
|
@@ -538,20 +541,26 @@ function extractSchemaFields(schema) {
|
|
|
538
541
|
*/
|
|
539
542
|
function resolveZodTypeName(fieldDef) {
|
|
540
543
|
const d = fieldDef;
|
|
541
|
-
const typeName = d?._def?.typeName;
|
|
542
|
-
if (typeName === "ZodOptional" || typeName === "ZodDefault") return d._def?.innerType != null ? resolveZodTypeName(d._def.innerType) : "<value>";
|
|
544
|
+
const typeName = d?._def?.typeName ?? d?._def?.type;
|
|
545
|
+
if (typeName === "ZodOptional" || typeName === "optional" || typeName === "ZodDefault" || typeName === "default") return d._def?.innerType != null ? resolveZodTypeName(d._def.innerType) : "<value>";
|
|
543
546
|
if (typeName === "ZodEffects") return d._def?.schema != null ? resolveZodTypeName(d._def.schema) : "<value>";
|
|
544
|
-
if (typeName === "
|
|
545
|
-
if (typeName === "
|
|
546
|
-
if (typeName === "
|
|
547
|
-
if (typeName === "
|
|
547
|
+
if (typeName === "transform") return "<value>";
|
|
548
|
+
if (typeName === "pipe") return d._def?.out != null ? resolveZodTypeName(d._def.out) : "<value>";
|
|
549
|
+
if (typeName === "ZodString" || typeName === "string") return "<string>";
|
|
550
|
+
if (typeName === "ZodNumber" || typeName === "number") return "<number>";
|
|
551
|
+
if (typeName === "ZodBoolean" || typeName === "boolean") return "<boolean>";
|
|
552
|
+
if (typeName === "ZodEnum" || typeName === "enum") {
|
|
548
553
|
const values = d._def?.values;
|
|
549
|
-
|
|
554
|
+
const entries = d._def?.entries;
|
|
555
|
+
if (values != null) return values.join(" | ");
|
|
556
|
+
if (entries != null) return Object.keys(entries).join(" | ");
|
|
557
|
+
return "<enum>";
|
|
550
558
|
}
|
|
551
|
-
if (typeName === "ZodArray") return "<list>";
|
|
552
|
-
if (typeName === "ZodObject") return "<object>";
|
|
559
|
+
if (typeName === "ZodArray" || typeName === "array") return "<list>";
|
|
560
|
+
if (typeName === "ZodObject" || typeName === "object") return "<object>";
|
|
553
561
|
return "<value>";
|
|
554
562
|
}
|
|
563
|
+
/** Exported for testing. */
|
|
555
564
|
function buildYamlOutputSuffix(outputSchema) {
|
|
556
565
|
const fields = outputSchema != null ? extractSchemaFields(outputSchema) : [];
|
|
557
566
|
const fieldLines = fields.length > 0 ? fields.map((f) => ` ${f}`).join("\n") : " result: success\n # ... additional fields as specified in the task above";
|
|
@@ -10442,4 +10451,4 @@ async function callLLM(params) {
|
|
|
10442
10451
|
|
|
10443
10452
|
//#endregion
|
|
10444
10453
|
export { ADVISORY_NOTES, AdapterRegistry, AdtError, BudgetConfigSchema, CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, Categorizer, ClaudeCodeAdapter, CodexCLIAdapter, ConfigError, ConfigIncompatibleFormatError, ConsumerAnalyzer, CostTrackerConfigSchema, DEFAULT_CONFIG, DEFAULT_GLOBAL_SETTINGS, DispatcherImpl, DoltClient, DoltNotInstalled, DoltQueryError, ESCALATION_DIAGNOSIS, EXPERIMENT_RESULT, EfficiencyScorer, GeminiCLIAdapter, GlobalSettingsSchema, IngestionServer, LogTurnAnalyzer, ModelRoutingConfigSchema, MonitorDatabaseImpl, OPERATIONAL_FINDING, PartialGlobalSettingsSchema, PartialProviderConfigSchema, ProviderPolicySchema, ProvidersSchema, Recommender, RoutingConfigError, RoutingRecommender, RoutingResolver, RoutingTelemetry, RoutingTokenAccumulator, RoutingTuner, STORY_METRICS, STORY_OUTCOME, SubstrateConfigSchema, TASK_TYPE_PHASE_MAP, TEST_EXPANSION_FINDING, TEST_PLAN, TelemetryConfigSchema, TelemetryNormalizer, TelemetryPipeline, TurnAnalyzer, VersionManagerImpl, addTokenUsage, aggregateTokenUsageForRun, aggregateTokenUsageForStory, buildAuditLogEntry, buildBranchName, buildModificationDirective, buildPRBody, buildWorktreePath, callLLM, checkDoltInstalled, compareRunMetrics, createAmendmentRun, createConfigSystem, createDatabaseAdapter as createDatabaseAdapter$1, createDecision, createDoltClient, createExperimenter, createPipelineRun, createRequirement, createVersionManager, detectInterfaceChanges, determineVerdict, getActiveDecisions, getAllCostEntriesFiltered, getArtifactByTypeForRun, getArtifactsByRun, getBaselineRunMetrics, getDecisionsByCategory, getDecisionsByPhase, getDecisionsByPhaseForRun, getLatestCompletedRun, getLatestRun, getModelTier, getPipelineRunById, getPlanningCostTotal, getRetryableEscalations, getRunMetrics, getRunningPipelineRuns, getSessionCostSummary, getSessionCostSummaryFiltered, getStoryMetricsForRun, getTokenUsageSummary, incrementRunRestarts, initSchema, initializeDolt, listRequirements, listRunMetrics, loadModelRoutingConfig, loadParentRunDecisions, registerArtifact, resolvePromptFile, supersedeDecision, tagRunAsBaseline, updateDecision, updatePipelineRun, updatePipelineRunConfig, upsertDecision, writeRunMetrics, writeStoryMetrics };
|
|
10445
|
-
//# sourceMappingURL=dist-
|
|
10454
|
+
//# sourceMappingURL=dist-DmhbWZ0f.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdtError } from "./dist-
|
|
1
|
+
import { AdtError } from "./dist-DmhbWZ0f.js";
|
|
2
2
|
|
|
3
3
|
//#region src/core/errors.ts
|
|
4
4
|
/** Error thrown when task configuration is invalid */
|
|
@@ -71,4 +71,4 @@ var TaskGraphIncompatibleFormatError = class extends AdtError {
|
|
|
71
71
|
|
|
72
72
|
//#endregion
|
|
73
73
|
export { BudgetExceededError, GitError, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphIncompatibleFormatError, WorkerError, WorkerNotFoundError };
|
|
74
|
-
//# sourceMappingURL=errors-
|
|
74
|
+
//# sourceMappingURL=errors-CrFWBvB4.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { buildAuditLogEntry, buildBranchName, buildModificationDirective, buildPRBody, buildWorktreePath, createExperimenter, determineVerdict, resolvePromptFile } from "./dist-
|
|
1
|
+
import { buildAuditLogEntry, buildBranchName, buildModificationDirective, buildPRBody, buildWorktreePath, createExperimenter, determineVerdict, resolvePromptFile } from "./dist-DmhbWZ0f.js";
|
|
2
2
|
|
|
3
3
|
export { createExperimenter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DEFAULT_STALL_THRESHOLD_SECONDS, getAllDescendantPids, getAutoHealthData, inspectProcessTree, isOrchestratorProcessLine, registerHealthCommand, runHealthAction } from "./health-
|
|
1
|
+
import { DEFAULT_STALL_THRESHOLD_SECONDS, getAllDescendantPids, getAutoHealthData, inspectProcessTree, isOrchestratorProcessLine, registerHealthCommand, runHealthAction } from "./health-Cw21tMNg.js";
|
|
2
2
|
import "./logger-KeHncl-f.js";
|
|
3
|
-
import "./dist-
|
|
3
|
+
import "./dist-DmhbWZ0f.js";
|
|
4
4
|
import "./decisions-C0pz9Clx.js";
|
|
5
5
|
|
|
6
6
|
export { inspectProcessTree };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createLogger } from "./logger-KeHncl-f.js";
|
|
2
|
-
import { DoltClient, DoltQueryError, createDatabaseAdapter$1 as createDatabaseAdapter, getLatestRun, getPipelineRunById, initSchema } from "./dist-
|
|
2
|
+
import { DoltClient, DoltQueryError, createDatabaseAdapter$1 as createDatabaseAdapter, getLatestRun, getPipelineRunById, initSchema } from "./dist-DmhbWZ0f.js";
|
|
3
3
|
import { createRequire } from "module";
|
|
4
4
|
import { dirname, join } from "path";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -1930,4 +1930,4 @@ function registerHealthCommand(program, _version = "0.0.0", projectRoot = proces
|
|
|
1930
1930
|
|
|
1931
1931
|
//#endregion
|
|
1932
1932
|
export { BMAD_BASELINE_TOKENS_FULL, DEFAULT_STALL_THRESHOLD_SECONDS, DoltMergeConflict, FileStateStore, STOP_AFTER_VALID_PHASES, STORY_KEY_PATTERN$1 as STORY_KEY_PATTERN, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, WorkGraphRepository, __commonJS, __require, __toESM, buildPipelineStatusOutput, createDatabaseAdapter$1 as createDatabaseAdapter, createStateStore, detectCycles, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, inspectProcessTree, isOrchestratorProcessLine, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, runHealthAction, validateStoryKey };
|
|
1933
|
-
//# sourceMappingURL=health-
|
|
1933
|
+
//# sourceMappingURL=health-Cw21tMNg.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { childLogger, createLogger, logger } from "./logger-KeHncl-f.js";
|
|
2
2
|
import { assertDefined, createEventBus, createTuiApp, deepClone, formatDuration, generateId, isPlainObject, isTuiCapable, printNonTtyWarning, sleep, withRetry } from "./helpers-CElYrONe.js";
|
|
3
|
-
import { AdapterRegistry, AdtError, ClaudeCodeAdapter, CodexCLIAdapter, ConfigError, ConfigIncompatibleFormatError, GeminiCLIAdapter } from "./dist-
|
|
3
|
+
import { AdapterRegistry, AdtError, ClaudeCodeAdapter, CodexCLIAdapter, ConfigError, ConfigIncompatibleFormatError, GeminiCLIAdapter } from "./dist-DmhbWZ0f.js";
|
|
4
4
|
import "./adapter-registry-DXLMTmfD.js";
|
|
5
|
-
import { BudgetExceededError, GitError, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphIncompatibleFormatError, WorkerError, WorkerNotFoundError } from "./errors-
|
|
5
|
+
import { BudgetExceededError, GitError, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphIncompatibleFormatError, WorkerError, WorkerNotFoundError } from "./errors-CrFWBvB4.js";
|
|
6
6
|
|
|
7
7
|
//#region src/core/di.ts
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModelRoutingConfigSchema, ProviderPolicySchema, RoutingConfigError, RoutingRecommender, RoutingResolver, RoutingTelemetry, RoutingTokenAccumulator, RoutingTuner, TASK_TYPE_PHASE_MAP, getModelTier, loadModelRoutingConfig } from "./dist-
|
|
1
|
+
import { ModelRoutingConfigSchema, ProviderPolicySchema, RoutingConfigError, RoutingRecommender, RoutingResolver, RoutingTelemetry, RoutingTokenAccumulator, RoutingTuner, TASK_TYPE_PHASE_MAP, getModelTier, loadModelRoutingConfig } from "./dist-DmhbWZ0f.js";
|
|
2
2
|
import "./routing-CcBOCuC9.js";
|
|
3
3
|
|
|
4
4
|
export { loadModelRoutingConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BMAD_BASELINE_TOKENS_FULL, DoltMergeConflict, FileStateStore, STOP_AFTER_VALID_PHASES, STORY_KEY_PATTERN, VALID_PHASES, WorkGraphRepository, __commonJS, __require, __toESM, buildPipelineStatusOutput, createDatabaseAdapter, detectCycles, formatOutput, formatPipelineSummary, formatTokenTelemetry, inspectProcessTree, parseDbTimestampAsUtc, resolveMainRepoRoot, validateStoryKey } from "./health-
|
|
1
|
+
import { BMAD_BASELINE_TOKENS_FULL, DoltMergeConflict, FileStateStore, STOP_AFTER_VALID_PHASES, STORY_KEY_PATTERN, VALID_PHASES, WorkGraphRepository, __commonJS, __require, __toESM, buildPipelineStatusOutput, createDatabaseAdapter, detectCycles, formatOutput, formatPipelineSummary, formatTokenTelemetry, inspectProcessTree, parseDbTimestampAsUtc, resolveMainRepoRoot, validateStoryKey } from "./health-Cw21tMNg.js";
|
|
2
2
|
import { createLogger } from "./logger-KeHncl-f.js";
|
|
3
3
|
import { TypedEventBusImpl, createEventBus, createTuiApp, isTuiCapable, printNonTtyWarning, sleep } from "./helpers-CElYrONe.js";
|
|
4
|
-
import { ADVISORY_NOTES, Categorizer, ConsumerAnalyzer, DEFAULT_GLOBAL_SETTINGS, DispatcherImpl, DoltClient, ESCALATION_DIAGNOSIS, EXPERIMENT_RESULT, EfficiencyScorer, IngestionServer, LogTurnAnalyzer, OPERATIONAL_FINDING, Recommender, RoutingRecommender, RoutingResolver, RoutingTelemetry, RoutingTokenAccumulator, RoutingTuner, STORY_METRICS, STORY_OUTCOME, SubstrateConfigSchema, TEST_EXPANSION_FINDING, TEST_PLAN, TelemetryNormalizer, TelemetryPipeline, TurnAnalyzer, addTokenUsage, aggregateTokenUsageForRun, aggregateTokenUsageForStory, callLLM, createConfigSystem, createDatabaseAdapter$1, createDecision, createPipelineRun, createRequirement, detectInterfaceChanges, getArtifactByTypeForRun, getArtifactsByRun, getDecisionsByCategory, getDecisionsByPhase, getDecisionsByPhaseForRun, getLatestRun, getPipelineRunById, getRunningPipelineRuns, getStoryMetricsForRun, getTokenUsageSummary, initSchema, listRequirements, loadModelRoutingConfig, registerArtifact, updatePipelineRun, updatePipelineRunConfig, upsertDecision, writeRunMetrics, writeStoryMetrics } from "./dist-
|
|
4
|
+
import { ADVISORY_NOTES, Categorizer, ConsumerAnalyzer, DEFAULT_GLOBAL_SETTINGS, DispatcherImpl, DoltClient, ESCALATION_DIAGNOSIS, EXPERIMENT_RESULT, EfficiencyScorer, IngestionServer, LogTurnAnalyzer, OPERATIONAL_FINDING, Recommender, RoutingRecommender, RoutingResolver, RoutingTelemetry, RoutingTokenAccumulator, RoutingTuner, STORY_METRICS, STORY_OUTCOME, SubstrateConfigSchema, TEST_EXPANSION_FINDING, TEST_PLAN, TelemetryNormalizer, TelemetryPipeline, TurnAnalyzer, addTokenUsage, aggregateTokenUsageForRun, aggregateTokenUsageForStory, callLLM, createConfigSystem, createDatabaseAdapter$1, createDecision, createPipelineRun, createRequirement, detectInterfaceChanges, getArtifactByTypeForRun, getArtifactsByRun, getDecisionsByCategory, getDecisionsByPhase, getDecisionsByPhaseForRun, getLatestRun, getPipelineRunById, getRunningPipelineRuns, getStoryMetricsForRun, getTokenUsageSummary, initSchema, listRequirements, loadModelRoutingConfig, registerArtifact, updatePipelineRun, updatePipelineRunConfig, upsertDecision, writeRunMetrics, writeStoryMetrics } from "./dist-DmhbWZ0f.js";
|
|
5
5
|
import { basename, dirname, extname, join } from "path";
|
|
6
6
|
import { access, readFile, readdir, stat } from "fs/promises";
|
|
7
7
|
import { EventEmitter } from "node:events";
|
|
@@ -40317,6 +40317,7 @@ const logger = createLogger("run-cmd");
|
|
|
40317
40317
|
* Resolve effective max review cycles by checking the adapter's default.
|
|
40318
40318
|
* Uses Math.max so the adapter's recommendation is a floor, not an override.
|
|
40319
40319
|
*/
|
|
40320
|
+
/** Exported for testing. */
|
|
40320
40321
|
function resolveMaxReviewCycles(cliValue, agentId, registry) {
|
|
40321
40322
|
if (agentId == null || registry == null) return cliValue;
|
|
40322
40323
|
const adapter = registry.get(agentId);
|
|
@@ -41818,5 +41819,5 @@ function registerRunCommand(program, _version = "0.0.0", projectRoot = process.c
|
|
|
41818
41819
|
}
|
|
41819
41820
|
|
|
41820
41821
|
//#endregion
|
|
41821
|
-
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, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runRunAction, runSolutioningPhase, validateStopAfterFromConflict };
|
|
41822
|
-
//# sourceMappingURL=run-
|
|
41822
|
+
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 };
|
|
41823
|
+
//# sourceMappingURL=run-CjaZyR8x.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./health-Cw21tMNg.js";
|
|
2
|
+
import "./logger-KeHncl-f.js";
|
|
3
|
+
import "./helpers-CElYrONe.js";
|
|
4
|
+
import "./dist-DmhbWZ0f.js";
|
|
5
|
+
import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, runRunAction } from "./run-CjaZyR8x.js";
|
|
6
|
+
import "./routing-CcBOCuC9.js";
|
|
7
|
+
import "./decisions-C0pz9Clx.js";
|
|
8
|
+
|
|
9
|
+
export { runRunAction };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dist-
|
|
1
|
+
import "./dist-DmhbWZ0f.js";
|
|
2
2
|
import "./version-manager-impl-BmOWu8ml.js";
|
|
3
|
-
import { isGlobalInstall, registerUpgradeCommand, runUpgradeCommand } from "./upgrade-
|
|
3
|
+
import { isGlobalInstall, registerUpgradeCommand, runUpgradeCommand } from "./upgrade-o__Q1Kdc.js";
|
|
4
4
|
|
|
5
5
|
export { isGlobalInstall, registerUpgradeCommand, runUpgradeCommand };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createVersionManager } from "./dist-
|
|
1
|
+
import { createVersionManager } from "./dist-DmhbWZ0f.js";
|
|
2
2
|
import { execSync, spawn } from "child_process";
|
|
3
3
|
import * as readline from "readline";
|
|
4
4
|
|
|
@@ -123,4 +123,4 @@ function registerUpgradeCommand(program) {
|
|
|
123
123
|
|
|
124
124
|
//#endregion
|
|
125
125
|
export { isGlobalInstall, registerUpgradeCommand, runUpgradeCommand };
|
|
126
|
-
//# sourceMappingURL=upgrade-
|
|
126
|
+
//# sourceMappingURL=upgrade-o__Q1Kdc.js.map
|
package/package.json
CHANGED
package/dist/run-DVwQH8Ea.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "./health-CkQncTB5.js";
|
|
2
|
-
import "./logger-KeHncl-f.js";
|
|
3
|
-
import "./helpers-CElYrONe.js";
|
|
4
|
-
import "./dist-CtFYOaeA.js";
|
|
5
|
-
import { normalizeGraphSummaryToStatus, registerRunCommand, runRunAction } from "./run-MGg8SzDA.js";
|
|
6
|
-
import "./routing-CcBOCuC9.js";
|
|
7
|
-
import "./decisions-C0pz9Clx.js";
|
|
8
|
-
|
|
9
|
-
export { runRunAction };
|