@decionis/agentsafe 0.2.0 → 0.2.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/README.md +10 -1
- package/dist/Cli.js +16 -7
- package/dist/Cli.js.map +1 -1
- package/dist/Index.d.ts +5 -1
- package/dist/Index.d.ts.map +1 -1
- package/dist/Index.js +5 -1
- package/dist/Index.js.map +1 -1
- package/dist/cli/CliProcess.d.ts +2 -0
- package/dist/cli/CliProcess.d.ts.map +1 -1
- package/dist/cli/CliProcess.js +9 -1
- package/dist/cli/CliProcess.js.map +1 -1
- package/dist/cli/Commands.d.ts +1 -1
- package/dist/cli/Commands.d.ts.map +1 -1
- package/dist/cli/Commands.js +5 -0
- package/dist/cli/Commands.js.map +1 -1
- package/dist/cli/Credentials.d.ts.map +1 -1
- package/dist/cli/Credentials.js +8 -1
- package/dist/cli/Credentials.js.map +1 -1
- package/dist/cli/Help.d.ts.map +1 -1
- package/dist/cli/Help.js +4 -1
- package/dist/cli/Help.js.map +1 -1
- package/dist/cli/Intercept.d.ts +66 -0
- package/dist/cli/Intercept.d.ts.map +1 -0
- package/dist/cli/Intercept.js +374 -0
- package/dist/cli/Intercept.js.map +1 -0
- package/dist/cli/Login.d.ts +7 -2
- package/dist/cli/Login.d.ts.map +1 -1
- package/dist/cli/Login.js +106 -3
- package/dist/cli/Login.js.map +1 -1
- package/dist/cli/Status.d.ts.map +1 -1
- package/dist/cli/Status.js +18 -1
- package/dist/cli/Status.js.map +1 -1
- package/dist/cli/TestCommand.d.ts +33 -2
- package/dist/cli/TestCommand.d.ts.map +1 -1
- package/dist/cli/TestCommand.js +130 -4
- package/dist/cli/TestCommand.js.map +1 -1
- package/dist/cli/VerifyIntent.d.ts +28 -0
- package/dist/cli/VerifyIntent.d.ts.map +1 -0
- package/dist/cli/VerifyIntent.js +136 -0
- package/dist/cli/VerifyIntent.js.map +1 -0
- package/dist/egress/TransparentDial.d.ts +18 -0
- package/dist/egress/TransparentDial.d.ts.map +1 -0
- package/dist/egress/TransparentDial.js +33 -0
- package/dist/egress/TransparentDial.js.map +1 -0
- package/dist/gateway/Activation.d.ts +10 -3
- package/dist/gateway/Activation.d.ts.map +1 -1
- package/dist/gateway/Activation.js +17 -2
- package/dist/gateway/Activation.js.map +1 -1
- package/dist/gateway/BoundaryTest.d.ts +54 -0
- package/dist/gateway/BoundaryTest.d.ts.map +1 -1
- package/dist/gateway/BoundaryTest.js +19 -7
- package/dist/gateway/BoundaryTest.js.map +1 -1
- package/dist/gateway/Gateway.d.ts +39 -0
- package/dist/gateway/Gateway.d.ts.map +1 -1
- package/dist/gateway/Gateway.js +62 -4
- package/dist/gateway/Gateway.js.map +1 -1
- package/dist/gateway/GatewayConfig.d.ts +7 -0
- package/dist/gateway/GatewayConfig.d.ts.map +1 -1
- package/dist/gateway/GatewayConfig.js +12 -7
- package/dist/gateway/GatewayConfig.js.map +1 -1
- package/dist/gateway/GatewayReport.d.ts +2 -1
- package/dist/gateway/GatewayReport.d.ts.map +1 -1
- package/dist/gateway/GatewayReport.js +3 -0
- package/dist/gateway/GatewayReport.js.map +1 -1
- package/dist/gateway/HostedBoundaryTest.d.ts +118 -0
- package/dist/gateway/HostedBoundaryTest.d.ts.map +1 -0
- package/dist/gateway/HostedBoundaryTest.js +235 -0
- package/dist/gateway/HostedBoundaryTest.js.map +1 -0
- package/dist/gateway/InstallSurface.d.ts +26 -0
- package/dist/gateway/InstallSurface.d.ts.map +1 -0
- package/dist/gateway/InstallSurface.js +53 -0
- package/dist/gateway/InstallSurface.js.map +1 -0
- package/dist/gateway/ShadowLedger.d.ts +74 -0
- package/dist/gateway/ShadowLedger.d.ts.map +1 -0
- package/dist/gateway/ShadowLedger.js +112 -0
- package/dist/gateway/ShadowLedger.js.map +1 -0
- package/dist/http/GatewayHttpServer.d.ts +7 -0
- package/dist/http/GatewayHttpServer.d.ts.map +1 -1
- package/dist/http/GatewayHttpServer.js +8 -0
- package/dist/http/GatewayHttpServer.js.map +1 -1
- package/dist/http/InterceptGovernor.d.ts +71 -0
- package/dist/http/InterceptGovernor.d.ts.map +1 -0
- package/dist/http/InterceptGovernor.js +128 -0
- package/dist/http/InterceptGovernor.js.map +1 -0
- package/dist/http/InterceptServer.d.ts +124 -0
- package/dist/http/InterceptServer.d.ts.map +1 -0
- package/dist/http/InterceptServer.js +303 -0
- package/dist/http/InterceptServer.js.map +1 -0
- package/dist/intercept/ClientHello.d.ts +37 -0
- package/dist/intercept/ClientHello.d.ts.map +1 -0
- package/dist/intercept/ClientHello.js +216 -0
- package/dist/intercept/ClientHello.js.map +1 -0
- package/dist/intercept/Der.d.ts +59 -0
- package/dist/intercept/Der.d.ts.map +1 -0
- package/dist/intercept/Der.js +140 -0
- package/dist/intercept/Der.js.map +1 -0
- package/dist/intercept/Destination.d.ts +35 -0
- package/dist/intercept/Destination.d.ts.map +1 -0
- package/dist/intercept/Destination.js +66 -0
- package/dist/intercept/Destination.js.map +1 -0
- package/dist/intercept/InterceptLedger.d.ts +103 -0
- package/dist/intercept/InterceptLedger.d.ts.map +1 -0
- package/dist/intercept/InterceptLedger.js +101 -0
- package/dist/intercept/InterceptLedger.js.map +1 -0
- package/dist/intercept/LeafIssuer.d.ts +40 -0
- package/dist/intercept/LeafIssuer.d.ts.map +1 -0
- package/dist/intercept/LeafIssuer.js +124 -0
- package/dist/intercept/LeafIssuer.js.map +1 -0
- package/dist/intercept/RequestHead.d.ts +48 -0
- package/dist/intercept/RequestHead.d.ts.map +1 -0
- package/dist/intercept/RequestHead.js +163 -0
- package/dist/intercept/RequestHead.js.map +1 -0
- package/dist/verify/VerifyIntentVector.d.ts +25 -0
- package/dist/verify/VerifyIntentVector.d.ts.map +1 -0
- package/dist/verify/VerifyIntentVector.js +188 -0
- package/dist/verify/VerifyIntentVector.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const INTENT_PROTOCOL = "agent-safe.intent/1";
|
|
2
|
+
export type IntentVectorFindingCode = "DOCUMENT_UNRECOGNISED" | "BINDING_INVALID" | "CANONICAL_MISMATCH" | "HASH_MISMATCH" | "MUTATION_INVALID" | "MUTATION_CANONICAL_MISMATCH" | "MUTATION_HASH_MISMATCH" | "MUTATION_NOT_DISTINCT" | "MUTATION_PATH_UNCHANGED";
|
|
3
|
+
export interface IntentVectorFinding {
|
|
4
|
+
readonly code: IntentVectorFindingCode;
|
|
5
|
+
/** The mutation's path, or the schema path that failed; null for the base. */
|
|
6
|
+
readonly path: string | null;
|
|
7
|
+
readonly expected: string | null;
|
|
8
|
+
readonly computed: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface IntentVectorReport {
|
|
11
|
+
readonly protocol: typeof INTENT_PROTOCOL;
|
|
12
|
+
/** `binding` for a whole intent binding, `canonical` for a bytes-and-digest case. */
|
|
13
|
+
readonly kind: "binding" | "canonical" | "unrecognised";
|
|
14
|
+
readonly ok: boolean;
|
|
15
|
+
/** Whether the document stated a hash to reproduce, or only asked for one. */
|
|
16
|
+
readonly pinned: boolean;
|
|
17
|
+
readonly canonical_json: string | null;
|
|
18
|
+
readonly intent_hash: string | null;
|
|
19
|
+
/** Mutations the document carried, and how many distinct hashes the whole vector came to. */
|
|
20
|
+
readonly mutations: number;
|
|
21
|
+
readonly hashes: number;
|
|
22
|
+
readonly findings: readonly IntentVectorFinding[];
|
|
23
|
+
}
|
|
24
|
+
export declare function verifyIntentVector(document: unknown): IntentVectorReport;
|
|
25
|
+
//# sourceMappingURL=VerifyIntentVector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyIntentVector.d.ts","sourceRoot":"","sources":["../../src/verify/VerifyIntentVector.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,GACvB,iBAAiB,GACjB,oBAAoB,GACpB,eAAe,GACf,kBAAkB,GAClB,6BAA6B,GAC7B,wBAAwB,GACxB,uBAAuB,GACvB,yBAAyB,CAAC;AAE9B,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAC;IACvC,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,OAAO,eAAe,CAAC;IAC1C,qFAAqF;IACrF,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,cAAc,CAAC;IACxD,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,6FAA6F;IAC7F,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS,mBAAmB,EAAE,CAAC;CACnD;AAsDD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,OAAO,GAAG,kBAAkB,CA0HxE"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The offline half of Agent-Safe Intent conformance: given a vector from the
|
|
3
|
+
* corpus under `conformance/`, or a binding another implementation produced,
|
|
4
|
+
* recompute the canonical bytes and the hash with this runtime's own
|
|
5
|
+
* canonicalizer and say whether they agree. Two kinds of vector exist. A
|
|
6
|
+
* `binding` vector holds a whole `agent-safe.intent/1` binding, which must
|
|
7
|
+
* also parse under the strict schema, and may carry `mutations`: single-field
|
|
8
|
+
* changes that must each hash differently from the base and from one
|
|
9
|
+
* another, which is the Compromised Principal requirement. A `canonical`
|
|
10
|
+
* vector holds any JSON object and pins only the bytes and the digest, which
|
|
11
|
+
* is how the Unicode, number and key-order cases are stated. A document with
|
|
12
|
+
* no expected hash is a binding to describe: its canonical bytes and hash are
|
|
13
|
+
* computed and returned, so an implementer can compare them with theirs.
|
|
14
|
+
*/
|
|
15
|
+
import { createHash } from "node:crypto";
|
|
16
|
+
import { AuthorityIntentBindingSchema, CanonicalIntentHasher, } from "@decionis/agent-safe-pipeline";
|
|
17
|
+
export const INTENT_PROTOCOL = "agent-safe.intent/1";
|
|
18
|
+
const hasher = new CanonicalIntentHasher();
|
|
19
|
+
function isObject(value) {
|
|
20
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
21
|
+
}
|
|
22
|
+
function digest(canonical) {
|
|
23
|
+
return `sha256:${createHash("sha256").update(canonical, "utf8").digest("hex")}`;
|
|
24
|
+
}
|
|
25
|
+
/** The value at a dotted path, or undefined; arrays are not addressed. */
|
|
26
|
+
function valueAt(value, path) {
|
|
27
|
+
let current = value;
|
|
28
|
+
for (const key of path.split(".")) {
|
|
29
|
+
if (!isObject(current))
|
|
30
|
+
return undefined;
|
|
31
|
+
current = current[key];
|
|
32
|
+
}
|
|
33
|
+
return current;
|
|
34
|
+
}
|
|
35
|
+
/** Canonical bytes and hash of a bounded JSON object; null when it is not one. */
|
|
36
|
+
function canonicalize(value) {
|
|
37
|
+
if (!isObject(value))
|
|
38
|
+
return null;
|
|
39
|
+
try {
|
|
40
|
+
hasher.assertInputBounded(value);
|
|
41
|
+
const canonical = CanonicalIntentHasher.stringify(value);
|
|
42
|
+
return { canonical, hash: digest(canonical) };
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function schemaFinding(binding, code, path) {
|
|
49
|
+
const result = AuthorityIntentBindingSchema.safeParse(binding);
|
|
50
|
+
if (result.success)
|
|
51
|
+
return null;
|
|
52
|
+
const issue = result.error.issues[0];
|
|
53
|
+
const segments = issue === undefined ? [] : issue.path.map(String);
|
|
54
|
+
// A key the schema does not name is reported by that name, not by its parent.
|
|
55
|
+
if (issue?.code === "unrecognized_keys")
|
|
56
|
+
segments.push(...issue.keys);
|
|
57
|
+
const at = segments.join(".");
|
|
58
|
+
return {
|
|
59
|
+
code,
|
|
60
|
+
path: path === null ? (at === "" ? null : at) : `${path}${at === "" ? "" : ` (${at})`}`,
|
|
61
|
+
expected: issue?.code ?? null,
|
|
62
|
+
computed: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export function verifyIntentVector(document) {
|
|
66
|
+
const unrecognised = {
|
|
67
|
+
protocol: INTENT_PROTOCOL,
|
|
68
|
+
kind: "unrecognised",
|
|
69
|
+
ok: false,
|
|
70
|
+
pinned: false,
|
|
71
|
+
canonical_json: null,
|
|
72
|
+
intent_hash: null,
|
|
73
|
+
mutations: 0,
|
|
74
|
+
hashes: 0,
|
|
75
|
+
findings: [{ code: "DOCUMENT_UNRECOGNISED", path: null, expected: null, computed: null }],
|
|
76
|
+
};
|
|
77
|
+
if (!isObject(document))
|
|
78
|
+
return unrecognised;
|
|
79
|
+
// A vector wraps its binding; a bare binding is the document itself.
|
|
80
|
+
const wrapped = isObject(document["binding"]);
|
|
81
|
+
const binding = wrapped ? document["binding"] : document;
|
|
82
|
+
if (!isObject(binding))
|
|
83
|
+
return unrecognised;
|
|
84
|
+
const kind = binding["protocol_version"] === INTENT_PROTOCOL ? "binding" : "canonical";
|
|
85
|
+
if (!wrapped && kind !== "binding")
|
|
86
|
+
return unrecognised;
|
|
87
|
+
const findings = [];
|
|
88
|
+
const base = canonicalize(binding);
|
|
89
|
+
if (base === null) {
|
|
90
|
+
findings.push({
|
|
91
|
+
code: "BINDING_INVALID",
|
|
92
|
+
path: null,
|
|
93
|
+
expected: "bounded JSON object",
|
|
94
|
+
computed: null,
|
|
95
|
+
});
|
|
96
|
+
return { ...unrecognised, kind, findings };
|
|
97
|
+
}
|
|
98
|
+
if (kind === "binding") {
|
|
99
|
+
const finding = schemaFinding(binding, "BINDING_INVALID", null);
|
|
100
|
+
if (finding !== null)
|
|
101
|
+
findings.push(finding);
|
|
102
|
+
}
|
|
103
|
+
const expectedCanonical = wrapped ? document["canonical_json"] : undefined;
|
|
104
|
+
const expectedHash = wrapped ? document["intent_hash"] : undefined;
|
|
105
|
+
const pinned = typeof expectedHash === "string";
|
|
106
|
+
if (typeof expectedCanonical === "string" && expectedCanonical !== base.canonical) {
|
|
107
|
+
findings.push({
|
|
108
|
+
code: "CANONICAL_MISMATCH",
|
|
109
|
+
path: null,
|
|
110
|
+
expected: expectedCanonical,
|
|
111
|
+
computed: base.canonical,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
if (pinned && expectedHash !== base.hash) {
|
|
115
|
+
findings.push({
|
|
116
|
+
code: "HASH_MISMATCH",
|
|
117
|
+
path: null,
|
|
118
|
+
expected: expectedHash,
|
|
119
|
+
computed: base.hash,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
const hashes = new Set([base.hash]);
|
|
123
|
+
const mutations = wrapped && Array.isArray(document["mutations"]) ? document["mutations"] : [];
|
|
124
|
+
for (const [index, mutation] of mutations.entries()) {
|
|
125
|
+
const label = isObject(mutation) && typeof mutation["path"] === "string"
|
|
126
|
+
? mutation["path"]
|
|
127
|
+
: `#${String(index)}`;
|
|
128
|
+
const mutated = isObject(mutation) ? canonicalize(mutation["binding"]) : null;
|
|
129
|
+
if (!isObject(mutation) || mutated === null || typeof mutation["intent_hash"] !== "string") {
|
|
130
|
+
findings.push({ code: "MUTATION_INVALID", path: label, expected: null, computed: null });
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if (kind === "binding") {
|
|
134
|
+
const finding = schemaFinding(mutation["binding"], "MUTATION_INVALID", label);
|
|
135
|
+
if (finding !== null)
|
|
136
|
+
findings.push(finding);
|
|
137
|
+
}
|
|
138
|
+
if (typeof mutation["canonical_json"] === "string" &&
|
|
139
|
+
mutation["canonical_json"] !== mutated.canonical) {
|
|
140
|
+
findings.push({
|
|
141
|
+
code: "MUTATION_CANONICAL_MISMATCH",
|
|
142
|
+
path: label,
|
|
143
|
+
expected: mutation["canonical_json"],
|
|
144
|
+
computed: mutated.canonical,
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
if (mutation["intent_hash"] !== mutated.hash) {
|
|
148
|
+
findings.push({
|
|
149
|
+
code: "MUTATION_HASH_MISMATCH",
|
|
150
|
+
path: label,
|
|
151
|
+
expected: mutation["intent_hash"],
|
|
152
|
+
computed: mutated.hash,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
if (hashes.has(mutated.hash)) {
|
|
156
|
+
findings.push({
|
|
157
|
+
code: "MUTATION_NOT_DISTINCT",
|
|
158
|
+
path: label,
|
|
159
|
+
expected: null,
|
|
160
|
+
computed: mutated.hash,
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
hashes.add(mutated.hash);
|
|
164
|
+
// The mutation must be what it says it is: the named field differs from the base.
|
|
165
|
+
if (typeof mutation["path"] === "string" &&
|
|
166
|
+
JSON.stringify(valueAt(mutation["binding"], mutation["path"])) ===
|
|
167
|
+
JSON.stringify(valueAt(binding, mutation["path"]))) {
|
|
168
|
+
findings.push({
|
|
169
|
+
code: "MUTATION_PATH_UNCHANGED",
|
|
170
|
+
path: label,
|
|
171
|
+
expected: null,
|
|
172
|
+
computed: null,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return {
|
|
177
|
+
protocol: INTENT_PROTOCOL,
|
|
178
|
+
kind,
|
|
179
|
+
ok: findings.length === 0,
|
|
180
|
+
pinned,
|
|
181
|
+
canonical_json: base.canonical,
|
|
182
|
+
intent_hash: base.hash,
|
|
183
|
+
mutations: mutations.length,
|
|
184
|
+
hashes: hashes.size,
|
|
185
|
+
findings,
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=VerifyIntentVector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyIntentVector.js","sourceRoot":"","sources":["../../src/verify/VerifyIntentVector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,GAEtB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,MAAM,eAAe,GAAG,qBAAqB,CAAC;AAoCrD,MAAM,MAAM,GAAG,IAAI,qBAAqB,EAAE,CAAC;AAE3C,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,MAAM,CAAC,SAAiB;IAC/B,OAAO,UAAU,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AAClF,CAAC;AAED,0EAA0E;AAC1E,SAAS,OAAO,CAAC,KAAc,EAAE,IAAY;IAC3C,IAAI,OAAO,GAAY,KAAK,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QAClC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;YAAE,OAAO,SAAS,CAAC;QACzC,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,kFAAkF;AAClF,SAAS,YAAY,CAAC,KAAc;IAClC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,CAAC,kB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AAQ,CAAC,MAAM,KAAK,CAAC;QACzB,MAAM;QACN,cAAc,EAAE,IAAI,CAAC,SAAS;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAI;QACtB,SAAS,EAAE,SAAS,CAAC,MAAM;QAC3B,MAAM,EAAE,MAAM,CAAC,IAAI;QACnB,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decionis/agentsafe",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The trusted executor of the Execution Authority architecture as one deployable process: a proposal in over HTTP, a verdict from the authority, one execution on a claimed single-use grant, and the evidence of each.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"execution-authority",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"jose": "^6.2.10",
|
|
59
59
|
"yaml": "^2.9.0",
|
|
60
60
|
"zod": "^4.5.4",
|
|
61
|
-
"@decionis/agent-safe-pipeline": "^0.3.
|
|
61
|
+
"@decionis/agent-safe-pipeline": "^0.3.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@stryker-mutator/core": "10.0.0",
|