substrate-ai 0.1.22 → 0.1.23
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/{app-Bltq6BEm.js → app-CY3MaJtP.js} +55 -2
- package/dist/cli/index.js +2175 -671
- package/dist/index.d.ts +20 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/packs/bmad/data/elicitation-methods.csv +51 -0
- package/packs/bmad/manifest.yaml +65 -0
- package/packs/bmad/prompts/architecture-step-2-decisions.md +7 -0
- package/packs/bmad/prompts/critique-analysis.md +88 -0
- package/packs/bmad/prompts/critique-architecture.md +96 -0
- package/packs/bmad/prompts/critique-planning.md +96 -0
- package/packs/bmad/prompts/critique-stories.md +93 -0
- package/packs/bmad/prompts/elicitation-apply.md +40 -0
- package/packs/bmad/prompts/readiness-check.md +139 -0
- package/packs/bmad/prompts/refine-artifact.md +52 -0
- package/packs/bmad/prompts/ux-step-1-discovery.md +69 -0
- package/packs/bmad/prompts/ux-step-2-design-system.md +64 -0
- package/packs/bmad/prompts/ux-step-3-journeys.md +80 -0
|
@@ -2412,6 +2412,58 @@ const migration009TokenUsageMetadata = {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
};
|
|
2414
2414
|
|
|
2415
|
+
//#endregion
|
|
2416
|
+
//#region src/persistence/migrations/010-run-metrics.ts
|
|
2417
|
+
const migration010RunMetrics = {
|
|
2418
|
+
version: 10,
|
|
2419
|
+
name: "run-metrics",
|
|
2420
|
+
up(db) {
|
|
2421
|
+
db.exec(`
|
|
2422
|
+
CREATE TABLE IF NOT EXISTS run_metrics (
|
|
2423
|
+
run_id TEXT PRIMARY KEY,
|
|
2424
|
+
methodology TEXT NOT NULL,
|
|
2425
|
+
status TEXT NOT NULL DEFAULT 'running',
|
|
2426
|
+
started_at TEXT NOT NULL,
|
|
2427
|
+
completed_at TEXT,
|
|
2428
|
+
wall_clock_seconds REAL DEFAULT 0,
|
|
2429
|
+
total_input_tokens INTEGER DEFAULT 0,
|
|
2430
|
+
total_output_tokens INTEGER DEFAULT 0,
|
|
2431
|
+
total_cost_usd REAL DEFAULT 0,
|
|
2432
|
+
stories_attempted INTEGER DEFAULT 0,
|
|
2433
|
+
stories_succeeded INTEGER DEFAULT 0,
|
|
2434
|
+
stories_failed INTEGER DEFAULT 0,
|
|
2435
|
+
stories_escalated INTEGER DEFAULT 0,
|
|
2436
|
+
total_review_cycles INTEGER DEFAULT 0,
|
|
2437
|
+
total_dispatches INTEGER DEFAULT 0,
|
|
2438
|
+
concurrency_setting INTEGER DEFAULT 1,
|
|
2439
|
+
max_concurrent_actual INTEGER DEFAULT 1,
|
|
2440
|
+
restarts INTEGER DEFAULT 0,
|
|
2441
|
+
is_baseline INTEGER DEFAULT 0,
|
|
2442
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
2443
|
+
)
|
|
2444
|
+
`);
|
|
2445
|
+
db.exec(`
|
|
2446
|
+
CREATE TABLE IF NOT EXISTS story_metrics (
|
|
2447
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
2448
|
+
run_id TEXT NOT NULL,
|
|
2449
|
+
story_key TEXT NOT NULL,
|
|
2450
|
+
result TEXT NOT NULL DEFAULT 'pending',
|
|
2451
|
+
phase_durations_json TEXT,
|
|
2452
|
+
started_at TEXT,
|
|
2453
|
+
completed_at TEXT,
|
|
2454
|
+
wall_clock_seconds REAL DEFAULT 0,
|
|
2455
|
+
input_tokens INTEGER DEFAULT 0,
|
|
2456
|
+
output_tokens INTEGER DEFAULT 0,
|
|
2457
|
+
cost_usd REAL DEFAULT 0,
|
|
2458
|
+
review_cycles INTEGER DEFAULT 0,
|
|
2459
|
+
dispatches INTEGER DEFAULT 0,
|
|
2460
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
2461
|
+
UNIQUE(run_id, story_key)
|
|
2462
|
+
)
|
|
2463
|
+
`);
|
|
2464
|
+
}
|
|
2465
|
+
};
|
|
2466
|
+
|
|
2415
2467
|
//#endregion
|
|
2416
2468
|
//#region src/persistence/migrations/index.ts
|
|
2417
2469
|
const logger$9 = createLogger("persistence:migrations");
|
|
@@ -2424,7 +2476,8 @@ const MIGRATIONS = [
|
|
|
2424
2476
|
migration006PlanVersions,
|
|
2425
2477
|
migration007DecisionStore,
|
|
2426
2478
|
migration008AmendmentSchema,
|
|
2427
|
-
migration009TokenUsageMetadata
|
|
2479
|
+
migration009TokenUsageMetadata,
|
|
2480
|
+
migration010RunMetrics
|
|
2428
2481
|
];
|
|
2429
2482
|
/**
|
|
2430
2483
|
* Ensure `schema_migrations` table exists and run any pending migrations.
|
|
@@ -6286,4 +6339,4 @@ function printNonTtyWarning() {
|
|
|
6286
6339
|
|
|
6287
6340
|
//#endregion
|
|
6288
6341
|
export { AdapterRegistry, AdtError, BudgetExceededError, ClaudeCodeAdapter, CodexCLIAdapter, ConfigError, ConfigIncompatibleFormatError, DatabaseWrapper, GeminiCLIAdapter, GitError, MonitorDatabaseImpl, ParseError, RecommendationEngine, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphFileSchema, TaskGraphIncompatibleFormatError, ValidationError, WorkerError, WorkerNotFoundError, childLogger, computeChangedKeys, createConfigWatcher, createDatabaseService, createEventBus, createGitWorktreeManager, createLogger, createMonitorAgent, createMonitorDatabase, createRoutingEngine, createTaskGraphEngine, createTuiApp, createWorkerPoolManager, deepMask, detectCycle, getAllTasks, getLatestSessionId, getLogByEvent, getSession, getSessionLog, getTaskLog, isTuiCapable, logger$12 as logger, parseGraphFile, printNonTtyWarning, queryLogFiltered, runMigrations, validateDependencies, validateGraph };
|
|
6289
|
-
//# sourceMappingURL=app-
|
|
6342
|
+
//# sourceMappingURL=app-CY3MaJtP.js.map
|