negotium 0.2.26 → 0.2.27

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.
@@ -1016,7 +1016,7 @@ var init_claude_registry = __esm(() => {
1016
1016
  });
1017
1017
 
1018
1018
  // ../../packages/core/src/version.ts
1019
- var NEGOTIUM_VERSION = "0.2.26";
1019
+ var NEGOTIUM_VERSION = "0.2.27";
1020
1020
 
1021
1021
  // ../../packages/core/src/agents/codex-native-multi-agent.ts
1022
1022
  import { spawn as spawn2 } from "child_process";
@@ -4347,7 +4347,7 @@ function backfillTopicSurfaces() {
4347
4347
  logger.info({ surface }, "api_topics: surface backfilled");
4348
4348
  }
4349
4349
  function renameSurfaceTitleCollisions() {
4350
- const rows = db.query("SELECT id, title, kind, surface FROM api_topics ORDER BY created_at ASC, rowid ASC").all();
4350
+ const rows = db.query("SELECT id, title, kind, surface FROM api_topics WHERE kind != 'manager' ORDER BY created_at ASC, rowid ASC").all();
4351
4351
  const taken = new Set;
4352
4352
  const update = db.query("UPDATE api_topics SET title = ? WHERE id = ?");
4353
4353
  for (const row of rows) {
@@ -4572,12 +4572,10 @@ function findTopicTitleConflict(title, kind, opts = {}) {
4572
4572
  if (general)
4573
4573
  return rowToDto2(general);
4574
4574
  }
4575
- const params = [wanted, surface];
4576
- let sql = "SELECT * FROM api_topics WHERE LOWER(TRIM(title)) = ? AND surface = ?";
4577
- if (kind !== "manager") {
4578
- sql += " AND (kind = ? OR id = ?)";
4579
- params.push(kind, GENERAL_TOPIC_ID);
4580
- }
4575
+ if (kind === "manager")
4576
+ return null;
4577
+ const params = [wanted, surface, kind, GENERAL_TOPIC_ID];
4578
+ let sql = "SELECT * FROM api_topics WHERE LOWER(TRIM(title)) = ? AND surface = ? AND (kind = ? OR id = ?)";
4581
4579
  if (opts.excludeTopicId) {
4582
4580
  sql += " AND id != ?";
4583
4581
  params.push(opts.excludeTopicId);
@@ -21078,4 +21076,4 @@ export {
21078
21076
  createAgentHealthMcpServer
21079
21077
  };
21080
21078
 
21081
- //# debugId=A3645A70D023CC9C64756E2164756E21
21079
+ //# debugId=C765C65C8A1E78BE64756E2164756E21