substrate-ai 0.5.9 → 0.5.10
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { AdapterTelemetryPersistence, AppError, DEFAULT_CONFIG, DEFAULT_ROUTING_POLICY, DoltClient, DoltNotInstalled, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, FileStateStore, GitClient, GrammarLoader, IngestionServer, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SUBSTRATE_OWNED_SETTINGS_KEYS, SymbolParser, VALID_PHASES, WorkGraphRepository, buildPipelineStatusOutput, checkDoltInstalled, createConfigSystem, createContextCompiler, createDatabaseAdapter, createDispatcher, createDoltClient, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStateStore, createStopAfterGate, createTelemetryAdvisor, detectCycles, findPackageRoot, formatOutput, formatPhaseCompletionSummary, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, initSchema, initializeDolt, isSyncAdapter, parseDbTimestampAsUtc, registerHealthCommand, registerRunCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-
|
|
2
|
+
import { AdapterTelemetryPersistence, AppError, DEFAULT_CONFIG, DEFAULT_ROUTING_POLICY, DoltClient, DoltNotInstalled, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, FileStateStore, GitClient, GrammarLoader, IngestionServer, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SUBSTRATE_OWNED_SETTINGS_KEYS, SymbolParser, VALID_PHASES, WorkGraphRepository, buildPipelineStatusOutput, checkDoltInstalled, createConfigSystem, createContextCompiler, createDatabaseAdapter, createDispatcher, createDoltClient, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStateStore, createStopAfterGate, createTelemetryAdvisor, detectCycles, findPackageRoot, formatOutput, formatPhaseCompletionSummary, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, initSchema, initializeDolt, isSyncAdapter, parseDbTimestampAsUtc, registerHealthCommand, registerRunCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-BWmiveTZ.js";
|
|
3
3
|
import { createLogger } from "../logger-D2fS2ccL.js";
|
|
4
4
|
import { AdapterRegistry } from "../adapter-registry-D2zdMwVu.js";
|
|
5
5
|
import { CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, PartialSubstrateConfigSchema } from "../config-migrator-DtZW1maj.js";
|
|
@@ -2969,7 +2969,7 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
2969
2969
|
await initSchema(expAdapter);
|
|
2970
2970
|
const { runRunAction: runPipeline } = await import(
|
|
2971
2971
|
/* @vite-ignore */
|
|
2972
|
-
"../run-
|
|
2972
|
+
"../run-DZGdLF4h.js"
|
|
2973
2973
|
);
|
|
2974
2974
|
const runStoryFn = async (opts) => {
|
|
2975
2975
|
const exitCode = await runPipeline({
|
|
@@ -12920,8 +12920,6 @@ var IngestionServer = class {
|
|
|
12920
12920
|
_flushIntervalMs;
|
|
12921
12921
|
_buffer;
|
|
12922
12922
|
_pendingBatches = new Set();
|
|
12923
|
-
/** Map from storyKey → DispatchContext, tracking active dispatches. */
|
|
12924
|
-
_activeDispatches = new Map();
|
|
12925
12923
|
constructor(options = {}) {
|
|
12926
12924
|
this._port = options.port ?? 4318;
|
|
12927
12925
|
this._batchSize = options.batchSize ?? 100;
|
|
@@ -12939,32 +12937,6 @@ var IngestionServer = class {
|
|
|
12939
12937
|
}
|
|
12940
12938
|
this._initPipeline(pipeline);
|
|
12941
12939
|
}
|
|
12942
|
-
/**
|
|
12943
|
-
* Register an active dispatch context for a story.
|
|
12944
|
-
* All OTLP payloads received while this context is active will be stamped
|
|
12945
|
-
* with the dispatch context so per-phase analysis is possible.
|
|
12946
|
-
*
|
|
12947
|
-
* @param storyKey - The story key being dispatched
|
|
12948
|
-
* @param context - The dispatch context to associate with this story
|
|
12949
|
-
*/
|
|
12950
|
-
setActiveDispatch(storyKey, context) {
|
|
12951
|
-
this._activeDispatches.set(storyKey, context);
|
|
12952
|
-
logger$8.debug({
|
|
12953
|
-
storyKey,
|
|
12954
|
-
taskType: context.taskType,
|
|
12955
|
-
phase: context.phase
|
|
12956
|
-
}, "IngestionServer: active dispatch registered");
|
|
12957
|
-
}
|
|
12958
|
-
/**
|
|
12959
|
-
* Clear the active dispatch context for a story.
|
|
12960
|
-
* Should be called after the dispatch completes (success or failure).
|
|
12961
|
-
*
|
|
12962
|
-
* @param storyKey - The story key whose dispatch context should be cleared
|
|
12963
|
-
*/
|
|
12964
|
-
clearActiveDispatch(storyKey) {
|
|
12965
|
-
this._activeDispatches.delete(storyKey);
|
|
12966
|
-
logger$8.debug({ storyKey }, "IngestionServer: active dispatch cleared");
|
|
12967
|
-
}
|
|
12968
12940
|
_initPipeline(pipeline) {
|
|
12969
12941
|
this._buffer = new BatchBuffer({
|
|
12970
12942
|
batchSize: this._batchSize,
|
|
@@ -13115,13 +13087,11 @@ var IngestionServer = class {
|
|
|
13115
13087
|
const body = JSON.parse(bodyStr);
|
|
13116
13088
|
const source = detectSource(body);
|
|
13117
13089
|
const { storyKey, taskType, dispatchId } = this._extractSubstrateAttributes(body);
|
|
13118
|
-
|
|
13119
|
-
if (taskType !== void 0 && dispatchId !== void 0) dispatchContext = {
|
|
13090
|
+
const dispatchContext = taskType !== void 0 && dispatchId !== void 0 ? {
|
|
13120
13091
|
taskType,
|
|
13121
13092
|
phase: taskType,
|
|
13122
13093
|
dispatchId
|
|
13123
|
-
};
|
|
13124
|
-
else if (storyKey !== void 0) dispatchContext = this._activeDispatches.get(storyKey);
|
|
13094
|
+
} : void 0;
|
|
13125
13095
|
const payload = {
|
|
13126
13096
|
body,
|
|
13127
13097
|
source,
|
|
@@ -22705,4 +22675,4 @@ function registerRunCommand(program, _version = "0.0.0", projectRoot = process.c
|
|
|
22705
22675
|
|
|
22706
22676
|
//#endregion
|
|
22707
22677
|
export { AdapterTelemetryPersistence, AppError, DEFAULT_CONFIG, DEFAULT_ROUTING_POLICY, DoltClient, DoltNotInstalled, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, FileStateStore, GitClient, GrammarLoader, IngestionServer, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SUBSTRATE_OWNED_SETTINGS_KEYS, SymbolParser, VALID_PHASES, WorkGraphRepository, buildPipelineStatusOutput, checkDoltInstalled, createConfigSystem, createContextCompiler, createDatabaseAdapter, createDispatcher, createDoltClient, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStateStore, createStopAfterGate, createTelemetryAdvisor, detectCycles, findPackageRoot, formatOutput, formatPhaseCompletionSummary, formatPipelineStatusHuman, formatPipelineSummary, formatTokenTelemetry, getAllDescendantPids, getAutoHealthData, getSubstrateDefaultSettings, initSchema, initializeDolt, isSyncAdapter, parseDbTimestampAsUtc, registerHealthCommand, registerRunCommand, resolveBmadMethodSrcPath, resolveBmadMethodVersion, resolveMainRepoRoot, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runRunAction, runSolutioningPhase, validateStopAfterFromConflict };
|
|
22708
|
-
//# sourceMappingURL=run-
|
|
22678
|
+
//# sourceMappingURL=run-BWmiveTZ.js.map
|