{"_id":"@adaptivemcp/orchestration","_rev":"4-ac1b4b7fd2002f422f4e95a69583476c","name":"@adaptivemcp/orchestration","dist-tags":{"latest":"0.2.3"},"versions":{"0.2.0":{"name":"@adaptivemcp/orchestration","version":"0.2.0","license":"MIT","_id":"@adaptivemcp/orchestration@0.2.0","maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"dist":{"shasum":"7a2c6f6a8649a48c7edce4dcb0286c256363ef77","tarball":"https://registry.npmjs.org/@adaptivemcp/orchestration/-/orchestration-0.2.0.tgz","fileCount":10,"integrity":"sha512-UYJugPUL47dS+X3F/CfD7roD0FD11C2RuvbDrd0Yh3RARRpGyRjvdiYtR0zOZ73Rk899SAiE4cueF6d0Y/uaVg==","signatures":[{"sig":"MEUCIQDyIwPROZii4KjzXqR/SFPpi6m0P1id9i3wN0e/XJJRewIgE+nM6N/sYT4dMNgLzXsBzfdHYVdKn6UY/2bD0/orGuM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9681},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"c04f081b84978d143a021ad607fbb72ada829913","scripts":{"test":"vitest run --config ../../vitest.config.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"},"_npmVersion":"12.0.1","description":"Composition and execution strategies for Adaptive MCP.","directories":{},"_nodeVersion":"26.5.0","dependencies":{"@adaptivemcp/spec":"workspace:*","@adaptivemcp/memory":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/orchestration_0.2.0_1784449899052_0.025725147247239066","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@adaptivemcp/orchestration","version":"0.2.1","license":"MIT","_id":"@adaptivemcp/orchestration@0.2.1","maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"dist":{"shasum":"43c220d4300b5b1a6fdfa8da107bcfd097429bd8","tarball":"https://registry.npmjs.org/@adaptivemcp/orchestration/-/orchestration-0.2.1.tgz","fileCount":10,"integrity":"sha512-2V7rgcZuqe7m3h05x8aUU3ALGe+OOIUnA67YeB57kGW+hgBFFwItmNhCSR70lVYTS2MYSxne6dn0IhNk54DkYw==","signatures":[{"sig":"MEYCIQCf0G/d4BRZ/3E7+hJT0td1fGhtYguCb8oVlKfXufGjYQIhALtD6+7vTAmuUtkrjTdtGelZEI2hEuG8wRkamEY/+jJT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9925},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"67875dd46c157fcfce32192c63201c00105202d5","scripts":{"test":"vitest run --config ../../vitest.config.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"},"_npmVersion":"12.0.1","description":"Composition and execution strategies for Adaptive MCP.","directories":{},"_nodeVersion":"26.5.0","dependencies":{"@adaptivemcp/spec":"workspace:*","@adaptivemcp/memory":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/orchestration_0.2.1_1784454882476_0.49188402818074706","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@adaptivemcp/orchestration","version":"0.2.2","license":"MIT","_id":"@adaptivemcp/orchestration@0.2.2","maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"dist":{"shasum":"2b250cc4403f54d903e8fd46ceba24e4f2783059","tarball":"https://registry.npmjs.org/@adaptivemcp/orchestration/-/orchestration-0.2.2.tgz","fileCount":10,"integrity":"sha512-YRGKLutABSbwGxXZaAhGrokReIsMenjVttknpZYLSNI1rP0l8yQ5e65gh7GQ23sJiKAi67dt4ghI6Lvxiq7AJg==","signatures":[{"sig":"MEQCIAJzXhKRjq74SsgE5UmiMyC9kKzqF/f35hbKT8WISAy5AiBoGSoddTe3606p7QuanZDUcBBVEMoVsmveHI/2OGqAEQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9925},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"00b51e676ad298a079f5de73e5cbea411fae39f2","scripts":{"test":"vitest run --config ../../vitest.config.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"},"_npmVersion":"12.0.1","description":"Composition and execution strategies for Adaptive MCP.","directories":{},"_nodeVersion":"26.5.0","dependencies":{"@adaptivemcp/spec":"workspace:*","@adaptivemcp/memory":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/orchestration_0.2.2_1784457358082_0.018920903624674468","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"_id":"@adaptivemcp/orchestration@0.2.3","dist":{"shasum":"708249ec564f0cc382a75a3e499a459444240f5f","tarball":"https://registry.npmjs.org/@adaptivemcp/orchestration/-/orchestration-0.2.3.tgz","fileCount":10,"integrity":"sha512-3t59cujT6E9TPnbjlz5cWoCCqo5Mce8/NQI/T92SNjRKMwmGMNtRBv9lYVFvWVcgQDV7a5JTvQLz719Ft3YAxg==","signatures":[{"sig":"MEYCIQCg8JidE3U4msZRoyNd5sa9xFMHjRFtq/CBTHmSQwrAfAIhAK2bPJOeF3m2nYdPLnN8A9ImYTxRSv5oGOCkXYAGdGx/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCsvMJKRG+ZRKxKJL/5qUh4Ekeb6USC67LmlCdez9UwMQIhANx2Q8r2JIFVxe/eS5Kf30oIC8Qbq2NAcZwLGVtEse65"}],"unpackedSize":10133},"main":"./dist/index.js","name":"@adaptivemcp/orchestration","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"9ee97159d0137dc23b6a02008def6faa0f857092","license":"MIT","scripts":{"test":"vitest run --config ../../vitest.config.ts","build":"tsc -p tsconfig.json"},"version":"0.2.3","_npmUser":{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"},"_npmVersion":"12.1.0","description":"Composition and execution strategies for Adaptive MCP.","directories":{},"maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"_nodeVersion":"26.10.0","dependencies":{"@adaptivemcp/spec":"workspace:*","@adaptivemcp/memory":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","typescript":"^5.6.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/orchestration_0.2.3_1790580001701_0.05944321966394139"}}},"time":{"created":"2026-07-19T08:31:38.888Z","modified":"2026-09-28T07:20:01.991Z","0.2.0":"2026-07-19T08:31:39.191Z","0.2.1":"2026-07-19T09:54:42.616Z","0.2.2":"2026-07-19T10:35:58.216Z","0.2.3":"2026-09-28T07:20:01.792Z"},"license":"MIT","description":"Composition and execution strategies for Adaptive MCP.","maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"readme":"# @adaptivemcp/orchestration\n\nComposition and execution strategies for Adaptive MCP.\n\n> **Status:** published to npm as `@adaptivemcp/orchestration`. It is the\n> client-side **executor** of policy the server governs.\n\n`orchestration` turns learned stats into retry/execution policy. It plans a\nretry policy per tool (e.g. cap `maxAttempts` for flaky tools) and is consulted\nby the thin client at execution time.\n\n## Usage\n\n```ts\nimport { MemoryStore } from \"@adaptivemcp/memory\";\nimport { Orchestrator } from \"@adaptivemcp/orchestration\";\n\nconst memory = new MemoryStore();\nconst orchestrator = new Orchestrator({ memory });\n\norchestrator.planAll(); // writes a `workflow` recommendation (retry policy)\n// per tool, scaled to the observed failure rate\n```\n\n## What it does\n\n- `planAll()` / `planTool(toolName)`: derive a retry policy from observed failure behavior.\n- Default policy: `maxAttempts: 3`; `policyFor` caps `maxAttempts` at `6`.\n- Flags tools as flaky when failure rate exceeds `flakyThreshold`.\n\n### Defaults\n\n| Option | Default |\n| --- | --- |\n| `flakyThreshold` | `0.1` |\n| `minInvocations` | `10` |\n\n## License\n\nReleased under the [MIT License](../../LICENSE). Copyright (c) 2026 Kemal Elmizan.\n","readmeFilename":"README.md"}