@arcbridge/mcp-server 0.1.2 → 0.1.3

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/index.js CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ // src/suppress-warnings.ts
4
+ import { suppressSqliteWarning } from "@arcbridge/core";
5
+ suppressSqliteWarning();
6
+
3
7
  // src/index.ts
4
8
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
9
 
@@ -2713,7 +2717,8 @@ import {
2713
2717
  verifyScenarios,
2714
2718
  loadConfig as loadConfig2,
2715
2719
  refreshFromDocs as refreshFromDocs5,
2716
- syncPhaseToYaml
2720
+ syncPhaseToYaml,
2721
+ transaction
2717
2722
  } from "@arcbridge/core";
2718
2723
  function registerCompletePhase(server, ctx) {
2719
2724
  server.tool(
@@ -2870,7 +2875,7 @@ function registerCompletePhase(server, ctx) {
2870
2875
  const nextPhase = db.prepare(
2871
2876
  "SELECT id, name FROM phases WHERE phase_number = ? AND status = 'planned'"
2872
2877
  ).get(phase.phase_number + 1);
2873
- const transition = db.transaction(() => {
2878
+ transaction(db, () => {
2874
2879
  db.prepare(
2875
2880
  "UPDATE phases SET status = 'complete', completed_at = ?, gate_status = ? WHERE id = ?"
2876
2881
  ).run(now, gateStatus, phase.id);
@@ -2880,7 +2885,6 @@ function registerCompletePhase(server, ctx) {
2880
2885
  ).run(now, nextPhase.id);
2881
2886
  }
2882
2887
  });
2883
- transition();
2884
2888
  const projectRoot = ctx.projectRoot ?? params.target_dir;
2885
2889
  syncPhaseToYaml(projectRoot, phase.id, "complete", void 0, now);
2886
2890
  if (nextPhase) {