substrate-ai 0.19.39 → 0.19.41
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
|
@@ -4,7 +4,7 @@ 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, 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, getRunningPipelineRuns, getSessionCostSummary, getSessionCostSummaryFiltered, getStoryMetricsForRun, getTokenUsageSummary, incrementRunRestarts, initSchema, initializeDolt, listRunMetrics, loadParentRunDecisions, supersedeDecision, tagRunAsBaseline, updatePipelineRun } from "../dist-BUcEqXA1.js";
|
|
6
6
|
import "../adapter-registry-DXLMTmfD.js";
|
|
7
|
-
import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-
|
|
7
|
+
import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runSolutioningPhase, validateStopAfterFromConflict } from "../run-CoWvgK5U.js";
|
|
8
8
|
import "../errors-BZnrgeyp.js";
|
|
9
9
|
import "../routing-CcBOCuC9.js";
|
|
10
10
|
import "../decisions-C0pz9Clx.js";
|
|
@@ -25,7 +25,7 @@ import { randomUUID } from "node:crypto";
|
|
|
25
25
|
import { z } from "zod";
|
|
26
26
|
import * as fs from "node:fs/promises";
|
|
27
27
|
import { access as access$1, readFile as readFile$1, readdir as readdir$1 } from "node:fs/promises";
|
|
28
|
-
import { appendFileSync, chmodSync, cpSync, existsSync as existsSync$1, mkdirSync as mkdirSync$1, readFileSync as readFileSync$1, readdirSync as readdirSync$1, realpathSync, rmSync as rmSync$1, statSync, unlinkSync as unlinkSync$1, writeFileSync as writeFileSync$1 } from "fs";
|
|
28
|
+
import { appendFileSync, chmodSync, cpSync, existsSync as existsSync$1, mkdirSync as mkdirSync$1, readFileSync as readFileSync$1, readdirSync as readdirSync$1, realpathSync as realpathSync$1, rmSync as rmSync$1, statSync, unlinkSync as unlinkSync$1, writeFileSync as writeFileSync$1 } from "fs";
|
|
29
29
|
import { homedir } from "os";
|
|
30
30
|
import { createRequire } from "node:module";
|
|
31
31
|
import { fileURLToPath as fileURLToPath$1 } from "node:url";
|
|
@@ -4833,7 +4833,7 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
4833
4833
|
await initSchema(expAdapter);
|
|
4834
4834
|
const { runRunAction: runPipeline } = await import(
|
|
4835
4835
|
/* @vite-ignore */
|
|
4836
|
-
"../run-
|
|
4836
|
+
"../run-zR11kEEW.js"
|
|
4837
4837
|
);
|
|
4838
4838
|
const runStoryFn = async (opts) => {
|
|
4839
4839
|
const exitCode = await runPipeline({
|
|
@@ -8646,7 +8646,7 @@ async function main() {
|
|
|
8646
8646
|
const __cli_filename = fileURLToPath(import.meta.url);
|
|
8647
8647
|
const isMainModule = (() => {
|
|
8648
8648
|
try {
|
|
8649
|
-
return realpathSync(process.argv[1]) === realpathSync(__cli_filename);
|
|
8649
|
+
return realpathSync$1(process.argv[1]) === realpathSync$1(__cli_filename);
|
|
8650
8650
|
} catch {
|
|
8651
8651
|
return false;
|
|
8652
8652
|
}
|
|
@@ -7,14 +7,14 @@ import { access, readFile, readdir, stat } from "fs/promises";
|
|
|
7
7
|
import { EventEmitter } from "node:events";
|
|
8
8
|
import yaml from "js-yaml";
|
|
9
9
|
import * as actualFS from "node:fs";
|
|
10
|
-
import { accessSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, unlinkSync, unwatchFile, watchFile, writeFileSync } from "node:fs";
|
|
10
|
+
import { accessSync, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, unlinkSync, unwatchFile, watchFile, writeFileSync } from "node:fs";
|
|
11
11
|
import { exec, execFile, execSync, spawn } from "node:child_process";
|
|
12
12
|
import path, { basename as basename$1, dirname as dirname$1, extname as extname$1, isAbsolute, join as join$1, posix, resolve as resolve$1, win32 } from "node:path";
|
|
13
13
|
import { tmpdir } from "node:os";
|
|
14
14
|
import { createHash, randomUUID } from "node:crypto";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import { access as access$1, lstat, mkdir as mkdir$1, readFile as readFile$1, readdir as readdir$1, readlink, realpath, stat as stat$1, unlink, writeFile as writeFile$1 } from "node:fs/promises";
|
|
17
|
-
import { existsSync as existsSync$1, lstatSync, mkdirSync as mkdirSync$1, readFileSync as readFileSync$1, readdir as readdir$2, readdirSync as readdirSync$1, readlinkSync, realpathSync, unlinkSync as unlinkSync$1, writeFileSync as writeFileSync$1 } from "fs";
|
|
17
|
+
import { existsSync as existsSync$1, lstatSync, mkdirSync as mkdirSync$1, readFileSync as readFileSync$1, readdir as readdir$2, readdirSync as readdirSync$1, readlinkSync, realpathSync as realpathSync$1, unlinkSync as unlinkSync$1, writeFileSync as writeFileSync$1 } from "fs";
|
|
18
18
|
import { promisify } from "node:util";
|
|
19
19
|
import { fileURLToPath } from "node:url";
|
|
20
20
|
import { execFile as execFile$1, spawn as spawn$1 } from "child_process";
|
|
@@ -18364,10 +18364,15 @@ function getSubstrateVersion() {
|
|
|
18364
18364
|
const candidates = [];
|
|
18365
18365
|
try {
|
|
18366
18366
|
const __dirname = dirname$1(fileURLToPath(import.meta.url));
|
|
18367
|
+
candidates.push(join$1(__dirname, "..", "package.json"));
|
|
18367
18368
|
candidates.push(join$1(__dirname, "..", "..", "..", "package.json"));
|
|
18368
18369
|
} catch {}
|
|
18369
18370
|
if (process.argv[1]) {
|
|
18370
|
-
|
|
18371
|
+
let cliPath = process.argv[1];
|
|
18372
|
+
try {
|
|
18373
|
+
cliPath = realpathSync(cliPath);
|
|
18374
|
+
} catch {}
|
|
18375
|
+
const cliDir = dirname$1(cliPath);
|
|
18371
18376
|
candidates.push(join$1(cliDir, "..", "package.json"));
|
|
18372
18377
|
candidates.push(join$1(cliDir, "..", "..", "package.json"));
|
|
18373
18378
|
}
|
|
@@ -36608,13 +36613,13 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
|
36608
36613
|
|
|
36609
36614
|
//#endregion
|
|
36610
36615
|
//#region node_modules/path-scurry/dist/esm/index.js
|
|
36611
|
-
const realpathSync$
|
|
36616
|
+
const realpathSync$2 = realpathSync$1.native;
|
|
36612
36617
|
const defaultFS = {
|
|
36613
36618
|
lstatSync,
|
|
36614
36619
|
readdir: readdir$2,
|
|
36615
36620
|
readdirSync: readdirSync$1,
|
|
36616
36621
|
readlinkSync,
|
|
36617
|
-
realpathSync: realpathSync$
|
|
36622
|
+
realpathSync: realpathSync$2,
|
|
36618
36623
|
promises: {
|
|
36619
36624
|
lstat,
|
|
36620
36625
|
readdir: readdir$1,
|
|
@@ -42745,4 +42750,4 @@ function registerRunCommand(program, _version = "0.0.0", projectRoot = process.c
|
|
|
42745
42750
|
|
|
42746
42751
|
//#endregion
|
|
42747
42752
|
export { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, normalizeGraphSummaryToStatus, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveMaxReviewCycles, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runRunAction, runSolutioningPhase, validateStopAfterFromConflict, wireNdjsonEmitter };
|
|
42748
|
-
//# sourceMappingURL=run-
|
|
42753
|
+
//# sourceMappingURL=run-CoWvgK5U.js.map
|
|
@@ -2,7 +2,7 @@ import "./health-DMu0MJ-N.js";
|
|
|
2
2
|
import "./logger-KeHncl-f.js";
|
|
3
3
|
import "./helpers-CElYrONe.js";
|
|
4
4
|
import "./dist-BUcEqXA1.js";
|
|
5
|
-
import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, runRunAction, wireNdjsonEmitter } from "./run-
|
|
5
|
+
import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, runRunAction, wireNdjsonEmitter } from "./run-CoWvgK5U.js";
|
|
6
6
|
import "./routing-CcBOCuC9.js";
|
|
7
7
|
import "./decisions-C0pz9Clx.js";
|
|
8
8
|
|