substrate-ai 0.18.1 → 0.19.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
@@ -4,7 +4,7 @@ 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, EXPERIMENT_RESULT, 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, listRequirements, listRunMetrics, loadParentRunDecisions, supersedeDecision, tagRunAsBaseline, updatePipelineRun } from "../dist-Bm0qSZer.js";
6
6
  import "../adapter-registry-DXLMTmfD.js";
7
- import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-gXtnH8lO.js";
7
+ import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-Byzy10gG.js";
8
8
  import "../errors-BSpu7pIv.js";
9
9
  import "../routing-CcBOCuC9.js";
10
10
  import "../decisions-C0pz9Clx.js";
@@ -1135,6 +1135,17 @@ const TokenCeilingsSchema = z.object({
1135
1135
  "test-plan": z.number().int().positive("test-plan token ceiling must be a positive integer").optional(),
1136
1136
  "test-expansion": z.number().int().positive("test-expansion token ceiling must be a positive integer").optional()
1137
1137
  });
1138
+ /**
1139
+ * Per-task-type dispatch timeout overrides (milliseconds).
1140
+ * Keys match task types in DEFAULT_TIMEOUTS. Values override defaults.
1141
+ */
1142
+ const DispatchTimeoutsSchema = z.object({
1143
+ "create-story": z.number().int().positive().optional(),
1144
+ "dev-story": z.number().int().positive().optional(),
1145
+ "code-review": z.number().int().positive().optional(),
1146
+ "minor-fixes": z.number().int().positive().optional(),
1147
+ "major-rework": z.number().int().positive().optional()
1148
+ });
1138
1149
  const SubstrateConfigSchema = z.object({
1139
1150
  config_format_version: z.enum(["1"]),
1140
1151
  task_graph_version: z.enum(["1"]).optional(),
@@ -1143,6 +1154,7 @@ const SubstrateConfigSchema = z.object({
1143
1154
  cost_tracker: CostTrackerConfigSchema.optional(),
1144
1155
  budget: BudgetConfigSchema.optional(),
1145
1156
  token_ceilings: TokenCeilingsSchema.optional(),
1157
+ dispatch_timeouts: DispatchTimeoutsSchema.optional(),
1146
1158
  telemetry: TelemetryConfigSchema.optional()
1147
1159
  }).strict();
1148
1160
  const PartialSubstrateConfigSchema = z.object({
@@ -1157,6 +1169,7 @@ const PartialSubstrateConfigSchema = z.object({
1157
1169
  cost_tracker: CostTrackerConfigSchema.partial().optional(),
1158
1170
  budget: BudgetConfigSchema.partial().optional(),
1159
1171
  token_ceilings: TokenCeilingsSchema.optional(),
1172
+ dispatch_timeouts: DispatchTimeoutsSchema.optional(),
1160
1173
  telemetry: TelemetryConfigSchema.partial().optional()
1161
1174
  }).strict();
1162
1175
 
@@ -4529,7 +4542,7 @@ async function runSupervisorAction(options, deps = {}) {
4529
4542
  await initSchema(expAdapter);
4530
4543
  const { runRunAction: runPipeline } = await import(
4531
4544
  /* @vite-ignore */
4532
- "../run-m7RCkpmx.js"
4545
+ "../run-CzEyqOom.js"
4533
4546
  );
4534
4547
  const runStoryFn = async (opts) => {
4535
4548
  const exitCode = await runPipeline({
package/dist/index.d.ts CHANGED
@@ -1417,6 +1417,7 @@ declare function withRetry<T>(fn: () => Promise<T>, maxRetries?: number, baseDel
1417
1417
  //#endregion
1418
1418
  //#region src/modules/config/config-schema.d.ts
1419
1419
  //# sourceMappingURL=helpers.d.ts.map
1420
+
1420
1421
  declare const SubstrateConfigSchema: z.ZodObject<{
1421
1422
  config_format_version: z.ZodEnum<{
1422
1423
  1: "1";
@@ -1514,6 +1515,13 @@ declare const SubstrateConfigSchema: z.ZodObject<{
1514
1515
  'test-plan': z.ZodOptional<z.ZodNumber>;
1515
1516
  'test-expansion': z.ZodOptional<z.ZodNumber>;
1516
1517
  }, z.core.$strip>>;
1518
+ dispatch_timeouts: z.ZodOptional<z.ZodObject<{
1519
+ 'create-story': z.ZodOptional<z.ZodNumber>;
1520
+ 'dev-story': z.ZodOptional<z.ZodNumber>;
1521
+ 'code-review': z.ZodOptional<z.ZodNumber>;
1522
+ 'minor-fixes': z.ZodOptional<z.ZodNumber>;
1523
+ 'major-rework': z.ZodOptional<z.ZodNumber>;
1524
+ }, z.core.$strip>>;
1517
1525
  telemetry: z.ZodOptional<z.ZodObject<{
1518
1526
  enabled: z.ZodDefault<z.ZodBoolean>;
1519
1527
  port: z.ZodDefault<z.ZodNumber>;