substrate-ai 0.1.32 → 0.1.33
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/{upgrade-4j5rZskl.js → upgrade-CIAel_WS.js} +2 -2
- package/dist/{upgrade-j7tWzbZ0.js → upgrade-CS2i2Qy5.js} +2 -2
- package/dist/{version-manager-impl-mBbvaQL2.js → version-manager-impl-CcCP8PzG.js} +8 -7
- package/dist/{version-manager-impl-CJLdocS1.js → version-manager-impl-LhLAyrCL.js} +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
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-CY3MaJtP.js";
|
|
3
3
|
import { CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, PartialSubstrateConfigSchema, SUPPORTED_CONFIG_FORMAT_VERSIONS, SubstrateConfigSchema } from "../config-schema-C9tTMcm1.js";
|
|
4
|
-
import { defaultConfigMigrator } from "../version-manager-impl-
|
|
5
|
-
import { registerUpgradeCommand } from "../upgrade-
|
|
4
|
+
import { defaultConfigMigrator } from "../version-manager-impl-CcCP8PzG.js";
|
|
5
|
+
import { registerUpgradeCommand } from "../upgrade-CIAel_WS.js";
|
|
6
6
|
import { createRequire } from "module";
|
|
7
7
|
import { Command } from "commander";
|
|
8
8
|
import { fileURLToPath } from "url";
|
|
@@ -19676,8 +19676,8 @@ async function createProgram() {
|
|
|
19676
19676
|
/** Fire-and-forget startup version check (story 8.3, AC3/AC5) */
|
|
19677
19677
|
function checkForUpdatesInBackground(currentVersion) {
|
|
19678
19678
|
if (process.env.SUBSTRATE_NO_UPDATE_CHECK === "1") return;
|
|
19679
|
-
import("../upgrade-
|
|
19680
|
-
const { createVersionManager } = await import("../version-manager-impl-
|
|
19679
|
+
import("../upgrade-CS2i2Qy5.js").then(async () => {
|
|
19680
|
+
const { createVersionManager } = await import("../version-manager-impl-LhLAyrCL.js");
|
|
19681
19681
|
const vm = createVersionManager();
|
|
19682
19682
|
const result = await vm.checkForUpdates();
|
|
19683
19683
|
if (result.updateAvailable) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createVersionManager } from "./version-manager-impl-
|
|
1
|
+
import { createVersionManager } from "./version-manager-impl-CcCP8PzG.js";
|
|
2
2
|
import { execSync, spawn } from "child_process";
|
|
3
3
|
import * as readline from "readline";
|
|
4
4
|
|
|
@@ -123,4 +123,4 @@ function registerUpgradeCommand(program) {
|
|
|
123
123
|
|
|
124
124
|
//#endregion
|
|
125
125
|
export { isGlobalInstall, registerUpgradeCommand, runUpgradeCommand };
|
|
126
|
-
//# sourceMappingURL=upgrade-
|
|
126
|
+
//# sourceMappingURL=upgrade-CIAel_WS.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./config-schema-C9tTMcm1.js";
|
|
2
|
-
import "./version-manager-impl-
|
|
3
|
-
import { isGlobalInstall, registerUpgradeCommand, runUpgradeCommand } from "./upgrade-
|
|
2
|
+
import "./version-manager-impl-CcCP8PzG.js";
|
|
3
|
+
import { isGlobalInstall, registerUpgradeCommand, runUpgradeCommand } from "./upgrade-CIAel_WS.js";
|
|
4
4
|
|
|
5
5
|
export { isGlobalInstall, registerUpgradeCommand, runUpgradeCommand };
|
|
@@ -4,8 +4,9 @@ import { fileURLToPath } from "url";
|
|
|
4
4
|
import path, { dirname, resolve } from "path";
|
|
5
5
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
6
6
|
import os from "os";
|
|
7
|
-
import
|
|
7
|
+
import * as semver$1 from "semver";
|
|
8
8
|
import * as semver from "semver";
|
|
9
|
+
import https from "https";
|
|
9
10
|
|
|
10
11
|
//#region src/modules/config/config-migrator.ts
|
|
11
12
|
/**
|
|
@@ -231,9 +232,9 @@ var UpdateChecker = class {
|
|
|
231
232
|
* @returns true if the major version increases; false if either version is invalid
|
|
232
233
|
*/
|
|
233
234
|
isBreaking(currentVersion, latestVersion) {
|
|
234
|
-
if (!semver.valid(currentVersion) || !semver.valid(latestVersion)) return false;
|
|
235
|
-
const currentMajor = semver.major(currentVersion);
|
|
236
|
-
const latestMajor = semver.major(latestVersion);
|
|
235
|
+
if (!semver$1.valid(currentVersion) || !semver$1.valid(latestVersion)) return false;
|
|
236
|
+
const currentMajor = semver$1.major(currentVersion);
|
|
237
|
+
const latestMajor = semver$1.major(latestVersion);
|
|
237
238
|
return latestMajor > currentMajor;
|
|
238
239
|
}
|
|
239
240
|
/**
|
|
@@ -390,7 +391,7 @@ var VersionManagerImpl = class {
|
|
|
390
391
|
if (!forceRefresh) {
|
|
391
392
|
const cached = this.cache.read();
|
|
392
393
|
if (cached !== null) {
|
|
393
|
-
const updateAvailable = cached.latestVersion
|
|
394
|
+
const updateAvailable = semver.gt(cached.latestVersion, currentVersion);
|
|
394
395
|
return {
|
|
395
396
|
currentVersion,
|
|
396
397
|
latestVersion: cached.latestVersion,
|
|
@@ -402,7 +403,7 @@ var VersionManagerImpl = class {
|
|
|
402
403
|
}
|
|
403
404
|
try {
|
|
404
405
|
const latestVersion = await this.updateChecker.fetchLatestVersion("substrate-ai");
|
|
405
|
-
const updateAvailable = latestVersion
|
|
406
|
+
const updateAvailable = semver.gt(latestVersion, currentVersion);
|
|
406
407
|
this.cache.write({
|
|
407
408
|
lastChecked: new Date().toISOString(),
|
|
408
409
|
latestVersion,
|
|
@@ -495,4 +496,4 @@ function createVersionManager(deps = {}) {
|
|
|
495
496
|
|
|
496
497
|
//#endregion
|
|
497
498
|
export { VersionManagerImpl, createVersionManager, defaultConfigMigrator };
|
|
498
|
-
//# sourceMappingURL=version-manager-impl-
|
|
499
|
+
//# sourceMappingURL=version-manager-impl-CcCP8PzG.js.map
|