{"_id":"@blackbelt-technology/pi-dashboard-session-distiller","_rev":"5-31d3da5c4f1ddeb5ca54fe9ff0840dfa","name":"@blackbelt-technology/pi-dashboard-session-distiller","dist-tags":{"latest":"0.8.0"},"versions":{"0.5.4":{"name":"@blackbelt-technology/pi-dashboard-session-distiller","version":"0.5.4","keywords":["pi-package","pi-session","session-mining","knowledge-distillation","pi-dashboard"],"license":"MIT","_id":"@blackbelt-technology/pi-dashboard-session-distiller@0.5.4","maintainers":[{"name":"mbotond","email":"botond.molnar@blackbelt.hu"},{"name":"mrbence","email":"dbence10@gmail.com"},{"name":"robertcsakany","email":"robert.csakany@blackbelt.hu"},{"name":"norbert.herczeg","email":"norbert.herczeg@blackbelt.hu"}],"homepage":"https://github.com/BlackBeltTechnology/pi-agent-dashboard#readme","bugs":{"url":"https://github.com/BlackBeltTechnology/pi-agent-dashboard/issues"},"bin":{"distill-session-knowledge":"bin/distill.mjs"},"dist":{"shasum":"8e750e5bb33e0b739a8ce60e7977e0d74e14e1e6","tarball":"https://registry.npmjs.org/@blackbelt-technology/pi-dashboard-session-distiller/-/pi-dashboard-session-distiller-0.5.4.tgz","fileCount":25,"integrity":"sha512-Zg6BCtZM/hwDcA2UzVIvtsohveKBKCrpdEij2moMJpY9fQKa3BySk2rJ6UulYlNnz2JY5BaDQ5AQ3JqqNeofHw==","signatures":[{"sig":"MEYCIQC5yQhKPlT0jYApetjw6b9FGYGWyCuLYO+aej3oEyIZ/gIhAIzyIiloPS0/bo602v2wgE0sSAusgCX5AdkiYAjZwfzy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":73531},"type":"module","exports":{"./*":"./src/*","./*.js":"./src/*.ts"},"gitHead":"2c4a705a7c268971cb11f5dc4a3109e81cbb5930","_npmUser":{"name":"robertcsakany","email":"robert.csakany@blackbelt.hu"},"repository":{"url":"git+https://github.com/BlackBeltTechnology/pi-agent-dashboard.git","type":"git","directory":"packages/session-distiller"},"_npmVersion":"10.9.3","description":"Offline miner: distill reusable artifacts from pi session JSONL logs","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-dashboard-session-distiller_0.5.4_1784506515511_0.6855032270192141","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@blackbelt-technology/pi-dashboard-session-distiller","version":"0.6.0","keywords":["pi-package","pi-session","session-mining","knowledge-distillation","pi-dashboard"],"license":"MIT","_id":"@blackbelt-technology/pi-dashboard-session-distiller@0.6.0","maintainers":[{"name":"mbotond","email":"botond.molnar@blackbelt.hu"},{"name":"mrbence","email":"dbence10@gmail.com"},{"name":"robertcsakany","email":"robert.csakany@blackbelt.hu"},{"name":"norbert.herczeg","email":"norbert.herczeg@blackbelt.hu"}],"homepage":"https://github.com/BlackBeltTechnology/pi-agent-dashboard#readme","bugs":{"url":"https://github.com/BlackBeltTechnology/pi-agent-dashboard/issues"},"bin":{"distill-session-knowledge":"bin/distill.mjs"},"dist":{"shasum":"352ee0a6c2ef56ef2fe8d0d0ffc3414004213bdf","tarball":"https://registry.npmjs.org/@blackbelt-technology/pi-dashboard-session-distiller/-/pi-dashboard-session-distiller-0.6.0.tgz","fileCount":25,"integrity":"sha512-kHV0P5gFsW4vsDwg8P0GB3IWHeB3h0UI4g3Sw8LLdOSL2vFZ3PCzoAGdtekyIcwxEz0z9/asnqGPbLkJBdrbQw==","signatures":[{"sig":"MEYCIQDDnrqM0jQ+q7792FP3h+kZ0O9PpuirTjSB1eqnDaPVhgIhAOLrpj5HmuAK8ZpywIVYkLafWA9r87AOZlBDVMtcS9gf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blackbelt-technology%2fpi-dashboard-session-distiller@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":73531},"type":"module","exports":{"./*":"./src/*","./*.js":"./src/*.ts"},"gitHead":"53c737b1bae56fcd8e02a93ae921b83de19df343","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6ad1b426-31e2-421d-bba7-ba86670144be"}},"repository":{"url":"git+https://github.com/BlackBeltTechnology/pi-agent-dashboard.git","type":"git","directory":"packages/session-distiller"},"_npmVersion":"11.12.1","description":"Offline miner: distill reusable artifacts from pi session JSONL logs","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-dashboard-session-distiller_0.6.0_1784567293869_0.08744836341615203","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"@blackbelt-technology/pi-dashboard-session-distiller","version":"0.6.1","keywords":["pi-package","pi-session","session-mining","knowledge-distillation","pi-dashboard"],"license":"MIT","_id":"@blackbelt-technology/pi-dashboard-session-distiller@0.6.1","maintainers":[{"name":"mbotond","email":"botond.molnar@blackbelt.hu"},{"name":"mrbence","email":"dbence10@gmail.com"},{"name":"robertcsakany","email":"robert.csakany@blackbelt.hu"},{"name":"norbert.herczeg","email":"norbert.herczeg@blackbelt.hu"}],"homepage":"https://github.com/BlackBeltTechnology/pi-agent-dashboard#readme","bugs":{"url":"https://github.com/BlackBeltTechnology/pi-agent-dashboard/issues"},"bin":{"distill-session-knowledge":"bin/distill.mjs"},"dist":{"shasum":"09ce623660ec5b8e3ce713d8a5c42ed2c18fca57","tarball":"https://registry.npmjs.org/@blackbelt-technology/pi-dashboard-session-distiller/-/pi-dashboard-session-distiller-0.6.1.tgz","fileCount":25,"integrity":"sha512-KUGcvA+jLufF104REAheQQ5ICTKx/F+D46nyGV51e8AluUlgL5G/rZoyr5oIBnl8QmD88sKv5jJA+EX53qmCww==","signatures":[{"sig":"MEUCICCiiIa0khf6oqfoWmSNwuQurUfWk4a1Y+5iv1Tmo5d4AiEAx/2/9GAP2vxl0xxHDidhoopL7FTB+o83XHilRhG978A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blackbelt-technology%2fpi-dashboard-session-distiller@0.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":73531},"type":"module","exports":{"./*":"./src/*","./*.js":"./src/*.ts"},"gitHead":"88a0cf3cc7d7c7c4e44eb61df3cceff19ed919ad","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6ad1b426-31e2-421d-bba7-ba86670144be"}},"repository":{"url":"git+https://github.com/BlackBeltTechnology/pi-agent-dashboard.git","type":"git","directory":"packages/session-distiller"},"_npmVersion":"11.12.1","description":"Offline miner: distill reusable artifacts from pi session JSONL logs","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-dashboard-session-distiller_0.6.1_1784571769269_0.977705685200055","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@blackbelt-technology/pi-dashboard-session-distiller","version":"0.7.0","keywords":["pi-package","pi-session","session-mining","knowledge-distillation","pi-dashboard"],"license":"MIT","_id":"@blackbelt-technology/pi-dashboard-session-distiller@0.7.0","maintainers":[{"name":"mbotond","email":"botond.molnar@blackbelt.hu"},{"name":"mrbence","email":"dbence10@gmail.com"},{"name":"robertcsakany","email":"robert.csakany@blackbelt.hu"},{"name":"norbert.herczeg","email":"norbert.herczeg@blackbelt.hu"}],"homepage":"https://github.com/BlackBeltTechnology/pi-agent-dashboard#readme","bugs":{"url":"https://github.com/BlackBeltTechnology/pi-agent-dashboard/issues"},"bin":{"distill-session-knowledge":"bin/distill.mjs"},"dist":{"shasum":"c47f5d43c59e57a4bad01ec70428b512af494a4c","tarball":"https://registry.npmjs.org/@blackbelt-technology/pi-dashboard-session-distiller/-/pi-dashboard-session-distiller-0.7.0.tgz","fileCount":25,"integrity":"sha512-1nRou398fPIrBZft0YkF08LLqIIuqWHPaV20bw9Fvf9MaF87XuZ+DduD42wCPa2Q+qg8nE/xkScRznWHKYPYkA==","signatures":[{"sig":"MEUCIQCHmN/GgN8u9uqYc5KVrVamjbGZ9X48xHJ1CyxG14BVkAIgLxPFMY+PKA4g93kuLUdFPnqs2nQzMTAi2L3SYYk51lM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blackbelt-technology%2fpi-dashboard-session-distiller@0.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":73531},"type":"module","exports":{"./*":"./src/*","./*.js":"./src/*.ts"},"gitHead":"9203d6a89f1b81c516e9351072ee5cb4c6579e0a","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6ad1b426-31e2-421d-bba7-ba86670144be"}},"repository":{"url":"git+https://github.com/BlackBeltTechnology/pi-agent-dashboard.git","type":"git","directory":"packages/session-distiller"},"_npmVersion":"12.0.1","description":"Offline miner: distill reusable artifacts from pi session JSONL logs","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-dashboard-session-distiller_0.7.0_1784899168492_0.5265840641925477","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@blackbelt-technology/pi-dashboard-session-distiller","version":"0.8.0","description":"Offline miner: distill reusable artifacts from pi session JSONL logs","type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/BlackBeltTechnology/pi-agent-dashboard.git","directory":"packages/session-distiller"},"publishConfig":{"access":"public"},"keywords":["pi-package","pi-session","session-mining","knowledge-distillation","pi-dashboard"],"exports":{"./*.js":"./src/*.ts","./*":"./src/*"},"bin":{"distill-session-knowledge":"bin/distill.mjs"},"gitHead":"9373dfa416660a285475febc0383608fe14270b1","_id":"@blackbelt-technology/pi-dashboard-session-distiller@0.8.0","bugs":{"url":"https://github.com/BlackBeltTechnology/pi-agent-dashboard/issues"},"homepage":"https://github.com/BlackBeltTechnology/pi-agent-dashboard#readme","_nodeVersion":"24.19.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-dGVgONy3rwtvx1MJ/L0GK9sc/5gZ6cKcBidT4y/tow+q7TI1/gLONgso19l5zbSAbpmixuzWtV/jUR4VmcjGeA==","shasum":"2cec6899761b0db1057044e0a6299006dd766e3b","tarball":"https://registry.npmjs.org/@blackbelt-technology/pi-dashboard-session-distiller/-/pi-dashboard-session-distiller-0.8.0.tgz","fileCount":14,"unpackedSize":41506,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blackbelt-technology%2fpi-dashboard-session-distiller@0.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCFx987Y92sxOi1W89TR27b1NHF0a18VG4nQjqgY/JtWAIgGlfxSMtiVXlvWJp6kV4BLOtC9JmWvwUsbhhr4eDmvNY="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6ad1b426-31e2-421d-bba7-ba86670144be"}},"directories":{},"maintainers":[{"name":"mbotond","email":"botond.molnar@blackbelt.hu"},{"name":"mrbence","email":"dbence10@gmail.com"},{"name":"robertcsakany","email":"robert.csakany@blackbelt.hu"},{"name":"norbert.herczeg","email":"norbert.herczeg@blackbelt.hu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-dashboard-session-distiller_0.8.0_1787746059242_0.009279282219541551"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-20T00:15:15.390Z","modified":"2026-08-26T12:07:39.697Z","0.5.4":"2026-07-20T00:15:15.634Z","0.6.0":"2026-07-20T17:08:14.009Z","0.6.1":"2026-07-20T18:22:49.436Z","0.7.0":"2026-07-24T13:19:28.887Z","0.8.0":"2026-08-26T12:07:39.379Z"},"bugs":{"url":"https://github.com/BlackBeltTechnology/pi-agent-dashboard/issues"},"license":"MIT","homepage":"https://github.com/BlackBeltTechnology/pi-agent-dashboard#readme","keywords":["pi-package","pi-session","session-mining","knowledge-distillation","pi-dashboard"],"repository":{"type":"git","url":"git+https://github.com/BlackBeltTechnology/pi-agent-dashboard.git","directory":"packages/session-distiller"},"description":"Offline miner: distill reusable artifacts from pi session JSONL logs","maintainers":[{"name":"mbotond","email":"botond.molnar@blackbelt.hu"},{"name":"mrbence","email":"dbence10@gmail.com"},{"name":"robertcsakany","email":"robert.csakany@blackbelt.hu"},{"name":"norbert.herczeg","email":"norbert.herczeg@blackbelt.hu"}],"readme":"# @blackbelt-technology/pi-dashboard-session-distiller\n\nOffline miner that distills reusable, verified knowledge from pi session JSONL\nlogs. It is the deterministic engine behind the `distill-session-knowledge` pi\nskill; use the skill package\n[`@blackbelt-technology/pi-dashboard-distill-session-knowledge`](https://www.npmjs.com/package/@blackbelt-technology/pi-dashboard-distill-session-knowledge)\nto load the discipline into a pi session, or use this engine directly as a CLI /\nlibrary.\n\n## What it does\n\nWalks the pi sessions for a project (newer than a persisted watermark),\nsegments each trajectory, and extracts five signal classes anchored on objective\noutcomes:\n\n- **fault** — a tool error that a later same-tool retry resolves (`isError` flip).\n- **user_correction** — a human correction after an assistant action.\n- **ask_user_decision** — a recorded human decision.\n- **procedure** — an episode of >5 tool calls that ends verified-good.\n- **documentation** — a recurring how-to summary.\n\nOnly patterns that recur across `>= N` sessions (default 3) are promoted. Each\npromoted cluster is distilled into an artifact with provenance and a\nconfidence score that decays with age and model change, then routed to a sink\n(`skill_manage`, `memory`, or `docs`).\n\n## Privacy\n\nThe miner is **dry-run by default** — nothing is written until you pass\n`--apply`. State (the watermark and below-threshold candidate store) is written\nto `~/.pi/agent/distill-session-knowledge/` on your machine; it is never\nbundled or transmitted. Distilled artifacts land only in your own local sinks\nafter review. The emitted plan carries slugged signatures and provenance\n(session ids, model), not raw session payloads.\n\n## CLI\n\n```bash\n# dry-run over the current project (no writes)\nnpx distill-session-knowledge --cwd \"$(git rev-parse --show-toplevel)\"\n\n# change the recurrence threshold and emit the routing plan as JSON\nnpx distill-session-knowledge --cwd \"$(pwd)\" --n 3 --json\n\n# persist the watermark + candidate store and print the final plan\nnpx distill-session-knowledge --cwd \"$(pwd)\" --apply --json\n```\n\nFlags: `--cwd <dir>`, `--n <k>` (recurrence threshold), `--sessions-dir <dir>`,\n`--apply`, `--json`.\n\n## Library\n\n```ts\nimport { run } from \"@blackbelt-technology/pi-dashboard-session-distiller/main.js\";\n\nconst result = run({ cwd: process.cwd(), n: 3 }); // dry-run\nconsole.log(result.plan);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}