substrate-ai 0.1.31 → 0.1.32

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
@@ -1910,7 +1910,7 @@ function formatCostCsv(summary, taskEntries) {
1910
1910
  */
1911
1911
  async function runCostAction(options) {
1912
1912
  const { sessionId: explicitSessionId, outputFormat, byTask, byAgent, byBilling, includePlanning, projectRoot, version = "0.0.0" } = options;
1913
- const dbPath = join(projectRoot, ".substrate", "state.db");
1913
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
1914
1914
  if (!existsSync(dbPath)) {
1915
1915
  process.stderr.write(`Error: No Substrate database found at ${dbPath}. Run 'substrate init' first.\n`);
1916
1916
  return COST_EXIT_ERROR;
@@ -2270,7 +2270,7 @@ async function runStartAction(options) {
2270
2270
  return START_EXIT_ERROR;
2271
2271
  }
2272
2272
  }
2273
- const dbPath = join(projectRoot, ".substrate", "state.db");
2273
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
2274
2274
  const substrateDir = join(projectRoot, ".substrate");
2275
2275
  if (!existsSync(substrateDir)) mkdirSync(substrateDir, { recursive: true });
2276
2276
  const eventBus = createEventBus();
@@ -2715,7 +2715,7 @@ function isTerminalStatus(status) {
2715
2715
  */
2716
2716
  async function runStatusAction(options) {
2717
2717
  const { sessionId: explicitSessionId, watch: watch$1, outputFormat, showGraph, pollIntervalMs, projectRoot } = options;
2718
- const dbPath = join(projectRoot, ".substrate", "state.db");
2718
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
2719
2719
  if (!existsSync(dbPath)) {
2720
2720
  process.stderr.write(`Error: No Substrate database found at ${dbPath}. Run 'substrate init' first.\n`);
2721
2721
  return STATUS_EXIT_ERROR;
@@ -2846,7 +2846,7 @@ const PAUSE_EXIT_USAGE_ERROR = 2;
2846
2846
  */
2847
2847
  async function runPauseAction(options) {
2848
2848
  const { sessionId, outputFormat, projectRoot, version = "0.0.0" } = options;
2849
- const dbPath = join(projectRoot, ".substrate", "state.db");
2849
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
2850
2850
  if (!existsSync(dbPath)) {
2851
2851
  process.stderr.write(`Error: No Substrate database found at ${dbPath}. Run 'substrate init' first.\n`);
2852
2852
  return PAUSE_EXIT_ERROR;
@@ -2962,7 +2962,7 @@ async function runResumeAction(options) {
2962
2962
  };
2963
2963
  return runStartAction(startOptions);
2964
2964
  }
2965
- const dbPath = join(projectRoot, ".substrate", "state.db");
2965
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
2966
2966
  if (!existsSync(dbPath)) {
2967
2967
  process.stderr.write(`Error: No Substrate database found at ${dbPath}. Run 'substrate init' first.\n`);
2968
2968
  return RESUME_EXIT_ERROR;
@@ -3080,7 +3080,7 @@ async function promptConfirmation$1(sessionId) {
3080
3080
  */
3081
3081
  async function runCancelAction(options) {
3082
3082
  const { sessionId, outputFormat, yes, projectRoot, version = "0.0.0" } = options;
3083
- const dbPath = join(projectRoot, ".substrate", "state.db");
3083
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
3084
3084
  if (!existsSync(dbPath)) {
3085
3085
  process.stderr.write(`Error: No Substrate database found at ${dbPath}. Run 'substrate init' first.\n`);
3086
3086
  return CANCEL_EXIT_ERROR;
@@ -3293,7 +3293,7 @@ function validateTaskDependencies(db, _sessionId, taskId) {
3293
3293
  */
3294
3294
  async function runRetryAction(options) {
3295
3295
  const { sessionId, taskId: specificTaskId, dryRun, follow, outputFormat, maxRetries, projectRoot } = options;
3296
- const dbPath = join(projectRoot, ".substrate", "state.db");
3296
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
3297
3297
  if (!existsSync(dbPath)) {
3298
3298
  process.stderr.write(`Error: No Substrate database found at ${dbPath}. Run 'substrate init' first.\n`);
3299
3299
  return RETRY_EXIT_USAGE_ERROR;
@@ -3387,7 +3387,7 @@ async function runRetryAction(options) {
3387
3387
  */
3388
3388
  async function runFollowMode(opts) {
3389
3389
  const { sessionId, eligibleTaskIds, projectRoot, outputFormat } = opts;
3390
- const dbPath = join(projectRoot, ".substrate", "state.db");
3390
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
3391
3391
  const eventBus = createEventBus();
3392
3392
  const databaseService = createDatabaseService(dbPath);
3393
3393
  const configSystem = createConfigSystem({ projectRoot });
@@ -3807,7 +3807,7 @@ function formatLogTable(entries) {
3807
3807
  */
3808
3808
  async function runLogAction(options) {
3809
3809
  const { sessionId: explicitSessionId, taskId, event, limit, outputFormat, projectRoot, version = "0.0.0" } = options;
3810
- const dbPath = join(projectRoot, ".substrate", "state.db");
3810
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
3811
3811
  if (!existsSync(dbPath)) {
3812
3812
  process.stderr.write(`Error: No Substrate database found at ${dbPath}. Run 'substrate init' first.\n`);
3813
3813
  return LOG_EXIT_ERROR;
@@ -5084,7 +5084,7 @@ async function runPlanRefineAction(options) {
5084
5084
  process.stderr.write("Error: feedback text is required\n");
5085
5085
  return REFINE_EXIT_USAGE_ERROR;
5086
5086
  }
5087
- const dbPath = join(projectRoot, ".substrate", "state.db");
5087
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
5088
5088
  const dbWrapper = new DatabaseWrapper(dbPath);
5089
5089
  try {
5090
5090
  dbWrapper.open();
@@ -5190,7 +5190,7 @@ const DIFF_EXIT_NOT_FOUND = 2;
5190
5190
  */
5191
5191
  async function runPlanDiffAction(options) {
5192
5192
  const { planId, fromVersion, toVersion, projectRoot, outputFormat } = options;
5193
- const dbPath = join(projectRoot, ".substrate", "state.db");
5193
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
5194
5194
  const dbWrapper = new DatabaseWrapper(dbPath);
5195
5195
  try {
5196
5196
  dbWrapper.open();
@@ -5281,7 +5281,7 @@ const ROLLBACK_EXIT_USAGE_ERROR = 2;
5281
5281
  */
5282
5282
  async function runPlanRollbackAction(options, onEvent) {
5283
5283
  const { planId, toVersion, projectRoot, outputFormat, autoApprove = false } = options;
5284
- const dbPath = join(projectRoot, ".substrate", "state.db");
5284
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
5285
5285
  const dbWrapper = new DatabaseWrapper(dbPath);
5286
5286
  try {
5287
5287
  dbWrapper.open();
@@ -5588,7 +5588,7 @@ async function promptApproval() {
5588
5588
  }
5589
5589
  async function savePlan(input) {
5590
5590
  const { planId, goal, planningAgent, estimatedExecutionCost, taskCount, planYaml, projectRoot, status } = input;
5591
- const dbPath = join(projectRoot, ".substrate", "state.db");
5591
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
5592
5592
  const dbWrapper = new DatabaseWrapper(dbPath);
5593
5593
  try {
5594
5594
  dbWrapper.open();
@@ -5811,7 +5811,7 @@ async function runPlanReviewAction(options) {
5811
5811
  */
5812
5812
  async function runPlanListAction(options) {
5813
5813
  const { outputFormat, projectRoot } = options;
5814
- const dbPath = join(projectRoot, ".substrate", "state.db");
5814
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
5815
5815
  const dbWrapper = new DatabaseWrapper(dbPath);
5816
5816
  try {
5817
5817
  dbWrapper.open();
@@ -5840,7 +5840,7 @@ async function runPlanListAction(options) {
5840
5840
  */
5841
5841
  async function runPlanShowAction(planId, options) {
5842
5842
  const { outputFormat, projectRoot } = options;
5843
- const dbPath = join(projectRoot, ".substrate", "state.db");
5843
+ const dbPath = join(projectRoot, ".substrate", "substrate.db");
5844
5844
  const dbWrapper = new DatabaseWrapper(dbPath);
5845
5845
  try {
5846
5846
  dbWrapper.open();
package/dist/index.d.ts CHANGED
@@ -975,7 +975,7 @@ declare function createEventBus(): TypedEventBus;
975
975
  * Configuration required to initialize the orchestrator.
976
976
  */
977
977
  interface OrchestratorConfig {
978
- /** Path to the SQLite database file (e.g., ".substrate/state.db") */
978
+ /** Path to the SQLite database file (e.g., ".substrate/substrate.db") */
979
979
  databasePath: string;
980
980
  /** Working directory for the orchestrated project */
981
981
  projectRoot: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "substrate-ai",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "Substrate — multi-agent orchestration daemon for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "MIT",