{"_id":"@aspidasec/history","name":"@aspidasec/history","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@aspidasec/history","version":"0.1.0","description":"Scan history storage and team collaboration infrastructure for AspidaSec","license":"Apache-2.0","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"main":"./dist/index.js","types":"./dist/index.d.ts","dependencies":{"@aspidasec/config":"0.1.0","@aspidasec/schema":"0.1.0"},"devDependencies":{"@types/node":"^22.0.0","typescript":"^5.6.0","vitest":"^2.1.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/vibellabbs-code/aspidasec.git","directory":"packages/history"},"homepage":"https://github.com/vibellabbs-code/aspidasec#readme","bugs":{"url":"https://github.com/vibellabbs-code/aspidasec/issues"},"keywords":["aspidasec","security","history","trends","team"],"scripts":{"build":"tsc","dev":"tsc --watch","typecheck":"tsc --noEmit","test":"vitest run --passWithNoTests","test:watch":"vitest","clean":"rm -rf dist"},"_id":"@aspidasec/history@0.1.0","_integrity":"sha512-g8Dg7ZkPTbbsqsYhd+9VDn4anHJs4rqRs7ZIe3c4UrKzAz+JODsCA9SPOJCWII9a9UIy/jDnh8DQsNK4cyzEyg==","_resolved":"C:\\Users\\user2\\AppData\\Local\\Temp\\eb96386156e9f8318aacbf74f5c7681e\\aspidasec-history-0.1.0.tgz","_from":"file:aspidasec-history-0.1.0.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-g8Dg7ZkPTbbsqsYhd+9VDn4anHJs4rqRs7ZIe3c4UrKzAz+JODsCA9SPOJCWII9a9UIy/jDnh8DQsNK4cyzEyg==","shasum":"81568f0bcc293794cf52575dc9cc73706959aa3f","tarball":"https://registry.npmjs.org/@aspidasec/history/-/history-0.1.0.tgz","fileCount":19,"unpackedSize":26980,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCXoFG0RhSdy4849kRgC4xffZ/GF0ohNRdyG8jUzQoKpQIgHTH3Ih+BTg671/ocE5lFj4Wm5/VjmIRK016dkPBC2AA="}]},"_npmUser":{"name":"kaa911-syp","email":"vibellabbs@gmail.com"},"directories":{},"maintainers":[{"name":"kaa911-syp","email":"vibellabbs@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/history_0.1.0_1778999306332_0.4557614784603907"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-17T06:28:26.247Z","0.1.0":"2026-05-17T06:28:26.480Z","modified":"2026-05-17T06:28:27.039Z"},"maintainers":[{"name":"kaa911-syp","email":"vibellabbs@gmail.com"}],"description":"Scan history storage and team collaboration infrastructure for AspidaSec","homepage":"https://github.com/vibellabbs-code/aspidasec#readme","keywords":["aspidasec","security","history","trends","team"],"repository":{"type":"git","url":"git+https://github.com/vibellabbs-code/aspidasec.git","directory":"packages/history"},"bugs":{"url":"https://github.com/vibellabbs-code/aspidasec/issues"},"license":"Apache-2.0","readme":"# @aspidasec/history\n\nScan history storage and team collaboration types for AspidaSec. It persists scan summaries as JSONL, supports date and project filtering, aggregates daily trends, and summarizes project scan history.\n\n## Installation\n\n```bash\npnpm add @aspidasec/history\n```\n\n## Usage\n\n```ts\nimport { ScanHistoryStore } from \"@aspidasec/history\";\n\nconst store = new ScanHistoryStore(\".aspidasec/history.jsonl\");\nawait store.append(scanHistoryEntry);\n\nconst recent = await store.query({ since: new Date(\"2026-01-01\") });\nconst trends = await store.getTrends(30);\n```\n\nFrom the AspidaSec CLI:\n\n```bash\naspidasec history show\naspidasec history trends\naspidasec history export\n```\n\n## API\n\n- `ScanHistoryStore` — appends scan history entries, reads all entries, filters by date/project, aggregates daily trends, and computes project stats.\n- `ScanHistoryEntry` — persisted scan summary with timestamp, project path, scan mode, severity/category counts, top findings, scanners used, and coverage percentage.\n- `ScanHistoryQueryOptions` — filters for `since`, `until`, and `projectPath`.\n- `DailyTrend` — per-day scan count, finding count, and severity totals.\n- `ProjectStats` — per-project scan count, finding count, last scan timestamp, and average coverage percentage.\n- `ScanMode` — scan mode value: `standard` or `owasp`.\n- `TeamConfig` — collaboration config containing team metadata, members, roles, and projects.\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md","_rev":"1-0f2ae3f1a874cfa355a5476138825283"}