@soverenia/agent-guard 1.0.0 → 1.0.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/dist/index.d.ts CHANGED
@@ -46,6 +46,8 @@ export declare class AgentGuard {
46
46
  */
47
47
  setAiSummary(summary: string): void;
48
48
  getLocalContext(): LocalContext;
49
+ /** Lokální Ed25519 verifikace podpisu proti veřejnému JWKS (REQ-062) */
50
+ verify(res: Pick<CheckPackageResponse, "authoritative" | "signature" | "key_id">): Promise<boolean>;
49
51
  /**
50
52
  * Sestaví finální odpověď pro vývojáře: authoritative (frozen) + lokální kontext agenta
51
53
  */
package/dist/index.js CHANGED
@@ -84,6 +84,10 @@ export class AgentGuard {
84
84
  getLocalContext() {
85
85
  return { ...this.localContext };
86
86
  }
87
+ /** Lokální Ed25519 verifikace podpisu proti veřejnému JWKS (REQ-062) */
88
+ async verify(res) {
89
+ return verifyResponse(res, await fetchJwks(this.baseUrl));
90
+ }
87
91
  /**
88
92
  * Sestaví finální odpověď pro vývojáře: authoritative (frozen) + lokální kontext agenta
89
93
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soverenia/agent-guard",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Agent Guard for Soverenia — deterministic SAFE/UPGRADE/AVOID verdicts for every package your AI agent installs (MCP stdio server + SDK + lockfile scanner)",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",