@myagentroam/node 0.9.121 → 0.9.122

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.
Files changed (2) hide show
  1. package/dist/database.js +7 -3
  2. package/package.json +4 -4
package/dist/database.js CHANGED
@@ -7,7 +7,7 @@ import { mcpCatalogEntrySchema, mcpInstallationConfigurationSchema, mcpRuntimeDe
7
7
  import { assertNodeSchemaV13, NODE_SCHEMA_V13, NODE_SCHEMA_VERSION_V13 } from './migrations/v013.js';
8
8
  // Future released migrations must be contiguous, immutable and begin at v14; Demo is excluded.
9
9
  export const NODE_SCHEMA_MIGRATIONS = [];
10
- const LEGACY_NODE_SCHEMA_V12_HISTORY = Array.from({ length: 12 }, (_, index) => index + 1);
10
+ const LEGACY_NODE_SCHEMA_V12 = NODE_SCHEMA_VERSION_V13 - 1;
11
11
  export class NodeDatabase {
12
12
  now;
13
13
  raw;
@@ -366,8 +366,12 @@ export function migrate(database, catalog = NODE_SCHEMA_MIGRATIONS) {
366
366
  const versions = database
367
367
  .prepare('SELECT version FROM node_schema_migrations ORDER BY version')
368
368
  .all().map((row) => numberValue(row, 'version'));
369
- if (versions.length === LEGACY_NODE_SCHEMA_V12_HISTORY.length &&
370
- versions.every((version, index) => version === LEGACY_NODE_SCHEMA_V12_HISTORY[index])) {
369
+ const firstLegacyVersion = versions[0];
370
+ if (firstLegacyVersion !== undefined &&
371
+ firstLegacyVersion >= 1 &&
372
+ firstLegacyVersion <= 4 &&
373
+ versions.length === LEGACY_NODE_SCHEMA_V12 - firstLegacyVersion + 1 &&
374
+ versions.every((version, index) => version === firstLegacyVersion + index)) {
371
375
  // v13 is a history-compaction baseline. The final v12 schema is still the v13 schema;
372
376
  // validate it before atomically replacing only the migration ledger.
373
377
  assertNodeSchemaV13(database);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.9.121",
3
+ "version": "0.9.122",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "license": "Apache-2.0 AND GPL-2.0-or-later",
6
6
  "type": "module",
@@ -30,9 +30,9 @@
30
30
  "npm": "11.12.1",
31
31
  "ws": "^8.21.3",
32
32
  "zod": "4.4.3",
33
- "@myagentroam/agent": "0.9.121",
34
- "@myagentroam/code-navigation": "0.9.121",
35
- "@myagentroam/protocol": "0.9.121"
33
+ "@myagentroam/agent": "0.9.122",
34
+ "@myagentroam/code-navigation": "0.9.122",
35
+ "@myagentroam/protocol": "0.9.122"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/ws": "^8.18.1"