{"_id":"@serkanalgur/opencodev2-slim","_rev":"29-fd2587fdf4d8ff1dd22fcaa762fd0c6a","name":"@serkanalgur/opencodev2-slim","dist-tags":{"latest":"3.2.1"},"versions":{"1.0.0":{"name":"@serkanalgur/opencodev2-slim","version":"1.0.0","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@1.0.0","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"5d810021645b997a305fc31df37a1bac943d55c9","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-1.0.0.tgz","fileCount":15,"integrity":"sha512-p5CvOUjKfJmem9TQawtNQOH7Wvx2nFB+QaKEEaKCkQ+ebRhNpx8wq/5+p9sHCffdJkgZUgDfNgl5CX3iRby13Q==","signatures":[{"sig":"MEUCIFyVAILzUG6bUsU4GXYDH0uac6GqYOm0fda9+oU0A/ScAiEAtlBNHyUt/9p+O83FmY42G/Des9uuwLeS6keKtQMGPqs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":76334},"main":"index.js","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"e8ca85dfe70dbc12d40b1b8d9cbd892b1adacbd5","scripts":{"test":"node --import tsx --test tests/*.ts","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"serkanalgur","email":"kaisercrazy@gmail.com"},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"11.19.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"24.21.0","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.4.5","@opentui/solid":"^0.4.5","@opentui/keymap":"^0.4.5","@opencode-ai/plugin":"^1.18.29"},"peerDependencies":{"solid-js":">=1.0.0","@opentui/core":">=0.4.5","@opentui/solid":">=0.4.5","@opentui/keymap":">=0.4.5","@opencode-ai/plugin":">=1.18.29"},"peerDependenciesMeta":{"solid-js":{"optional":true},"@opentui/core":{"optional":true},"@opentui/solid":{"optional":true},"@opentui/keymap":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_1.0.0_1789944591170_0.4324156622079718","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@serkanalgur/opencodev2-slim","version":"1.0.1","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@1.0.1","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"6e691fb6d12b93baaf180383cea721e47b2fc168","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-1.0.1.tgz","fileCount":15,"integrity":"sha512-u4W92bby7Z3fs2Xv20Or/Yvd+E51rylbv+b09hZ43GPmEi8ybtLfCDgBAr8AEBXD8S8ZtrBSbMx1Pp2Y5oJSfg==","signatures":[{"sig":"MEUCICWwE2PoIir6PTCNCK1t1y5xfo33hOPIikPFr/Yql4SwAiEAuJMJQmttZU/sFpQ32r6d4szWJeaK5YX2viQhtMzYXeY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIGoHpoFJzrYje4HoE5qIylaZQF1ZR2/hW5XBgpflu8uUAiBZ3eoGaXljRzxvMlt8ejTzBh5RwE9F2ilsKvCziG15bw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":76334},"main":"index.js","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"8b210d96bd3241152030d571517f9b525c7255ee","scripts":{"test":"node --import tsx --test tests/*.ts","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.4.5","@opentui/solid":"^0.4.5","@opentui/keymap":"^0.4.5","@opencode-ai/plugin":"^1.18.29"},"peerDependencies":{"solid-js":">=1.0.0","@opentui/core":">=0.4.5","@opentui/solid":">=0.4.5","@opentui/keymap":">=0.4.5","@opencode-ai/plugin":">=1.18.29"},"peerDependenciesMeta":{"solid-js":{"optional":true},"@opentui/core":{"optional":true},"@opentui/solid":{"optional":true},"@opentui/keymap":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_1.0.1_1789944835319_0.8950017928791953","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.0","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.0","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"9d5f34d1d647bb1b56345b744fbedd3ffa78cc7e","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.0.tgz","fileCount":15,"integrity":"sha512-CwrkSmqP7gMJXkJSwuZYg9eRvwXDAEMY6z8YT+Li6GAtovGsLR0CWGzw8s9uyCtjrF6MUvdZtt7ZmkDjojgXuQ==","signatures":[{"sig":"MEUCIHbVxcQUfcFdawLfFdgfqjY6gtiI6P2OztTF08jET3RSAiEA4sL2CX1YhA3smq6Ei+i/K21lKLG7lC6LFLtuz7Am0RY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCzFtX9QBL9KKBla7hfYAjBL8/Dx16eTd3wy4KHHaN+SwIgV6DyOCRW7RC0cZCwbUMEXV3X0o+/cT75JxDTaYtgApg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":78075},"main":"index.js","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"c8baf247b63ccddeea705571cc66e21ef850e59c","scripts":{"test":"node --import tsx --test tests/*.ts","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.10","@opentui/solid":"^0.5.10","@opentui/keymap":"^0.5.10","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0","@opencode-ai/plugin":"^1.18.29"},"peerDependencies":{"solid-js":">=1.0.0","@opentui/core":">=0.5.10","@opentui/solid":">=0.5.10","@opentui/keymap":">=0.5.10","@opencode-ai/sdk":">=1.18.29","@opencode/plugin":">=2.0.0","@opencode-ai/plugin":">=1.18.29"},"peerDependenciesMeta":{"solid-js":{"optional":true},"@opentui/core":{"optional":true},"@opentui/solid":{"optional":true},"@opentui/keymap":{"optional":true},"@opencode-ai/plugin":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.0_1789946200917_0.6728656802720505","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.1","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.1","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"6c57d18534e41b51620b876d79178bc1df77ce14","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.1.tgz","fileCount":15,"integrity":"sha512-KPK75s+UH8iwhfmPDl2O56I02L/Bas6b6ut8Xm/XSIKzn8tG5rXEAzkStkaEUTfX4y9fLsd2OJ7ZJJrb/MlsKQ==","signatures":[{"sig":"MEQCIB4VFnlrm3H/XusFc4ADpDPAvib6g44S77GbjSX4QIPyAiB+kH2Di/ZtN3y9jC5RY+Y812C4vXOgG8mYVwseR8hJzg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIBTGalADr/WE3VLLw27GEGeVjZLIFzrNiT74TMyhMQ2AAiEA0x0Bbg9y5r3c+zDbRjhqnXZNoy4K25M/H5/wpXACYuo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":78075},"main":"index.js","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"4d526f530ce66c2f9cf660c01b8fe5b5f5a0c1aa","scripts":{"test":"node --import tsx --test tests/*.ts","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"serkanalgur","email":"kaisercrazy@gmail.com"},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"11.19.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"24.21.0","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.10","@opentui/solid":"^0.5.10","@opentui/keymap":"^0.5.10","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0","@opencode-ai/plugin":"^1.18.29"},"peerDependencies":{"solid-js":">=1.0.0","@opentui/core":">=0.5.10","@opentui/solid":">=0.5.10","@opentui/keymap":">=0.5.10","@opencode-ai/sdk":">=1.18.29","@opencode/plugin":">=2.0.0","@opencode-ai/plugin":">=1.18.29"},"peerDependenciesMeta":{"solid-js":{"optional":true},"@opentui/core":{"optional":true},"@opentui/solid":{"optional":true},"@opentui/keymap":{"optional":true},"@opencode-ai/plugin":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.1_1789946317816_0.7308284665680596","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.2","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.2","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"e71617e07869fcd5d3b2b38403b148468fa31069","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.2.tgz","fileCount":15,"integrity":"sha512-FO8HjXNjoieQIX9svEajGzugt5BEnJAHs95t9WDvRIL+dxtEnOnfbHISNI6UAsvOVMH+4s6HyPAObgA9vQpgHA==","signatures":[{"sig":"MEYCIQCHdlpPblTudY8FduaKS0MZPkuYnCQGneasV1rJ8Ha90QIhAI+7H48uXi5ntCt53SZqcNxFTfQ7IBAu8BZ0ZAsaKCEM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDj/rWYuVVVDNBGaXGQYvT+uWhGb6v+Ul6kSZPvkRzRIAIhAPNRuXhiV7SMKmFGfoIs81WeJTNB1Y7YlxXZAMNekqDT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":78541},"main":"index.js","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"0cde7efa74341582024cb72ba2607e7e2c3f5e57","scripts":{"test":"node --import tsx --test tests/*.ts","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.10","@opentui/solid":"^0.5.10","@opentui/keymap":"^0.5.10","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0","@opencode-ai/plugin":"^1.18.29"},"peerDependencies":{"solid-js":">=1.0.0","@opentui/core":">=0.5.10","@opentui/solid":">=0.5.10","@opentui/keymap":">=0.5.10","@opencode-ai/sdk":">=1.18.29","@opencode/plugin":">=2.0.0","@opencode-ai/plugin":">=1.18.29"},"peerDependenciesMeta":{"solid-js":{"optional":true},"@opentui/core":{"optional":true},"@opentui/solid":{"optional":true},"@opentui/keymap":{"optional":true},"@opencode-ai/plugin":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.2_1789947069028_0.579026335420072","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.3","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.3","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"874c00cd4f364fa7dfb6da1661f9c8401574df11","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.3.tgz","fileCount":15,"integrity":"sha512-/Qwt90ufi2NExjDXpxUCNAY4zZkzP4WlJcniEyJSSmPVFOy/J2Hnz62ZuN1ubVcVMbv2NitveIvL9eMB6+NbKg==","signatures":[{"sig":"MEYCIQCt/FN9sSA/Dw+jObF90F/c0aPzMMuy3JYK+55pkRBsRAIhANvmBvFKcFpr1/cgMiIhH/OJ+Mjlcmke0S1ZMMCtaRdS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIBnt5H6YHUbC1YcLs/TGcS5xF98FvHzP5ZvJ9G71UUmVAiAm4j8dhW6+eY9hpaK1oNx16RsEbbHIrkcnPQFHu6Bm5w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":78217},"main":"index.js","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"042cbb14c4fa663313fa070e97f846b878414042","scripts":{"test":"node --import tsx --test tests/*.ts","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.10","@opentui/solid":"^0.5.10","@opentui/keymap":"^0.5.10","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0","@opencode-ai/plugin":"^1.18.29"},"peerDependencies":{"solid-js":">=1.0.0","@opentui/core":">=0.5.10","@opentui/solid":">=0.5.10","@opentui/keymap":">=0.5.10","@opencode-ai/sdk":">=1.18.29","@opencode/plugin":">=2.0.0","@opencode-ai/plugin":">=1.18.29"},"peerDependenciesMeta":{"solid-js":{"optional":true},"@opentui/core":{"optional":true},"@opentui/solid":{"optional":true},"@opentui/keymap":{"optional":true},"@opencode-ai/plugin":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.3_1789948943042_0.7923852175864217","host":"s3://npm-registry-packages-npm-production"}},"2.0.4":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.4","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.4","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"21516dfd0e44911333cd3cab43d2cd282161acbb","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.4.tgz","fileCount":11,"integrity":"sha512-emUXcSbLcwb2WzSG0+8OsvLa+UG32FirDOFwWwlu4/sUq6aWbF2uJnxOyigqaPUoVI/UMiLHMZHy/1jpJDeV3w==","signatures":[{"sig":"MEYCIQD5biiKsAOcsk4PYtOEPKK4aoY07P3A1auH+iuI9jikFAIhAOL8x5Mo7y8Q0Oc+aUWZYtNnuHwNDlhECKOArAWbe4D1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCdso+2QD1iXvIciMLu0udg5mez4wMVs3sQZw79dK7kJAIhAI9QlgHat/19ViF5IZbqO3Ka/bhbj58TbUXikchBIeTZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":55437},"main":"index.js","type":"module","exports":{".":"./src/index.ts"},"gitHead":"33d72e27a32c1566d35120607dbdc6bd15a8d4e4","scripts":{"test":"node --import tsx --test tests/*.ts","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","typescript":"^5.7.0","@types/node":"^22.0.0","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.4_1789950246421_0.09918649382054112","host":"s3://npm-registry-packages-npm-production"}},"2.0.5":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.5","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.5","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"1bb185f65f31460890f1e864dc04cbcbbc3345a2","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.5.tgz","fileCount":11,"integrity":"sha512-NIN46pj0T1L/ImCr+oo/StvA8HLz01gglovz9G+xikTVvV3Y5f1+vzrgXKlWbM3xbi5PHA4cjVNoTgxcsbY4/g==","signatures":[{"sig":"MEUCIFEjfrPdrRkhwVPPis/JB5Wa7y3kqOWn7/IuufUnoWBIAiEArEhxPXhz6Xyu3lhFR5VwP15KnmjKYjRSbnE75RkWhgk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCZCTzZo/RUDkXuSo2Vv7ibVPo3oDkr8hL4uew+GAmIWwIgM5Ry1R4+cZeyDOaTNs61Q2eI8Hury1lZ5/vdJaxtjr0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":55841},"main":"index.js","type":"module","exports":{".":"./src/index.ts"},"gitHead":"5441b95219725958e646bfc682e3168edce0e972","scripts":{"test":"node --import tsx --test tests/*.ts","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","typescript":"^5.7.0","@types/node":"^22.0.0","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.5_1789951224918_0.7499174751428395","host":"s3://npm-registry-packages-npm-production"}},"2.0.6":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.6","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.6","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"aaf77f0bed277a3fe5626252c1decc497285737f","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.6.tgz","fileCount":12,"integrity":"sha512-jNY6LtWCcYXKYjFKj9K3i1K1EtvNmpQrg+CZsriqgt/7pUg+aoTlpx1XgBwCEXqWFo/n3/X40bBxHPHDQSiv5w==","signatures":[{"sig":"MEYCIQCdt8N8jy/Bo3NHizAD5JaKf5Max7KVBgdakY32c3Au4AIhAJ1/QyZ6U5eUtY+EdF0VAtKgkulSVNuosToTbQ9sCSOn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDhQ+0zbMAxakzOy8S7sXngjAgjsiS7yvVB4wOfctthnQIhANnSR9RytOxw5HhOvxuazE8/HKRSUghwtYutkRbB/QJe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":62812},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"1cc2d6fdde1a1340c3194b10dfa898801d00ff68","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","typescript":"^5.7.0","@types/node":"^22.0.0","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.6_1789956549201_0.15691279898446342","host":"s3://npm-registry-packages-npm-production"}},"2.0.7":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.7","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.7","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"a83da496a06a455d8b548f51afcaa3e311966690","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.7.tgz","fileCount":13,"integrity":"sha512-OzRUxg4/hugwOCuW0ERZNpk15QEtlOWFsbJhjyZA0NVn0wjBpsShJiyEJDpPhDu6Jmv2AUsW5tHl/XL7Hrmu6g==","signatures":[{"sig":"MEQCIHpIeo2iMGfwua0dCvoK1aDGC62hTTEUZkEODBaiXR6WAiBCAyOR3LT7BRHk28yzhHLtgJ5tz7uKBB8r385yA5ORhA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCY3sdjKBCCk38fVdzh7s391XhSKQVVVioO8HtDvAAgbAIhAKFvWIoIe/5De8kZMsRHXMeSaEbr+kZ7RlXvdz9P8hjL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":63778},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"e58628ab4c62f96267e2241f1e9916abc078a91a","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","typescript":"^5.7.0","@types/node":"^22.0.0","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.7_1789956958094_0.8218527660074255","host":"s3://npm-registry-packages-npm-production"}},"2.0.8":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.8","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.8","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"2eb283f938ee0123a3157f3b9328d4e4519eb41c","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.8.tgz","fileCount":13,"integrity":"sha512-ZN57smoI82zLmBZVngwDbJjrnnOVS0wL3Z+WvwZrzkU+Ff9vhmpf/h0qT79g+QWAyeCtVkM1m7kP0VkNCiiS3g==","signatures":[{"sig":"MEYCIQCn1LMMSy13TbSmw7A3xUvACOWqdu9QvZ7f18O3VkOB9gIhAKM53YFdEmZNI3+FKt022iwQy7Xj+uafrP2+dde9jkbB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCtZ63cYB6VAXmFFPOg+cO6Lkf+YfgLFvT35sfitU6hrwIgJvIOMpmkDMVB7I0gPWrwviJ6gsakNYEauTUs8Xn2da8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":64481},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"4ce065d391893d866cab81a166d7c5b4651534a2","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","typescript":"^5.7.0","@types/node":"^22.0.0","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.8_1789965514700_0.9972125710356619","host":"s3://npm-registry-packages-npm-production"}},"2.0.9":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.9","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.9","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"1692a7eb580a306d9be1be50bd45aea2f38dda8f","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.9.tgz","fileCount":13,"integrity":"sha512-+9r2gxL6PAnEG1OAXlzjcTnLayt2iBMehzVTAU6qHKWKVpOef4NUXZhtgMqWaSWAMg4WEv2fG3DgVo0K54RQtQ==","signatures":[{"sig":"MEUCIQDr7bsPE+fz1XlP9eXvTNXgk6TNVPb6N5JzSaBTFq6DogIgGESh8XxUls7K0aNBX57Ht1TdHxfpa2ZsiJC8NNNEYVo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCQgdODboID9Sh4w+ZI/Qq60l+LJR7IdU0eWoz/oEuMsAIhAPcQUs7eIjMmy9kGx63DXyY2gavyiEATmx0R+ZHEyXuF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":70011},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"e14464fe60bad04ecf6c68e08292a4e1b24eb75a","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","typescript":"^5.7.0","@types/node":"^22.0.0","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.9_1789966255188_0.007740146505723411","host":"s3://npm-registry-packages-npm-production"}},"2.0.11":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.11","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.11","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"13a66ae43cd27fe725ad446c8433aee087becebb","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.11.tgz","fileCount":13,"integrity":"sha512-FHCbByEOYqyetBFtKG5Tb025Y7kbPTydfNkIPFvO2NDsn6RAvgvHNF/Gp6JusmcWpufqJRw9/5TjDjp+MdEGMA==","signatures":[{"sig":"MEUCIEY/uSePfxlmqV9A53F8/jdrToruY6m70FVeqHmy/kgQAiEAwSUAmR0EkTg292vMZn/1/vYSpr2P/7LFaKcRIKPNnL8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIE+GEUQCHMsWhXRXBuZRs/C9sRIqsmF8fy+4ibX/SOgoAiABXNeSISb34+Z/k7o9zu2++OzqkIspsKHnJOQb1QQETQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.11","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":70879},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"15784b172c54368e155d873fea0b44c48dc11236","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.11_1789968061885_0.21122074524495127","host":"s3://npm-registry-packages-npm-production"}},"2.0.12":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.12","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.12","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"8bb3de33278a6f447caa0727478aa1137d9d2349","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.12.tgz","fileCount":13,"integrity":"sha512-oMoNUTB8DxiYEsH8PEO877XnbTro5Fcq3pobvamy6NRZbPJ2T33WbIzwrRfabl7CQRgSmw01RRZudB7EKV7z9A==","signatures":[{"sig":"MEUCICs9/S6IY1YGiuolvU0ju+covCxa7L1PWbHmA1ePqi/ZAiEA9N1umyBlszEc6g6h9VKG+7RSX8VKuVCQJr+5mzrU9mQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIH69V02B4JCubOU2oP1yvAvs2jRMjb3oCliLZoMmM23VAiEAhXGX/Le/5VveOgeX1lB6rQyvxtsOT/6JsY2sHzdUUfw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.12","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":74464},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"dc012cb5667c60bbf7606b344e8aebbed2eb1d28","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.12_1789968839618_0.7560878387633092","host":"s3://npm-registry-packages-npm-production"}},"2.0.13":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.13","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.13","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"a6e2d22df2e17560edea8f66bc222f10a7cc6284","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.13.tgz","fileCount":13,"integrity":"sha512-EYuo5tbDSiINoPl0m0VavqYnU1cp136DO1LoS0T3sKpH+GXWok3Crd3bnIVSDeZ5DTziykTM1ger+sboOrteXw==","signatures":[{"sig":"MEUCIBTl73mN8Skpf+5IADw3zJZv6+BjwJ/MmoS6UCtr59ewAiEAxoiC0jfYpL+EHo8++U9+NpUOtKfSm6lTKLcUDNC36UY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCJxhUyPfjUtnR2NVl1udRbFi8JYCkgMT7TSkMOaPj8ZwIhAMhVPmXDxEoEiZUeeisf6fIAXJBWfMokoPRVph2UFQaH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.13","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":77721},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"0fdac1a7322e570e42e5049e72c2e394aff6b59a","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.13_1789969617088_0.5977722666726195","host":"s3://npm-registry-packages-npm-production"}},"2.0.14":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.14","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.14","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"dd42bd052e73e859952ff219fb6772f3aa349080","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.14.tgz","fileCount":13,"integrity":"sha512-DsY0b4PPtjxWXB5A4ROESfv5sBpzS80lYZD9qvbT8BAW04WEjvRHQb0VO+8VmJ61b/j0X/ZLMKzTfb1ZyjOndA==","signatures":[{"sig":"MEUCIASYHCKkP1cTpteanJxqGgnbP576nOxWqxVddMy+OQVoAiEAjYqgBkCjoExrrsJ7K8P+R+yy2kSuVehOgEjW94rBCJ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIH3hIA41y6XGWd1nEwJyWvEeVHwGpSAXJ6dzBYxoRHdOAiAjhzrVNFRI3OmAyJYdtLU3dm7+U3q8t4gCxpX7TJbTmg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.14","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":105663},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"c532bd7e8aac515fd3465ccdf7e3c5d105dbc965","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.14_1789974013025_0.7693607857159468","host":"s3://npm-registry-packages-npm-production"}},"2.0.15":{"name":"@serkanalgur/opencodev2-slim","version":"2.0.15","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.0.15","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"03be6baccb3f1419d87386e66f88cbb0cb2a1175","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.0.15.tgz","fileCount":13,"integrity":"sha512-hNwt5yLSOkG6+seB6ti3UMJ7Vg7VWZVgHJcKVpe6ko1rvm1YqUZKoUO8Nw4UPAZ1ov5QUbx2QppNKeIbUaz8vw==","signatures":[{"sig":"MEUCIQCOiHoVFAI0BK61/rkbFtsGVvzNU/HKxWhb2XW66AkSdgIgIq7+DsfBUmw3Oq3xYiDKMaDfqMdsF6sZPxilCecPGnQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIHaBEddABS5xZ/InyZ3mqjvPWm7gxmPW8dwfsUXYQdgqAiAoT3UDgLAjX21/hklDsqxb7qBoe/101dvjzcQQlJ8m+A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.0.15","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":110983},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"9ae68232c5c449f9e21baeb947bee16bbf7ae3dc","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.0.15_1789990444394_0.7228639122519918","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@serkanalgur/opencodev2-slim","version":"2.1.0","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.1.0","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"e53b1b13f4c2a29d4dd967b833180f8524363df5","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.1.0.tgz","fileCount":13,"integrity":"sha512-Kyu50c4UBRI0kY1iwMEFMqEWFdzXsJz8KGqc5wkAlE1jp/eUp2qqmX4Ij9yTL7UuQDJXLDAZ7BY2ebzKK2Ni1Q==","signatures":[{"sig":"MEUCIQDkCDW+SUVYQAAJ91E3i5xs8ibYsg7xTxH9nYBqyCI8qwIgHDQinrXVPW4Gn/SI87p7mR+T1XvwlXVf2Eb+Xmk/WXQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCq+9P2GyFLt2KtAe2syOGrvInT0EBdy4rm5a06ayKyRQIhAID7DRcLRSfiWTyQcSmABVuGmBwADkmG9vuR+oWmkE0X","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":126392},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"9f98ae3426fb6cddfaa23a383a2bbda780eb2446","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.0.2","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.1.0_1790108114041_0.7273844009736912","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@serkanalgur/opencodev2-slim","version":"2.2.0","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.2.0","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"9f52ab7937d51e958a49ed7b895641aaa28dca29","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.2.0.tgz","fileCount":13,"integrity":"sha512-seBX+srZwWQ/d4OCO7GgUL1s1AaROfx/54LU6loLf+eLI2lmxiKeUSzk2T+6SF62/X/mrMvxwTcDqIKXFWcuDA==","signatures":[{"sig":"MEQCIDaSIMTp9+NOREl06ZqdQ/atxbf6P5Biil9riHHt3uvmAiA39KmpGvMgxSR1CysD1HNvsr5jqQxtA1lc0dwwzu8zMw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCgL9qM5q5vwPPvCvQ5b3MjAaGB4CyAiNkSqHK4odCQJQIgR+tcfTBmYJisWYZ16WkRa5GDJ4IhdFvgB4JiqHq8gro=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":138272},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"6ba51f923be461b31a5a231771c3b7464fd0781c","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.1.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.2.0_1790109021735_0.4962466064157238","host":"s3://npm-registry-packages-npm-production"}},"2.2.1":{"name":"@serkanalgur/opencodev2-slim","version":"2.2.1","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.2.1","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"ea9e43c0d4f1527af5209f32213ceb959f41dfd2","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.2.1.tgz","fileCount":13,"integrity":"sha512-iIIEF8xqJQmDSzhuU5ZzLCXIqKcq0m0j2kobkz8uWHIlYn2D9PPS9nKw1ji9TeXA+SZwNoQ7uuNRPM39Av4U3Q==","signatures":[{"sig":"MEUCIBkI4qvAcDu/ILZ7AubXfdeROZ/haRO+mL0qIQ79dG+tAiEA8meHJ+9oVVb+ciAdI5ALjoXN2QiAXCh1a8BfTASGY4c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCRGvSyrR0dloylsHuKPIf3rIFYa2t+055FWydCek5O5QIgDYBTZ5QzpUgIJaXJtqzyCctHB4Brsclfr1sA2FxnC/8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":140023},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"bcece487a84cb7c2de2bb968245ab24d20d3ed45","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.1.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.2.1_1790142871149_0.2929153096658499","host":"s3://npm-registry-packages-npm-production"}},"2.2.2":{"name":"@serkanalgur/opencodev2-slim","version":"2.2.2","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@2.2.2","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"bc93bad1489012acc46d3221a04f23519c334639","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-2.2.2.tgz","fileCount":13,"integrity":"sha512-VjEQFybcpryzlgG+uFP0UogXYStIS+GZpw183wMFcCCq4pztR9ceOzPtkZnbl/tL6M03Q11dwEoIILRKgwD4Qg==","signatures":[{"sig":"MEUCIQDj4zBNj/o1dpjTlaqcNLc2M66qTiUdsNQinFD/XacPHgIgPCUuHrRpQ+8Sf0/ftieXA+ESomqST/08GekV2fXo+N8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDNAqhNJmHvTM9PeW9CzE1B5vAaCPDUmfCC3Ix6o9ifgwIgFR76u+3b6UVbzZxN6V40DiDC0MvpKQxRhJ3HweIaOV0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@2.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":141117},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"2bdcf7e04b1e61570f5939049101cddcaed24046","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.1.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_2.2.2_1790143484901_0.9439203155490907","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@serkanalgur/opencodev2-slim","version":"3.0.0","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@3.0.0","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"d0108bffa5deb6660e4edf78764108dd66b741b2","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-3.0.0.tgz","fileCount":15,"integrity":"sha512-n+GJDWziJ4D03G1/58weQDix+3VUNnFtsD2Yi7SySQcUE2CgovcvhMWWMInmKknzn0l7LiOZcNwnIDggwiyc8A==","signatures":[{"sig":"MEUCIQC1Limy4fxX4ideqfg8KlBWEFOwsB9QBm1EKClzVS4t8gIgJ/yx5fwBVGF227Et0rh7dW7cGOJz4C7JIIjeQ+HjT64=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIDqfmBcxvysfYZg0RyIlh0Jk9QwSlnuZ3nS0JgrBfbxbAiBnwBsOj+D6YNd+P5Q3i+ojn8RGTiBS0opEEx+mtCxonw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":275639},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"2f88515403784a5d28306077cbf5a024137f6d89","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.1.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_3.0.0_1790661333445_0.3719341311862516","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"@serkanalgur/opencodev2-slim","version":"3.0.1","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@3.0.1","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"b115c0e0c250269e3e1fd487256038e6688e0083","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-3.0.1.tgz","fileCount":16,"integrity":"sha512-YpRmZAFRQ8KnEPTW6ucFdCo5B6SCd9esWqRGTkd6X3iN/HNtQntzW5tPEthP8brFztYJyAyosdD6irMY7l6gDQ==","signatures":[{"sig":"MEUCIQDgjP90ia5e2f7UXW8gzK64Pc9qBOutxf0RrSssNdehVgIgF/mKOq4pd1JoiVE/MA4fCzIipKzx+8Uitj0lUE/8J6c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGqBD0/FSJF+b8fMpzdnaPkjoL1RkuJXI0qx34wzzYJEAiEA0kJ8u/knpI6kmCq6D8YbuaLcE0wf5ovMCZ26CWUTKt8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":284750},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"da364400c2ecd2eac3dfb596e4a9729cbd855b70","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.1.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_3.0.1_1790665271661_0.9979182325335962","host":"s3://npm-registry-packages-npm-production"}},"3.0.2":{"name":"@serkanalgur/opencodev2-slim","version":"3.0.2","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@3.0.2","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"6762b92f930457ec423f097a4cdd095b7dd09f2c","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-3.0.2.tgz","fileCount":16,"integrity":"sha512-P96WcR+3wEGLKkhClldHIo91jjhE7LPsHSlX8caaz6f2x32rgeLADHdTVJrg0j9NGbSiAYA3KUKFFb3JKf/7kQ==","signatures":[{"sig":"MEUCIGK8GwTsOGlLFUB7UnbjPRWJIYYVSbSJxJ0UUu2kUXxfAiEA1zNhAuVXSFa4PeOJ0AP4u1tT3WgXMTCDuOEoejJXfQY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIB58si4v3Aja5A+afnQ8FcvWO9wKAlNd80pW53QFevTzAiB/9r3Qav/p5yD5mQ81Z3fbWI87Ab05xKUr6lufnvrMKQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@3.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":316342},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"08053492740e26dc167591b9e16e725acdd2d1e6","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.1.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_3.0.2_1790709321352_0.00045685152491814485","host":"s3://npm-registry-packages-npm-production"}},"3.0.3":{"name":"@serkanalgur/opencodev2-slim","version":"3.0.3","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@3.0.3","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"f4559a2db782de6e7645c10d8e66282cf89abb74","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-3.0.3.tgz","fileCount":17,"integrity":"sha512-BdimoDY7cHhdsQxcsqmB6XVKv9RksV1ouEXYJgePQ/Oe5A3lFnbBd5m+bBNJY1c77H3mQC/Wq1HFy60enSRYIQ==","signatures":[{"sig":"MEYCIQD1aTs+G9YNDPcldf5mLkDKQG1fOMz9HzISv7YZs5shpwIhAIHiRJLqPRHUCu4agNm/BZ9AyGlFqYMnocM0Sm2Nz6OW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIEQxbmkKiPYgHLD2qBc7Jrh7vaVSamUiWz+Z3NAHvrYMAiB2EQ/P3X+qQ5a13qNuqRvo5Js5F4BnBlLDEMT/w9N/tA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@3.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":341216},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"9054cb0291aa207915025b0c71f1f4acc309cc4a","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.1.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_3.0.3_1790712930595_0.48113685835750153","host":"s3://npm-registry-packages-npm-production"}},"3.0.4":{"name":"@serkanalgur/opencodev2-slim","version":"3.0.4","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@3.0.4","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"beb0a182c94e9cac9385c805a6bed8ac769f3527","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-3.0.4.tgz","fileCount":17,"integrity":"sha512-udA3ui9v+9N00KMreVs6auB6TcoL+Q6D62mIEh1Axoaz3vM8xBL41k9KYDfuTAOrmIusNrslaW0I9UGPnkVJSA==","signatures":[{"sig":"MEUCIA2WnxvT43mhBmyIrknGoArqCTUWvAkNBedcQm4GLbFmAiEAuEFTw0hr4yMNDNoWcq9K75RgBH92Gqw6W+KLhxu7aao=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQChjy7W1f/KhRtDvjwohqxpaEHTcgl/Xp6RXAPYhygVzQIgJaxAmroI0S5t1Y1JX9l1Mrhq38j/IGkB3I/Vw5aO9uI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@3.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":351595},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"25f3b7e389e38ea0eabe87c431063c7d6d3dcc48","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.1.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_3.0.4_1790717789150_0.3279014483552529","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"name":"@serkanalgur/opencodev2-slim","version":"3.1.0","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@3.1.0","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"1265abf724c1c216287bdc4eda811c82e316871a","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-3.1.0.tgz","fileCount":17,"integrity":"sha512-hPJ08B34GPUdU3v362hG/scJVZzdFh6Uk5YkJ3iafklpqVT62wKsl0Ukwe8LEUE6LuX5os2tkhAUPIlLT3LvSw==","signatures":[{"sig":"MEQCIAZBWsYb1vT4v3dqed5QwekH6xS6qoC2dHNFhBypAHwvAiB+g58pGueHlxYWIEj3nJnPhIMLojseEKW3Ct5Kz2zXlA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDSId6NbEsy2g/efsaQbQi/zNtJEy4LXwLvHjIbPP1ynwIhAO5o5dneLDLEwyGHdbuh4lX+2n3vOx9bEKFv8/scvIgm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@3.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":358978},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"2ef41089b95fc4a9f6d8cdcb1ad78ba264c97718","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.1.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.2","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_3.1.0_1790721247294_0.15337652050581352","host":"s3://npm-registry-packages-npm-production"}},"3.2.0":{"name":"@serkanalgur/opencodev2-slim","version":"3.2.0","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"author":{"name":"serkanalgur"},"license":"MIT","_id":"@serkanalgur/opencodev2-slim@3.2.0","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"807d6152cd70edfbe5c74e65121c7567e5dadb3e","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-3.2.0.tgz","fileCount":18,"integrity":"sha512-xCGtwjDDyz8Bz2HmlbZCEO+6mHLe3LSVABc+CRbWd2+3fE0jao7O/a4aXfRBBVeH58ugZVkUPdvnCakPQPlABg==","signatures":[{"sig":"MEQCIA3P5O5nghZcOPwwUK1oRomnXrLiEx11QE5SlgiG3Iz6AiBu2ukEkmIZCTTq3pqOu2wRaIyW4zr8DctDafRnA9u8MA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCscp6KJ4enCYKVOQRZ6jj9HZ4IiFV2xktkdU0E6N70QwIgHX0pPcQ93x5lgyXSzJapDT73eX8R/uENurVvbm4Urds=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@3.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":394474},"main":"./src/index.ts","type":"module","exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"70c6f9ebb0f7c193072b00bb7b6069e7da6ba1b6","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"52c9ccb1-4351-4541-af64-148f9745b79e"}},"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.2.0","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"_nodeVersion":"22.23.3","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencodev2-slim_3.2.0_1790949912420_0.08150589241810646","host":"s3://npm-registry-packages-npm-production"}},"3.2.1":{"_id":"@serkanalgur/opencodev2-slim@3.2.1","bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"dist":{"shasum":"3162105367c406b52c5700c1cecb044dde434bf1","tarball":"https://registry.npmjs.org/@serkanalgur/opencodev2-slim/-/opencodev2-slim-3.2.1.tgz","fileCount":18,"integrity":"sha512-HeUqzvJ9gGfh3v1NNPop1VcJgENuYkm/f8xn1MWhFnPGgHb6MgyrBGVvrNzZKaR/PbNQMUhm8HLnkQXubabgew==","signatures":[{"sig":"MEYCIQCCPynDwBFDpsZJE8yVKrCdDJv4nlcUk4tVPnuK0HEURAIhAK19Z+HMrXr+hI6MFDyP0L2R6klhwYpxVIigd6sV0t6/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCwVo9lj3xQ0Fl+epLiduOcv++8NuXIzWmkENB/jXpUUQIhAOWj7XnwXdizyElwbokTj84wSo6huZg9G89hZykVn2uq"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@serkanalgur%2fopencodev2-slim@3.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":396599},"main":"./src/index.ts","name":"@serkanalgur/opencodev2-slim","type":"module","author":{"name":"serkanalgur"},"exports":{".":"./src/index.ts","./tui":"./src/tui.tsx"},"gitHead":"ae7a49c43749a66251fe68d5e5f710040cf0e611","license":"MIT","scripts":{"test":"node --import tsx --test tests/*.ts","build":"tsc","format":"prettier --write .","typecheck":"tsc --noEmit","format:check":"prettier --check ."},"version":"3.2.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"52c9ccb1-4351-4541-af64-148f9745b79e"}},"homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"_npmVersion":"12.2.1","description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","directories":{"test":"tests"},"maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"_nodeVersion":"22.23.3","dependencies":{"jsonc-parser":"^3.3.1","@anthropic-ai/tokenizer":"^0.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","prettier":"^3.4.0","solid-js":"^1.9.12","typescript":"^5.7.0","@types/node":"^22.0.0","@opentui/core":"^0.5.11","@opentui/solid":"^0.5.11","@opencode-ai/sdk":"^1.18.29","@opencode/plugin":"^2.0.0"},"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.8","@opentui/solid":">=0.5.8","@opencode/plugin":">=2.0.0"},"peerDependenciesMeta":{"@opencode-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opencodev2-slim_3.2.1_1793168351091_0.272992014246092"}}},"time":{"created":"2026-09-20T22:49:51.034Z","modified":"2026-10-28T06:19:11.639Z","1.0.0":"2026-09-20T22:49:51.315Z","1.0.1":"2026-09-20T22:53:55.404Z","2.0.0":"2026-09-20T23:16:40.997Z","2.0.1":"2026-09-20T23:18:37.883Z","2.0.2":"2026-09-20T23:31:09.108Z","2.0.3":"2026-09-21T00:02:23.129Z","2.0.4":"2026-09-21T00:24:06.509Z","2.0.5":"2026-09-21T00:40:25.000Z","2.0.6":"2026-09-21T02:09:09.285Z","2.0.7":"2026-09-21T02:15:58.179Z","2.0.8":"2026-09-21T04:38:34.799Z","2.0.9":"2026-09-21T04:50:55.274Z","2.0.11":"2026-09-21T05:21:01.968Z","2.0.12":"2026-09-21T05:33:59.710Z","2.0.13":"2026-09-21T05:46:57.170Z","2.0.14":"2026-09-21T07:00:13.126Z","2.0.15":"2026-09-21T11:34:04.482Z","2.1.0":"2026-09-22T20:15:14.261Z","2.2.0":"2026-09-22T20:30:21.819Z","2.2.1":"2026-09-23T05:54:31.229Z","2.2.2":"2026-09-23T06:04:45.003Z","3.0.0":"2026-09-29T05:55:33.546Z","3.0.1":"2026-09-29T07:01:11.734Z","3.0.2":"2026-09-29T19:15:21.456Z","3.0.3":"2026-09-29T20:15:30.728Z","3.0.4":"2026-09-29T21:36:29.259Z","3.1.0":"2026-09-29T22:34:07.437Z","3.2.0":"2026-10-02T14:05:12.555Z","3.2.1":"2026-10-28T06:19:11.208Z"},"bugs":{"url":"https://github.com/serkanalgur/opencodev2-slim/issues"},"author":{"name":"serkanalgur"},"license":"MIT","homepage":"https://github.com/serkanalgur/opencodev2-slim#readme","keywords":["opencode","opencode-plugin","context","compression","pruning","tokens","semantic"],"repository":{"url":"git+https://github.com/serkanalgur/opencodev2-slim.git","type":"git"},"description":"Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds","maintainers":[{"name":"serkanalgur","email":"kaisercrazy@gmail.com"}],"readme":"# OpenCode Slim\n\n<div align=\"center\">\n\n<img src=\"./assets/banner.svg\" alt=\"OpenCode Slim\" width=\"100%\" />\n\n[![npm version](https://img.shields.io/npm/v/@serkanalgur/opencodev2-slim?style=flat-square&color=6366f1)](https://www.npmjs.com/package/@serkanalgur/opencodev2-slim)\n[![npm downloads](https://img.shields.io/npm/dw/@serkanalgur/opencodev2-slim?style=flat-square&color=22c55e)](https://www.npmjs.com/package/@serkanalgur/opencodev2-slim)\n[![stars](https://img.shields.io/github/stars/serkanalgur/opencodev2-slim?style=flat-square&color=f59e0b)](https://github.com/serkanalgur/opencodev2-slim/stargazers)\n[![license](https://img.shields.io/npm/l/@serkanalgur/opencodev2-slim?style=flat-square&color=8b5cf6)](https://github.com/serkanalgur/opencodev2-slim/blob/main/LICENSE)\n[![Socket Badge](https://badge.socket.dev/npm/package/@serkanalgur/opencodev2-slim/latest)](https://socket.dev/npm/package/@serkanalgur/opencodev2-slim/overview)\n[![opencode](https://img.shields.io/badge/OpenCode-V2-6366f1?style=flat-square)](https://opencode.ai)\n[![typescript](https://img.shields.io/badge/TypeScript-5.7%2B-3178c6?style=flat-square)](https://www.typescriptlang.org/)\n[![sponsor](https://img.shields.io/badge/Sponsor-GitHub-ea4aaa?style=flat-square&logo=github)](https://github.com/sponsors/serkanalgur)\n\n**Smart context management plugin for OpenCode v2 — semantic compression, cost-aware pruning, adaptive thresholds**\n\n[Installation](#installation) • [Usage](#usage) • [Features](#features) • [Configuration](#configuration) • [How It Works](#how-it-works) • [Commands](#commands) • [Changelog](#changelog)\n\n</div>\n\n---\n\n## Features\n\n- **TUI Panel** - Rich context usage visualization with status indicators\n- **Enhanced Compress** - Auto/range/topic modes for flexible compression\n- **Semantic Compression** - Groups related tool calls and compresses them intelligently\n- **Cost-Aware Pruning** - Considers token pricing when deciding what to compress\n- **Adaptive Thresholds** - Learns from compression history to optimize timing\n- **Session Persistence** - Saves state across restarts\n- **Deduplication** - Removes repeated tool calls automatically\n- **Error Purging** - Cleans up failed tool call outputs after configurable turns\n- **Tool-Output Pruning** - Replaces old, large tool-result payloads on the outgoing request (opt-in, off by default)\n- **Measured vs Estimated Tokens** - Merges the server's real usage with a full-prompt estimate, and labels which one the panel is showing\n- **Topic Extraction** - Identifies and tracks conversation topics\n- **Smart Recommendations** - Provides actionable suggestions for context optimization\n\n## Installation\n\n```bash\nopencode plugin @serkanalgur/opencodev2-slim@latest --global\n```\n\nThis installs the plugin globally. The TUI features (panel, slash commands) are automatically loaded when OpenCode starts.\n\n### Manual Installation\n\nIf the CLI command doesn't work, add to your `~/.config/opencode/opencode.json`:\n\n```json\n{\n  \"plugins\": [\"@serkanalgur/opencodev2-slim\"]\n}\n```\n\n## Usage\n\n### Slash Commands\n\nAfter installation, these slash commands are available in the TUI:\n\n- `/panel` — Context window panel in a dialog: message/token breakdown for the\n  active context, the resolved compression trigger, and live measurements\n- `/compress` — Sends the assistant a compression instruction (see below)\n- `/status` — One-line context health report (tokens / limit / %, model, cost)\n- `/slim-debug` — Toggles `debug` in `~/.config/opencode/slim.jsonc`\n\n`/panel`, `/status` and `/slim-debug` are display-only: they render through\n`context.ui.dialog.alert` and never append anything to the session transcript.\n`/compress` is the exception — it is a deliberate instruction to the model.\n\n### TUI Panel\n\n`/panel` prints:\n\n- Session id and the scope of the numbers — they come from\n  `session.context`, i.e. **messages since the last compaction**, not session\n  totals. The panel states this on a `Scope:` line.\n- Message breakdown by role (user/assistant/system), tool calls, and\n  compactions within that scope\n- Estimated tokens per role plus a total estimate\n- The resolved compression trigger, as a token count and as a percentage of the\n  context window, then the floor on a continuation line —\n  `Trigger: … tokens (…% of … window)` followed by `floor …` — the same two\n  lines the `panel` tool prints\n- Live measurements: tokens, usage %, status, cost, model\n\n### `panel` tool\n\nThe `panel` tool prints a richer, boxed report. Two lines make the numbers\nself-explanatory:\n\n- `Source: measured (server-reported)` / `Source: estimated (approximate)` —\n  where the headline `Context` token figure came from (see\n  [Measurement trust](#measurement-trust-usage)). An estimate is a magnitude,\n  not an exact count.\n- `Prune: N outputs · ~X chars (~Y tokens)`, with the caveat\n  `saved on the last request only, not cumulative` on a continuation line —\n  tool-output pruning activity from the most recent request. It is a\n  *per-request* figure (the plan is re-applied every request), not a cumulative\n  saving, and the line appears only when pruning is enabled or the last request\n  actually pruned something.\n\n### Compress Tool\n\nThe enhanced compress tool supports multiple modes:\n\n```typescript\n// Auto mode (default) - intelligently selects what to compress\ncompress({ focus: \"old exploration\" })\n\n// Range mode - compress specific message range\ncompress({ focus: \"completed tasks\", mode: \"range\", start: 0, end: 50 })\n\n// Topic mode - compress messages matching a topic\ncompress({ focus: \"database work\", mode: \"topic\", topic: \"database\" })\n```\n\n#### `/compress` delivery\n\n`/compress` does not compress anything itself — it writes a short instruction\n(the focus/mode/keep-recent you passed) into the transcript so the assistant\ncalls the `compress` tool. Because the point is to make the model act *now*,\nthe synthetic message is sent with an explicit `delivery: \"steer\"`:\n\n- **`steer` (chosen)** — delivered immediately: it interrupts an in-flight turn,\n  and `session.synthetic` wakes an idle session (`resume` stays at its default\n  `true`). This matches both the server default (`delivery ?? \"steer\"`) and the\n  TUI's own default prompt delivery, so `/compress` behaves like typing a\n  message.\n- **`queue` (rejected)** — a queued item is only taken when the runner is not\n  already consuming a turn, so the instruction would wait for the next user\n  turn instead of compressing now.\n\n`/panel`, `/status` and `/slim-debug` write nothing to the session.\n\n## Configuration\n\nCreate `~/.config/opencode/slim.jsonc`:\n\n```jsonc\n{\n    \"enabled\": true,\n    \"compress\": {\n        \"enabled\": true,\n        \"permission\": \"allow\",\n        // Absolute token count (e.g. 200000) or percent of the model context\n        // window (\"80%\"). Broken values fall back to the default, never 0.\n        \"maxContextLimit\": \"80%\",\n        \"minContextLimit\": \"40%\",\n        \"nudgeFrequency\": 5,\n        \"protectUserMessages\": false,\n        \"protectedTools\": [\"task\", \"skill\", \"todowrite\", \"todoread\"]\n    },\n    \"strategies\": {\n        \"deduplication\": {\n            \"enabled\": true,\n            \"protectedTools\": []\n        },\n        \"purgeErrors\": {\n            // OFF by default. In 3.0.2 this was configured as `true` but\n            // matched nothing, because it looked for the pairing id on\n            // `toolCallID`/`callID` while the id lives on `part.id` — see\n            // \"Purge-errors migration\" below before turning it on.\n            \"enabled\": false,\n            \"turns\": 4,\n            \"protectedTools\": []\n        },\n        // OFF by default. When enabled, replaces the payload of old, large,\n        // non-protected tool results on the outgoing request only.\n        \"pruneOutputs\": {\n            \"enabled\": false,\n            \"minChars\": 2000,\n            \"maxPerRequest\": 50,\n            \"protectedTools\": []\n        },\n        // Never prune a tool result produced within the last `turns` turns.\n        \"turnProtection\": {\n            \"enabled\": true,\n            \"turns\": 4\n        },\n        // ON by default, escape hatch only. Set to false only if you have a\n        // reason to: it lets a range split a tool pair again, and the provider\n        // will reject the next request with `invalid_request_error`.\n        \"guardToolPairs\": true\n    },\n    // Measured-vs-estimated token accounting (see \"Measurement trust\" below).\n    \"usage\": {\n        \"trustRatio\": 0.5,\n        \"capRatio\": 3\n    },\n    \"adaptive\": {\n        \"enabled\": true,\n        \"learningRate\": 0.1,\n        \"minCompressionRatio\": 0.3\n    },\n    \"costAware\": {\n        \"enabled\": true,\n        \"cacheBoostFactor\": 0.5\n    },\n    \"persistence\": {\n        \"enabled\": true,\n        // Primary store is OpenCode's plugin storage, keyed per project.\n        // This directory is the migration source and fallback mirror, and is\n        // left in place after an upgrade — see \"Session Persistence\" below.\n        \"directory\": \"~/.config/opencode/slim\"\n    }\n}\n```\n\n### Configuring with `opencode.jsonc` (plugin options)\n\nInstead of editing the machine-wide `slim.jsonc`, the plugin accepts options\ninline through the object form of the `plugins` array. This is what you want\nfor per-project or per-checkout settings:\n\n```jsonc\n{\n  \"plugins\": [\n    {\n      \"package\": \"@serkanalgur/opencodev2-slim\",\n      \"options\": {\n        \"compress\": {\n          \"maxContextLimit\": \"80%\",\n          \"minContextLimit\": \"40%\"\n        },\n        \"strategies\": {\n          \"pruneOutputs\": { \"enabled\": true }\n        }\n      }\n    }\n  ]\n}\n```\n\nThe `options` object uses exactly the same shape and keys as `slim.jsonc` — a\npartial override is merged, not replaced, so the keys you leave out keep their\nvalues from the file (and their built-in defaults where the file is silent).\nThat includes `compress.modelMaxLimits` and `compress.modelMinLimits`, which\nmerge per model key: an override naming one model leaves the others alone.\n\n**Precedence, lowest to highest:**\n\n1. built-in defaults\n2. `slim.jsonc` in the config directory\n3. the `options` object above\n\nOptions win because they are the more specific statement of intent: they are\nwritten per project, while `slim.jsonc` is one machine-wide file. `slim.jsonc`\nremains the fallback for every key the options object does not mention, so you\ncan keep shared defaults there and override only what differs per project.\n\nThe whole feature is opt-in. With no `options` key present, behaviour is\nunchanged.\n\n### Context thresholds\n\n`compress.maxContextLimit` and `compress.minContextLimit` (and their per-model\noverrides `compress.modelMaxLimits` / `compress.modelMinLimits`, keyed\n`\"providerId/modelId\"`) accept two forms:\n\n| Form | Example | Meaning |\n| --- | --- | --- |\n| Number | `200000` | Absolute token count — triggers once the session reaches 200k tokens. |\n| Percent string | `\"80%\"` | Percentage of the model's context window (80% of 200k = 160k tokens). |\n\nPercent strings accept a decimal comma for locale-typed configs: if the plain\nparse fails, every comma is retried as the decimal separator, so `\"80,5%\"`\nmeans 80.5% of the window (write absolute counts as JSON numbers — thousands\nseparators are not supported). A value that still cannot be parsed falls back\nto the built-in default with a console warning, deduplicated per\n(config key, issue, offending value) — repairing a value and breaking the key\nagain with a *different* bad value warns again.\n\nValues that cannot be used (unparsable, negative, or a percent while the model\nwindow is unknown) fall back to the built-in default (`100000` / `50000`) with a\none-time console warning — never to `0`, which would disable triggering. An\nabsolute threshold above the context window is clamped to that window so it can\nstill fire. Both panel surfaces — the `panel` tool and the TUI `/panel` dialog —\nshow the resolved trigger as a token count and as its percentage of the window\n(`Trigger: … tokens (…% of … window)`), with the floor on its own continuation\nline (`floor …`), and with the percentage omitted when the window is unknown.\n\n**What the threshold is actually compared against.** `maxContextLimit` /\n`minContextLimit` are compared against the size of the **outgoing prompt we are\nabout to send** — the real measured usage of the last completed request when the\nprovider reported one, otherwise a full-prompt estimate (system prompt, tool\nschemas, message text, tool-call inputs and tool results). They are **never**\ncompared against the session's lifetime cumulative token counter, which grows\nwithout bound because `cache.read` re-reads the whole context every turn. The\n`panel` reflects this split explicitly:\n\n- `Context: [█…] …%` (the bar) is the **current prompt size** — the figure the\n  threshold applies to, with its magnitudes on the continuation line\n  `… / … tokens`.\n- `Lifetime: … tokens · cumulative spend, NOT context size` is the separate\n  lifetime total (`Session.Info.tokens`), shown only when it differs from the\n  prompt size. It is a cost statistic, not occupancy.\n\nThe `Context` figure also carries a `Source:` line naming where it came from —\nsee [Measurement trust](#measurement-trust-usage) below.\n\n### Tool-output pruning and turn protection\n\n`strategies.pruneOutputs` replaces the *payload* of old, large, non-protected\ntool results (e.g. a huge `read`, `grep` or `bash` output) with a short\nplaceholder **on the outgoing request only** — session history is never touched.\nIt is **OFF by default** (`enabled: false`): pruning rewrites an earlier part of\nthe prompt and therefore invalidates the provider's prefix cache, so it costs a\none-time full-price request per newly pruned turn.\n\n| Key | Default | Meaning |\n| --- | --- | --- |\n| `pruneOutputs.enabled` | `false` | Master switch. Opt-in; an absent block leaves the prompt untouched. |\n| `pruneOutputs.minChars` | `2000` | Minimum serialized size (characters) for an output to be eligible. |\n| `pruneOutputs.maxPerRequest` | `50` | At most this many outputs pruned per request. Never splits a turn. |\n| `pruneOutputs.protectedTools` | `[]` | Extra tool names kept, on top of the always-protected set (`task`, `skill`, `todowrite`, `todoread`, `write`, `edit`, …). `purgeErrors.protectedTools` is folded into this set too. It says nothing about errored results: those are never pruned, whatever the list says. |\n| `turnProtection.enabled` | `true` | Keep the most recent turns intact. |\n| `turnProtection.turns` | `4` | Number of recent turns never pruned — the working set the model is actively using. |\n\nBecause the prune plan is rebuilt and re-applied on **every** request, any\nsaving it produces is a *per-request* figure, not a cumulative or permanent one.\nThe `panel` tool states this on its `Prune:` block\n(`Prune: … outputs · … chars (… tokens)` followed by\n`… saved on the last request only, not cumulative`) and shows it only when\npruning is enabled or the last request actually pruned something; with the\ndefault (off) the block is absent.\n\n### Purge-errors migration\n\n`strategies.purgeErrors` used to default to `enabled: true`, and if you never\nwrote the key into `slim.jsonc` you were running it. It did nothing. The\nstrategy matches an errored tool result to its call, and it was reading the\npairing id from `toolCallID` / `callID` — fields that do not exist on the v2\nmessage shape, where the id lives on `part.id`. Every lookup came back empty, so\nthe purge never fired, on any request, for any session.\n\nThe lookup is fixed, which means the strategy now does what its name says: for\na tool call whose result errored, and which is at least `turns` positions behind\nthe end of the conversation, every string value longer than 80 characters in its\n`input` is replaced with `[input removed due to failed tool call]`. The error\nitself and the rest of the input are kept.\n\nBecause that is a visible change to the outgoing prompt from a path that had\nnever executed, the default is now `enabled: false`.\n\n- **You never set the key.** Nothing changes for you. It stays off until you ask\n  for it.\n- **You set `purgeErrors.enabled: true` explicitly.** It now works. Expect the\n  rewritten inputs described above on the first request after upgrading, and\n  check that losing those long input values does not break anything you rely on\n  for error recovery — a failed call is exactly the one you may want to re-read.\n\nThe purge and the [Tool-pair guard](#tool-pair-guard) both act on\n`event.messages` in the same context hook, so enabling one does not leave the\nother passive: whatever the guard is protecting, the purge is rewriting.\n\n`purgeErrors.protectedTools` is the escape hatch for that. A tool named there is\nskipped on both sides of a pair: its errored result never registers the call as\na purge candidate, and the rewrite pass re-checks the name before touching the\n`input`. Because the two sides can carry the name differently, the name is read\nper part — `name` on the v2 `tool-call` / `tool-result` parts, `tool` on the v1\n`{ type: \"tool\" }` part — and falls back to the other side of the pair. If\nneither side carries a name, the tool is **not** protected: an unknown name is\nnot in your list, and silently sparing every nameless tool would make the purge\nappear to do nothing.\n\n| Key | Default | Meaning |\n| --- | --- | --- |\n| `purgeErrors.enabled` | `false` | Master switch. Opt-in after 3.0.2. |\n| `purgeErrors.turns` | `4` | A call is only purged once it is at least this many messages from the end. |\n| `purgeErrors.protectedTools` | `[]` | Tool names exempt from the purge: an errored call to one of these keeps its `input` verbatim. Only the **input** is spared — the error message itself is never rewritten, and an errored result's output is never pruned by anything. The list is also folded into `pruneOutputs.protectedTools`, so it additionally protects that tool's *successful* outputs from size-based pruning. A tool whose name cannot be read from either side of a pair is **not** protected. |\n\n### Tool-pair guard\n\nCompression blocks and deduplication both drop *whole* messages, which can\nsplit a tool call from its result. The host repairs one direction of that split\n(it synthesises `Tool result missing` for a surviving call) but not the other: a\nsurviving `role:\"tool\"` result whose call is gone is emitted with an orphan\n`tool_call_id` and the next request fails with `[invalid_request_error] invalid\nrequest`.\n\n`strategies.guardToolPairs` therefore forbids removing a `tool-call` whose\n`tool-result` is not removed by the same pass. It is **ON by default**; set it\nto `false` only as an escape hatch, because turning it off on a range that\nsplits a pair restores the 400. A block whose covered range ends up entirely\nlocked by the guard is skipped altogether rather than injecting a summary with\nno removal behind it.\n\nThe summary itself is injected as a `role:\"user\"` message wrapped in a\n`<conversation-checkpoint>` envelope, so the model can see where the replaced\nrange began and ended. The tags are part of what your model reads on every\ncompressed turn — mention them if you need to.\n\nNothing the guard does can be undone by the\n[Purge-errors migration](#purge-errors-migration), because that one rewrites\n`input` values in place and never removes a message — it leaves every pairing\nintact. Order only matters when you are debugging: the guard runs first, on the\nunpurged messages.\n\n| Key | Default | Meaning |\n| --- | --- | --- |\n| `guardToolPairs` | `true` | ON by default, escape hatch only. Never remove a message carrying a `tool-call` whose `tool-result` survives. Applies to compression blocks and deduplication; anything other than an explicit `false` counts as on. |\n\n### Measurement trust (`usage`)\n\nThe trigger merges two independent numbers:\n\n- **measured** — what the provider actually reported for the last completed\n  request (`session.step.ended`: `input + output + reasoning + cache.read +\n  cache.write`). Exact for that request, but it describes the *previous* prompt,\n  so it goes stale the moment pruning/compression shrinks the next one.\n- **estimated** — a character-count approximation of everything on the wire for\n  *this* request (system prompt, tool schemas, text, reasoning, tool-call inputs,\n  tool results, compaction summaries), divided once by ~4 chars/token. No\n  tokenizer is invoked, so it is a magnitude, not an exact count.\n\nNeither is safe alone, so the two are clamped in both directions:\n\n| Key | Default | Meaning |\n| --- | --- | --- |\n| `usage.trustRatio` | `0.5` | A measurement below this fraction of the estimate is treated as stale and the **estimate** wins. |\n| `usage.capRatio` | `3` | A measurement above this multiple of the estimate is treated as a broken reading and **capped** at `capRatio × estimated`. |\n\nBoth fields are optional and fall back to the defaults, so an absent block is\nsafe. The `panel`'s `Source:` line reports where the panel's **own headline\nfigure** came from — `measured (server-reported)` when the server reported usage\nfor that request, otherwise `estimated (approximate)` — so an approximation is\nnever mistaken for an exact count. It does **not** replay the merge above: the\ntrigger applies its own `trustRatio`/`capRatio` rules to the measured *total*\n(`input + output + reasoning + cache.read + cache.write`) against the\noutgoing-prompt estimate, a different quantity from the panel's `Context` figure.\nThe panel's `Context:` line is the last request's prompt size\n(`input + cache.read + cache.write`) and its `Lifetime:` line is the session's\ncumulative spend; the two are never mixed, and `Source:` labels only the\n`Context` figure.\n\nGlobal limits are only resolved when they are actually needed: a model with a\nvalid `compress.modelMaxLimits` / `compress.modelMinLimits` override never\nreads — and never warns about — the global `maxContextLimit` /\n`minContextLimit`. The fallback chain itself is unchanged and covered by the\ntest suite: a broken per-model override degrades to the *configured* global\n(not straight to the built-in default), a broken global degrades to the\nbuilt-in default, and warnings fire once per (key, issue, value) across\nrepeated calls.\n\n## How It Works\n\n### Semantic Compression\n\nUnlike simple text truncation, slim analyzes the semantic content of messages and groups related tool calls together. This preserves context while removing redundancy.\n\n### Cost-Aware Pruning\n\nSlim considers the cost of tokens when deciding what to compress. It prioritizes compressing expensive operations (like large file reads) while preserving cheap but important context.\n\n### Adaptive Thresholds\n\nThe plugin learns from your compression patterns and adjusts thresholds over time. If you tend to need more context, it will compress less aggressively. If you're efficient, it will compress more.\n\n### Session Persistence\n\nState is saved so compression history and learning persist across restarts.\n\nState now lives in OpenCode's plugin storage (`ctx.storage`) rather than a\nsingle machine-wide directory, and is keyed by project directory. Two\ncheckouts on one machine no longer share one flat store, so a session in one\nproject cannot collide with a same-named session in another.\n\n**Upgrading from an earlier version:** nothing to do. When slim starts and finds\nstate for a session only in the old `~/.config/opencode/slim` directory, it\nloads that state, carries it into the new store, and continues from it — your\ncompression history and adaptive thresholds survive the upgrade rather than\nresetting. The old files are copied forward and then left in place; slim never\ndeletes them, so you can inspect or remove them yourself.\n\nTwo details worth knowing if you tune this:\n\n- The old directory is still used as a fallback mirror, so state is recoverable\n  even if the storage write fails.\n- If the two copies ever disagree, slim resolves them by **which was written\n  last**, not by preferring one store. Both copies record when they were\n  written, so this works in either direction: running an older slim version\n  that writes only the file does not roll your state back, and a failed mirror\n  write that leaves storage ahead does not let a stale file overwrite it. The\n  losing copy is then brought up to date so they converge.\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `/panel` | Open the Slim TUI panel in a dialog with context usage, stats, and trigger thresholds |\n| `/compress` | Send the assistant a compression instruction (`delivery: \"steer\"`) |\n| `/status` | Show a one-line context health report in a dialog (never written to the session) |\n| `/slim-debug` | Toggle `debug` in `~/.config/opencode/slim.jsonc` and show the result in a dialog |\n\nNote: Compression is performed by the AI assistant using the `compress` tool. The slash command provides guidance on usage; it is the only slash command that writes to the session, and it does so with an explicit `delivery: \"steer\"` (see [Compress Tool](#compress-tool)).\n\n## Changelog\n\n### 3.2.1\n\n**FIXES**\n\n- A compression block that removed the head of the history no longer produces a\n  request that starts mid-tool-loop. The summary is injected at its anchor,\n  which can sit well after the removed messages, so when the block covered the\n  original prompt the outgoing history began with an `assistant` turn holding a\n  `tool_use` and no user turn before it — Anthropic rejects that with\n  \"`tool_use` ids were found without `tool_result` blocks immediately after\",\n  and the stored block re-applied on every later request, so the session kept\n  failing. The first injected summary is now hoisted to the front whenever the\n  original history started with a user turn; if there is no summary to hoist,\n  the request goes out uncompressed rather than malformed. Reported and fixed\n  by [leandromqrs](https://github.com/leandromqrs) in\n  [#14](https://github.com/serkanalgur/opencodev2-slim/pull/14).\n\n### 3.2.0\n\n**NEW**\n\n- Configuration can now be passed inline through the object form of the\n  `plugins` array in `opencode.jsonc`, instead of only through the machine-wide\n  `slim.jsonc`. The `options` object takes the same shape and keys as the file,\n  and a partial override is merged rather than replaced, so anything you leave\n  out keeps its value from the file and its built-in default. Precedence is\n  defaults, then `slim.jsonc`, then `options` — options win because they are\n  the per-project statement of intent. With no `options` key present, behaviour\n  is unchanged.\n- Session state now persists through OpenCode's plugin storage, keyed by\n  project directory. Previously every project on the machine shared one flat\n  directory, so two checkouts could collide on a same-named session.\n\n**MIGRATION**\n\n- No action is needed on upgrade. When slim finds state for a session only in\n  the old `~/.config/opencode/slim` directory, it loads that state, carries it\n  into the new store, and continues from it, so compression history and\n  adaptive thresholds survive rather than resetting. The old files are copied\n  forward and left in place — slim never deletes them, so you can inspect or\n  remove them yourself.\n- The old directory is retained as a fallback mirror, so state remains\n  recoverable if a storage write fails. If the two copies ever disagree, slim\n  resolves them by which was written last, not by preferring one store — so\n  neither running an older slim that writes only the file, nor a failed mirror\n  write, can roll your state back or lose the newer copy.\n\n**FIXES**\n\n- The context window now follows the model the request is actually running.\n  It was resolved once at startup from the default model and then held for the\n  session's whole life, so switching from a 200k model to a 1M model mid-session\n  left every percent threshold resolving against the 200k window — `\"80%\"`\n  fired at 160k on a model that could hold 800k. The window is now resolved from\n  each request's own model. Resolution only re-runs when the model actually\n  changes, and a model that cannot be resolved never borrows another model's\n  window; it keeps the last one it had.\n- A model id containing slashes (`openrouter/meta-llama/llama-3-70b-instruct`)\n  is now resolved instead of silently failing to match its own entry, which\n  left such a model measuring against the wrong window.\n- A transient failure while reading the model list no longer latches: the window\n  is re-resolved on a later request instead of staying wrong for the rest of\n  the session.\n- `compress.modelMaxLimits` and `compress.modelMinLimits` now merge per model\n  key instead of being replaced wholesale. Previously an override naming one\n  model discarded every other model's entry, and because a missing key falls\n  back to the global threshold, the affected models were quietly measured\n  against the wrong limit rather than failing visibly. This affected every\n  layer, so a partial override inside `slim.jsonc` was affected too.\n- `persistence.enabled: false` now stops all persistence again. When state\n  moved to plugin storage, the flag was checked after the storage write, so\n  turning persistence off stopped only the on-disk mirror while history kept\n  accumulating silently. It now gates both layers.\n- Session hooks are now disposed when the plugin unloads. Previously the\n  registrations were discarded, so a reload left the old callbacks attached to\n  the host and stacked a second copy of the compression pipeline onto them —\n  after N reloads, every request ran the pipeline N times. A dispose that\n  throws no longer strands the remaining hooks.\n\n### 3.1.0\n\n**FIXES**\n\n- Over-long panel values are now shortened instead of breaking the box. The\n  model id, topic name and recommendation lines are rendered from strings the\n  plugin does not control — a model id comes from the server, a topic name from\n  the model's own output — and a long enough value would run past the panel's\n  border. Each is now elided to fit, with a visible `…`.\n- A model id is shortened in the middle, keeping both ends. An id reads as\n  `provider/model`, and you recognise it by the provider at the front and the\n  model name at the end, so both are kept and the elision sits between them.\n  Topic names and recommendations are shortened at the end, where their meaning\n  is.\n- Values that already fit are never touched. No trimming, no normalisation, no\n  marker — a value that fits, or that fits exactly, is printed byte for byte as\n  received. The marker is the only thing that indicates shortening, and it is\n  placed so a reader can tell the value was cut from the middle or the end.\n\n**DOCS**\n\n- The panel's width guarantee is now complete. The three previously-documented\n  exceptions are gone, and the test suite's overflow allowlist is empty again:\n  the sweep drives all three lines past the raw boundary and confirms the\n  shortening is what makes them fit. The panel measures code points, so a status\n  icon occupies more cells than the count suggests.\n\n### 3.0.4\n\n**FIXES**\n\n- `strategies.purgeErrors.protectedTools` now protects the tool's input. The\n  option was documented but never consulted on the input side, so a tool named\n  there still had the input of its failed call rewritten. It is honoured now, on\n  every message shape. Note that the list is also folded into output pruning, so\n  naming a tool here exempts it from the errored-input purge *and* from\n  size-based output pruning of its successful results.\n- A tool whose name cannot be determined on a message part is now purged rather\n  than protected, so opting a tool in can never turn into a purge that silently\n  does nothing.\n- Two panel lines no longer overflow the panel frame. The compression-trigger\n  line and the pruning line were each split across two lines so every value fits;\n  nothing was dropped and nothing was truncated. The trigger's floor and the\n  pruning line's \"last request only, not cumulative\" caveat each moved to a\n  continuation line, and both are still shown.\n\n**NEW**\n\n- Panel overflows from unbounded text are now disclosed rather than hidden. The\n  model id, topic name and recommendation lines are emitted from unbounded\n  server- or user-supplied strings and can exceed the frame at extreme lengths.\n  They are not truncated — that is a deliberate decision deferred to a later\n  change — but the exception is now recorded in the test suite with its reason,\n  so a future change that fixes one of them cannot happen silently.\n\n**DOCS**\n\n- Corrected two panel-output descriptions that did not match what the renderer\n  actually emits. A test now extracts the README's quoted output and checks it\n  against rendered output, so this class of documentation drift fails the build\n  instead of accumulating.\n\n### 3.0.3\n\n**BREAKING CHANGES**\n\n- `strategies.purgeErrors` now defaults to `enabled: false`. The strategy was\n  configured to run but could not match a call to its errored result: it read the\n  pairing id from `toolCallID` / `callID`, fields the v2 message shape does not\n  carry, so every lookup came back empty and the purge never fired on any\n  request. The lookup is fixed, and because it rewrites the outgoing prompt from\n  a path that had never executed, it is now opt-in. If you set the key\n  explicitly you get the working behaviour; if you never set it, nothing changes\n  for you until you ask for it — see\n  [Purge-errors migration](#purge-errors-migration).\n\n**FIXES**\n\n- Compression summaries no longer leave out the output half of a protected tool.\n  The same lookup bug meant `part.output` was silently missing from every\n  protected tool's section, so restoring it exposed a section bounded only by the\n  tool's own output size. The section is now capped and says so when it has been\n  truncated, so a compression is always smaller than the range it replaced.\n- Compression statistics can no longer report a negative saving. If a summary\n  ends up larger than the range it replaces, the recorded saving is now `0%`\n  rather than a negative figure, and the panel no longer prints negative tokens\n  or a negative dollar amount saved. A compression that does not shrink is not a\n  saving.\n- A very large token count is no longer rendered as a string that overflows the\n  panel. The token formatter was duplicated in two files and scaled in a single\n  step, so a large value printed as a ten-character run that broke out of the\n  panel frame. It is now one implementation with progressive units; values below\n  a billion are formatted exactly as before.\n\n**NEW**\n\n- The README banner is now included in the published package, so it renders on\n  npmjs without relying on npm to rewrite a relative image path.\n\n**DOCS**\n\n- Documented the `purgeErrors` opt-in default in\n  [Purge-errors migration](#purge-errors-migration), alongside the\n  [Tool-pair guard](#tool-pair-guard) it interacts with on the same messages.\n\n### 3.0.2\n\n**FIXES**\n\n- A compressed message range could leave a tool result behind without the tool\n  call that produced it, and the next model request was rejected with\n  `[invalid_request_error] invalid request`. The covered range was selected on\n  token size, and a message carrying only tool calls counts as zero text tokens —\n  so such a message fell outside the range while its (large) tool result fell\n  inside it, leaving an orphaned `tool_call_id` on the wire. This affected the\n  `compress` tool and automatic compression alike.\n- Compression no longer breaks a tool call/result pair. The rule is\n  one-directional: a tool call may only be removed when every tool result\n  carrying the same id is removed by the same pass. A surviving call whose result\n  is missing is repaired by the host, but a surviving result whose call is\n  missing is not. A block whose covered range ends up removing nothing is\n  skipped entirely rather than injecting its summary, so compression can never\n  grow the prompt.\n- The same protection now applies to output deduplication, which could orphan a\n  tool pair the same way.\n- Sessions compressed by an earlier version are repaired automatically. The\n  protection is applied when the request is built, so a block registered before\n  the fix that covers a broken range is corrected on the next request — no state\n  reset and no manual intervention.\n- The injected summary is now wrapped in a `<conversation-checkpoint>` envelope,\n  so the model can see where the replaced range began and ended.\n- Session state is more robust against a corrupt or hand-edited state file:\n  malformed compression-block entries are dropped on load and the file heals\n  itself, the block-id counter can no longer be reset into a collision with an\n  existing block, and a failure inside the compression step is rolled back\n  instead of leaving half-applied state on disk.\n\n**NEW**\n\n- `strategies.guardToolPairs` (default **on**) is the escape hatch for the pair\n  protection described above. Turn it off only if you are debugging the guard\n  itself — see [Tool-pair guard](#tool-pair-guard) for the full semantics.\n\n### 3.0.1\n\n**FIXES**\n\n- The context window is no longer resolved by borrowing an arbitrary model's\n  limit. When the active model is not found in the model list, the resolver no\n  longer falls back to \"the first listed model with any limit\"; it now uses the\n  active model's `default()` limit and, failing that, the documented\n  `DEFAULT_MODEL_LIMIT` with a warning. A usage percentage computed against\n  another model's context window is meaningless. The TUI's resolver was\n  tightened the same way, from a modelID-only match to an exact\n  providerID+modelID match.\n- The panel and TUI no longer fall back to the lifetime-cumulative token counter\n  when showing how full the context window is. When the transcript carries no\n  per-call prompt measurement, the displayed occupancy now falls back to our own\n  per-message transcript estimate rather than the session's cumulative total —\n  which grows every turn, because `cache.read` re-reads the whole context, and\n  which therefore produced bogus \"100% critical\" readings. The cumulative figure\n  is still reported where it is legitimate (as lifetime spend/cost) and is still\n  explicitly labelled as not being a context size. The `status`/`CRITICAL`\n  derivation is now clamped to 0..100.\n- The welcome toast no longer reports a stale version. The `Slim Plugin vX.Y.Z`\n  title was a hardcoded literal that had drifted to `v2.1.0`; it is now derived\n  from a single `PLUGIN_VERSION` constant, guarded by a test that keeps it in\n  sync with `package.json`.\n\n**DOCS**\n\n- Refreshed the README: banner, badge row, and a `## Credits` section.\n\n### 3.0.0\n\n**BREAKING CHANGES**\n\n- The compression trigger threshold is now compared against the outgoing\n  prompt's measurement/estimate. The old `Session.Info.tokens` lifetime\n  cumulative cost counter is no longer used to decide the trigger, so existing\n  config files with tuned `maxContextLimit`/`minContextLimit` can behave\n  differently and may need re-tuning. In the panel, `Context:` is the last\n  request's prompt size (`input + cache.read + cache.write`) and `Lifetime:` is\n  the session's cumulative spend; the two are shown separately. When the\n  transcript carries no per-turn usage the old figure is still shown, explicitly\n  labelled as lifetime cumulative.\n- `/panel`, `/status` and `/slim-debug` no longer write to the session (no\n  transcript message); their output is shown in a modal dialog\n  (`context.ui.dialog.alert`). Previous versions wrote the output into the\n  message stream. Only `/compress` still writes (it is an instruction to the\n  model) and now passes an explicit `delivery: \"steer\"` instead of relying on\n  the server default.\n\n**FIXES**\n\n- Session corruption: removed v1 API remnants (`client.session.synthetic`,\n  `data.session.message.*`) and migrated to the OpenCode v2 API.\n- Compression blocks did not work in production: in the v2 context hook,\n  messages have no `id` field, so the old code always found an empty id and\n  deleted every block. Now uses deterministic content-based key generation plus\n  an ambiguity lock.\n- The token metric only counted text parts (tool input/output, system prompt,\n  tool schemas and reasoning were not counted), so auto-compress effectively\n  never triggered. Now uses the real API measurement (`session.step.ended`) plus\n  a full-prompt-scoped estimate.\n- In v2 a tool result is an array of content blocks, not a string; `String()`\n  produced `[object Object]`.\n- The panel threw `RangeError` when above 100% (negative repeat on a full bar).\n- An invalid threshold value silently fell back to 0, so the trigger never\n  fired. It now falls back to the default and emits a warning.\n- Context-window resolution: the model list was called without `await`, so it\n  always fell back to 200000.\n- Decimal comma support (`80,5%`).\n\n**NEW**\n\n- `maxContextLimit`/`minContextLimit` accept absolute token counts (a bare\n  number); percentage forms (`80%`, `80,5%`) keep working.\n- `strategies.pruneOutputs` prunes tool output (default OFF, opt-in) with turn\n  protection. Auto-compress keys are captured **before** pruning replaces pruned\n  messages with clones, so pruning no longer desynchronises the persisted\n  compression block's anchors from the messages it covered (which left the block\n  inert and re-triggered every throttle window).\n- `usage.trustRatio` / `usage.capRatio` measurement-trust settings.\n- State reset after compaction (`compressionBlocks`, nudge anchors, token\n  measurement).\n- The panel shows a `Source: measured (server-reported)` line (or\n  `Source: estimated (approximate)`) and prune statistics. The\n  `Source:` line describes where the headline figure came from —\n  `measured (server-reported)` when the server reported usage, otherwise\n  `estimated (approximate)` — so an approximation is never read as an exact\n  count. The `Prune:` line reports outputs pruned and characters/tokens saved on\n  the last request (a per-request figure, since pruning is re-applied every\n  request; the line is absent while the default-off feature has not pruned\n  anything).\n- `/panel` states its scope: the stats come from `session.context` (\"all\n  messages after the last compaction\"), so `Messages:`/`Tokens (est)` are window\n  counts, not session totals, and it now shows the resolved compression trigger\n  over two lines (`Trigger: … tokens (…% of … window)` then `floor …`),\n  matching the `panel` tool.\n- `deriveStats` counts unknown message types (`agent-switched`, `model-switched`,\n  `location-switched`, `idle`, …) as `system` instead of `assistant`, keeping\n  `user + assistant + system === total messages`.\n- Documented `strategies.pruneOutputs` (off by default) and\n  `strategies.turnProtection` in the config reference, plus the `usage`\n  measurement-trust ratios (`trustRatio` / `capRatio`), and clarified that\n  `maxContextLimit` is compared against the outgoing prompt estimate/measurement\n  — not the lifetime cumulative counter.\n\n### 2.0.13\n\n- Fix `/panel` in the TUI not reflecting real context usage:\n  - The TUI command now reads live server measurements (`Session.Info.tokens` + `cost` + `model` + context window) via `context.client.session.get()` and prints them (measured tokens, %, cost, model) at the bottom of the panel, matching what the `panel` tool reports.\n  - Resolve the active session from `context.ui.router.current()` instead of a non-existent `context.router`, so the panel targets the focused session rather than always the first one.\n  - Call `context.data.session.message.sync()` before reading the transcript so stats aren't computed from an empty/stale cache.\n\n### 2.0.12\n\n- Bind panel/nudge to real OpenCode context measurements:\n  - Resolve the active model's real context window from `ctx.model.default().data.limit.context` instead of the hard-coded 200k.\n  - `/panel` now reads live server measurements (`Session.Info.tokens` + `cost`) via `ctx.session.get()` and feeds them to `buildPanelData`, so the headline tokens/percent/cost match what OpenCode's UI reports.\n  - The nudge decision prefers the measured token count over the rough 4-char estimation.\n\n### 2.0.11\n\n- Fix CI publish: add `solid-js`, `@opentui/core`, `@opentui/solid` to `devDependencies`.\n  The workflow runs `npm ci --legacy-peer-deps`, which skips peer deps, so loading\n  `@opencode/plugin/tui` failed with `Cannot find package 'solid-js'`.\n\n### 2.0.10\n\n- Fix `/panel` output showing `User tokens: 0`: user/system messages carry their text\n  on a top-level `text` field (not inside `content`), which `deriveStats` now captures.\n- Add regression tests for CLI panel stats.\n\n### 2.0.9\n\n- `feat(panel-as-message)`: `/panel` and `slim-panel` now print the context stats as plain\n  text into the message stream via `client.session.synthetic`, instead of taking over\n  OpenCode's own panel UI (`session.panel` slot + `ui.panel.open` removed).\n- The TUI panel now derives its own stats (token estimate, role breakdown, tool/compaction\n  counts) directly from the session transcript rather than deferring to the server tool.\n\n### 2.0.8\n\n- Fix `keymap.provider is missing` in the CLI plugin: register the keymap layer inside\n  an `app` slot render (where the keymap provider is available) instead of in `setup()`.\n\n### 2.0.7\n\n- Fix `Cannot find package 'react'` when the plugin is loaded from the global npm cache:\n  add a per-file `/** @jsxImportSource @opentui/solid */` pragma to `src/tui.tsx` so JSX\n  always compiles against `@opentui/solid/jsx-runtime`\n- Ship `tsconfig.json` in the published package so loaders that read `jsxImportSource` from config pick it up\n\n### 2.0.6\n\n- Add real `compaction` hook so history actually shrinks (the `context` hook only affects the outgoing request)\n- Resolve the active model's real context limit instead of hard-coding 200k\n- Register `compress`/`panel` tools with `options.codemode` so they appear in agent/codemode environments\n- Fix token-by-role panel bug where `tools` always equalled zero\n- Replace toast-only CLI panel with a real `session.panel` slot (`slim-panel` / `/panel`)\n- Add regression test for the tool-token bucket\n\n### 2.0.3\n\n- Fix v2 API compatibility issues\n- Remove namespace from tool registration\n- Handle both v1 and v2 message part types\n- Make context hooks synchronous\n\n### 2.0.2\n\n- Update README documentation\n- Add GitHub Actions workflow for automated npm publish\n\n### 2.0.1\n\n- Fix npm publish conflict\n\n### 2.0.0\n\n**Breaking Changes:** Migrated to OpenCode v2 plugin API.\n\n- Migrate from `@opencode-ai/plugin` to `@opencode/plugin`\n- Use `Plugin.define()` pattern instead of server function\n- Register tools via `ctx.tool.transform()` with JSON Schema input\n- Replace experimental hooks with `ctx.session.hook()`\n- Replace event callback with `ctx.event.subscribe()`\n- Update cleanup to use setup return function\n- Minimum OpenCode version: 2.0.0\n\n### 1.0.1\n\n- Initial release\n\n## Credits\n\n- [PrakharSrivastav](https://github.com/PrakharSrivastav) — reported [issue #11](https://github.com/serkanalgur/opencodev2-slim/issues/11), suggesting that a context window should not be resolved by borrowing an arbitrary model's limit, and that current context usage should be measured per model call rather than read off session lifetime totals. Both suggestions shipped in 3.0.1.\n- [leandromqrs](https://github.com/leandromqrs) — reported and fixed [#14](https://github.com/serkanalgur/opencodev2-slim/pull/14): a compression block covering the first user turn left the outgoing history starting with an `assistant` `tool_use` and no user turn, which Anthropic rejects. Shipped in 3.2.1.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}