@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/index.cjs CHANGED
@@ -209,6 +209,7 @@ var init_hashing = __esm({
209
209
  });
210
210
  var require2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
211
211
  var { version: PKG_VERSION } = require2("../package.json");
212
+ var SANCTUARY_VERSION = PKG_VERSION;
212
213
  function defaultConfig() {
213
214
  return {
214
215
  version: PKG_VERSION,
@@ -3639,7 +3640,12 @@ var DEFAULT_POLICY = {
3639
3640
  "context_gate_filter",
3640
3641
  "context_gate_list_policies",
3641
3642
  "l2_hardening_status",
3642
- "l2_verify_isolation"
3643
+ "l2_verify_isolation",
3644
+ "sovereignty_audit",
3645
+ "shr_gateway_export",
3646
+ "bridge_commit",
3647
+ "bridge_verify",
3648
+ "bridge_attest"
3643
3649
  ],
3644
3650
  approval_channel: DEFAULT_CHANNEL
3645
3651
  };
@@ -3798,6 +3804,11 @@ tier3_always_allow:
3798
3804
  - context_gate_recommend
3799
3805
  - context_gate_filter
3800
3806
  - context_gate_list_policies
3807
+ - sovereignty_audit
3808
+ - shr_gateway_export
3809
+ - bridge_commit
3810
+ - bridge_verify
3811
+ - bridge_attest
3801
3812
 
3802
3813
  # \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
3803
3814
  # How Sanctuary reaches you when approval is needed.
@@ -4592,8 +4603,6 @@ function generateDashboardHTML(options) {
4592
4603
  }
4593
4604
 
4594
4605
  // src/principal-policy/dashboard.ts
4595
- var require4 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
4596
- var { version: PKG_VERSION3 } = require4("../../package.json");
4597
4606
  var SESSION_TTL_MS = 5 * 60 * 1e3;
4598
4607
  var MAX_SESSIONS = 1e3;
4599
4608
  var RATE_LIMIT_WINDOW_MS = 6e4;
@@ -4622,7 +4631,7 @@ var DashboardApprovalChannel = class {
4622
4631
  this.useTLS = !!(config.tls?.cert_path && config.tls?.key_path);
4623
4632
  this.dashboardHTML = generateDashboardHTML({
4624
4633
  timeoutSeconds: config.timeout_seconds,
4625
- serverVersion: PKG_VERSION3,
4634
+ serverVersion: SANCTUARY_VERSION,
4626
4635
  authToken: this.authToken
4627
4636
  });
4628
4637
  this.sessionCleanupTimer = setInterval(() => this.cleanupSessions(), 6e4);
@@ -5685,6 +5694,11 @@ function generateSHR(identityId, opts) {
5685
5694
  }
5686
5695
  const body = {
5687
5696
  shr_version: "1.0",
5697
+ implementation: {
5698
+ sanctuary_version: config.version,
5699
+ node_version: process.versions.node,
5700
+ generated_by: "sanctuary-mcp-server"
5701
+ },
5688
5702
  instance_id: identity.identity_id,
5689
5703
  generated_at: now.toISOString(),
5690
5704
  expires_at: expiresAt.toISOString(),