{"_id":"@aimf/reputation","_rev":"2-4887bc2983e7aea4cfdc0998df4a9a51","name":"@aimf/reputation","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@aimf/reputation","version":"0.1.0","keywords":["aimf","reputation","trust","scoring","p2p","marketplace"],"author":{"name":"AIMF Team"},"license":"MIT","_id":"@aimf/reputation@0.1.0","maintainers":[{"name":"vetriselvans","email":"vetriselvans029@gmail.com"}],"homepage":"https://github.com/aimf/aimf-framework#readme","bugs":{"url":"https://github.com/aimf/aimf-framework/issues"},"dist":{"shasum":"48d171a7ee1e7b739836eee801cfd974985166f9","tarball":"https://registry.npmjs.org/@aimf/reputation/-/reputation-0.1.0.tgz","fileCount":22,"integrity":"sha512-jEEnr/Jnfi57HoesDMUBqovzSlHOx1h8TgSaaXB9GgWeWeA3akHtK/1kY/DHAZowKMsZxFT0/snH86PvULs0Rw==","signatures":[{"sig":"MEYCIQDnYXGmPwgTi5rx9Ir0hqouATFA6fsQScE5ZO7wKNuU6wIhAJ2pFKZY9ytv4ncA7K4uEnY5gaZsajcbinFdSncqMiXf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128960},"main":"dist/index.js","type":"module","_from":"file:aimf-reputation-0.1.0.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsc","clean":"rimraf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"vetriselvans","email":"vetriselvans029@gmail.com"},"_resolved":"C:\\Users\\I9159~1.LAP\\AppData\\Local\\Temp\\a38a9a8941800375f8e1d4587b25bb9b\\aimf-reputation-0.1.0.tgz","_integrity":"sha512-jEEnr/Jnfi57HoesDMUBqovzSlHOx1h8TgSaaXB9GgWeWeA3akHtK/1kY/DHAZowKMsZxFT0/snH86PvULs0Rw==","repository":{"url":"git+https://github.com/aimf/aimf-framework.git","type":"git","directory":"packages/reputation"},"_npmVersion":"10.9.0","description":"AIMF Reputation System - Trust scores and history tracking for NeuralConnect marketplace","directories":{},"_nodeVersion":"22.12.0","dependencies":{"@aimf/shared":"0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","vitest":"^3.2.3","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/reputation_0.1.0_1765129001277_0.6392713607907061","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aimf/reputation","version":"0.1.1","description":"AIMF Reputation System - Trust scores and history tracking for NeuralConnect marketplace","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@aimf/shared":"0.1.1"},"devDependencies":{"typescript":"^5.8.3","vitest":"^3.2.3","rimraf":"^6.0.1"},"repository":{"type":"git","url":"git+https://github.com/open-kit-aimf/aimf-framework.git","directory":"packages/reputation"},"keywords":["aimf","reputation","trust","scoring","p2p","marketplace"],"author":{"name":"AIMF Team"},"license":"MIT","scripts":{"build":"tsc","dev":"tsc --watch","test":"vitest run","test:watch":"vitest","lint":"eslint src --ext .ts","typecheck":"tsc --noEmit","clean":"rimraf dist"},"_id":"@aimf/reputation@0.1.1","bugs":{"url":"https://github.com/open-kit-aimf/aimf-framework/issues"},"homepage":"https://github.com/open-kit-aimf/aimf-framework#readme","_integrity":"sha512-/PcgHpGpj0anckV69xLy5llFQGYkweUIVYYGP537lZAUbxS7WNiTM9DljpV6wcjkyVSFK4iilni0HHufMyubxQ==","_resolved":"C:\\Users\\I9159~1.LAP\\AppData\\Local\\Temp\\9857d7a1f5cbaaab92f1f99fe77b8629\\aimf-reputation-0.1.1.tgz","_from":"file:aimf-reputation-0.1.1.tgz","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-/PcgHpGpj0anckV69xLy5llFQGYkweUIVYYGP537lZAUbxS7WNiTM9DljpV6wcjkyVSFK4iilni0HHufMyubxQ==","shasum":"88f63ce2776a3747f78baf2d046e8755fec35cf0","tarball":"https://registry.npmjs.org/@aimf/reputation/-/reputation-0.1.1.tgz","fileCount":22,"unpackedSize":128969,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEJmH2cjh6kNLq8eWz3wP0iyVTT3y0ovm6STml8fcnUSAiEA/zU3Hvde4FDJwTRNKCbx0gKMQGAN5fMaQA+gAZ6LZDs="}]},"_npmUser":{"name":"vetriselvans","email":"vetriselvans029@gmail.com"},"directories":{},"maintainers":[{"name":"vetriselvans","email":"vetriselvans029@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/reputation_0.1.1_1765130865975_0.7388904227583766"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-07T17:36:41.180Z","modified":"2025-12-07T18:07:46.329Z","0.1.0":"2025-12-07T17:36:41.427Z","0.1.1":"2025-12-07T18:07:46.111Z"},"bugs":{"url":"https://github.com/open-kit-aimf/aimf-framework/issues"},"author":{"name":"AIMF Team"},"license":"MIT","homepage":"https://github.com/open-kit-aimf/aimf-framework#readme","keywords":["aimf","reputation","trust","scoring","p2p","marketplace"],"repository":{"type":"git","url":"git+https://github.com/open-kit-aimf/aimf-framework.git","directory":"packages/reputation"},"description":"AIMF Reputation System - Trust scores and history tracking for NeuralConnect marketplace","maintainers":[{"name":"vetriselvans","email":"vetriselvans029@gmail.com"}],"readme":"# @aimf/reputation\r\n\r\nAIMF Reputation System - Trust scores and history tracking for the AI-MCP Framework.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install @aimf/reputation\r\n# or\r\npnpm add @aimf/reputation\r\n```\r\n\r\n## Features\r\n\r\n- **Trust Scores**: Calculate and manage user reputation scores\r\n- **History Tracking**: Complete history of reputation changes\r\n- **Dispute Resolution**: Handle disputes between users\r\n- **Trust Levels**: Automatic trust level progression (NEW → BUILDING → ESTABLISHED → TRUSTED → PREMIUM)\r\n\r\n## Usage\r\n\r\n```typescript\r\nimport { createReputationSystem, EntityType, TrustLevel } from '@aimf/reputation';\r\n\r\n// Create reputation system with custom thresholds\r\nconst { scores, history, disputes } = createReputationSystem({\r\n  establishedThreshold: 20,\r\n  trustedThreshold: 50,\r\n  premiumThreshold: 100,\r\n});\r\n\r\n// Get a user's reputation score\r\nconst score = scores.getScore('user-123', EntityType.SELLER);\r\nconsole.log(`Trust Level: ${score.trustLevel}`);\r\nconsole.log(`Overall Score: ${score.overallScore}`);\r\n\r\n// Record a successful transaction\r\nscores.recordTransaction('user-123', EntityType.SELLER, true);\r\n\r\n// Record a review\r\nscores.recordReview('user-123', EntityType.SELLER, 5, new Map([\r\n  ['quality', 5],\r\n  ['communication', 4],\r\n]));\r\n\r\n// Check if user is trusted\r\nif (score.trustLevel === TrustLevel.TRUSTED) {\r\n  console.log('User is trusted!');\r\n}\r\n```\r\n\r\n## Trust Levels\r\n\r\n| Level | Description |\r\n|-------|-------------|\r\n| `NEW` | Just getting started |\r\n| `BUILDING` | Building reputation |\r\n| `ESTABLISHED` | Good track record |\r\n| `TRUSTED` | Highly trusted |\r\n| `PREMIUM` | Elite status |\r\n| `SUSPENDED` | Account suspended |\r\n\r\n## API Reference\r\n\r\n### `createReputationSystem(config)`\r\n\r\nReturns an object with:\r\n- `scores`: Reputation scoring service\r\n- `history`: Reputation history service\r\n- `disputes`: Dispute management service\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}