@responsibleai/agent-hooks 0.1.0-alpha.2 → 0.1.0-alpha.4

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/README.md CHANGED
@@ -45,3 +45,13 @@ integers beyond 2^53 before any guard can run, so this SDK cannot claim
45
45
  the `int64_json`/`bigint_json` CTK capabilities — string-encode
46
46
  64-bit identifiers at the adapter boundary. Non-finite numbers are
47
47
  rejected fail-closed by a pre-serialization scan.
48
+
49
+ ## Native module deployment
50
+
51
+ The npm package bundles the napi-rs native module (`*.node`) **for the
52
+ platform it was built on** — the published alpha ships `linux-x64-gnu`
53
+ only. On other platforms, install from source (needs a Rust toolchain):
54
+ `npm run build` produces the module for your host platform. Per-platform
55
+ `optionalDependencies` packages (the standard napi-rs multi-platform
56
+ layout) are planned. A platform mismatch fails at `require` time with a
57
+ module-load error naming the missing `.node` binary.
package/binding.d.ts CHANGED
@@ -1,18 +1,30 @@
1
- /* tslint:disable */
1
+ /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+ export declare function applyTransform(targetJson: string, path: string, valueJson: string): string
3
4
 
4
- /* auto-generated by NAPI-RS */
5
+ export declare function applyTransformCtx(ctxJson: string, path: string, valueJson: string): string
5
6
 
6
- export declare function specVersion(): string
7
7
  export declare function canonicalJson(valueJson: string): string
8
- export declare function contextIdentity(ctxJson: string): string
9
- export declare function validateVerdict(verdictJson: string): string
10
- export declare function applyTransform(targetJson: string, path: string, valueJson: string): string
11
- export declare function applyTransformCtx(ctxJson: string, path: string, valueJson: string): string
12
- export declare function validateTransformCtx(ctxJson: string, path: string, valueJson: string): string
13
- export declare function finalize(ctxJson: string, verdictJson: string, mode: string, optionsJson: string): string
8
+
14
9
  export declare function composeAggregate(compositionJson: string, verdictsJson: string): string
10
+
11
+ export declare function contextIdentity(ctxJson: string): string
12
+
13
+ export declare function ctkAssert(vectorJson: string, recordedJson: string, runRecordJson: string): string
14
+
15
15
  export declare function ctkScriptedIntercept(rulesJson: string, ctxJson: string): string
16
+
16
17
  export declare function ctkScriptedResolve(rulesJson: string, ctxJson: string, identity: string): string
18
+
17
19
  export declare function ctkShouldSkip(vectorJson: string, harnessCapsJson: string): string
18
- export declare function ctkAssert(vectorJson: string, recordedJson: string, runRecordJson: string): string
20
+
21
+ export declare function finalize(ctxJson: string, verdictJson: string, mode: string, optionsJson: string): string
22
+
23
+ export declare function specVersion(): string
24
+
25
+ /** §4/§6.3: envelope validation (fail closed, value-free detail). */
26
+ export declare function validateEnvelope(ctxJson: string): string
27
+
28
+ export declare function validateTransformCtx(ctxJson: string, path: string, valueJson: string): string
29
+
30
+ export declare function validateVerdict(verdictJson: string): string