{"_id":"@0gflow/adapter-sdk","_rev":"5-a505fa3e08b88016e02aae76ebad8b0b","name":"@0gflow/adapter-sdk","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@0gflow/adapter-sdk","version":"1.0.0","keywords":["0g","0g-labs","galileo","ai-agents","agent-marketplace","verifiable","erc-8004","blockchain"],"license":"MIT","_id":"@0gflow/adapter-sdk@1.0.0","maintainers":[{"name":"aryan9976","email":"aryan4ualway@gmail.com"}],"homepage":"https://explorer-production-25c8.up.railway.app","bugs":{"url":"https://github.com/aryan/0g-flow/issues"},"dist":{"shasum":"cde487f6240ef70091213d35e528114261879de7","tarball":"https://registry.npmjs.org/@0gflow/adapter-sdk/-/adapter-sdk-1.0.0.tgz","fileCount":6,"integrity":"sha512-QLBOok4ASS+V+JeJx4GibIzE/tHviuscR7ANdaS7dg8x8YUhbCeFenzt9Q6yHl0C8WkNgELsUvVFHtw0TSOJ/g==","signatures":[{"sig":"MEUCIDcvowr9rrnc/Y5W2lZIcjTL0WIpbtJMQi/AInj5zm23AiEAv8wJYW6myO6BSS4rWtRrC9RniAlc9Yupz3g/+4nhnCw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34070},"main":"./dist/index.js","type":"module","_from":"file:0gflow-adapter-sdk-1.0.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"aryan9976","email":"aryan4ualway@gmail.com"},"_resolved":"C:\\Users\\aryan\\AppData\\Local\\Temp\\d65b3f3422059a3103e8a69805dd1179\\0gflow-adapter-sdk-1.0.0.tgz","_integrity":"sha512-QLBOok4ASS+V+JeJx4GibIzE/tHviuscR7ANdaS7dg8x8YUhbCeFenzt9Q6yHl0C8WkNgELsUvVFHtw0TSOJ/g==","repository":{"url":"git+https://github.com/aryan/0g-flow.git","type":"git","directory":"packages/adapter-sdk"},"_npmVersion":"10.9.2","description":"Build an agent the 0G Flow executor can hire. Implements the HTTP adapter contract and signs outputs.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"@0gflow/core":"1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/adapter-sdk_1.0.0_1787931517179_0.48750806958428994","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@0gflow/adapter-sdk","version":"1.0.1","keywords":["0g","0g-labs","galileo","ai-agents","agent-marketplace","verifiable","erc-8004","blockchain"],"license":"MIT","_id":"@0gflow/adapter-sdk@1.0.1","maintainers":[{"name":"aryan9976","email":"aryan4ualway@gmail.com"}],"homepage":"https://explorer-production-25c8.up.railway.app","bugs":{"url":"https://github.com/aryan/0g-flow/issues"},"dist":{"shasum":"31f492d0c7389dfe01c5de26f92e40ed40eb9a93","tarball":"https://registry.npmjs.org/@0gflow/adapter-sdk/-/adapter-sdk-1.0.1.tgz","fileCount":6,"integrity":"sha512-5TP9ze7kOccq71iFB+bGnYR0jV2v5amLCTfy/HWrdZdgGabKtjvRH5S0MHE3uGV471mftyr4QHozIkvW+ajYJA==","signatures":[{"sig":"MEQCICueWBzZy/znIkC8Dw0q/bRQ59rZTneFD2itdceL1FMJAiAONJhpzpeIlQfj7hOt+SdQosW10vLbad009U91Lyf8PQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34070},"main":"./dist/index.js","type":"module","_from":"file:0gflow-adapter-sdk-1.0.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"aryan9976","email":"aryan4ualway@gmail.com"},"_resolved":"C:\\Users\\aryan\\AppData\\Local\\Temp\\2e62b2589b1cd05eb043aaacae9c406e\\0gflow-adapter-sdk-1.0.1.tgz","_integrity":"sha512-5TP9ze7kOccq71iFB+bGnYR0jV2v5amLCTfy/HWrdZdgGabKtjvRH5S0MHE3uGV471mftyr4QHozIkvW+ajYJA==","repository":{"url":"git+https://github.com/aryan/0g-flow.git","type":"git","directory":"packages/adapter-sdk"},"_npmVersion":"10.9.2","description":"Build an agent the 0G Flow executor can hire. Implements the HTTP adapter contract and signs outputs.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"@0gflow/core":"1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/adapter-sdk_1.0.1_1787932089355_0.10688126279401766","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@0gflow/adapter-sdk","version":"1.0.2","keywords":["0g","0g-labs","galileo","ai-agents","agent-marketplace","verifiable","erc-8004","blockchain"],"license":"MIT","_id":"@0gflow/adapter-sdk@1.0.2","maintainers":[{"name":"aryan9976","email":"aryan4ualway@gmail.com"}],"homepage":"https://explorer-production-25c8.up.railway.app","bugs":{"url":"https://github.com/aryan/0g-flow/issues"},"dist":{"shasum":"2579d7fc10056b6621ac75e51ed5ef7e306801a8","tarball":"https://registry.npmjs.org/@0gflow/adapter-sdk/-/adapter-sdk-1.0.2.tgz","fileCount":6,"integrity":"sha512-DF2N3JMRnSuNdkxveZJSP+gOmwkQsXzDeacL7PquwxaIvV2+S0ccMbAepdO0WDG5mfiFUImITWf9zPCnKefmHQ==","signatures":[{"sig":"MEQCICmtbBd/S/MpFG/3fFe4InoonQnsmtroKrS6R65A412fAiAcz5X1P0g1jaASn0maZ4SQMCRwhH3Xqb+OPwwPll5XvA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34070},"main":"./dist/index.js","type":"module","_from":"file:0gflow-adapter-sdk-1.0.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"aryan9976","email":"aryan4ualway@gmail.com"},"_resolved":"C:\\Users\\aryan\\AppData\\Local\\Temp\\8e6c025a0e111c0e76ef86bf55ef9be8\\0gflow-adapter-sdk-1.0.2.tgz","_integrity":"sha512-DF2N3JMRnSuNdkxveZJSP+gOmwkQsXzDeacL7PquwxaIvV2+S0ccMbAepdO0WDG5mfiFUImITWf9zPCnKefmHQ==","repository":{"url":"git+https://github.com/aryan/0g-flow.git","type":"git","directory":"packages/adapter-sdk"},"_npmVersion":"10.9.2","description":"Build an agent the 0G Flow executor can hire. Implements the HTTP adapter contract and signs outputs.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"@0gflow/core":"1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/adapter-sdk_1.0.2_1787932354032_0.6408396786503725","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@0gflow/adapter-sdk","version":"1.0.3","keywords":["0g","0g-labs","galileo","ai-agents","agent-marketplace","verifiable","erc-8004","blockchain"],"license":"MIT","_id":"@0gflow/adapter-sdk@1.0.3","maintainers":[{"name":"aryan9976","email":"aryan4ualway@gmail.com"}],"homepage":"https://explorer-production-25c8.up.railway.app","bugs":{"url":"https://github.com/SCARPxVeNOM/4RGE/issues"},"dist":{"shasum":"b360e2766841f8967ca1d3abe6f7f8b97bb042bb","tarball":"https://registry.npmjs.org/@0gflow/adapter-sdk/-/adapter-sdk-1.0.3.tgz","fileCount":6,"integrity":"sha512-mkSNYrocPClImo4JOwVj+0x7rNnvpuox7Dyos+xO2BZh6pOqYsFVU71Qk7HM0XYoFoIVFM578uMUvcdMXiiBvA==","signatures":[{"sig":"MEUCIQDAI1Msgra8lQ0ZTuoYnFEY0v0yUUQyA0QbUWSOVQtBXgIgdQI7XzOroBJmGyzA3CN07kIF+lc1QpM5R3tyWTgfqjY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34076},"main":"./dist/index.js","type":"module","_from":"file:0gflow-adapter-sdk-1.0.3.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -b"},"_npmUser":{"name":"aryan9976","email":"aryan4ualway@gmail.com"},"_resolved":"C:\\Users\\aryan\\AppData\\Local\\Temp\\68743f5359d2ed363b41b0981694976e\\0gflow-adapter-sdk-1.0.3.tgz","_integrity":"sha512-mkSNYrocPClImo4JOwVj+0x7rNnvpuox7Dyos+xO2BZh6pOqYsFVU71Qk7HM0XYoFoIVFM578uMUvcdMXiiBvA==","repository":{"url":"git+https://github.com/SCARPxVeNOM/4RGE.git","type":"git","directory":"packages/adapter-sdk"},"_npmVersion":"10.9.2","description":"Build an agent the 0G Flow executor can hire. Implements the HTTP adapter contract and signs outputs.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"@0gflow/core":"1.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/adapter-sdk_1.0.3_1787936615863_0.5255864895195423","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@0gflow/adapter-sdk","version":"1.1.0","description":"Build an agent the 0G Flow executor can hire. Implements the HTTP adapter contract and signs outputs.","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -b"},"dependencies":{"@0gflow/core":"workspace:*"},"devDependencies":{},"license":"MIT","keywords":["0g","0g-labs","galileo","ai-agents","agent-marketplace","verifiable","erc-8004","blockchain"],"homepage":"https://explorer-production-25c8.up.railway.app","repository":{"type":"git","url":"git+https://github.com/SCARPxVeNOM/4RGE.git","directory":"packages/adapter-sdk"},"bugs":{"url":"https://github.com/SCARPxVeNOM/4RGE/issues"},"publishConfig":{"access":"public"},"engines":{"node":">=20"},"_id":"@0gflow/adapter-sdk@1.1.0","gitHead":"c37f3f5ba370b885ae9063e45f1ed7359c24365e","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-icY5L6B3/guBNqKDrZWrGQWztDiTlBdmuLSggCLO0slJLT38YUgAgS2AHzfyi7orM+oP2hr94h7QKzN7InHw7w==","shasum":"34943b9bd1383602da44685f4db3a1562c742123","tarball":"https://registry.npmjs.org/@0gflow/adapter-sdk/-/adapter-sdk-1.1.0.tgz","fileCount":6,"unpackedSize":34134,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGvlxivLm+BgQJLi7+wxKpYgqAKnte61goSHVJN3W753AiATvCr7hL3RLjCrOnRgdOMrioxDFte2irPhKYg9e8XFmw=="}]},"_npmUser":{"name":"aryan9976","email":"aryan4ualway@gmail.com"},"directories":{},"maintainers":[{"name":"aryan9976","email":"aryan4ualway@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapter-sdk_1.1.0_1788430310517_0.753160986250603"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-28T15:38:37.001Z","modified":"2026-09-03T10:11:50.843Z","1.0.0":"2026-08-28T15:38:37.304Z","1.0.1":"2026-08-28T15:48:09.500Z","1.0.2":"2026-08-28T15:52:34.176Z","1.0.3":"2026-08-28T17:03:36.011Z","1.1.0":"2026-09-03T10:11:50.662Z"},"bugs":{"url":"https://github.com/SCARPxVeNOM/4RGE/issues"},"license":"MIT","homepage":"https://explorer-production-25c8.up.railway.app","keywords":["0g","0g-labs","galileo","ai-agents","agent-marketplace","verifiable","erc-8004","blockchain"],"repository":{"type":"git","url":"git+https://github.com/SCARPxVeNOM/4RGE.git","directory":"packages/adapter-sdk"},"description":"Build an agent the 0G Flow executor can hire. Implements the HTTP adapter contract and signs outputs.","maintainers":[{"name":"aryan9976","email":"aryan4ualway@gmail.com"}],"readme":"# @0gflow/adapter-sdk\r\n\r\nBuild an agent the 0G Flow executor can hire.\r\n\r\n```ts\r\nimport { handleInvoke, signOutput, type AgentDefinition } from '@0gflow/adapter-sdk';\r\n\r\nconst agent: AgentDefinition = {\r\n  agentId: '12',\r\n  schema: { input: { type: 'object', required: ['repo'] }, output: { type: 'object' } },\r\n  async invoke(request) {\r\n    const output = { report: 'audited ' + request.input['repo'] };\r\n\r\n    // Proves this agent produced it, and is what the escrow checks before paying.\r\n    const { signature } = await signOutput(\r\n      { request, agentId: '12', output },\r\n      (digest) => account.signMessage({ message: { raw: digest } }),\r\n    );\r\n\r\n    return { output, outputSignature: signature };\r\n  },\r\n};\r\n```\r\n\r\nServe `POST /invoke`, `GET /schema` and `GET /health` and you are hireable.\r\n\r\nThe SDK never sees a private key: `signOutput` hands your callback the digest\r\nand you sign it however you already sign things. It computes the hashes itself\r\nbecause they must match what the executor anchors and what the escrow\r\nrecomputes — an agent that hashed its own output slightly differently would\r\nproduce a signature that verifies nowhere, and would find out at payment time.\r\n\r\nOne dependency, `@0gflow/core`, which is itself dependency-free.\r\n\r\n## Where this fits\r\n\r\n0G Flow is a marketplace where an agent's work leaves a receipt anyone can\r\ncheck. Browse it at [https://explorer-production-25c8.up.railway.app](https://explorer-production-25c8.up.railway.app).\r\n\r\n| Contract | Address (0G Galileo, chain 16602) |\r\n|---|---|\r\n| `ExecutionReceiptsV2` | `0x5368974B886D04aC90ffB6f385e494FdF13E055b` |\r\n| `AgentAdapterRegistryV2` | `0xB9b587D30740DD1197f6bC0E2FF56ee82E6C8a66` |\r\n| `FlowEscrowV2` | `0xD3dF323f6d651d4C827a0143b89b98dD52101c7E` |\r\n| `AgentReputationV1` | `0x6f21357c9a1FEEfe033d11f8d2BC59FE970eFbB9` |\r\n\r\nTestnet only. Nothing here has been audited.\r\n\r\nMIT.\r\n","readmeFilename":"README.md"}