protect-mcp 0.9.7 → 0.10.0

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/dist/chunk-3AVIMUNP.mjs +113 -0
  3. package/dist/{chunk-YM6SOJBR.mjs → chunk-622KQ4KW.mjs} +1 -1
  4. package/dist/{chunk-JQDVKZBN.mjs → chunk-HULPW5WR.mjs} +7 -2
  5. package/dist/{chunk-UWB5ALVO.mjs → chunk-K7AEEQWW.mjs} +17 -94
  6. package/dist/{chunk-WWPQNIVF.mjs → chunk-KRKZ2YX7.mjs} +2 -7
  7. package/dist/{chunk-MOXINIMB.mjs → chunk-SPDIFFGP.mjs} +2 -2
  8. package/dist/{chunk-G6X763MH.mjs → chunk-VWGRAUWI.mjs} +28 -30
  9. package/dist/{chunk-SETXVE2K.mjs → chunk-ZG6NAATA.mjs} +17 -14
  10. package/dist/{chunk-AUUAVWQM.mjs → chunk-ZLZPSUCY.mjs} +24 -6
  11. package/dist/{claim-RIXFOQM7.mjs → claim-MPXJRCFC.mjs} +4 -12
  12. package/dist/cli.js +289 -2936
  13. package/dist/cli.mjs +37 -31
  14. package/dist/demo-server.js +17 -14
  15. package/dist/demo-server.mjs +1 -1
  16. package/dist/hook-server.js +99 -374
  17. package/dist/hook-server.mjs +4 -6
  18. package/dist/{http-transport-VHD3YBT5.mjs → http-transport-JHGRFCYY.mjs} +3 -2
  19. package/dist/index.d.mts +95 -6
  20. package/dist/index.d.ts +95 -6
  21. package/dist/index.js +615 -3872
  22. package/dist/index.mjs +37 -1130
  23. package/dist/mcp-server.js +123 -13
  24. package/dist/mcp-server.mjs +23 -13
  25. package/dist/{report-5XCNW6FB.mjs → report-N5LPPSPF.mjs} +2 -1
  26. package/dist/{sample-6LRP73ZD.mjs → sample-O3KYZWOX.mjs} +4 -12
  27. package/dist/{signing-committed-TGWXSLAO.mjs → signing-committed-7VEKAJ4A.mjs} +1 -5
  28. package/package.json +5 -5
  29. package/dist/chunk-AYNQIEN7.mjs +0 -10
  30. package/dist/chunk-D733KAPG.mjs +0 -252
  31. package/dist/chunk-FFVJL3KQ.mjs +0 -2039
  32. package/dist/chunk-JIDDQUSQ.mjs +0 -568
  33. package/dist/ed25519-SQA3S2RV.mjs +0 -39
  34. package/dist/utils-6AYZFE5A.mjs +0 -77
@@ -1,20 +1,12 @@
1
1
  import {
2
2
  canonicalJson
3
- } from "./chunk-WWPQNIVF.mjs";
4
- import {
5
- sha256
6
- } from "./chunk-AYNQIEN7.mjs";
7
- import {
8
- ed25519
9
- } from "./chunk-FFVJL3KQ.mjs";
10
- import "./chunk-JIDDQUSQ.mjs";
11
- import {
12
- bytesToHex,
13
- hexToBytes
14
- } from "./chunk-D733KAPG.mjs";
3
+ } from "./chunk-KRKZ2YX7.mjs";
15
4
  import "./chunk-PQJP2ZCI.mjs";
16
5
 
17
6
  // src/claim.ts
7
+ import { sha256 } from "@noble/hashes/sha256";
8
+ import { bytesToHex, hexToBytes } from "@noble/hashes/utils";
9
+ import { ed25519 } from "@noble/curves/ed25519";
18
10
  var CLAIM_TYPE = "scopeblind.claim.v1";
19
11
  function sha256Hex(input) {
20
12
  const bytes = typeof input === "string" ? new TextEncoder().encode(input) : input;