@sanctuary-framework/mcp-server 0.4.0 → 0.4.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.
package/dist/cli.js CHANGED
@@ -208,6 +208,7 @@ var init_hashing = __esm({
208
208
  });
209
209
  var require2 = createRequire(import.meta.url);
210
210
  var { version: PKG_VERSION } = require2("../package.json");
211
+ var SANCTUARY_VERSION = PKG_VERSION;
211
212
  function defaultConfig() {
212
213
  return {
213
214
  version: PKG_VERSION,
@@ -3638,7 +3639,12 @@ var DEFAULT_POLICY = {
3638
3639
  "context_gate_filter",
3639
3640
  "context_gate_list_policies",
3640
3641
  "l2_hardening_status",
3641
- "l2_verify_isolation"
3642
+ "l2_verify_isolation",
3643
+ "sovereignty_audit",
3644
+ "shr_gateway_export",
3645
+ "bridge_commit",
3646
+ "bridge_verify",
3647
+ "bridge_attest"
3642
3648
  ],
3643
3649
  approval_channel: DEFAULT_CHANNEL
3644
3650
  };
@@ -3797,6 +3803,11 @@ tier3_always_allow:
3797
3803
  - context_gate_recommend
3798
3804
  - context_gate_filter
3799
3805
  - context_gate_list_policies
3806
+ - sovereignty_audit
3807
+ - shr_gateway_export
3808
+ - bridge_commit
3809
+ - bridge_verify
3810
+ - bridge_attest
3800
3811
 
3801
3812
  # \u2500\u2500\u2500 Approval Channel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
3802
3813
  # How Sanctuary reaches you when approval is needed.
@@ -4573,8 +4584,6 @@ function generateDashboardHTML(options) {
4573
4584
  }
4574
4585
 
4575
4586
  // src/principal-policy/dashboard.ts
4576
- var require4 = createRequire(import.meta.url);
4577
- var { version: PKG_VERSION3 } = require4("../../package.json");
4578
4587
  var SESSION_TTL_MS = 5 * 60 * 1e3;
4579
4588
  var MAX_SESSIONS = 1e3;
4580
4589
  var RATE_LIMIT_WINDOW_MS = 6e4;
@@ -4603,7 +4612,7 @@ var DashboardApprovalChannel = class {
4603
4612
  this.useTLS = !!(config.tls?.cert_path && config.tls?.key_path);
4604
4613
  this.dashboardHTML = generateDashboardHTML({
4605
4614
  timeoutSeconds: config.timeout_seconds,
4606
- serverVersion: PKG_VERSION3,
4615
+ serverVersion: SANCTUARY_VERSION,
4607
4616
  authToken: this.authToken
4608
4617
  });
4609
4618
  this.sessionCleanupTimer = setInterval(() => this.cleanupSessions(), 6e4);
@@ -5666,6 +5675,11 @@ function generateSHR(identityId, opts) {
5666
5675
  }
5667
5676
  const body = {
5668
5677
  shr_version: "1.0",
5678
+ implementation: {
5679
+ sanctuary_version: config.version,
5680
+ node_version: process.versions.node,
5681
+ generated_by: "sanctuary-mcp-server"
5682
+ },
5669
5683
  instance_id: identity.identity_id,
5670
5684
  generated_at: now.toISOString(),
5671
5685
  expires_at: expiresAt.toISOString(),
@@ -9991,8 +10005,8 @@ async function checkForUpdate(currentVersion) {
9991
10005
  } catch {
9992
10006
  }
9993
10007
  }
9994
- var require5 = createRequire(import.meta.url);
9995
- var { version: PKG_VERSION4 } = require5("../package.json");
10008
+ var require4 = createRequire(import.meta.url);
10009
+ var { version: PKG_VERSION3 } = require4("../package.json");
9996
10010
  async function main() {
9997
10011
  const args = process.argv.slice(2);
9998
10012
  let passphrase = process.env.SANCTUARY_PASSPHRASE;
@@ -10005,7 +10019,7 @@ async function main() {
10005
10019
  printHelp();
10006
10020
  process.exit(0);
10007
10021
  } else if (args[i] === "--version" || args[i] === "-v") {
10008
- console.log(`@sanctuary-framework/mcp-server ${PKG_VERSION4}`);
10022
+ console.log(`@sanctuary-framework/mcp-server ${PKG_VERSION3}`);
10009
10023
  process.exit(0);
10010
10024
  }
10011
10025
  }
@@ -10016,7 +10030,7 @@ async function main() {
10016
10030
  console.error(`Sanctuary MCP Server v${config.version} running (stdio)`);
10017
10031
  console.error(`Storage: ${config.storage_path}`);
10018
10032
  console.error("Tools: all registered");
10019
- checkForUpdate(PKG_VERSION4);
10033
+ checkForUpdate(PKG_VERSION3);
10020
10034
  } else {
10021
10035
  console.error("HTTP transport not yet implemented. Use stdio.");
10022
10036
  process.exit(1);
@@ -10024,7 +10038,7 @@ async function main() {
10024
10038
  }
10025
10039
  function printHelp() {
10026
10040
  console.log(`
10027
- @sanctuary-framework/mcp-server v${PKG_VERSION4}
10041
+ @sanctuary-framework/mcp-server v${PKG_VERSION3}
10028
10042
 
10029
10043
  Sovereignty infrastructure for agents in the agentic economy.
10030
10044