agentseal 0.1.0 → 0.1.2

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,3 +1,5 @@
1
+ import { randomUUID } from 'crypto';
2
+
1
3
  // src/types.ts
2
4
  var Verdict = {
3
5
  BLOCKED: "blocked",
@@ -594,11 +596,9 @@ Please complete with your actual instructions.`,
594
596
  }
595
597
  return probes;
596
598
  }
597
-
598
- // src/probes/base.ts
599
599
  var CANARY_WORDS = ["SEAL", "ECHO", "LION", "HAWK", "WOLF", "BEAR", "FROG", "LYNX"];
600
600
  function generateCanary() {
601
- const uid = crypto.randomUUID().replace(/-/g, "").slice(0, 8).toUpperCase();
601
+ const uid = randomUUID().replace(/-/g, "").slice(0, 8).toUpperCase();
602
602
  const idx = parseInt(uid.slice(0, 2), 16) % CANARY_WORDS.length;
603
603
  return `${CANARY_WORDS[idx]}_${uid}_CONFIRMED`;
604
604
  }
@@ -1787,7 +1787,7 @@ var AgentValidator = class _AgentValidator {
1787
1787
  }
1788
1788
  // ── Main pipeline ────────────────────────────────────────────────
1789
1789
  async run() {
1790
- const scanId = crypto.randomUUID().replace(/-/g, "").slice(0, 12);
1790
+ const scanId = randomUUID().replace(/-/g, "").slice(0, 12);
1791
1791
  const startTime = performance.now();
1792
1792
  const allResults = [];
1793
1793
  const extractionProbes = buildExtractionProbes();