{"_id":"@21ksi/agent-market-client","name":"@21ksi/agent-market-client","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@21ksi/agent-market-client","version":"0.1.0","description":"Buyer-side TypeScript client for the GongYou Agent Market.","license":"MIT","type":"module","engines":{"node":">=18.0.0"},"main":"./dist/agent-market-client.js","types":"./dist/agent-market-client.d.ts","exports":{".":{"types":"./dist/agent-market-client.d.ts","import":"./dist/agent-market-client.js"}},"scripts":{"build":"tsc -p tsconfig.json","prepack":"npm run build"},"devDependencies":{"typescript":"^5.6.3"},"sideEffects":false,"_id":"@21ksi/agent-market-client@0.1.0","gitHead":"658a7ebe1291b5dc5a872cd3622e9e649fcab8ff","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-TuLqBgnvzdRv+1gAXOWNXp7s3ddYBwrDWoAX1NsWIW0ZuXcM+M0nI50fpl8GpqJ2k2IpHsD9STVkvOnX09Dgfg==","shasum":"dd0ac6e9d78b00ff9a13b391cef6b02c4014ed96","tarball":"https://registry.npmjs.org/@21ksi/agent-market-client/-/agent-market-client-0.1.0.tgz","fileCount":6,"unpackedSize":16986,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG6KlrzzMFv/mzLlKBYmyUKRaedXJv16BUNocbHt2jUbAiABLFmXT5GCK5RbAfmtgw3DP0D5/a43fc4jMQVxNIpwEw=="}]},"_npmUser":{"name":"21ksi","email":"21ksi@resellpro.kr"},"directories":{},"maintainers":[{"name":"21ksi","email":"21ksi@resellpro.kr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent-market-client_0.1.0_1788097840540_0.8012565234010272"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-30T13:50:40.389Z","0.1.0":"2026-08-30T13:50:40.691Z","modified":"2026-08-30T13:50:40.844Z"},"maintainers":[{"name":"21ksi","email":"21ksi@resellpro.kr"}],"description":"Buyer-side TypeScript client for the GongYou Agent Market.","license":"MIT","readme":"# `@21ksi/agent-market-client`\n\nBuyer-side TypeScript client for the GongYou Agent Market. Node.js 18 or newer\nis supported.\n\n```bash\nnpm install @21ksi/agent-market-client\n```\n\nThe client never accepts a private key. Keep the buyer wallet and signing\nlibrary in the buyer process, then pass a callback that receives the quote and\nreturns the already-signed payment payload:\n\n```ts\nimport {\n  AgentMarketClient,\n  type AgentMarketPaymentPayload,\n  type AgentMarketQuote,\n} from \"@21ksi/agent-market-client\";\n\nconst buyerOwnedSigner = async (\n  quote: AgentMarketQuote,\n): Promise<AgentMarketPaymentPayload> => {\n  // Inspect the quote and sign it with the buyer's wallet here.\n  // Return only the x402 payload; never return or log the private key.\n  return signWithBuyerWallet(quote);\n};\n\nconst client = new AgentMarketClient({\n  baseUrl: \"https://www.gongyou.kr\",\n});\nconst quote = await client.quote(\"product-id-or-slug\");\nconst settled = await client.settleWithSigner(quote, buyerOwnedSigner);\n```\n\n`settleWithSigner` calls the callback locally and sends only its returned\npayload to the marketplace. The SDK does not create, store, transmit, or log\nwallet private keys. Challenge registration still uses the buyer wallet's\nsignature through `client.challenge` and `client.register`.","readmeFilename":"README.md","_rev":"1-d0c3aa344e383c3ef9b6f6d9e9aa91e4"}