substrate-ai 0.7.1 → 0.8.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.
@@ -1,4 +1,4 @@
1
- import { DEFAULT_STALL_THRESHOLD_SECONDS, getAllDescendantPids, getAutoHealthData, inspectProcessTree, isOrchestratorProcessLine, registerHealthCommand, runHealthAction } from "./health-Dnx-FGva.js";
1
+ import { DEFAULT_STALL_THRESHOLD_SECONDS, getAllDescendantPids, getAutoHealthData, inspectProcessTree, isOrchestratorProcessLine, registerHealthCommand, runHealthAction } from "./health-C-VRJruD.js";
2
2
  import "./logger-D2fS2ccL.js";
3
3
  import "./decisions-DhAA2HG2.js";
4
4
 
package/dist/index.d.ts CHANGED
@@ -586,6 +586,26 @@ interface RoutingModelSelectedEvent {
586
586
  /** How the model was selected: 'phase', 'baseline', 'override' */
587
587
  source: string;
588
588
  }
589
+ /**
590
+ * Emitted when a pipeline phase starts during full pipeline execution.
591
+ */
592
+ interface PipelinePhaseStartEvent {
593
+ type: 'pipeline:phase-start';
594
+ /** ISO-8601 timestamp generated at emit time */
595
+ ts: string;
596
+ /** Phase name (e.g., 'analysis', 'implementation') */
597
+ phase: string;
598
+ }
599
+ /**
600
+ * Emitted when a pipeline phase completes during full pipeline execution.
601
+ */
602
+ interface PipelinePhaseCompleteEvent {
603
+ type: 'pipeline:phase-complete';
604
+ /** ISO-8601 timestamp generated at emit time */
605
+ ts: string;
606
+ /** Phase name (e.g., 'analysis', 'implementation') */
607
+ phase: string;
608
+ }
589
609
  /**
590
610
  * Discriminated union of all pipeline event types.
591
611
  *
@@ -598,7 +618,7 @@ interface RoutingModelSelectedEvent {
598
618
  * }
599
619
  * ```
600
620
  */
601
- type PipelineEvent = PipelineStartEvent | PipelineCompleteEvent | PipelinePreFlightFailureEvent | PipelineProfileStaleEvent | PipelineContractMismatchEvent | PipelineContractVerificationSummaryEvent | StoryPhaseEvent | StoryDoneEvent | StoryEscalationEvent | StoryWarnEvent | StoryLogEvent | PipelineHeartbeatEvent | StoryStallEvent | StoryZeroDiffEscalationEvent | StoryBuildVerificationFailedEvent | StoryBuildVerificationPassedEvent | StoryInterfaceChangeWarningEvent | StoryMetricsEvent | SupervisorPollEvent | SupervisorKillEvent | SupervisorRestartEvent | SupervisorAbortEvent | SupervisorSummaryEvent | SupervisorAnalysisCompleteEvent | SupervisorAnalysisErrorEvent | SupervisorExperimentStartEvent | SupervisorExperimentSkipEvent | SupervisorExperimentRecommendationsEvent | SupervisorExperimentCompleteEvent | SupervisorExperimentErrorEvent | RoutingModelSelectedEvent; //#endregion
621
+ type PipelineEvent = PipelineStartEvent | PipelineCompleteEvent | PipelinePreFlightFailureEvent | PipelineProfileStaleEvent | PipelineContractMismatchEvent | PipelineContractVerificationSummaryEvent | StoryPhaseEvent | StoryDoneEvent | StoryEscalationEvent | StoryWarnEvent | StoryLogEvent | PipelineHeartbeatEvent | StoryStallEvent | StoryZeroDiffEscalationEvent | StoryBuildVerificationFailedEvent | StoryBuildVerificationPassedEvent | StoryInterfaceChangeWarningEvent | StoryMetricsEvent | SupervisorPollEvent | SupervisorKillEvent | SupervisorRestartEvent | SupervisorAbortEvent | SupervisorSummaryEvent | SupervisorAnalysisCompleteEvent | SupervisorAnalysisErrorEvent | SupervisorExperimentStartEvent | SupervisorExperimentSkipEvent | SupervisorExperimentRecommendationsEvent | SupervisorExperimentCompleteEvent | SupervisorExperimentErrorEvent | RoutingModelSelectedEvent | PipelinePhaseStartEvent | PipelinePhaseCompleteEvent; //#endregion
602
622
  //#region src/core/errors.d.ts
603
623
 
604
624
  /**
@@ -1357,6 +1377,40 @@ interface OrchestratorEvents {
1357
1377
  reviewCycles: number;
1358
1378
  dispatches: number;
1359
1379
  };
1380
+ /** A pipeline phase has started (emitted by full pipeline path for NDJSON visibility) */
1381
+ 'pipeline:phase-start': {
1382
+ phase: string;
1383
+ ts: string;
1384
+ };
1385
+ /** A pipeline phase has completed (emitted by full pipeline path for NDJSON visibility) */
1386
+ 'pipeline:phase-complete': {
1387
+ phase: string;
1388
+ ts: string;
1389
+ };
1390
+ /**
1391
+ * Emitted when a dev-story timeout has partial work on disk and the
1392
+ * orchestrator captures it as a checkpoint for retry (Story 39-5).
1393
+ */
1394
+ 'story:checkpoint-saved': {
1395
+ /** Story key that timed out with partial work */
1396
+ storyKey: string;
1397
+ /** Number of files modified before the timeout */
1398
+ filesCount: number;
1399
+ /** Approximate byte length of the git diff captured */
1400
+ diffSizeBytes: number;
1401
+ };
1402
+ /**
1403
+ * Emitted when the orchestrator dispatches a checkpoint retry for a story
1404
+ * that timed out with partial work (Story 39-6).
1405
+ */
1406
+ 'story:checkpoint-retry': {
1407
+ /** Story key being retried */
1408
+ storyKey: string;
1409
+ /** Number of files modified in the partial work captured at checkpoint */
1410
+ filesCount: number;
1411
+ /** Retry attempt number (always 2 — first retry after initial timeout) */
1412
+ attempt: number;
1413
+ };
1360
1414
  }
1361
1415
 
1362
1416
  //#endregion
@@ -1,6 +1,6 @@
1
- import "./health-Dnx-FGva.js";
1
+ import "./health-C-VRJruD.js";
2
2
  import "./logger-D2fS2ccL.js";
3
- import { registerRunCommand, runRunAction } from "./run-BW8_vcTi.js";
3
+ import { registerRunCommand, runRunAction } from "./run-VMOBJZ7f.js";
4
4
  import "./config-migrator-CtGelIsG.js";
5
5
  import "./helpers-CpMs8VZX.js";
6
6
  import "./routing-BVrxrM6v.js";