substrate-ai 0.1.16 → 0.1.18

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.
@@ -390,13 +390,11 @@ var ClaudeCodeAdapter = class {
390
390
  supportedLanguages: ["*"]
391
391
  };
392
392
  }
393
- _detectBillingModes(versionOutput) {
393
+ _detectBillingModes(_versionOutput) {
394
394
  const explicit = process.env.ADT_BILLING_MODE;
395
395
  if (explicit === "subscription" || explicit === "api" || explicit === "free") return [explicit];
396
- const modes = [];
396
+ const modes = ["subscription"];
397
397
  if (process.env.ANTHROPIC_API_KEY) modes.push("api");
398
- if (versionOutput.toLowerCase().includes("subscription")) modes.push("subscription");
399
- if (modes.length === 0) return ["subscription", "api"];
400
398
  return modes;
401
399
  }
402
400
  _buildPlanningPrompt(request) {
@@ -6288,4 +6286,4 @@ function printNonTtyWarning() {
6288
6286
 
6289
6287
  //#endregion
6290
6288
  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 };
6291
- //# sourceMappingURL=app-DXNR5G_8.js.map
6289
+ //# sourceMappingURL=app-Bltq6BEm.js.map
package/dist/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { AdapterRegistry, ConfigError, ConfigIncompatibleFormatError, DatabaseWrapper, MonitorDatabaseImpl, ParseError, RecommendationEngine, TaskGraphFileSchema, ValidationError, computeChangedKeys, createConfigWatcher, createDatabaseService, createEventBus, createGitWorktreeManager, createLogger, createMonitorAgent, createMonitorDatabase, createRoutingEngine, createTaskGraphEngine, createTuiApp, createWorkerPoolManager, deepMask, detectCycle, getAllTasks, getLatestSessionId, getLogByEvent, getSession, getSessionLog, getTaskLog, isTuiCapable, parseGraphFile, printNonTtyWarning, queryLogFiltered, runMigrations, validateDependencies, validateGraph } from "../app-DXNR5G_8.js";
2
+ import { AdapterRegistry, ConfigError, ConfigIncompatibleFormatError, DatabaseWrapper, MonitorDatabaseImpl, ParseError, RecommendationEngine, TaskGraphFileSchema, ValidationError, computeChangedKeys, createConfigWatcher, createDatabaseService, createEventBus, createGitWorktreeManager, createLogger, createMonitorAgent, createMonitorDatabase, createRoutingEngine, createTaskGraphEngine, createTuiApp, createWorkerPoolManager, deepMask, detectCycle, getAllTasks, getLatestSessionId, getLogByEvent, getSession, getSessionLog, getTaskLog, isTuiCapable, parseGraphFile, printNonTtyWarning, queryLogFiltered, runMigrations, validateDependencies, validateGraph } from "../app-Bltq6BEm.js";
3
3
  import { CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, PartialSubstrateConfigSchema, SUPPORTED_CONFIG_FORMAT_VERSIONS, SubstrateConfigSchema } from "../config-schema-C9tTMcm1.js";
4
4
  import { defaultConfigMigrator } from "../version-manager-impl-O25ieEjS.js";
5
5
  import { registerUpgradeCommand } from "../upgrade-CHhsJc_q.js";
@@ -390,7 +390,7 @@ const logger$30 = createLogger("init");
390
390
  * When true, prefix suggested commands with `npx `.
391
391
  */
392
392
  function isNpxInvocation() {
393
- return process.env["npm_execpath"] !== void 0 && (process.env["npm_execpath"].includes("npx") || process.env["npm_lifecycle_event"] === void 0);
393
+ return process.env["npm_command"] === "exec";
394
394
  }
395
395
  const INIT_EXIT_SUCCESS = 0;
396
396
  const INIT_EXIT_ERROR = 1;
@@ -15811,7 +15811,10 @@ function checkForUpdatesInBackground(currentVersion) {
15811
15811
  const { createVersionManager } = await import("../version-manager-impl-C0G2CEHB.js");
15812
15812
  const vm = createVersionManager();
15813
15813
  const result = await vm.checkForUpdates();
15814
- if (result.updateAvailable) process.stderr.write(`\nUpdate available: ${result.currentVersion} → ${result.latestVersion}. Run \`substrate upgrade\` to update.\n`);
15814
+ if (result.updateAvailable) {
15815
+ const pfx = process.env["npm_command"] === "exec" ? "npx " : "";
15816
+ process.stderr.write(`\nUpdate available: ${result.currentVersion} → ${result.latestVersion}. Run \`${pfx}substrate upgrade\` to update.\n`);
15817
+ }
15815
15818
  }).catch(() => {});
15816
15819
  }
15817
15820
  /** Main entry point */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AdapterRegistry, AdtError, BudgetExceededError, ClaudeCodeAdapter, CodexCLIAdapter, ConfigError, ConfigIncompatibleFormatError, GeminiCLIAdapter, GitError, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphIncompatibleFormatError, WorkerError, WorkerNotFoundError, childLogger, computeChangedKeys, createConfigWatcher, createDatabaseService, createEventBus, createGitWorktreeManager, createLogger, createMonitorAgent, createMonitorDatabase, createRoutingEngine, createTaskGraphEngine, createTuiApp, createWorkerPoolManager, isTuiCapable, logger, printNonTtyWarning } from "./app-DXNR5G_8.js";
1
+ import { AdapterRegistry, AdtError, BudgetExceededError, ClaudeCodeAdapter, CodexCLIAdapter, ConfigError, ConfigIncompatibleFormatError, GeminiCLIAdapter, GitError, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphIncompatibleFormatError, WorkerError, WorkerNotFoundError, childLogger, computeChangedKeys, createConfigWatcher, createDatabaseService, createEventBus, createGitWorktreeManager, createLogger, createMonitorAgent, createMonitorDatabase, createRoutingEngine, createTaskGraphEngine, createTuiApp, createWorkerPoolManager, isTuiCapable, logger, printNonTtyWarning } from "./app-Bltq6BEm.js";
2
2
  import "./config-schema-C9tTMcm1.js";
3
3
  import { join } from "node:path";
4
4
  import { randomUUID } from "crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "substrate-ai",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Substrate — multi-agent orchestration daemon for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "MIT",