@oscharko-dev/keiko 0.2.10 → 0.2.11

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.
Files changed (194) hide show
  1. package/dist/ui/csp-hashes.json +16 -16
  2. package/dist/ui/static/404.html +1 -1
  3. package/dist/ui/static/__next.__PAGE__.txt +2 -2
  4. package/dist/ui/static/__next._full.txt +3 -3
  5. package/dist/ui/static/__next._head.txt +1 -1
  6. package/dist/ui/static/__next._index.txt +2 -2
  7. package/dist/ui/static/__next._tree.txt +2 -2
  8. package/dist/ui/static/_next/static/chunks/{8824-59a261e25fd0a5d0.js → 8824-ea9436192826dccf.js} +7 -7
  9. package/dist/ui/static/_next/static/chunks/8835-9e566b40eb4e3499.js +1 -0
  10. package/dist/ui/static/_next/static/css/157df0cf8fc82126.css +3 -0
  11. package/dist/ui/static/_not-found/__next._full.txt +2 -2
  12. package/dist/ui/static/_not-found/__next._head.txt +1 -1
  13. package/dist/ui/static/_not-found/__next._index.txt +2 -2
  14. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  15. package/dist/ui/static/_not-found/__next._not-found.txt +1 -1
  16. package/dist/ui/static/_not-found/__next._tree.txt +2 -2
  17. package/dist/ui/static/_not-found.html +1 -1
  18. package/dist/ui/static/_not-found.txt +2 -2
  19. package/dist/ui/static/index.html +1 -1
  20. package/dist/ui/static/index.txt +3 -3
  21. package/dist/ui/static/launch/__next._full.txt +3 -3
  22. package/dist/ui/static/launch/__next._head.txt +1 -1
  23. package/dist/ui/static/launch/__next._index.txt +2 -2
  24. package/dist/ui/static/launch/__next._tree.txt +2 -2
  25. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +2 -2
  26. package/dist/ui/static/launch/__next.launch.txt +1 -1
  27. package/dist/ui/static/launch.html +1 -1
  28. package/dist/ui/static/launch.txt +3 -3
  29. package/dist/ui/static/local-knowledge/__next._full.txt +3 -3
  30. package/dist/ui/static/local-knowledge/__next._head.txt +1 -1
  31. package/dist/ui/static/local-knowledge/__next._index.txt +2 -2
  32. package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
  33. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +2 -2
  34. package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +1 -1
  35. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +3 -3
  36. package/dist/ui/static/local-knowledge/capsule/__next._head.txt +1 -1
  37. package/dist/ui/static/local-knowledge/capsule/__next._index.txt +2 -2
  38. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +2 -2
  39. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +2 -2
  40. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +1 -1
  41. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +1 -1
  42. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  43. package/dist/ui/static/local-knowledge/capsule.txt +3 -3
  44. package/dist/ui/static/local-knowledge.html +1 -1
  45. package/dist/ui/static/local-knowledge.txt +3 -3
  46. package/dist/ui/static/memoriaviva/__next._full.txt +2 -2
  47. package/dist/ui/static/memoriaviva/__next._head.txt +1 -1
  48. package/dist/ui/static/memoriaviva/__next._index.txt +2 -2
  49. package/dist/ui/static/memoriaviva/__next._tree.txt +2 -2
  50. package/dist/ui/static/memoriaviva/__next.memoriaviva.__PAGE__.txt +1 -1
  51. package/dist/ui/static/memoriaviva/__next.memoriaviva.txt +1 -1
  52. package/dist/ui/static/memoriaviva/consolidation/__next._full.txt +2 -2
  53. package/dist/ui/static/memoriaviva/consolidation/__next._head.txt +1 -1
  54. package/dist/ui/static/memoriaviva/consolidation/__next._index.txt +2 -2
  55. package/dist/ui/static/memoriaviva/consolidation/__next._tree.txt +2 -2
  56. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.__PAGE__.txt +1 -1
  57. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.txt +1 -1
  58. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.txt +1 -1
  59. package/dist/ui/static/memoriaviva/consolidation.html +1 -1
  60. package/dist/ui/static/memoriaviva/consolidation.txt +2 -2
  61. package/dist/ui/static/memoriaviva/detail/__next._full.txt +2 -2
  62. package/dist/ui/static/memoriaviva/detail/__next._head.txt +1 -1
  63. package/dist/ui/static/memoriaviva/detail/__next._index.txt +2 -2
  64. package/dist/ui/static/memoriaviva/detail/__next._tree.txt +2 -2
  65. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.__PAGE__.txt +1 -1
  66. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.txt +1 -1
  67. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.txt +1 -1
  68. package/dist/ui/static/memoriaviva/detail.html +1 -1
  69. package/dist/ui/static/memoriaviva/detail.txt +2 -2
  70. package/dist/ui/static/memoriaviva/review-queue/__next._full.txt +2 -2
  71. package/dist/ui/static/memoriaviva/review-queue/__next._head.txt +1 -1
  72. package/dist/ui/static/memoriaviva/review-queue/__next._index.txt +2 -2
  73. package/dist/ui/static/memoriaviva/review-queue/__next._tree.txt +2 -2
  74. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.__PAGE__.txt +1 -1
  75. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.txt +1 -1
  76. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.txt +1 -1
  77. package/dist/ui/static/memoriaviva/review-queue.html +1 -1
  78. package/dist/ui/static/memoriaviva/review-queue.txt +2 -2
  79. package/dist/ui/static/memoriaviva.html +1 -1
  80. package/dist/ui/static/memoriaviva.txt +2 -2
  81. package/node_modules/@oscharko-dev/keiko-cli/dist/.tsbuildinfo +1 -1
  82. package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.d.ts +4 -2
  83. package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.d.ts.map +1 -1
  84. package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.js +51 -28
  85. package/node_modules/@oscharko-dev/keiko-cli/package.json +14 -14
  86. package/node_modules/@oscharko-dev/keiko-contracts/dist/.tsbuildinfo +1 -1
  87. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +1 -1
  88. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
  89. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +3 -3
  90. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
  91. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +1 -1
  92. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-analyzer.d.ts.map +1 -1
  93. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-analyzer.js +43 -1
  94. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-bff.d.ts +5 -1
  95. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-bff.d.ts.map +1 -1
  96. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-bff.js +6 -6
  97. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/bffWire.d.ts +66 -0
  98. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/bffWire.d.ts.map +1 -1
  99. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/index.d.ts +1 -1
  100. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/index.d.ts.map +1 -1
  101. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  102. package/node_modules/@oscharko-dev/keiko-evaluations/dist/.tsbuildinfo +1 -1
  103. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  104. package/node_modules/@oscharko-dev/keiko-evidence/dist/.tsbuildinfo +1 -1
  105. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/manifestSchema.d.ts +3 -0
  106. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/manifestSchema.d.ts.map +1 -1
  107. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/manifestSchema.js +1 -0
  108. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/store.d.ts +2 -0
  109. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/store.d.ts.map +1 -1
  110. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/store.js +3 -0
  111. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  112. package/node_modules/@oscharko-dev/keiko-harness/dist/.tsbuildinfo +1 -1
  113. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  114. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/.tsbuildinfo +1 -1
  115. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  116. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  117. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  118. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  119. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  120. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/.tsbuildinfo +1 -1
  121. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  122. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/.tsbuildinfo +1 -1
  123. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +2 -2
  124. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/generator.d.ts.map +1 -1
  125. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/generator.js +210 -21
  126. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/index.d.ts.map +1 -1
  127. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/index.js +2 -3
  128. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/rendering.js +1 -1
  129. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  130. package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/.tsbuildinfo +1 -1
  131. package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/testDesignModel.d.ts.map +1 -1
  132. package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/testDesignModel.js +3 -0
  133. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  134. package/node_modules/@oscharko-dev/keiko-sandbox/dist/.tsbuildinfo +1 -1
  135. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  136. package/node_modules/@oscharko-dev/keiko-sdk/dist/.tsbuildinfo +1 -1
  137. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  138. package/node_modules/@oscharko-dev/keiko-security/dist/.tsbuildinfo +1 -1
  139. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  140. package/node_modules/@oscharko-dev/keiko-server/dist/.tsbuildinfo +1 -1
  141. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-delivery.d.ts +11 -1
  142. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-delivery.d.ts.map +1 -1
  143. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-delivery.js +94 -18
  144. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-handlers.d.ts.map +1 -1
  145. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-handlers.js +52 -21
  146. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-service.d.ts.map +1 -1
  147. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-service.js +22 -1
  148. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-session-manager.d.ts +3 -1
  149. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-session-manager.d.ts.map +1 -1
  150. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-session-manager.js +5 -2
  151. package/node_modules/@oscharko-dev/keiko-server/dist/promptEnhancer/routes.d.ts.map +1 -1
  152. package/node_modules/@oscharko-dev/keiko-server/dist/promptEnhancer/routes.js +4 -2
  153. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.d.ts.map +1 -1
  154. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.js +16 -9
  155. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/index.d.ts +1 -0
  156. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/index.d.ts.map +1 -1
  157. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/index.js +1 -0
  158. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts +16 -0
  159. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts.map +1 -0
  160. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.js +368 -0
  161. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelSelection.d.ts +15 -0
  162. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelSelection.d.ts.map +1 -1
  163. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelSelection.js +187 -13
  164. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runExecution.d.ts +3 -0
  165. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runExecution.d.ts.map +1 -1
  166. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runExecution.js +82 -24
  167. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts +2 -2
  168. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts.map +1 -1
  169. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +53 -6
  170. package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
  171. package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +3 -1
  172. package/node_modules/@oscharko-dev/keiko-server/package.json +19 -19
  173. package/node_modules/@oscharko-dev/keiko-tools/dist/.tsbuildinfo +1 -1
  174. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  175. package/node_modules/@oscharko-dev/keiko-verification/dist/.tsbuildinfo +1 -1
  176. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  177. package/node_modules/@oscharko-dev/keiko-workflows/dist/.tsbuildinfo +1 -1
  178. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/index.d.ts +3 -1
  179. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/index.d.ts.map +1 -1
  180. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/index.js +284 -39
  181. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/modelRoutedTestDesign.d.ts +1 -0
  182. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/modelRoutedTestDesign.d.ts.map +1 -1
  183. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/modelRoutedTestDesign.js +26 -7
  184. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/runtimeCommon.d.ts +2 -0
  185. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/runtimeCommon.d.ts.map +1 -1
  186. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/runtimeCommon.js +27 -1
  187. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  188. package/node_modules/@oscharko-dev/keiko-workspace/dist/.tsbuildinfo +1 -1
  189. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  190. package/package.json +22 -22
  191. package/dist/ui/static/_next/static/chunks/8835-0b991bfcb0308e77.js +0 -1
  192. package/dist/ui/static/_next/static/css/a44f4ffb37299b42.css +0 -3
  193. /package/dist/ui/static/_next/static/{WGuvz70_f_uiVSiv-B1wx → 7prMhE-UoHxL8LG_0obLN}/_buildManifest.js +0 -0
  194. /package/dist/ui/static/_next/static/{WGuvz70_f_uiVSiv-B1wx → 7prMhE-UoHxL8LG_0obLN}/_ssgManifest.js +0 -0
@@ -118,6 +118,64 @@ const countMatches = (haystack, needles) => {
118
118
  return count;
119
119
  };
120
120
  const INTENT_FRAMES = [
121
+ {
122
+ id: "software-quality-audit",
123
+ strong: [
124
+ "codequalitat",
125
+ "code quality",
126
+ "qualitat vom projekt",
127
+ "qualitaet vom projekt",
128
+ "project quality",
129
+ "code audit",
130
+ "technical audit",
131
+ "audit this project",
132
+ "analysiere die codequalitat",
133
+ "analyze code quality",
134
+ ],
135
+ weak: [
136
+ "projekt",
137
+ "project",
138
+ "repository",
139
+ "repo",
140
+ "wartbarkeit",
141
+ "maintainability",
142
+ "architecture",
143
+ "architektur",
144
+ "bugs",
145
+ "risiken",
146
+ "risks",
147
+ "tests",
148
+ "test coverage",
149
+ ],
150
+ taskClasses: ["code-debugging", "code-architecture", "prompt-optimization"],
151
+ domains: ["software"],
152
+ role: "You are a senior software quality and architecture reviewer.",
153
+ goal: "Assess the supplied project context for code quality, maintainability, correctness risks, architecture concerns, and verification coverage.",
154
+ context: [
155
+ "Task lens: software quality audit.",
156
+ "Assess only supplied repository, diff, test, log, documentation, or architecture context; keep unsupported conclusions out of the findings.",
157
+ ],
158
+ taskDecomposition: [
159
+ "Identify the repository scope, relevant modules, runtime assumptions, and available evidence.",
160
+ "Inspect architecture, correctness risks, maintainability, complexity, security posture, performance hot spots, and test coverage.",
161
+ "Prioritize findings by severity and confidence, separating confirmed defects from risks and style preferences.",
162
+ "For each material finding, cite the supporting file, test, log, or documented behavior and explain impact.",
163
+ "Propose focused remediation steps and verification commands without broad unrelated rewrites.",
164
+ ],
165
+ constraints: [
166
+ "Do not invent files, dependencies, test results, runtime behavior, or architectural constraints that are not supplied.",
167
+ "Do not turn preference-only observations into defects; tie each finding to impact and evidence.",
168
+ "Keep remediation scoped, reviewable, and compatible with the existing project style.",
169
+ ],
170
+ qualityCriteria: [
171
+ "Audit usefulness: findings are prioritized, evidence-backed, and actionable.",
172
+ "Engineering rigor: assumptions, confidence, affected areas, and verification steps are explicit.",
173
+ "Coverage: architecture, correctness, maintainability, security, performance, and tests are considered when evidence exists.",
174
+ ],
175
+ uncertaintyHandling: [
176
+ "If repository files, test output, runtime context, or architectural goals are missing, ask for them before making definitive quality claims.",
177
+ ],
178
+ },
121
179
  {
122
180
  id: "software-review-optimization",
123
181
  strong: [
@@ -133,8 +191,8 @@ const INTENT_FRAMES = [
133
191
  weak: ["optimierung", "optimization", "repository", "repo", "tests", "test coverage"],
134
192
  taskClasses: ["code-debugging", "code-architecture", "prompt-optimization"],
135
193
  domains: ["software"],
136
- role: "You are a senior software review and optimization prompt designer.",
137
- goal: "Produce a review-ready prompt that guides a model through code review, defect discovery, optimization, and test recommendations.",
194
+ role: "You are a senior software reviewer and optimization engineer.",
195
+ goal: "Review the supplied code context for defects, maintainability, optimization opportunities, and test recommendations.",
138
196
  context: [
139
197
  "Task lens: software review and optimization.",
140
198
  "Use repository, file, diff, test, or log context as evidence; do not infer code behavior beyond supplied context.",
@@ -158,6 +216,134 @@ const INTENT_FRAMES = [
158
216
  "If the relevant code, tests, logs, or runtime context are missing, ask for that context before making definitive findings.",
159
217
  ],
160
218
  },
219
+ {
220
+ id: "software-bugfix-investigation",
221
+ strong: [
222
+ "bugfix",
223
+ "bug fix",
224
+ "kaputt",
225
+ "fehler beheben",
226
+ "fix das",
227
+ "fix this",
228
+ "preview kaputt",
229
+ "pdf preview",
230
+ "pdf-preview",
231
+ "citation",
232
+ "citations",
233
+ "springen",
234
+ "anspringen",
235
+ "performance",
236
+ ],
237
+ weak: [
238
+ "ui",
239
+ "ux",
240
+ "api",
241
+ "frontend",
242
+ "backend",
243
+ "pdf",
244
+ "large files",
245
+ "grosse dateien",
246
+ "grosse pdfs",
247
+ "1gb",
248
+ "1 gb",
249
+ "professionell",
250
+ "test",
251
+ "tests",
252
+ ],
253
+ taskClasses: ["code-debugging", "code-architecture", "code-generation", "factual-qa"],
254
+ domains: ["software"],
255
+ role: "You are a senior software debugging and product-quality engineer.",
256
+ goal: "Diagnose and resolve the supplied software defect, covering investigation, implementation, UX, performance, and verification.",
257
+ context: [
258
+ "Task lens: production software defect and product-quality fix.",
259
+ "Use supplied UI observations, logs, files, traces, test output, and repository context as the evidence boundary.",
260
+ "When the notes mention preview, documents, citations, navigation, large files, or performance, treat those as explicit acceptance areas to verify.",
261
+ ],
262
+ taskDecomposition: [
263
+ "Restate the observed defect, affected workflow, acceptance criteria, and likely user impact.",
264
+ "Identify the components, data flow, rendering path, API contracts, and persistence points that need inspection.",
265
+ "Form hypotheses, then describe the smallest evidence-driven fix that avoids unrelated regressions.",
266
+ "Cover UX states, loading/error handling, performance limits, accessibility, and edge cases relevant to the defect.",
267
+ "Specify regression tests, fixtures, browser smoke checks, and performance verification needed before release.",
268
+ ],
269
+ constraints: [
270
+ "Do not invent files, routes, limits, logs, or provider behavior that are not supplied.",
271
+ "Keep fixes scoped to the failing workflow and explicitly call out unrelated refactors as out of scope.",
272
+ "Do not claim the defect is solved until the verification steps exercise the affected UI and backend paths.",
273
+ ],
274
+ qualityCriteria: [
275
+ "Defect focus: the prompt preserves the user's concrete failing workflow and acceptance criteria.",
276
+ "Regression safety: the prompt asks for targeted tests and browser verification around the affected path.",
277
+ "Product quality: UX, performance, accessibility, and failure states are considered when relevant.",
278
+ ],
279
+ uncertaintyHandling: [
280
+ "If reproduction steps, affected files, browser errors, logs, payload shape, or performance targets are missing, ask for them before prescribing a definitive fix.",
281
+ ],
282
+ },
283
+ {
284
+ id: "software-test-design",
285
+ strong: [
286
+ "regressionstest",
287
+ "regressionstests",
288
+ "regressionstestfalle",
289
+ "regressionstestfaelle",
290
+ "regression test",
291
+ "regression tests",
292
+ "testfalle",
293
+ "testfaelle",
294
+ "test cases",
295
+ "test case",
296
+ "schreibe tests",
297
+ "write tests",
298
+ "unit test plan",
299
+ "test plan",
300
+ ],
301
+ weak: [
302
+ "preconditions",
303
+ "vorbedingungen",
304
+ "steps",
305
+ "expected",
306
+ "erwartetes ergebnis",
307
+ "api",
308
+ "ui",
309
+ "roles",
310
+ "rollen",
311
+ "admin",
312
+ "sachbearbeiter",
313
+ "500",
314
+ "sporadisch",
315
+ "edge cases",
316
+ ],
317
+ taskClasses: ["code-generation", "code-debugging", "code-architecture", "factual-qa"],
318
+ domains: ["software"],
319
+ role: "You are a senior QA engineer and regression-test designer.",
320
+ goal: "Design executable, evidence-grounded regression test cases from the supplied notes with clear scope, steps, expected results, and traceability.",
321
+ context: [
322
+ "Task lens: software regression test design.",
323
+ "Use only supplied requirements, defects, roles, APIs, UI flows, logs, and system behavior as the evidence boundary.",
324
+ "Represent missing acceptance criteria as questions or explicit assumptions rather than fabricated behavior.",
325
+ ],
326
+ taskDecomposition: [
327
+ "Identify the feature, defect, risk, roles, interfaces, and environments under test.",
328
+ "Derive positive, negative, boundary, permission, integration, and regression scenarios from supplied evidence.",
329
+ "For each case, state preconditions, test data, steps, expected results, and traceability to the source notes.",
330
+ "Separate API-level, UI-level, and end-to-end checks when the workflow spans multiple surfaces.",
331
+ "Define fixtures, mocks, cleanup, and automation candidates needed to make the tests repeatable.",
332
+ ],
333
+ constraints: [
334
+ "Do not invent business rules, roles, endpoints, selectors, or error semantics that are not supplied.",
335
+ "Keep test cases specific enough to execute but mark unknown values as placeholders or clarification questions.",
336
+ "Do not collapse intermittent failures into a single happy-path test; include observability and retry diagnostics when relevant.",
337
+ ],
338
+ qualityCriteria: [
339
+ "Executable specificity: each test has preconditions, steps, expected results, and traceability.",
340
+ "Risk coverage: role, error, boundary, regression, and integration risks are covered when evidence exists.",
341
+ "Automation readiness: fixtures, data setup, assertions, and cleanup are clear enough for implementation.",
342
+ ],
343
+ uncertaintyHandling: [
344
+ "If endpoints, UI flows, roles, test data, expected status codes, or acceptance criteria are missing, ask for them or mark them as assumptions.",
345
+ ],
346
+ },
161
347
  {
162
348
  id: "database-migration",
163
349
  strong: [
@@ -172,8 +358,8 @@ const INTENT_FRAMES = [
172
358
  weak: ["sql", "database", "datenbank", "migration", "schema", "rollback"],
173
359
  taskClasses: ["code-architecture", "data-analysis"],
174
360
  domains: ["software", "data-science", "business"],
175
- role: "You are a data-migration architecture prompt designer.",
176
- goal: "Produce a migration-planning prompt that covers source and target data, transformation rules, rollout, rollback, and validation evidence.",
361
+ role: "You are a senior data-migration architect.",
362
+ goal: "Plan a safe data migration covering source and target data, transformation rules, rollout, rollback, and validation evidence.",
177
363
  context: [
178
364
  "Task lens: database and customer-data migration.",
179
365
  "Treat data mappings, schemas, constraints, and operational requirements as the evidence boundary.",
@@ -226,8 +412,8 @@ const INTENT_FRAMES = [
226
412
  ],
227
413
  taskClasses: ["code-generation", "code-debugging", "code-architecture"],
228
414
  domains: ["software"],
229
- role: "You are a senior software implementation prompt designer.",
230
- goal: "Produce an implementation prompt that turns the request into a maintainable, testable software change with clear constraints and verification.",
415
+ role: "You are a senior software engineer.",
416
+ goal: "Implement the requested software change in a maintainable, testable way with clear constraints and verification.",
231
417
  context: [
232
418
  "Task lens: software implementation.",
233
419
  "Use repository or API context only as supplied; keep assumptions about frameworks and runtime explicit.",
@@ -255,8 +441,8 @@ const INTENT_FRAMES = [
255
441
  id: "recipe-baking",
256
442
  strong: ["backe", "kuchen", "rezept", "bake", "cake", "recipe", "cook", "kochen"],
257
443
  weak: ["zutaten", "ofen", "dessert", "meal", "servings", "portionen"],
258
- role: "You are a practical culinary instruction prompt designer.",
259
- goal: "Produce a complete baking or cooking prompt that yields a usable recipe with ingredients, equipment, timing, method, and serving guidance.",
444
+ role: "You are a practical culinary instructor.",
445
+ goal: "Create a usable recipe with ingredients, equipment, timing, method, serving guidance, and troubleshooting notes.",
260
446
  context: [
261
447
  "Task lens: recipe and baking guidance.",
262
448
  "Treat personal preferences, dietary needs, equipment, and serving count as required context when they matter.",
@@ -285,8 +471,8 @@ const INTENT_FRAMES = [
285
471
  strong: ["reise", "urlaub", "itinerary", "travel", "trip", "japan", "hotel", "flug"],
286
472
  weak: ["oktober", "route", "budget", "transport", "unterkunft", "sightseeing"],
287
473
  taskClasses: ["decision-support", "research"],
288
- role: "You are a travel-planning prompt designer.",
289
- goal: "Produce a travel-planning prompt that creates an itinerary with timing, route logic, budget assumptions, logistics, and tradeoffs.",
474
+ role: "You are an expert travel planner.",
475
+ goal: "Create a realistic itinerary with timing, route logic, budget assumptions, logistics, tradeoffs, and open questions.",
290
476
  context: [
291
477
  "Task lens: travel itinerary planning.",
292
478
  "Current prices, schedules, visa rules, and venue availability require fresh verification when not supplied.",
@@ -325,8 +511,8 @@ const INTENT_FRAMES = [
325
511
  weak: ["vertrag", "brief", "email", "anschreiben", "formuliere", "recipient", "frist"],
326
512
  taskClasses: ["writing-editing"],
327
513
  domains: ["legal", "business"],
328
- role: "You are a formal administrative writing prompt designer.",
329
- goal: "Produce a drafting prompt for a clear, complete administrative letter with recipient details, contract references, dates, requested action, and tone.",
514
+ role: "You are a formal administrative writing assistant.",
515
+ goal: "Draft a clear, complete administrative letter with recipient details, contract references, dates, requested action, and appropriate tone.",
330
516
  context: [
331
517
  "Task lens: formal letter and contract communication.",
332
518
  "Legal or contractual claims must remain cautious unless the relevant terms and jurisdiction are supplied.",
@@ -356,8 +542,8 @@ const INTENT_FRAMES = [
356
542
  weak: ["beispiel", "example", "einfach", "step by step", "schritt fur schritt"],
357
543
  taskClasses: ["factual-qa"],
358
544
  domains: ["education"],
359
- role: "You are an instructional explanation prompt designer.",
360
- goal: "Produce a teaching prompt that explains the topic at the right level with examples, checks for understanding, and clear boundaries.",
545
+ role: "You are an instructional explanation specialist.",
546
+ goal: "Explain the topic at the right level with examples, checks for understanding, and clear boundaries.",
361
547
  context: [
362
548
  "Task lens: learning and explanation.",
363
549
  "The learner's background, goal, and desired depth determine the best explanation style.",
@@ -386,8 +572,8 @@ const INTENT_FRAMES = [
386
572
  weak: ["fiction", "character", "plot", "tone", "voice", "scene"],
387
573
  taskClasses: ["creative-writing"],
388
574
  domains: ["creative"],
389
- role: "You are a creative-writing prompt designer.",
390
- goal: "Produce a creative prompt that captures premise, voice, audience, structure, constraints, and revision criteria.",
575
+ role: "You are a creative writing specialist.",
576
+ goal: "Create original writing that respects the premise, voice, audience, structure, constraints, and revision criteria.",
391
577
  context: [
392
578
  "Task lens: creative writing.",
393
579
  "Tone, genre, point of view, length, and audience shape the output more than factual grounding.",
@@ -415,8 +601,8 @@ const INTENT_FRAMES = [
415
601
  strong: ["research", "recherchiere", "state of the art", "literature review", "cite sources"],
416
602
  weak: ["compare", "vergleich", "quellen", "sources", "background", "uberblick"],
417
603
  taskClasses: ["research", "rag-question-answering"],
418
- role: "You are a research-synthesis prompt designer.",
419
- goal: "Produce a research prompt that defines scope, evidence standards, source priority, synthesis method, and uncertainty reporting.",
604
+ role: "You are a research synthesis analyst.",
605
+ goal: "Answer the research question by defining scope, applying evidence standards, prioritizing sources, synthesizing findings, and reporting uncertainty.",
420
606
  context: [
421
607
  "Task lens: research synthesis.",
422
608
  "Evidence quality, recency, source priority, and citation discipline are central to the answer.",
@@ -445,8 +631,8 @@ const INTENT_FRAMES = [
445
631
  strong: ["should i", "soll ich", "pros and cons", "vor- und nachteile", "help me decide"],
446
632
  weak: ["recommend", "empfehlung", "option", "tradeoff", "vergleich", "compare"],
447
633
  taskClasses: ["decision-support"],
448
- role: "You are a decision-support prompt designer.",
449
- goal: "Produce a decision prompt that compares options against explicit criteria, risks, constraints, and recommendation logic.",
634
+ role: "You are a decision-support analyst.",
635
+ goal: "Compare options against explicit criteria, risks, constraints, and recommendation logic so the user can make a grounded decision.",
450
636
  context: [
451
637
  "Task lens: decision support.",
452
638
  "Decision quality depends on criteria, priorities, constraints, and uncertainty rather than a one-size-fits-all answer.",
@@ -534,7 +720,10 @@ function buildInputSection(input) {
534
720
  INPUT_TRUNCATION_MARKER);
535
721
  }
536
722
  function buildTaskDecomposition(plan, intentFrame) {
537
- const steps = appendUnique([...(intentFrame?.taskDecomposition ?? [])], DECOMPOSITION_BY_STRATEGY[plan.reasoningStrategy]);
723
+ if (intentFrame !== undefined) {
724
+ return [...intentFrame.taskDecomposition].slice(0, Math.max(1, plan.executionProfile.maxTaskDecompositionSteps));
725
+ }
726
+ const steps = appendUnique([], DECOMPOSITION_BY_STRATEGY[plan.reasoningStrategy]);
538
727
  return steps.slice(0, Math.max(1, plan.executionProfile.maxTaskDecompositionSteps));
539
728
  }
540
729
  function buildConstraints(plan, intentFrame) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promptEnhancer/index.ts"],"names":[],"mappings":"AAQA,YAAY,EACV,8BAA8B,EAC9B,cAAc,EACd,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kCAAkC,EAClC,gBAAgB,EAChB,oBAAoB,EACpB,iCAAiC,EACjC,mCAAmC,EACnC,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGrD,YAAY,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAGnF,OAAO,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAGxF,YAAY,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,4BAA4B,EAC5B,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,YAAY,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,GACf,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promptEnhancer/index.ts"],"names":[],"mappings":"AAOA,YAAY,EACV,8BAA8B,EAC9B,cAAc,EACd,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kCAAkC,EAClC,gBAAgB,EAChB,oBAAoB,EACpB,iCAAiC,EACjC,mCAAmC,EACnC,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGrD,YAAY,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAGnF,OAAO,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAGxF,YAAY,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,4BAA4B,EAC5B,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,YAAY,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,GACf,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC"}
@@ -1,9 +1,8 @@
1
1
  // Public barrel for the Prompt Enhancer sub-module of the model gateway
2
2
  // (Epic #1307, Issues #1310/#1312; ADR-0044 §1). Exposes the generation-profile execution catalog, the
3
3
  // deterministic planner, the structured generator, the provider-neutral renderers, and the
4
- // deterministic candidate critic + bounded optimization loop (#1312). Mirrors the
5
- // `qualityIntelligence/index.ts` barrel layout. A model-assisted candidate/critic dispatch stage is an
6
- // explicit later option; the #1312 MVP is fully deterministic for reproducible CI coverage.
4
+ // deterministic candidate critic + bounded optimization loop (#1312). The workflow layer composes
5
+ // these safe primitives with an optional model-assisted refinement stage.
7
6
  export { PROMPT_ENHANCER_EXECUTION_PROFILES, REASONING_DEPTHS, REASONING_STRATEGIES, getPromptEnhancerExecutionProfile, listPromptEnhancerExecutionProfiles, reasoningDepthRank, } from "./profiles.js";
8
7
  export { planPromptEnhancement } from "./planner.js";
9
8
  export { GENERATED_INPUT_MAX_CHARS, generateEnhancedPrompt } from "./generator.js";
@@ -25,7 +25,7 @@ function bulletList(items) {
25
25
  return items.map((item) => `- ${item}`).join("\n");
26
26
  }
27
27
  function renderInputSection(input) {
28
- return `## ${INPUT_HEADING}\nJSON string literal:\n${JSON.stringify(input)}`;
28
+ return `## ${INPUT_HEADING}\n\`\`\`text\n${input.replace(/```/gu, "`\u200b``")}\n\`\`\``;
29
29
  }
30
30
  // The trusted instruction blocks, in the section order named by the Issue #1310 scope. Excludes the
31
31
  // untrusted Input section, which is rendered/segregated separately by each public renderer.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-model-gateway",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workspace package: Keiko model gateway — provider abstraction, OpenAI-compatible adapter, capability registry, routing, resilience, TLS handling. Not published independently.",
@@ -41,7 +41,7 @@
41
41
  "node": ">=22"
42
42
  },
43
43
  "dependencies": {
44
- "@oscharko-dev/keiko-contracts": "0.2.10",
45
- "@oscharko-dev/keiko-security": "0.2.10"
44
+ "@oscharko-dev/keiko-contracts": "0.2.11",
45
+ "@oscharko-dev/keiko-security": "0.2.11"
46
46
  }
47
47
  }