substrate-ai 0.20.123 → 0.20.125
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 +18 -9
- package/dist/{health-DSg6dtya.js → health-B4NhX--T.js} +2 -2
- package/dist/{health-LT-nkfen.js → health-J620Q66g.js} +2 -2
- package/dist/{interactive-prompt-B4sDQpFI.js → interactive-prompt-BE5CKfDq.js} +2 -2
- package/dist/{manifest-read-BE70EnPy.js → manifest-read-CDjNmdVW.js} +5 -2
- package/dist/modules/interactive-prompt/index.js +2 -2
- package/dist/{run-0JiAo0rp.js → run-DKrGXAOH.js} +47 -8
- package/dist/{run-CB-oiwic.js → run-IWXFDemI.js} +4 -4
- package/dist/src/modules/recovery-engine/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { FileKvStore, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, buildPipelineStatusOutput, createDatabaseAdapter, createDoltOperatorReader, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, inspectProcessTree, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion } from "../health-
|
|
2
|
+
import { FileKvStore, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, buildPipelineStatusOutput, createDatabaseAdapter, createDoltOperatorReader, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, inspectProcessTree, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion } from "../health-B4NhX--T.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, InMemoryDatabaseAdapter, IngestionServer, MonitorDatabaseImpl, OPERATIONAL_FINDING, PartialGlobalSettingsSchema, PartialProviderConfigSchema, ProvidersSchema, RoutingRecommender, STORY_METRICS, TelemetryConfigSchema, addTokenUsage, aggregateTokenUsageForRun, checkDoltInstalled, compareRunMetrics, createAmendmentRun, createConfigSystem, createDecision, createPipelineRun, createStderrLogger, getActiveDecisions, getAllCostEntriesFiltered, getBaselineRunMetrics, getDecisionsByCategory, getDecisionsByPhaseForRun, getLatestCompletedRun, getLatestRun, getPipelineRunById, getPlanningCostTotal, getRetryableEscalations, getRunMetrics, getRunningPipelineRuns, getSessionCostSummary, getSessionCostSummaryFiltered, getStoryMetricsForRun, getTokenUsageSummary, incrementRunRestarts, initSchema, initWorkGraphSchema, initializeDolt, listRunMetrics, loadParentRunDecisions, supersedeDecision, swallowDebug, tagRunAsBaseline, updatePipelineRun } from "../dist-Bc0-6VcX.js";
|
|
6
|
-
import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GLOBSTAR, GitClient, GrammarLoader, Minimatch, Minipass, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createGitWorktreeManager, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, escape, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runProbeAuthor, runSolutioningPhase, unescape, validateStopAfterFromConflict } from "../run-
|
|
6
|
+
import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GLOBSTAR, GitClient, GrammarLoader, Minimatch, Minipass, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createGitWorktreeManager, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, escape, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runProbeAuthor, runSolutioningPhase, unescape, validateStopAfterFromConflict } from "../run-DKrGXAOH.js";
|
|
7
7
|
import "../adapter-registry-DIcrxjH8.js";
|
|
8
|
-
import { RunManifest, SupervisorLock, ZERO_FINDINGS_BY_AUTHOR, ZERO_FINDING_COUNTS, ZERO_PROBE_AUTHOR_METRICS, aggregateProbeAuthorMetrics, parseRuntimeProbes, readCurrentRunId, resolveMainRepoRoot, resolveRunManifest, rollupFindingCounts, rollupFindingsByAuthor, rollupProbeAuthorByClass, rollupProbeAuthorMetrics, runAcTraceabilityCheck } from "../manifest-read-
|
|
8
|
+
import { RunManifest, SupervisorLock, ZERO_FINDINGS_BY_AUTHOR, ZERO_FINDING_COUNTS, ZERO_PROBE_AUTHOR_METRICS, aggregateProbeAuthorMetrics, parseRuntimeProbes, readCurrentRunId, resolveMainRepoRoot, resolveRunManifest, rollupFindingCounts, rollupFindingsByAuthor, rollupProbeAuthorByClass, rollupProbeAuthorMetrics, runAcTraceabilityCheck } from "../manifest-read-CDjNmdVW.js";
|
|
9
9
|
import "../errors-CwQM_6Yk.js";
|
|
10
10
|
import "../routing-DFxoKHDt.js";
|
|
11
11
|
import { WorkGraphRepository } from "../work-graph-repository-DZyJv5pV.js";
|
|
12
12
|
import "../decisions-CzSIEeGP.js";
|
|
13
13
|
import "../decision-router-DblHY8se.js";
|
|
14
|
-
import "../interactive-prompt-
|
|
14
|
+
import "../interactive-prompt-BE5CKfDq.js";
|
|
15
15
|
import "../recovery-engine-BKGBeBnW.js";
|
|
16
16
|
import "../version-manager-impl-qFBiO4Eh.js";
|
|
17
17
|
import { registerUpgradeCommand } from "../upgrade-BlBDCOfS.js";
|
|
@@ -6890,7 +6890,7 @@ async function runStatusAction(options) {
|
|
|
6890
6890
|
logger$15.debug({ err }, "Work graph query failed, continuing without work graph data");
|
|
6891
6891
|
}
|
|
6892
6892
|
if (run === void 0) {
|
|
6893
|
-
const { inspectProcessTree: inspectProcessTree$1 } = await import("../health-
|
|
6893
|
+
const { inspectProcessTree: inspectProcessTree$1 } = await import("../health-J620Q66g.js");
|
|
6894
6894
|
const substrateDirPath = join(projectRoot, ".substrate");
|
|
6895
6895
|
const processInfo = inspectProcessTree$1({
|
|
6896
6896
|
projectRoot,
|
|
@@ -8419,7 +8419,7 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
8419
8419
|
await initSchema(expAdapter);
|
|
8420
8420
|
const { runRunAction: runPipeline } = await import(
|
|
8421
8421
|
/* @vite-ignore */
|
|
8422
|
-
"../run-
|
|
8422
|
+
"../run-IWXFDemI.js"
|
|
8423
8423
|
);
|
|
8424
8424
|
const runStoryFn = async (opts) => {
|
|
8425
8425
|
const exitCode = await runPipeline({
|
|
@@ -12141,6 +12141,15 @@ function registerFactoryCommand$1(program) {
|
|
|
12141
12141
|
//#endregion
|
|
12142
12142
|
//#region src/cli/commands/reconcile-from-disk.ts
|
|
12143
12143
|
const logger$2 = createLogger("reconcile-from-disk");
|
|
12144
|
+
/**
|
|
12145
|
+
* The reconcile write (obs_2026-05-26_031). Keyed on `story_key` ALONE —
|
|
12146
|
+
* `wg_stories` has no `run_id` column (cols: story_key, epic, title, status,
|
|
12147
|
+
* spec_path, created_at, updated_at, completed_at), so the prior `AND run_id=?`
|
|
12148
|
+
* predicate threw DoltQueryError and the recovery write never landed, leaving
|
|
12149
|
+
* the Path-A primitive non-functional. Exported so the schema/SQL guard test
|
|
12150
|
+
* runs the EXACT statement against a real wg_stories (no drift). Params: [now, now, story_key].
|
|
12151
|
+
*/
|
|
12152
|
+
const RECONCILE_WG_STORIES_UPDATE = "UPDATE wg_stories SET status='complete', updated_at=?, completed_at=? WHERE story_key=?";
|
|
12144
12153
|
/** 64KB tail window for capturing subprocess stderr/stdout (Story 66-5 pattern). */
|
|
12145
12154
|
const MAX_OUTPUT_BYTES = 64 * 1024;
|
|
12146
12155
|
/**
|
|
@@ -12469,10 +12478,10 @@ async function runReconcileFromDiskAction(options) {
|
|
|
12469
12478
|
await initSchema(adapter);
|
|
12470
12479
|
const now = new Date().toISOString();
|
|
12471
12480
|
await adapter.transaction(async (tx) => {
|
|
12472
|
-
for (const record of reconcilableRecords) await tx.query(
|
|
12481
|
+
for (const record of reconcilableRecords) await tx.query(RECONCILE_WG_STORIES_UPDATE, [
|
|
12482
|
+
now,
|
|
12473
12483
|
now,
|
|
12474
|
-
record.storyKey
|
|
12475
|
-
resolvedRunId
|
|
12484
|
+
record.storyKey
|
|
12476
12485
|
]);
|
|
12477
12486
|
});
|
|
12478
12487
|
logger$2.info({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createLogger } from "./logger-KeHncl-f.js";
|
|
2
2
|
import { DoltClient, DoltQueryError, createDatabaseAdapter$1 as createDatabaseAdapter, getLatestRun, getPipelineRunById, initSchema } from "./dist-Bc0-6VcX.js";
|
|
3
|
-
import { resolveMainRepoRoot, resolveRunManifest } from "./manifest-read-
|
|
3
|
+
import { resolveMainRepoRoot, resolveRunManifest } from "./manifest-read-CDjNmdVW.js";
|
|
4
4
|
import { createRequire } from "module";
|
|
5
5
|
import { dirname, join } from "path";
|
|
6
6
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -1000,4 +1000,4 @@ function registerHealthCommand(program, _version = "0.0.0", projectRoot = proces
|
|
|
1000
1000
|
|
|
1001
1001
|
//#endregion
|
|
1002
1002
|
export { BMAD_BASELINE_TOKENS_FULL, DEFAULT_STALL_THRESHOLD_SECONDS, FileKvStore, STOP_AFTER_VALID_PHASES, STORY_KEY_PATTERN, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, __commonJS, __require, __toESM, buildPipelineStatusOutput, createDatabaseAdapter$1 as createDatabaseAdapter, createDoltOperatorReader, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, inspectProcessTree, isOrchestratorProcessLine, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, runHealthAction, validateStoryKey };
|
|
1003
|
-
//# sourceMappingURL=health-
|
|
1003
|
+
//# sourceMappingURL=health-B4NhX--T.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
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-B4NhX--T.js";
|
|
2
2
|
import "./logger-KeHncl-f.js";
|
|
3
3
|
import "./dist-Bc0-6VcX.js";
|
|
4
|
-
import "./manifest-read-
|
|
4
|
+
import "./manifest-read-CDjNmdVW.js";
|
|
5
5
|
import "./work-graph-repository-DZyJv5pV.js";
|
|
6
6
|
import "./decisions-CzSIEeGP.js";
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createLogger } from "./logger-KeHncl-f.js";
|
|
2
|
-
import { readCurrentRunId, resolveMainRepoRoot } from "./manifest-read-
|
|
2
|
+
import { readCurrentRunId, resolveMainRepoRoot } from "./manifest-read-CDjNmdVW.js";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
5
5
|
import * as readline from "node:readline";
|
|
@@ -180,4 +180,4 @@ async function runInteractivePrompt(decisionContext) {
|
|
|
180
180
|
|
|
181
181
|
//#endregion
|
|
182
182
|
export { runInteractivePrompt };
|
|
183
|
-
//# sourceMappingURL=interactive-prompt-
|
|
183
|
+
//# sourceMappingURL=interactive-prompt-BE5CKfDq.js.map
|
|
@@ -4657,7 +4657,10 @@ const PerStoryStateSchema = z.object({
|
|
|
4657
4657
|
]).optional(),
|
|
4658
4658
|
verification_re_run: z.boolean().optional(),
|
|
4659
4659
|
escalation_reason: z.string().optional(),
|
|
4660
|
-
commit_sha: z.string().optional()
|
|
4660
|
+
commit_sha: z.string().optional(),
|
|
4661
|
+
story_file: z.string().optional(),
|
|
4662
|
+
story_file_input_path: z.string().optional(),
|
|
4663
|
+
story_file_sha256: z.string().optional()
|
|
4661
4664
|
});
|
|
4662
4665
|
|
|
4663
4666
|
//#endregion
|
|
@@ -5847,4 +5850,4 @@ async function resolveRunManifest(dbRoot, runId) {
|
|
|
5847
5850
|
|
|
5848
5851
|
//#endregion
|
|
5849
5852
|
export { FindingsInjector, RunManifest, RuntimeProbeListSchema, SupervisorLock, ZERO_FINDINGS_BY_AUTHOR, ZERO_FINDING_COUNTS, ZERO_PROBE_AUTHOR_METRICS, aggregateProbeAuthorMetrics, applyConfigToGraph, createDefaultVerificationPipeline, createGraphOrchestrator, createSdlcCodeReviewHandler, createSdlcCreateStoryHandler, createSdlcDevStoryHandler, createSdlcPhaseHandler, detectsEventDrivenAC, detectsStateIntegratingAC, extractTargetFilesFromStoryContent, parseRuntimeProbes, readCurrentRunId, renderFindings, resolveGraphPath, resolveMainRepoRoot, resolveRunManifest, rollupFindingCounts, rollupFindingsByAuthor, rollupProbeAuthorByClass, rollupProbeAuthorMetrics, runAcTraceabilityCheck, runStaleVerificationRecovery };
|
|
5850
|
-
//# sourceMappingURL=manifest-read-
|
|
5853
|
+
//# sourceMappingURL=manifest-read-CDjNmdVW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../logger-KeHncl-f.js";
|
|
2
2
|
import "../../dist-Bc0-6VcX.js";
|
|
3
|
-
import "../../manifest-read-
|
|
4
|
-
import { runInteractivePrompt } from "../../interactive-prompt-
|
|
3
|
+
import "../../manifest-read-CDjNmdVW.js";
|
|
4
|
+
import { runInteractivePrompt } from "../../interactive-prompt-BE5CKfDq.js";
|
|
5
5
|
|
|
6
6
|
export { runInteractivePrompt };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BMAD_BASELINE_TOKENS_FULL, FileKvStore, STOP_AFTER_VALID_PHASES, STORY_KEY_PATTERN, VALID_PHASES, __commonJS, __require, __toESM, buildPipelineStatusOutput, createDatabaseAdapter, formatOutput, formatPipelineSummary, formatTokenTelemetry, inspectProcessTree, parseDbTimestampAsUtc, validateStoryKey } from "./health-
|
|
1
|
+
import { BMAD_BASELINE_TOKENS_FULL, FileKvStore, STOP_AFTER_VALID_PHASES, STORY_KEY_PATTERN, VALID_PHASES, __commonJS, __require, __toESM, buildPipelineStatusOutput, createDatabaseAdapter, formatOutput, formatPipelineSummary, formatTokenTelemetry, inspectProcessTree, parseDbTimestampAsUtc, validateStoryKey } from "./health-B4NhX--T.js";
|
|
2
2
|
import { createLogger } from "./logger-KeHncl-f.js";
|
|
3
3
|
import { TypedEventBusImpl, createEventBus, createTuiApp, isTuiCapable, printNonTtyWarning, sleep } from "./helpers-CElYrONe.js";
|
|
4
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, classifyVersionGap, createConfigSystem, createDatabaseAdapter$1, createDecision, createPipelineRun, createRequirement, createStderrLogger, detectInterfaceChanges, getArtifactByTypeForRun, getArtifactsByRun, getDecisionsByCategory, getDecisionsByPhase, getDecisionsByPhaseForRun, getLatestRun, getPipelineRunById, getRunMetrics, getRunningPipelineRuns, getStoryMetricsForRun, getTokenUsageSummary, initSchema, listRequirements, loadModelRoutingConfig, registerArtifact, swallowDebug, updatePipelineRun, updatePipelineRunConfig, upsertDecision, writeRunMetrics, writeStoryMetrics } from "./dist-Bc0-6VcX.js";
|
|
5
|
-
import { FindingsInjector, RunManifest, RuntimeProbeListSchema, applyConfigToGraph, createDefaultVerificationPipeline, createGraphOrchestrator, createSdlcCodeReviewHandler, createSdlcCreateStoryHandler, createSdlcDevStoryHandler, createSdlcPhaseHandler, detectsEventDrivenAC, detectsStateIntegratingAC, extractTargetFilesFromStoryContent, parseRuntimeProbes, renderFindings, resolveGraphPath, resolveMainRepoRoot, runAcTraceabilityCheck, runStaleVerificationRecovery } from "./manifest-read-
|
|
5
|
+
import { FindingsInjector, RunManifest, RuntimeProbeListSchema, applyConfigToGraph, createDefaultVerificationPipeline, createGraphOrchestrator, createSdlcCodeReviewHandler, createSdlcCreateStoryHandler, createSdlcDevStoryHandler, createSdlcPhaseHandler, detectsEventDrivenAC, detectsStateIntegratingAC, extractTargetFilesFromStoryContent, parseRuntimeProbes, renderFindings, resolveGraphPath, resolveMainRepoRoot, runAcTraceabilityCheck, runStaleVerificationRecovery } from "./manifest-read-CDjNmdVW.js";
|
|
6
6
|
import { WorkGraphRepository, detectCycles } from "./work-graph-repository-DZyJv5pV.js";
|
|
7
7
|
import { deriveExitCode, routeDecision } from "./decision-router-DblHY8se.js";
|
|
8
|
-
import { runInteractivePrompt } from "./interactive-prompt-
|
|
8
|
+
import { runInteractivePrompt } from "./interactive-prompt-BE5CKfDq.js";
|
|
9
9
|
import { runRecoveryEngine } from "./recovery-engine-BKGBeBnW.js";
|
|
10
10
|
import { basename, dirname, extname, join } from "path";
|
|
11
11
|
import { access, readFile, readdir, stat } from "fs/promises";
|
|
@@ -13074,6 +13074,34 @@ function sanitizeStoryTitle(raw) {
|
|
|
13074
13074
|
return cleaned.length > 120 ? `${cleaned.slice(0, 117)}...` : cleaned;
|
|
13075
13075
|
}
|
|
13076
13076
|
/**
|
|
13077
|
+
* obs_2026-05-26_027: capture the reconstruction phase-input. Reads the story
|
|
13078
|
+
* file the producing phase consumed, copies it to a durable sidecar under the
|
|
13079
|
+
* run manifest's directory (`inputs/<run-id>/<story-key>.md`), and returns the
|
|
13080
|
+
* per_story_state patch fields (path + sidecar-relative location + SHA-256).
|
|
13081
|
+
*
|
|
13082
|
+
* Called at auto-commit time — the last point where `storyFilePath` still
|
|
13083
|
+
* resolves before the per-story worktree is torn down — so the input survives
|
|
13084
|
+
* for the Story 77-8 harness even when the consumer repo does not git-track its
|
|
13085
|
+
* story artifacts (the strata-5-2 gap obs_027 documents). Throws if the story
|
|
13086
|
+
* file cannot be read; the caller treats capture as best-effort and continues.
|
|
13087
|
+
* Exported for unit testing (the orchestrator call site is deep in the
|
|
13088
|
+
* worktree/merge path).
|
|
13089
|
+
*/
|
|
13090
|
+
function captureReconstructionInput(storyFilePath, storyKey, runManifestBaseDir, runId, effectiveProjectRoot) {
|
|
13091
|
+
const inputContent = readFileSync(storyFilePath, "utf-8");
|
|
13092
|
+
const relInputPath = join$1("inputs", runId, `${storyKey}.md`);
|
|
13093
|
+
const absInputPath = join$1(runManifestBaseDir, relInputPath);
|
|
13094
|
+
mkdirSync(dirname$1(absInputPath), { recursive: true });
|
|
13095
|
+
writeFileSync(absInputPath, inputContent);
|
|
13096
|
+
const root = effectiveProjectRoot ?? "";
|
|
13097
|
+
const story_file = root.length > 0 && storyFilePath.startsWith(root) ? storyFilePath.slice(root.length).replace(/^[/\\]+/, "") : basename$1(storyFilePath);
|
|
13098
|
+
return {
|
|
13099
|
+
story_file,
|
|
13100
|
+
story_file_input_path: relInputPath,
|
|
13101
|
+
story_file_sha256: createHash("sha256").update(inputContent).digest("hex")
|
|
13102
|
+
};
|
|
13103
|
+
}
|
|
13104
|
+
/**
|
|
13077
13105
|
* Compute the word overlap ratio between two titles.
|
|
13078
13106
|
* Returns a value between 0 and 1, where 1 means all words in the smaller set
|
|
13079
13107
|
* are present in the larger set.
|
|
@@ -16162,10 +16190,21 @@ function createImplementationOrchestrator(deps) {
|
|
|
16162
16190
|
sha: commitResult.sha,
|
|
16163
16191
|
fileCount: commitResult.filesStaged.length
|
|
16164
16192
|
}, "substrate auto-committed dev-story output before merge-to-main");
|
|
16165
|
-
if (runManifest !== null && commitResult.sha)
|
|
16166
|
-
|
|
16167
|
-
|
|
16168
|
-
|
|
16193
|
+
if (runManifest !== null && commitResult.sha) {
|
|
16194
|
+
const statePatch = { commit_sha: commitResult.sha };
|
|
16195
|
+
if (storyFilePath !== void 0) try {
|
|
16196
|
+
Object.assign(statePatch, captureReconstructionInput(storyFilePath, storyKey, runManifest.baseDir, runManifest.runId, effectiveProjectRoot));
|
|
16197
|
+
} catch (inputErr) {
|
|
16198
|
+
logger$27.warn({
|
|
16199
|
+
err: inputErr,
|
|
16200
|
+
storyKey
|
|
16201
|
+
}, "reconstruction phase-input capture failed — pipeline continues (commit_sha still recorded)");
|
|
16202
|
+
}
|
|
16203
|
+
runManifest.patchStoryState(storyKey, statePatch).catch((err) => logger$27.warn({
|
|
16204
|
+
err,
|
|
16205
|
+
storyKey
|
|
16206
|
+
}, "patchStoryState(commit_sha/phase-input) failed — pipeline continues"));
|
|
16207
|
+
}
|
|
16169
16208
|
}
|
|
16170
16209
|
try {
|
|
16171
16210
|
const branchSha = execSync(`git rev-parse ${branchName}`, {
|
|
@@ -47263,4 +47302,4 @@ function registerRunCommand(program, version = "0.0.0", projectRoot = process.cw
|
|
|
47263
47302
|
|
|
47264
47303
|
//#endregion
|
|
47265
47304
|
export { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GLOBSTAR$1 as GLOBSTAR, GitClient, GrammarLoader, Minimatch$1 as Minimatch, Minipass, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createGitWorktreeManager, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, escape$1 as escape, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, normalizeGraphSummaryToStatus, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveMaxReviewCycles, resolveProbeAuthorStateIntegrating, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runProbeAuthor, runRunAction, runSolutioningPhase, unescape$1 as unescape, validateStopAfterFromConflict, wireNdjsonEmitter };
|
|
47266
|
-
//# sourceMappingURL=run-
|
|
47305
|
+
//# sourceMappingURL=run-DKrGXAOH.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./health-
|
|
1
|
+
import "./health-B4NhX--T.js";
|
|
2
2
|
import "./logger-KeHncl-f.js";
|
|
3
3
|
import "./helpers-CElYrONe.js";
|
|
4
4
|
import "./dist-Bc0-6VcX.js";
|
|
5
|
-
import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, resolveProbeAuthorStateIntegrating, runRunAction, wireNdjsonEmitter } from "./run-
|
|
6
|
-
import "./manifest-read-
|
|
5
|
+
import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, resolveProbeAuthorStateIntegrating, runRunAction, wireNdjsonEmitter } from "./run-DKrGXAOH.js";
|
|
6
|
+
import "./manifest-read-CDjNmdVW.js";
|
|
7
7
|
import "./routing-DFxoKHDt.js";
|
|
8
8
|
import "./work-graph-repository-DZyJv5pV.js";
|
|
9
9
|
import "./decisions-CzSIEeGP.js";
|
|
10
10
|
import "./decision-router-DblHY8se.js";
|
|
11
|
-
import "./interactive-prompt-
|
|
11
|
+
import "./interactive-prompt-BE5CKfDq.js";
|
|
12
12
|
import "./recovery-engine-BKGBeBnW.js";
|
|
13
13
|
|
|
14
14
|
export { runRunAction };
|
|
@@ -580,6 +580,9 @@ declare const PerStoryStateSchema: z.ZodObject<{
|
|
|
580
580
|
verification_re_run: z.ZodOptional<z.ZodBoolean>;
|
|
581
581
|
escalation_reason: z.ZodOptional<z.ZodString>;
|
|
582
582
|
commit_sha: z.ZodOptional<z.ZodString>;
|
|
583
|
+
story_file: z.ZodOptional<z.ZodString>;
|
|
584
|
+
story_file_input_path: z.ZodOptional<z.ZodString>;
|
|
585
|
+
story_file_sha256: z.ZodOptional<z.ZodString>;
|
|
583
586
|
}, z.core.$strip>;
|
|
584
587
|
type PerStoryState = z.infer<typeof PerStoryStateSchema>;
|
|
585
588
|
|