@rk0429/agentic-relay 2.0.0 → 2.0.1

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/relay.mjs +21 -7
  2. package/package.json +1 -1
package/dist/relay.mjs CHANGED
@@ -6849,12 +6849,20 @@ function applyMigrations(db) {
6849
6849
  const insertApplied = db.prepare(
6850
6850
  "INSERT INTO schema_migrations(version, checksum, applied_at) VALUES (?, ?, ?)"
6851
6851
  );
6852
+ const updateChecksum = db.prepare(
6853
+ "UPDATE schema_migrations SET checksum = ? WHERE version = ?"
6854
+ );
6852
6855
  for (const migration of MIGRATIONS) {
6853
6856
  const checksum = checksumOf(migration.sql);
6854
6857
  const existing = getApplied.get(migration.version);
6855
6858
  if (existing) {
6856
6859
  if (existing.checksum !== checksum) {
6857
- throw new Error(`migration checksum mismatch: ${migration.version}`);
6860
+ const compatibles = COMPATIBLE_CHECKSUMS[migration.version];
6861
+ if (compatibles?.includes(existing.checksum)) {
6862
+ updateChecksum.run(checksum, migration.version);
6863
+ } else {
6864
+ throw new Error(`migration checksum mismatch: ${migration.version}`);
6865
+ }
6858
6866
  }
6859
6867
  continue;
6860
6868
  }
@@ -6912,7 +6920,7 @@ function openDatabase(options) {
6912
6920
  }
6913
6921
  return db;
6914
6922
  }
6915
- var MIGRATIONS;
6923
+ var MIGRATIONS, COMPATIBLE_CHECKSUMS;
6916
6924
  var init_db = __esm({
6917
6925
  "src/tasks/db.ts"() {
6918
6926
  "use strict";
@@ -7082,6 +7090,12 @@ CREATE INDEX IF NOT EXISTS idx_task_events_task_created_at ON task_events(task_i
7082
7090
  `
7083
7091
  }
7084
7092
  ];
7093
+ COMPATIBLE_CHECKSUMS = {
7094
+ "0001_initial": [
7095
+ "237ece3cd571e5b0a089d883b65fa631e316d62ec6fbb9246880c36fd444fe50"
7096
+ // agentic-tasks v0.x
7097
+ ]
7098
+ };
7085
7099
  }
7086
7100
  });
7087
7101
 
@@ -8293,7 +8307,7 @@ var init_server = __esm({
8293
8307
  this.agentEventStore
8294
8308
  );
8295
8309
  this.server = new McpServer(
8296
- { name: "agentic-relay", version: "2.0.0" },
8310
+ { name: "agentic-relay", version: "2.0.1" },
8297
8311
  createMcpServerOptions()
8298
8312
  );
8299
8313
  this.registerTools(this.server);
@@ -8779,7 +8793,7 @@ var init_server = __esm({
8779
8793
  sessionIdGenerator: () => randomUUID()
8780
8794
  });
8781
8795
  const server = new McpServer(
8782
- { name: "agentic-relay", version: "2.0.0" },
8796
+ { name: "agentic-relay", version: "2.0.1" },
8783
8797
  createMcpServerOptions()
8784
8798
  );
8785
8799
  this.registerTools(server);
@@ -13219,7 +13233,7 @@ function createMCPCommand(configManager2, registry2, sessionManager2, hooksEngin
13219
13233
  responseOutputDir,
13220
13234
  relayConfig
13221
13235
  );
13222
- await server.start({ transport, port, currentVersion: "2.0.0" });
13236
+ await server.start({ transport, port, currentVersion: "2.0.1" });
13223
13237
  }
13224
13238
  })
13225
13239
  },
@@ -13379,7 +13393,7 @@ function createVersionCommand(registry2) {
13379
13393
  description: "Show relay and backend versions"
13380
13394
  },
13381
13395
  async run() {
13382
- const relayVersion = "2.0.0";
13396
+ const relayVersion = "2.0.1";
13383
13397
  console.log(`agentic-relay v${relayVersion}`);
13384
13398
  console.log("");
13385
13399
  console.log("Backends:");
@@ -13776,7 +13790,7 @@ var subCommandNames = /* @__PURE__ */ new Set(["claude", "codex", "gemini", "upd
13776
13790
  var main = defineCommand11({
13777
13791
  meta: {
13778
13792
  name: "relay",
13779
- version: "2.0.0",
13793
+ version: "2.0.1",
13780
13794
  description: "Unified CLI proxy for Claude Code, Codex CLI, and Gemini CLI"
13781
13795
  },
13782
13796
  args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rk0429/agentic-relay",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Unified CLI proxy for Claude Code, Codex CLI, and Gemini CLI with MCP-based multi-layer sub-agent orchestration",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",