agentverify 1.3.0 → 1.6.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.
package/dist/sdk.d.ts CHANGED
@@ -2,6 +2,27 @@ interface ScanInput {
2
2
  content: string;
3
3
  fileName?: string;
4
4
  platform?: string;
5
+ /** One of the built-in policy profile ids (e.g. "financial-agent") — evaluated server-side against this scan's evidence, in addition to (never instead of) the scanner's own verdict. */
6
+ policyId?: string;
7
+ }
8
+ interface ArtifactFingerprint {
9
+ artifactHash: string;
10
+ artifactHashAlgorithm: string;
11
+ artifactFingerprintVersion: string;
12
+ }
13
+ interface ReportIntegrity {
14
+ reportHash: string;
15
+ algorithm: string;
16
+ schemaVersion: string;
17
+ scannerVersion: string;
18
+ scanId: string;
19
+ timestamp: string;
20
+ }
21
+ interface SignedAttestation {
22
+ payload: Record<string, unknown>;
23
+ signature: string;
24
+ algorithm: string;
25
+ publicKey: Record<string, unknown>;
5
26
  }
6
27
  type Verdict = 'VERIFIED' | 'NOT_VERIFIED' | 'NOT_ASSESSED';
7
28
  type RiskLevel = 'Low Risk' | 'Moderate Risk' | 'High Risk';
@@ -31,6 +52,8 @@ interface Finding {
31
52
  recommendedFix: string;
32
53
  fixCode?: string;
33
54
  quickFix?: string;
55
+ /** Set by the API when this finding has a fix your plan does not include (Pro). */
56
+ fixLocked?: boolean;
34
57
  compliance?: {
35
58
  owasp?: string[];
36
59
  nist?: string[];
@@ -103,6 +126,11 @@ interface ScanResult {
103
126
  };
104
127
  saved: boolean;
105
128
  reportUrl?: string | null;
129
+ artifactFingerprint?: ArtifactFingerprint;
130
+ reportIntegrity?: ReportIntegrity;
131
+ policyProfile?: string | null;
132
+ policyResult?: string | null;
133
+ attestation?: SignedAttestation | null;
106
134
  }
107
135
  interface ScanOptions {
108
136
  apiKey: string;
package/dist/sdk.js CHANGED
@@ -73,7 +73,12 @@ function normalizeScanResult(data) {
73
73
  scanDuration: 0
74
74
  },
75
75
  saved: data.saved === true,
76
- reportUrl: data.reportUrl ?? null
76
+ reportUrl: data.reportUrl ?? null,
77
+ artifactFingerprint: data.artifactFingerprint,
78
+ reportIntegrity: data.reportIntegrity,
79
+ policyProfile: data.policyProfile ?? null,
80
+ policyResult: data.policyResult ?? null,
81
+ attestation: data.attestation ?? null
77
82
  };
78
83
  }
79
84
  async function scan(input, options) {
@@ -99,7 +104,8 @@ async function scan(input, options) {
99
104
  body: JSON.stringify({
100
105
  content: input.content,
101
106
  fileName: input.fileName ?? "agent",
102
- platform: input.platform
107
+ platform: input.platform,
108
+ policyId: input.policyId
103
109
  }),
104
110
  signal: controller.signal
105
111
  });
package/dist/sdk.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  scan,
3
3
  scanMany
4
- } from "./chunk-PY3NS2YH.mjs";
4
+ } from "./chunk-XVA2M2HS.mjs";
5
5
  export {
6
6
  scan,
7
7
  scanMany
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "agentverify",
3
- "version": "1.3.0",
3
+ "version": "1.6.0",
4
4
  "description": "CLI and SDK for Agent Verify — execution trust analysis for AI agents",
5
5
  "bin": {
6
- "agentverify": "./dist/cli.js"
6
+ "agentverify": "dist/cli.js"
7
7
  },
8
8
  "main": "./dist/sdk.js",
9
9
  "module": "./dist/sdk.mjs",
@@ -16,11 +16,11 @@
16
16
  },
17
17
  "./cli": "./dist/cli.js"
18
18
  },
19
- "files": ["dist", "README.md", "LICENSE"],
19
+ "files": ["dist", "README.md", "LICENSE", "CHANGELOG.md"],
20
20
  "scripts": {
21
21
  "build": "tsup src/cli.ts src/sdk.ts --format cjs,esm --dts --clean",
22
22
  "dev": "tsup src/cli.ts src/sdk.ts --format cjs,esm --dts --watch",
23
- "test": "npm run build && node test/cli.test.mjs",
23
+ "test": "npm run build && node test/cli.test.mjs && node --test test/profile.test.mjs",
24
24
  "prepublishOnly": "npm run build"
25
25
  },
26
26
  "engines": { "node": ">=18.0.0" },