@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.cjs CHANGED
@@ -211,6 +211,7 @@ var init_hashing = __esm({
211
211
  });
212
212
  var require2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.cjs', document.baseURI).href)));
213
213
  var { version: PKG_VERSION } = require2("../package.json");
214
+ var SANCTUARY_VERSION = PKG_VERSION;
214
215
  function defaultConfig() {
215
216
  return {
216
217
  version: PKG_VERSION,
@@ -3641,7 +3642,12 @@ var DEFAULT_POLICY = {
3641
3642
  "context_gate_filter",
3642
3643
  "context_gate_list_policies",
3643
3644
  "l2_hardening_status",
3644
- "l2_verify_isolation"
3645
+ "l2_verify_isolation",
3646
+ "sovereignty_audit",
3647
+ "shr_gateway_export",
3648
+ "bridge_commit",
3649
+ "bridge_verify",
3650
+ "bridge_attest"
3645
3651
  ],
3646
3652
  approval_channel: DEFAULT_CHANNEL
3647
3653
  };
@@ -3800,6 +3806,11 @@ tier3_always_allow:
3800
3806
  - context_gate_recommend
3801
3807
  - context_gate_filter
3802
3808
  - context_gate_list_policies
3809
+ - sovereignty_audit
3810
+ - shr_gateway_export
3811
+ - bridge_commit
3812
+ - bridge_verify
3813
+ - bridge_attest
3803
3814
 
3804
3815
  # \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
3805
3816
  # How Sanctuary reaches you when approval is needed.
@@ -4576,8 +4587,6 @@ function generateDashboardHTML(options) {
4576
4587
  }
4577
4588
 
4578
4589
  // src/principal-policy/dashboard.ts
4579
- var require4 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.cjs', document.baseURI).href)));
4580
- var { version: PKG_VERSION3 } = require4("../../package.json");
4581
4590
  var SESSION_TTL_MS = 5 * 60 * 1e3;
4582
4591
  var MAX_SESSIONS = 1e3;
4583
4592
  var RATE_LIMIT_WINDOW_MS = 6e4;
@@ -4606,7 +4615,7 @@ var DashboardApprovalChannel = class {
4606
4615
  this.useTLS = !!(config.tls?.cert_path && config.tls?.key_path);
4607
4616
  this.dashboardHTML = generateDashboardHTML({
4608
4617
  timeoutSeconds: config.timeout_seconds,
4609
- serverVersion: PKG_VERSION3,
4618
+ serverVersion: SANCTUARY_VERSION,
4610
4619
  authToken: this.authToken
4611
4620
  });
4612
4621
  this.sessionCleanupTimer = setInterval(() => this.cleanupSessions(), 6e4);
@@ -5669,6 +5678,11 @@ function generateSHR(identityId, opts) {
5669
5678
  }
5670
5679
  const body = {
5671
5680
  shr_version: "1.0",
5681
+ implementation: {
5682
+ sanctuary_version: config.version,
5683
+ node_version: process.versions.node,
5684
+ generated_by: "sanctuary-mcp-server"
5685
+ },
5672
5686
  instance_id: identity.identity_id,
5673
5687
  generated_at: now.toISOString(),
5674
5688
  expires_at: expiresAt.toISOString(),
@@ -9994,8 +10008,8 @@ async function checkForUpdate(currentVersion) {
9994
10008
  } catch {
9995
10009
  }
9996
10010
  }
9997
- var require5 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.cjs', document.baseURI).href)));
9998
- var { version: PKG_VERSION4 } = require5("../package.json");
10011
+ var require4 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.cjs', document.baseURI).href)));
10012
+ var { version: PKG_VERSION3 } = require4("../package.json");
9999
10013
  async function main() {
10000
10014
  const args = process.argv.slice(2);
10001
10015
  let passphrase = process.env.SANCTUARY_PASSPHRASE;
@@ -10008,7 +10022,7 @@ async function main() {
10008
10022
  printHelp();
10009
10023
  process.exit(0);
10010
10024
  } else if (args[i] === "--version" || args[i] === "-v") {
10011
- console.log(`@sanctuary-framework/mcp-server ${PKG_VERSION4}`);
10025
+ console.log(`@sanctuary-framework/mcp-server ${PKG_VERSION3}`);
10012
10026
  process.exit(0);
10013
10027
  }
10014
10028
  }
@@ -10019,7 +10033,7 @@ async function main() {
10019
10033
  console.error(`Sanctuary MCP Server v${config.version} running (stdio)`);
10020
10034
  console.error(`Storage: ${config.storage_path}`);
10021
10035
  console.error("Tools: all registered");
10022
- checkForUpdate(PKG_VERSION4);
10036
+ checkForUpdate(PKG_VERSION3);
10023
10037
  } else {
10024
10038
  console.error("HTTP transport not yet implemented. Use stdio.");
10025
10039
  process.exit(1);
@@ -10027,7 +10041,7 @@ async function main() {
10027
10041
  }
10028
10042
  function printHelp() {
10029
10043
  console.log(`
10030
- @sanctuary-framework/mcp-server v${PKG_VERSION4}
10044
+ @sanctuary-framework/mcp-server v${PKG_VERSION3}
10031
10045
 
10032
10046
  Sovereignty infrastructure for agents in the agentic economy.
10033
10047