@0gfoundation/0g-agentdna 0.2.3 → 0.5.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/GUIDE.md +190 -40
- package/OPERATORS.md +164 -0
- package/OPERATORS.zh.md +141 -0
- package/PROVIDERS.md +6 -0
- package/PROVIDERS.zh.md +3 -1
- package/README.md +84 -11
- package/dist/AgentClient.d.ts +374 -26
- package/dist/AgentClient.d.ts.map +1 -1
- package/dist/AgentClient.js +323 -40
- package/dist/AgentClient.js.map +1 -1
- package/dist/AgenticID.d.ts +170 -80
- package/dist/AgenticID.d.ts.map +1 -1
- package/dist/AgenticID.js +300 -42
- package/dist/AgenticID.js.map +1 -1
- package/dist/AttestorClient.d.ts +115 -31
- package/dist/AttestorClient.d.ts.map +1 -1
- package/dist/AttestorClient.js +276 -56
- package/dist/AttestorClient.js.map +1 -1
- package/dist/Credentials.d.ts +574 -0
- package/dist/Credentials.d.ts.map +1 -0
- package/dist/Credentials.js +838 -0
- package/dist/Credentials.js.map +1 -0
- package/dist/Operators.d.ts +60 -0
- package/dist/Operators.d.ts.map +1 -0
- package/dist/Operators.js +38 -0
- package/dist/Operators.js.map +1 -0
- package/dist/Providers.d.ts +13 -0
- package/dist/Providers.d.ts.map +1 -1
- package/dist/Providers.js +20 -1
- package/dist/Providers.js.map +1 -1
- package/dist/Releases.d.ts +51 -0
- package/dist/Releases.d.ts.map +1 -0
- package/dist/Releases.js +72 -0
- package/dist/Releases.js.map +1 -0
- package/dist/ReputationClient.d.ts +47 -3
- package/dist/ReputationClient.d.ts.map +1 -1
- package/dist/ReputationClient.js +204 -78
- package/dist/ReputationClient.js.map +1 -1
- package/dist/ServeProof.d.ts +70 -23
- package/dist/ServeProof.d.ts.map +1 -1
- package/dist/ServeProof.js +94 -35
- package/dist/ServeProof.js.map +1 -1
- package/dist/ServeSession.d.ts +17 -2
- package/dist/ServeSession.d.ts.map +1 -1
- package/dist/ServeSession.js +77 -9
- package/dist/ServeSession.js.map +1 -1
- package/dist/Settings.d.ts +25 -1
- package/dist/Settings.d.ts.map +1 -1
- package/dist/Settings.js +53 -1
- package/dist/Settings.js.map +1 -1
- package/dist/TrustRegistry.d.ts +28 -0
- package/dist/TrustRegistry.d.ts.map +1 -0
- package/dist/TrustRegistry.js +67 -0
- package/dist/TrustRegistry.js.map +1 -0
- package/dist/abi.d.ts +346 -34
- package/dist/abi.d.ts.map +1 -1
- package/dist/abi.js +150 -30
- package/dist/abi.js.map +1 -1
- package/dist/cli/attach.d.ts +79 -0
- package/dist/cli/attach.d.ts.map +1 -0
- package/dist/cli/attach.js +253 -0
- package/dist/cli/attach.js.map +1 -0
- package/dist/cli/commands/cells.d.ts +45 -0
- package/dist/cli/commands/cells.d.ts.map +1 -1
- package/dist/cli/commands/cells.js +77 -0
- package/dist/cli/commands/cells.js.map +1 -1
- package/dist/cli/commands/cred.d.ts +12 -0
- package/dist/cli/commands/cred.d.ts.map +1 -0
- package/dist/cli/commands/cred.js +43 -0
- package/dist/cli/commands/cred.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +44 -35
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/interactive.d.ts +597 -21
- package/dist/cli/commands/interactive.d.ts.map +1 -1
- package/dist/cli/commands/interactive.js +5082 -1323
- package/dist/cli/commands/interactive.js.map +1 -1
- package/dist/cli/commands/list.d.ts +5 -5
- package/dist/cli/commands/list.d.ts.map +1 -1
- package/dist/cli/commands/list.js +21 -26
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/providers.d.ts +4 -0
- package/dist/cli/commands/providers.d.ts.map +1 -1
- package/dist/cli/commands/providers.js +19 -5
- package/dist/cli/commands/providers.js.map +1 -1
- package/dist/cli/commands/releases.d.ts +13 -0
- package/dist/cli/commands/releases.d.ts.map +1 -0
- package/dist/cli/commands/releases.js +65 -0
- package/dist/cli/commands/releases.js.map +1 -0
- package/dist/cli/commands/settings.d.ts +5 -0
- package/dist/cli/commands/settings.d.ts.map +1 -1
- package/dist/cli/commands/settings.js +70 -24
- package/dist/cli/commands/settings.js.map +1 -1
- package/dist/cli/commands/status.d.ts +2 -1
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +22 -19
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/config.d.ts +48 -1
- package/dist/cli/config.d.ts.map +1 -1
- package/dist/cli/config.js +114 -5
- package/dist/cli/config.js.map +1 -1
- package/dist/cli/credentials.d.ts +179 -0
- package/dist/cli/credentials.d.ts.map +1 -0
- package/dist/cli/credentials.js +1443 -0
- package/dist/cli/credentials.js.map +1 -0
- package/dist/cli/download.d.ts +21 -0
- package/dist/cli/download.d.ts.map +1 -0
- package/dist/cli/download.js +89 -0
- package/dist/cli/download.js.map +1 -0
- package/dist/cli/env.d.ts +6 -0
- package/dist/cli/env.d.ts.map +1 -1
- package/dist/cli/env.js +18 -6
- package/dist/cli/env.js.map +1 -1
- package/dist/cli/envelope.d.ts +4 -2
- package/dist/cli/envelope.d.ts.map +1 -1
- package/dist/cli/envelope.js +10 -6
- package/dist/cli/envelope.js.map +1 -1
- package/dist/cli/errors.d.ts +45 -1
- package/dist/cli/errors.d.ts.map +1 -1
- package/dist/cli/errors.js +77 -0
- package/dist/cli/errors.js.map +1 -1
- package/dist/cli/inference.d.ts.map +1 -1
- package/dist/cli/inference.js +7 -0
- package/dist/cli/inference.js.map +1 -1
- package/dist/cli/inkView.d.ts +341 -0
- package/dist/cli/inkView.d.ts.map +1 -0
- package/dist/cli/inkView.js +1019 -0
- package/dist/cli/inkView.js.map +1 -0
- package/dist/cli/legacy/modelKey.d.ts +24 -0
- package/dist/cli/legacy/modelKey.d.ts.map +1 -0
- package/dist/cli/legacy/modelKey.js +32 -0
- package/dist/cli/legacy/modelKey.js.map +1 -0
- package/dist/cli/livePrompt.d.ts +212 -0
- package/dist/cli/livePrompt.d.ts.map +1 -0
- package/dist/cli/livePrompt.js +576 -0
- package/dist/cli/livePrompt.js.map +1 -0
- package/dist/cli/main.js +206 -72
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/modelkey.d.ts +64 -0
- package/dist/cli/modelkey.d.ts.map +1 -0
- package/dist/cli/modelkey.js +113 -0
- package/dist/cli/modelkey.js.map +1 -0
- package/dist/cli/outboxSync.d.ts +51 -0
- package/dist/cli/outboxSync.d.ts.map +1 -0
- package/dist/cli/outboxSync.js +210 -0
- package/dist/cli/outboxSync.js.map +1 -0
- package/dist/cli/plain.d.ts +46 -0
- package/dist/cli/plain.d.ts.map +1 -0
- package/dist/cli/plain.js +260 -0
- package/dist/cli/plain.js.map +1 -0
- package/dist/cli/proofs.d.ts +5 -0
- package/dist/cli/proofs.d.ts.map +1 -1
- package/dist/cli/proofs.js +20 -0
- package/dist/cli/proofs.js.map +1 -1
- package/dist/cli/ref.d.ts.map +1 -1
- package/dist/cli/ref.js +3 -2
- package/dist/cli/ref.js.map +1 -1
- package/dist/cli/releaseNotice.d.ts +64 -0
- package/dist/cli/releaseNotice.d.ts.map +1 -0
- package/dist/cli/releaseNotice.js +194 -0
- package/dist/cli/releaseNotice.js.map +1 -0
- package/dist/cli/sdk.d.ts +18 -0
- package/dist/cli/sdk.d.ts.map +1 -1
- package/dist/cli/sdk.js +99 -1
- package/dist/cli/sdk.js.map +1 -1
- package/dist/cli/settings.d.ts +90 -9
- package/dist/cli/settings.d.ts.map +1 -1
- package/dist/cli/settings.js +273 -21
- package/dist/cli/settings.js.map +1 -1
- package/dist/cli/textfit.d.ts +28 -0
- package/dist/cli/textfit.d.ts.map +1 -0
- package/dist/cli/textfit.js +111 -0
- package/dist/cli/textfit.js.map +1 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/context.d.ts +26 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -0
- package/dist/context.js.map +1 -1
- package/dist/index.d.ts +19 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -2
- package/dist/index.js.map +1 -1
- package/dist/legacy/modelKey.d.ts +67 -0
- package/dist/legacy/modelKey.d.ts.map +1 -0
- package/dist/legacy/modelKey.js +80 -0
- package/dist/legacy/modelKey.js.map +1 -0
- package/dist/legacy/serveProofV1.d.ts +56 -0
- package/dist/legacy/serveProofV1.d.ts.map +1 -0
- package/dist/legacy/serveProofV1.js +91 -0
- package/dist/legacy/serveProofV1.js.map +1 -0
- package/dist/provider-catalog.json +3 -2
- package/dist/secretEnv.d.ts +18 -3
- package/dist/secretEnv.d.ts.map +1 -1
- package/dist/secretEnv.js +16 -2
- package/dist/secretEnv.js.map +1 -1
- package/dist/types.d.ts +63 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/viemErrors.d.ts +30 -0
- package/dist/viemErrors.d.ts.map +1 -0
- package/dist/viemErrors.js +36 -0
- package/dist/viemErrors.js.map +1 -0
- package/package.json +5 -1
- package/src/AgentClient.ts +622 -68
- package/src/AgenticID.ts +345 -56
- package/src/AttestorClient.ts +330 -83
- package/src/Credentials.ts +1027 -0
- package/src/Operators.ts +71 -0
- package/src/Providers.ts +20 -0
- package/src/Releases.ts +95 -0
- package/src/ReputationClient.ts +231 -79
- package/src/ServeProof.ts +123 -39
- package/src/ServeSession.ts +91 -9
- package/src/Settings.ts +61 -1
- package/src/TrustRegistry.ts +75 -0
- package/src/abi.ts +153 -30
- package/src/cli/attach.ts +257 -0
- package/src/cli/commands/cells.ts +104 -0
- package/src/cli/commands/cred.ts +44 -0
- package/src/cli/commands/doctor.ts +45 -37
- package/src/cli/commands/interactive.ts +4120 -664
- package/src/cli/commands/list.ts +21 -30
- package/src/cli/commands/providers.ts +17 -4
- package/src/cli/commands/releases.ts +60 -0
- package/src/cli/commands/settings.ts +75 -28
- package/src/cli/commands/status.ts +24 -21
- package/src/cli/config.ts +119 -4
- package/src/cli/credentials.ts +1379 -0
- package/src/cli/download.ts +80 -0
- package/src/cli/env.ts +22 -7
- package/src/cli/envelope.ts +10 -6
- package/src/cli/errors.ts +92 -0
- package/src/cli/inference.ts +8 -1
- package/src/cli/inkView.ts +969 -0
- package/src/cli/legacy/modelKey.ts +35 -0
- package/src/cli/livePrompt.ts +615 -0
- package/src/cli/main.ts +206 -76
- package/src/cli/modelkey.ts +124 -0
- package/src/cli/outboxSync.ts +231 -0
- package/src/cli/plain.ts +260 -0
- package/src/cli/proofs.ts +27 -0
- package/src/cli/ref.ts +5 -4
- package/src/cli/releaseNotice.ts +200 -0
- package/src/cli/sdk.ts +87 -7
- package/src/cli/settings.ts +275 -25
- package/src/cli/textfit.ts +95 -0
- package/src/constants.ts +1 -1
- package/src/context.ts +28 -0
- package/src/index.ts +50 -7
- package/src/legacy/modelKey.ts +80 -0
- package/src/legacy/serveProofV1.ts +124 -0
- package/src/provider-catalog.json +3 -2
- package/src/secretEnv.ts +18 -3
- package/src/types.ts +60 -1
- package/src/viemErrors.ts +39 -0
package/dist/Settings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../src/Settings.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../src/Settings.ts"],"names":[],"mappings":";;;AA+HA,kDAWC;AAqBD,8CAgDC;AAsBD,8BAGC;AAaD,kDAQC;AA4DD,sCAoCC;AAGD,kDAGC;AAnWD,2CAA4G;AAC5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,8DAA8D;AACjD,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC;AAG/D,kDAAkD;AACrC,QAAA,eAAe,GAAG,uBAAuB,CAAC;AAEvD,sDAAsD;AACzC,QAAA,iBAAiB,GAAG,IAAA,6BAAiB,EAAC,YAAY,CAAC,CAAC,YAAa,CAAC;AAyD/E,6EAA6E;AAChE,QAAA,mBAAmB,GAAG,YAAY,CAAC;AAEhD;8DA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CAAC;YACnE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7D,CAAC;AACJ,CAAC;AAED,yEAAyE;AAClE,KAAK,UAAU,mBAAmB,CAAC,QAAQ,GAAG,2BAAmB;IACtE,IAAI,CAAC;QAAC,OAAO,CAAC,MAAM,IAAA,2BAAe,EAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;IAC1E,MAAM,CAAC;QAAC,OAAO,IAAI,CAAC;IAAC,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file TrustRegistry.ts
|
|
3
|
+
* @description Reads of the trust registry (AgenticID 1.4.0+): the images,
|
|
4
|
+
* sealed programs and official harness versions the deployer trusts. A v2
|
|
5
|
+
* serve-proof's layers are checked against these lists, and an owner picks
|
|
6
|
+
* the layered runtime's versions from them (sealed/LAYERS.md §7, §10).
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type Hash, type PublicClient } from 'viem';
|
|
9
|
+
/** The registry's list kinds, each keccak256 of its name (TrustRegistry.sol). */
|
|
10
|
+
export declare const TRUST_KINDS: {
|
|
11
|
+
readonly image: `0x${string}`;
|
|
12
|
+
readonly sealed: `0x${string}`;
|
|
13
|
+
readonly harness: `0x${string}`;
|
|
14
|
+
};
|
|
15
|
+
export type TrustKind = keyof typeof TRUST_KINDS;
|
|
16
|
+
/**
|
|
17
|
+
* The trust registry AgenticID names, or null when the chain has none: an
|
|
18
|
+
* AgenticID before 1.4.0 has no `trustRegistry()` and reverts. Any other
|
|
19
|
+
* failure throws — an unreachable RPC, or an error the node answered that is
|
|
20
|
+
* no revert (an internal error, a missing header): "no registry" is a fact
|
|
21
|
+
* about the chain, never a guess from a failed read.
|
|
22
|
+
*/
|
|
23
|
+
export declare function trustRegistryOf(publicClient: PublicClient, agenticID: Address): Promise<Address | null>;
|
|
24
|
+
/** Whether `registry` lists `hash` under `kind`. */
|
|
25
|
+
export declare function isListed(publicClient: PublicClient, registry: Address, kind: TrustKind, hash: Hash): Promise<boolean>;
|
|
26
|
+
/** A kind's list in listing order; the last entry is the registry's `latest`. */
|
|
27
|
+
export declare function listedHashes(publicClient: PublicClient, registry: Address, kind: TrustKind): Promise<Hash[]>;
|
|
28
|
+
//# sourceMappingURL=TrustRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrustRegistry.d.ts","sourceRoot":"","sources":["../src/TrustRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAA4B,KAAK,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,YAAY,EAAE,MAAM,MAAM,CAAC;AAI5F,iFAAiF;AACjF,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,WAAW,CAAC;AAIjD;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAa7G;AAED,oDAAoD;AACpD,wBAAsB,QAAQ,CAC5B,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,OAAO,CAAC,CAOlB;AAED,iFAAiF;AACjF,wBAAsB,YAAY,CAChC,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,SAAS,GACd,OAAO,CAAC,IAAI,EAAE,CAAC,CASjB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file TrustRegistry.ts
|
|
4
|
+
* @description Reads of the trust registry (AgenticID 1.4.0+): the images,
|
|
5
|
+
* sealed programs and official harness versions the deployer trusts. A v2
|
|
6
|
+
* serve-proof's layers are checked against these lists, and an owner picks
|
|
7
|
+
* the layered runtime's versions from them (sealed/LAYERS.md §7, §10).
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.TRUST_KINDS = void 0;
|
|
11
|
+
exports.trustRegistryOf = trustRegistryOf;
|
|
12
|
+
exports.isListed = isListed;
|
|
13
|
+
exports.listedHashes = listedHashes;
|
|
14
|
+
const viem_1 = require("viem");
|
|
15
|
+
const abi_1 = require("./abi");
|
|
16
|
+
const viemErrors_1 = require("./viemErrors");
|
|
17
|
+
/** The registry's list kinds, each keccak256 of its name (TrustRegistry.sol). */
|
|
18
|
+
exports.TRUST_KINDS = {
|
|
19
|
+
image: (0, viem_1.keccak256)((0, viem_1.stringToBytes)('image')),
|
|
20
|
+
sealed: (0, viem_1.keccak256)((0, viem_1.stringToBytes)('sealed')),
|
|
21
|
+
harness: (0, viem_1.keccak256)((0, viem_1.stringToBytes)('harness')),
|
|
22
|
+
};
|
|
23
|
+
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
|
|
24
|
+
/**
|
|
25
|
+
* The trust registry AgenticID names, or null when the chain has none: an
|
|
26
|
+
* AgenticID before 1.4.0 has no `trustRegistry()` and reverts. Any other
|
|
27
|
+
* failure throws — an unreachable RPC, or an error the node answered that is
|
|
28
|
+
* no revert (an internal error, a missing header): "no registry" is a fact
|
|
29
|
+
* about the chain, never a guess from a failed read.
|
|
30
|
+
*/
|
|
31
|
+
async function trustRegistryOf(publicClient, agenticID) {
|
|
32
|
+
try {
|
|
33
|
+
const registry = (await publicClient.readContract({
|
|
34
|
+
address: agenticID,
|
|
35
|
+
abi: abi_1.agenticIDAbi,
|
|
36
|
+
functionName: 'trustRegistry',
|
|
37
|
+
}));
|
|
38
|
+
return registry.toLowerCase() === ZERO_ADDRESS ? null : registry;
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
// LEGACY(pre-1.4.0): the null a chain before AgenticID 1.4.0 answers.
|
|
42
|
+
if ((0, viemErrors_1.isContractRevert)(e))
|
|
43
|
+
return null;
|
|
44
|
+
throw e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** Whether `registry` lists `hash` under `kind`. */
|
|
48
|
+
async function isListed(publicClient, registry, kind, hash) {
|
|
49
|
+
return (await publicClient.readContract({
|
|
50
|
+
address: registry,
|
|
51
|
+
abi: abi_1.trustRegistryAbi,
|
|
52
|
+
functionName: 'isListed',
|
|
53
|
+
args: [exports.TRUST_KINDS[kind], hash],
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
/** A kind's list in listing order; the last entry is the registry's `latest`. */
|
|
57
|
+
async function listedHashes(publicClient, registry, kind) {
|
|
58
|
+
return [
|
|
59
|
+
...(await publicClient.readContract({
|
|
60
|
+
address: registry,
|
|
61
|
+
abi: abi_1.trustRegistryAbi,
|
|
62
|
+
functionName: 'listed',
|
|
63
|
+
args: [exports.TRUST_KINDS[kind]],
|
|
64
|
+
})),
|
|
65
|
+
];
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=TrustRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrustRegistry.js","sourceRoot":"","sources":["../src/TrustRegistry.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAwBH,0CAaC;AAGD,4BAYC;AAGD,oCAaC;AAlED,+BAA4F;AAC5F,+BAAuD;AACvD,6CAAgD;AAEhD,iFAAiF;AACpE,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,IAAA,gBAAS,EAAC,IAAA,oBAAa,EAAC,OAAO,CAAC,CAAC;IACxC,MAAM,EAAE,IAAA,gBAAS,EAAC,IAAA,oBAAa,EAAC,QAAQ,CAAC,CAAC;IAC1C,OAAO,EAAE,IAAA,gBAAS,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AACJ,CAAC"}
|
package/dist/abi.d.ts
CHANGED
|
@@ -147,22 +147,13 @@ export declare const agenticIDAbi: readonly [{
|
|
|
147
147
|
}];
|
|
148
148
|
}, {
|
|
149
149
|
readonly type: "function";
|
|
150
|
-
readonly name: "
|
|
151
|
-
readonly stateMutability: "
|
|
152
|
-
readonly inputs: readonly [
|
|
153
|
-
|
|
154
|
-
readonly
|
|
155
|
-
}];
|
|
156
|
-
readonly outputs: readonly [];
|
|
157
|
-
}, {
|
|
158
|
-
readonly type: "function";
|
|
159
|
-
readonly name: "removeTrustedAttestor";
|
|
160
|
-
readonly stateMutability: "nonpayable";
|
|
161
|
-
readonly inputs: readonly [{
|
|
162
|
-
readonly name: "attestor";
|
|
150
|
+
readonly name: "trustRegistry";
|
|
151
|
+
readonly stateMutability: "view";
|
|
152
|
+
readonly inputs: readonly [];
|
|
153
|
+
readonly outputs: readonly [{
|
|
154
|
+
readonly name: "";
|
|
163
155
|
readonly type: "address";
|
|
164
156
|
}];
|
|
165
|
-
readonly outputs: readonly [];
|
|
166
157
|
}, {
|
|
167
158
|
readonly type: "function";
|
|
168
159
|
readonly name: "isTrustedAttestor";
|
|
@@ -175,24 +166,6 @@ export declare const agenticIDAbi: readonly [{
|
|
|
175
166
|
readonly name: "";
|
|
176
167
|
readonly type: "bool";
|
|
177
168
|
}];
|
|
178
|
-
}, {
|
|
179
|
-
readonly type: "function";
|
|
180
|
-
readonly name: "addValidFrameworkHash";
|
|
181
|
-
readonly stateMutability: "nonpayable";
|
|
182
|
-
readonly inputs: readonly [{
|
|
183
|
-
readonly name: "frameworkHash";
|
|
184
|
-
readonly type: "bytes32";
|
|
185
|
-
}];
|
|
186
|
-
readonly outputs: readonly [];
|
|
187
|
-
}, {
|
|
188
|
-
readonly type: "function";
|
|
189
|
-
readonly name: "removeValidFrameworkHash";
|
|
190
|
-
readonly stateMutability: "nonpayable";
|
|
191
|
-
readonly inputs: readonly [{
|
|
192
|
-
readonly name: "frameworkHash";
|
|
193
|
-
readonly type: "bytes32";
|
|
194
|
-
}];
|
|
195
|
-
readonly outputs: readonly [];
|
|
196
169
|
}, {
|
|
197
170
|
readonly type: "function";
|
|
198
171
|
readonly name: "isValidFrameworkHash";
|
|
@@ -787,6 +760,102 @@ export declare const agenticIDAbi: readonly [{
|
|
|
787
760
|
readonly indexed: false;
|
|
788
761
|
}];
|
|
789
762
|
}];
|
|
763
|
+
/**
|
|
764
|
+
* TrustRegistry — the deployer's trust decisions, found through
|
|
765
|
+
* AgenticID.trustRegistry() (AgenticID 1.4.0+): trusted attestors, and code
|
|
766
|
+
* lists by kind — IMAGE (base images, formerly AgenticID's
|
|
767
|
+
* validFrameworkHashes), SEALED (sealed programs) and HARNESS (official
|
|
768
|
+
* harness versions). Each list keeps listing order; `latest` is the newest
|
|
769
|
+
* still listed. Read-only here: listing is the deployer's.
|
|
770
|
+
*/
|
|
771
|
+
export declare const trustRegistryAbi: readonly [{
|
|
772
|
+
readonly type: "function";
|
|
773
|
+
readonly name: "VERSION";
|
|
774
|
+
readonly stateMutability: "view";
|
|
775
|
+
readonly inputs: readonly [];
|
|
776
|
+
readonly outputs: readonly [{
|
|
777
|
+
readonly name: "";
|
|
778
|
+
readonly type: "string";
|
|
779
|
+
}];
|
|
780
|
+
}, {
|
|
781
|
+
readonly type: "function";
|
|
782
|
+
readonly name: "IMAGE";
|
|
783
|
+
readonly stateMutability: "view";
|
|
784
|
+
readonly inputs: readonly [];
|
|
785
|
+
readonly outputs: readonly [{
|
|
786
|
+
readonly name: "";
|
|
787
|
+
readonly type: "bytes32";
|
|
788
|
+
}];
|
|
789
|
+
}, {
|
|
790
|
+
readonly type: "function";
|
|
791
|
+
readonly name: "SEALED";
|
|
792
|
+
readonly stateMutability: "view";
|
|
793
|
+
readonly inputs: readonly [];
|
|
794
|
+
readonly outputs: readonly [{
|
|
795
|
+
readonly name: "";
|
|
796
|
+
readonly type: "bytes32";
|
|
797
|
+
}];
|
|
798
|
+
}, {
|
|
799
|
+
readonly type: "function";
|
|
800
|
+
readonly name: "HARNESS";
|
|
801
|
+
readonly stateMutability: "view";
|
|
802
|
+
readonly inputs: readonly [];
|
|
803
|
+
readonly outputs: readonly [{
|
|
804
|
+
readonly name: "";
|
|
805
|
+
readonly type: "bytes32";
|
|
806
|
+
}];
|
|
807
|
+
}, {
|
|
808
|
+
readonly type: "function";
|
|
809
|
+
readonly name: "isListed";
|
|
810
|
+
readonly stateMutability: "view";
|
|
811
|
+
readonly inputs: readonly [{
|
|
812
|
+
readonly name: "kind";
|
|
813
|
+
readonly type: "bytes32";
|
|
814
|
+
}, {
|
|
815
|
+
readonly name: "hash";
|
|
816
|
+
readonly type: "bytes32";
|
|
817
|
+
}];
|
|
818
|
+
readonly outputs: readonly [{
|
|
819
|
+
readonly name: "";
|
|
820
|
+
readonly type: "bool";
|
|
821
|
+
}];
|
|
822
|
+
}, {
|
|
823
|
+
readonly type: "function";
|
|
824
|
+
readonly name: "latest";
|
|
825
|
+
readonly stateMutability: "view";
|
|
826
|
+
readonly inputs: readonly [{
|
|
827
|
+
readonly name: "kind";
|
|
828
|
+
readonly type: "bytes32";
|
|
829
|
+
}];
|
|
830
|
+
readonly outputs: readonly [{
|
|
831
|
+
readonly name: "";
|
|
832
|
+
readonly type: "bytes32";
|
|
833
|
+
}];
|
|
834
|
+
}, {
|
|
835
|
+
readonly type: "function";
|
|
836
|
+
readonly name: "listed";
|
|
837
|
+
readonly stateMutability: "view";
|
|
838
|
+
readonly inputs: readonly [{
|
|
839
|
+
readonly name: "kind";
|
|
840
|
+
readonly type: "bytes32";
|
|
841
|
+
}];
|
|
842
|
+
readonly outputs: readonly [{
|
|
843
|
+
readonly name: "hashes";
|
|
844
|
+
readonly type: "bytes32[]";
|
|
845
|
+
}];
|
|
846
|
+
}, {
|
|
847
|
+
readonly type: "function";
|
|
848
|
+
readonly name: "isTrustedAttestor";
|
|
849
|
+
readonly stateMutability: "view";
|
|
850
|
+
readonly inputs: readonly [{
|
|
851
|
+
readonly name: "attestor";
|
|
852
|
+
readonly type: "address";
|
|
853
|
+
}];
|
|
854
|
+
readonly outputs: readonly [{
|
|
855
|
+
readonly name: "";
|
|
856
|
+
readonly type: "bool";
|
|
857
|
+
}];
|
|
858
|
+
}];
|
|
790
859
|
/**
|
|
791
860
|
* Official canonical ERC-8004 ReputationRegistry (the fixed 0x8004B… singleton;
|
|
792
861
|
* v2.0.0). Feedback STORAGE lives here — clients call `giveFeedback` directly,
|
|
@@ -1119,8 +1188,9 @@ export declare const canonicalReputationAbi: readonly [{
|
|
|
1119
1188
|
/**
|
|
1120
1189
|
* VerifiedFeedbackRegistry — the local TEE-verification layer over the
|
|
1121
1190
|
* canonical ERC-8004 ReputationRegistry. `attestFeedback` marks a canonical
|
|
1122
|
-
* entry as backed by a ServeProof
|
|
1123
|
-
*
|
|
1191
|
+
* entry as backed by a ServeProof (`attestVersionedFeedback` for a proof that
|
|
1192
|
+
* carries its version); the `getVerified*` reads expose the marks so readers
|
|
1193
|
+
* can intersect them with canonical entries.
|
|
1124
1194
|
*/
|
|
1125
1195
|
export declare const verifiedFeedbackAbi: readonly [{
|
|
1126
1196
|
readonly type: "error";
|
|
@@ -1338,6 +1408,22 @@ export declare const verifiedFeedbackAbi: readonly [{
|
|
|
1338
1408
|
readonly type: "error";
|
|
1339
1409
|
readonly name: "VerifiedFeedbackInvalidProofTimestamp";
|
|
1340
1410
|
readonly inputs: readonly [];
|
|
1411
|
+
}, {
|
|
1412
|
+
readonly type: "error";
|
|
1413
|
+
readonly name: "VerifiedFeedbackUnsupportedVersion";
|
|
1414
|
+
readonly inputs: readonly [{
|
|
1415
|
+
readonly name: "version";
|
|
1416
|
+
readonly type: "uint16";
|
|
1417
|
+
}];
|
|
1418
|
+
}, {
|
|
1419
|
+
readonly type: "function";
|
|
1420
|
+
readonly name: "VERSION";
|
|
1421
|
+
readonly stateMutability: "view";
|
|
1422
|
+
readonly inputs: readonly [];
|
|
1423
|
+
readonly outputs: readonly [{
|
|
1424
|
+
readonly name: "";
|
|
1425
|
+
readonly type: "string";
|
|
1426
|
+
}];
|
|
1341
1427
|
}, {
|
|
1342
1428
|
readonly type: "function";
|
|
1343
1429
|
readonly name: "attestFeedback";
|
|
@@ -1437,6 +1523,80 @@ export declare const verifiedFeedbackAbi: readonly [{
|
|
|
1437
1523
|
}];
|
|
1438
1524
|
}];
|
|
1439
1525
|
readonly outputs: readonly [];
|
|
1526
|
+
}, {
|
|
1527
|
+
readonly type: "function";
|
|
1528
|
+
readonly name: "attestVersionedFeedback";
|
|
1529
|
+
readonly stateMutability: "nonpayable";
|
|
1530
|
+
readonly inputs: readonly [{
|
|
1531
|
+
readonly name: "agentId";
|
|
1532
|
+
readonly type: "uint256";
|
|
1533
|
+
}, {
|
|
1534
|
+
readonly name: "feedbackIndex";
|
|
1535
|
+
readonly type: "uint64";
|
|
1536
|
+
}, {
|
|
1537
|
+
readonly name: "proof";
|
|
1538
|
+
readonly type: "tuple";
|
|
1539
|
+
readonly components: readonly [{
|
|
1540
|
+
readonly name: "version";
|
|
1541
|
+
readonly type: "uint16";
|
|
1542
|
+
}, {
|
|
1543
|
+
readonly name: "agentId";
|
|
1544
|
+
readonly type: "uint256";
|
|
1545
|
+
}, {
|
|
1546
|
+
readonly name: "submitter";
|
|
1547
|
+
readonly type: "address";
|
|
1548
|
+
}, {
|
|
1549
|
+
readonly name: "timestamp";
|
|
1550
|
+
readonly type: "uint256";
|
|
1551
|
+
}, {
|
|
1552
|
+
readonly name: "deadline";
|
|
1553
|
+
readonly type: "uint256";
|
|
1554
|
+
}, {
|
|
1555
|
+
readonly name: "taskHash";
|
|
1556
|
+
readonly type: "bytes32";
|
|
1557
|
+
}, {
|
|
1558
|
+
readonly name: "dataHashes";
|
|
1559
|
+
readonly type: "bytes32[]";
|
|
1560
|
+
}, {
|
|
1561
|
+
readonly name: "frameworkHash";
|
|
1562
|
+
readonly type: "bytes32";
|
|
1563
|
+
}, {
|
|
1564
|
+
readonly name: "sealedHash";
|
|
1565
|
+
readonly type: "bytes32";
|
|
1566
|
+
}, {
|
|
1567
|
+
readonly name: "harnessHash";
|
|
1568
|
+
readonly type: "bytes32";
|
|
1569
|
+
}, {
|
|
1570
|
+
readonly name: "inferenceURL";
|
|
1571
|
+
readonly type: "string";
|
|
1572
|
+
}, {
|
|
1573
|
+
readonly name: "model";
|
|
1574
|
+
readonly type: "string";
|
|
1575
|
+
}, {
|
|
1576
|
+
readonly name: "signature";
|
|
1577
|
+
readonly type: "bytes";
|
|
1578
|
+
}];
|
|
1579
|
+
}, {
|
|
1580
|
+
readonly name: "task";
|
|
1581
|
+
readonly type: "tuple";
|
|
1582
|
+
readonly components: readonly [{
|
|
1583
|
+
readonly name: "method";
|
|
1584
|
+
readonly type: "string";
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly name: "uri";
|
|
1587
|
+
readonly type: "string";
|
|
1588
|
+
}, {
|
|
1589
|
+
readonly name: "reqBodyHash";
|
|
1590
|
+
readonly type: "bytes32";
|
|
1591
|
+
}, {
|
|
1592
|
+
readonly name: "respBodyHash";
|
|
1593
|
+
readonly type: "bytes32";
|
|
1594
|
+
}, {
|
|
1595
|
+
readonly name: "statusCode";
|
|
1596
|
+
readonly type: "uint16";
|
|
1597
|
+
}];
|
|
1598
|
+
}];
|
|
1599
|
+
readonly outputs: readonly [];
|
|
1440
1600
|
}, {
|
|
1441
1601
|
readonly type: "function";
|
|
1442
1602
|
readonly name: "isVerified";
|
|
@@ -1476,6 +1636,27 @@ export declare const verifiedFeedbackAbi: readonly [{
|
|
|
1476
1636
|
readonly name: "frameworkHash";
|
|
1477
1637
|
readonly type: "bytes32";
|
|
1478
1638
|
}];
|
|
1639
|
+
}, {
|
|
1640
|
+
readonly type: "function";
|
|
1641
|
+
readonly name: "getServeLayers";
|
|
1642
|
+
readonly stateMutability: "view";
|
|
1643
|
+
readonly inputs: readonly [{
|
|
1644
|
+
readonly name: "agentId";
|
|
1645
|
+
readonly type: "uint256";
|
|
1646
|
+
}, {
|
|
1647
|
+
readonly name: "clientAddress";
|
|
1648
|
+
readonly type: "address";
|
|
1649
|
+
}, {
|
|
1650
|
+
readonly name: "feedbackIndex";
|
|
1651
|
+
readonly type: "uint64";
|
|
1652
|
+
}];
|
|
1653
|
+
readonly outputs: readonly [{
|
|
1654
|
+
readonly name: "sealedHash";
|
|
1655
|
+
readonly type: "bytes32";
|
|
1656
|
+
}, {
|
|
1657
|
+
readonly name: "harnessHash";
|
|
1658
|
+
readonly type: "bytes32";
|
|
1659
|
+
}];
|
|
1479
1660
|
}, {
|
|
1480
1661
|
readonly type: "function";
|
|
1481
1662
|
readonly name: "getVerifiedIndexes";
|
|
@@ -1634,6 +1815,42 @@ export declare const verifiedFeedbackAbi: readonly [{
|
|
|
1634
1815
|
readonly type: "string";
|
|
1635
1816
|
readonly indexed: false;
|
|
1636
1817
|
}];
|
|
1818
|
+
}, {
|
|
1819
|
+
readonly type: "event";
|
|
1820
|
+
readonly name: "VersionedFeedbackVerified";
|
|
1821
|
+
readonly inputs: readonly [{
|
|
1822
|
+
readonly name: "agentId";
|
|
1823
|
+
readonly type: "uint256";
|
|
1824
|
+
readonly indexed: true;
|
|
1825
|
+
}, {
|
|
1826
|
+
readonly name: "clientAddress";
|
|
1827
|
+
readonly type: "address";
|
|
1828
|
+
readonly indexed: true;
|
|
1829
|
+
}, {
|
|
1830
|
+
readonly name: "feedbackIndex";
|
|
1831
|
+
readonly type: "uint64";
|
|
1832
|
+
readonly indexed: true;
|
|
1833
|
+
}, {
|
|
1834
|
+
readonly name: "version";
|
|
1835
|
+
readonly type: "uint16";
|
|
1836
|
+
readonly indexed: false;
|
|
1837
|
+
}, {
|
|
1838
|
+
readonly name: "sealedHash";
|
|
1839
|
+
readonly type: "bytes32";
|
|
1840
|
+
readonly indexed: false;
|
|
1841
|
+
}, {
|
|
1842
|
+
readonly name: "harnessHash";
|
|
1843
|
+
readonly type: "bytes32";
|
|
1844
|
+
readonly indexed: false;
|
|
1845
|
+
}, {
|
|
1846
|
+
readonly name: "inferenceURL";
|
|
1847
|
+
readonly type: "string";
|
|
1848
|
+
readonly indexed: false;
|
|
1849
|
+
}, {
|
|
1850
|
+
readonly name: "model";
|
|
1851
|
+
readonly type: "string";
|
|
1852
|
+
readonly indexed: false;
|
|
1853
|
+
}];
|
|
1637
1854
|
}];
|
|
1638
1855
|
/**
|
|
1639
1856
|
* FeedbackBatcher — EIP-7702 delegate target. A client EOA attaches this code
|
|
@@ -1725,6 +1942,101 @@ export declare const feedbackBatcherAbi: readonly [{
|
|
|
1725
1942
|
readonly name: "feedbackIndex";
|
|
1726
1943
|
readonly type: "uint64";
|
|
1727
1944
|
}];
|
|
1945
|
+
}, {
|
|
1946
|
+
readonly type: "function";
|
|
1947
|
+
readonly name: "giveFeedbackAndAttestVersioned";
|
|
1948
|
+
readonly stateMutability: "nonpayable";
|
|
1949
|
+
readonly inputs: readonly [{
|
|
1950
|
+
readonly name: "agentId";
|
|
1951
|
+
readonly type: "uint256";
|
|
1952
|
+
}, {
|
|
1953
|
+
readonly name: "value";
|
|
1954
|
+
readonly type: "int128";
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly name: "valueDecimals";
|
|
1957
|
+
readonly type: "uint8";
|
|
1958
|
+
}, {
|
|
1959
|
+
readonly name: "tag1";
|
|
1960
|
+
readonly type: "string";
|
|
1961
|
+
}, {
|
|
1962
|
+
readonly name: "tag2";
|
|
1963
|
+
readonly type: "string";
|
|
1964
|
+
}, {
|
|
1965
|
+
readonly name: "endpoint";
|
|
1966
|
+
readonly type: "string";
|
|
1967
|
+
}, {
|
|
1968
|
+
readonly name: "feedbackURI";
|
|
1969
|
+
readonly type: "string";
|
|
1970
|
+
}, {
|
|
1971
|
+
readonly name: "feedbackHash";
|
|
1972
|
+
readonly type: "bytes32";
|
|
1973
|
+
}, {
|
|
1974
|
+
readonly name: "proof";
|
|
1975
|
+
readonly type: "tuple";
|
|
1976
|
+
readonly components: readonly [{
|
|
1977
|
+
readonly name: "version";
|
|
1978
|
+
readonly type: "uint16";
|
|
1979
|
+
}, {
|
|
1980
|
+
readonly name: "agentId";
|
|
1981
|
+
readonly type: "uint256";
|
|
1982
|
+
}, {
|
|
1983
|
+
readonly name: "submitter";
|
|
1984
|
+
readonly type: "address";
|
|
1985
|
+
}, {
|
|
1986
|
+
readonly name: "timestamp";
|
|
1987
|
+
readonly type: "uint256";
|
|
1988
|
+
}, {
|
|
1989
|
+
readonly name: "deadline";
|
|
1990
|
+
readonly type: "uint256";
|
|
1991
|
+
}, {
|
|
1992
|
+
readonly name: "taskHash";
|
|
1993
|
+
readonly type: "bytes32";
|
|
1994
|
+
}, {
|
|
1995
|
+
readonly name: "dataHashes";
|
|
1996
|
+
readonly type: "bytes32[]";
|
|
1997
|
+
}, {
|
|
1998
|
+
readonly name: "frameworkHash";
|
|
1999
|
+
readonly type: "bytes32";
|
|
2000
|
+
}, {
|
|
2001
|
+
readonly name: "sealedHash";
|
|
2002
|
+
readonly type: "bytes32";
|
|
2003
|
+
}, {
|
|
2004
|
+
readonly name: "harnessHash";
|
|
2005
|
+
readonly type: "bytes32";
|
|
2006
|
+
}, {
|
|
2007
|
+
readonly name: "inferenceURL";
|
|
2008
|
+
readonly type: "string";
|
|
2009
|
+
}, {
|
|
2010
|
+
readonly name: "model";
|
|
2011
|
+
readonly type: "string";
|
|
2012
|
+
}, {
|
|
2013
|
+
readonly name: "signature";
|
|
2014
|
+
readonly type: "bytes";
|
|
2015
|
+
}];
|
|
2016
|
+
}, {
|
|
2017
|
+
readonly name: "task";
|
|
2018
|
+
readonly type: "tuple";
|
|
2019
|
+
readonly components: readonly [{
|
|
2020
|
+
readonly name: "method";
|
|
2021
|
+
readonly type: "string";
|
|
2022
|
+
}, {
|
|
2023
|
+
readonly name: "uri";
|
|
2024
|
+
readonly type: "string";
|
|
2025
|
+
}, {
|
|
2026
|
+
readonly name: "reqBodyHash";
|
|
2027
|
+
readonly type: "bytes32";
|
|
2028
|
+
}, {
|
|
2029
|
+
readonly name: "respBodyHash";
|
|
2030
|
+
readonly type: "bytes32";
|
|
2031
|
+
}, {
|
|
2032
|
+
readonly name: "statusCode";
|
|
2033
|
+
readonly type: "uint16";
|
|
2034
|
+
}];
|
|
2035
|
+
}];
|
|
2036
|
+
readonly outputs: readonly [{
|
|
2037
|
+
readonly name: "feedbackIndex";
|
|
2038
|
+
readonly type: "uint64";
|
|
2039
|
+
}];
|
|
1728
2040
|
}, {
|
|
1729
2041
|
readonly type: "function";
|
|
1730
2042
|
readonly name: "canonicalReputation";
|
package/dist/abi.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../src/abi.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../src/abi.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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