{"_id":"@agentpay-sui/reputation","name":"@agentpay-sui/reputation","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agentpay-sui/reputation","version":"0.1.0","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"publishConfig":{"access":"public"},"dependencies":{"@agentpay-sui/shared":"0.1.0"},"devDependencies":{"@types/node":"^25.0.0","typescript":"^5.9.3"},"scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit","test":"node --experimental-strip-types --experimental-specifier-resolution=node --test test/*.test.ts"},"_id":"@agentpay-sui/reputation@0.1.0","description":"Standalone reputation records for receipt-gated agent work.","_integrity":"sha512-jMWS5VtPk/Uu4XoZMN/2DoJ/VN5dc+nfcuVxiHUTQBL8Dab9hINz4Dgv7f6qKwT98F3jIdG2mkCjUnZ4tN9puw==","_resolved":"/private/var/folders/s0/b6zql__n7v19sv58nl_4096w0000gn/T/b9c73be4fde851f9d33930e92b541785/agentpay-sui-reputation-0.1.0.tgz","_from":"file:agentpay-sui-reputation-0.1.0.tgz","_nodeVersion":"25.5.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-jMWS5VtPk/Uu4XoZMN/2DoJ/VN5dc+nfcuVxiHUTQBL8Dab9hINz4Dgv7f6qKwT98F3jIdG2mkCjUnZ4tN9puw==","shasum":"ce9af640f0afd82972320a63056b87e464e31f93","tarball":"https://registry.npmjs.org/@agentpay-sui/reputation/-/reputation-0.1.0.tgz","fileCount":5,"unpackedSize":26412,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCfQ4+0dXUVpGW3i6CkoByLxAx+R9bUzfWw65sn96A7wgIgJXj0ABujlaTcX1Snu9rUt/Uy8bG9hDk+0jWC1M17vSM="}]},"_npmUser":{"name":"divi280605","email":"divyansh242805@gmail.com"},"directories":{},"maintainers":[{"name":"divi280605","email":"divyansh242805@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/reputation_0.1.0_1781255865234_0.1556660451625289"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-12T09:17:45.022Z","0.1.0":"2026-06-12T09:17:45.368Z","modified":"2026-06-12T09:17:45.762Z"},"maintainers":[{"name":"divi280605","email":"divyansh242805@gmail.com"}],"description":"Standalone reputation records for receipt-gated agent work.","readme":"# @agentpay-sui/reputation\n\nStandalone reputation records for receipt-gated agent work.\n\nAgentPay's Move package enforces the hard invariant on-chain: a feedback update must come from a settled receipt through `reputation::FeedbackRight`. This package is the portable off-chain format for that same primitive. Other apps can index AgentPay receipts, transform them into `ReputationRecordV1`, exchange them over HTTP headers or JSON APIs, and aggregate them without adopting the AgentPay gateway or facilitator.\n\n## Record Shape\n\nEvery record has:\n\n- `schema: \"agentpay/reputation-record-v1\"`\n- a `subject`, such as an agent object, tool object, provider address, validator, or custom id\n- a score from `0..100`\n- a `sui-receipt` evidence block with at least `network`, `receiptId`, `txDigest`, and `toolId`\n- optional Walrus comment/evidence refs and provider assessment factors\n\n## Example\n\n```ts\nimport {\n  recordFromPaymentResponse,\n  aggregateReputation,\n} from \"@agentpay-sui/reputation\";\n\nconst record = recordFromPaymentResponse(payment, {\n  subject: { type: \"tool\", id: payment.reputationDelta!.toolId },\n  issuer: { address: payment.payer },\n});\n\nconst aggregate = aggregateReputation([record], record.subject);\n```\n\n","readmeFilename":"README.md","_rev":"1-2d14948079a556611edd804e8bc3d394"}