{"_id":"@aidex/strategies","_rev":"8-e9d7035d927dc5fd7323c62b3c27bbc2","name":"@aidex/strategies","dist-tags":{"latest":"1.2.0"},"versions":{"0.1.0-alpha":{"name":"@aidex/strategies","version":"0.1.0-alpha","keywords":["ai","llm","strategy","text-generation"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/strategies@0.1.0-alpha","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/strategies#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"ae30c8fe4dce9fb9557f81f4f41132a59c21bcd3","tarball":"https://registry.npmjs.org/@aidex/strategies/-/strategies-0.1.0-alpha.tgz","fileCount":19,"integrity":"sha512-pulAmsd86CCNfpj6BabCIdI8EbDL5h4Px9RYZlR553hyUjVremtwpZM51MP2WHZGpc31C7GtFsTmrkx5pjZ+5w==","signatures":[{"sig":"MEYCIQCEAjfph84KRVdEI824odLx//Yv8uo5UW0s0pvmE7JxxgIhAKN1sU5fMLKZd/HfdT0Ctl0X1JOAV/Hypdk/Nh7IZHFM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11552},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc -b","typecheck":"tsc -b --noEmit"},"_npmUser":{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"},"repository":{"url":"git+https://github.com/getaidex/aidex.git","type":"git","directory":"packages/strategies"},"description":"Aidex Strategies — concrete Strategy implementations built on @aidex/core, provider-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"0.1.0-alpha"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@aidex/providers":"0.1.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/strategies_0.1.0-alpha_1785768587479_0.015643470556834904","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-alpha":{"name":"@aidex/strategies","version":"0.2.0-alpha","keywords":["ai","llm","strategy","text-generation"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/strategies@0.2.0-alpha","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/strategies#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"5adf6605af3fa4195e77485defeb1046d51269a3","tarball":"https://registry.npmjs.org/@aidex/strategies/-/strategies-0.2.0-alpha.tgz","fileCount":15,"integrity":"sha512-d3lO/w9NtqdnZGISvKkh5MHa/f0EhhMqO/MI492gty0SmGjfGS9Uemh9oIyTlD4ft6qz9+amEwNr6Vw8XD1Cog==","signatures":[{"sig":"MEUCIE+sBrAMBCScZaaG9fIHX6NIvYaAfnbhMXRDHqxfiHFhAiEAhUGCfEZpBbsO2YZMGbuNbvFoRfGP6fiZW53kpDbJNiU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18347},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsc -b && tsup","typecheck":"tsc -b --noEmit"},"_npmUser":{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"},"repository":{"url":"git+https://github.com/getaidex/aidex.git","type":"git","directory":"packages/strategies"},"description":"Aidex Strategies — concrete Strategy implementations built on @aidex/core, provider-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"0.2.0-alpha"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@aidex/providers":"0.2.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/strategies_0.2.0-alpha_1785772033528_0.37097158674309383","host":"s3://npm-registry-packages-npm-production"}},"0.2.1-alpha":{"name":"@aidex/strategies","version":"0.2.1-alpha","keywords":["ai","llm","strategy","text-generation"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/strategies@0.2.1-alpha","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/strategies#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"57f49550f2f26ab55a3ffef303379b37f0b575de","tarball":"https://registry.npmjs.org/@aidex/strategies/-/strategies-0.2.1-alpha.tgz","fileCount":16,"integrity":"sha512-myOyTgMXEgXJAv1H3RrTVKfaOIlzNJrjArZP7dwTMOHHzphafm/oNrNO5y1QaFH4KI059xBsDGUv0Kjzv7WseQ==","signatures":[{"sig":"MEUCIQCIXUqwvKotLWM647kDRNlxSuA3Wi1+VWyhz78IBxCi9gIgcAEdN7JDoQ45k9wg9Ao+rIRfH9YfA1/6xsE68+UWl9E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20901},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"build":"tsc -b && tsup","typecheck":"tsc -b --noEmit"},"_npmUser":{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"},"repository":{"url":"git+https://github.com/getaidex/aidex.git","type":"git","directory":"packages/strategies"},"description":"Aidex Strategies — concrete Strategy implementations built on @aidex/core, provider-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"0.2.1-alpha"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@aidex/providers":"0.2.1-alpha"},"_npmOperationalInternal":{"tmp":"tmp/strategies_0.2.1-alpha_1785778146507_0.3304193390428811","host":"s3://npm-registry-packages-npm-production"}},"0.3.0-alpha":{"name":"@aidex/strategies","version":"0.3.0-alpha","keywords":["ai","llm","strategy","text-generation"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/strategies@0.3.0-alpha","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/strategies#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"578a581ef3d03dc0f5b872009ff97e46ff6fd57e","tarball":"https://registry.npmjs.org/@aidex/strategies/-/strategies-0.3.0-alpha.tgz","fileCount":9,"integrity":"sha512-uVHWoQYoxoCpOsDM40sQbAvKwmAkT8eaLc9HPEwoET6q6pog+q9kxwouFASjh3aHPztKxwMwItviL34kZCit5Q==","signatures":[{"sig":"MEUCIHaAwjSAmryhbY8UlpwYG6FMI8BY3A+DdONU2bBEFX0ZAiEA/Xrh7ouNFiixKunpZ9QqKtX9VHeO7Ln5JQIpzMdUycI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19063},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.19.0","pnpm":">=9"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"build":"tsc -b && tsup","typecheck":"tsc -b --noEmit"},"_npmUser":{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"},"repository":{"url":"git+https://github.com/getaidex/aidex.git","type":"git","directory":"packages/strategies"},"description":"Aidex Strategies — concrete Strategy implementations built on @aidex/core, provider-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"0.3.0-alpha"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@aidex/providers":"0.3.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/strategies_0.3.0-alpha_1786213593441_0.8443841940674157","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@aidex/strategies","version":"1.0.0","keywords":["ai","llm","strategy","text-generation"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/strategies@1.0.0","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/strategies#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"ff627355bc264680593da1d4ef9c6ec1b2197ebf","tarball":"https://registry.npmjs.org/@aidex/strategies/-/strategies-1.0.0.tgz","fileCount":9,"integrity":"sha512-6jI9pS6cqdGhNvCbru5OZ0K822+CwMSZmXypp0BTPYuP/ygy/mv+F5DWixegjSBB2y2Ctrs5JSGzau8Ru+anIw==","signatures":[{"sig":"MEUCIQCQbOKa//awwCSlvwaIIfIahGZe8ahqsNmdk3tQUf9YnwIgID8YkR9UIAr4E+uWuOYq8Da1N9onKi1LKrg5JuUW9gY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19045},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.19.0","pnpm":">=9"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"build":"tsc -b && tsup","typecheck":"tsc -b --noEmit"},"_npmUser":{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"},"repository":{"url":"git+https://github.com/getaidex/aidex.git","type":"git","directory":"packages/strategies"},"description":"Aidex Strategies — concrete Strategy implementations built on @aidex/core, provider-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@aidex/providers":"1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/strategies_1.0.0_1786431563592_0.806871583190298","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aidex/strategies","version":"1.0.1","keywords":["ai","llm","strategy","text-generation"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/strategies@1.0.1","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/strategies#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"2b425890d280867c350b6739d9ba0be5c64c87ac","tarball":"https://registry.npmjs.org/@aidex/strategies/-/strategies-1.0.1.tgz","fileCount":9,"integrity":"sha512-c+vJKCZnvYwczZ1qnok//HfBAlV+gR/CUXYV0sfH8iakqGtilfk4JY4SgJVsq1Jx3ecTA5Q9lw8lqZaAQbWi0w==","signatures":[{"sig":"MEQCICEafgbSgjjpVicalfznr1npK3hk/sYxtQdfvf0J7AI4AiBgUKXcupU8tEyYidVeVAb0PQXbjXL1L7YlSvgnbud6Gw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19045},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.19.0","pnpm":">=9"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"build":"tsc -b && tsup","typecheck":"tsc -b --noEmit"},"_npmUser":{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"},"repository":{"url":"git+https://github.com/getaidex/aidex.git","type":"git","directory":"packages/strategies"},"description":"Aidex Strategies — concrete Strategy implementations built on @aidex/core, provider-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@aidex/providers":"1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/strategies_1.0.1_1786432202477_0.5414150942793357","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@aidex/strategies","version":"1.1.0","keywords":["ai","llm","strategy","text-generation"],"author":{"name":"Sudheer Babu","email":"isudheerbabu.dev@gmail.com"},"license":"MIT","_id":"@aidex/strategies@1.1.0","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/strategies#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"5a0da816129cf1249aff9185076cb3967b000877","tarball":"https://registry.npmjs.org/@aidex/strategies/-/strategies-1.1.0.tgz","fileCount":16,"integrity":"sha512-aZhoMlvMrjEWLzGSdOwiUgTUVm9sCVdnyfm6mhVifczvp4thPB4L5SsU0e0EoiagdPi/5RzFnn5lvcDd2+c5CA==","signatures":[{"sig":"MEYCIQD6hWY47Nsx1vhhNdAbg86ODo36DujUguAQdJ7Rq513cgIhAP1AYI+f/xVQO9U4vMYB2gJIEZMN/AAS1vxSH6qvwaGS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22193},"main":"./dist/index.cjs","type":"module","_from":"file:aidex-strategies-1.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.19.0","pnpm":">=9"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"build":"tsc -b && tsup","typecheck":"tsc -b --noEmit"},"_npmUser":{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"},"_resolved":"/tmp/d726bb5b22d60b5d9db25db2e9440282/aidex-strategies-1.1.0.tgz","_integrity":"sha512-aZhoMlvMrjEWLzGSdOwiUgTUVm9sCVdnyfm6mhVifczvp4thPB4L5SsU0e0EoiagdPi/5RzFnn5lvcDd2+c5CA==","repository":{"url":"git+https://github.com/getaidex/aidex.git","type":"git","directory":"packages/strategies"},"_npmVersion":"10.9.8","description":"Aidex Strategies — concrete Strategy implementations built on @aidex/core, provider-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"@aidex/core":"1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@aidex/providers":"1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/strategies_1.1.0_1787417525365_0.16571744905253105","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@aidex/strategies","version":"1.2.0","description":"Aidex Strategies — concrete Strategy implementations built on @aidex/core, provider-agnostic.","keywords":["ai","llm","strategy","text-generation"],"license":"MIT","author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","homepage":"https://github.com/getaidex/aidex/tree/main/packages/strategies#readme","repository":{"type":"git","url":"git+https://github.com/getaidex/aidex.git","directory":"packages/strategies"},"bugs":{"url":"https://github.com/getaidex/aidex/issues"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"sideEffects":false,"publishConfig":{"access":"public"},"dependencies":{"@aidex/core":"1.2.0"},"devDependencies":{"@aidex/providers":"1.2.0"},"engines":{"node":">=20.19.0","pnpm":">=9"},"scripts":{"build":"tsc -b && tsup","typecheck":"tsc -b --noEmit"},"_nodeVersion":"24.13.0","_id":"@aidex/strategies@1.2.0","dist":{"integrity":"sha512-vgzW8fPvs+JyEV3S9YGwFndltfQlS5gX38nXfbbXaSqaVNnunFiN90CB/SR9Kg6wFGdqrVDZT3N+hnghHvy1Wg==","shasum":"aa30ec58c0076f8456e9907a167b3f2a279ab568","tarball":"https://registry.npmjs.org/@aidex/strategies/-/strategies-1.2.0.tgz","fileCount":16,"unpackedSize":22193,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBaUwah6TIq9d9E+y62sQYor/uznycXLjmcdYYoPUCGDAiEAgEQSwVyS+L6pMDe7GoTMc35wj/w+qURBECDx9n5z020="}]},"_npmUser":{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"},"directories":{},"maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strategies_1.2.0_1787491713456_0.9129209899379487"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-03T14:49:47.280Z","modified":"2026-08-23T13:28:33.840Z","0.1.0-alpha":"2026-08-03T14:49:47.621Z","0.2.0-alpha":"2026-08-03T15:47:13.671Z","0.2.1-alpha":"2026-08-03T17:29:06.654Z","0.3.0-alpha":"2026-08-08T18:26:33.615Z","1.0.0":"2026-08-11T06:59:23.739Z","1.0.1":"2026-08-11T07:10:02.649Z","1.1.0":"2026-08-22T16:52:05.502Z","1.2.0":"2026-08-23T13:28:33.584Z"},"bugs":{"url":"https://github.com/getaidex/aidex/issues"},"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","homepage":"https://github.com/getaidex/aidex/tree/main/packages/strategies#readme","keywords":["ai","llm","strategy","text-generation"],"repository":{"type":"git","url":"git+https://github.com/getaidex/aidex.git","directory":"packages/strategies"},"description":"Aidex Strategies — concrete Strategy implementations built on @aidex/core, provider-agnostic.","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"readme":"# @aidex/strategies\n\n## Installation\n\n```sh\npnpm add @aidex/strategies\n```\n\n```sh\nnpm install @aidex/strategies\n```\n\nConcrete `Strategy` implementations for the Aidex kernel (`@aidex/core`). Strategies\nare application-land code per `docs/architecture/strategy-development-guide.md` —\nthis package supplies reusable ones so an app can\n`aidex.registerStrategy(new TextGenerationStrategy())` without hand-rolling the\nPrompt/Provider plumbing every time.\n\n## Contents\n\n- **`stub/StubStrategy`** — the reference `Strategy` implementation: receives an\n  `AidexRequest`, reads `ExecutionContext`, builds a `Prompt`, calls\n  `context.provider.generate()`, and returns the result — with no decision logic\n  of its own. Deterministic whenever `context.provider` is.\n- **`text/TextGenerationStrategy`** — the first production `Strategy`: turns\n  `request.input` into a `Prompt` and returns `ProviderResponse.content` only.\n  Never imports a vendor SDK and never assumes which `Provider` it's talking to —\n  it only ever calls the `Provider` interface, so it works unchanged against\n  `GeminiProvider`, a future `OpenAIProvider`/`ClaudeProvider`, or a stub.\n\n## Rules this package follows\n\n- Imports only the public contracts from `@aidex/core` (`Strategy`, `AidexRequest`,\n  `ExecutionContext`, `Prompt`) — never a kernel internal.\n- Never constructs a `Provider` — always calls the one injected at\n  `context.provider`, per doc #5's \"what a Strategy must never do.\"\n- Prompt construction stays inside the strategy; it is never pushed down into a\n  provider.\n- `@aidex/providers` (`StubProvider`) is a test-only dependency, used to exercise\n  these strategies end-to-end — it is not a runtime dependency of any strategy\n  here, since a strategy must work with *any* `Provider`.\n- `src/index.ts` exports strategy classes only.\n","readmeFilename":""}