@eyeoverthink/sva-gate 2.0.2 → 2.1.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/src/index.js CHANGED
@@ -1,47 +1,49 @@
1
- // @eyeoverthink/sva-gate — Zero-dependency 3-layer verification SDK for AI agents.
2
- export {
3
- canonical,
4
- sha256Hex,
5
- isValidRfc3339,
6
- generateEd25519Keypair,
7
- keypairFromSeedHex,
8
- mintSvaEr1,
9
- evaluateSvaEr1,
10
- evaluateAer1V04,
11
- verifyAnyReceipt,
12
- evaluateOpeg1,
13
- isSmallOrderKey,
14
- } from './receipt.js';
15
-
16
- export {
17
- detect,
18
- SealSession,
19
- MembraneLeak,
20
- MEMBRANE_NOTE,
21
- scanInjection,
22
- stripHidden,
23
- redactSecrets,
24
- wrapUntrusted,
25
- screenGoal,
26
- StreamSealGuard,
27
- tailHoldLength,
28
- SECRET_PREFIXES,
29
- } from './membrane.js';
30
-
31
- export {
32
- JEV_SEMANTICS,
33
- JEV_CHOICES,
34
- wilsonLower95,
35
- flatText,
36
- extractFactualTerms,
37
- evaluateSvaJev1,
38
- } from './lib/judge-verify.js';
39
-
40
- export {
41
- induce,
42
- leaveOneOut,
43
- applySpec,
44
- novelWording,
45
- } from './lib/binder-induction.js';
46
-
47
- export { createMcpHandler, MCP_TOOLS, startStdioMcpServer } from './mcp-server.js';
1
+ // @eyeoverthink/sva-gate — Zero-dependency 3-layer verification SDK for AI agents.
2
+ export {
3
+ canonical,
4
+ sha256Hex,
5
+ isValidRfc3339,
6
+ generateEd25519Keypair,
7
+ keypairFromSeedHex,
8
+ mintSvaEr1,
9
+ evaluateSvaEr1,
10
+ evaluateAer1V04,
11
+ verifyAnyReceipt,
12
+ evaluateOpeg1,
13
+ isSmallOrderKey,
14
+ } from './receipt.js';
15
+
16
+ export {
17
+ detect,
18
+ SealSession,
19
+ MembraneLeak,
20
+ MEMBRANE_NOTE,
21
+ scanInjection,
22
+ stripHidden,
23
+ redactSecrets,
24
+ wrapUntrusted,
25
+ screenGoal,
26
+ StreamSealGuard,
27
+ tailHoldLength,
28
+ SECRET_PREFIXES,
29
+ } from './membrane.js';
30
+
31
+ export {
32
+ JEV_SEMANTICS,
33
+ JEV_CHOICES,
34
+ wilsonLower95,
35
+ flatText,
36
+ extractFactualTerms,
37
+ evaluateSvaJev1,
38
+ } from './lib/judge-verify.js';
39
+
40
+ export {
41
+ induce,
42
+ leaveOneOut,
43
+ applySpec,
44
+ explainApply,
45
+ modifierWords,
46
+ novelWording,
47
+ } from './lib/binder-induction.js';
48
+
49
+ export { createMcpHandler, MCP_TOOLS, startStdioMcpServer } from './mcp-server.js';
@@ -3,12 +3,15 @@ export {
3
3
  leaveOneOut,
4
4
  applySpec,
5
5
  novelWording,
6
+ explainApply,
7
+ modifierWords,
6
8
  } from '../index.js';
7
9
 
8
10
  export function numberTokens(task: string): Array<Record<string, unknown>>;
9
11
  export const shapeOf: (toks: Array<{ kind: string }>) => string;
10
12
  export function questionWords(task: string): string[];
11
- export function learnBlocks(pos: Array<{ task: string }>, neg: Array<{ task: string }>): unknown[];
12
- export function contested(pos: Array<{ task: string }>, task: string): boolean;
13
- export function wordingOf(task: string, kinds: string[]): string;
14
- export function compileSpec(spec: Record<string, unknown>): (task: string) => Record<string, unknown> | null;
13
+ export function learnBlocks(pos: Array<{ task: string }>, neg: Array<{ task: string }>): { blockWords: string[]; contextBlock: { kinds: string[]; words: string[] } };
14
+ export function contested(pos: Array<{ task: string }>, task: string): { words: string[]; examples: Array<{ task: string }>; tooMany?: number };
15
+ export function wordingOf(task: string, kinds: string[]): string[];
16
+ /** Source text of a self-contained `function bind(task)`. */
17
+ export function compileSpec(spec: Record<string, unknown>): string;