substrate-ai 0.10.0 → 0.12.0
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 +4 -4
- package/dist/index.d.ts +27 -1
- package/dist/{run-CAUhTR7Y.js → run-CrIc5FY5.js} +5795 -290
- package/dist/{run-DPZOQOvB.js → run-Czm5qS9p.js} +1 -1
- package/dist/{upgrade-DYdYuuJK.js → upgrade-B3ohl-EC.js} +1 -1
- package/dist/{upgrade-DFGrqjGI.js → upgrade-DvEXi3Fq.js} +2 -2
- package/package.json +4 -1
package/dist/cli/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import { createLogger } from "../logger-KeHncl-f.js";
|
|
|
4
4
|
import { createEventBus } from "../helpers-DTp3VJ2-.js";
|
|
5
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-eNB_v7Iy.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-
|
|
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-CrIc5FY5.js";
|
|
8
8
|
import "../errors-BvyMlvCX.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-DvEXi3Fq.js";
|
|
13
13
|
import { Command } from "commander";
|
|
14
14
|
import { fileURLToPath } from "url";
|
|
15
15
|
import { dirname, join, resolve } from "path";
|
|
@@ -4351,7 +4351,7 @@ async function runSupervisorAction(options, deps = {}) {
|
|
|
4351
4351
|
await initSchema(expAdapter);
|
|
4352
4352
|
const { runRunAction: runPipeline } = await import(
|
|
4353
4353
|
/* @vite-ignore */
|
|
4354
|
-
"../run-
|
|
4354
|
+
"../run-Czm5qS9p.js"
|
|
4355
4355
|
);
|
|
4356
4356
|
const runStoryFn = async (opts) => {
|
|
4357
4357
|
const exitCode = await runPipeline({
|
|
@@ -8615,7 +8615,7 @@ async function createProgram() {
|
|
|
8615
8615
|
/** Fire-and-forget startup version check (story 8.3, AC3/AC5) */
|
|
8616
8616
|
function checkForUpdatesInBackground(currentVersion) {
|
|
8617
8617
|
if (process.env.SUBSTRATE_NO_UPDATE_CHECK === "1") return;
|
|
8618
|
-
import("../upgrade-
|
|
8618
|
+
import("../upgrade-B3ohl-EC.js").then(async () => {
|
|
8619
8619
|
const { createVersionManager } = await import("../version-manager-impl-CKv6I1S0.js");
|
|
8620
8620
|
const vm = createVersionManager();
|
|
8621
8621
|
const result = await vm.checkForUpdates();
|
package/dist/index.d.ts
CHANGED
|
@@ -1286,8 +1286,30 @@ declare class GeminiCLIAdapter implements WorkerAdapter$1 {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
|
|
1288
1288
|
//#endregion
|
|
1289
|
-
//#region
|
|
1289
|
+
//#region packages/core/dist/monitor/recommendation-types.d.ts
|
|
1290
1290
|
//# sourceMappingURL=gemini-adapter.d.ts.map
|
|
1291
|
+
/**
|
|
1292
|
+
* Recommendation Types — data structures for the routing recommendations engine.
|
|
1293
|
+
* Migrated to @substrate-ai/core (Story 41-7)
|
|
1294
|
+
*/
|
|
1295
|
+
type ConfidenceLevel = 'low' | 'medium' | 'high';
|
|
1296
|
+
interface Recommendation {
|
|
1297
|
+
task_type: string;
|
|
1298
|
+
current_agent: string;
|
|
1299
|
+
recommended_agent: string;
|
|
1300
|
+
reason: string;
|
|
1301
|
+
confidence: ConfidenceLevel;
|
|
1302
|
+
current_success_rate: number;
|
|
1303
|
+
recommended_success_rate: number;
|
|
1304
|
+
current_avg_tokens: number;
|
|
1305
|
+
recommended_avg_tokens: number;
|
|
1306
|
+
improvement_percentage: number;
|
|
1307
|
+
sample_size_current: number;
|
|
1308
|
+
sample_size_recommended: number;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
//#endregion
|
|
1312
|
+
//#region src/core/errors.d.ts
|
|
1291
1313
|
/** Error thrown when task configuration is invalid */
|
|
1292
1314
|
declare class TaskConfigError extends AdtError {
|
|
1293
1315
|
constructor(message: string, context?: Record<string, unknown>);
|
|
@@ -1518,6 +1540,8 @@ interface RoutingDecision {
|
|
|
1518
1540
|
tokensUsedInWindow: number;
|
|
1519
1541
|
limit: number;
|
|
1520
1542
|
};
|
|
1543
|
+
monitorRecommendation?: Recommendation;
|
|
1544
|
+
monitorInfluenced: boolean;
|
|
1521
1545
|
}
|
|
1522
1546
|
/** Result of a completed task */
|
|
1523
1547
|
interface TaskResult$1 {
|
|
@@ -1844,12 +1868,14 @@ interface OrchestratorEvents {
|
|
|
1844
1868
|
'orchestrator:story-phase-start': {
|
|
1845
1869
|
storyKey: string;
|
|
1846
1870
|
phase: string;
|
|
1871
|
+
pipelineRunId?: string;
|
|
1847
1872
|
};
|
|
1848
1873
|
/** A story phase has completed within the implementation orchestrator */
|
|
1849
1874
|
'orchestrator:story-phase-complete': {
|
|
1850
1875
|
storyKey: string;
|
|
1851
1876
|
phase: string;
|
|
1852
1877
|
result: unknown;
|
|
1878
|
+
pipelineRunId?: string;
|
|
1853
1879
|
};
|
|
1854
1880
|
/** A story has completed the full pipeline with SHIP_IT verdict */
|
|
1855
1881
|
'orchestrator:story-complete': {
|