substrate-ai 0.21.11 → 0.21.12

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
@@ -5,7 +5,7 @@ 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, createGitWorktreeManager, 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-BZGqn-XQ.js";
6
6
  import "../adapter-registry-DXLMTmfD.js";
7
7
  import { ACCEPTANCE_CONTRACT_PROFILE_PATH, JOURNEY_DEFERRALS_PATH, JOURNEY_REGISTRY_PATH, RunManifest, SupervisorLock, ZERO_FINDINGS_BY_AUTHOR, ZERO_FINDING_COUNTS, ZERO_PROBE_AUTHOR_METRICS, aggregateProbeAuthorMetrics, clearGateDemotion, computePrecision, computeRecall, demoteGate, loadAcceptanceContractFromTrustedTree, loadJourneyRegistryFromFile, loadJourneyRegistryFromTrustedTree, parseAcceptanceContract, parseJourneyDeferrals, parseJourneyRegistry, parseRuntimeProbes, readAcceptanceMetrics, readCurrentRunId, readGateState, recordCanary, recordOverride, resolveMainRepoRoot, resolveRunManifest, rollupFindingCounts, rollupFindingsByAuthor, rollupProbeAuthorByClass, rollupProbeAuthorMetrics, runAcTraceabilityCheck, runCanary } from "../manifest-read-BGzmmY01.js";
8
- import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GLOBSTAR, GitClient, GrammarLoader, Minimatch, Minipass, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, escape, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runProbeAuthor, runSolutioningPhase, unescape, validateStopAfterFromConflict } from "../run-CoZ5kK6c.js";
8
+ import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GLOBSTAR, GitClient, GrammarLoader, Minimatch, Minipass, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, escape, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runProbeAuthor, runSolutioningPhase, unescape, validateStopAfterFromConflict } from "../run-6iVsrLQb.js";
9
9
  import "../errors-xSeGw6pf.js";
10
10
  import { runAcceptanceJudge } from "../acceptance-judge-eIZZha1C.js";
11
11
  import "../routing-DZT5PN3N.js";
@@ -8665,7 +8665,7 @@ async function runSupervisorAction(options, deps = {}) {
8665
8665
  await initSchema(expAdapter);
8666
8666
  const { runRunAction: runPipeline } = await import(
8667
8667
  /* @vite-ignore */
8668
- "../run-G4HOt6-R.js"
8668
+ "../run-BShpywVI.js"
8669
8669
  );
8670
8670
  const runStoryFn = async (opts) => {
8671
8671
  const exitCode = await runPipeline({
@@ -13685,7 +13685,7 @@ function createImplementationOrchestrator(deps) {
13685
13685
  const hash = createHash("sha256").update(resolve$1(root)).digest("hex").slice(0, 8);
13686
13686
  return join$1(homedir(), ".substrate", "acceptance", `${basename$1(root)}-${hash}`, config.pipelineRunId ?? "adhoc");
13687
13687
  }
13688
- async function runAcceptanceStage(storyKey, worktreeDir) {
13688
+ async function runAcceptanceStage(storyKey, worktreeDir, committedChangedFiles) {
13689
13689
  const outcomes = [];
13690
13690
  const mode = resolveAcceptanceMode();
13691
13691
  if (mode === "off" || projectRoot === void 0) return outcomes;
@@ -13719,11 +13719,12 @@ function createImplementationOrchestrator(deps) {
13719
13719
  const journeyDir = join$1(acceptanceArtifactsBase(), storyKey, journeyId);
13720
13720
  const artifacts = [];
13721
13721
  {
13722
- const changed = new Set(checkGitDiffFiles(worktreeDir).map((f$1) => f$1.replace(/\\/g, "/")));
13722
+ const changed = new Set(committedChangedFiles.map((f$1) => f$1.replace(/\\/g, "/")));
13723
13723
  const renderTokens = new Set();
13724
13724
  for (const surface of journey.surfaces) {
13725
+ if (surface === "web") continue;
13725
13726
  const def = contract.surfaces[surface];
13726
- if (def !== void 0) for (const tok of def.render.trim().split(/\s+/)) renderTokens.add(tok.replace(/\\/g, "/"));
13727
+ if (def !== void 0 && def.render !== void 0) for (const tok of def.render.trim().split(/\s+/)) renderTokens.add(tok.replace(/\\/g, "/"));
13727
13728
  }
13728
13729
  const gamedTargets = [...changed].filter((f$1) => renderTokens.has(f$1) || [...renderTokens].some((t) => t.endsWith("/" + f$1) || f$1.endsWith("/" + t)));
13729
13730
  if (gamedTargets.length > 0) {
@@ -16296,7 +16297,7 @@ function createImplementationOrchestrator(deps) {
16296
16297
  }
16297
16298
  let acceptanceOutcomes = [];
16298
16299
  try {
16299
- acceptanceOutcomes = await runAcceptanceStage(storyKey, effectiveProjectRoot ?? projectRoot ?? process.cwd());
16300
+ acceptanceOutcomes = await runAcceptanceStage(storyKey, effectiveProjectRoot ?? projectRoot ?? process.cwd(), recaptureChangedFiles(effectiveProjectRoot ?? projectRoot ?? process.cwd()));
16300
16301
  } catch (stageErr) {
16301
16302
  logger$26.warn({
16302
16303
  storyKey,
@@ -48357,4 +48358,4 @@ function registerRunCommand(program, version = "0.0.0", projectRoot = process.cw
48357
48358
 
48358
48359
  //#endregion
48359
48360
  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, 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 };
48360
- //# sourceMappingURL=run-CoZ5kK6c.js.map
48361
+ //# sourceMappingURL=run-6iVsrLQb.js.map
@@ -3,7 +3,7 @@ import "./logger-KeHncl-f.js";
3
3
  import "./helpers-CElYrONe.js";
4
4
  import "./dist-BZGqn-XQ.js";
5
5
  import "./manifest-read-BGzmmY01.js";
6
- import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, resolveProbeAuthorStateIntegrating, runRunAction, wireNdjsonEmitter } from "./run-CoZ5kK6c.js";
6
+ import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, resolveProbeAuthorStateIntegrating, runRunAction, wireNdjsonEmitter } from "./run-6iVsrLQb.js";
7
7
  import "./acceptance-judge-eIZZha1C.js";
8
8
  import "./routing-DZT5PN3N.js";
9
9
  import "./work-graph-repository-4cKsf8Lf.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "substrate-ai",
3
- "version": "0.21.11",
3
+ "version": "0.21.12",
4
4
  "description": "Substrate — multi-agent orchestration daemon for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "MIT",