@oscharko-dev/keiko 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/ui/csp-hashes.json +20 -19
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +4 -4
- package/dist/ui/static/__next._full.txt +12 -13
- package/dist/ui/static/__next._head.txt +4 -4
- package/dist/ui/static/__next._index.txt +4 -4
- package/dist/ui/static/__next._tree.txt +2 -3
- package/dist/ui/static/_next/static/GYCj4qCpIh2_0CNX8YDA0/_buildManifest.js +1 -0
- package/dist/ui/static/_next/static/{961tfXyg-9TM0-AkHdDcN → GYCj4qCpIh2_0CNX8YDA0}/_ssgManifest.js +1 -1
- package/dist/ui/static/_next/static/chunks/141a63f7.b221c9ae6bf65aa1.js +1 -0
- package/dist/ui/static/_next/static/chunks/{29d1969dncoef.js → 1562.a7c2497354300cf6.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1587.33fc772cb66c38d7.js +1 -0
- package/dist/ui/static/_next/static/chunks/1688.1b48974d4820565a.js +1 -0
- package/dist/ui/static/_next/static/chunks/1814a212.7fd52f5815687000.js +368 -0
- package/dist/ui/static/_next/static/chunks/1968-bbcb89b9ce3eb26b.js +32 -0
- package/dist/ui/static/_next/static/chunks/1994.32d7f1649e15081f.js +1 -0
- package/dist/ui/static/_next/static/chunks/2063.a7cd2441b60aa093.js +1 -0
- package/dist/ui/static/_next/static/chunks/2107.c1ff3a39fd003d88.js +1 -0
- package/dist/ui/static/_next/static/chunks/2238.1c80c539dd21caff.js +3 -0
- package/dist/ui/static/_next/static/chunks/3170.e25f90ed08f303e3.js +679 -0
- package/dist/ui/static/_next/static/chunks/3181.7d593f9e0f846c96.js +1 -0
- package/dist/ui/static/_next/static/chunks/3294.024505d0744fef2a.js +1 -0
- package/dist/ui/static/_next/static/chunks/3740.84a20b2730a97a3a.js +1 -0
- package/dist/ui/static/_next/static/chunks/3868.ea5f0ddf5e222dba.js +1 -0
- package/dist/ui/static/_next/static/chunks/3883.f8e3dc3fea7fdbe1.js +1 -0
- package/dist/ui/static/_next/static/chunks/3968.55fa02cd74fb96b3.js +1 -0
- package/dist/ui/static/_next/static/chunks/4444.46b9cfb85257a381.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0i37w6dtch5bm.js → 4690.6bc5c7d6c119aa54.js} +1 -1
- package/dist/ui/static/_next/static/chunks/4905.73672d3d0c642e75.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0r1eh0425nsf8.js → 5272.bca1ad25a75d8d0a.js} +1 -1
- package/dist/ui/static/_next/static/chunks/5730.56d7cdb98dbdc486.js +1 -0
- package/dist/ui/static/_next/static/chunks/6028.7deb9c5d26bfce83.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1pxydolx3s42k.js → 6774.52093bc8b0ffabc8.js} +1 -1
- package/dist/ui/static/_next/static/chunks/6808.64f635d2f411e8a8.js +1 -0
- package/dist/ui/static/_next/static/chunks/6bb8c0f0.ef92cd6e0332751d.js +1005 -0
- package/dist/ui/static/_next/static/chunks/7301.501daea6a309d3f5.js +1 -0
- package/dist/ui/static/_next/static/chunks/7573.103bcab7ad9ec4f4.js +1 -0
- package/dist/ui/static/_next/static/chunks/7732.a6e5df401d584efd.js +1 -0
- package/dist/ui/static/_next/static/chunks/7f819917.631f7e51d345e84c.js +1 -0
- package/dist/ui/static/_next/static/chunks/8556.4f751fdef390f050.js +1 -0
- package/dist/ui/static/_next/static/chunks/8776.140362f8c6f4d7f1.js +3 -0
- package/dist/ui/static/_next/static/chunks/87c73c54-014124adcece3495.js +1 -0
- package/dist/ui/static/_next/static/chunks/8824-87c539abddefabd6.js +98 -0
- package/dist/ui/static/_next/static/chunks/8835-d642f66c1962fa68.js +1 -0
- package/dist/ui/static/_next/static/chunks/8948.a434bd4eee007dec.js +1 -0
- package/dist/ui/static/_next/static/chunks/9211-06ff5a834d85f608.js +3 -0
- package/dist/ui/static/_next/static/chunks/9385.4cf1f094775e2625.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1qlzx0yicfamw.js → 9580.c45199468eff0333.js} +1 -1
- package/dist/ui/static/_next/static/chunks/960-fc53cb72c81db8c2.js +1 -0
- package/dist/ui/static/_next/static/chunks/9682.d5b8d9ce8cb80519.js +1 -0
- package/dist/ui/static/_next/static/chunks/9834.a4b101bcdd6d6a02.js +7 -0
- package/dist/ui/static/_next/static/chunks/9976.5970067ee5af21ee.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/_global-error/page-7bf8bd93aa11e337.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/_not-found/page-d11b06e05aafdf7f.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/launch/page-82ed92234aabb847.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/layout-6e7d5a2f606bb912.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/local-knowledge/capsule/page-a2af3bbd82315c1e.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/local-knowledge/page-9124d233dd58858c.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/memoriaviva/consolidation/page-7bf8bd93aa11e337.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/memoriaviva/detail/page-7bf8bd93aa11e337.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/memoriaviva/page-7bf8bd93aa11e337.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/memoriaviva/review-queue/page-7bf8bd93aa11e337.js +1 -0
- package/dist/ui/static/_next/static/chunks/app/page-dcdb404becd4ddb6.js +1 -0
- package/dist/ui/static/_next/static/chunks/ebdf2699.65a70a76e20e9c97.js +1 -0
- package/dist/ui/static/_next/static/chunks/framework-2da6d53e02270a60.js +1 -0
- package/dist/ui/static/_next/static/chunks/main-3c13180c1c50c526.js +5 -0
- package/dist/ui/static/_next/static/chunks/main-app-78f8504d5fb3159e.js +1 -0
- package/dist/ui/static/_next/static/chunks/next/dist/client/components/builtin/app-error-7bf8bd93aa11e337.js +1 -0
- package/dist/ui/static/_next/static/chunks/next/dist/client/components/builtin/forbidden-7bf8bd93aa11e337.js +1 -0
- package/dist/ui/static/_next/static/chunks/next/dist/client/components/builtin/global-error-6a6cbc4b4b1897d4.js +1 -0
- package/dist/ui/static/_next/static/chunks/next/dist/client/components/builtin/not-found-7bf8bd93aa11e337.js +1 -0
- package/dist/ui/static/_next/static/chunks/next/dist/client/components/builtin/unauthorized-7bf8bd93aa11e337.js +1 -0
- package/dist/ui/static/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/ui/static/_next/static/chunks/webpack-cb574cb028380487.js +1 -0
- package/dist/ui/static/_next/static/css/04e93b3f30b67861.css +3 -0
- package/dist/ui/static/_next/static/css/1ab47b3e78ccc975.css +3 -0
- package/dist/ui/static/_next/static/css/29c9f45818b0ee66.css +1 -0
- package/dist/ui/static/_next/static/css/5adfb34e72f5c7db.css +1 -0
- package/dist/ui/static/_not-found/__next._full.txt +10 -10
- package/dist/ui/static/_not-found/__next._head.txt +4 -4
- package/dist/ui/static/_not-found/__next._index.txt +4 -4
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/ui/static/_not-found/__next._not-found.txt +3 -3
- package/dist/ui/static/_not-found/__next._tree.txt +2 -2
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +10 -10
- package/dist/ui/static/favicon.ico +0 -0
- package/dist/ui/static/favicon.svg +55 -4
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +12 -13
- package/dist/ui/static/launch/__next._full.txt +12 -13
- package/dist/ui/static/launch/__next._head.txt +4 -4
- package/dist/ui/static/launch/__next._index.txt +4 -4
- package/dist/ui/static/launch/__next._tree.txt +2 -3
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +4 -4
- package/dist/ui/static/launch/__next.launch.txt +3 -3
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +12 -13
- package/dist/ui/static/local-knowledge/__next._full.txt +12 -13
- package/dist/ui/static/local-knowledge/__next._head.txt +4 -4
- package/dist/ui/static/local-knowledge/__next._index.txt +4 -4
- package/dist/ui/static/local-knowledge/__next._tree.txt +2 -3
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +4 -4
- package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +3 -3
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +11 -11
- package/dist/ui/static/local-knowledge/capsule/__next._head.txt +4 -4
- package/dist/ui/static/local-knowledge/capsule/__next._index.txt +4 -4
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +3 -3
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +3 -3
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +3 -3
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +11 -11
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +12 -13
- package/dist/ui/static/memoriaviva/__next._full.txt +10 -10
- package/dist/ui/static/memoriaviva/__next._head.txt +4 -4
- package/dist/ui/static/memoriaviva/__next._index.txt +4 -4
- package/dist/ui/static/memoriaviva/__next._tree.txt +2 -2
- package/dist/ui/static/memoriaviva/__next.memoriaviva.__PAGE__.txt +2 -2
- package/dist/ui/static/memoriaviva/__next.memoriaviva.txt +3 -3
- package/dist/ui/static/memoriaviva/consolidation/__next._full.txt +10 -10
- package/dist/ui/static/memoriaviva/consolidation/__next._head.txt +4 -4
- package/dist/ui/static/memoriaviva/consolidation/__next._index.txt +4 -4
- package/dist/ui/static/memoriaviva/consolidation/__next._tree.txt +2 -2
- package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.__PAGE__.txt +2 -2
- package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.txt +3 -3
- package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.txt +3 -3
- package/dist/ui/static/memoriaviva/consolidation.html +1 -1
- package/dist/ui/static/memoriaviva/consolidation.txt +10 -10
- package/dist/ui/static/memoriaviva/detail/__next._full.txt +10 -10
- package/dist/ui/static/memoriaviva/detail/__next._head.txt +4 -4
- package/dist/ui/static/memoriaviva/detail/__next._index.txt +4 -4
- package/dist/ui/static/memoriaviva/detail/__next._tree.txt +2 -2
- package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.__PAGE__.txt +2 -2
- package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.txt +3 -3
- package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.txt +3 -3
- package/dist/ui/static/memoriaviva/detail.html +1 -1
- package/dist/ui/static/memoriaviva/detail.txt +10 -10
- package/dist/ui/static/memoriaviva/review-queue/__next._full.txt +10 -10
- package/dist/ui/static/memoriaviva/review-queue/__next._head.txt +4 -4
- package/dist/ui/static/memoriaviva/review-queue/__next._index.txt +4 -4
- package/dist/ui/static/memoriaviva/review-queue/__next._tree.txt +2 -2
- package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.__PAGE__.txt +2 -2
- package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.txt +3 -3
- package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.txt +3 -3
- package/dist/ui/static/memoriaviva/review-queue.html +1 -1
- package/dist/ui/static/memoriaviva/review-queue.txt +10 -10
- package/dist/ui/static/memoriaviva.html +1 -1
- package/dist/ui/static/memoriaviva.txt +10 -10
- package/dist/ui/static/sw.js +1 -211
- package/node_modules/@oscharko-dev/keiko-cli/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/run.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/run.js +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/tool-shaper.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/tool-shaper.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/tool-shaper.js +70 -0
- package/node_modules/@oscharko-dev/keiko-cli/package.json +14 -14
- package/node_modules/@oscharko-dev/keiko-contracts/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +17 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.js +52 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.js +49 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.js +270 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.js +171 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.d.ts +148 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.js +80 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-observations-validation.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-observations-validation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-observations-validation.js +252 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-observations.d.ts +88 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-observations.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-observations.js +19 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +12 -4
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +7 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/tools.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/tools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +9 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.js +215 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.js +20 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.js +62 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/index-api.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/index-api.js +2 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/index.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/index.js +1 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/types.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-harness/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/context.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-harness/dist/context.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/executor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/executor.js +26 -0
- package/node_modules/@oscharko-dev/keiko-harness/dist/index.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-harness/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/session.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-harness/dist/session.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/session.js +2 -0
- package/node_modules/@oscharko-dev/keiko-harness/dist/shaper-port.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-harness/dist/shaper-port.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-harness/dist/shaper-port.js +14 -0
- package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-evidence.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-evidence.js +46 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +78 -28
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +13 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.js +102 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-diagnostics.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-diagnostics.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-diagnostics.js +77 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +122 -53
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.js +5 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.js +48 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +35 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/index.js +5 -0
- package/node_modules/@oscharko-dev/keiko-server/package.json +19 -19
- package/node_modules/@oscharko-dev/keiko-tools/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/exec.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/exec.js +8 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/registry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/registry.js +3 -0
- package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-verification/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/allocator.d.ts +29 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/allocator.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/allocator.js +185 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/compaction-helpers.d.ts +44 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/compaction-helpers.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/compaction-helpers.js +203 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/compaction.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/compaction.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/compaction.js +97 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/defaults.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/defaults.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/defaults.js +75 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/index.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/index.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/index.js +6 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/rehydration.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/rehydration.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/rehydration.js +76 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.js +19 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/index.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/index.js +4 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/command.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/command.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/command.js +67 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/index.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/index.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/index.js +6 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/search.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/search.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/search.js +43 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/shared.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/shared.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/shared.js +63 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/test.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/test.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/observations/test.js +47 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.js +3 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.js +6 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.js +5 -3
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.js +29 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.js +23 -3
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/.tsbuildinfo +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ecosystems.d.ts +46 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ecosystems.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ecosystems.js +1173 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +4 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +3 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +61 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts +10 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.js +115 -61
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.js +152 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/retrieval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/retrieval.js +39 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/stableId.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/stableId.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/stableId.js +38 -0
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
- package/package.json +27 -22
- package/dist/ui/static/_next/static/961tfXyg-9TM0-AkHdDcN/_buildManifest.js +0 -11
- package/dist/ui/static/_next/static/961tfXyg-9TM0-AkHdDcN/_clientMiddlewareManifest.js +0 -1
- package/dist/ui/static/_next/static/chunks/02x_fenv7_zew.js +0 -1
- package/dist/ui/static/_next/static/chunks/04v1kck7tfha5.js +0 -3
- package/dist/ui/static/_next/static/chunks/05-c3ty_6dwfk.js +0 -1
- package/dist/ui/static/_next/static/chunks/0cz1d0mv5g_q7.js +0 -1
- package/dist/ui/static/_next/static/chunks/0f5n_cgpnc_up.js +0 -1
- package/dist/ui/static/_next/static/chunks/0f8vu_oqmv33v.js +0 -1
- package/dist/ui/static/_next/static/chunks/0oj6iz8mnbx8s.js +0 -2
- package/dist/ui/static/_next/static/chunks/0plguvqu88z22.css +0 -1
- package/dist/ui/static/_next/static/chunks/0rfgnninook6m.js +0 -7
- package/dist/ui/static/_next/static/chunks/0rpy-4z62fhgt.js +0 -1
- package/dist/ui/static/_next/static/chunks/1008yamfukit7.js +0 -1
- package/dist/ui/static/_next/static/chunks/118gmc8yis71o.js +0 -1
- package/dist/ui/static/_next/static/chunks/14mrh2-p_w84d.js +0 -1
- package/dist/ui/static/_next/static/chunks/14pxq1l54d91b.js +0 -100
- package/dist/ui/static/_next/static/chunks/1bch0lzf2jhte.js +0 -1
- package/dist/ui/static/_next/static/chunks/1g9ftam8b7m8q.js +0 -1
- package/dist/ui/static/_next/static/chunks/1hu0-yn7a2hl7.js +0 -1
- package/dist/ui/static/_next/static/chunks/1jb065bgx6s74.js +0 -1
- package/dist/ui/static/_next/static/chunks/1ranrsmqde7a3.js +0 -1
- package/dist/ui/static/_next/static/chunks/1x1yfevmu5rb2.js +0 -1
- package/dist/ui/static/_next/static/chunks/20foqqrxh746m.js +0 -1
- package/dist/ui/static/_next/static/chunks/29350453epqhl.js +0 -678
- package/dist/ui/static/_next/static/chunks/2brgey_3-j__0.css +0 -78
- package/dist/ui/static/_next/static/chunks/2f07lv5x0j18r.js +0 -31
- package/dist/ui/static/_next/static/chunks/2hyzx1ec3gusp.js +0 -5
- package/dist/ui/static/_next/static/chunks/2kk_6twoug205.js +0 -1
- package/dist/ui/static/_next/static/chunks/2m8gr4lszkhce.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ow5x0jmgs6c3.js +0 -1
- package/dist/ui/static/_next/static/chunks/2udnn0cidn7rd.js +0 -1372
- package/dist/ui/static/_next/static/chunks/2xt20mg9l3s14.js +0 -1
- package/dist/ui/static/_next/static/chunks/332o8ksd43271.css +0 -2
- package/dist/ui/static/_next/static/chunks/3ikgvfgh2w2mv.js +0 -1
- package/dist/ui/static/_next/static/chunks/3l7lvskoqfema.js +0 -1
- package/dist/ui/static/_next/static/chunks/3m8_lgj6p8ik3.js +0 -1
- package/dist/ui/static/_next/static/chunks/3peubv2924kx4.js +0 -1
- package/dist/ui/static/_next/static/chunks/3rcxnxkqe56aj.js +0 -1
- package/dist/ui/static/_next/static/chunks/3s4w0yl_p2lcg.css +0 -11
- package/dist/ui/static/_next/static/chunks/3wdv1n7vcw9cc.js +0 -3
- package/dist/ui/static/_next/static/chunks/3xvtkd60q8trh.js +0 -1
- package/dist/ui/static/_next/static/chunks/3zd9_bzzf89g-.js +0 -1
- package/dist/ui/static/_next/static/chunks/403o25d1h_c-n.js +0 -1
- package/dist/ui/static/_next/static/chunks/40jvaobgkjymu.js +0 -1
- package/dist/ui/static/_next/static/chunks/40zvqgo8jkl9z.css +0 -7
- package/dist/ui/static/_next/static/chunks/43ils02xq1hm1.js +0 -2
- package/dist/ui/static/_next/static/chunks/turbopack-06ieh9kn4227g.js +0 -1
- package/dist/ui/static/_next/static/chunks/turbopack-1g6b_g7qh0ywi.js +0 -1
- package/dist/ui/static/_next/static/chunks/turbopack-2kouhzbnsra9l.js +0 -1
- package/dist/ui/static/_next/static/chunks/turbopack-2t_ks90iyjtkj.js +0 -1
- package/dist/ui/static/_next/static/chunks/turbopack-3isq3ty8v6x-q.js +0 -1
- package/dist/ui/static/_next/static/chunks/turbopack-410ydpmcadyki.js +0 -1
- package/dist/ui/static/_next/static/chunks/turbopack-worker-2gqdcwp7k90ea.js +0 -1
- package/dist/ui/static/_next/static/media/css.worker.2tg30ell0fh1e.js +0 -8
- package/dist/ui/static/_next/static/media/editor.worker.2da6bfstu5_et.js +0 -11
- package/dist/ui/static/_next/static/media/html.worker.3rfboyno_oqe1.js +0 -8
- package/dist/ui/static/_next/static/media/json.worker.3z5byn_3-su6-.js +0 -8
- package/dist/ui/static/_next/static/media/ts.worker.0i3svvld44ebg.js +0 -14
- /package/dist/ui/static/_next/static/media/{codicon.3bppog5b8ye-1.ttf → codicon.5b7d6fac.ttf} +0 -0
|
@@ -0,0 +1,1173 @@
|
|
|
1
|
+
// Language / build-system ecosystem registry (Milestone 1 of the enterprise repository-retrieval
|
|
2
|
+
// redesign). This is the SINGLE, extensible source of truth for "what counts as a canonical
|
|
3
|
+
// project manifest, a source file, a generated artifact, or a lockfile" per ecosystem, plus the
|
|
4
|
+
// natural-language terms that route a project-metadata question to an ecosystem.
|
|
5
|
+
//
|
|
6
|
+
// It exists because the prior retrieval pipeline hard-coded JS/TS knowledge in three independent
|
|
7
|
+
// places (planner intent classification, candidate bucketing, and the lexical phrase matcher), so a
|
|
8
|
+
// polyglot repository could not answer "Which Java version does this project use?" — a Maven
|
|
9
|
+
// `pom.xml` declaring `maven.compiler.release` was bucketed as `other` (score 20) and lost to a
|
|
10
|
+
// `README.md` (overview-doc, score 70). Adding ecosystems must mean editing THIS table, not
|
|
11
|
+
// scattering more language hacks across the pipeline.
|
|
12
|
+
//
|
|
13
|
+
// Hard constraints (verified against the workspace security boundary — see ignore.ts):
|
|
14
|
+
// * PURE + DETERMINISTIC + OFFLINE: no IO, no clock, no RNG, no network. Classification never
|
|
15
|
+
// reads file contents; iteration order is fixed by the array below so evidence ordering and
|
|
16
|
+
// stableIds stay reproducible across runs and locales.
|
|
17
|
+
// * DENY-LIST CLEAN: every registered manifest name/suffix is asserted disjoint from
|
|
18
|
+
// DEFAULT_DENY_PATTERNS and the secret-file conventions in ecosystems.test.ts. The registry can
|
|
19
|
+
// only ever RE-BUCKET a file that already survived discovery + the always-on deny gate; it can
|
|
20
|
+
// never resurrect a denied/secret path (.env, *.tfvars, *.tfstate, .npmrc, *.pem/*.key,
|
|
21
|
+
// kubeconfig, service-account*.json, node_modules, dist/build/out/coverage, …).
|
|
22
|
+
// * ReDoS-SAFE: routing patterns compile to linear regex (escaped literals; only `[\s_-]+`
|
|
23
|
+
// between words), matching the single-quantifier convention used elsewhere in this package.
|
|
24
|
+
// * GENERATED MARKERS are WHOLE-SEGMENT or ANCHORED-SUFFIX only — never a bare substring — so a
|
|
25
|
+
// hand-authored `src/builder.ts` is not mistaken for a `build/` artifact.
|
|
26
|
+
// ─── The registry ──────────────────────────────────────────────────────────────
|
|
27
|
+
// Array order is the deterministic iteration order for every derived pattern list.
|
|
28
|
+
export const ECOSYSTEMS = Object.freeze([
|
|
29
|
+
{
|
|
30
|
+
id: "java",
|
|
31
|
+
label: "Java",
|
|
32
|
+
manifestNames: ["pom.xml", "build.gradle", "build.gradle.kts", ".java-version", ".sdkmanrc"],
|
|
33
|
+
manifestSuffixes: [],
|
|
34
|
+
sourceExtensions: ["java"],
|
|
35
|
+
lockfileNames: ["gradle.lockfile", "buildscript-gradle.lockfile"],
|
|
36
|
+
generatedSegments: ["target", "generated-sources", ".gradle"],
|
|
37
|
+
generatedSuffixes: [".class"],
|
|
38
|
+
routingTerms: [
|
|
39
|
+
"java",
|
|
40
|
+
"jdk",
|
|
41
|
+
"jvm",
|
|
42
|
+
"jre",
|
|
43
|
+
"openjdk",
|
|
44
|
+
"java version",
|
|
45
|
+
"java-laufzeit",
|
|
46
|
+
"jakarta",
|
|
47
|
+
"bytecode",
|
|
48
|
+
],
|
|
49
|
+
contentTokens: [
|
|
50
|
+
"maven.compiler",
|
|
51
|
+
"java.version",
|
|
52
|
+
"sourcecompatibility",
|
|
53
|
+
"targetcompatibility",
|
|
54
|
+
"languageversion",
|
|
55
|
+
],
|
|
56
|
+
versionDeclarations: [
|
|
57
|
+
{
|
|
58
|
+
file: "pom.xml",
|
|
59
|
+
signal: "<maven.compiler.release> / <maven.compiler.source> / <maven.compiler.target>",
|
|
60
|
+
example: "<maven.compiler.release>21</maven.compiler.release>",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
file: "build.gradle",
|
|
64
|
+
signal: "sourceCompatibility / JavaLanguageVersion.of(N)",
|
|
65
|
+
example: "sourceCompatibility = JavaVersion.VERSION_21",
|
|
66
|
+
},
|
|
67
|
+
{ file: ".java-version", signal: "bare major version line (jenv / sdkman)", example: "21" },
|
|
68
|
+
],
|
|
69
|
+
buildCommands: ["mvn -q -DskipTests package", "./gradlew build"],
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "kotlin",
|
|
73
|
+
label: "Kotlin",
|
|
74
|
+
manifestNames: ["build.gradle.kts", "settings.gradle.kts", "gradle/libs.versions.toml"],
|
|
75
|
+
manifestSuffixes: [],
|
|
76
|
+
sourceExtensions: ["kt", "kts"],
|
|
77
|
+
lockfileNames: ["gradle.lockfile"],
|
|
78
|
+
generatedSegments: [".gradle"],
|
|
79
|
+
generatedSuffixes: [],
|
|
80
|
+
routingTerms: ["kotlin", "ktor", "kmp", "kotlin multiplatform", "coroutines", "jetbrains"],
|
|
81
|
+
contentTokens: ["jvmtarget", "languageversion", "kotlin"],
|
|
82
|
+
versionDeclarations: [
|
|
83
|
+
{
|
|
84
|
+
file: "build.gradle.kts",
|
|
85
|
+
signal: 'kotlin("jvm") version "x.y.z" / kotlinOptions.jvmTarget',
|
|
86
|
+
example: 'kotlin("jvm") version "2.0.20"',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
file: "gradle/libs.versions.toml",
|
|
90
|
+
signal: 'kotlin = "x.y.z" under [versions]',
|
|
91
|
+
example: 'kotlin = "2.0.20"',
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
buildCommands: ["./gradlew build"],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: "scala",
|
|
98
|
+
label: "Scala",
|
|
99
|
+
manifestNames: [
|
|
100
|
+
"build.sbt",
|
|
101
|
+
"project/build.properties",
|
|
102
|
+
"project/plugins.sbt",
|
|
103
|
+
".scala-version",
|
|
104
|
+
],
|
|
105
|
+
manifestSuffixes: [],
|
|
106
|
+
sourceExtensions: ["scala", "sc"],
|
|
107
|
+
lockfileNames: [],
|
|
108
|
+
generatedSegments: ["target", ".bloop", ".bsp"],
|
|
109
|
+
generatedSuffixes: [".tasty"],
|
|
110
|
+
routingTerms: ["scala", "sbt", "akka", "dotty", "tasty", "scala 3", "scala version"],
|
|
111
|
+
contentTokens: ["scalaversion", "sbt.version"],
|
|
112
|
+
versionDeclarations: [
|
|
113
|
+
{ file: "build.sbt", signal: 'scalaVersion := "x.y.z"', example: 'scalaVersion := "3.4.2"' },
|
|
114
|
+
{
|
|
115
|
+
file: "project/build.properties",
|
|
116
|
+
signal: "sbt.version=x.y.z",
|
|
117
|
+
example: "sbt.version=1.10.1",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
buildCommands: ["sbt compile"],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "groovy",
|
|
124
|
+
label: "Groovy",
|
|
125
|
+
manifestNames: ["build.gradle"],
|
|
126
|
+
manifestSuffixes: [".groovy"],
|
|
127
|
+
sourceExtensions: ["groovy", "gvy", "gy"],
|
|
128
|
+
lockfileNames: ["gradle.lockfile"],
|
|
129
|
+
generatedSegments: [".gradle"],
|
|
130
|
+
generatedSuffixes: [],
|
|
131
|
+
routingTerms: ["groovy", "spock", "jenkinsfile", "apache groovy", "groovy version"],
|
|
132
|
+
contentTokens: ["org.apache.groovy", "org.codehaus.groovy", "groovy.version"],
|
|
133
|
+
versionDeclarations: [
|
|
134
|
+
{
|
|
135
|
+
file: "build.gradle",
|
|
136
|
+
signal: "org.apache.groovy:groovy dependency version",
|
|
137
|
+
example: "implementation 'org.apache.groovy:groovy:4.0.22'",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
buildCommands: ["./gradlew build"],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: "maven",
|
|
144
|
+
label: "Maven",
|
|
145
|
+
manifestNames: [
|
|
146
|
+
"pom.xml",
|
|
147
|
+
".mvn/maven.config",
|
|
148
|
+
".mvn/jvm.config",
|
|
149
|
+
".mvn/wrapper/maven-wrapper.properties",
|
|
150
|
+
"mvnw",
|
|
151
|
+
"mvnw.cmd",
|
|
152
|
+
],
|
|
153
|
+
manifestSuffixes: [],
|
|
154
|
+
sourceExtensions: [],
|
|
155
|
+
lockfileNames: [],
|
|
156
|
+
generatedSegments: ["target"],
|
|
157
|
+
generatedSuffixes: [".jar", ".war"],
|
|
158
|
+
routingTerms: [
|
|
159
|
+
"maven",
|
|
160
|
+
"pom.xml",
|
|
161
|
+
"pom datei",
|
|
162
|
+
"mvn",
|
|
163
|
+
"surefire",
|
|
164
|
+
"failsafe",
|
|
165
|
+
"maven central",
|
|
166
|
+
"groupid",
|
|
167
|
+
"artifactid",
|
|
168
|
+
"maven-wrapper",
|
|
169
|
+
],
|
|
170
|
+
contentTokens: ["maven.compiler", "modelversion", "artifactid", "groupid"],
|
|
171
|
+
versionDeclarations: [
|
|
172
|
+
{
|
|
173
|
+
file: "pom.xml",
|
|
174
|
+
signal: "<maven.compiler.release|source|target>",
|
|
175
|
+
example: "<maven.compiler.release>21</maven.compiler.release>",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
file: ".mvn/wrapper/maven-wrapper.properties",
|
|
179
|
+
signal: "distributionUrl=.../apache-maven-x.y.z-bin.zip",
|
|
180
|
+
example: "distributionUrl=https://.../apache-maven-3.9.9-bin.zip",
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
buildCommands: ["mvn -q -DskipTests package"],
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
id: "gradle",
|
|
187
|
+
label: "Gradle",
|
|
188
|
+
manifestNames: [
|
|
189
|
+
"build.gradle",
|
|
190
|
+
"build.gradle.kts",
|
|
191
|
+
"settings.gradle",
|
|
192
|
+
"settings.gradle.kts",
|
|
193
|
+
"gradle.properties",
|
|
194
|
+
"gradle/libs.versions.toml",
|
|
195
|
+
"gradle/wrapper/gradle-wrapper.properties",
|
|
196
|
+
"gradlew",
|
|
197
|
+
"gradlew.bat",
|
|
198
|
+
],
|
|
199
|
+
manifestSuffixes: [],
|
|
200
|
+
sourceExtensions: [],
|
|
201
|
+
lockfileNames: ["gradle.lockfile", "buildscript-gradle.lockfile", "settings-gradle.lockfile"],
|
|
202
|
+
generatedSegments: [".gradle"],
|
|
203
|
+
generatedSuffixes: [],
|
|
204
|
+
routingTerms: [
|
|
205
|
+
"gradle",
|
|
206
|
+
"gradlew",
|
|
207
|
+
"gradle wrapper",
|
|
208
|
+
"build.gradle",
|
|
209
|
+
"version catalog",
|
|
210
|
+
"gradle build",
|
|
211
|
+
"gradle version",
|
|
212
|
+
],
|
|
213
|
+
contentTokens: [
|
|
214
|
+
"distributionurl",
|
|
215
|
+
"languageversion",
|
|
216
|
+
"sourcecompatibility",
|
|
217
|
+
"targetcompatibility",
|
|
218
|
+
"jvmtarget",
|
|
219
|
+
],
|
|
220
|
+
versionDeclarations: [
|
|
221
|
+
{
|
|
222
|
+
file: "gradle/wrapper/gradle-wrapper.properties",
|
|
223
|
+
signal: "distributionUrl=.../gradle-x.y.z-bin.zip",
|
|
224
|
+
example: "distributionUrl=https\\://services.gradle.org/distributions/gradle-8.10-bin.zip",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
file: "build.gradle.kts",
|
|
228
|
+
signal: "java { toolchain { languageVersion = JavaLanguageVersion.of(N) } }",
|
|
229
|
+
example: "languageVersion = JavaLanguageVersion.of(21)",
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
buildCommands: ["./gradlew build"],
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: "go",
|
|
236
|
+
label: "Go",
|
|
237
|
+
manifestNames: ["go.mod", "go.work"],
|
|
238
|
+
manifestSuffixes: [],
|
|
239
|
+
sourceExtensions: ["go"],
|
|
240
|
+
lockfileNames: ["go.sum", "go.work.sum"],
|
|
241
|
+
generatedSegments: ["vendor"],
|
|
242
|
+
generatedSuffixes: [".pb.go", "_pb.go", ".pb.gw.go", "_grpc.pb.go", "_gen.go", "_string.go"],
|
|
243
|
+
routingTerms: [
|
|
244
|
+
"golang",
|
|
245
|
+
"go module",
|
|
246
|
+
"go modul",
|
|
247
|
+
"go.mod",
|
|
248
|
+
"go version",
|
|
249
|
+
"go toolchain",
|
|
250
|
+
"goroutine",
|
|
251
|
+
"gofmt",
|
|
252
|
+
"gopath",
|
|
253
|
+
"go-projekt",
|
|
254
|
+
],
|
|
255
|
+
contentTokens: ["go", "toolchain", "module"],
|
|
256
|
+
versionDeclarations: [
|
|
257
|
+
{
|
|
258
|
+
file: "go.mod",
|
|
259
|
+
signal: "go <major.minor[.patch]> directive (language/min version)",
|
|
260
|
+
example: "go 1.23.0",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
file: "go.mod",
|
|
264
|
+
signal: "toolchain go<version> directive (pinned toolchain)",
|
|
265
|
+
example: "toolchain go1.23.2",
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
buildCommands: ["go build ./...", "go test ./..."],
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
id: "rust",
|
|
272
|
+
label: "Rust",
|
|
273
|
+
// .cargo/config.toml is intentionally omitted: the .cargo directory is on the always-on deny
|
|
274
|
+
// list (credential store), so registering it would both fail the deny-clean invariant and be
|
|
275
|
+
// moot (the deny gate suppresses it at discovery).
|
|
276
|
+
manifestNames: ["Cargo.toml", "rust-toolchain.toml", "rust-toolchain"],
|
|
277
|
+
manifestSuffixes: [],
|
|
278
|
+
sourceExtensions: ["rs"],
|
|
279
|
+
lockfileNames: ["Cargo.lock"],
|
|
280
|
+
generatedSegments: ["target"],
|
|
281
|
+
generatedSuffixes: [".rs.bk"],
|
|
282
|
+
routingTerms: [
|
|
283
|
+
"rust",
|
|
284
|
+
"cargo",
|
|
285
|
+
"cargo.toml",
|
|
286
|
+
"crate",
|
|
287
|
+
"rustc",
|
|
288
|
+
"rustup",
|
|
289
|
+
"tokio",
|
|
290
|
+
"msrv",
|
|
291
|
+
"rust edition",
|
|
292
|
+
"rust-toolchain",
|
|
293
|
+
"rust version",
|
|
294
|
+
"speichersicher",
|
|
295
|
+
],
|
|
296
|
+
contentTokens: ["rust-version", "edition", "channel"],
|
|
297
|
+
versionDeclarations: [
|
|
298
|
+
{
|
|
299
|
+
file: "Cargo.toml",
|
|
300
|
+
signal: "[package] rust-version (MSRV)",
|
|
301
|
+
example: 'rust-version = "1.80"',
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
file: "Cargo.toml",
|
|
305
|
+
signal: "[package] edition (language edition)",
|
|
306
|
+
example: 'edition = "2021"',
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
file: "rust-toolchain.toml",
|
|
310
|
+
signal: "[toolchain] channel (pinned toolchain)",
|
|
311
|
+
example: 'channel = "1.80.0"',
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
buildCommands: ["cargo build", "cargo test"],
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
id: "python",
|
|
318
|
+
label: "Python",
|
|
319
|
+
manifestNames: [
|
|
320
|
+
"pyproject.toml",
|
|
321
|
+
"setup.py",
|
|
322
|
+
"setup.cfg",
|
|
323
|
+
"requirements.txt",
|
|
324
|
+
"Pipfile",
|
|
325
|
+
".python-version",
|
|
326
|
+
"tox.ini",
|
|
327
|
+
"environment.yml",
|
|
328
|
+
"conda.yaml",
|
|
329
|
+
],
|
|
330
|
+
manifestSuffixes: [],
|
|
331
|
+
sourceExtensions: ["py", "pyi"],
|
|
332
|
+
lockfileNames: ["poetry.lock", "Pipfile.lock", "uv.lock", "pdm.lock", "conda-lock.yml"],
|
|
333
|
+
generatedSegments: ["__pycache__", ".venv", "venv", ".tox", ".mypy_cache", ".pytest_cache"],
|
|
334
|
+
generatedSuffixes: [".pyc", "_pb2.py", "_pb2_grpc.py", "_pb2.pyi"],
|
|
335
|
+
routingTerms: [
|
|
336
|
+
"python",
|
|
337
|
+
"python version",
|
|
338
|
+
"pip",
|
|
339
|
+
"pytest",
|
|
340
|
+
"poetry",
|
|
341
|
+
"pyenv",
|
|
342
|
+
"virtualenv",
|
|
343
|
+
"venv",
|
|
344
|
+
"conda",
|
|
345
|
+
"pyproject",
|
|
346
|
+
"python-laufzeit",
|
|
347
|
+
],
|
|
348
|
+
contentTokens: ["requires-python", "python_requires", "python"],
|
|
349
|
+
versionDeclarations: [
|
|
350
|
+
{
|
|
351
|
+
file: "pyproject.toml",
|
|
352
|
+
signal: "[project] requires-python",
|
|
353
|
+
example: 'requires-python = ">=3.11"',
|
|
354
|
+
},
|
|
355
|
+
{ file: ".python-version", signal: "bare version line (pyenv / uv)", example: "3.12.4" },
|
|
356
|
+
{
|
|
357
|
+
file: "setup.cfg",
|
|
358
|
+
signal: "[options] python_requires",
|
|
359
|
+
example: "python_requires = >=3.9",
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
buildCommands: ["python -m build", "pytest"],
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
id: "javascript",
|
|
366
|
+
label: "JavaScript",
|
|
367
|
+
// Includes the established build/test tool configs (vite/vitest/jest/playwright/cypress/next/
|
|
368
|
+
// eslint/postcss/babel) so they remain canonical metadata, preserving the prior JS/TS behaviour.
|
|
369
|
+
manifestNames: [
|
|
370
|
+
"package.json",
|
|
371
|
+
".nvmrc",
|
|
372
|
+
".node-version",
|
|
373
|
+
"jsconfig.json",
|
|
374
|
+
".babelrc",
|
|
375
|
+
"babel.config.js",
|
|
376
|
+
"vite.config.ts",
|
|
377
|
+
"vite.config.mts",
|
|
378
|
+
"vite.config.js",
|
|
379
|
+
"vite.config.mjs",
|
|
380
|
+
"vitest.config.ts",
|
|
381
|
+
"vitest.config.mts",
|
|
382
|
+
"vitest.config.js",
|
|
383
|
+
"vitest.config.mjs",
|
|
384
|
+
"vitest.setup.ts",
|
|
385
|
+
"jest.config.ts",
|
|
386
|
+
"jest.config.js",
|
|
387
|
+
"jest.config.mjs",
|
|
388
|
+
"playwright.config.ts",
|
|
389
|
+
"playwright.config.js",
|
|
390
|
+
"cypress.config.ts",
|
|
391
|
+
"cypress.config.js",
|
|
392
|
+
"next.config.ts",
|
|
393
|
+
"next.config.js",
|
|
394
|
+
"next.config.mjs",
|
|
395
|
+
"eslint.config.ts",
|
|
396
|
+
"eslint.config.js",
|
|
397
|
+
"eslint.config.mjs",
|
|
398
|
+
"postcss.config.js",
|
|
399
|
+
"postcss.config.mjs",
|
|
400
|
+
],
|
|
401
|
+
manifestSuffixes: [],
|
|
402
|
+
sourceExtensions: ["js", "jsx", "mjs", "cjs"],
|
|
403
|
+
lockfileNames: [
|
|
404
|
+
"package-lock.json",
|
|
405
|
+
"npm-shrinkwrap.json",
|
|
406
|
+
"yarn.lock",
|
|
407
|
+
"pnpm-lock.yaml",
|
|
408
|
+
"bun.lockb",
|
|
409
|
+
"bun.lock",
|
|
410
|
+
],
|
|
411
|
+
generatedSegments: [".next", ".nuxt", ".parcel-cache"],
|
|
412
|
+
generatedSuffixes: [".min.js"],
|
|
413
|
+
// Routing is also handled by the planner's built-in JS/TS patterns. The registry repeats the
|
|
414
|
+
// high-precision terms so matcher-side version-declaration boosts can stay registry-derived.
|
|
415
|
+
routingTerms: ["javascript", "node", "node.js", "package.json", "npm", "pnpm", "yarn"],
|
|
416
|
+
contentTokens: ["engines"],
|
|
417
|
+
versionDeclarations: [
|
|
418
|
+
{
|
|
419
|
+
file: "package.json",
|
|
420
|
+
signal: "engines.node (runtime range)",
|
|
421
|
+
example: '"engines": { "node": ">=20" }',
|
|
422
|
+
},
|
|
423
|
+
{ file: ".nvmrc", signal: "bare Node version line (nvm)", example: "20.11.1" },
|
|
424
|
+
],
|
|
425
|
+
buildCommands: ["npm run build", "npm test"],
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
id: "typescript",
|
|
429
|
+
label: "TypeScript",
|
|
430
|
+
manifestNames: ["tsconfig.json", "tsconfig.base.json", "tsconfig.build.json"],
|
|
431
|
+
manifestSuffixes: [],
|
|
432
|
+
sourceExtensions: ["ts", "tsx", "mts", "cts"],
|
|
433
|
+
lockfileNames: [],
|
|
434
|
+
generatedSegments: [],
|
|
435
|
+
generatedSuffixes: [".tsbuildinfo", ".js.map", ".d.ts.map"],
|
|
436
|
+
routingTerms: ["typescript", "tsconfig", "tsc", "compileroptions", "type script"],
|
|
437
|
+
contentTokens: ["typescript", "compileroptions", "target"],
|
|
438
|
+
versionDeclarations: [
|
|
439
|
+
{
|
|
440
|
+
file: "package.json",
|
|
441
|
+
signal: "devDependencies.typescript (compiler version)",
|
|
442
|
+
example: '"typescript": "^5.5.4"',
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
file: "tsconfig.json",
|
|
446
|
+
signal: "compilerOptions.target (emitted ECMAScript version)",
|
|
447
|
+
example: '"target": "ES2022"',
|
|
448
|
+
},
|
|
449
|
+
],
|
|
450
|
+
buildCommands: ["tsc -b", "npm test"],
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
id: "node",
|
|
454
|
+
label: "Node.js",
|
|
455
|
+
manifestNames: [
|
|
456
|
+
"package.json",
|
|
457
|
+
".nvmrc",
|
|
458
|
+
".node-version",
|
|
459
|
+
".yarnrc.yml",
|
|
460
|
+
"pnpm-workspace.yaml",
|
|
461
|
+
],
|
|
462
|
+
manifestSuffixes: [],
|
|
463
|
+
sourceExtensions: [],
|
|
464
|
+
lockfileNames: [
|
|
465
|
+
"package-lock.json",
|
|
466
|
+
"npm-shrinkwrap.json",
|
|
467
|
+
"yarn.lock",
|
|
468
|
+
"pnpm-lock.yaml",
|
|
469
|
+
"bun.lockb",
|
|
470
|
+
],
|
|
471
|
+
generatedSegments: [".pnpm-store"],
|
|
472
|
+
generatedSuffixes: [],
|
|
473
|
+
routingTerms: [
|
|
474
|
+
"node",
|
|
475
|
+
"node.js",
|
|
476
|
+
"npm",
|
|
477
|
+
"pnpm",
|
|
478
|
+
"yarn",
|
|
479
|
+
"package.json",
|
|
480
|
+
"package manager",
|
|
481
|
+
"paket manager",
|
|
482
|
+
"engines.node",
|
|
483
|
+
],
|
|
484
|
+
contentTokens: ["engines", "packagemanager", "volta"],
|
|
485
|
+
versionDeclarations: [
|
|
486
|
+
{
|
|
487
|
+
file: "package.json",
|
|
488
|
+
signal: "engines.node (supported runtime range)",
|
|
489
|
+
example: '"engines": { "node": ">=20.0.0" }',
|
|
490
|
+
},
|
|
491
|
+
{ file: ".nvmrc", signal: "bare Node version (nvm)", example: "v20.11.1" },
|
|
492
|
+
],
|
|
493
|
+
buildCommands: ["npm ci", "npm run build"],
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
id: "deno",
|
|
497
|
+
label: "Deno",
|
|
498
|
+
manifestNames: ["deno.json", "deno.jsonc", "import_map.json"],
|
|
499
|
+
manifestSuffixes: [],
|
|
500
|
+
sourceExtensions: [],
|
|
501
|
+
lockfileNames: ["deno.lock"],
|
|
502
|
+
generatedSegments: [".deno"],
|
|
503
|
+
generatedSuffixes: [],
|
|
504
|
+
routingTerms: ["deno", "deno.json", "jsr", "deno deploy", "deno task", "deno runtime"],
|
|
505
|
+
contentTokens: ["imports", "compileroptions"],
|
|
506
|
+
versionDeclarations: [
|
|
507
|
+
{
|
|
508
|
+
file: "deno.json",
|
|
509
|
+
signal: "imports / compilerOptions.lib; runtime pinned via tooling/CI",
|
|
510
|
+
example: '"imports": { "@std/": "jsr:@std/" }',
|
|
511
|
+
},
|
|
512
|
+
],
|
|
513
|
+
buildCommands: ["deno task build", "deno test"],
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
id: "bun",
|
|
517
|
+
label: "Bun",
|
|
518
|
+
manifestNames: ["bunfig.toml", ".bun-version"],
|
|
519
|
+
manifestSuffixes: [],
|
|
520
|
+
sourceExtensions: [],
|
|
521
|
+
lockfileNames: ["bun.lockb", "bun.lock"],
|
|
522
|
+
generatedSegments: [".bun"],
|
|
523
|
+
generatedSuffixes: [],
|
|
524
|
+
routingTerms: ["bun", "bun.lockb", "bunfig", "bun runtime", "elysia"],
|
|
525
|
+
contentTokens: ["bun", "packagemanager"],
|
|
526
|
+
versionDeclarations: [
|
|
527
|
+
{
|
|
528
|
+
file: "package.json",
|
|
529
|
+
signal: "engines.bun / packageManager (bun pin)",
|
|
530
|
+
example: '"packageManager": "bun@1.1.21"',
|
|
531
|
+
},
|
|
532
|
+
{ file: ".bun-version", signal: "bare Bun version line", example: "1.1.21" },
|
|
533
|
+
],
|
|
534
|
+
buildCommands: ["bun install", "bun test"],
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
id: "dotnet",
|
|
538
|
+
label: ".NET",
|
|
539
|
+
manifestNames: [
|
|
540
|
+
"global.json",
|
|
541
|
+
"Directory.Build.props",
|
|
542
|
+
"Directory.Packages.props",
|
|
543
|
+
"paket.dependencies",
|
|
544
|
+
],
|
|
545
|
+
manifestSuffixes: [".csproj", ".fsproj", ".vbproj", ".sln"],
|
|
546
|
+
sourceExtensions: ["cs", "fs", "vb"],
|
|
547
|
+
lockfileNames: ["packages.lock.json", "paket.lock"],
|
|
548
|
+
generatedSegments: ["bin", "obj", "testresults"],
|
|
549
|
+
generatedSuffixes: [".g.cs", ".designer.cs", ".assemblyinfo.cs", ".nupkg"],
|
|
550
|
+
routingTerms: [
|
|
551
|
+
"c#",
|
|
552
|
+
"csharp",
|
|
553
|
+
"dotnet",
|
|
554
|
+
".net",
|
|
555
|
+
"nuget",
|
|
556
|
+
"msbuild",
|
|
557
|
+
"csproj",
|
|
558
|
+
"asp.net",
|
|
559
|
+
"f#",
|
|
560
|
+
"blazor",
|
|
561
|
+
"global.json",
|
|
562
|
+
"target framework",
|
|
563
|
+
"dotnet version",
|
|
564
|
+
],
|
|
565
|
+
contentTokens: ["targetframework", "langversion", "sdk"],
|
|
566
|
+
versionDeclarations: [
|
|
567
|
+
{
|
|
568
|
+
file: "global.json",
|
|
569
|
+
signal: "sdk.version (pinned .NET SDK)",
|
|
570
|
+
example: '"sdk": { "version": "8.0.401" }',
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
file: "*.csproj",
|
|
574
|
+
signal: "<TargetFramework> / <TargetFrameworks> (TFM)",
|
|
575
|
+
example: "<TargetFramework>net8.0</TargetFramework>",
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
file: "*.csproj",
|
|
579
|
+
signal: "<LangVersion> (C# language version)",
|
|
580
|
+
example: "<LangVersion>12.0</LangVersion>",
|
|
581
|
+
},
|
|
582
|
+
],
|
|
583
|
+
buildCommands: ["dotnet build", "dotnet test"],
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
id: "cpp",
|
|
587
|
+
label: "C/C++",
|
|
588
|
+
manifestNames: [
|
|
589
|
+
"CMakeLists.txt",
|
|
590
|
+
"Makefile",
|
|
591
|
+
"GNUmakefile",
|
|
592
|
+
"conanfile.txt",
|
|
593
|
+
"conanfile.py",
|
|
594
|
+
"vcpkg.json",
|
|
595
|
+
"meson.build",
|
|
596
|
+
"compile_commands.json",
|
|
597
|
+
],
|
|
598
|
+
manifestSuffixes: [".vcxproj"],
|
|
599
|
+
sourceExtensions: ["c", "h", "cc", "cpp", "cxx", "hpp", "hh", "hxx", "ipp", "inl"],
|
|
600
|
+
lockfileNames: ["conan.lock"],
|
|
601
|
+
generatedSegments: ["cmakefiles"],
|
|
602
|
+
generatedSuffixes: [".o", ".obj", ".a", ".pb.cc", ".pb.h", "moc_", "ui_"],
|
|
603
|
+
routingTerms: [
|
|
604
|
+
"c++",
|
|
605
|
+
"cpp",
|
|
606
|
+
"cmake",
|
|
607
|
+
"conan",
|
|
608
|
+
"vcpkg",
|
|
609
|
+
"meson",
|
|
610
|
+
"gcc",
|
|
611
|
+
"clang",
|
|
612
|
+
"c++ standard",
|
|
613
|
+
"header datei",
|
|
614
|
+
],
|
|
615
|
+
contentTokens: ["cmake_cxx_standard", "cmake_minimum_required", "cpp_std", "c_std"],
|
|
616
|
+
versionDeclarations: [
|
|
617
|
+
{
|
|
618
|
+
file: "CMakeLists.txt",
|
|
619
|
+
signal: "set(CMAKE_CXX_STANDARD N) / target_compile_features(cxx_std_N)",
|
|
620
|
+
example: "set(CMAKE_CXX_STANDARD 20)",
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
file: "CMakeLists.txt",
|
|
624
|
+
signal: "cmake_minimum_required(VERSION x.y)",
|
|
625
|
+
example: "cmake_minimum_required(VERSION 3.25)",
|
|
626
|
+
},
|
|
627
|
+
],
|
|
628
|
+
buildCommands: ["cmake -B build && cmake --build build", "make"],
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
id: "swift",
|
|
632
|
+
label: "Swift",
|
|
633
|
+
manifestNames: ["Package.swift", "Podfile", "Cartfile", ".swift-version"],
|
|
634
|
+
manifestSuffixes: [],
|
|
635
|
+
sourceExtensions: ["swift"],
|
|
636
|
+
lockfileNames: ["Package.resolved", "Podfile.lock", "Cartfile.resolved"],
|
|
637
|
+
generatedSegments: [".build", "deriveddata", "pods", "carthage"],
|
|
638
|
+
generatedSuffixes: [".swiftmodule"],
|
|
639
|
+
routingTerms: [
|
|
640
|
+
"swift",
|
|
641
|
+
"swiftpm",
|
|
642
|
+
"xcode",
|
|
643
|
+
"cocoapods",
|
|
644
|
+
"carthage",
|
|
645
|
+
"swift-tools-version",
|
|
646
|
+
"swift version",
|
|
647
|
+
],
|
|
648
|
+
contentTokens: ["swift-tools-version", "swiftlanguageversions", "swiftlanguagemode"],
|
|
649
|
+
versionDeclarations: [
|
|
650
|
+
{
|
|
651
|
+
file: "Package.swift",
|
|
652
|
+
signal: "// swift-tools-version:x.y header",
|
|
653
|
+
example: "// swift-tools-version:6.0",
|
|
654
|
+
},
|
|
655
|
+
{ file: ".swift-version", signal: "bare Swift version (swiftenv)", example: "5.10" },
|
|
656
|
+
],
|
|
657
|
+
buildCommands: ["swift build", "swift test"],
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
id: "ruby",
|
|
661
|
+
label: "Ruby",
|
|
662
|
+
manifestNames: ["Gemfile", ".ruby-version", ".tool-versions", "Rakefile"],
|
|
663
|
+
manifestSuffixes: [".gemspec"],
|
|
664
|
+
sourceExtensions: ["rb", "rake", "ru"],
|
|
665
|
+
lockfileNames: ["Gemfile.lock"],
|
|
666
|
+
generatedSegments: ["vendor", ".bundle"],
|
|
667
|
+
generatedSuffixes: [".gem"],
|
|
668
|
+
routingTerms: [
|
|
669
|
+
"ruby",
|
|
670
|
+
"ruby version",
|
|
671
|
+
"gem",
|
|
672
|
+
"bundler",
|
|
673
|
+
"rails",
|
|
674
|
+
"rake",
|
|
675
|
+
"rspec",
|
|
676
|
+
"rbenv",
|
|
677
|
+
"gemfile",
|
|
678
|
+
"edelstein",
|
|
679
|
+
],
|
|
680
|
+
contentTokens: ["required_ruby_version", "ruby"],
|
|
681
|
+
versionDeclarations: [
|
|
682
|
+
{ file: ".ruby-version", signal: "bare Ruby version (rbenv/rvm/chruby)", example: "3.3.4" },
|
|
683
|
+
{ file: "Gemfile", signal: 'ruby "x.y.z" directive', example: 'ruby "3.3.4"' },
|
|
684
|
+
{
|
|
685
|
+
file: "*.gemspec",
|
|
686
|
+
signal: "spec.required_ruby_version",
|
|
687
|
+
example: 'spec.required_ruby_version = ">= 3.1"',
|
|
688
|
+
},
|
|
689
|
+
],
|
|
690
|
+
buildCommands: ["bundle install", "bundle exec rake"],
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
id: "php",
|
|
694
|
+
label: "PHP",
|
|
695
|
+
manifestNames: ["composer.json", ".php-version", "phpunit.xml", "phpunit.xml.dist"],
|
|
696
|
+
manifestSuffixes: [],
|
|
697
|
+
sourceExtensions: ["php"],
|
|
698
|
+
lockfileNames: ["composer.lock"],
|
|
699
|
+
generatedSegments: ["vendor"],
|
|
700
|
+
generatedSuffixes: [],
|
|
701
|
+
routingTerms: [
|
|
702
|
+
"php",
|
|
703
|
+
"composer",
|
|
704
|
+
"laravel",
|
|
705
|
+
"symfony",
|
|
706
|
+
"phpunit",
|
|
707
|
+
"psr-4",
|
|
708
|
+
"packagist",
|
|
709
|
+
"php version",
|
|
710
|
+
],
|
|
711
|
+
contentTokens: ["require", "platform", "php"],
|
|
712
|
+
versionDeclarations: [
|
|
713
|
+
{
|
|
714
|
+
file: "composer.json",
|
|
715
|
+
signal: "require.php (PHP version constraint)",
|
|
716
|
+
example: '"require": { "php": ">=8.2" }',
|
|
717
|
+
},
|
|
718
|
+
{ file: ".php-version", signal: "bare PHP version (phpenv)", example: "8.2.10" },
|
|
719
|
+
],
|
|
720
|
+
buildCommands: ["composer install", "vendor/bin/phpunit"],
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
id: "terraform",
|
|
724
|
+
label: "Terraform",
|
|
725
|
+
// NOTE: *.tfvars / *.tfvars.json / *.tfstate are DENIED secret files (see ignore.ts) and are
|
|
726
|
+
// deliberately NOT registered as manifests — only declarative *.tf / *.tf.json configuration.
|
|
727
|
+
manifestNames: [
|
|
728
|
+
"versions.tf",
|
|
729
|
+
"main.tf",
|
|
730
|
+
"providers.tf",
|
|
731
|
+
".terraform-version",
|
|
732
|
+
".terraform.lock.hcl",
|
|
733
|
+
],
|
|
734
|
+
manifestSuffixes: [".tf", ".tf.json"],
|
|
735
|
+
sourceExtensions: ["hcl"],
|
|
736
|
+
lockfileNames: [".terraform.lock.hcl"],
|
|
737
|
+
generatedSegments: [],
|
|
738
|
+
generatedSuffixes: [".tfplan"],
|
|
739
|
+
routingTerms: [
|
|
740
|
+
"terraform",
|
|
741
|
+
"terraform version",
|
|
742
|
+
"hcl",
|
|
743
|
+
"opentofu",
|
|
744
|
+
"tofu",
|
|
745
|
+
"infrastructure as code",
|
|
746
|
+
"iac",
|
|
747
|
+
"infrastruktur als code",
|
|
748
|
+
],
|
|
749
|
+
contentTokens: ["required_version", "required_providers"],
|
|
750
|
+
versionDeclarations: [
|
|
751
|
+
{
|
|
752
|
+
file: "*.tf",
|
|
753
|
+
signal: "terraform { required_version = ... }",
|
|
754
|
+
example: 'required_version = ">= 1.9.0"',
|
|
755
|
+
},
|
|
756
|
+
{ file: ".terraform-version", signal: "bare Terraform version (tfenv)", example: "1.9.5" },
|
|
757
|
+
],
|
|
758
|
+
buildCommands: ["terraform init", "terraform plan"],
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
id: "docker",
|
|
762
|
+
label: "Docker",
|
|
763
|
+
manifestNames: [
|
|
764
|
+
"Dockerfile",
|
|
765
|
+
"docker-compose.yml",
|
|
766
|
+
"docker-compose.yaml",
|
|
767
|
+
"compose.yml",
|
|
768
|
+
"compose.yaml",
|
|
769
|
+
],
|
|
770
|
+
manifestSuffixes: [".dockerfile"],
|
|
771
|
+
sourceExtensions: [],
|
|
772
|
+
lockfileNames: [],
|
|
773
|
+
generatedSegments: [],
|
|
774
|
+
generatedSuffixes: [],
|
|
775
|
+
routingTerms: [
|
|
776
|
+
"docker",
|
|
777
|
+
"dockerfile",
|
|
778
|
+
"docker compose",
|
|
779
|
+
"buildkit",
|
|
780
|
+
"containerd",
|
|
781
|
+
"oci image",
|
|
782
|
+
"base image",
|
|
783
|
+
"docker image",
|
|
784
|
+
"behälter",
|
|
785
|
+
"abbild",
|
|
786
|
+
],
|
|
787
|
+
contentTokens: ["from", "syntax="],
|
|
788
|
+
versionDeclarations: [
|
|
789
|
+
{
|
|
790
|
+
file: "Dockerfile",
|
|
791
|
+
signal: "FROM image:tag (base image / runtime version)",
|
|
792
|
+
example: "FROM eclipse-temurin:21-jre",
|
|
793
|
+
},
|
|
794
|
+
],
|
|
795
|
+
buildCommands: ["docker build .", "docker compose up -d"],
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
id: "kubernetes",
|
|
799
|
+
label: "Kubernetes",
|
|
800
|
+
// Bare *.yaml/*.yml is intentionally NOT registered (it would flood canonical-metadata); only
|
|
801
|
+
// the named Kubernetes/Helm/Kustomize descriptor files are treated as canonical.
|
|
802
|
+
manifestNames: [
|
|
803
|
+
"kustomization.yaml",
|
|
804
|
+
"kustomization.yml",
|
|
805
|
+
"Chart.yaml",
|
|
806
|
+
"values.yaml",
|
|
807
|
+
"skaffold.yaml",
|
|
808
|
+
"Chart.lock",
|
|
809
|
+
],
|
|
810
|
+
manifestSuffixes: [],
|
|
811
|
+
sourceExtensions: [],
|
|
812
|
+
lockfileNames: ["Chart.lock"],
|
|
813
|
+
generatedSegments: ["charts", "rendered"],
|
|
814
|
+
generatedSuffixes: [],
|
|
815
|
+
routingTerms: [
|
|
816
|
+
"kubernetes",
|
|
817
|
+
"k8s",
|
|
818
|
+
"kubectl",
|
|
819
|
+
"helm",
|
|
820
|
+
"kustomize",
|
|
821
|
+
"kubernetes manifest",
|
|
822
|
+
"container orchestrierung",
|
|
823
|
+
],
|
|
824
|
+
contentTokens: ["apiversion", "appversion", "kubeversion"],
|
|
825
|
+
versionDeclarations: [
|
|
826
|
+
{
|
|
827
|
+
file: "Chart.yaml",
|
|
828
|
+
signal: "apiVersion / appVersion / kubeVersion (Helm chart + target K8s)",
|
|
829
|
+
example: 'kubeVersion: ">=1.27.0"',
|
|
830
|
+
},
|
|
831
|
+
],
|
|
832
|
+
buildCommands: ["kubectl apply -k .", "helm install"],
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
id: "sql",
|
|
836
|
+
label: "SQL",
|
|
837
|
+
manifestNames: [
|
|
838
|
+
"schema.sql",
|
|
839
|
+
"flyway.conf",
|
|
840
|
+
"liquibase.properties",
|
|
841
|
+
"dbt_project.yml",
|
|
842
|
+
"knexfile.js",
|
|
843
|
+
"alembic.ini",
|
|
844
|
+
],
|
|
845
|
+
manifestSuffixes: [],
|
|
846
|
+
sourceExtensions: ["sql", "ddl", "dml"],
|
|
847
|
+
lockfileNames: [],
|
|
848
|
+
generatedSegments: ["dbt_packages", "compiled"],
|
|
849
|
+
generatedSuffixes: [".dump"],
|
|
850
|
+
routingTerms: [
|
|
851
|
+
"flyway",
|
|
852
|
+
"liquibase",
|
|
853
|
+
"dbt",
|
|
854
|
+
"alembic",
|
|
855
|
+
"sql migration",
|
|
856
|
+
"datenbankschema",
|
|
857
|
+
"ddl",
|
|
858
|
+
],
|
|
859
|
+
contentTokens: ["require-dbt-version", "revision"],
|
|
860
|
+
versionDeclarations: [
|
|
861
|
+
{
|
|
862
|
+
file: "dbt_project.yml",
|
|
863
|
+
signal: "version / require-dbt-version",
|
|
864
|
+
example: 'require-dbt-version: ">=1.7.0"',
|
|
865
|
+
},
|
|
866
|
+
],
|
|
867
|
+
buildCommands: ["flyway migrate", "dbt build"],
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
id: "protobuf",
|
|
871
|
+
label: "Protocol Buffers",
|
|
872
|
+
manifestNames: ["buf.yaml", "buf.gen.yaml", "buf.work.yaml"],
|
|
873
|
+
manifestSuffixes: [".proto"],
|
|
874
|
+
sourceExtensions: ["proto"],
|
|
875
|
+
lockfileNames: ["buf.lock"],
|
|
876
|
+
generatedSegments: [],
|
|
877
|
+
generatedSuffixes: [
|
|
878
|
+
".pb.go",
|
|
879
|
+
"_pb2.py",
|
|
880
|
+
"_pb2_grpc.py",
|
|
881
|
+
".pb.cc",
|
|
882
|
+
".pb.h",
|
|
883
|
+
"_pb.js",
|
|
884
|
+
"_pb.d.ts",
|
|
885
|
+
".pb.swift",
|
|
886
|
+
"_grpc.pb.go",
|
|
887
|
+
],
|
|
888
|
+
routingTerms: [
|
|
889
|
+
"protobuf",
|
|
890
|
+
"protocol buffers",
|
|
891
|
+
".proto",
|
|
892
|
+
"proto3",
|
|
893
|
+
"proto2",
|
|
894
|
+
"grpc",
|
|
895
|
+
"protoc",
|
|
896
|
+
"buf",
|
|
897
|
+
],
|
|
898
|
+
contentTokens: ["syntax", "version"],
|
|
899
|
+
versionDeclarations: [
|
|
900
|
+
{ file: "*.proto", signal: 'syntax = "proto2|proto3"', example: 'syntax = "proto3";' },
|
|
901
|
+
{ file: "buf.yaml", signal: "version (buf config schema)", example: "version: v2" },
|
|
902
|
+
],
|
|
903
|
+
buildCommands: ["buf generate", "buf build"],
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
id: "openapi",
|
|
907
|
+
label: "OpenAPI",
|
|
908
|
+
manifestNames: [
|
|
909
|
+
"openapi.yaml",
|
|
910
|
+
"openapi.yml",
|
|
911
|
+
"openapi.json",
|
|
912
|
+
"swagger.yaml",
|
|
913
|
+
"swagger.json",
|
|
914
|
+
"redocly.yaml",
|
|
915
|
+
],
|
|
916
|
+
manifestSuffixes: [],
|
|
917
|
+
sourceExtensions: [],
|
|
918
|
+
lockfileNames: [],
|
|
919
|
+
generatedSegments: ["openapi-generated"],
|
|
920
|
+
generatedSuffixes: [".gen.ts"],
|
|
921
|
+
routingTerms: [
|
|
922
|
+
"openapi",
|
|
923
|
+
"swagger",
|
|
924
|
+
"redocly",
|
|
925
|
+
"openapi-generator",
|
|
926
|
+
"openapi spezifikation",
|
|
927
|
+
"rest schnittstelle",
|
|
928
|
+
],
|
|
929
|
+
contentTokens: ["openapi", "swagger", "info"],
|
|
930
|
+
versionDeclarations: [
|
|
931
|
+
{ file: "openapi.yaml", signal: "openapi: x.y.z (spec version)", example: "openapi: 3.1.0" },
|
|
932
|
+
{
|
|
933
|
+
file: "swagger.yaml",
|
|
934
|
+
signal: 'swagger: "2.0" (legacy spec version)',
|
|
935
|
+
example: 'swagger: "2.0"',
|
|
936
|
+
},
|
|
937
|
+
],
|
|
938
|
+
buildCommands: ["redocly lint", "openapi-generator generate"],
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
id: "graphql",
|
|
942
|
+
label: "GraphQL",
|
|
943
|
+
manifestNames: [
|
|
944
|
+
"schema.graphql",
|
|
945
|
+
"graphql.config.yml",
|
|
946
|
+
".graphqlrc",
|
|
947
|
+
".graphqlrc.yml",
|
|
948
|
+
"codegen.yml",
|
|
949
|
+
"codegen.ts",
|
|
950
|
+
"apollo.config.js",
|
|
951
|
+
],
|
|
952
|
+
manifestSuffixes: [".graphql", ".gql"],
|
|
953
|
+
sourceExtensions: ["graphql", "gql"],
|
|
954
|
+
lockfileNames: [],
|
|
955
|
+
generatedSegments: ["__generated__"],
|
|
956
|
+
generatedSuffixes: [".generated.ts"],
|
|
957
|
+
routingTerms: [
|
|
958
|
+
"graphql",
|
|
959
|
+
"gql",
|
|
960
|
+
"graphql-codegen",
|
|
961
|
+
"apollo",
|
|
962
|
+
"sdl",
|
|
963
|
+
"graphql schema",
|
|
964
|
+
"abfragesprache",
|
|
965
|
+
],
|
|
966
|
+
contentTokens: ["schema", "generates"],
|
|
967
|
+
versionDeclarations: [
|
|
968
|
+
{
|
|
969
|
+
file: "codegen.ts",
|
|
970
|
+
signal: "generates[].plugins + schema source",
|
|
971
|
+
example: "schema: ./schema.graphql",
|
|
972
|
+
},
|
|
973
|
+
],
|
|
974
|
+
buildCommands: ["graphql-codegen", "apollo schema:check"],
|
|
975
|
+
},
|
|
976
|
+
]);
|
|
977
|
+
// ─── Derived lookup tables (built once; frozen; deterministic) ───────────────────
|
|
978
|
+
function lower(value) {
|
|
979
|
+
return value.toLowerCase();
|
|
980
|
+
}
|
|
981
|
+
function freezeSet(values) {
|
|
982
|
+
return new Set(values);
|
|
983
|
+
}
|
|
984
|
+
function uniqueStrings(values) {
|
|
985
|
+
return [...new Set(values)];
|
|
986
|
+
}
|
|
987
|
+
const CANONICAL_MANIFEST_NAMES_LC = freezeSet(ECOSYSTEMS.flatMap((eco) => eco.manifestNames.map(lower)));
|
|
988
|
+
const CANONICAL_MANIFEST_SUFFIXES = Object.freeze([
|
|
989
|
+
...new Set(ECOSYSTEMS.flatMap((eco) => eco.manifestSuffixes.map(lower))),
|
|
990
|
+
]);
|
|
991
|
+
// Real-case manifest basenames, de-duplicated and sorted, for the case-sensitive existence-check
|
|
992
|
+
// injection path in the grounded orchestrator. Path-shaped entries (e.g. ".mvn/wrapper/...") are
|
|
993
|
+
// kept verbatim; the orchestrator joins them to a metadata root.
|
|
994
|
+
export const CANONICAL_MANIFEST_BASENAMES = Object.freeze([...new Set(ECOSYSTEMS.flatMap((eco) => eco.manifestNames))].sort());
|
|
995
|
+
const ECOSYSTEM_SOURCE_EXTENSIONS = freezeSet(ECOSYSTEMS.flatMap((eco) => eco.sourceExtensions.map(lower)));
|
|
996
|
+
const LOCKFILE_NAMES_LC = freezeSet(ECOSYSTEMS.flatMap((eco) => eco.lockfileNames.map(lower)));
|
|
997
|
+
const GENERATED_SEGMENTS = freezeSet(ECOSYSTEMS.flatMap((eco) => eco.generatedSegments.map(lower)));
|
|
998
|
+
const GENERATED_SUFFIXES = Object.freeze([
|
|
999
|
+
...new Set(ECOSYSTEMS.flatMap((eco) => eco.generatedSuffixes.map(lower))),
|
|
1000
|
+
]);
|
|
1001
|
+
// Ecosystem id per exact manifest name / suffix, for explainable ranking diagnostics.
|
|
1002
|
+
const MANIFEST_NAME_TO_ECOSYSTEM = new Map(ECOSYSTEMS.flatMap((eco) => eco.manifestNames.map((name) => [lower(name), eco.id])));
|
|
1003
|
+
const MANIFEST_SUFFIX_TO_ECOSYSTEM = Object.freeze(ECOSYSTEMS.flatMap((eco) => eco.manifestSuffixes.map((suffix) => [lower(suffix), eco.id])));
|
|
1004
|
+
// ─── Path helpers (pure, normalization mirrors repoSearchPolicy) ─────────────────
|
|
1005
|
+
function normalizedPath(scopePath) {
|
|
1006
|
+
return scopePath.split("\\").join("/").toLowerCase();
|
|
1007
|
+
}
|
|
1008
|
+
function basenameLc(scopePath) {
|
|
1009
|
+
const path = normalizedPath(scopePath);
|
|
1010
|
+
const slash = path.lastIndexOf("/");
|
|
1011
|
+
return slash >= 0 ? path.slice(slash + 1) : path;
|
|
1012
|
+
}
|
|
1013
|
+
function pathSegments(scopePath) {
|
|
1014
|
+
return normalizedPath(scopePath)
|
|
1015
|
+
.split("/")
|
|
1016
|
+
.filter((segment) => segment.length > 0);
|
|
1017
|
+
}
|
|
1018
|
+
// ─── Classification predicates ───────────────────────────────────────────────────
|
|
1019
|
+
// True when the path is a canonical project/build/dependency manifest for any registered
|
|
1020
|
+
// ecosystem. Case-insensitive, anchored on the basename (exact name or registered suffix).
|
|
1021
|
+
export function isCanonicalMetadataFile(scopePath) {
|
|
1022
|
+
const name = basenameLc(scopePath);
|
|
1023
|
+
if (CANONICAL_MANIFEST_NAMES_LC.has(name)) {
|
|
1024
|
+
return true;
|
|
1025
|
+
}
|
|
1026
|
+
return CANONICAL_MANIFEST_SUFFIXES.some((suffix) => name.endsWith(suffix));
|
|
1027
|
+
}
|
|
1028
|
+
// The ecosystem that classifies a path as canonical metadata, or undefined. For diagnostics only.
|
|
1029
|
+
export function canonicalMetadataEcosystem(scopePath) {
|
|
1030
|
+
const name = basenameLc(scopePath);
|
|
1031
|
+
const exact = MANIFEST_NAME_TO_ECOSYSTEM.get(name);
|
|
1032
|
+
if (exact !== undefined) {
|
|
1033
|
+
return exact;
|
|
1034
|
+
}
|
|
1035
|
+
for (const [suffix, id] of MANIFEST_SUFFIX_TO_ECOSYSTEM) {
|
|
1036
|
+
if (name.endsWith(suffix)) {
|
|
1037
|
+
return id;
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
return undefined;
|
|
1041
|
+
}
|
|
1042
|
+
// True for a source-code file extension owned by a registered ecosystem.
|
|
1043
|
+
export function isEcosystemSourceFile(scopePath) {
|
|
1044
|
+
const name = basenameLc(scopePath);
|
|
1045
|
+
const dot = name.lastIndexOf(".");
|
|
1046
|
+
if (dot <= 0) {
|
|
1047
|
+
return false;
|
|
1048
|
+
}
|
|
1049
|
+
return ECOSYSTEM_SOURCE_EXTENSIONS.has(name.slice(dot + 1));
|
|
1050
|
+
}
|
|
1051
|
+
// True for a generated/vendored artifact, detected by WHOLE path segment or ANCHORED basename
|
|
1052
|
+
// suffix. Never a bare substring, so `src/builder.ts` / `generator.go` are not affected.
|
|
1053
|
+
export function isGeneratedArtifactPath(scopePath) {
|
|
1054
|
+
if (pathSegments(scopePath).some((segment) => GENERATED_SEGMENTS.has(segment))) {
|
|
1055
|
+
return true;
|
|
1056
|
+
}
|
|
1057
|
+
const name = basenameLc(scopePath);
|
|
1058
|
+
return GENERATED_SUFFIXES.some((suffix) => suffix.endsWith("_") ? name.startsWith(suffix) : name.endsWith(suffix));
|
|
1059
|
+
}
|
|
1060
|
+
// True for a dependency lockfile of any registered ecosystem (case-insensitive basename).
|
|
1061
|
+
export function isEcosystemLockfile(scopePath) {
|
|
1062
|
+
return LOCKFILE_NAMES_LC.has(basenameLc(scopePath));
|
|
1063
|
+
}
|
|
1064
|
+
// ─── Routing & matcher integration ───────────────────────────────────────────────
|
|
1065
|
+
function escapeRegExp(text) {
|
|
1066
|
+
return text.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
|
|
1067
|
+
}
|
|
1068
|
+
// Compile a curated routing term into a linear, ReDoS-safe, case-insensitive pattern. A word
|
|
1069
|
+
// boundary is added only on a side that ends in an alphanumeric, so terms like "c#" / ".net" /
|
|
1070
|
+
// "c++" are matched literally. Internal spaces match any run of space/underscore/hyphen.
|
|
1071
|
+
function termToPattern(term) {
|
|
1072
|
+
const escaped = escapeRegExp(term).replace(/\\?\s+/gu, "[\\s_-]+");
|
|
1073
|
+
const left = /^[a-z0-9]/iu.test(term) ? "\\b" : "";
|
|
1074
|
+
const right = /[a-z0-9]$/iu.test(term) ? "\\b" : "";
|
|
1075
|
+
return new RegExp(`${left}${escaped}${right}`, "iu");
|
|
1076
|
+
}
|
|
1077
|
+
// Project-metadata routing patterns contributed by the registry, in deterministic order. Consumed
|
|
1078
|
+
// by the planner's intent classifier so an ecosystem question ("Which Java version…?") is routed
|
|
1079
|
+
// to `project-metadata`. `term` carries the ecosystem id for traceability.
|
|
1080
|
+
export const ecosystemMetadataIntentPatterns = Object.freeze(ECOSYSTEMS.flatMap((eco) => eco.routingTerms.map((term) => ({ term: eco.id, pattern: termToPattern(term) }))));
|
|
1081
|
+
// Lexical-search phrase boosts: when a query matches an ecosystem routing term, the matcher also
|
|
1082
|
+
// searches for that ecosystem's manifest content tokens (e.g. "maven.compiler") so the exact
|
|
1083
|
+
// version-declaration line wins the line-range evidence. `term` is the lowercase file token.
|
|
1084
|
+
export const ecosystemTechnicalPhrases = Object.freeze(ECOSYSTEMS.flatMap((eco) => {
|
|
1085
|
+
if (eco.routingTerms.length === 0) {
|
|
1086
|
+
return [];
|
|
1087
|
+
}
|
|
1088
|
+
return eco.routingTerms.flatMap((routingTerm) => {
|
|
1089
|
+
const pattern = termToPattern(routingTerm);
|
|
1090
|
+
return eco.contentTokens.map((token) => ({ pattern, term: lower(token) }));
|
|
1091
|
+
});
|
|
1092
|
+
}));
|
|
1093
|
+
// Version/effective-runtime declaration line recognizers keyed by registry content tokens. These
|
|
1094
|
+
// are intentionally narrow, anchored where the underlying manifest syntax permits it, and linear
|
|
1095
|
+
// (no nested quantifiers). The registry still owns which ecosystems contribute which tokens.
|
|
1096
|
+
const VERSION_DECLARATION_TOKEN_PATTERNS = Object.freeze([
|
|
1097
|
+
{
|
|
1098
|
+
token: "maven.compiler",
|
|
1099
|
+
pattern: /\bmaven\.compiler\.(?:release|source|target)\b/iu,
|
|
1100
|
+
},
|
|
1101
|
+
{ token: "java.version", pattern: /\bjava\.version\b/iu },
|
|
1102
|
+
{ token: "sourcecompatibility", pattern: /\bsourcecompatibility\b/iu },
|
|
1103
|
+
{ token: "targetcompatibility", pattern: /\btargetcompatibility\b/iu },
|
|
1104
|
+
{ token: "languageversion", pattern: /\blanguageversion\b/iu },
|
|
1105
|
+
{ token: "jvmtarget", pattern: /\bjvmtarget\b/iu },
|
|
1106
|
+
{ token: "distributionurl", pattern: /\bdistributionurl\b/iu },
|
|
1107
|
+
{ token: "go", pattern: /^\s*go\s+\d+(?:\.\d+){1,2}\b/iu },
|
|
1108
|
+
{ token: "toolchain", pattern: /^\s*toolchain\s+go?\d+(?:\.\d+){1,2}\b/iu },
|
|
1109
|
+
{ token: "rust-version", pattern: /\brust-version\b/iu },
|
|
1110
|
+
{ token: "edition", pattern: /\bedition\b/iu },
|
|
1111
|
+
{ token: "channel", pattern: /\bchannel\b/iu },
|
|
1112
|
+
{ token: "requires-python", pattern: /\brequires-python\b/iu },
|
|
1113
|
+
{ token: "python_requires", pattern: /\bpython_requires\b/iu },
|
|
1114
|
+
{ token: "engines", pattern: /\bengines\b/iu },
|
|
1115
|
+
{ token: "packagemanager", pattern: /\bpackagemanager\b|\bpackageManager\b/iu },
|
|
1116
|
+
{ token: "volta", pattern: /\bvolta\b/iu },
|
|
1117
|
+
{ token: "typescript", pattern: /"typescript"\s*:/iu },
|
|
1118
|
+
{ token: "compileroptions", pattern: /\bcompileroptions\b/iu },
|
|
1119
|
+
{ token: "target", pattern: /\btarget\b/iu, requiresNumeric: false },
|
|
1120
|
+
{ token: "targetframework", pattern: /\btargetframeworks?\b/iu },
|
|
1121
|
+
{ token: "langversion", pattern: /\blangversion\b/iu },
|
|
1122
|
+
{ token: "sdk", pattern: /"sdk"\s*:/iu },
|
|
1123
|
+
{ token: "cmake_cxx_standard", pattern: /\bcmake_cxx_standard\b/iu },
|
|
1124
|
+
{ token: "cmake_minimum_required", pattern: /\bcmake_minimum_required\b/iu },
|
|
1125
|
+
{ token: "cpp_std", pattern: /\bcpp_std_\d+\b/iu },
|
|
1126
|
+
{ token: "c_std", pattern: /\bc_std_\d+\b/iu },
|
|
1127
|
+
{ token: "required_version", pattern: /\brequired_version\b/iu },
|
|
1128
|
+
{ token: "required_providers", pattern: /\brequired_providers\b/iu },
|
|
1129
|
+
{ token: "from", pattern: /^\s*from\s+\S+/iu, requiresNumeric: false },
|
|
1130
|
+
{ token: "syntax=", pattern: /^\s*#\s*syntax\s*=/iu, requiresNumeric: false },
|
|
1131
|
+
{ token: "swift-tools-version", pattern: /^\s*\/\/\s*swift-tools-version\s*:/iu },
|
|
1132
|
+
{ token: "apiversion", pattern: /\bapiversion\b/iu, requiresNumeric: false },
|
|
1133
|
+
{ token: "appversion", pattern: /\bappversion\b/iu, requiresNumeric: false },
|
|
1134
|
+
{ token: "kubeversion", pattern: /\bkubeversion\b/iu },
|
|
1135
|
+
{ token: "require-dbt-version", pattern: /\brequire-dbt-version\b/iu },
|
|
1136
|
+
{ token: "syntax", pattern: /^\s*syntax\s*=/iu, requiresNumeric: false },
|
|
1137
|
+
{ token: "openapi", pattern: /^\s*openapi\s*:/iu },
|
|
1138
|
+
{ token: "swagger", pattern: /^\s*swagger\s*:/iu },
|
|
1139
|
+
{ token: "schema", pattern: /^\s*schema\s*:/iu, requiresNumeric: false },
|
|
1140
|
+
{ token: "generates", pattern: /^\s*generates\s*:/iu, requiresNumeric: false },
|
|
1141
|
+
{ token: "required_ruby_version", pattern: /\brequired_ruby_version\b/iu },
|
|
1142
|
+
{ token: "ruby", pattern: /^\s*ruby\s+["']/iu },
|
|
1143
|
+
{ token: "php", pattern: /"php"\s*:/iu },
|
|
1144
|
+
]);
|
|
1145
|
+
const VERSION_DECLARATION_BY_TOKEN = new Map(VERSION_DECLARATION_TOKEN_PATTERNS.map((entry) => [entry.token, entry]));
|
|
1146
|
+
// Registry-derived declaration-line recognizers used by the natural-language matcher. Matching is
|
|
1147
|
+
// two-step: route the query to an ecosystem, then apply only that ecosystem's declaration patterns
|
|
1148
|
+
// to candidate lines. This keeps generic words such as "target" or "schema" from becoming global
|
|
1149
|
+
// boosts.
|
|
1150
|
+
export const ecosystemVersionDeclarationPatterns = Object.freeze(ECOSYSTEMS.flatMap((eco) => {
|
|
1151
|
+
if (eco.routingTerms.length === 0) {
|
|
1152
|
+
return [];
|
|
1153
|
+
}
|
|
1154
|
+
const declarationPatterns = uniqueStrings(eco.contentTokens.map(lower))
|
|
1155
|
+
.map((token) => VERSION_DECLARATION_BY_TOKEN.get(token))
|
|
1156
|
+
.filter((entry) => entry !== undefined);
|
|
1157
|
+
return eco.routingTerms.flatMap((routingTerm) => {
|
|
1158
|
+
const routePattern = termToPattern(routingTerm);
|
|
1159
|
+
return declarationPatterns.map((entry) => ({
|
|
1160
|
+
ecosystem: eco.id,
|
|
1161
|
+
routePattern,
|
|
1162
|
+
declarationPattern: entry.pattern,
|
|
1163
|
+
requiresNumeric: entry.requiresNumeric ?? true,
|
|
1164
|
+
}));
|
|
1165
|
+
});
|
|
1166
|
+
}));
|
|
1167
|
+
// Every registered manifest/lockfile pattern, for the deny-list-disjointness test in
|
|
1168
|
+
// ecosystems.test.ts. Suffix patterns are expressed as a representative "name.suffix" form.
|
|
1169
|
+
export function allRegisteredFilePatterns() {
|
|
1170
|
+
const names = ECOSYSTEMS.flatMap((eco) => [...eco.manifestNames, ...eco.lockfileNames]);
|
|
1171
|
+
const suffixes = ECOSYSTEMS.flatMap((eco) => eco.manifestSuffixes.map((suffix) => `manifest${suffix}`));
|
|
1172
|
+
return [...new Set([...names, ...suffixes])].sort();
|
|
1173
|
+
}
|