substrate-ai 0.19.31 → 0.19.32

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
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { FileStateStore, RunManifest, SUBSTRATE_OWNED_SETTINGS_KEYS, SupervisorLock, VALID_PHASES, WorkGraphRepository, buildPipelineStatusOutput, createDatabaseAdapter, createStateStore, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, inspectProcessTree, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, resolveRunManifest } from "../health-DUgvybiN.js";
2
+ import { FileStateStore, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, WorkGraphRepository, buildPipelineStatusOutput, createDatabaseAdapter, createStateStore, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, inspectProcessTree, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, resolveRunManifest } from "../health-D--wDx-U.js";
3
3
  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-DYcDRyoS.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-CFmp4-qj.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-0MJeYpdb.js";
8
8
  import "../errors-wOhMgaAU.js";
9
9
  import "../routing-CcBOCuC9.js";
10
10
  import "../decisions-C0pz9Clx.js";
@@ -30,6 +30,7 @@ import { homedir } from "os";
30
30
  import { createRequire } from "node:module";
31
31
  import { fileURLToPath as fileURLToPath$1 } from "node:url";
32
32
  import { createInterface } from "node:readline";
33
+ import { RunManifest, SupervisorLock } from "@substrate-ai/sdlc";
33
34
  import { randomUUID as randomUUID$1 } from "crypto";
34
35
  import { createInterface as createInterface$1 } from "readline";
35
36
 
@@ -1158,7 +1159,8 @@ const SubstrateConfigSchema = z.object({
1158
1159
  dispatch_timeouts: DispatchTimeoutsSchema.optional(),
1159
1160
  telemetry: TelemetryConfigSchema.optional(),
1160
1161
  default_agent: z.string().optional(),
1161
- supervisor_poll_interval_seconds: z.number().int().positive().optional()
1162
+ supervisor_poll_interval_seconds: z.number().int().positive().optional(),
1163
+ retry_budget: z.number().int().positive().optional()
1162
1164
  }).strict();
1163
1165
  const PartialSubstrateConfigSchema = z.object({
1164
1166
  config_format_version: z.enum(["1"]).optional(),
@@ -1175,7 +1177,8 @@ const PartialSubstrateConfigSchema = z.object({
1175
1177
  dispatch_timeouts: DispatchTimeoutsSchema.optional(),
1176
1178
  telemetry: TelemetryConfigSchema.partial().optional(),
1177
1179
  default_agent: z.string().optional(),
1178
- supervisor_poll_interval_seconds: z.number().int().positive().optional()
1180
+ supervisor_poll_interval_seconds: z.number().int().positive().optional(),
1181
+ retry_budget: z.number().int().positive().optional()
1179
1182
  }).strict();
1180
1183
 
1181
1184
  //#endregion
@@ -3305,7 +3308,7 @@ async function runStatusAction(options) {
3305
3308
  logger$12.debug({ err }, "Work graph query failed, continuing without work graph data");
3306
3309
  }
3307
3310
  if (run === void 0) {
3308
- const { inspectProcessTree: inspectProcessTree$1 } = await import("../health-C96NMCJX.js");
3311
+ const { inspectProcessTree: inspectProcessTree$1 } = await import("../health-BmmmZgp3.js");
3309
3312
  const substrateDirPath = join(projectRoot, ".substrate");
3310
3313
  const processInfo = inspectProcessTree$1({
3311
3314
  projectRoot,
@@ -4831,7 +4834,7 @@ async function runSupervisorAction(options, deps = {}) {
4831
4834
  await initSchema(expAdapter);
4832
4835
  const { runRunAction: runPipeline } = await import(
4833
4836
  /* @vite-ignore */
4834
- "../run-Bb51aPNw.js"
4837
+ "../run-BH03S2JH.js"
4835
4838
  );
4836
4839
  const runStoryFn = async (opts) => {
4837
4840
  const exitCode = await runPipeline({
@@ -1,4 +1,4 @@
1
- import { DEFAULT_STALL_THRESHOLD_SECONDS, getAllDescendantPids, getAutoHealthData, inspectProcessTree, isOrchestratorProcessLine, registerHealthCommand, runHealthAction } from "./health-DUgvybiN.js";
1
+ import { DEFAULT_STALL_THRESHOLD_SECONDS, getAllDescendantPids, getAutoHealthData, inspectProcessTree, isOrchestratorProcessLine, registerHealthCommand, runHealthAction } from "./health-D--wDx-U.js";
2
2
  import "./logger-KeHncl-f.js";
3
3
  import "./dist-DYcDRyoS.js";
4
4
  import "./decisions-C0pz9Clx.js";