substrate-ai 0.12.0 → 0.13.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/adapter-registry-DbLuI3IA.js +4 -0
- package/dist/cli/index.js +25 -15
- package/dist/{decisions-DQZW0h9X.js → decisions-CGNEausW.js} +1 -1
- package/dist/{dist-eNB_v7Iy.js → dist-CLvAwmT7.js} +39 -5
- package/dist/{errors-BvyMlvCX.js → errors-D1LU8CZ9.js} +2 -2
- package/dist/{experimenter-Dos3NsCg.js → experimenter-D0k2wT3I.js} +1 -1
- package/dist/{health-CiDi90gC.js → health-DswaC1q5.js} +2 -2
- package/dist/{health-BvYILeQQ.js → health-GEDGgGan.js} +2 -2
- package/dist/{helpers-DTp3VJ2-.js → helpers-CElYrONe.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{routing-HaYsjEIS.js → routing-B1aoIz7L.js} +1 -1
- package/dist/run-BV2zNwIC.js +9 -0
- package/dist/{run-CrIc5FY5.js → run-DDUeFC-I.js} +6192 -133
- package/dist/schema.sql +5 -0
- package/dist/{upgrade-B3ohl-EC.js → upgrade-DPdh5w4p.js} +2 -2
- package/dist/{upgrade-DvEXi3Fq.js → upgrade-DT0I_-1E.js} +2 -2
- package/dist/{version-manager-impl-CKv6I1S0.js → version-manager-impl-BHnUB2tl.js} +1 -1
- package/package.json +1 -1
- package/dist/adapter-registry-neBZrkr3.js +0 -4
- package/dist/run-Czm5qS9p.js +0 -9
package/dist/cli/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { FileStateStore, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, WorkGraphRepository, buildPipelineStatusOutput, createDatabaseAdapter, createStateStore, detectCycles, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot } from "../health-
|
|
2
|
+
import { FileStateStore, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, WorkGraphRepository, buildPipelineStatusOutput, createDatabaseAdapter, createStateStore, detectCycles, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot } from "../health-DswaC1q5.js";
|
|
3
3
|
import { createLogger } from "../logger-KeHncl-f.js";
|
|
4
|
-
import { createEventBus } from "../helpers-
|
|
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-
|
|
4
|
+
import { createEventBus } from "../helpers-CElYrONe.js";
|
|
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-CLvAwmT7.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, registerRunCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-
|
|
8
|
-
import "../errors-
|
|
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, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-DDUeFC-I.js";
|
|
8
|
+
import "../errors-D1LU8CZ9.js";
|
|
9
9
|
import "../routing-CcBOCuC9.js";
|
|
10
10
|
import "../decisions-C0pz9Clx.js";
|
|
11
11
|
import "../version-manager-impl-BmOWu8ml.js";
|
|
12
|
-
import { registerUpgradeCommand } from "../upgrade-
|
|
12
|
+
import { registerUpgradeCommand } from "../upgrade-DT0I_-1E.js";
|
|
13
13
|
import { Command } from "commander";
|
|
14
14
|
import { fileURLToPath } from "url";
|
|
15
15
|
import { dirname, join, resolve } from "path";
|
|
@@ -2108,7 +2108,11 @@ async function runInitAction(options) {
|
|
|
2108
2108
|
await scaffoldClaudeSettings(projectRoot);
|
|
2109
2109
|
await scaffoldClaudeCommands(projectRoot, outputFormat);
|
|
2110
2110
|
const gitignorePath = join(projectRoot, ".gitignore");
|
|
2111
|
-
const runtimeEntries = [
|
|
2111
|
+
const runtimeEntries = [
|
|
2112
|
+
".substrate/orchestrator.pid",
|
|
2113
|
+
".substrate/current-run-id",
|
|
2114
|
+
".substrate/scenarios/"
|
|
2115
|
+
];
|
|
2112
2116
|
try {
|
|
2113
2117
|
const existing = existsSync$1(gitignorePath) ? readFileSync$1(gitignorePath, "utf-8") : "";
|
|
2114
2118
|
const missing = runtimeEntries.filter((e) => !existing.includes(e));
|
|
@@ -3021,7 +3025,7 @@ async function runStatusAction(options) {
|
|
|
3021
3025
|
if (run === void 0) run = await getLatestRun(adapter);
|
|
3022
3026
|
}
|
|
3023
3027
|
if (run === void 0) {
|
|
3024
|
-
const { inspectProcessTree } = await import("../health-
|
|
3028
|
+
const { inspectProcessTree } = await import("../health-GEDGgGan.js");
|
|
3025
3029
|
const substrateDirPath = join(projectRoot, ".substrate");
|
|
3026
3030
|
const processInfo = inspectProcessTree({
|
|
3027
3031
|
projectRoot,
|
|
@@ -3906,7 +3910,7 @@ function defaultSupervisorDeps() {
|
|
|
3906
3910
|
if (cached === null) {
|
|
3907
3911
|
const { AdapterRegistry: AR } = await import(
|
|
3908
3912
|
/* @vite-ignore */
|
|
3909
|
-
"../adapter-registry-
|
|
3913
|
+
"../adapter-registry-DbLuI3IA.js"
|
|
3910
3914
|
);
|
|
3911
3915
|
cached = new AR();
|
|
3912
3916
|
await cached.discoverAndRegister();
|
|
@@ -4100,6 +4104,10 @@ async function handleStallRecovery(health, state, config, deps, io) {
|
|
|
4100
4104
|
const orchestratorIdle = health.process.child_pids.length === 0 && health.stories.active > 0;
|
|
4101
4105
|
const effectiveThreshold = inReviewPhase && !orchestratorIdle ? stallThreshold * 2 : stallThreshold;
|
|
4102
4106
|
if (health.staleness_seconds < effectiveThreshold) return null;
|
|
4107
|
+
if (state.runId !== void 0 && health.run_id !== null && health.run_id !== state.runId) {
|
|
4108
|
+
log("Supervisor skipping kill — active pipeline belongs to a different session");
|
|
4109
|
+
return null;
|
|
4110
|
+
}
|
|
4103
4111
|
const directPids = [...health.process.orchestrator_pid !== null ? [health.process.orchestrator_pid] : [], ...health.process.child_pids];
|
|
4104
4112
|
const descendantPids = getAllDescendants(directPids);
|
|
4105
4113
|
const directPidSet = new Set(directPids);
|
|
@@ -4337,11 +4345,11 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
4337
4345
|
try {
|
|
4338
4346
|
const { createExperimenter } = await import(
|
|
4339
4347
|
/* @vite-ignore */
|
|
4340
|
-
"../experimenter-
|
|
4348
|
+
"../experimenter-D0k2wT3I.js"
|
|
4341
4349
|
);
|
|
4342
4350
|
const { getLatestRun: getLatest } = await import(
|
|
4343
4351
|
/* @vite-ignore */
|
|
4344
|
-
"../decisions-
|
|
4352
|
+
"../decisions-CGNEausW.js"
|
|
4345
4353
|
);
|
|
4346
4354
|
const expAdapter = createDatabaseAdapter({
|
|
4347
4355
|
backend: "auto",
|
|
@@ -4351,7 +4359,7 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
4351
4359
|
await initSchema(expAdapter);
|
|
4352
4360
|
const { runRunAction: runPipeline } = await import(
|
|
4353
4361
|
/* @vite-ignore */
|
|
4354
|
-
"../run-
|
|
4362
|
+
"../run-BV2zNwIC.js"
|
|
4355
4363
|
);
|
|
4356
4364
|
const runStoryFn = async (opts) => {
|
|
4357
4365
|
const exitCode = await runPipeline({
|
|
@@ -4867,7 +4875,7 @@ async function runMetricsAction(options) {
|
|
|
4867
4875
|
const routingConfigPath = join(dbDir, "routing.yml");
|
|
4868
4876
|
let routingConfig = null;
|
|
4869
4877
|
if (existsSync$1(routingConfigPath)) try {
|
|
4870
|
-
const { loadModelRoutingConfig } = await import("../routing-
|
|
4878
|
+
const { loadModelRoutingConfig } = await import("../routing-B1aoIz7L.js");
|
|
4871
4879
|
routingConfig = loadModelRoutingConfig(routingConfigPath);
|
|
4872
4880
|
} catch {}
|
|
4873
4881
|
if (routingConfig === null) routingConfig = {
|
|
@@ -8609,14 +8617,16 @@ async function createProgram() {
|
|
|
8609
8617
|
registerExportCommand(program, version);
|
|
8610
8618
|
registerIngestEpicCommand(program);
|
|
8611
8619
|
registerEpicStatusCommand(program);
|
|
8620
|
+
registerScenariosCommand(program);
|
|
8621
|
+
registerFactoryCommand(program);
|
|
8612
8622
|
registerUpgradeCommand(program);
|
|
8613
8623
|
return program;
|
|
8614
8624
|
}
|
|
8615
8625
|
/** Fire-and-forget startup version check (story 8.3, AC3/AC5) */
|
|
8616
8626
|
function checkForUpdatesInBackground(currentVersion) {
|
|
8617
8627
|
if (process.env.SUBSTRATE_NO_UPDATE_CHECK === "1") return;
|
|
8618
|
-
import("../upgrade-
|
|
8619
|
-
const { createVersionManager } = await import("../version-manager-impl-
|
|
8628
|
+
import("../upgrade-DPdh5w4p.js").then(async () => {
|
|
8629
|
+
const { createVersionManager } = await import("../version-manager-impl-BHnUB2tl.js");
|
|
8620
8630
|
const vm = createVersionManager();
|
|
8621
8631
|
const result = await vm.checkForUpdates();
|
|
8622
8632
|
if (result.updateAvailable) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addTokenUsage, createDecision, createPipelineRun, createRequirement, getArtifactByTypeForRun, getArtifactsByRun, getDecisionsByCategory, getDecisionsByPhase, getDecisionsByPhaseForRun, getLatestRun, getPipelineRunById, getRunningPipelineRuns, getTokenUsageSummary, listRequirements, registerArtifact, updateDecision, updatePipelineRun, updatePipelineRunConfig, upsertDecision } from "./dist-
|
|
1
|
+
import { addTokenUsage, createDecision, createPipelineRun, createRequirement, getArtifactByTypeForRun, getArtifactsByRun, getDecisionsByCategory, getDecisionsByPhase, getDecisionsByPhaseForRun, getLatestRun, getPipelineRunById, getRunningPipelineRuns, getTokenUsageSummary, listRequirements, registerArtifact, updateDecision, updatePipelineRun, updatePipelineRunConfig, upsertDecision } from "./dist-CLvAwmT7.js";
|
|
2
2
|
import "./decisions-C0pz9Clx.js";
|
|
3
3
|
|
|
4
4
|
export { getLatestRun };
|
|
@@ -1871,11 +1871,19 @@ var InMemoryDatabaseAdapter = class {
|
|
|
1871
1871
|
|
|
1872
1872
|
//#endregion
|
|
1873
1873
|
//#region packages/core/dist/persistence/adapter.js
|
|
1874
|
-
function
|
|
1874
|
+
function isDoltBinaryAvailable() {
|
|
1875
1875
|
const result = spawnSync("dolt", ["version"], { stdio: "ignore" });
|
|
1876
|
-
|
|
1876
|
+
return result.error == null && result.status === 0;
|
|
1877
|
+
}
|
|
1878
|
+
function isDoltAvailable(basePath) {
|
|
1877
1879
|
const stateDoltDir = join$1(basePath, ".substrate", "state", ".dolt");
|
|
1878
|
-
|
|
1880
|
+
if (!existsSync(stateDoltDir)) return false;
|
|
1881
|
+
if (isDoltBinaryAvailable()) return true;
|
|
1882
|
+
console.warn("[persistence:adapter] Dolt directory found but dolt binary unavailable — retrying once...");
|
|
1883
|
+
spawnSync("sleep", ["1"], { stdio: "ignore" });
|
|
1884
|
+
if (isDoltBinaryAvailable()) return true;
|
|
1885
|
+
console.warn("[persistence:adapter] Dolt still unavailable after retry — falling back to InMemoryDatabaseAdapter. Telemetry and cost data will NOT persist.");
|
|
1886
|
+
return false;
|
|
1879
1887
|
}
|
|
1880
1888
|
function createDatabaseAdapter(config = { backend: "auto" }, doltClientFactory) {
|
|
1881
1889
|
const backend = config.backend ?? "auto";
|
|
@@ -10201,5 +10209,31 @@ function createExperimenter(config, deps) {
|
|
|
10201
10209
|
}
|
|
10202
10210
|
|
|
10203
10211
|
//#endregion
|
|
10204
|
-
|
|
10205
|
-
|
|
10212
|
+
//#region packages/core/dist/llm/client.js
|
|
10213
|
+
/**
|
|
10214
|
+
* Minimal LLM client API for the factory graph engine (story 42-10).
|
|
10215
|
+
*
|
|
10216
|
+
* `callLLM` is a thin interface boundary — it defines the parameter shape and
|
|
10217
|
+
* return type that the codergen handler depends on, keeping the handler
|
|
10218
|
+
* decoupled from any specific provider SDK. Actual provider routing is
|
|
10219
|
+
* handled at the application layer (e.g. the executor injects a real
|
|
10220
|
+
* implementation via dependency injection or monkey-patching for tests).
|
|
10221
|
+
*
|
|
10222
|
+
* Callers that need to make live LLM requests should either:
|
|
10223
|
+
* 1. Replace the exported function reference at startup, or
|
|
10224
|
+
* 2. Mock it with `vi.mock('@substrate-ai/core')` in unit tests.
|
|
10225
|
+
*/
|
|
10226
|
+
/**
|
|
10227
|
+
* Invoke an LLM with the given parameters and return the response text.
|
|
10228
|
+
*
|
|
10229
|
+
* This default export throws "not implemented" — it is intended to be replaced
|
|
10230
|
+
* by a real adapter at runtime or mocked in tests. The codergen handler
|
|
10231
|
+
* imports this symbol so that `vi.mock('@substrate-ai/core')` can intercept it.
|
|
10232
|
+
*/
|
|
10233
|
+
async function callLLM(params) {
|
|
10234
|
+
throw new Error(`callLLM: no provider adapter configured for provider="${params.provider}" model="${params.model}"`);
|
|
10235
|
+
}
|
|
10236
|
+
|
|
10237
|
+
//#endregion
|
|
10238
|
+
export { ADVISORY_NOTES, AdapterRegistry, AdtError, BudgetConfigSchema, CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, Categorizer, ClaudeCodeAdapter, CodexCLIAdapter, ConfigError, ConfigIncompatibleFormatError, ConsumerAnalyzer, CostTrackerConfigSchema, DEFAULT_CONFIG, DEFAULT_GLOBAL_SETTINGS, DispatcherImpl, DoltClient, DoltNotInstalled, DoltQueryError, ESCALATION_DIAGNOSIS, EXPERIMENT_RESULT, EfficiencyScorer, GeminiCLIAdapter, GlobalSettingsSchema, IngestionServer, LogTurnAnalyzer, ModelRoutingConfigSchema, MonitorDatabaseImpl, OPERATIONAL_FINDING, PartialGlobalSettingsSchema, PartialProviderConfigSchema, ProviderPolicySchema, ProvidersSchema, Recommender, RoutingConfigError, RoutingRecommender, RoutingResolver, RoutingTelemetry, RoutingTokenAccumulator, RoutingTuner, STORY_METRICS, STORY_OUTCOME, SubstrateConfigSchema, TASK_TYPE_PHASE_MAP, TEST_EXPANSION_FINDING, TEST_PLAN, TelemetryConfigSchema, TelemetryNormalizer, TelemetryPipeline, TurnAnalyzer, VersionManagerImpl, addTokenUsage, aggregateTokenUsageForRun, aggregateTokenUsageForStory, buildAuditLogEntry, buildBranchName, buildModificationDirective, buildPRBody, buildWorktreePath, callLLM, checkDoltInstalled, compareRunMetrics, createAmendmentRun, createConfigSystem, createDatabaseAdapter as createDatabaseAdapter$1, createDecision, createDoltClient, createExperimenter, createPipelineRun, createRequirement, createVersionManager, detectInterfaceChanges, determineVerdict, getActiveDecisions, getAllCostEntriesFiltered, getArtifactByTypeForRun, getArtifactsByRun, getBaselineRunMetrics, getDecisionsByCategory, getDecisionsByPhase, getDecisionsByPhaseForRun, getLatestCompletedRun, getLatestRun, getModelTier, getPipelineRunById, getPlanningCostTotal, getRetryableEscalations, getRunMetrics, getRunningPipelineRuns, getSessionCostSummary, getSessionCostSummaryFiltered, getStoryMetricsForRun, getTokenUsageSummary, incrementRunRestarts, initSchema, initializeDolt, listRequirements, listRunMetrics, loadModelRoutingConfig, loadParentRunDecisions, registerArtifact, resolvePromptFile, supersedeDecision, tagRunAsBaseline, updateDecision, updatePipelineRun, updatePipelineRunConfig, upsertDecision, writeRunMetrics, writeStoryMetrics };
|
|
10239
|
+
//# sourceMappingURL=dist-CLvAwmT7.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdtError } from "./dist-
|
|
1
|
+
import { AdtError } from "./dist-CLvAwmT7.js";
|
|
2
2
|
|
|
3
3
|
//#region src/core/errors.ts
|
|
4
4
|
/** Error thrown when task configuration is invalid */
|
|
@@ -71,4 +71,4 @@ var TaskGraphIncompatibleFormatError = class extends AdtError {
|
|
|
71
71
|
|
|
72
72
|
//#endregion
|
|
73
73
|
export { BudgetExceededError, GitError, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphIncompatibleFormatError, WorkerError, WorkerNotFoundError };
|
|
74
|
-
//# sourceMappingURL=errors-
|
|
74
|
+
//# sourceMappingURL=errors-D1LU8CZ9.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { buildAuditLogEntry, buildBranchName, buildModificationDirective, buildPRBody, buildWorktreePath, createExperimenter, determineVerdict, resolvePromptFile } from "./dist-
|
|
1
|
+
import { buildAuditLogEntry, buildBranchName, buildModificationDirective, buildPRBody, buildWorktreePath, createExperimenter, determineVerdict, resolvePromptFile } from "./dist-CLvAwmT7.js";
|
|
2
2
|
|
|
3
3
|
export { createExperimenter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createLogger } from "./logger-KeHncl-f.js";
|
|
2
|
-
import { DoltClient, DoltQueryError, createDatabaseAdapter$1 as createDatabaseAdapter, getLatestRun, getPipelineRunById, initSchema } from "./dist-
|
|
2
|
+
import { DoltClient, DoltQueryError, createDatabaseAdapter$1 as createDatabaseAdapter, getLatestRun, getPipelineRunById, initSchema } from "./dist-CLvAwmT7.js";
|
|
3
3
|
import { createRequire } from "module";
|
|
4
4
|
import { dirname, join } from "path";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -1930,4 +1930,4 @@ function registerHealthCommand(program, _version = "0.0.0", projectRoot = proces
|
|
|
1930
1930
|
|
|
1931
1931
|
//#endregion
|
|
1932
1932
|
export { BMAD_BASELINE_TOKENS_FULL, DEFAULT_STALL_THRESHOLD_SECONDS, DoltMergeConflict, FileStateStore, STOP_AFTER_VALID_PHASES, STORY_KEY_PATTERN$1 as STORY_KEY_PATTERN, SUBSTRATE_OWNED_SETTINGS_KEYS, VALID_PHASES, WorkGraphRepository, __commonJS, __require, __toESM, buildPipelineStatusOutput, createDatabaseAdapter$1 as createDatabaseAdapter, createStateStore, detectCycles, findPackageRoot, formatOutput, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, inspectProcessTree, isOrchestratorProcessLine, parseDbTimestampAsUtc, registerHealthCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, runHealthAction, validateStoryKey };
|
|
1933
|
-
//# sourceMappingURL=health-
|
|
1933
|
+
//# sourceMappingURL=health-DswaC1q5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
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-DswaC1q5.js";
|
|
2
2
|
import "./logger-KeHncl-f.js";
|
|
3
|
-
import "./dist-
|
|
3
|
+
import "./dist-CLvAwmT7.js";
|
|
4
4
|
import "./decisions-C0pz9Clx.js";
|
|
5
5
|
|
|
6
6
|
export { inspectProcessTree };
|
|
@@ -826,5 +826,5 @@ async function withRetry(fn, maxRetries = 3, baseDelayMs = 100) {
|
|
|
826
826
|
}
|
|
827
827
|
|
|
828
828
|
//#endregion
|
|
829
|
-
export { assertDefined, createEventBus, createTuiApp, deepClone, formatDuration, generateId, isPlainObject, isTuiCapable, printNonTtyWarning, sleep, withRetry };
|
|
830
|
-
//# sourceMappingURL=helpers-
|
|
829
|
+
export { TypedEventBusImpl$1 as TypedEventBusImpl, assertDefined, createEventBus, createTuiApp, deepClone, formatDuration, generateId, isPlainObject, isTuiCapable, printNonTtyWarning, sleep, withRetry };
|
|
830
|
+
//# sourceMappingURL=helpers-CElYrONe.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { childLogger, createLogger, logger } from "./logger-KeHncl-f.js";
|
|
2
|
-
import { assertDefined, createEventBus, createTuiApp, deepClone, formatDuration, generateId, isPlainObject, isTuiCapable, printNonTtyWarning, sleep, withRetry } from "./helpers-
|
|
3
|
-
import { AdapterRegistry, AdtError, ClaudeCodeAdapter, CodexCLIAdapter, ConfigError, ConfigIncompatibleFormatError, GeminiCLIAdapter } from "./dist-
|
|
2
|
+
import { assertDefined, createEventBus, createTuiApp, deepClone, formatDuration, generateId, isPlainObject, isTuiCapable, printNonTtyWarning, sleep, withRetry } from "./helpers-CElYrONe.js";
|
|
3
|
+
import { AdapterRegistry, AdtError, ClaudeCodeAdapter, CodexCLIAdapter, ConfigError, ConfigIncompatibleFormatError, GeminiCLIAdapter } from "./dist-CLvAwmT7.js";
|
|
4
4
|
import "./adapter-registry-DXLMTmfD.js";
|
|
5
|
-
import { BudgetExceededError, GitError, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphIncompatibleFormatError, WorkerError, WorkerNotFoundError } from "./errors-
|
|
5
|
+
import { BudgetExceededError, GitError, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphIncompatibleFormatError, WorkerError, WorkerNotFoundError } from "./errors-D1LU8CZ9.js";
|
|
6
6
|
|
|
7
7
|
//#region src/core/di.ts
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModelRoutingConfigSchema, ProviderPolicySchema, RoutingConfigError, RoutingRecommender, RoutingResolver, RoutingTelemetry, RoutingTokenAccumulator, RoutingTuner, TASK_TYPE_PHASE_MAP, getModelTier, loadModelRoutingConfig } from "./dist-
|
|
1
|
+
import { ModelRoutingConfigSchema, ProviderPolicySchema, RoutingConfigError, RoutingRecommender, RoutingResolver, RoutingTelemetry, RoutingTokenAccumulator, RoutingTuner, TASK_TYPE_PHASE_MAP, getModelTier, loadModelRoutingConfig } from "./dist-CLvAwmT7.js";
|
|
2
2
|
import "./routing-CcBOCuC9.js";
|
|
3
3
|
|
|
4
4
|
export { loadModelRoutingConfig };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./health-DswaC1q5.js";
|
|
2
|
+
import "./logger-KeHncl-f.js";
|
|
3
|
+
import "./helpers-CElYrONe.js";
|
|
4
|
+
import "./dist-CLvAwmT7.js";
|
|
5
|
+
import { normalizeGraphSummaryToStatus, registerRunCommand, runRunAction } from "./run-DDUeFC-I.js";
|
|
6
|
+
import "./routing-CcBOCuC9.js";
|
|
7
|
+
import "./decisions-C0pz9Clx.js";
|
|
8
|
+
|
|
9
|
+
export { runRunAction };
|