{"_id":"@aidex/prompts","_rev":"8-acbb1473391358770c947af07e5406a2","name":"@aidex/prompts","dist-tags":{"latest":"1.2.0"},"versions":{"0.1.0-alpha":{"name":"@aidex/prompts","version":"0.1.0-alpha","keywords":["ai","prompt","prompt-management","prompt-registry","templating"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/prompts@0.1.0-alpha","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/prompts#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"a7fa57a3d7cdd1b27aa25b06eecdd677ed6c178e","tarball":"https://registry.npmjs.org/@aidex/prompts/-/prompts-0.1.0-alpha.tgz","fileCount":31,"integrity":"sha512-StBvmMBYK+3nQR3wlCDHkHTg5NRb/bphMtEnEE24Ede0xQ5cnOxH9T46/lF0XfGSe++HXNuCF9lQzP27py/FZw==","signatures":[{"sig":"MEQCIHO21RwndGIfTORON6+RGDp298c8U4RsE+9Z5CNG+4F2AiAmcR5FK53wu6x1xihW+sSaFS0QQ9GP5apaivUdDpRb/g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21418},"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/prompts"},"description":"Aidex Prompts — a central, versioned Prompt Registry with variable substitution and validation.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"0.1.0-alpha"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/prompts_0.1.0-alpha_1785768579232_0.4342559381777331","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-alpha":{"name":"@aidex/prompts","version":"0.2.0-alpha","keywords":["ai","prompt","prompt-management","prompt-registry","templating"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/prompts@0.2.0-alpha","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/prompts#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"77e78daaebd8ab651d19d83db07c7570689559de","tarball":"https://registry.npmjs.org/@aidex/prompts/-/prompts-0.2.0-alpha.tgz","fileCount":21,"integrity":"sha512-qdt/R7XqKxSRpAEOFJsqgdJD6TEvpTNU3+pQOF9Y8lDp7L6XT8t2t4eKyXW9ymFNrqulTVOh4FJ15QMYz7G1lA==","signatures":[{"sig":"MEUCICBgK5xB5UQ5f1+hH3WuUx6x/TMHKbdJAiy4gS7fE04ZAiEAnOf6tPgjsg/18pNZEFraj1J8zllCYLoVbNwbZmNkOAg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36203},"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/prompts"},"description":"Aidex Prompts — a central, versioned Prompt Registry with variable substitution and validation.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"0.2.0-alpha"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/prompts_0.2.0-alpha_1785772026000_0.2854827395227917","host":"s3://npm-registry-packages-npm-production"}},"0.2.1-alpha":{"name":"@aidex/prompts","version":"0.2.1-alpha","keywords":["ai","prompt","prompt-management","prompt-registry","templating"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/prompts@0.2.1-alpha","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/prompts#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"725f7b7c4add765e064cfa79c62fb6ef5bb4447a","tarball":"https://registry.npmjs.org/@aidex/prompts/-/prompts-0.2.1-alpha.tgz","fileCount":22,"integrity":"sha512-eUE9MK2xYiNEzMwEv3WlB13yF6ruyOInnaJ9f8Hg6JOwpyUOk7WPIQ7naRGkKedJcV0j5p2reuqGG+d1J3RKGw==","signatures":[{"sig":"MEUCIQCkzH4aNTQsnsQmrYH2EIgd2BTb9es3BJPjPyvKXhuhxwIgRTxHgosQUtJL63bScqWksu5sPGIEeEWPtDDUMlf+QMU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41721},"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/prompts"},"description":"Aidex Prompts — a central, versioned Prompt Registry with variable substitution and validation.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"0.2.1-alpha"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/prompts_0.2.1-alpha_1785778135629_0.7889583828829858","host":"s3://npm-registry-packages-npm-production"}},"0.3.0-alpha":{"name":"@aidex/prompts","version":"0.3.0-alpha","keywords":["ai","prompt","prompt-management","prompt-registry","templating"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/prompts@0.3.0-alpha","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/prompts#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"f1f6d0f84d8ef9180934cb8b744377e999159656","tarball":"https://registry.npmjs.org/@aidex/prompts/-/prompts-0.3.0-alpha.tgz","fileCount":9,"integrity":"sha512-t9gkVLbcoPg4IyGpikh/Q3jEJKasaTrzniz4AsyZIj70IoPuoPaKc6jgL3UmaIRgNoBB32jsVVw4ChIDtP0ilQ==","signatures":[{"sig":"MEYCIQCTLWHWc1B31YCEz3MM4rk5QfvO4NER8LsJbQDoTcoR3wIhAKZf+qQXrm3Ca03VuSKetcfTqwMs2x3+G415imLxKrpQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36016},"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/prompts"},"description":"Aidex Prompts — a central, versioned Prompt Registry with variable substitution and validation.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"0.3.0-alpha"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/prompts_0.3.0-alpha_1786213585824_0.27372991866730945","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@aidex/prompts","version":"1.0.0","keywords":["ai","prompt","prompt-management","prompt-registry","templating"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/prompts@1.0.0","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/prompts#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"15338a5af0457b09ceb8a0f9d78751cadcd3e0d8","tarball":"https://registry.npmjs.org/@aidex/prompts/-/prompts-1.0.0.tgz","fileCount":9,"integrity":"sha512-DxExj/6ZUwVcWKia7fTsKsg3jaYm6UuilEfFe+v9jQqy1C7undWKU8/yPJ/vesEYVDxf7/iN8CQxO1vMEt8qqg==","signatures":[{"sig":"MEQCIDHFbpCzjkq9gawznMMwSSl8IMrM9rDY3EVijT+2OaK2AiAl7SaAkY2gxhf5o1esfgHRkyZ4kt7+H6y2I8dt8bWFHA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36004},"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/prompts"},"description":"Aidex Prompts — a central, versioned Prompt Registry with variable substitution and validation.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/prompts_1.0.0_1786431556331_0.3969511604496563","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aidex/prompts","version":"1.0.1","keywords":["ai","prompt","prompt-management","prompt-registry","templating"],"author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","license":"MIT","_id":"@aidex/prompts@1.0.1","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/prompts#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"f1fe5c7bf05d6448dc4b936bbee8a3cfaf2b23c6","tarball":"https://registry.npmjs.org/@aidex/prompts/-/prompts-1.0.1.tgz","fileCount":9,"integrity":"sha512-WW6t/4yDJoZxZdbVb7YF5jJE2e4R+qxCfrq3JqU2HEMjlZ9g5jqx1eYWmhFVxUPBzDtBXme6d9WCvU1FgVy32A==","signatures":[{"sig":"MEYCIQDQwmYSrRmANE/bJMGSZHAYaCvaApz7V05OHvSJuJ1cEgIhAIMQBSKeBYPDc3EnEaG1iLmx33mNfa+XpX7JZirFRDOk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36004},"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/prompts"},"description":"Aidex Prompts — a central, versioned Prompt Registry with variable substitution and validation.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","dependencies":{"@aidex/core":"1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/prompts_1.0.1_1786432194859_0.07564593380707363","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@aidex/prompts","version":"1.1.0","keywords":["ai","prompt","prompt-management","prompt-registry","templating"],"author":{"name":"Sudheer Babu","email":"isudheerbabu.dev@gmail.com"},"license":"MIT","_id":"@aidex/prompts@1.1.0","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"homepage":"https://github.com/getaidex/aidex/tree/main/packages/prompts#readme","bugs":{"url":"https://github.com/getaidex/aidex/issues"},"dist":{"shasum":"6f866f060fe63daa9e5e1876bb543622f81f5820","tarball":"https://registry.npmjs.org/@aidex/prompts/-/prompts-1.1.0.tgz","fileCount":22,"integrity":"sha512-0Z3S5JJZaeziv4mNRX/lav1jZBKCBEe3dnsojL/yRRNjCqS1TkkVwz/tB5GbD80oKlraDZOGqFK/Z4lF9dZ8Ww==","signatures":[{"sig":"MEYCIQC7nP2z+G8XxMb3+USmijEH1W1ov9SgFFR8OhC2DYFCgAIhAI9Y0kzpYHGkFNDNodOhrOMi/GMWcK7rjVtKEmHgIKzk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41748},"main":"./dist/index.cjs","type":"module","_from":"file:aidex-prompts-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/7288906174741eb47640edacec4582ab/aidex-prompts-1.1.0.tgz","_integrity":"sha512-0Z3S5JJZaeziv4mNRX/lav1jZBKCBEe3dnsojL/yRRNjCqS1TkkVwz/tB5GbD80oKlraDZOGqFK/Z4lF9dZ8Ww==","repository":{"url":"git+https://github.com/getaidex/aidex.git","type":"git","directory":"packages/prompts"},"_npmVersion":"10.9.8","description":"Aidex Prompts — a central, versioned Prompt Registry with variable substitution and validation.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"@aidex/core":"1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/prompts_1.1.0_1787417512836_0.1750682542858204","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@aidex/prompts","version":"1.2.0","description":"Aidex Prompts — a central, versioned Prompt Registry with variable substitution and validation.","keywords":["ai","prompt","prompt-management","prompt-registry","templating"],"license":"MIT","author":"Sudheer Babu <isudheerbabu.dev@gmail.com>","homepage":"https://github.com/getaidex/aidex/tree/main/packages/prompts#readme","repository":{"type":"git","url":"git+https://github.com/getaidex/aidex.git","directory":"packages/prompts"},"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"},"engines":{"node":">=20.19.0","pnpm":">=9"},"scripts":{"build":"tsc -b && tsup","typecheck":"tsc -b --noEmit"},"_nodeVersion":"24.13.0","_id":"@aidex/prompts@1.2.0","dist":{"integrity":"sha512-H0CjIYTQB7ErINx9iwpsg1frpAOBrgVtYrDMwz5hyfM54NqO18plSVuojvCponePhf8H7RFm6Wx3uLlua16Lww==","shasum":"23d46231b54504827e67914ca797f05edd34ee69","tarball":"https://registry.npmjs.org/@aidex/prompts/-/prompts-1.2.0.tgz","fileCount":22,"unpackedSize":41748,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIA2cvKt2noGrmxQQ3caSyu+0t5tXgEiY8ZkGeOvDHZZKAiEAkpCJDWDK2DYWMxHQS6w0KoeTE1Gd+5weWg7+VFcEBo4="}]},"_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/prompts_1.2.0_1787491702939_0.8585720102101209"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-03T14:49:39.115Z","modified":"2026-08-23T13:28:23.243Z","0.1.0-alpha":"2026-08-03T14:49:39.405Z","0.2.0-alpha":"2026-08-03T15:47:06.155Z","0.2.1-alpha":"2026-08-03T17:28:55.754Z","0.3.0-alpha":"2026-08-08T18:26:25.998Z","1.0.0":"2026-08-11T06:59:16.476Z","1.0.1":"2026-08-11T07:09:55.000Z","1.1.0":"2026-08-22T16:51:52.962Z","1.2.0":"2026-08-23T13:28:23.071Z"},"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/prompts#readme","keywords":["ai","prompt","prompt-management","prompt-registry","templating"],"repository":{"type":"git","url":"git+https://github.com/getaidex/aidex.git","directory":"packages/prompts"},"description":"Aidex Prompts — a central, versioned Prompt Registry with variable substitution and validation.","maintainers":[{"name":"sudheerbabu","email":"isudheerbabu.dev@gmail.com"}],"readme":"# @aidex/prompts\n\n## Installation\n\n```sh\npnpm add @aidex/prompts\n```\n\n```sh\nnpm install @aidex/prompts\n```\n\nA central registry for managing prompts: register, version, look up by id,\nand render with variable substitution and validation.\n\n## Contents\n\n- **`types/PromptTemplate`** — `{ id, version, template, variables?, locale?\n  }`. `variables` declares the `{{name}}` placeholders a template expects;\n  `locale` is forward-compatible plumbing for future localization support —\n  carried on the type today, not yet used for any lookup/fallback logic.\n- **`registry/PromptRegistry`** — `register()`, `has()`, `get()`,\n  `listVersions()`, `list()`, `render()`. Each `id` can hold multiple\n  `version`s; `get()`/`render()` default to whichever version was most\n  recently registered (\"latest\") when no specific version is requested.\n  `register()` validates the prompt's basic shape (non-empty `id`/`version`/\n  `template`, throwing `InvalidPromptError` otherwise) and throws\n  `@aidex/core`'s `DuplicateRegistrationError` for a duplicate `id@version`\n  pair — reused, not reimplemented.\n- **`render/renderPrompt`** — the pure substitution function `PromptRegistry.render()`\n  calls internally: validates every variable the template declared as\n  required is present (`MissingPromptVariableError` otherwise), then\n  replaces each `{{name}}` placeholder. An undeclared, unsupplied\n  placeholder is left untouched rather than silently becoming `\"undefined\"`.\n- **`PromptNotFoundError`** — thrown by `render()` when the requested\n  `id`(`@version`) isn't registered. `has()`/`get()` stay plain accessors\n  (`false`/`undefined`), matching the split every other registry in this\n  codebase (`StrategyRegistry`, `EngineRegistry`) uses between silent lookup\n  and fail-loud dispatch.\n\n## Dependency direction\n\n`@aidex/prompts` depends on `@aidex/core` only (`DuplicateRegistrationError`,\nreused rather than reinvented). No dependency on any provider, strategy,\nplugin, or application code.\n\n## Intentional scope limits\n\n- **Localization is not implemented yet** — `PromptTemplate.locale` exists\n  as a field, but the registry doesn't resolve/fallback by locale. A future\n  version would likely key lookups by `(id, locale, version)` instead of\n  just `(id, version)`.\n- **\"Latest\" is insertion-order, not semver** — the most recently\n  *registered* version becomes latest, regardless of version string\n  ordering. Registering `\"1.0.0\"` after `\"2.0.0\"` makes `\"1.0.0\"` latest.\n","readmeFilename":""}