Observed since 20 Oct, 22:35 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0x402/og
0G Compute clients for TEE-attested inference — the Router (verified tier, attestation carried through) and a direct provider client behind one interface.
0G Compute clients for TEE-attested inference, behind one interface.
npm i @0x402/og
import { createInferenceClient } from "@0x402/og";
const client = createInferenceClient({ kind: "router", apiKey, network: "testnet" });
const result = await client.audit({ token, artifact });
result.output; // { action, maxLtvBps, findings, reasoning }
result.trustMode; // "verified" when the provider ran it in a TEE
result.attestation; // chatId, teeVerified, the signed response hash — or null
result.promptHash; // what a seal commits to, so the claim is checkable later
Two backends behind one InferenceClient: the Router (kind: "router"), which asks
for attested execution and carries the attestation back, and a direct provider
client (kind: "direct").
An inference result nobody can vouch for is a sentence. One that comes back with
teeVerified and a signed response hash is something an underwriter can be made to
answer for — which is why @0x402/seal
refuses a seal that claims an attested tier and carries no attestation, and why
promptHash and responseHash are bound into the seal rather than left as prose.
artifact is attacker-authored material about a token — name, symbol, source,
comments. It is never interpolated as instructions; see prompt.ts. Nothing
downstream branches on output.reasoning either: it is model-authored text derived
from that same untrusted input, and it exists to be read by a human, not acted on.
Repository · Site · MIT
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
zodEnvironment{
"local_name": "zod",
"alias": false,
"peer_metadata": null
} | ^3.24.2 | runtime |
viemEnvironment{
"local_name": "viem",
"alias": false,
"peer_metadata": null
} | ^2.23.2 | runtime |
@0x402/sealEnvironment{
"local_name": "@0x402/seal",
"alias": false,
"peer_metadata": null
} | 0.1.1 | runtime |
tsxEnvironment{
"local_name": "tsx",
"alias": false,
"peer_metadata": null
} | ^4.19.2 | development |
dotenvEnvironment{
"local_name": "dotenv",
"alias": false,
"peer_metadata": null
} | ^16.4.7 | development |
Source distribution
{
"shasum": "1224fbf13e5f4f1b74109d03fbfbebbc20f9d729",
"tarball": "https://registry.npmjs.org/@0x402/og/-/og-0.1.1.tgz",
"fileCount": 13,
"integrity": "sha512-i20tnHuMMtz7X4kgxTyGpWUMriRnMxLNyOmJFhEJBPZcuQhXq9wOyJ695cEfhmSbsYAiX7pGQNY4tMGdA8vqtA==",
"signatures": [
{
"sig": "MEQCIBlKxGW/PGYzKuHiV2azWPva1a3trCENzjYiz+B10uooAiBqriRv+nlYIZKiGm74Phs3P8rFNaTH5p05UvKb8FuNYA==",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 22332
}Observed since 20 Oct, 22:35 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:3e256dbff1751fddda0e9fcb933927a8ea75c996a3c56c17bf7cb48f9fdd409f