{ "name": "@magpie-community/middleware-history-trim", "version": "0.1.2", "description": "Send a request's history smaller: blank-line runs folded, a system prompt written twice and a message repeated right after itself dropped, a past tool result longer than maxToolLength cut, as magpie gateway middleware", "type": "module", "files": ["history-trim.middleware.js", "README.md", "LICENSE", "PROVENANCE.json"], "keywords": ["magpie", "magpie-middleware", "compression", "context", "history", "tokens", "llm-gateway"], "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/history-trim" }, "magpie": { "middleware": "./history-trim.middleware.js", "options": { "maxToolLength": 2000, "compressToolResults": true, "preserveSystemPrompt": false } } }