{"_id":"@ank1015/agent-plugin-compaction","_rev":"2-7affb6d19f6a65f921f202753922c6ff","name":"@ank1015/agent-plugin-compaction","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@ank1015/agent-plugin-compaction","version":"0.1.0","keywords":["agents","typescript","plugin","compaction"],"license":"UNLICENSED","_id":"@ank1015/agent-plugin-compaction@0.1.0","maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"homepage":"https://github.com/ank1015/agent#readme","bugs":{"url":"https://github.com/ank1015/agent/issues"},"dist":{"shasum":"7dcb664223c0abde6c0d3627d690d1e46ff0046c","tarball":"https://registry.npmjs.org/@ank1015/agent-plugin-compaction/-/agent-plugin-compaction-0.1.0.tgz","fileCount":40,"integrity":"sha512-20tinvNI4JR42za8E0lHFuu0bRHjzwt1qyc3aonaA1HrHlBM1AwCfwzmvmXaJF0p47lzOk78TgKFytRYoJFwRw==","signatures":[{"sig":"MEUCIGDCOWccy+UvHWwUH2jg9DJBR9km11kNMCyxKjG6PMPzAiEAxKIGwZ0WrKvZ1Erde93yLkO/ddd7NXL+Mxv44Bi3TpY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":153285},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"621232a246d0d99569ea3cf02bdc37801c1c71df","scripts":{"test":"vitest run","build":"tsc -b","check":"tsc -b --pretty false","clean":"rm -rf dist","prepack":"tsc -b"},"_npmUser":{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"},"repository":{"url":"git+https://github.com/ank1015/agent.git","type":"git","directory":"extensions/plugins/compaction"},"_npmVersion":"11.17.0","description":"Context-window compaction plugin for the agents runtime.","directories":{},"sideEffects":false,"_nodeVersion":"26.4.0","dependencies":{"@ank1015/agents-contracts":"^0.1.11","@ank1015/agent-compaction-store":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.9","@ank1015/agents-runtime":"^0.1.12","@ank1015/agent-filesystem-inmemory":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-plugin-compaction_0.1.0_1783678021070_0.4879522415093236","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@ank1015/agent-plugin-compaction","version":"0.1.1","description":"Context-window compaction plugin for the agents runtime.","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@ank1015/agent-compaction-store":"^0.1.0","@ank1015/agents-contracts":"^0.1.11"},"devDependencies":{"vitest":"^4.1.9","@ank1015/agents-runtime":"^0.1.13","@ank1015/agent-filesystem-inmemory":"^0.1.0"},"license":"UNLICENSED","sideEffects":false,"keywords":["agents","typescript","plugin","compaction"],"repository":{"type":"git","url":"git+https://github.com/ank1015/agent.git","directory":"extensions/plugins/compaction"},"bugs":{"url":"https://github.com/ank1015/agent/issues"},"homepage":"https://github.com/ank1015/agent#readme","publishConfig":{"access":"public"},"scripts":{"build":"tsc -b","check":"tsc -b --pretty false","test":"vitest run","clean":"rm -rf dist"},"_id":"@ank1015/agent-plugin-compaction@0.1.1","_integrity":"sha512-/7o9GoFR7GU7GCvhUcsgl7PyVCbRnzWZNzUoDeawureSP15BgGY7Ilx44QZgcK2s1aGpbMuFcpIgypzsExprlg==","_resolved":"/private/var/folders/1n/t7lbn2t179zg_xjbmn62ypmr0000gn/T/84b71d4e7970a9cd764697e78c711db4/ank1015-agent-plugin-compaction-0.1.1.tgz","_from":"file:ank1015-agent-plugin-compaction-0.1.1.tgz","_nodeVersion":"26.4.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-/7o9GoFR7GU7GCvhUcsgl7PyVCbRnzWZNzUoDeawureSP15BgGY7Ilx44QZgcK2s1aGpbMuFcpIgypzsExprlg==","shasum":"f1e4781db535d1ce347b2783da08c605e32e1fdf","tarball":"https://registry.npmjs.org/@ank1015/agent-plugin-compaction/-/agent-plugin-compaction-0.1.1.tgz","fileCount":40,"unpackedSize":153816,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH3cYwK4DC6OpeCmvOPTXzG96HriNINH0xG/L7kaZdzdAiEA8TrtFzT6a70S+Ai7bk7OwUVpBLIhPtyelQnVbt142pE="}]},"_npmUser":{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"},"directories":{},"maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent-plugin-compaction_0.1.1_1784360937621_0.4673498906455831"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-10T10:07:00.898Z","modified":"2026-07-18T07:48:57.931Z","0.1.0":"2026-07-10T10:07:01.250Z","0.1.1":"2026-07-18T07:48:57.764Z"},"bugs":{"url":"https://github.com/ank1015/agent/issues"},"license":"UNLICENSED","homepage":"https://github.com/ank1015/agent#readme","keywords":["agents","typescript","plugin","compaction"],"repository":{"type":"git","url":"git+https://github.com/ank1015/agent.git","directory":"extensions/plugins/compaction"},"description":"Context-window compaction plugin for the agents runtime.","maintainers":[{"name":"ananya150","email":"ananyakhandelwal60@gmail.com"}],"readme":"# @ank1015/agent-plugin-compaction\n\nContext-window compaction plugin for the agents runtime.\n\n## Install\n\n```sh\npnpm add @ank1015/agent-plugin-compaction\n```\n\n## Import\n\n```ts\nimport {\n  CompactionPluginOptions,\n  compactionPlugin,\n  POLICY_VERSION,\n  CompactionPolicy,\n  DEFAULT_POLICY,\n  Budget,\n  deriveBudget,\n  clamp,\n  turnSummaryCap,\n  checkpointCap,\n} from '@ank1015/agent-plugin-compaction';\n```\n\n## Versioning\n\nThis package is currently `0.1.0`. Until `1.0.0`, public APIs may still evolve.\n","readmeFilename":"README.md"}