@oscharko-dev/keiko 1.2.2 → 1.2.4

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 (338) hide show
  1. package/README.md +23 -1
  2. package/dist/ui/csp-hashes.json +7 -7
  3. package/dist/ui/static/404.html +1 -1
  4. package/dist/ui/static/__next.__PAGE__.txt +11 -11
  5. package/dist/ui/static/__next._full.txt +13 -13
  6. package/dist/ui/static/__next._tree.txt +2 -2
  7. package/dist/ui/static/_next/static/chunks/02bjsbh-9ecdm.js +1 -0
  8. package/dist/ui/static/_next/static/chunks/{0e0h-sia4dm93.js → 0ayn-v91zdo92.js} +1 -1
  9. package/dist/ui/static/_next/static/chunks/0bdxksp1lm2a5.js +1 -0
  10. package/dist/ui/static/_next/static/chunks/0n-psjjwvzg-y.js +1 -0
  11. package/dist/ui/static/_next/static/chunks/{2ywljh6s1u2zd.js → 0oqmbh9n57323.js} +1 -1
  12. package/dist/ui/static/_next/static/chunks/0ry6tlbur8za2.js +1 -0
  13. package/dist/ui/static/_next/static/chunks/{38rjnjhuttjqs.js → 0t52lzhbto4gq.js} +1 -1
  14. package/dist/ui/static/_next/static/chunks/{0y0r5znrj9qw-.js → 0t86l4mcivsdr.js} +1 -1
  15. package/dist/ui/static/_next/static/chunks/0vmq9d1ffbg71.js +1 -0
  16. package/dist/ui/static/_next/static/chunks/{32jgtvf2y-f54.js → 0w4i9kmhas6-y.js} +1 -1
  17. package/dist/ui/static/_next/static/chunks/{0ta8ifx4mr6gi.js → 0wojcemvzg4nk.js} +1 -1
  18. package/dist/ui/static/_next/static/chunks/{15tj-r-c7bs-p.js → 0ye5xoo8-mxeh.js} +1 -1
  19. package/dist/ui/static/_next/static/chunks/1-1m1qynx41o-.js +1 -0
  20. package/dist/ui/static/_next/static/chunks/{2pg4yzdak17yp.js → 12j_451pxuj5o.js} +1 -1
  21. package/dist/ui/static/_next/static/chunks/12u-0ugq__zxv.js +1 -0
  22. package/dist/ui/static/_next/static/chunks/{2m7wxgg82-7yj.js → 12ud0_l8bk00z.js} +1 -1
  23. package/dist/ui/static/_next/static/chunks/{3ya92_ies62hp.js → 15vd6rpxiqu8w.js} +1 -1
  24. package/dist/ui/static/_next/static/chunks/17i88c7695qwe.js +1 -0
  25. package/dist/ui/static/_next/static/chunks/{21rpgm75hndoe.js → 19us2pnpa8mf8.js} +1 -1
  26. package/dist/ui/static/_next/static/chunks/{3umqj2wkb8goj.js → 1acedjbs6wiqp.js} +1 -1
  27. package/dist/ui/static/_next/static/chunks/1dlqcgl3v1lh5.js +1 -0
  28. package/dist/ui/static/_next/static/chunks/1f54omp_06bxq.js +1 -0
  29. package/dist/ui/static/_next/static/chunks/{363iuc3t94rie.js → 1glj9-10j7vd_.js} +1 -1
  30. package/dist/ui/static/_next/static/chunks/1grn549_xc1mq.js +1 -0
  31. package/dist/ui/static/_next/static/chunks/{0650rzqxvrg4k.js → 1gy2m1qvi454c.js} +1 -1
  32. package/dist/ui/static/_next/static/chunks/1ienlzel5zdck.js +4 -0
  33. package/dist/ui/static/_next/static/chunks/1opvpvx_garm7.js +1 -0
  34. package/dist/ui/static/_next/static/chunks/{0pf5ot48kepng.js → 1ufk9opowqajn.js} +1 -1
  35. package/dist/ui/static/_next/static/chunks/1vyr9w4t1aogr.js +1 -0
  36. package/dist/ui/static/_next/static/chunks/20b456jf1ggzu.css +1 -0
  37. package/dist/ui/static/_next/static/chunks/21cazq_lp5oc5.js +3 -0
  38. package/dist/ui/static/_next/static/chunks/23p0wg8gdznqm.js +1 -0
  39. package/dist/ui/static/_next/static/chunks/{0_yx8_bs1t-27.js → 27shxliy4x9l4.js} +1 -1
  40. package/dist/ui/static/_next/static/chunks/{2tlvii78gzv6c.js → 2czfxmx_ca_k5.js} +1 -1
  41. package/dist/ui/static/_next/static/chunks/{0c2x58oypfxql.css → 2dhcqxcousm45.css} +1 -0
  42. package/dist/ui/static/_next/static/chunks/{3-pcgkdsv7x4z.js → 2fqo-2fl7ca59.js} +1 -1
  43. package/dist/ui/static/_next/static/chunks/2i0hotqh6q4q5.js +3 -0
  44. package/dist/ui/static/_next/static/chunks/{0gns083_remf0.js → 2p_w_st_gm1rp.js} +1 -1
  45. package/dist/ui/static/_next/static/chunks/{43z5mfwx4lk4w.js → 2rmh79cv9y7fu.js} +1 -1
  46. package/dist/ui/static/_next/static/chunks/{3payvp5ps2fne.css → 32r3kzj8vl9xl.css} +10 -1
  47. package/dist/ui/static/_next/static/chunks/{4014adorwuv48.js → 35r_4m36s2mm5.js} +1 -1
  48. package/dist/ui/static/_next/static/chunks/{02ycexmxeqhmx.css → 3951w1st9l_ix.css} +15 -25
  49. package/dist/ui/static/_next/static/chunks/{1s3u1scfdjjd9.js → 3961pv_qwa3xb.js} +1 -1
  50. package/dist/ui/static/_next/static/chunks/39xl_71ucgzrs.js +1 -0
  51. package/dist/ui/static/_next/static/chunks/{0t10yxd1t9qeg.js → 3bafzdsn1osq1.js} +1 -1
  52. package/dist/ui/static/_next/static/chunks/{1g_d_8a7vlqgu.js → 3i6zr4x280jq4.js} +1 -1
  53. package/dist/ui/static/_next/static/chunks/3lf8dguq57yfu.js +1 -0
  54. package/dist/ui/static/_next/static/chunks/{2v4u52qc4tcdm.js → 3llyc6xz08_ky.js} +1 -1
  55. package/dist/ui/static/_next/static/chunks/3lq95b69wn18x.js +1 -0
  56. package/dist/ui/static/_next/static/chunks/3q-u4cmxbxbxy.js +1 -0
  57. package/dist/ui/static/_next/static/chunks/{42otn3fqwlbyi.js → 3zidi31cpe2oi.js} +1 -1
  58. package/dist/ui/static/_next/static/chunks/41t1if3rqvyu-.js +3 -0
  59. package/dist/ui/static/_next/static/chunks/43yycpcn9jmo0.js +1 -0
  60. package/dist/ui/static/_next/static/chunks/44sjj140gf9z8.js +1 -0
  61. package/dist/ui/static/_not-found/__next._full.txt +9 -9
  62. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +8 -8
  63. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  64. package/dist/ui/static/_not-found.html +1 -1
  65. package/dist/ui/static/_not-found.txt +9 -9
  66. package/dist/ui/static/atlassian-connectors/__next._full.txt +13 -13
  67. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  68. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +10 -10
  69. package/dist/ui/static/atlassian-connectors.html +1 -1
  70. package/dist/ui/static/atlassian-connectors.txt +13 -13
  71. package/dist/ui/static/index.html +1 -1
  72. package/dist/ui/static/index.txt +13 -13
  73. package/dist/ui/static/launch/__next._full.txt +13 -13
  74. package/dist/ui/static/launch/__next._tree.txt +2 -2
  75. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +11 -11
  76. package/dist/ui/static/launch.html +1 -1
  77. package/dist/ui/static/launch.txt +13 -13
  78. package/dist/ui/static/local-knowledge/__next._full.txt +13 -13
  79. package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
  80. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +11 -11
  81. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +11 -11
  82. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  83. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +10 -10
  84. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  85. package/dist/ui/static/local-knowledge/capsule.txt +11 -11
  86. package/dist/ui/static/local-knowledge.html +1 -1
  87. package/dist/ui/static/local-knowledge.txt +13 -13
  88. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +10 -0
  89. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
  90. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +28 -0
  91. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +21 -7
  92. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
  93. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +24 -8
  94. package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
  95. package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
  96. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
  97. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
  98. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  99. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +21 -1
  100. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
  101. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +22 -0
  102. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +65 -2
  103. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -1
  104. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +76 -1
  105. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +78 -5
  106. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
  107. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +100 -4
  108. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +9 -0
  109. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
  110. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts +4 -0
  111. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts.map +1 -1
  112. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.js +9 -0
  113. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +1 -1
  114. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
  115. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +11 -0
  116. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
  117. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
  118. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  119. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  120. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  121. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  122. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  123. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
  124. package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
  125. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  126. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  127. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  128. package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
  129. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  130. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  131. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  132. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  133. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  134. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  135. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  136. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  137. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  138. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  139. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  140. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  141. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  142. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  143. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  144. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  145. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  146. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  147. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/speech-to-text-adapter.d.ts.map +1 -1
  148. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/speech-to-text-adapter.js +17 -9
  149. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  150. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  151. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
  152. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  153. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  154. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  155. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  156. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  157. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  158. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.d.ts +2 -0
  159. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.d.ts.map +1 -1
  160. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.js +2 -0
  161. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.d.ts.map +1 -1
  162. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.js +23 -13
  163. package/node_modules/@oscharko-dev/keiko-server/dist/chat-draft-log.d.ts +2 -0
  164. package/node_modules/@oscharko-dev/keiko-server/dist/chat-draft-log.d.ts.map +1 -0
  165. package/node_modules/@oscharko-dev/keiko-server/dist/chat-draft-log.js +32 -0
  166. package/node_modules/@oscharko-dev/keiko-server/dist/chat-draft-routes.d.ts +7 -0
  167. package/node_modules/@oscharko-dev/keiko-server/dist/chat-draft-routes.d.ts.map +1 -0
  168. package/node_modules/@oscharko-dev/keiko-server/dist/chat-draft-routes.js +66 -0
  169. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  170. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +10 -14
  171. package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-rehydration.d.ts.map +1 -1
  172. package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-rehydration.js +58 -22
  173. package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts +1 -1
  174. package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts.map +1 -1
  175. package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.js +5 -3
  176. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
  177. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +9 -6
  178. package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-serializer.d.ts +8 -3
  179. package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-serializer.d.ts.map +1 -1
  180. package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-serializer.js +63 -13
  181. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.d.ts +2 -0
  182. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.d.ts.map +1 -1
  183. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.js +6 -3
  184. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +2 -2
  185. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  186. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +26 -7
  187. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts.map +1 -1
  188. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.js +5 -24
  189. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts.map +1 -1
  190. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.js +3 -1
  191. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts +1 -0
  192. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts.map +1 -1
  193. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.js +4 -1
  194. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts +3 -1
  195. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts.map +1 -1
  196. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.js +50 -18
  197. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.d.ts.map +1 -1
  198. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.js +18 -3
  199. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
  200. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +69 -45
  201. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
  202. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +3 -1
  203. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.js +1 -1
  204. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-service.js +3 -3
  205. package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-selection-admission.d.ts.map +1 -1
  206. package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-selection-admission.js +10 -3
  207. package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
  208. package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +3 -0
  209. package/node_modules/@oscharko-dev/keiko-server/dist/store/chatDrafts.d.ts +6 -0
  210. package/node_modules/@oscharko-dev/keiko-server/dist/store/chatDrafts.d.ts.map +1 -0
  211. package/node_modules/@oscharko-dev/keiko-server/dist/store/chatDrafts.js +33 -0
  212. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.d.ts +2 -0
  213. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.d.ts.map +1 -1
  214. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.js +24 -8
  215. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
  216. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +3 -0
  217. package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.d.ts.map +1 -1
  218. package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +2 -1
  219. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +1 -1
  220. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts.map +1 -1
  221. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +9 -1
  222. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts +3 -1
  223. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts.map +1 -1
  224. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
  225. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +21 -2
  226. package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
  227. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  228. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  229. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  230. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  231. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  232. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts +1 -1
  233. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts.map +1 -1
  234. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.js +1 -1
  235. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts +1 -0
  236. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts.map +1 -1
  237. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.js +58 -1
  238. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts.map +1 -1
  239. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.js +14 -14
  240. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts.map +1 -1
  241. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.js +4 -2
  242. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/request-command-patterns.d.ts +2 -0
  243. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/request-command-patterns.d.ts.map +1 -0
  244. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/request-command-patterns.js +5 -0
  245. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/index.d.ts.map +1 -1
  246. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/index.js +5 -5
  247. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/markdownSkillDraft.d.ts +2 -1
  248. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/markdownSkillDraft.d.ts.map +1 -1
  249. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/markdownSkillDraft.js +19 -10
  250. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/markdownSkillSources.d.ts +10 -0
  251. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/markdownSkillSources.d.ts.map +1 -0
  252. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/markdownSkillSources.js +75 -0
  253. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts +2 -1
  254. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts.map +1 -1
  255. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.js +32 -1
  256. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  257. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts +3 -0
  258. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts.map +1 -1
  259. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.js +117 -20
  260. package/node_modules/@oscharko-dev/keiko-workspace/dist/importPathSuffix.d.ts +3 -0
  261. package/node_modules/@oscharko-dev/keiko-workspace/dist/importPathSuffix.d.ts.map +1 -0
  262. package/node_modules/@oscharko-dev/keiko-workspace/dist/importPathSuffix.js +51 -0
  263. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchCachedLexical.d.ts +1 -1
  264. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchCachedLexical.d.ts.map +1 -1
  265. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchCachedLexical.js +6 -1
  266. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts +4 -1
  267. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
  268. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +22 -1
  269. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +1 -1
  270. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts.map +1 -1
  271. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.js +18 -4
  272. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts +2 -1
  273. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
  274. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +4 -0
  275. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.js +2 -2
  276. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  277. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  278. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts.map +1 -1
  279. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.js +11 -0
  280. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  281. package/package.json +29 -27
  282. package/release-impact.catalog.json +164 -23
  283. package/vendor/oscharko-dev-keiko-activity-log-1.2.4.tgz +0 -0
  284. package/vendor/{oscharko-dev-keiko-cli-1.2.2.tgz → oscharko-dev-keiko-cli-1.2.4.tgz} +0 -0
  285. package/vendor/{oscharko-dev-keiko-connectors-1.2.2.tgz → oscharko-dev-keiko-connectors-1.2.4.tgz} +0 -0
  286. package/vendor/oscharko-dev-keiko-contracts-1.2.4.tgz +0 -0
  287. package/vendor/{oscharko-dev-keiko-evaluations-1.2.2.tgz → oscharko-dev-keiko-evaluations-1.2.4.tgz} +0 -0
  288. package/vendor/{oscharko-dev-keiko-evidence-1.2.2.tgz → oscharko-dev-keiko-evidence-1.2.4.tgz} +0 -0
  289. package/vendor/{oscharko-dev-keiko-git-1.2.2.tgz → oscharko-dev-keiko-git-1.2.4.tgz} +0 -0
  290. package/vendor/{oscharko-dev-keiko-harness-1.2.2.tgz → oscharko-dev-keiko-harness-1.2.4.tgz} +0 -0
  291. package/vendor/{oscharko-dev-keiko-local-knowledge-1.2.2.tgz → oscharko-dev-keiko-local-knowledge-1.2.4.tgz} +0 -0
  292. package/vendor/{oscharko-dev-keiko-memory-capture-1.2.2.tgz → oscharko-dev-keiko-memory-capture-1.2.4.tgz} +0 -0
  293. package/vendor/{oscharko-dev-keiko-memory-consolidation-1.2.2.tgz → oscharko-dev-keiko-memory-consolidation-1.2.4.tgz} +0 -0
  294. package/vendor/{oscharko-dev-keiko-memory-governance-1.2.2.tgz → oscharko-dev-keiko-memory-governance-1.2.4.tgz} +0 -0
  295. package/vendor/{oscharko-dev-keiko-memory-retrieval-1.2.2.tgz → oscharko-dev-keiko-memory-retrieval-1.2.4.tgz} +0 -0
  296. package/vendor/{oscharko-dev-keiko-memory-vault-1.2.2.tgz → oscharko-dev-keiko-memory-vault-1.2.4.tgz} +0 -0
  297. package/vendor/{oscharko-dev-keiko-model-gateway-1.2.2.tgz → oscharko-dev-keiko-model-gateway-1.2.4.tgz} +0 -0
  298. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.2.2.tgz → oscharko-dev-keiko-quality-intelligence-1.2.4.tgz} +0 -0
  299. package/vendor/{oscharko-dev-keiko-sandbox-1.2.2.tgz → oscharko-dev-keiko-sandbox-1.2.4.tgz} +0 -0
  300. package/vendor/{oscharko-dev-keiko-sdk-1.2.2.tgz → oscharko-dev-keiko-sdk-1.2.4.tgz} +0 -0
  301. package/vendor/{oscharko-dev-keiko-security-1.2.2.tgz → oscharko-dev-keiko-security-1.2.4.tgz} +0 -0
  302. package/vendor/oscharko-dev-keiko-server-1.2.4.tgz +0 -0
  303. package/vendor/{oscharko-dev-keiko-tool-catalog-1.2.2.tgz → oscharko-dev-keiko-tool-catalog-1.2.4.tgz} +0 -0
  304. package/vendor/{oscharko-dev-keiko-tools-1.2.2.tgz → oscharko-dev-keiko-tools-1.2.4.tgz} +0 -0
  305. package/vendor/{oscharko-dev-keiko-verification-1.2.2.tgz → oscharko-dev-keiko-verification-1.2.4.tgz} +0 -0
  306. package/vendor/oscharko-dev-keiko-workflows-1.2.4.tgz +0 -0
  307. package/vendor/oscharko-dev-keiko-workspace-1.2.4.tgz +0 -0
  308. package/dist/ui/static/_next/static/chunks/00h6kszysb2wr.js +0 -1
  309. package/dist/ui/static/_next/static/chunks/08f-iwu6ug6k3.js +0 -3
  310. package/dist/ui/static/_next/static/chunks/0e3x-8o_fjsn_.js +0 -1
  311. package/dist/ui/static/_next/static/chunks/0eeyfcixqqfab.js +0 -1
  312. package/dist/ui/static/_next/static/chunks/0eyoirips0ket.js +0 -1
  313. package/dist/ui/static/_next/static/chunks/0ji_km0dqy8qj.js +0 -1
  314. package/dist/ui/static/_next/static/chunks/0jtp8te-03j1-.js +0 -1
  315. package/dist/ui/static/_next/static/chunks/0sjewje-u3bqg.js +0 -1
  316. package/dist/ui/static/_next/static/chunks/1c0u0qq0vwkc4.js +0 -1
  317. package/dist/ui/static/_next/static/chunks/1lm4kkulhv0b_.js +0 -1
  318. package/dist/ui/static/_next/static/chunks/1pe5ee9wh-qwa.js +0 -1
  319. package/dist/ui/static/_next/static/chunks/1qcpuq815jtog.js +0 -3
  320. package/dist/ui/static/_next/static/chunks/1zqfkyeqq5cl8.js +0 -1
  321. package/dist/ui/static/_next/static/chunks/21s3ugswalpzt.js +0 -1
  322. package/dist/ui/static/_next/static/chunks/2go0k_akgnv11.js +0 -1
  323. package/dist/ui/static/_next/static/chunks/2oq1uk07ft9l0.js +0 -1
  324. package/dist/ui/static/_next/static/chunks/3_m42xgt33mnw.js +0 -4
  325. package/dist/ui/static/_next/static/chunks/3cpuzx4fetu6y.js +0 -1
  326. package/dist/ui/static/_next/static/chunks/3d27ozm1boe_5.js +0 -3
  327. package/dist/ui/static/_next/static/chunks/3fwt6-8rc2mya.js +0 -1
  328. package/dist/ui/static/_next/static/chunks/3hb_wkp14tb6b.js +0 -1
  329. package/dist/ui/static/_next/static/chunks/3ifa0dznjb9z9.js +0 -1
  330. package/dist/ui/static/_next/static/chunks/3q-93bizla3k1.js +0 -1
  331. package/vendor/oscharko-dev-keiko-activity-log-1.2.2.tgz +0 -0
  332. package/vendor/oscharko-dev-keiko-contracts-1.2.2.tgz +0 -0
  333. package/vendor/oscharko-dev-keiko-server-1.2.2.tgz +0 -0
  334. package/vendor/oscharko-dev-keiko-workflows-1.2.2.tgz +0 -0
  335. package/vendor/oscharko-dev-keiko-workspace-1.2.2.tgz +0 -0
  336. /package/dist/ui/static/_next/static/{Z7PX-H79azsma78__tTUN → i1pRTTqyOTQStJLPAXgGm}/_buildManifest.js +0 -0
  337. /package/dist/ui/static/_next/static/{Z7PX-H79azsma78__tTUN → i1pRTTqyOTQStJLPAXgGm}/_clientMiddlewareManifest.js +0 -0
  338. /package/dist/ui/static/_next/static/{Z7PX-H79azsma78__tTUN → i1pRTTqyOTQStJLPAXgGm}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90317,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return c;},createAsyncLocalStorage:function(){return d;},createSnapshot:function(){return l;}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw o;}getStore(){}run(){throw o;}exit(){throw o;}enterWith(){throw o;}static bind(e){return e;}}let a="u">typeof globalThis&&globalThis.AsyncLocalStorage;function d(){return a?new a():new s();}function c(e){return a?a.bind(e):s.bind(e);}function l(){return a?a.snapshot():function(e,...t){return e(...t);};}},42344,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n;}});let n=(0,e.r(90317).createAsyncLocalStorage)();},63599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance;}});let n=e.r(42344);},9885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/");}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n;}});},67585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i;}});let n=e.r(32061);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t;}},52157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return d;}});let n=e.r(43476),i=e.r(74080),o=e.r(63599),s=e.r(9885),a=e.r(43369);function d({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e);}}if(0===r.length)return null;let c=(0,a.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null);})});}},69093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c;}});let n=e.r(43476),i=e.r(71645),o=e.r(67585),s=e.r(52157);function a(e){return{default:e&&"default"in e?e.default:e};}let d={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},c=function(e){let t={...d,...e},r=(0,i.lazy)(()=>t.loader().then(a)),c=t.loading;function l(e){let a=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,d=!t.ssr||!!t.loading,l=d?i.Suspense:i.Fragment,u=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(s.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(l,{...(d?{fallback:a}:{}),children:u});}return l.displayName="LoadableComponent",l;};},70703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i;}});let n=e.r(55682)._(e.r(69093));function i(e,t){var _i$loadableGenerated;let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:(_i$loadableGenerated=i.loadableGenerated)===null||_i$loadableGenerated===void 0?void 0:_i$loadableGenerated.modules});}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default);},43545,e=>{"use strict";var t=e.i(57269),r=e.i(47903);let n=Object.freeze({wordWrap:Object.freeze(["off","on","wordWrapColumn","bounded"]),renderWhitespace:Object.freeze(["none","selection","boundary","all"]),externalReload:Object.freeze(["prompt","autoClean","manual"]),largeFileMode:Object.freeze(["default","degraded","readonly"]),gitCommitMessagePolicy:r.GIT_COMMIT_MESSAGE_POLICY_MODES}),i=(0,t.deepFreeze)([{id:"fontSize",type:"integer",defaultValue:13,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",minimum:8,maximum:32,description:"Monaco editor font size in CSS pixels."},{id:"tabSize",type:"integer",defaultValue:2,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",minimum:1,maximum:12,description:"Editor tab width."},{id:"insertSpaces",type:"boolean",defaultValue:!0,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",description:"Insert spaces when indentation is generated."},{id:"wordWrap",type:"enum",defaultValue:"off",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.wordWrap,description:"Monaco word wrapping mode."},{id:"renderWhitespace",type:"enum",defaultValue:"selection",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.renderWhitespace,description:"Whitespace visualization mode."},{id:"minimap",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user"]),effect:"live",security:"safe",description:"Minimap visibility. Workspace overrides are denied to preserve dense layouts."},{id:"formatOnSave",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",description:"Run the existing governed formatter before save."},{id:"externalReload",type:"enum",defaultValue:"prompt",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.externalReload,description:"Clean-buffer external reload behavior; dirty buffers still require choice."},{id:"inlineCompletion",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user"]),effect:"live",security:"policyCeiling",description:"Explicit user opt-in for governed inline AI completion."},{id:"testGeneration",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed AI test generation; generated tests still require human review."},{id:"patchApply",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed AI patch apply; apply remains review-first and never widens delivery authority."},{id:"watcherExclusions",type:"stringArray",defaultValue:Object.freeze([".git/**","node_modules/**","dist/**"]),scopes:Object.freeze(["user","workspace"]),effect:"restart",security:"resourceBounded",maxItems:64,maxItemBytes:256,description:"Bounded root-relative watcher exclusion globs."},{id:"largeFileMode",type:"enum",defaultValue:"default",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",enumValues:n.largeFileMode,description:"Large-file behavior within the existing hard server size limits."},{id:"modelRetentionCount",type:"integer",defaultValue:32,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",minimum:4,maximum:128,description:"Maximum retained clean inactive Monaco models."},{id:"modelRetentionBytes",type:"integer",defaultValue:0x4000000,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",minimum:4194304,maximum:0x10000000,description:"Approximate retained clean inactive Monaco model byte budget."},{id:"keybindingOverrides",type:"stringArray",defaultValue:Object.freeze([]),scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",maxItems:64,maxItemBytes:192,description:"Bounded M7 keyboard shortcut override records."},{id:"debuggingEnabled",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed Node.js/TypeScript debugging."},{id:"gitCommitMessagePolicy",type:"enum",defaultValue:"keiko-conventional",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.gitCommitMessagePolicy,description:"Governed commit-message validation: Keiko Conventional or Repository Native formatting."}]);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function s(e,t){return Object.keys(e).every(e=>t.includes(e));}function a(e){let t=0;for(let r=0;r<e.length;r+=1){var _e$codePointAt;let n=(_e$codePointAt=e.codePointAt(r))!==null&&_e$codePointAt!==void 0?_e$codePointAt:0;n<=127?t+=1:n<=2047?t+=2:n>65535?(t+=4,r+=1):t+=3;}return t;}function d(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=0;}Object.freeze(i.map(e=>e.id)),Object.freeze(["schemaVersion","sequence","kind","revision","userRevision","workspaceRevision","scope","settingIds","storeState"]);let c=/^[a-f0-9]{16,64}$/u;function l(e){return"string"==typeof e&&(0===e.length||4096>=a(e)&&e.length>0&&!e.includes("\0")&&!e.startsWith("/")&&!e.includes("\\")&&!e.split("/").some(e=>""===e||"."===e||".."===e));}function u(e){return"healthy"===e||"degraded"===e||"rescanRequired"===e||"stopped"===e;}function p(e){return"native-watch-unavailable"===e||"unsupported-recursive-watch"===e||"event-overflow"===e||"sequence-gap"===e||"ambiguous-event"===e||"unsafe-path"===e||"root-replaced"===e||"shutdown"===e;}function h(e){return void 0===e||"number"==typeof e&&Number.isFinite(e)&&e>=0;}let f=Object.freeze(["schemaVersion","sequence","health","rootToken","nativeWatcherCount","subscriberCount","queueDepth","replayCapacity","replayOldestSequence","eventCount","requiresSnapshot","degradedReasons"]);function x(e,t,r,n,i,o,s="keiko"){return{id:e,labelKey:t,descriptionKey:`${t}.description`,scope:r,contexts:Object.freeze([...n]),defaultBindings:Object.freeze([...i]),rebindable:o,dispatchOwner:s};}let j=(0,t.deepFreeze)([x("undo","command.undo","global",["global"],["CtrlOrMeta+Z"],!0),x("redo","command.redo","global",["global"],["CtrlOrMeta+Shift+Z"],!0),x("focus-status","command.focusStatus","global",["global"],["Alt+S"],!0),x("focus-workspace-search","command.focusWorkspaceSearch","global",["global"],["CtrlOrMeta+Shift+F"],!0),x("workspace.commands","command.workspaceCommands","global",["global","editor"],["CtrlOrMeta+Shift+P"],!0),x("open-editor-settings","command.openEditorSettings","settings",["settings","editor"],["CtrlOrMeta+,"],!0),x("view.splitRight","command.splitEditorRight","editor",["editor"],["CtrlOrMeta+Alt+\\"],!0),x("view.splitDown","command.splitEditorDown","editor",["editor"],[],!0),x("view.closeSplit","command.closeEditorSplit","editor",["editor"],[],!0),x("tab.next","command.nextEditorTab","editor",["editor"],["CtrlOrMeta+Alt+ArrowRight"],!0),x("tab.prev","command.previousEditorTab","editor",["editor"],["CtrlOrMeta+Alt+ArrowLeft"],!0),x("tab.close","command.closeEditorTab","editor",["editor"],[],!0),x("tab.reopenClosed","command.reopenClosedEditor","editor",["editor"],["CtrlOrMeta+Alt+R"],!0),x("files.saveAll","command.saveAllEditors","editor",["editor"],["CtrlOrMeta+Alt+S"],!0),x("editor.save","command.editorSave","editor",["editor","monaco"],["CtrlOrMeta+S"],!1,"monaco"),x("editor.find","command.editorFind","editor",["editor","monaco"],["CtrlOrMeta+F"],!1,"monaco"),x("editor.format","command.editorFormat","editor",["editor","monaco"],["Shift+Alt+F"],!1,"monaco"),x("editor.renameSymbol","command.editorRenameSymbol","editor",["editor","monaco"],["F2"],!1,"monaco"),x("editor.action.accessibilityHelp","command.editorAccessibilityHelp","editor",["editor","monaco"],["Alt+F1"],!1,"monaco")]),m=Object.freeze(["CtrlOrMeta+Q","CtrlOrMeta+W","CtrlOrMeta+R","CtrlOrMeta+T","CtrlOrMeta+Shift+N"]),M=Object.freeze(["CtrlOrMeta","Ctrl","Meta","Alt","Shift"]);function g(e,t=j){return t.find(t=>t.id===e);}function y(e){var _r$at,_t$,_find;var t;let r=e.split("+").map(e=>e.trim());if(0===r.length||r.some(e=>0===e.length))return;let n=void 0!==b(t=(_r$at=r.at(-1))!==null&&_r$at!==void 0?_r$at:"")||!function(e){if(0===e.length)return!1;for(let t of e)if(!w.has(t))return!1;return!0;}(t)?void 0:1===t.length?t.toUpperCase():((_t$=t[0])===null||_t$===void 0?void 0:_t$.toLowerCase())==="f"&&t.slice(1).split("").every(A)?`F${t.slice(1)}`:(_find=["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","Esc","Space"].find(e=>e.toLowerCase()===t.toLowerCase()))!==null&&_find!==void 0?_find:t;if(void 0===n)return;let i=function(e){let t=[],r=new Set();for(let n of e){let e=b(n);if(void 0===e||r.has(e)||function(e,t){let r=["CtrlOrMeta","Ctrl","Meta"];return!!r.includes(e)&&r.some(r=>r!==e&&t.has(r));}(e,r))return;r.add(e),t.push(e);}return t.sort((e,t)=>M.indexOf(e)-M.indexOf(t)),t;}(r.slice(0,-1));return void 0===i?void 0:[...i,n].join("+");}function v(e){return[...new Set(e.split("+").map(e=>"Ctrl"===e||"Meta"===e?"CtrlOrMeta":e).map(e=>e.toLowerCase()))].join("+");}function b(e){let t=e.toLowerCase();return M.find(e=>e.toLowerCase()===t);}function A(e){return e>="0"&&e<="9";}function O(){return j.flatMap(e=>e.defaultBindings.map(t=>{var _y;return{commandId:e.id,binding:(_y=y(t))!==null&&_y!==void 0?_y:""};}));}function C(e){return function(e,t){try{var r;let n,i,o=g(e.commandId,t);if(void 0===o)return{ok:!1,reasonCode:"UNKNOWN_COMMAND"};if(a(e.binding)>192)return{ok:!1,reasonCode:"INVALID_INPUT"};let s=function(e,t){let r=y(t);if(void 0!==r)return a(L({schemaVersion:"1",commandId:e,binding:r}))>192?void 0:r;}(e.commandId,e.binding);if(void 0===s||!((n=new Set(s.split("+").slice(0,-1))).has("CtrlOrMeta")||n.has("Ctrl")||n.has("Meta")||n.has("Alt")))return{ok:!1,reasonCode:"INVALID_INPUT"};if(!o.rebindable)return{ok:!1,reasonCode:"POLICY_LOCKED"};if(i=v(s),m.some(e=>{let t=y(e);return void 0!==t&&v(t)===i;}))return{ok:!1,reasonCode:"RESERVED_KEYBINDING"};let d=(Array.isArray(e.activeBindings)?e.activeBindings:(r=e.activeBindings,Object.entries(r).map(([e,t])=>({commandId:e,binding:t})))).find(e=>function(e,t,r,n){let i=y(r.binding);if(r.commandId===e.id||void 0===i||v(i)!==v(t))return!1;let o=g(r.commandId,n);return void 0!==o&&function(e,t){if(e.contexts.includes("global")||t.contexts.includes("global")||e.contexts.some(e=>t.contexts.includes(e)))return!0;let r=new Set(["editor","monaco"]);return e.contexts.some(e=>r.has(e))&&t.contexts.some(e=>r.has(e));}(e,o);}(o,s,e,t));return void 0===d?{ok:!0,value:s}:{ok:!1,reasonCode:"KEYBINDING_COLLISION"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}}(e,j);}function L(e){var _y2;return[e.schemaVersion,e.commandId,(_y2=y(e.binding))!==null&&_y2!==void 0?_y2:""].join("|");}let w=new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789,./;'[]`-\\");function I(e,t,r){return{schemaVersion:"1",feature:e,state:t,reasonCode:r,policyResult:"active"===t?"allowed":"denied"};}Object.freeze(["inlineCompletion","testGeneration","patchApply","verification"]),Object.freeze(["allowed","denied"]),Object.freeze(["available","missing"]),Object.freeze(["available","exhausted"]),Object.freeze(["healthy","degraded","unhealthy","unverified"]),Object.freeze(["satisfied","missing"]),Object.freeze(["unset","disabled","enabled"]),Object.freeze([function(e){return e.productSupported?void 0:I(e.feature,"disabled","PRODUCT_UNSUPPORTED");},function(e){return"denied"===e.operatorCeiling||"disabled"===e.legacyFlag?I(e.feature,"denied","OPERATOR_CEILING_DENIED"):void 0;},function(e){return"missing"===e.securityPrerequisites?I(e.feature,"denied","SECURITY_PREREQUISITE_MISSING"):void 0;},function(e){return e.explicitOptIn?void 0:I(e.feature,"available","EXPLICIT_OPT_IN_REQUIRED");},function(e){return"missing"===e.modelCapability?I(e.feature,"degraded","MODEL_CAPABILITY_MISSING"):void 0;},function(e){return"exhausted"===e.budget?I(e.feature,"degraded","BUDGET_UNAVAILABLE"):void 0;},function(e){if("healthy"!==e.providerHealth)return"unverified"===e.providerHealth?I(e.feature,"degraded","PROVIDER_UNVERIFIED"):I(e.feature,"degraded","PROVIDER_UNHEALTHY");}]),e.s(["EDITOR_M7_COMMAND_REGISTRY",0,j,"EDITOR_M7_SCHEMA_VERSION",0,"1","EDITOR_M7_SETTING_REGISTRY",0,i,"defaultEditorM7Settings",0,function(){return Object.freeze(Object.fromEntries(i.map(e=>[e.id,e.defaultValue])));},"parseEditorM7KeybindingOverrides",0,function(e){if(!Array.isArray(e)||e.length>64)return{ok:!1,reasonCode:"OVERSIZED"};let t=O(),r=[],n=new Set();for(let i of e){if("string"!=typeof i)return{ok:!1,reasonCode:"INVALID_INPUT"};let e=function(e){if(a(e)>192)return e;let t=e.split("|");if(3!==t.length||"1"!==t[0])return e;let[,r,n]=t;if("quick-access.files"!==r||void 0===y(n!==null&&n!==void 0?n:""))return"quick-access.commands"===r?[t[0],"workspace.commands",n].join("|"):e;}(i);if(void 0===e)continue;let o=function(e,t=O()){if(a(e)>192)return{ok:!1,reasonCode:"OVERSIZED"};let r=e.split("|");if(3!==r.length||"1"!==r[0])return{ok:!1,reasonCode:"SCHEMA_VERSION_UNSUPPORTED"};let[,n,i]=r,o=C({commandId:n,binding:i,activeBindings:t});return o.ok?{ok:!0,value:{schemaVersion:"1",commandId:n,binding:o.value}}:o;}(e,t);if(!o.ok)return o;if(n.has(o.value.commandId))return{ok:!1,reasonCode:"KEYBINDING_COLLISION"};n.add(o.value.commandId),r.push(o.value),t=[...t.filter(e=>e.commandId!==o.value.commandId),{commandId:o.value.commandId,binding:o.value.binding}];}return{ok:!0,value:Object.freeze(r)};},"parseEditorM7WatchEvent",0,function(e){try{var t,r,n,i,a,f,x,j,m,M;return(r=t=e,o(r)&&s(r,["schemaVersion","sequence","kind","relativePath","oldRelativePath","entryKind","sizeBytes","modifiedAt","metadataHash","health","reason"])&&"1"===r.schemaVersion&&d(r.sequence))?(n=t,("created"===(i=n.kind)||"changed"===i||"deleted"===i||"renamed"===i||"rescan"===i||"overflow"===i)&&l(n.relativePath)&&(a=n.oldRelativePath,void 0===a||l(a))&&(f=n.entryKind,void 0===f||"file"===(x=f)||"directory"===x||"symlink"===x||"unknown"===x)&&h(n.sizeBytes)&&h(n.modifiedAt)&&(j=n.metadataHash,void 0===j||"string"==typeof j&&c.test(j))&&(m=n.health,void 0===m||u(m))&&(M=n.reason,void 0===M||p(M)))?{ok:!0,value:t}:{ok:!1,reasonCode:"UNSAFE_PATH"}:{ok:!1,reasonCode:"INVALID_INPUT"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}},"parseEditorM7WatchSnapshot",0,function(e){try{var t,r,n,i;return(r=t=e,o(r)&&s(r,f)&&"1"===r.schemaVersion&&u(r.health)&&(n=r.rootToken,"string"==typeof n&&c.test(n))&&(i=r,d(i.sequence)&&d(i.nativeWatcherCount)&&d(i.subscriberCount)&&d(i.queueDepth)&&d(i.replayCapacity)&&d(i.replayOldestSequence)&&d(i.eventCount))&&"boolean"==typeof r.requiresSnapshot&&Array.isArray(r.degradedReasons)&&t.degradedReasons.every(p))?{ok:!0,value:{...t,degradedReasons:Object.freeze([...t.degradedReasons])}}:{ok:!1,reasonCode:"INVALID_INPUT"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}},"serializeEditorM7KeybindingOverride",0,L,"validateEditorM7Keybinding",0,C]);},47903,e=>{"use strict";var t=e.i(57269);let r=Object.freeze(["keiko-conventional","repository-native"]),n=Object.freeze(["empty-subject","missing-conventional-prefix","disallowed-type","subject-too-long","missing-issue-key","missing-signoff"]);(0,t.deepFreeze)({conventionalCommit:{enabled:!0,allowedTypes:["feat","fix","chore","docs","refactor","test","build","ci","perf","style","revert"]},requireIssueKey:{enabled:!1,pattern:""},requireSignoff:!1,subjectMaxLength:72}),(0,t.deepFreeze)({conventionalCommit:{enabled:!1,allowedTypes:[]},requireIssueKey:{enabled:!1,pattern:""},requireSignoff:!1,subjectMaxLength:Number.MAX_SAFE_INTEGER});let i=e=>"string"==typeof e&&n.includes(e);e.s(["GIT_COMMIT_MESSAGE_POLICY_MODES",0,r,"GIT_COMMIT_MESSAGE_VIOLATION_CODES",0,n,"isGitCommitMessageViolationCode",0,i]);},17161,e=>{"use strict";var t=e.i(43476);function r({size:e=18,sw:n=1.6,vb:i=24,fill:o,className:s,style:a,children:d,d:c,"aria-hidden":l="true"}){let u=void 0!==o;return(0,t.jsx)("svg",{className:s,width:e,height:e,viewBox:`0 0 ${String(i)} ${String(i)}`,fill:u?o:"none",stroke:u?"none":"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",style:a,"aria-hidden":l,children:void 0!==c?(0,t.jsx)("path",{d:c}):d});}function n(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M13.70 5.00 H17.50 A2.5 2.5 0 0 1 20.00 7.50 V16.50 A2.5 2.5 0 0 1 17.50 19.00 H6.50 A2.5 2.5 0 0 1 4.00 16.50 V7.50 A2.5 2.5 0 0 1 6.50 5.00 H10.30"}),(0,t.jsx)("path",{d:"M8 9.6 L11 12.6 L8 15.6"}),(0,t.jsx)("path",{d:"M12.8 15.6 H16.4"})]});}e.s(["Icons",0,{lock:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"5",y:"10",width:"14",height:"11",rx:"2"}),(0,t.jsx)("path",{d:"M8 10V7a4 4 0 0 1 8 0v3"}),(0,t.jsx)("path",{d:"M12 14v3"})]}),unlock:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"5",y:"10",width:"14",height:"11",rx:"2"}),(0,t.jsx)("path",{d:"M8 10V7a4 4 0 0 1 8 0"}),(0,t.jsx)("path",{d:"M12 14v3"})]}),newChat:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M4 6 H12.5"}),(0,t.jsx)("path",{d:"M4 9.5 H9.5"}),(0,t.jsx)("path",{d:"M14.4 13.6 l4-4 a1.6 1.6 0 0 1 2.3 2.3 l-6.2 6.2 -3 .7 .7 -3 z"})]}),search:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M12.25 4.76 A6 6 0 1 1 8.75 4.76"}),(0,t.jsx)("path",{d:"M14.7 14.7 L20 20"})]}),plugins:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"4",y:"4",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"13.5",y:"4",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"4",y:"13.5",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"13.5",y:"13.5",width:"6.5",height:"6.5",rx:"1.5"})]}),automations:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,t.jsx)("path",{d:"M12 7.5V12l3 2"})]}),mobile:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"7",y:"3",width:"10",height:"18",rx:"2.5"}),(0,t.jsx)("path",{d:"M11 18h2"})]}),folder:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M3.6 7.4 V6.3 a1.5 1.5 0 0 1 1.5-1.5 H8 a1.5 1.5 0 0 1 1.1 .48 L10.3 7.4"}),(0,t.jsx)("path",{d:"M13.50 7.40 H18.00 A2.4 2.4 0 0 1 20.40 9.80 V16.00 A2.4 2.4 0 0 1 18.00 18.40 H6.00 A2.4 2.4 0 0 1 3.60 16.00 V9.80 A2.4 2.4 0 0 1 6.00 7.40 H10.50"})]}),settings:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M 13.02 3.36 L 13.21 3.38 L 13.66 5.82 L 15.20 6.46 L 17.24 5.05 L 18.95 6.76 L 17.54 8.80 L 18.18 10.34 L 20.62 10.79 L 20.62 13.21 L 18.18 13.66 L 17.54 15.20 L 18.95 17.24 L 17.24 18.95 L 15.20 17.54 L 13.66 18.18 L 13.21 20.62 L 10.79 20.62 L 10.34 18.18 L 8.80 17.54 L 6.76 18.95 L 5.05 17.24 L 6.46 15.20 L 5.82 13.66 L 3.38 13.21 L 3.38 10.79 L 5.82 10.34 L 6.46 8.80 L 5.05 6.76 L 6.76 5.05 L 8.80 6.46 L 10.34 5.82 L 10.79 3.38 L 10.98 3.36"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.7"})]}),files:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M5.5 8 V5.5 a1.9 1.9 0 0 1 1.9-1.9 H12.8 L18.5 8.8 V18.5 a1.9 1.9 0 0 1-1.9 1.9 H7.4 a1.9 1.9 0 0 1-1.9-1.9 V11"}),(0,t.jsx)("path",{d:"M12.8 3.6 V7.4 a1.4 1.4 0 0 0 1.4 1.4 H18.5"})]}),browser:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8.5"}),(0,t.jsx)("path",{d:"M3.5 12h17M12 3.5c2.3 2.3 2.3 14.7 0 17M12 3.5c-2.3 2.3-2.3 14.7 0 17"})]}),review:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9 12l2 2 4-4"}),(0,t.jsx)("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2.5"})]}),terminal:e=>(0,t.jsx)(r,{...e,children:(0,t.jsx)(n,{})}),agents:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"5",y:"7",width:"14",height:"11",rx:"3"}),(0,t.jsx)("path",{d:"M12 7V4M9 12h.01M15 12h.01M2.5 12.5v2M21.5 12.5v2"})]}),git:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"6",cy:"6",r:"2.5"}),(0,t.jsx)("circle",{cx:"6",cy:"18",r:"2.5"}),(0,t.jsx)("circle",{cx:"17",cy:"9",r:"2.5"}),(0,t.jsx)("path",{d:"M6 8.5v7M17 11.5c0 3-3 3.5-6 4"})]}),plus:e=>(0,t.jsx)(r,{...e,d:"M12 5v14M5 12h14"}),chevron:e=>(0,t.jsx)(r,{...e,d:"M6 9l6 6 6-6"}),chevronR:e=>(0,t.jsx)(r,{...e,d:"M9 6l6 6-6 6"}),mic:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M12 3.2 a3 3 0 0 1 3 3 V11 a3 3 0 0 1 -6 0 V6.2 a3 3 0 0 1 2 -2.8"}),(0,t.jsx)("path",{d:"M5.5 11.5 a6.5 6.5 0 0 0 13 0 M12 18 v3"})]}),arrowUp:e=>(0,t.jsx)(r,{...e,d:"M12 19V5M6 11l6-6 6 6"}),spark:e=>(0,t.jsx)(r,{...e,d:"M13.2 3.6 L19 10 l-5.2 1.4 L12 17 l-1.8 -5.6 L5 10 l5.2 -1.4 z"}),pin:e=>(0,t.jsx)(r,{...e,d:"M9 3h6l-1 5 3 3-5 1-1 8-1-8-5-1 3-3z"}),brain:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"}),(0,t.jsx)("path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"})]}),brainSlash:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"}),(0,t.jsx)("path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"}),(0,t.jsx)("path",{d:"M3.2 20.4 20.8 3.6"})]}),codingHistory:e=>(0,t.jsx)(r,{...e,d:"M13.2 4.5h6.3v4h-15v-4h6.3M6 8.5v11h12v-11M10 12l-2 2 2 2m4-4 2 2-2 2"}),archive:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.20 5.00 H19.50 A1 1 0 0 1 20.50 6.00 V8.00 A1 1 0 0 1 19.50 9.00 H4.50 A1 1 0 0 1 3.50 8.00 V6.00 A1 1 0 0 1 4.50 5.00 H10.80"}),(0,t.jsx)("path",{d:"M5 9 v8 a2 2 0 0 0 2 2 h10 a2 2 0 0 0 2-2 V9"}),(0,t.jsx)("path",{d:"M10 13 h4"})]}),sidebar:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M9.5 5 V19"})]}),minimize:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M7 14 H10.4"}),(0,t.jsx)("path",{d:"M13.6 14 H17"})]}),expand:e=>(0,t.jsx)(r,{...e,d:"M4 9V4h5M20 15v5h-5M20 9V4h-5M4 15v5h5"}),back:e=>(0,t.jsx)(r,{...e,d:"M15 6l-6 6 6 6"}),fwd:e=>(0,t.jsx)(r,{...e,d:"M9 6l6 6-6 6"}),drag:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"9",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"9",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"9",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"})]}),close:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M7 7 L10.4 10.4"}),(0,t.jsx)("path",{d:"M17 7 L13.6 10.4"}),(0,t.jsx)("path",{d:"M7 17 L10.4 13.6"}),(0,t.jsx)("path",{d:"M17 17 L13.6 13.6"})]}),dots:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"6",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"18",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"})]}),check:e=>(0,t.jsx)(r,{...e,d:"M5 12.5l4.5 4.5L19 6.5"}),copy:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"8",y:"8",width:"10",height:"10",rx:"2"}),(0,t.jsx)("path",{d:"M6 14 H5.8 A1.8 1.8 0 0 1 4 12.2 V6.8 A1.8 1.8 0 0 1 5.8 5 H11.2 A1.8 1.8 0 0 1 13 6.8 V7"})]}),info:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M14.51 4.96 A8.6 8.6 0 1 1 9.49 4.96"}),(0,t.jsx)("path",{d:"M12 8.2 h.01"}),(0,t.jsx)("path",{d:"M12 11.3 V16.3"})]}),edit:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M4.5 6.5 H13"}),(0,t.jsx)("path",{d:"M4.5 10 H10"}),(0,t.jsx)("path",{d:"M14.4 13.6 l4-4 a1.6 1.6 0 0 1 2.3 2.3 l-6.2 6.2 -3 .7 .7 -3 z"})]}),trash:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M5 7 H19"}),(0,t.jsx)("path",{d:"M9 7 V5.6 A1.6 1.6 0 0 1 10.6 4 H13.4 A1.6 1.6 0 0 1 15 5.6 V7"}),(0,t.jsx)("path",{d:"M17.5 10 L16.8 18.2 A2 2 0 0 1 14.8 20 H9.2 A2 2 0 0 1 7.2 18.2 L6.5 10"}),(0,t.jsx)("path",{d:"M10 11.5 V17"}),(0,t.jsx)("path",{d:"M14 11.5 V17"})]}),reset:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M4 12a8 8 0 1 1 2.3 5.6"}),(0,t.jsx)("path",{d:"M4 20v-4h4"})]}),file:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M5.5 8 V5.5 a1.9 1.9 0 0 1 1.9-1.9 H12.8 L18.5 8.8 V18.5 a1.9 1.9 0 0 1-1.9 1.9 H7.4 a1.9 1.9 0 0 1-1.9-1.9 V11"}),(0,t.jsx)("path",{d:"M12.8 3.6 V7.4 a1.4 1.4 0 0 0 1.4 1.4 H18.5"})]}),diff:e=>(0,t.jsx)(r,{...e,d:"M12 4v6M9 7h6M5 17h14"}),commit:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M12.99 8.75 A3.4 3.4 0 1 1 11.01 8.75"}),(0,t.jsx)("path",{d:"M3 12 H8.6 M15.4 12 H21"})]}),pullRequest:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"6.5",cy:"6",r:"2"}),(0,t.jsx)("circle",{cx:"6.5",cy:"18",r:"2"}),(0,t.jsx)("circle",{cx:"17.5",cy:"18",r:"2"}),(0,t.jsx)("path",{d:"M6.5 8 V16"}),(0,t.jsx)("path",{d:"M17.5 16 V11 A3 3 0 0 0 14.5 8 H11.6"}),(0,t.jsx)("path",{d:"M13.6 6 L11.2 8.4 L13.6 10.8"})]}),merge:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"6.5",cy:"5.5",r:"2"}),(0,t.jsx)("circle",{cx:"17.5",cy:"5.5",r:"2"}),(0,t.jsx)("circle",{cx:"12",cy:"18.5",r:"2"}),(0,t.jsx)("path",{d:"M6.5 7.5 C 6.5 12 9 13.5 12 16.5"}),(0,t.jsx)("path",{d:"M17.5 7.5 C 17.5 12 15 13.5 12 16.5"})]}),download:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M12 4 V15"}),(0,t.jsx)("path",{d:"M7.5 10.5 L12 15 L16.5 10.5"}),(0,t.jsx)("path",{d:"M5 19.5 H19"})]}),code:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M8.5 8 L4.5 12 L8.5 16"}),(0,t.jsx)("path",{d:"M15.5 8 L19.5 12 L15.5 16"}),(0,t.jsx)("path",{d:"M13.5 5.5 L10.5 18.5"})]}),codingWorkbench:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)(n,{}),(0,t.jsx)("path",{d:"M16.4 6.5 L17 8 L18.5 8.6 L17 9.2 L16.4 10.7 L15.8 9.2 L14.3 8.6 L15.8 8 Z"})]}),regenerate:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M6 9.5 A6.8 6.8 0 0 1 18.2 8.2"}),(0,t.jsx)("path",{d:"M18.6 4.2 L18.4 8.4 L14.3 7.7"}),(0,t.jsx)("path",{d:"M18 14.5 A6.8 6.8 0 0 1 5.8 15.8"}),(0,t.jsx)("path",{d:"M5.4 19.8 L5.6 15.6 L9.7 16.3"})]}),external:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M14 4.8 H19.2 V10"}),(0,t.jsx)("path",{d:"M19.2 4.8 L11 13"}),(0,t.jsx)("path",{d:"M17 13.5 V18 a1.6 1.6 0 0 1 -1.6 1.6 H6.6 A1.6 1.6 0 0 1 5 18 V9.2 A1.6 1.6 0 0 1 6.6 7.6 H11"})]}),link:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9.5 14.5 L14.5 9.5"}),(0,t.jsx)("path",{d:"M11 7.8 L12.8 6 a3.4 3.4 0 0 1 4.8 4.8 L15.8 12.6"}),(0,t.jsx)("path",{d:"M13 16.2 L11.2 18 a3.4 3.4 0 0 1 -4.8 -4.8 L8.2 11.4"})]}),branch:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M7.63 4.97 A2.3 2.3 0 1 1 4.37 4.97"}),(0,t.jsx)("circle",{cx:"6",cy:"17.4",r:"2.3"}),(0,t.jsx)("circle",{cx:"17.4",cy:"8.6",r:"2.3"}),(0,t.jsx)("path",{d:"M6 8.9 V15.1"}),(0,t.jsx)("path",{d:"M17.4 10.9 c0 4 -4 3.7 -7 4.7"})]}),cube:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M12 3l8 4.5v9L12 21l-8-4.5v-9z"}),(0,t.jsx)("path",{d:"M12 12l8-4.5M12 12v9M12 12L4 7.5"})]}),maximize:e=>(0,t.jsx)(r,{...e,d:"M13.50 7.00 H15.00 A2 2 0 0 1 17.00 9.00 V15.00 A2 2 0 0 1 15.00 17.00 H9.00 A2 2 0 0 1 7.00 15.00 V9.00 A2 2 0 0 1 9.00 7.00 H10.50"}),restore:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9 9 V8 a2 2 0 0 1 2 -2 h6 a2 2 0 0 1 2 2 v6 a2 2 0 0 1 -2 2 h-1"}),(0,t.jsx)("path",{d:"M11.50 9.00 H13.00 A2 2 0 0 1 15.00 11.00 V17.00 A2 2 0 0 1 13.00 19.00 H7.00 A2 2 0 0 1 5.00 17.00 V11.00 A2 2 0 0 1 7.00 9.00 H8.50"})]}),split:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M12 5 V19"})]}),tile:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M8.10 4.50 H9.00 A1.5 1.5 0 0 1 10.50 6.00 V10.00 A1.5 1.5 0 0 1 9.00 11.50 H5.00 A1.5 1.5 0 0 1 3.50 10.00 V6.00 A1.5 1.5 0 0 1 5.00 4.50 H5.90"}),(0,t.jsx)("path",{d:"M15.00 4.50 H19.00 A1.5 1.5 0 0 1 20.50 6.00 V10.00 A1.5 1.5 0 0 1 19.00 11.50 H15.00 A1.5 1.5 0 0 1 13.50 10.00 V6.00 A1.5 1.5 0 0 1 15.00 4.50 Z"}),(0,t.jsx)("path",{d:"M5.00 13.50 H9.00 A1.5 1.5 0 0 1 10.50 15.00 V19.00 A1.5 1.5 0 0 1 9.00 20.50 H5.00 A1.5 1.5 0 0 1 3.50 19.00 V15.00 A1.5 1.5 0 0 1 5.00 13.50 Z"}),(0,t.jsx)("path",{d:"M15.00 13.50 H19.00 A1.5 1.5 0 0 1 20.50 15.00 V19.00 A1.5 1.5 0 0 1 19.00 20.50 H15.00 A1.5 1.5 0 0 1 13.50 19.00 V15.00 A1.5 1.5 0 0 1 15.00 13.50 Z"})]}),cascade:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"4",y:"4",width:"12",height:"12",rx:"2"}),(0,t.jsx)("path",{d:"M20 8v10a2 2 0 0 1-2 2H8"})]}),editor:e=>(0,t.jsx)(r,{...e,children:(0,t.jsx)("path",{d:"M8 9l-3 3 3 3M16 9l3 3-3 3M13.5 6l-3 12"})}),gear:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.6"}),(0,t.jsx)("path",{d:"M12 3.5v2M12 18.5v2M20.5 12h-2M5.5 12h-2M18 6l-1.4 1.4M7.4 16.6 6 18M18 18l-1.4-1.4M7.4 7.4 6 6"})]}),panelRight:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M14.5 5 V19"})]}),panelDown:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M5 14.5 H19"})]}),layers:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.4 4.55 L19.6 8 L12 12.2 L4.4 8 L10.6 4.55"}),(0,t.jsx)("path",{d:"M4.4 12 L12 16.2 L19.6 12"}),(0,t.jsx)("path",{d:"M4.4 16 L12 20.2 L19.6 16"})]}),tokens:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"9",cy:"9",r:"4.5"}),(0,t.jsx)("path",{d:"M14 9.5a4.5 4.5 0 1 1-4 6.9"})]}),bolt:e=>(0,t.jsx)(r,{...e,d:"M13 3 5 13h5l-1 8 8-10h-5z"}),add:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"3.5"}),(0,t.jsx)("path",{d:"M12 8.5v7M8.5 12h7"})]}),bell:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9.8 4.6 a5.5 5.5 0 0 1 7.7 4.4 c0 4.5 2 5.5 2 5.5 H4.5 s2 -1 2 -5.5 a5.5 5.5 0 0 1 1.1 -3.3"}),(0,t.jsx)("path",{d:"M10 19 a2 2 0 0 0 4 0"})]}),sun:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.17 8.17 A4 4 0 1 1 10.83 8.17"}),(0,t.jsx)("path",{d:"M12 2.5 V5 M12 19 V21.5 M2.5 12 H5 M19 12 H21.5 M5.1 5.1 L6.9 6.9 M17.1 17.1 l1.8 1.8 M18.9 5.1 L17.1 6.9 M6.9 17.1 L5.1 18.9"})]}),moon:e=>(0,t.jsx)(r,{...e,d:"M19.5 13.5 A8 8 0 1 1 10.5 4.2 a6.5 6.5 0 0 0 9.3 9.1"}),zoomOut:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"M20 20l-4.2-4.2M8.3 11h5.4"})]}),zoomIn:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"M20 20l-4.2-4.2M11 8.3v5.4M8.3 11h5.4"})]}),activity:e=>(0,t.jsx)(r,{...e,d:"M3 12h3l2.5-7 5 14 2.5-7H21"}),user:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.35 4.66 A3.6 3.6 0 1 1 10.65 4.66"}),(0,t.jsx)("path",{d:"M5.5 20 c.9 -3.7 3.4 -5.5 6.5 -5.5 s5.6 1.8 6.5 5.5"})]}),localKnowledge:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M4 19V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12"}),(0,t.jsx)("path",{d:"M4 19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2"}),(0,t.jsx)("path",{d:"M9 7v14M9 11h6"})]}),server:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.30 4.50 H18.30 A1.7 1.7 0 0 1 20.00 6.20 V8.80 A1.7 1.7 0 0 1 18.30 10.50 H5.70 A1.7 1.7 0 0 1 4.00 8.80 V6.20 A1.7 1.7 0 0 1 5.70 4.50 H10.70"}),(0,t.jsx)("path",{d:"M5.70 13.50 H18.30 A1.7 1.7 0 0 1 20.00 15.20 V17.80 A1.7 1.7 0 0 1 18.30 19.50 H5.70 A1.7 1.7 0 0 1 4.00 17.80 V15.20 A1.7 1.7 0 0 1 5.70 13.50 Z"}),(0,t.jsx)("path",{d:"M7.4 7.5 h.01 M7.4 16.5 h.01 M12 7.5 H16 M12 16.5 H16"})]})}]);},8245,e=>{"use strict";var t=e.i(71645);let r=new Set();function n(){for(let e of r)e();}function i(e,t=60){window.requestAnimationFrame(()=>{if((e===null||e===void 0?void 0:e.isConnected)===!0){if(null===e.closest("[inert]"))return void e.focus();t>1&&i(e,t-1);}});}e.s(["restoreModalTriggerFocus",0,i,"useModalInteractionLock",0,function({active:e=!0,initialFocusRef:r}={}){(0,t.useEffect)(()=>{var _t$dataset$keikoModal;if(!e)return;let t=document.documentElement,o=document.activeElement,s=Number((_t$dataset$keikoModal=t.dataset.keikoModalOpenCount)!==null&&_t$dataset$keikoModal!==void 0?_t$dataset$keikoModal:"0");t.dataset.keikoModalOpenCount=String(s+1),t.dataset.keikoModalOpen="true",n();let a=void 0===r?null:window.requestAnimationFrame(()=>{var _r$current;return(_r$current=r.current)===null||_r$current===void 0?void 0:_r$current.focus();});return()=>{var _t$dataset$keikoModal2;null!==a&&window.cancelAnimationFrame(a);let e=Math.max(0,Number((_t$dataset$keikoModal2=t.dataset.keikoModalOpenCount)!==null&&_t$dataset$keikoModal2!==void 0?_t$dataset$keikoModal2:"1")-1);0===e?(delete t.dataset.keikoModalOpenCount,delete t.dataset.keikoModalOpen):t.dataset.keikoModalOpenCount=String(e),n(),i(o);};},[e,r]);},"useModalInteractionLockState",0,function(){return(0,t.useSyncExternalStore)(e=>(r.add(e),()=>{r.delete(e);}),()=>"true"===document.documentElement.dataset.keikoModalOpen,()=>!1);}]);},78025,e=>{"use strict";let t="ATTACHMENT_CLEANUP_DEFERRED",r="SKILL_SELECTION_UNAVAILABLE";e.s(["ATTACHMENT_CLEANUP_DEFERRED_ERROR",0,t,"SKILL_SELECTION_UNAVAILABLE_ERROR",0,r,"chatSessionErrorPresentation",0,function(e){return void 0===e?{kind:"none"}:e===t?{kind:"attachment-cleanup-deferred"}:e===r?{kind:"skill-selection-unavailable"}:{kind:"message",message:e};}]);},58773,12959,48915,e=>{"use strict";let t,r;var n=e.i(71645);function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function o(e,t,r){let n=[];for(let i of Object.keys(e))t.includes(i)||n.push(`${r}.${i} is not allowed`);return n;}e.s(["exactKeys",0,o,"isRecord",0,i],12959);let s=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,a=/^[a-f0-9]{64}$/u,d="#keiko-app-session=";function c(e){if(!e.startsWith(d))return;let t=e.slice(d.length);try{var r,n,c;let e=JSON.parse(decodeURIComponent(t));return(r=e,i(r)&&0===o(r,["requestId","issuedAtMs","claim"],"attestation").length&&"string"==typeof(n=r.requestId)&&n.length<=128&&s.test(n)&&Number.isSafeInteger(r.issuedAtMs)&&Number(r.issuedAtMs)>=0&&"string"==typeof(c=r.claim)&&c.length<=256&&a.test(c))?e:void 0;}catch(e){if(e instanceof SyntaxError||e instanceof URIError)return;throw e;}}e.s(["CODING_APP_SESSION_PAIRING_FRAGMENT_PREFIX",0,d,"decodeCodingAppSessionPairingFragment",0,c],48915);var l=e.i(20081),u=e.i(24541),p=e.i(29835),h=e.i(74952),f=e.i(92215);let x={repairSession:!1};function j(){return{readFragment:()=>window.location.hash,stripFragment:()=>{window.history.replaceState(null,"",window.location.pathname+window.location.search);},postPairing:(e,t)=>(0,f.bffFetchJson)("/api/coding-workbench/app-session/pair",{method:"POST",cache:"no-store",body:JSON.stringify(e),signal:AbortSignal.timeout(15e3)},{...x,correlationId:t}),postLocalSession:e=>(0,f.bffFetchJson)("/api/coding-workbench/app-session/local-session",{method:"POST",cache:"no-store",signal:AbortSignal.timeout(15e3)},{...x,correlationId:e})};}async function m(e=j()){if(void 0===e)return!1;let t=e.readFragment();if(!t.startsWith(d))return!1;e.stripFragment();let r=(0,l.newClientCorrelationId)();try{let n=c(t);if(void 0===n)return!1;return await e.postPairing(n,r),!0;}catch(e){var _ref;return(0,u.reportClientDiagnostic)(`[keiko] local app session pairing failed: ${(0,p.clientErrorSummary)(e)}`,{correlationId:(_ref=(0,p.correlationIdOf)(e))!==null&&_ref!==void 0?_ref:r,errorKind:(0,f.bffRequestErrorKind)(e),errorEvidence:(0,h.clientErrorEvidence)(e)}),!1;}}async function M(e,t){if((e===null||e===void 0?void 0:e.postLocalSession)===void 0)return{repaired:!1,errorKind:"unavailable"};try{return await e.postLocalSession(t),{repaired:!0};}catch(r){let e=(0,f.bffRequestErrorKind)(r);return(0,u.reportClientDiagnostic)(`[keiko] local app session ensure failed: ${(0,p.clientErrorSummary)(r)}`,{correlationId:t,errorKind:e}),{repaired:!1,errorKind:e};}}async function g(e=j()){return(await M(e,(0,l.newClientCorrelationId)())).repaired;}function y(e,t){return void 0===t?e:t.aborted?Promise.reject(t.reason):new Promise((r,n)=>{let i=()=>{t.removeEventListener("abort",i),n(t.reason);};t.addEventListener("abort",i,{once:!0}),e.then(e=>{t.removeEventListener("abort",i),t.aborted?n(t.reason):r(e);},e=>{t.removeEventListener("abort",i),n(e);});});}function v(e){if((e===null||e===void 0?void 0:e.aborted)===!0)return Promise.reject(e.reason);if(void 0===t){let e=(0,l.newClientCorrelationId)();t=M(j(),e).then(t=>t.repaired?{repaired:!0,correlationId:e}:{repaired:!1,correlationId:e,errorKind:t.errorKind}).finally(()=>{t=void 0;});}return y(t,e);}function b(e,t,r){(0,u.reportClientDiagnostic)(`[keiko] ${e} stream session repair: ${r.outcome}`,{correlationId:t,sessionRepairReport:{...r,stream:e}});}async function A(e,t){let r=await v();return b(e,t,r.repaired?{outcome:"repair-acknowledged",repairCorrelationId:r.correlationId}:{outcome:"repair-failed",repairCorrelationId:r.correlationId,errorKind:r.errorKind}),{acknowledged:r.repaired,repairCorrelationId:r.correlationId};}async function O(){let e=await m(),t=await g();return e||t;}function C(){return r!==null&&r!==void 0?r:r=O();}let L=0,w=new Set();function I(e){return w.add(e),()=>{w.delete(e);};}function S(){return L;}function k(){for(let e of(L+=1,w))e();}async function E(e=j()){return await r,!!(await m(e))&&(await g(e),k(),!0);}e.s(["codingAppSessionPairingSettled",0,function(e){return(e===null||e===void 0?void 0:e.aborted)===!0?Promise.reject(e.reason):y(C(),e);},"ensureLocalCodingAppSession",0,g,"notifyCodingAppSessionChanged",0,function(){k();},"redeemCodingAppSessionPairingNavigation",0,E,"redeemCodingAppSessionPairingOnBoot",0,C,"repairLocalCodingAppSessionForStream",0,A,"repairLocalCodingAppSessionWithEvidence",0,v,"reportStreamSessionRecovered",0,function(e,t,r){b(e,t,{outcome:"stream-repaired",repairCorrelationId:r});},"useCodingAppSessionRedemptions",0,function(){return(0,n.useSyncExternalStore)(I,S,()=>0);}],58773);}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90317,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return c;},createAsyncLocalStorage:function(){return d;},createSnapshot:function(){return l;}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw o;}getStore(){}run(){throw o;}exit(){throw o;}enterWith(){throw o;}static bind(e){return e;}}let a="u">typeof globalThis&&globalThis.AsyncLocalStorage;function d(){return a?new a():new s();}function c(e){return a?a.bind(e):s.bind(e);}function l(){return a?a.snapshot():function(e,...t){return e(...t);};}},42344,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n;}});let n=(0,e.r(90317).createAsyncLocalStorage)();},63599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance;}});let n=e.r(42344);},9885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/");}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n;}});},67585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i;}});let n=e.r(32061);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t;}},52157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return d;}});let n=e.r(43476),i=e.r(74080),o=e.r(63599),s=e.r(9885),a=e.r(43369);function d({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e);}}if(0===r.length)return null;let c=(0,a.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null);})});}},69093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c;}});let n=e.r(43476),i=e.r(71645),o=e.r(67585),s=e.r(52157);function a(e){return{default:e&&"default"in e?e.default:e};}let d={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},c=function(e){let t={...d,...e},r=(0,i.lazy)(()=>t.loader().then(a)),c=t.loading;function l(e){let a=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,d=!t.ssr||!!t.loading,l=d?i.Suspense:i.Fragment,u=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(s.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(l,{...(d?{fallback:a}:{}),children:u});}return l.displayName="LoadableComponent",l;};},70703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i;}});let n=e.r(55682)._(e.r(69093));function i(e,t){var _i$loadableGenerated;let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:(_i$loadableGenerated=i.loadableGenerated)===null||_i$loadableGenerated===void 0?void 0:_i$loadableGenerated.modules});}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default);},43545,e=>{"use strict";var t=e.i(57269),r=e.i(47903);let n=Object.freeze({wordWrap:Object.freeze(["off","on","wordWrapColumn","bounded"]),renderWhitespace:Object.freeze(["none","selection","boundary","all"]),externalReload:Object.freeze(["prompt","autoClean","manual"]),largeFileMode:Object.freeze(["default","degraded","readonly"]),gitCommitMessagePolicy:r.GIT_COMMIT_MESSAGE_POLICY_MODES}),i=(0,t.deepFreeze)([{id:"fontSize",type:"integer",defaultValue:13,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",minimum:8,maximum:32,description:"Monaco editor font size in CSS pixels."},{id:"tabSize",type:"integer",defaultValue:2,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",minimum:1,maximum:12,description:"Editor tab width."},{id:"insertSpaces",type:"boolean",defaultValue:!0,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",description:"Insert spaces when indentation is generated."},{id:"wordWrap",type:"enum",defaultValue:"off",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.wordWrap,description:"Monaco word wrapping mode."},{id:"renderWhitespace",type:"enum",defaultValue:"selection",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.renderWhitespace,description:"Whitespace visualization mode."},{id:"minimap",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user"]),effect:"live",security:"safe",description:"Minimap visibility. Workspace overrides are denied to preserve dense layouts."},{id:"formatOnSave",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",description:"Run the existing governed formatter before save."},{id:"externalReload",type:"enum",defaultValue:"prompt",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.externalReload,description:"Clean-buffer external reload behavior; dirty buffers still require choice."},{id:"inlineCompletion",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user"]),effect:"live",security:"policyCeiling",description:"Explicit user opt-in for governed inline AI completion."},{id:"testGeneration",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed AI test generation; generated tests still require human review."},{id:"patchApply",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed AI patch apply; apply remains review-first and never widens delivery authority."},{id:"watcherExclusions",type:"stringArray",defaultValue:Object.freeze([".git/**","node_modules/**","dist/**"]),scopes:Object.freeze(["user","workspace"]),effect:"restart",security:"resourceBounded",maxItems:64,maxItemBytes:256,description:"Bounded root-relative watcher exclusion globs."},{id:"largeFileMode",type:"enum",defaultValue:"default",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",enumValues:n.largeFileMode,description:"Large-file behavior within the existing hard server size limits."},{id:"modelRetentionCount",type:"integer",defaultValue:32,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",minimum:4,maximum:128,description:"Maximum retained clean inactive Monaco models."},{id:"modelRetentionBytes",type:"integer",defaultValue:0x4000000,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",minimum:4194304,maximum:0x10000000,description:"Approximate retained clean inactive Monaco model byte budget."},{id:"keybindingOverrides",type:"stringArray",defaultValue:Object.freeze([]),scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",maxItems:64,maxItemBytes:192,description:"Bounded M7 keyboard shortcut override records."},{id:"debuggingEnabled",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed Node.js/TypeScript debugging."},{id:"gitCommitMessagePolicy",type:"enum",defaultValue:"keiko-conventional",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.gitCommitMessagePolicy,description:"Governed commit-message validation: Keiko Conventional or Repository Native formatting."}]);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function s(e,t){return Object.keys(e).every(e=>t.includes(e));}function a(e){let t=0;for(let r=0;r<e.length;r+=1){var _e$codePointAt;let n=(_e$codePointAt=e.codePointAt(r))!==null&&_e$codePointAt!==void 0?_e$codePointAt:0;n<=127?t+=1:n<=2047?t+=2:n>65535?(t+=4,r+=1):t+=3;}return t;}function d(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=0;}Object.freeze(i.map(e=>e.id)),Object.freeze(["schemaVersion","sequence","kind","revision","userRevision","workspaceRevision","scope","settingIds","storeState"]);let c=/^[a-f0-9]{16,64}$/u;function l(e){return"string"==typeof e&&(0===e.length||4096>=a(e)&&e.length>0&&!e.includes("\0")&&!e.startsWith("/")&&!e.includes("\\")&&!e.split("/").some(e=>""===e||"."===e||".."===e));}function u(e){return"healthy"===e||"degraded"===e||"rescanRequired"===e||"stopped"===e;}function p(e){return"native-watch-unavailable"===e||"unsupported-recursive-watch"===e||"event-overflow"===e||"sequence-gap"===e||"ambiguous-event"===e||"unsafe-path"===e||"root-replaced"===e||"shutdown"===e;}function h(e){return void 0===e||"number"==typeof e&&Number.isFinite(e)&&e>=0;}let f=Object.freeze(["schemaVersion","sequence","health","rootToken","nativeWatcherCount","subscriberCount","queueDepth","replayCapacity","replayOldestSequence","eventCount","requiresSnapshot","degradedReasons"]);function x(e,t,r,n,i,o,s="keiko"){return{id:e,labelKey:t,descriptionKey:`${t}.description`,scope:r,contexts:Object.freeze([...n]),defaultBindings:Object.freeze([...i]),rebindable:o,dispatchOwner:s};}let j=(0,t.deepFreeze)([x("undo","command.undo","global",["global"],["CtrlOrMeta+Z"],!0),x("redo","command.redo","global",["global"],["CtrlOrMeta+Shift+Z"],!0),x("focus-status","command.focusStatus","global",["global"],["Alt+S"],!0),x("focus-workspace-search","command.focusWorkspaceSearch","global",["global"],["CtrlOrMeta+Shift+F"],!0),x("workspace.commands","command.workspaceCommands","global",["global","editor"],["CtrlOrMeta+Shift+P"],!0),x("open-editor-settings","command.openEditorSettings","settings",["settings","editor"],["CtrlOrMeta+,"],!0),x("view.splitRight","command.splitEditorRight","editor",["editor"],["CtrlOrMeta+Alt+\\"],!0),x("view.splitDown","command.splitEditorDown","editor",["editor"],[],!0),x("view.closeSplit","command.closeEditorSplit","editor",["editor"],[],!0),x("tab.next","command.nextEditorTab","editor",["editor"],["CtrlOrMeta+Alt+ArrowRight"],!0),x("tab.prev","command.previousEditorTab","editor",["editor"],["CtrlOrMeta+Alt+ArrowLeft"],!0),x("tab.close","command.closeEditorTab","editor",["editor"],[],!0),x("tab.reopenClosed","command.reopenClosedEditor","editor",["editor"],["CtrlOrMeta+Alt+R"],!0),x("files.saveAll","command.saveAllEditors","editor",["editor"],["CtrlOrMeta+Alt+S"],!0),x("editor.save","command.editorSave","editor",["editor","monaco"],["CtrlOrMeta+S"],!1,"monaco"),x("editor.find","command.editorFind","editor",["editor","monaco"],["CtrlOrMeta+F"],!1,"monaco"),x("editor.format","command.editorFormat","editor",["editor","monaco"],["Shift+Alt+F"],!1,"monaco"),x("editor.renameSymbol","command.editorRenameSymbol","editor",["editor","monaco"],["F2"],!1,"monaco"),x("editor.action.accessibilityHelp","command.editorAccessibilityHelp","editor",["editor","monaco"],["Alt+F1"],!1,"monaco")]),m=Object.freeze(["CtrlOrMeta+Q","CtrlOrMeta+W","CtrlOrMeta+R","CtrlOrMeta+T","CtrlOrMeta+Shift+N"]),M=Object.freeze(["CtrlOrMeta","Ctrl","Meta","Alt","Shift"]);function g(e,t=j){return t.find(t=>t.id===e);}function y(e){var _r$at,_t$,_find;var t;let r=e.split("+").map(e=>e.trim());if(0===r.length||r.some(e=>0===e.length))return;let n=void 0!==b(t=(_r$at=r.at(-1))!==null&&_r$at!==void 0?_r$at:"")||!function(e){if(0===e.length)return!1;for(let t of e)if(!w.has(t))return!1;return!0;}(t)?void 0:1===t.length?t.toUpperCase():((_t$=t[0])===null||_t$===void 0?void 0:_t$.toLowerCase())==="f"&&t.slice(1).split("").every(A)?`F${t.slice(1)}`:(_find=["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","Esc","Space"].find(e=>e.toLowerCase()===t.toLowerCase()))!==null&&_find!==void 0?_find:t;if(void 0===n)return;let i=function(e){let t=[],r=new Set();for(let n of e){let e=b(n);if(void 0===e||r.has(e)||function(e,t){let r=["CtrlOrMeta","Ctrl","Meta"];return!!r.includes(e)&&r.some(r=>r!==e&&t.has(r));}(e,r))return;r.add(e),t.push(e);}return t.sort((e,t)=>M.indexOf(e)-M.indexOf(t)),t;}(r.slice(0,-1));return void 0===i?void 0:[...i,n].join("+");}function v(e){return[...new Set(e.split("+").map(e=>"Ctrl"===e||"Meta"===e?"CtrlOrMeta":e).map(e=>e.toLowerCase()))].join("+");}function b(e){let t=e.toLowerCase();return M.find(e=>e.toLowerCase()===t);}function A(e){return e>="0"&&e<="9";}function O(){return j.flatMap(e=>e.defaultBindings.map(t=>{var _y;return{commandId:e.id,binding:(_y=y(t))!==null&&_y!==void 0?_y:""};}));}function C(e){return function(e,t){try{var r;let n,i,o=g(e.commandId,t);if(void 0===o)return{ok:!1,reasonCode:"UNKNOWN_COMMAND"};if(a(e.binding)>192)return{ok:!1,reasonCode:"INVALID_INPUT"};let s=function(e,t){let r=y(t);if(void 0!==r)return a(L({schemaVersion:"1",commandId:e,binding:r}))>192?void 0:r;}(e.commandId,e.binding);if(void 0===s||!((n=new Set(s.split("+").slice(0,-1))).has("CtrlOrMeta")||n.has("Ctrl")||n.has("Meta")||n.has("Alt")))return{ok:!1,reasonCode:"INVALID_INPUT"};if(!o.rebindable)return{ok:!1,reasonCode:"POLICY_LOCKED"};if(i=v(s),m.some(e=>{let t=y(e);return void 0!==t&&v(t)===i;}))return{ok:!1,reasonCode:"RESERVED_KEYBINDING"};let d=(Array.isArray(e.activeBindings)?e.activeBindings:(r=e.activeBindings,Object.entries(r).map(([e,t])=>({commandId:e,binding:t})))).find(e=>function(e,t,r,n){let i=y(r.binding);if(r.commandId===e.id||void 0===i||v(i)!==v(t))return!1;let o=g(r.commandId,n);return void 0!==o&&function(e,t){if(e.contexts.includes("global")||t.contexts.includes("global")||e.contexts.some(e=>t.contexts.includes(e)))return!0;let r=new Set(["editor","monaco"]);return e.contexts.some(e=>r.has(e))&&t.contexts.some(e=>r.has(e));}(e,o);}(o,s,e,t));return void 0===d?{ok:!0,value:s}:{ok:!1,reasonCode:"KEYBINDING_COLLISION"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}}(e,j);}function L(e){var _y2;return[e.schemaVersion,e.commandId,(_y2=y(e.binding))!==null&&_y2!==void 0?_y2:""].join("|");}let w=new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789,./;'[]`-\\");function S(e,t,r){return{schemaVersion:"1",feature:e,state:t,reasonCode:r,policyResult:"active"===t?"allowed":"denied"};}Object.freeze(["inlineCompletion","testGeneration","patchApply","verification"]),Object.freeze(["allowed","denied"]),Object.freeze(["available","missing"]),Object.freeze(["available","exhausted"]),Object.freeze(["healthy","degraded","unhealthy","unverified"]),Object.freeze(["satisfied","missing"]),Object.freeze(["unset","disabled","enabled"]),Object.freeze([function(e){return e.productSupported?void 0:S(e.feature,"disabled","PRODUCT_UNSUPPORTED");},function(e){return"denied"===e.operatorCeiling||"disabled"===e.legacyFlag?S(e.feature,"denied","OPERATOR_CEILING_DENIED"):void 0;},function(e){return"missing"===e.securityPrerequisites?S(e.feature,"denied","SECURITY_PREREQUISITE_MISSING"):void 0;},function(e){return e.explicitOptIn?void 0:S(e.feature,"available","EXPLICIT_OPT_IN_REQUIRED");},function(e){return"missing"===e.modelCapability?S(e.feature,"degraded","MODEL_CAPABILITY_MISSING"):void 0;},function(e){return"exhausted"===e.budget?S(e.feature,"degraded","BUDGET_UNAVAILABLE"):void 0;},function(e){if("healthy"!==e.providerHealth)return"unverified"===e.providerHealth?S(e.feature,"degraded","PROVIDER_UNVERIFIED"):S(e.feature,"degraded","PROVIDER_UNHEALTHY");}]),e.s(["EDITOR_M7_COMMAND_REGISTRY",0,j,"EDITOR_M7_SCHEMA_VERSION",0,"1","EDITOR_M7_SETTING_REGISTRY",0,i,"defaultEditorM7Settings",0,function(){return Object.freeze(Object.fromEntries(i.map(e=>[e.id,e.defaultValue])));},"parseEditorM7KeybindingOverrides",0,function(e){if(!Array.isArray(e)||e.length>64)return{ok:!1,reasonCode:"OVERSIZED"};let t=O(),r=[],n=new Set();for(let i of e){if("string"!=typeof i)return{ok:!1,reasonCode:"INVALID_INPUT"};let e=function(e){if(a(e)>192)return e;let t=e.split("|");if(3!==t.length||"1"!==t[0])return e;let[,r,n]=t;if("quick-access.files"!==r||void 0===y(n!==null&&n!==void 0?n:""))return"quick-access.commands"===r?[t[0],"workspace.commands",n].join("|"):e;}(i);if(void 0===e)continue;let o=function(e,t=O()){if(a(e)>192)return{ok:!1,reasonCode:"OVERSIZED"};let r=e.split("|");if(3!==r.length||"1"!==r[0])return{ok:!1,reasonCode:"SCHEMA_VERSION_UNSUPPORTED"};let[,n,i]=r,o=C({commandId:n,binding:i,activeBindings:t});return o.ok?{ok:!0,value:{schemaVersion:"1",commandId:n,binding:o.value}}:o;}(e,t);if(!o.ok)return o;if(n.has(o.value.commandId))return{ok:!1,reasonCode:"KEYBINDING_COLLISION"};n.add(o.value.commandId),r.push(o.value),t=[...t.filter(e=>e.commandId!==o.value.commandId),{commandId:o.value.commandId,binding:o.value.binding}];}return{ok:!0,value:Object.freeze(r)};},"parseEditorM7WatchEvent",0,function(e){try{var t,r,n,i,a,f,x,j,m,M;return(r=t=e,o(r)&&s(r,["schemaVersion","sequence","kind","relativePath","oldRelativePath","entryKind","sizeBytes","modifiedAt","metadataHash","health","reason"])&&"1"===r.schemaVersion&&d(r.sequence))?(n=t,("created"===(i=n.kind)||"changed"===i||"deleted"===i||"renamed"===i||"rescan"===i||"overflow"===i)&&l(n.relativePath)&&(a=n.oldRelativePath,void 0===a||l(a))&&(f=n.entryKind,void 0===f||"file"===(x=f)||"directory"===x||"symlink"===x||"unknown"===x)&&h(n.sizeBytes)&&h(n.modifiedAt)&&(j=n.metadataHash,void 0===j||"string"==typeof j&&c.test(j))&&(m=n.health,void 0===m||u(m))&&(M=n.reason,void 0===M||p(M)))?{ok:!0,value:t}:{ok:!1,reasonCode:"UNSAFE_PATH"}:{ok:!1,reasonCode:"INVALID_INPUT"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}},"parseEditorM7WatchSnapshot",0,function(e){try{var t,r,n,i;return(r=t=e,o(r)&&s(r,f)&&"1"===r.schemaVersion&&u(r.health)&&(n=r.rootToken,"string"==typeof n&&c.test(n))&&(i=r,d(i.sequence)&&d(i.nativeWatcherCount)&&d(i.subscriberCount)&&d(i.queueDepth)&&d(i.replayCapacity)&&d(i.replayOldestSequence)&&d(i.eventCount))&&"boolean"==typeof r.requiresSnapshot&&Array.isArray(r.degradedReasons)&&t.degradedReasons.every(p))?{ok:!0,value:{...t,degradedReasons:Object.freeze([...t.degradedReasons])}}:{ok:!1,reasonCode:"INVALID_INPUT"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}},"serializeEditorM7KeybindingOverride",0,L,"validateEditorM7Keybinding",0,C]);},47903,e=>{"use strict";var t=e.i(57269);let r=Object.freeze(["keiko-conventional","repository-native"]),n=Object.freeze(["empty-subject","missing-conventional-prefix","disallowed-type","subject-too-long","missing-issue-key","missing-signoff"]);(0,t.deepFreeze)({conventionalCommit:{enabled:!0,allowedTypes:["feat","fix","chore","docs","refactor","test","build","ci","perf","style","revert"]},requireIssueKey:{enabled:!1,pattern:""},requireSignoff:!1,subjectMaxLength:72}),(0,t.deepFreeze)({conventionalCommit:{enabled:!1,allowedTypes:[]},requireIssueKey:{enabled:!1,pattern:""},requireSignoff:!1,subjectMaxLength:Number.MAX_SAFE_INTEGER});let i=e=>"string"==typeof e&&n.includes(e);e.s(["GIT_COMMIT_MESSAGE_POLICY_MODES",0,r,"GIT_COMMIT_MESSAGE_VIOLATION_CODES",0,n,"isGitCommitMessageViolationCode",0,i]);},17161,e=>{"use strict";var t=e.i(43476);function r({size:e=18,sw:n=1.6,vb:i=24,fill:o,className:s,style:a,children:d,d:c,"aria-hidden":l="true"}){let u=void 0!==o;return(0,t.jsx)("svg",{className:s,width:e,height:e,viewBox:`0 0 ${String(i)} ${String(i)}`,fill:u?o:"none",stroke:u?"none":"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",style:a,"aria-hidden":l,children:void 0!==c?(0,t.jsx)("path",{d:c}):d});}function n(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M13.70 5.00 H17.50 A2.5 2.5 0 0 1 20.00 7.50 V16.50 A2.5 2.5 0 0 1 17.50 19.00 H6.50 A2.5 2.5 0 0 1 4.00 16.50 V7.50 A2.5 2.5 0 0 1 6.50 5.00 H10.30"}),(0,t.jsx)("path",{d:"M8 9.6 L11 12.6 L8 15.6"}),(0,t.jsx)("path",{d:"M12.8 15.6 H16.4"})]});}e.s(["Icons",0,{lock:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"5",y:"10",width:"14",height:"11",rx:"2"}),(0,t.jsx)("path",{d:"M8 10V7a4 4 0 0 1 8 0v3"}),(0,t.jsx)("path",{d:"M12 14v3"})]}),unlock:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"5",y:"10",width:"14",height:"11",rx:"2"}),(0,t.jsx)("path",{d:"M8 10V7a4 4 0 0 1 8 0"}),(0,t.jsx)("path",{d:"M12 14v3"})]}),newChat:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M4 6 H12.5"}),(0,t.jsx)("path",{d:"M4 9.5 H9.5"}),(0,t.jsx)("path",{d:"M14.4 13.6 l4-4 a1.6 1.6 0 0 1 2.3 2.3 l-6.2 6.2 -3 .7 .7 -3 z"})]}),search:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M12.25 4.76 A6 6 0 1 1 8.75 4.76"}),(0,t.jsx)("path",{d:"M14.7 14.7 L20 20"})]}),plugins:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"4",y:"4",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"13.5",y:"4",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"4",y:"13.5",width:"6.5",height:"6.5",rx:"1.5"}),(0,t.jsx)("rect",{x:"13.5",y:"13.5",width:"6.5",height:"6.5",rx:"1.5"})]}),automations:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,t.jsx)("path",{d:"M12 7.5V12l3 2"})]}),mobile:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"7",y:"3",width:"10",height:"18",rx:"2.5"}),(0,t.jsx)("path",{d:"M11 18h2"})]}),folder:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M3.6 7.4 V6.3 a1.5 1.5 0 0 1 1.5-1.5 H8 a1.5 1.5 0 0 1 1.1 .48 L10.3 7.4"}),(0,t.jsx)("path",{d:"M13.50 7.40 H18.00 A2.4 2.4 0 0 1 20.40 9.80 V16.00 A2.4 2.4 0 0 1 18.00 18.40 H6.00 A2.4 2.4 0 0 1 3.60 16.00 V9.80 A2.4 2.4 0 0 1 6.00 7.40 H10.50"})]}),settings:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M 13.02 3.36 L 13.21 3.38 L 13.66 5.82 L 15.20 6.46 L 17.24 5.05 L 18.95 6.76 L 17.54 8.80 L 18.18 10.34 L 20.62 10.79 L 20.62 13.21 L 18.18 13.66 L 17.54 15.20 L 18.95 17.24 L 17.24 18.95 L 15.20 17.54 L 13.66 18.18 L 13.21 20.62 L 10.79 20.62 L 10.34 18.18 L 8.80 17.54 L 6.76 18.95 L 5.05 17.24 L 6.46 15.20 L 5.82 13.66 L 3.38 13.21 L 3.38 10.79 L 5.82 10.34 L 6.46 8.80 L 5.05 6.76 L 6.76 5.05 L 8.80 6.46 L 10.34 5.82 L 10.79 3.38 L 10.98 3.36"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.7"})]}),files:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M5.5 8 V5.5 a1.9 1.9 0 0 1 1.9-1.9 H12.8 L18.5 8.8 V18.5 a1.9 1.9 0 0 1-1.9 1.9 H7.4 a1.9 1.9 0 0 1-1.9-1.9 V11"}),(0,t.jsx)("path",{d:"M12.8 3.6 V7.4 a1.4 1.4 0 0 0 1.4 1.4 H18.5"})]}),browser:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8.5"}),(0,t.jsx)("path",{d:"M3.5 12h17M12 3.5c2.3 2.3 2.3 14.7 0 17M12 3.5c-2.3 2.3-2.3 14.7 0 17"})]}),review:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9 12l2 2 4-4"}),(0,t.jsx)("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2.5"})]}),terminal:e=>(0,t.jsx)(r,{...e,children:(0,t.jsx)(n,{})}),agents:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"5",y:"7",width:"14",height:"11",rx:"3"}),(0,t.jsx)("path",{d:"M12 7V4M9 12h.01M15 12h.01M2.5 12.5v2M21.5 12.5v2"})]}),git:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"6",cy:"6",r:"2.5"}),(0,t.jsx)("circle",{cx:"6",cy:"18",r:"2.5"}),(0,t.jsx)("circle",{cx:"17",cy:"9",r:"2.5"}),(0,t.jsx)("path",{d:"M6 8.5v7M17 11.5c0 3-3 3.5-6 4"})]}),plus:e=>(0,t.jsx)(r,{...e,d:"M12 5v14M5 12h14"}),chevron:e=>(0,t.jsx)(r,{...e,d:"M6 9l6 6 6-6"}),chevronR:e=>(0,t.jsx)(r,{...e,d:"M9 6l6 6-6 6"}),mic:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M12 3.2 a3 3 0 0 1 3 3 V11 a3 3 0 0 1 -6 0 V6.2 a3 3 0 0 1 2 -2.8"}),(0,t.jsx)("path",{d:"M5.5 11.5 a6.5 6.5 0 0 0 13 0 M12 18 v3"})]}),arrowUp:e=>(0,t.jsx)(r,{...e,d:"M12 19V5M6 11l6-6 6 6"}),spark:e=>(0,t.jsx)(r,{...e,d:"M13.2 3.6 L19 10 l-5.2 1.4 L12 17 l-1.8 -5.6 L5 10 l5.2 -1.4 z"}),pin:e=>(0,t.jsx)(r,{...e,d:"M9 3h6l-1 5 3 3-5 1-1 8-1-8-5-1 3-3z"}),brain:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"}),(0,t.jsx)("path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"})]}),brainSlash:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"}),(0,t.jsx)("path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"}),(0,t.jsx)("path",{d:"M3.2 20.4 20.8 3.6"})]}),codingHistory:e=>(0,t.jsx)(r,{...e,d:"M13.2 4.5h6.3v4h-15v-4h6.3M6 8.5v11h12v-11M10 12l-2 2 2 2m4-4 2 2-2 2"}),archive:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.20 5.00 H19.50 A1 1 0 0 1 20.50 6.00 V8.00 A1 1 0 0 1 19.50 9.00 H4.50 A1 1 0 0 1 3.50 8.00 V6.00 A1 1 0 0 1 4.50 5.00 H10.80"}),(0,t.jsx)("path",{d:"M5 9 v8 a2 2 0 0 0 2 2 h10 a2 2 0 0 0 2-2 V9"}),(0,t.jsx)("path",{d:"M10 13 h4"})]}),sidebar:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M9.5 5 V19"})]}),minimize:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M7 14 H10.4"}),(0,t.jsx)("path",{d:"M13.6 14 H17"})]}),expand:e=>(0,t.jsx)(r,{...e,d:"M4 9V4h5M20 15v5h-5M20 9V4h-5M4 15v5h5"}),back:e=>(0,t.jsx)(r,{...e,d:"M15 6l-6 6 6 6"}),fwd:e=>(0,t.jsx)(r,{...e,d:"M9 6l6 6-6 6"}),drag:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"9",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"9",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"9",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"15",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"})]}),close:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M7 7 L10.4 10.4"}),(0,t.jsx)("path",{d:"M17 7 L13.6 10.4"}),(0,t.jsx)("path",{d:"M7 17 L10.4 13.6"}),(0,t.jsx)("path",{d:"M17 17 L13.6 13.6"})]}),dots:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"6",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"18",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"})]}),check:e=>(0,t.jsx)(r,{...e,d:"M5 12.5l4.5 4.5L19 6.5"}),copy:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"8",y:"8",width:"10",height:"10",rx:"2"}),(0,t.jsx)("path",{d:"M6 14 H5.8 A1.8 1.8 0 0 1 4 12.2 V6.8 A1.8 1.8 0 0 1 5.8 5 H11.2 A1.8 1.8 0 0 1 13 6.8 V7"})]}),info:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M14.51 4.96 A8.6 8.6 0 1 1 9.49 4.96"}),(0,t.jsx)("path",{d:"M12 8.2 h.01"}),(0,t.jsx)("path",{d:"M12 11.3 V16.3"})]}),edit:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M4.5 6.5 H13"}),(0,t.jsx)("path",{d:"M4.5 10 H10"}),(0,t.jsx)("path",{d:"M14.4 13.6 l4-4 a1.6 1.6 0 0 1 2.3 2.3 l-6.2 6.2 -3 .7 .7 -3 z"})]}),trash:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M5 7 H19"}),(0,t.jsx)("path",{d:"M9 7 V5.6 A1.6 1.6 0 0 1 10.6 4 H13.4 A1.6 1.6 0 0 1 15 5.6 V7"}),(0,t.jsx)("path",{d:"M17.5 10 L16.8 18.2 A2 2 0 0 1 14.8 20 H9.2 A2 2 0 0 1 7.2 18.2 L6.5 10"}),(0,t.jsx)("path",{d:"M10 11.5 V17"}),(0,t.jsx)("path",{d:"M14 11.5 V17"})]}),reset:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M4 12a8 8 0 1 1 2.3 5.6"}),(0,t.jsx)("path",{d:"M4 20v-4h4"})]}),file:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M5.5 8 V5.5 a1.9 1.9 0 0 1 1.9-1.9 H12.8 L18.5 8.8 V18.5 a1.9 1.9 0 0 1-1.9 1.9 H7.4 a1.9 1.9 0 0 1-1.9-1.9 V11"}),(0,t.jsx)("path",{d:"M12.8 3.6 V7.4 a1.4 1.4 0 0 0 1.4 1.4 H18.5"})]}),diff:e=>(0,t.jsx)(r,{...e,d:"M12 4v6M9 7h6M5 17h14"}),commit:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M12.99 8.75 A3.4 3.4 0 1 1 11.01 8.75"}),(0,t.jsx)("path",{d:"M3 12 H8.6 M15.4 12 H21"})]}),pullRequest:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"6.5",cy:"6",r:"2"}),(0,t.jsx)("circle",{cx:"6.5",cy:"18",r:"2"}),(0,t.jsx)("circle",{cx:"17.5",cy:"18",r:"2"}),(0,t.jsx)("path",{d:"M6.5 8 V16"}),(0,t.jsx)("path",{d:"M17.5 16 V11 A3 3 0 0 0 14.5 8 H11.6"}),(0,t.jsx)("path",{d:"M13.6 6 L11.2 8.4 L13.6 10.8"})]}),merge:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"6.5",cy:"5.5",r:"2"}),(0,t.jsx)("circle",{cx:"17.5",cy:"5.5",r:"2"}),(0,t.jsx)("circle",{cx:"12",cy:"18.5",r:"2"}),(0,t.jsx)("path",{d:"M6.5 7.5 C 6.5 12 9 13.5 12 16.5"}),(0,t.jsx)("path",{d:"M17.5 7.5 C 17.5 12 15 13.5 12 16.5"})]}),download:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M12 4 V15"}),(0,t.jsx)("path",{d:"M7.5 10.5 L12 15 L16.5 10.5"}),(0,t.jsx)("path",{d:"M5 19.5 H19"})]}),code:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M8.5 8 L4.5 12 L8.5 16"}),(0,t.jsx)("path",{d:"M15.5 8 L19.5 12 L15.5 16"}),(0,t.jsx)("path",{d:"M13.5 5.5 L10.5 18.5"})]}),codingWorkbench:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)(n,{}),(0,t.jsx)("path",{d:"M16.4 6.5 L17 8 L18.5 8.6 L17 9.2 L16.4 10.7 L15.8 9.2 L14.3 8.6 L15.8 8 Z"})]}),regenerate:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M6 9.5 A6.8 6.8 0 0 1 18.2 8.2"}),(0,t.jsx)("path",{d:"M18.6 4.2 L18.4 8.4 L14.3 7.7"}),(0,t.jsx)("path",{d:"M18 14.5 A6.8 6.8 0 0 1 5.8 15.8"}),(0,t.jsx)("path",{d:"M5.4 19.8 L5.6 15.6 L9.7 16.3"})]}),external:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M14 4.8 H19.2 V10"}),(0,t.jsx)("path",{d:"M19.2 4.8 L11 13"}),(0,t.jsx)("path",{d:"M17 13.5 V18 a1.6 1.6 0 0 1 -1.6 1.6 H6.6 A1.6 1.6 0 0 1 5 18 V9.2 A1.6 1.6 0 0 1 6.6 7.6 H11"})]}),link:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9.5 14.5 L14.5 9.5"}),(0,t.jsx)("path",{d:"M11 7.8 L12.8 6 a3.4 3.4 0 0 1 4.8 4.8 L15.8 12.6"}),(0,t.jsx)("path",{d:"M13 16.2 L11.2 18 a3.4 3.4 0 0 1 -4.8 -4.8 L8.2 11.4"})]}),branch:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M7.63 4.97 A2.3 2.3 0 1 1 4.37 4.97"}),(0,t.jsx)("circle",{cx:"6",cy:"17.4",r:"2.3"}),(0,t.jsx)("circle",{cx:"17.4",cy:"8.6",r:"2.3"}),(0,t.jsx)("path",{d:"M6 8.9 V15.1"}),(0,t.jsx)("path",{d:"M17.4 10.9 c0 4 -4 3.7 -7 4.7"})]}),cube:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M12 3l8 4.5v9L12 21l-8-4.5v-9z"}),(0,t.jsx)("path",{d:"M12 12l8-4.5M12 12v9M12 12L4 7.5"})]}),maximize:e=>(0,t.jsx)(r,{...e,d:"M13.50 7.00 H15.00 A2 2 0 0 1 17.00 9.00 V15.00 A2 2 0 0 1 15.00 17.00 H9.00 A2 2 0 0 1 7.00 15.00 V9.00 A2 2 0 0 1 9.00 7.00 H10.50"}),restore:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9 9 V8 a2 2 0 0 1 2 -2 h6 a2 2 0 0 1 2 2 v6 a2 2 0 0 1 -2 2 h-1"}),(0,t.jsx)("path",{d:"M11.50 9.00 H13.00 A2 2 0 0 1 15.00 11.00 V17.00 A2 2 0 0 1 13.00 19.00 H7.00 A2 2 0 0 1 5.00 17.00 V11.00 A2 2 0 0 1 7.00 9.00 H8.50"})]}),split:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M12 5 V19"})]}),tile:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M8.10 4.50 H9.00 A1.5 1.5 0 0 1 10.50 6.00 V10.00 A1.5 1.5 0 0 1 9.00 11.50 H5.00 A1.5 1.5 0 0 1 3.50 10.00 V6.00 A1.5 1.5 0 0 1 5.00 4.50 H5.90"}),(0,t.jsx)("path",{d:"M15.00 4.50 H19.00 A1.5 1.5 0 0 1 20.50 6.00 V10.00 A1.5 1.5 0 0 1 19.00 11.50 H15.00 A1.5 1.5 0 0 1 13.50 10.00 V6.00 A1.5 1.5 0 0 1 15.00 4.50 Z"}),(0,t.jsx)("path",{d:"M5.00 13.50 H9.00 A1.5 1.5 0 0 1 10.50 15.00 V19.00 A1.5 1.5 0 0 1 9.00 20.50 H5.00 A1.5 1.5 0 0 1 3.50 19.00 V15.00 A1.5 1.5 0 0 1 5.00 13.50 Z"}),(0,t.jsx)("path",{d:"M15.00 13.50 H19.00 A1.5 1.5 0 0 1 20.50 15.00 V19.00 A1.5 1.5 0 0 1 19.00 20.50 H15.00 A1.5 1.5 0 0 1 13.50 19.00 V15.00 A1.5 1.5 0 0 1 15.00 13.50 Z"})]}),cascade:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"4",y:"4",width:"12",height:"12",rx:"2"}),(0,t.jsx)("path",{d:"M20 8v10a2 2 0 0 1-2 2H8"})]}),editor:e=>(0,t.jsx)(r,{...e,children:(0,t.jsx)("path",{d:"M8 9l-3 3 3 3M16 9l3 3-3 3M13.5 6l-3 12"})}),gear:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.6"}),(0,t.jsx)("path",{d:"M12 3.5v2M12 18.5v2M20.5 12h-2M5.5 12h-2M18 6l-1.4 1.4M7.4 16.6 6 18M18 18l-1.4-1.4M7.4 7.4 6 6"})]}),panelRight:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M14.5 5 V19"})]}),panelDown:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,t.jsx)("path",{d:"M5 14.5 H19"})]}),layers:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.4 4.55 L19.6 8 L12 12.2 L4.4 8 L10.6 4.55"}),(0,t.jsx)("path",{d:"M4.4 12 L12 16.2 L19.6 12"}),(0,t.jsx)("path",{d:"M4.4 16 L12 20.2 L19.6 16"})]}),tokens:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"9",cy:"9",r:"4.5"}),(0,t.jsx)("path",{d:"M14 9.5a4.5 4.5 0 1 1-4 6.9"})]}),bolt:e=>(0,t.jsx)(r,{...e,d:"M13 3 5 13h5l-1 8 8-10h-5z"}),add:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"3.5"}),(0,t.jsx)("path",{d:"M12 8.5v7M8.5 12h7"})]}),bell:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M9.8 4.6 a5.5 5.5 0 0 1 7.7 4.4 c0 4.5 2 5.5 2 5.5 H4.5 s2 -1 2 -5.5 a5.5 5.5 0 0 1 1.1 -3.3"}),(0,t.jsx)("path",{d:"M10 19 a2 2 0 0 0 4 0"})]}),sun:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.17 8.17 A4 4 0 1 1 10.83 8.17"}),(0,t.jsx)("path",{d:"M12 2.5 V5 M12 19 V21.5 M2.5 12 H5 M19 12 H21.5 M5.1 5.1 L6.9 6.9 M17.1 17.1 l1.8 1.8 M18.9 5.1 L17.1 6.9 M6.9 17.1 L5.1 18.9"})]}),moon:e=>(0,t.jsx)(r,{...e,d:"M19.5 13.5 A8 8 0 1 1 10.5 4.2 a6.5 6.5 0 0 0 9.3 9.1"}),zoomOut:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"M20 20l-4.2-4.2M8.3 11h5.4"})]}),zoomIn:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"M20 20l-4.2-4.2M11 8.3v5.4M8.3 11h5.4"})]}),activity:e=>(0,t.jsx)(r,{...e,d:"M3 12h3l2.5-7 5 14 2.5-7H21"}),user:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.35 4.66 A3.6 3.6 0 1 1 10.65 4.66"}),(0,t.jsx)("path",{d:"M5.5 20 c.9 -3.7 3.4 -5.5 6.5 -5.5 s5.6 1.8 6.5 5.5"})]}),localKnowledge:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M4 19V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12"}),(0,t.jsx)("path",{d:"M4 19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2"}),(0,t.jsx)("path",{d:"M9 7v14M9 11h6"})]}),server:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M13.30 4.50 H18.30 A1.7 1.7 0 0 1 20.00 6.20 V8.80 A1.7 1.7 0 0 1 18.30 10.50 H5.70 A1.7 1.7 0 0 1 4.00 8.80 V6.20 A1.7 1.7 0 0 1 5.70 4.50 H10.70"}),(0,t.jsx)("path",{d:"M5.70 13.50 H18.30 A1.7 1.7 0 0 1 20.00 15.20 V17.80 A1.7 1.7 0 0 1 18.30 19.50 H5.70 A1.7 1.7 0 0 1 4.00 17.80 V15.20 A1.7 1.7 0 0 1 5.70 13.50 Z"}),(0,t.jsx)("path",{d:"M7.4 7.5 h.01 M7.4 16.5 h.01 M12 7.5 H16 M12 16.5 H16"})]})}]);},8245,e=>{"use strict";var t=e.i(71645);let r=new Set();function n(){for(let e of r)e();}function i(e,t=60){window.requestAnimationFrame(()=>{if((e===null||e===void 0?void 0:e.isConnected)===!0){if(null===e.closest("[inert]"))return void e.focus();t>1&&i(e,t-1);}});}e.s(["restoreModalTriggerFocus",0,i,"useModalInteractionLock",0,function({active:e=!0,initialFocusRef:r}={}){(0,t.useEffect)(()=>{var _t$dataset$keikoModal;if(!e)return;let t=document.documentElement,o=document.activeElement,s=Number((_t$dataset$keikoModal=t.dataset.keikoModalOpenCount)!==null&&_t$dataset$keikoModal!==void 0?_t$dataset$keikoModal:"0");t.dataset.keikoModalOpenCount=String(s+1),t.dataset.keikoModalOpen="true",n();let a=void 0===r?null:window.requestAnimationFrame(()=>{var _r$current;return(_r$current=r.current)===null||_r$current===void 0?void 0:_r$current.focus();});return()=>{var _t$dataset$keikoModal2;null!==a&&window.cancelAnimationFrame(a);let e=Math.max(0,Number((_t$dataset$keikoModal2=t.dataset.keikoModalOpenCount)!==null&&_t$dataset$keikoModal2!==void 0?_t$dataset$keikoModal2:"1")-1);0===e?(delete t.dataset.keikoModalOpenCount,delete t.dataset.keikoModalOpen):t.dataset.keikoModalOpenCount=String(e),n(),i(o);};},[e,r]);},"useModalInteractionLockState",0,function(){return(0,t.useSyncExternalStore)(e=>(r.add(e),()=>{r.delete(e);}),()=>"true"===document.documentElement.dataset.keikoModalOpen,()=>!1);}]);},78025,e=>{"use strict";let t="DRAFT_ATTACHMENTS_UNSAVED",r="ATTACHMENT_CLEANUP_DEFERRED",n="SKILL_SELECTION_UNAVAILABLE";e.s(["ATTACHMENT_CLEANUP_DEFERRED_ERROR",0,r,"DRAFT_ATTACHMENTS_UNSAVED_ERROR",0,t,"SKILL_SELECTION_UNAVAILABLE_ERROR",0,n,"chatSessionErrorPresentation",0,function(e){return e===t?{kind:"draft-attachments-unsaved"}:void 0===e?{kind:"none"}:e===r?{kind:"attachment-cleanup-deferred"}:e===n?{kind:"skill-selection-unavailable"}:{kind:"message",message:e};}]);},58773,12959,48915,e=>{"use strict";let t,r;var n=e.i(71645);function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function o(e,t,r){let n=[];for(let i of Object.keys(e))t.includes(i)||n.push(`${r}.${i} is not allowed`);return n;}e.s(["exactKeys",0,o,"isRecord",0,i],12959);let s=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,a=/^[a-f0-9]{64}$/u,d="#keiko-app-session=";function c(e){if(!e.startsWith(d))return;let t=e.slice(d.length);try{var r,n,c;let e=JSON.parse(decodeURIComponent(t));return(r=e,i(r)&&0===o(r,["requestId","issuedAtMs","claim"],"attestation").length&&"string"==typeof(n=r.requestId)&&n.length<=128&&s.test(n)&&Number.isSafeInteger(r.issuedAtMs)&&Number(r.issuedAtMs)>=0&&"string"==typeof(c=r.claim)&&c.length<=256&&a.test(c))?e:void 0;}catch(e){if(e instanceof SyntaxError||e instanceof URIError)return;throw e;}}e.s(["CODING_APP_SESSION_PAIRING_FRAGMENT_PREFIX",0,d,"decodeCodingAppSessionPairingFragment",0,c],48915);var l=e.i(20081),u=e.i(24541),p=e.i(29835),h=e.i(74952),f=e.i(92215);let x={repairSession:!1};function j(){return{readFragment:()=>window.location.hash,stripFragment:()=>{window.history.replaceState(null,"",window.location.pathname+window.location.search);},postPairing:(e,t)=>(0,f.bffFetchJson)("/api/coding-workbench/app-session/pair",{method:"POST",cache:"no-store",body:JSON.stringify(e),signal:AbortSignal.timeout(15e3)},{...x,correlationId:t}),postLocalSession:e=>(0,f.bffFetchJson)("/api/coding-workbench/app-session/local-session",{method:"POST",cache:"no-store",signal:AbortSignal.timeout(15e3)},{...x,correlationId:e})};}async function m(e=j()){if(void 0===e)return!1;let t=e.readFragment();if(!t.startsWith(d))return!1;e.stripFragment();let r=(0,l.newClientCorrelationId)();try{let n=c(t);if(void 0===n)return!1;return await e.postPairing(n,r),!0;}catch(e){var _ref;return(0,u.reportClientDiagnostic)(`[keiko] local app session pairing failed: ${(0,p.clientErrorSummary)(e)}`,{correlationId:(_ref=(0,p.correlationIdOf)(e))!==null&&_ref!==void 0?_ref:r,errorKind:(0,f.bffRequestErrorKind)(e),errorEvidence:(0,h.clientErrorEvidence)(e)}),!1;}}async function M(e,t){if((e===null||e===void 0?void 0:e.postLocalSession)===void 0)return{repaired:!1,errorKind:"unavailable"};try{return await e.postLocalSession(t),{repaired:!0};}catch(r){let e=(0,f.bffRequestErrorKind)(r);return(0,u.reportClientDiagnostic)(`[keiko] local app session ensure failed: ${(0,p.clientErrorSummary)(r)}`,{correlationId:t,errorKind:e}),{repaired:!1,errorKind:e};}}async function g(e=j()){return(await M(e,(0,l.newClientCorrelationId)())).repaired;}function y(e,t){return void 0===t?e:t.aborted?Promise.reject(t.reason):new Promise((r,n)=>{let i=()=>{t.removeEventListener("abort",i),n(t.reason);};t.addEventListener("abort",i,{once:!0}),e.then(e=>{t.removeEventListener("abort",i),t.aborted?n(t.reason):r(e);},e=>{t.removeEventListener("abort",i),n(e);});});}function v(e){if((e===null||e===void 0?void 0:e.aborted)===!0)return Promise.reject(e.reason);if(void 0===t){let e=(0,l.newClientCorrelationId)();t=M(j(),e).then(t=>t.repaired?{repaired:!0,correlationId:e}:{repaired:!1,correlationId:e,errorKind:t.errorKind}).finally(()=>{t=void 0;});}return y(t,e);}function b(e,t,r){(0,u.reportClientDiagnostic)(`[keiko] ${e} stream session repair: ${r.outcome}`,{correlationId:t,sessionRepairReport:{...r,stream:e}});}async function A(e,t){let r=await v();return b(e,t,r.repaired?{outcome:"repair-acknowledged",repairCorrelationId:r.correlationId}:{outcome:"repair-failed",repairCorrelationId:r.correlationId,errorKind:r.errorKind}),{acknowledged:r.repaired,repairCorrelationId:r.correlationId};}async function O(){let e=await m(),t=await g();return e||t;}function C(){return r!==null&&r!==void 0?r:r=O();}let L=0,w=new Set();function S(e){return w.add(e),()=>{w.delete(e);};}function I(){return L;}function k(){for(let e of(L+=1,w))e();}async function E(e=j()){return await r,!!(await m(e))&&(await g(e),k(),!0);}e.s(["codingAppSessionPairingSettled",0,function(e){return(e===null||e===void 0?void 0:e.aborted)===!0?Promise.reject(e.reason):y(C(),e);},"ensureLocalCodingAppSession",0,g,"notifyCodingAppSessionChanged",0,function(){k();},"redeemCodingAppSessionPairingNavigation",0,E,"redeemCodingAppSessionPairingOnBoot",0,C,"repairLocalCodingAppSessionForStream",0,A,"repairLocalCodingAppSessionWithEvidence",0,v,"reportStreamSessionRecovered",0,function(e,t,r){b(e,t,{outcome:"stream-repaired",repairCorrelationId:r});},"useCodingAppSessionRedemptions",0,function(){return(0,n.useSyncExternalStore)(S,I,()=>0);}],58773);}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,48805,e=>{e.v({cmpMenuEmpty:"KeikoSelect-module__cg1rHa__cmpMenuEmpty",cmpMenuSearch:"KeikoSelect-module__cg1rHa__cmpMenuSearch",cmpSearchControl:"KeikoSelect-module__cg1rHa__cmpSearchControl",cmpViewportMenu:"KeikoSelect-module__cg1rHa__cmpViewportMenu",cmpViewportMenuScroll:"KeikoSelect-module__cg1rHa__cmpViewportMenuScroll"});},67914,30644,e=>{"use strict";var n=e.i(43476),t=e.i(71645),r=e.i(74080),a=e.i(24541),i=e.i(50850),s=e.i(48805),l=e.i(17161);function o(e){let n=Math.max(0,Math.min(e.width,e.viewportWidth-32)),t=Math.max(0,e.anchor.top-16-e.gap),r=Math.max(0,e.viewportHeight-e.anchor.bottom-16-e.gap),a=e.preferUp?t>=Math.min(e.height,96)||t>=r:r<e.height&&t>r,i=Math.max(0,Math.min(e.height,a?t:r,e.viewportHeight-32));return{left:Math.max(16,Math.min(e.anchor.left,e.viewportWidth-n-16)),top:Math.max(16,Math.min(a?e.anchor.top-e.gap-i:e.anchor.bottom+e.gap,e.viewportHeight-16-i)),width:n,maxHeight:i,openUp:a};}e.s(["viewportOverlayPosition",0,o],30644);let c=l.Icons.search,d="keiko:select-open";function p(e){var _e$closest;return(_e$closest=e===null||e===void 0?void 0:e.closest("dialog[open]"))!==null&&_e$closest!==void 0?_e$closest:document.body;}function u(e){return e.findIndex(e=>!0!==e.disabled);}function h(e,n,t){if(0===e.length)return-1;for(let r of e.keys()){var _e$a;let a=(n+(r+1)*t+e.length)%e.length;if(((_e$a=e[a])===null||_e$a===void 0?void 0:_e$a.disabled)!==!0)return a;}return-1;}function m(e,n){let t=e.toLocaleLowerCase();return t===n?0:t.startsWith(n)?1:2;}function f(e,n){let t=n.trim().toLocaleLowerCase();return""===t?e:e.map(e=>({...e,options:e.options.filter(e=>e.label.toLocaleLowerCase().includes(t)).sort((e,n)=>m(e.label,t)-m(n.label,t))}));}function g({active:e,index:a,onCommit:i,onOptionKeyDown:s,option:l,selected:o,setOptionRef:c}){let d=(0,t.useRef)(null),u=(0,t.useRef)(null),h=(0,t.useRef)(null),[m,f]=(0,t.useState)(null),x=()=>{null!==h.current&&(clearTimeout(h.current),h.current=null),f(null);},j=()=>{null!==h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{let e=u.current,n=d.current;if(null===e||null===n||e.scrollWidth<=e.clientWidth)return;let t=n.getBoundingClientRect(),r=Math.min(520,window.innerWidth-32),a=t.right+8+r<=window.innerWidth-16?"top-left":"top-right";f({left:"top-left"===a?t.right+8:t.left-8,placement:a,top:t.top-6});},1500);};return(0,t.useEffect)(()=>x,[]),(0,n.jsxs)("button",{ref:e=>{d.current=e,c(a,e);},"aria-label":[l.label,l.description,l.badge].filter(e=>void 0!==e&&e.trim().length>0).join(", "),"aria-selected":o,className:`ksel-option${e?" ksel-option-active":""}`,"data-disabled":!0===l.disabled?"true":void 0,disabled:l.disabled,onBlur:x,onClick:()=>i(l),onFocus:j,onKeyDown:e=>s(e,a),onPointerEnter:j,onPointerLeave:x,role:"option",type:"button",children:[(0,n.jsxs)("span",{className:"ksel-option-copy",children:[(0,n.jsx)("span",{className:"ksel-option-label",ref:u,children:l.label}),void 0!==l.description?(0,n.jsx)("span",{className:"ksel-option-desc",children:l.description}):null]}),void 0!==l.badge?(0,n.jsx)("span",{className:"ksel-option-badge",children:l.badge}):null,null!==m?(0,r.createPortal)((0,n.jsx)("div",{className:"ksel-overflow-tooltip","data-placement":m.placement,role:"tooltip",style:{left:`${m.left.toString()}px`,top:`${m.top.toString()}px`},children:l.label}),p(d.current)):null]});}function x({activeIndex:e,flatOptions:t,menuId:r,onCommit:a,onOptionKeyDown:i,section:s,sectionIndex:l,selectedIndex:o,setOptionRef:c}){let d=void 0!==s.label?`${r}-section-${l.toString()}`:void 0;return(0,n.jsxs)("div",{className:"ksel-section",role:void 0!==s.label?"group":"presentation","aria-labelledby":d,children:[void 0!==s.label?(0,n.jsx)("div",{className:"ksel-section-label",id:d,children:s.label}):null,s.options.map(r=>{var _s$label;let l=t.findIndex(e=>e.value===r.value&&e.sectionLabel===s.label),d=t[l];return void 0===d?null:(0,n.jsx)(g,{active:l===e,index:l,onCommit:a,onOptionKeyDown:i,option:d,selected:l===o,setOptionRef:c},`${(_s$label=s.label)!==null&&_s$label!==void 0?_s$label:"section"}-${r.value}`);})]});}function j({search:e}){return void 0===e?null:(0,n.jsx)("div",{className:s.default.cmpMenuSearch,children:(0,n.jsxs)("div",{className:`c-combo-input ${s.default.cmpSearchControl}`,children:[(0,n.jsx)(c,{size:15}),(0,n.jsx)("input",{ref:e.inputRef,type:"search","aria-label":e.placeholder,placeholder:e.placeholder,value:e.query,onChange:n=>{e.onChange(n.currentTarget.value);},onKeyDown:e.onKeyDown})]})});}function y({search:e,visible:t}){return t&&(e===null||e===void 0?void 0:e.emptyLabel)!==void 0?(0,n.jsx)("p",{className:s.default.cmpMenuEmpty,children:e.emptyLabel}):null;}function v({activeIndex:e,ariaLabel:t,flatOptions:a,menuClassName:i,menuCountLabel:l,menuId:o,menuLabel:c,menuRef:d,menuTitle:p,onCommit:u,onKeyDownCapture:h,onOptionKeyDown:m,placeholder:f,portalRoot:g,position:b,selectedIndex:E,sections:w,search:N,setOptionRef:k,showMenuHeader:S}){var _ref;return(0,r.createPortal)((0,n.jsxs)("div",{ref:d,onKeyDownCapture:h,className:["ksel-menu",s.default.cmpViewportMenu,b.attached?"ksel-menu-attached":"",b.openUp?"ksel-menu-open-up":"ksel-menu-open-down",i!==null&&i!==void 0?i:""].filter(e=>void 0!==e&&e.length>0).join(" "),style:{left:`${b.left.toString()}px`,top:`${b.top.toString()}px`,width:`${b.width.toString()}px`,"--ksel-option-height":`${b.optionHeight.toString()}px`,fontFamily:b.fontFamily,fontSize:b.fontSize,fontWeight:b.fontWeight,letterSpacing:b.letterSpacing,lineHeight:b.lineHeight,maxHeight:Math.max(0,window.innerHeight-b.top-16)},children:[S?(0,n.jsxs)("div",{className:"ksel-menu-head",children:[(0,n.jsx)("div",{className:"ksel-menu-title",children:(_ref=p!==null&&p!==void 0?p:t)!==null&&_ref!==void 0?_ref:f}),(0,n.jsx)("div",{className:"ksel-menu-note",children:l!==null&&l!==void 0?l:`${a.length.toString()} options`})]}):null,(0,n.jsx)(j,{search:N}),(0,n.jsxs)("div",{className:`ksel-menu-scroll ${s.default.cmpViewportMenuScroll}`,role:"listbox",id:o,"aria-label":c,style:{maxHeight:`${b.maxHeight.toString()}px`},children:[w.map((t,r)=>{var _t$label;return(0,n.jsx)(x,{activeIndex:e,flatOptions:a,menuId:o,onCommit:u,onOptionKeyDown:m,section:t,sectionIndex:r,selectedIndex:E,setOptionRef:k},`${(_t$label=t.label)!==null&&_t$label!==void 0?_t$label:"section"}-${r.toString()}`);}),(0,n.jsx)(y,{search:N,visible:0===a.length})]})]}),g);}e.s(["default",0,function({value:e,sections:r,onValueChange:s,onOpen:l,disabled:c=!1,placeholder:m,ariaLabel:g,ariaDescribedBy:x,ariaLabelledBy:j,triggerClassName:y,triggerTitle:b,menuClassName:E,menuTitle:w,menuCountLabel:N,showMenuHeader:k=!0,leadingVisual:S,mono:C=!1,showChevron:L=!0,menuMinWidth:M,menuPopoverMinWidth:I,menuPopoverMaxHeight:T,menuPlacement:$="auto",searchPlaceholder:D,searchEmptyLabel:_,attached:R=!0,triggerStyle:F,autoFocus:P=!1}){var _ea$label,_ea$description,_ref2,_H$triggerClassName,_H$position;var H;let A=(0,i.useTranslate)(),z=(0,t.useRef)(null),K=(0,t.useRef)(null),W=(0,t.useRef)(null),B=(0,t.useRef)([]),U=(0,t.useId)(),[V,O]=(0,t.useState)(!1),[q,Y]=(0,t.useState)(-1),[G,J]=(0,t.useState)(null),[Q,X]=(0,t.useState)(!1),[Z,ee]=(0,t.useState)(""),en=(0,t.useMemo)(()=>f(r,Z),[Z,r]),et=(0,t.useMemo)(()=>en.flatMap((e,n)=>e.options.map((t,r)=>{var _e$label;return{...t,key:`${(_e$label=e.label)!==null&&_e$label!==void 0?_e$label:"section"}-${n.toString()}-${t.value}-${r.toString()}`,sectionLabel:e.label};})),[en]),er=et.findIndex(n=>n.value===e),ea=r.flatMap(e=>e.options).find(n=>n.value===e),ei=m!==null&&m!==void 0?m:A("select.placeholder"),es=(_ea$label=ea===null||ea===void 0?void 0:ea.label)!==null&&_ea$label!==void 0?_ea$label:ei,el=(_ea$description=ea===null||ea===void 0?void 0:ea.description)!==null&&_ea$description!==void 0?_ea$description:null,eo=(_ref2=w!==null&&w!==void 0?w:g)!==null&&_ref2!==void 0?_ref2:ei,ec=(0,t.useCallback)(()=>{O(!1),Y(-1),ee("");},[]),ed=e=>{var _et$e,_et$er;if(c||0===et.length)return;let n=void 0!==e&&((_et$e=et[e])===null||_et$e===void 0?void 0:_et$e.disabled)!==!0?e:er>=0&&((_et$er=et[er])===null||_et$er===void 0?void 0:_et$er.disabled)!==!0?er:u(et);window.dispatchEvent(new Event(d)),O(!0),Y(n),ee(""),l===null||l===void 0?void 0:l();};(0,t.useEffect)(()=>(window.addEventListener(d,ec),()=>{window.removeEventListener(d,ec);}),[ec]),(0,t.useEffect)(()=>{if(!V)return;let e=e=>{let n=e.target;null!==z.current&&n instanceof Node&&z.current.contains(n)||null!==K.current&&n instanceof Node&&K.current.contains(n)||ec();},n=()=>ec();return window.addEventListener("pointerdown",e,!0),window.addEventListener("blur",n),()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("blur",n);};},[ec,V]),(0,t.useLayoutEffect)(()=>{if(!V||null===z.current)return;let e={menuMinWidth:M,menuPopoverMinWidth:I,menuPopoverMaxHeight:T,chromeReserve:50*!!k+46*(void 0!==D)+2},n=()=>{var _e$menuPopoverMinWidt,_e$menuPopoverMaxHeig;let n=z.current;if(null===n)return;let t=n.getBoundingClientRect(),r=Math.min(Math.max(void 0!==e.menuMinWidth&&t.width<Math.min(e.menuMinWidth,96)?e.menuMinWidth:t.width,(_e$menuPopoverMinWidt=e.menuPopoverMinWidth)!==null&&_e$menuPopoverMinWidt!==void 0?_e$menuPopoverMinWidt:0),window.innerWidth-32),a=R&&1>Math.abs(r-t.width),i=o({anchor:t,width:r,height:((_e$menuPopoverMaxHeig=e.menuPopoverMaxHeight)!==null&&_e$menuPopoverMaxHeig!==void 0?_e$menuPopoverMaxHeig:380)+e.chromeReserve,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,gap:a?-1:6,preferUp:"up"===$});X(i.openUp);let s=Math.max(0,i.maxHeight-e.chromeReserve),l=window.getComputedStyle(n);J({left:i.left,width:r,top:i.top,optionHeight:Math.max(28,Math.min(t.height,30)),maxHeight:s,openUp:i.openUp,attached:a,fontFamily:l.fontFamily,fontSize:l.fontSize,fontWeight:l.fontWeight,letterSpacing:l.letterSpacing,lineHeight:l.lineHeight});};return n(),window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("resize",n),window.removeEventListener("scroll",n,!0);};},[V,R,M,I,T,$,D,k]),(0,t.useLayoutEffect)(()=>{if(!V||null===G||!G.openUp||null===z.current||null===K.current)return;let e=z.current.getBoundingClientRect(),n=K.current.getBoundingClientRect();if(n.height<=0)return;let t=G.attached?-1:6,r=Math.max(16,e.top-n.height-t);.5>Math.abs(r-G.top)||J(e=>null===e?e:{...e,top:r});},[V,G,et.length]);let ep=V&&null!==G;function eu(e){var _z$current;e.disabled||(s(e.value),ec(),(_z$current=z.current)===null||_z$current===void 0?void 0:_z$current.focus());}function eh(e,n){var _z$current2;n.preventDefault(),n.stopPropagation(),ec(),(_z$current2=z.current)!==null&&_z$current2!==void 0&&_z$current2.focus(),(0,a.reportClientDiagnostic)(`[keiko] select menu dismissed by Escape (focus=${e})`,{kind:"other",selectDismissal:{reason:"escape",focus:e}});}(0,t.useEffect)(()=>{var _W$current;ep&&void 0!==D&&((_W$current=W.current)===null||_W$current===void 0?void 0:_W$current.focus());},[ep,D]),(0,t.useEffect)(()=>{var _B$current$q,_B$current$q2;!ep||q<0||(void 0===D||document.activeElement!==W.current)&&((_B$current$q=B.current[q])!==null&&_B$current$q!==void 0&&_B$current$q.focus(),(_B$current$q2=B.current[q])===null||_B$current$q2===void 0?void 0:_B$current$q2.scrollIntoView({block:"nearest"}));},[ep,q,D]),(0,t.useEffect)(()=>{if(!V)return;let e=e=>{if("Escape"===e.key){var _z$current3;ec(),(_z$current3=z.current)===null||_z$current3===void 0?void 0:_z$current3.focus();return;}if(1===e.key.length&&!e.metaKey&&!e.ctrlKey&&!e.altKey){var n;if((n=e.target)instanceof HTMLElement&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SELECT"===n.tagName||n.isContentEditable))return;let t=function(e,n,t){for(let r=1;r<=e.length;r+=1){let a=(n+r)%e.length,i=e[a];if(void 0!==i&&!0!==i.disabled&&i.label.toLowerCase().startsWith(t))return a;}return-1;}(et,q>=0?q:Math.max(er,0),e.key.toLowerCase());-1!==t&&Y(t);}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);},[V,q,ec,et,er]);let em=["ksel-trigger",(H={disabled:c,mono:C,open:V,openUp:Q,position:G,triggerClassName:y}).mono?"mono":"",(_H$triggerClassName=H.triggerClassName)!==null&&_H$triggerClassName!==void 0?_H$triggerClassName:"",H.open?"ksel-trigger-open":"",H.open&&((_H$position=H.position)===null||_H$position===void 0?void 0:_H$position.attached)===!0?H.openUp?"ksel-trigger-open-up":"ksel-trigger-open-down":"",H.disabled?"ksel-trigger-disabled":""].filter(e=>void 0!==e&&e.length>0).join(" "),ef=V&&null!==G?(0,n.jsx)(v,{activeIndex:q,ariaLabel:g,flatOptions:et,menuClassName:E,menuCountLabel:N,menuId:U,menuLabel:eo,menuRef:K,menuTitle:w,onCommit:eu,onKeyDownCapture:function(e){if("Escape"!==e.key)return;let n=e.target;n===W.current?eh("search",e):n instanceof Element&&null!==n.closest('[role="option"]')?eh("option",e):eh("menu",e);},onOptionKeyDown:function(e,n){if("Tab"===e.key){var _z$current4;e.preventDefault(),ec(),(_z$current4=z.current)===null||_z$current4===void 0?void 0:_z$current4.focus();return;}if("ArrowDown"===e.key){e.preventDefault(),Y(h(et,n,1));return;}if("ArrowUp"===e.key){e.preventDefault(),Y(h(et,n,-1));return;}if("Home"===e.key){e.preventDefault(),Y(u(et));return;}if("End"===e.key){e.preventDefault(),Y(h(et,0,-1));return;}if("Enter"===e.key||" "===e.key){e.preventDefault();let t=et[n];void 0!==t&&eu(t);}},placeholder:m,portalRoot:p(z.current),position:G,selectedIndex:er,sections:en,search:void 0===D?void 0:{placeholder:D,query:Z,emptyLabel:_,inputRef:W,onChange:e=>{ee(e),Y(f(r,e).flatMap(e=>e.options).findIndex(e=>!0!==e.disabled));},onKeyDown:function(e){if("ArrowDown"===e.key){var _B$current$n;e.preventDefault();let n=u(et);Y(n),(_B$current$n=B.current[n])===null||_B$current$n===void 0?void 0:_B$current$n.focus();}else if("Enter"===e.key){e.preventDefault();let n=et[u(et)];void 0!==n&&eu(n);}}},setOptionRef:(e,n)=>{B.current[e]=n;},showMenuHeader:k}):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{ref:z,"aria-controls":U,"aria-describedby":x,"aria-expanded":V,"aria-haspopup":"listbox","aria-label":g,"aria-labelledby":j,autoFocus:P,className:em,disabled:c,onClick:()=>{V?ec():ed();},onKeyDown:function(e){if(!c){if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault(),ed(er>=0?er:u(et));return;}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),V?ec():ed());}},onKeyDownCapture:e=>{V&&"Escape"===e.key&&eh("trigger",e);},role:"combobox",style:F,title:b,type:"button",children:[void 0!==S?(0,n.jsx)("span",{className:"ksel-trigger-leading",children:S}):null,(0,n.jsxs)("span",{className:"ksel-trigger-copy",children:[(0,n.jsx)("span",{className:"ksel-trigger-label",children:es}),null!==el?(0,n.jsx)("span",{className:"ksel-trigger-desc",children:el}):null]}),L?(0,n.jsx)("span",{"aria-hidden":"true",className:`ksel-trigger-caret${V?" ksel-trigger-caret-open":""}`,children:(0,n.jsx)("svg",{fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",children:(0,n.jsx)("path",{d:"M2.25 4.5 6 8.25 9.75 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}):null]}),ef]});}],67914);},60865,e=>{"use strict";e.s(["NATIVE_BLOCK_STYLE",0,{display:"block"},"NATIVE_DIALOG_STYLE",0,{margin:0,position:"static"},"NATIVE_FIELDSET_RESET_STYLE",0,{margin:0,minWidth:0,padding:0,border:0},"NATIVE_FIELDSET_STYLE",0,{margin:0,minWidth:0},"NATIVE_HEADING_STYLE",0,{margin:0,fontWeight:"inherit"},"NATIVE_LIST_KEEP_PADDING_STYLE",0,{listStyle:"none",margin:0},"NATIVE_LIST_STYLE",0,{listStyle:"none",margin:0,padding:0}]);},7568,e=>{"use strict";var n=e.i(43476),t=e.i(71645),r=e.i(95508),a=e.i(18829),i=e.i(56049),s=e.i(85912),l=e.i(17161),o=e.i(67914),c=e.i(60865),d=e.i(54523),p=e.i(56782);let u=l.Icons.check,h=l.Icons.info,m=l.Icons.spark,f=l.Icons.layers,g=l.Icons.reset,x=l.Icons.file,j=["auto","fast","precise","research","creative","technical","safety-critical","agentic"],y=["clarify","assume"],v="__none__";function b({items:e,empty:t}){return 0===e.length?void 0===t?null:(0,n.jsx)("p",{className:"pe-empty",children:t}):(0,n.jsx)("ul",{className:"pe-list",children:e.map((e,t)=>(0,n.jsx)("li",{children:e},`${String(t)}:${e.slice(0,24)}`))});}function E({title:e,children:t}){return(0,n.jsxs)("section",{className:"pe-section","aria-label":e,children:[(0,n.jsx)("h4",{className:"pe-section-title",children:e}),t]});}function w({result:e,t}){var _e$candidates$scoreca;let r=(_e$candidates$scoreca=e.candidates.scorecards.find(n=>n.candidateId===e.candidates.winnerCandidateId))===null||_e$candidates$scoreca===void 0?void 0:_e$candidates$scoreca.profile,a=e.renderedPromptEstimatedTokens,i=[[t("promptEnhancer.analysis.task"),(0,d.humanizeToken)(e.analysis.taskClass)],[t("promptEnhancer.analysis.domain"),(0,d.humanizeToken)(e.analysis.domain)],[t("promptEnhancer.analysis.criticality"),(0,d.humanizeToken)(e.analysis.criticality)],[t("promptEnhancer.analysis.profile"),void 0===r?"-":(0,d.humanizeToken)(r)],[t("promptEnhancer.analysis.input"),t("promptEnhancer.analysis.chars",{count:e.analysis.normalizedInputLength})],...(Number.isFinite(a)?[[t("promptEnhancer.analysis.promptTokens"),t("promptEnhancer.analysis.tokenEstimate",{count:a})]]:[])];return(0,n.jsx)("dl",{className:"pe-analysis","aria-label":t("promptEnhancer.analysis.ariaLabel"),children:i.map(([e,t])=>(0,n.jsxs)("div",{className:"pe-analysis-item",children:[(0,n.jsx)("dt",{children:e}),(0,n.jsx)("dd",{children:t})]},e))});}function N({routing:e,t}){var _ref3,_e$resolvedModelId,_e$fallbackReason;let r="model-applied"===e.executionStatus?"ok":"unavailable"===e.availability||"model-fallback"===e.executionStatus?"warn":"muted",a=t("promptEnhancer.routing.deterministic");return"model-applied"===e.executionStatus?a=t("promptEnhancer.routing.modelEnhanced",{model:(_ref3=(_e$resolvedModelId=e.resolvedModelId)!==null&&_e$resolvedModelId!==void 0?_e$resolvedModelId:e.requestedModelId)!==null&&_ref3!==void 0?_ref3:""}):"model-fallback"===e.executionStatus?a=t("promptEnhancer.routing.modelFallback",{reason:(_e$fallbackReason=e.fallbackReason)!==null&&_e$fallbackReason!==void 0?_e$fallbackReason:e.reason}):"unavailable"===e.availability&&(a=t("promptEnhancer.routing.modelUnavailable")),(0,n.jsxs)("div",{className:`pe-routing pe-routing-${r}`,"data-testid":"pe-model-routing",role:"status","aria-live":"polite",children:[(0,n.jsx)("span",{className:"pe-routing-icon","aria-hidden":"true",children:"ok"===r?(0,n.jsx)(u,{size:14}):(0,n.jsx)(h,{size:14})}),(0,n.jsx)("span",{children:a})]});}function k({safety:e,t}){let r=e.requiresHumanReview,a="rejected"===e.decision;return(0,n.jsxs)(E,{title:t("promptEnhancer.safety.title"),children:[(0,n.jsxs)("dl",{className:"pe-safety-summary","data-testid":"pe-safety-decision",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:t("promptEnhancer.safety.decision")}),(0,n.jsx)("dd",{children:(0,d.humanizeToken)(e.decision)})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:t("promptEnhancer.safety.verification")}),(0,n.jsx)("dd",{children:(0,d.humanizeToken)(e.verificationStatus)})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:t("promptEnhancer.safety.humanReview")}),(0,n.jsx)("dd",{children:t(r?"promptEnhancer.common.required":"promptEnhancer.common.notRequired")})]})]}),a?(0,n.jsx)("p",{className:"pe-safety-warning pe-safety-rejected",role:"alert",children:t("promptEnhancer.safety.rejectedWarning")}):null,r?(0,n.jsx)("p",{className:"pe-safety-warning",role:"alert",children:t("promptEnhancer.safety.reviewWarning")}):null,e.findings.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h5",{className:"pe-subhead",children:t("promptEnhancer.safety.findings")}),(0,n.jsx)("ul",{className:"pe-list","data-testid":"pe-safety-findings",children:e.findings.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("span",{className:`pe-sev pe-sev-${e.severity}`,children:e.severity})," ",e.detail]},`${e.ruleId}:${e.code}`))})]}):null,e.leastPrivilege.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h5",{className:"pe-subhead",children:t("promptEnhancer.safety.leastPrivilege")}),(0,n.jsx)(b,{items:[...e.leastPrivilege]})]}):null]});}function S({plan:e,readiness:t,t:r}){let a;return a="ready"===t.status?r("promptEnhancer.grounding.ready"):"unavailable"===t.status?r("promptEnhancer.grounding.unavailable"):r("promptEnhancer.grounding.notRequired"),(0,n.jsxs)(E,{title:r("promptEnhancer.grounding.title"),children:[(0,n.jsxs)("div",{className:`pe-grounding-readiness pe-grounding-readiness-${t.status}`,"data-testid":"pe-grounding-readiness",role:"status","aria-live":"polite",children:[(0,n.jsx)("span",{className:"pe-routing-icon","aria-hidden":"true",children:(0,n.jsx)(h,{size:14})}),(0,n.jsx)("span",{children:a})]}),(0,n.jsx)("p",{className:"pe-grounding-meta",children:r("promptEnhancer.grounding.meta",{strategy:(0,d.humanizeToken)(e.strategy),requirement:e.required?r("promptEnhancer.common.required"):r("promptEnhancer.common.optional"),discipline:(0,d.humanizeToken)(e.citation.discipline),granularity:(0,d.humanizeToken)(e.citation.granularity)})}),e.sourcePriority.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h5",{className:"pe-subhead",children:r("promptEnhancer.grounding.sourcePriority")}),(0,n.jsx)("ol",{className:"pe-list",children:e.sourcePriority.map(e=>(0,n.jsxs)("li",{children:[e.source,e.required?r("promptEnhancer.grounding.requiredSuffix"):""]},e.source))})]}):null,(0,n.jsx)(b,{items:[...e.directives]})]});}function C({evidence:e,fingerprint:t,t:r}){var _e$manifestUrl;return(0,n.jsxs)("p",{className:"pe-evidence","data-testid":"pe-evidence",children:[r("promptEnhancer.evidence.fingerprint")," ",t.slice(0,16),"...","recorded"===e.status&&void 0!==e.runId?(0,n.jsxs)(n.Fragment,{children:[" ",r("promptEnhancer.evidence.manifest")," ",(0,n.jsx)("a",{href:(_e$manifestUrl=e.manifestUrl)!==null&&_e$manifestUrl!==void 0?_e$manifestUrl:"#",target:"_blank",rel:"noreferrer","aria-label":r("promptEnhancer.evidence.manifestAriaLabel",{id:e.runId}),children:e.runId})]}):r("promptEnhancer.evidence.notRecorded")]});}function L({candidates:e,t}){return(0,n.jsx)(E,{title:t("promptEnhancer.scorecards.title"),children:(0,n.jsx)("div",{className:"c-tablewrap",children:(0,n.jsx)("div",{className:"c-tablescroll",children:(0,n.jsxs)("table",{className:"c-table responsive pe-scorecards","data-testid":"pe-scorecards",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"col",children:t("promptEnhancer.analysis.profile")}),(0,n.jsx)("th",{scope:"col",className:"num",children:t("promptEnhancer.scorecards.score")}),(0,n.jsx)("th",{scope:"col",className:"num",children:t("promptEnhancer.scorecards.tokens")}),(0,n.jsx)("th",{scope:"col",children:t("promptEnhancer.scorecards.winner")})]})}),(0,n.jsx)("tbody",{children:e.scorecards.map(r=>{let a=r.candidateId===e.winnerCandidateId;return(0,n.jsxs)("tr",{className:a?"pe-winner":void 0,"aria-selected":a?"true":void 0,children:[(0,n.jsx)("th",{scope:"row",children:r.profile}),(0,n.jsx)("td",{className:"num","data-label":t("promptEnhancer.scorecards.score"),children:r.aggregateScore.toFixed(3)}),(0,n.jsx)("td",{className:"num","data-label":t("promptEnhancer.scorecards.tokens"),children:r.estimatedTokens.toLocaleString("en-US")}),(0,n.jsx)("td",{"data-label":t("promptEnhancer.scorecards.winner"),children:a?(0,n.jsx)("span",{className:"pe-winner-mark","aria-label":t("promptEnhancer.scorecards.winner"),children:"★"}):(0,n.jsx)("span",{"aria-hidden":"true",children:"-"})})]},r.candidateId);})})]})})})});}function M({rejected:e,t}){return 0===e.length?null:(0,n.jsx)(E,{title:t("promptEnhancer.rejections.title"),children:(0,n.jsx)("div",{className:"c-tablewrap",children:(0,n.jsx)("div",{className:"c-tablescroll",children:(0,n.jsxs)("table",{className:"c-table responsive","data-testid":"pe-rejections",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"col",children:t("promptEnhancer.rejections.candidate")}),(0,n.jsx)("th",{scope:"col",children:t("promptEnhancer.analysis.profile")}),(0,n.jsx)("th",{scope:"col",className:"num",children:t("promptEnhancer.scorecards.score")}),(0,n.jsx)("th",{scope:"col",children:t("promptEnhancer.rejections.reason")})]})}),(0,n.jsx)("tbody",{children:e.map(e=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"row",children:(0,n.jsx)("code",{children:e.candidateId})}),(0,n.jsx)("td",{children:e.profile}),(0,n.jsx)("td",{className:"num","data-label":t("promptEnhancer.scorecards.score"),children:null===e.aggregateScore?t("promptEnhancer.rejections.notScored"):e.aggregateScore.toFixed(3)}),(0,n.jsx)("td",{"data-label":t("promptEnhancer.rejections.reason"),children:function(e,n){switch(e){case"lower-aggregate-score":return n("promptEnhancer.rejections.reason.lowerAggregateScore");case"lower-tie-break-rank":return n("promptEnhancer.rejections.reason.lowerTieBreakRank");case"exceeded-token-budget":return n("promptEnhancer.rejections.reason.exceededTokenBudget");case"duplicate-candidate":return n("promptEnhancer.rejections.reason.duplicateCandidate");case"safety-floor-not-preserved":return n("promptEnhancer.rejections.reason.safetyFloorNotPreserved");case"safety-validation-failed":return n("promptEnhancer.rejections.reason.safetyValidationFailed");case"profile-preference-not-matched":return n("promptEnhancer.rejections.reason.profilePreferenceNotMatched");}}(e.reason,t)})]},e.candidateId))})]})})})});}function I({routing:e,t}){return"model-applied"!==e.executionStatus?null:(0,n.jsx)("p",{className:"pe-evidence","data-testid":"pe-baseline-note",children:t("promptEnhancer.result.baselineNote")});}function T({result:e,t}){let r=e.enhancedPrompt,a=e.analysis.missingContext.map(e=>"assumption"===e.kind?e.statement:e.question);return(0,n.jsxs)("div",{className:"pe-section-grid",children:[(0,n.jsx)(E,{title:t("promptEnhancer.section.role"),children:(0,n.jsx)("p",{children:r.role})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.objective"),children:(0,n.jsx)("p",{children:r.goal})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.context"),children:(0,n.jsx)(b,{items:[...r.context],empty:t("promptEnhancer.section.noAdditionalContext")})}),(0,n.jsx)(E,{title:t(e.analysis.missingContext.some(e=>"assumption"===e.kind)?"promptEnhancer.section.assumptions":"promptEnhancer.section.clarificationQuestions"),children:(0,n.jsx)(b,{items:a,empty:t("promptEnhancer.section.noClarifications")})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.steps"),children:(0,n.jsx)(b,{items:[...r.taskDecomposition]})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.constraints"),children:(0,n.jsx)(b,{items:[...r.constraints]})}),(0,n.jsxs)(E,{title:t("promptEnhancer.section.outputSchema"),children:[(0,n.jsxs)("p",{children:[t("promptEnhancer.section.format")," ",(0,n.jsx)("strong",{children:r.outputSchema.format}),r.outputSchema.structured?t("promptEnhancer.section.structuredSuffix"):""]}),(0,n.jsx)(b,{items:[...r.outputSchema.hints]})]}),(0,n.jsx)(E,{title:t("promptEnhancer.section.qualityCriteria"),children:(0,n.jsx)(b,{items:[...r.qualityCriteria]})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.uncertaintyHandling"),children:(0,n.jsx)(b,{items:[...r.uncertaintyHandling]})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.safetyRules"),children:(0,n.jsx)(b,{items:[...r.safetyRules]})})]});}e.s(["PromptEnhancerPanel",0,function({connectedRoot:e=null,connectedFilePath:l=null,connectedRoots:d,enhanceImpl:u=r.enhancePrompt,fetchModelsImpl:h=r.fetchModels}={}){let b=(0,s.useOptionalWidgetTranslate)(),[$,D]=(0,t.useState)(""),[_,R]=(0,t.useState)("auto"),[F,P]=(0,t.useState)("clarify"),[H,A]=(0,t.useState)(v),[z,K]=(0,t.useState)([]),[W,B]=(0,t.useState)(null),[U,V]=(0,t.useState)(null),[O,q]=(0,t.useState)(!1),[Y,G]=(0,t.useState)(null),[J,Q]=(0,t.useState)("idle"),[X,Z]=(0,t.useState)(null),ee=(0,t.useRef)(null),en=(0,t.useRef)(null),et=(0,t.useRef)(null),er=(0,t.useId)(),ea=(0,t.useId)(),ei=(0,t.useId)();(0,t.useEffect)(()=>{let e=!1;return h().then(n=>{e||K(n.models.filter(e=>"chat"===e.kind));}).catch(()=>{}),()=>{e=!0;};},[h]),(0,t.useEffect)(()=>()=>{var _et$current;(_et$current=et.current)===null||_et$current===void 0||_et$current.abort();},[]);let es=function({connectedRoot:e,connectedFilePath:n,connectedRoots:t},r,_i$){let a=(0,p.buildConnectedRunSources)({connectedRoot:e!==null&&e!==void 0?e:null,connectedFilePath:n!==null&&n!==void 0?n:null,connectedRoots:t});if(0===a.length)return{hasConnectedContext:!1,attachmentCount:0,label:r("promptEnhancer.context.noFilesSource"),signature:"none"};let i=a.map(e=>e.label),s=1===i.length?(_i$=i[0])!==null&&_i$!==void 0?_i$:r("promptEnhancer.context.connectedSource"):r("promptEnhancer.context.connectedSources",{count:i.length});return{hasConnectedContext:!0,attachmentCount:a.length,label:s,signature:JSON.stringify(a)};}({connectedRoot:e,connectedFilePath:l,connectedRoots:d},b);(0,t.useEffect)(()=>{if("copied"!==J)return;let e=window.setTimeout(()=>{Q("idle"),Z(null);},3e3);return()=>{window.clearTimeout(e);};},[J]),(0,t.useEffect)(()=>{var _en$current;null!==W&&((_en$current=en.current)===null||_en$current===void 0?void 0:_en$current.focus());},[W]);let el=(0,t.useCallback)(async()=>{var _et$current2;let e=$.trim();if(0===e.length)return void G(b("promptEnhancer.error.enterDraft"));(_et$current2=et.current)===null||_et$current2===void 0||_et$current2.abort();let n=new AbortController();et.current=n,q(!0),G(null),Q("idle"),Z(null);let t={text:e,missingInformationStrategy:"assume"===F?"assume":"clarify",...(es.hasConnectedContext?{hasConnectedContext:!0,attachmentCount:es.attachmentCount}:{}),...("auto"===_?{}:{profilePreference:_}),...(H===v?{}:{modelId:H})};try{let e=await u(t,n.signal);n.signal.aborted||(B(e),V(es.signature));}catch(e){n.signal.aborted||G(e instanceof a.ApiError?`${e.message} (${e.code})`:e instanceof Error&&"AbortError"===e.name?b("promptEnhancer.error.cancelled"):b("promptEnhancer.error.failed"));}finally{n.signal.aborted||q(!1);}},[$,F,es,_,H,u,b]),eo=(0,t.useCallback)(async()=>{if(null!==W){G(null),Q("copying"),Z(b("promptEnhancer.copy.copyingStatus"));try{await(0,i.copyTextToClipboard)(W.renderedPrompt),Q("copied"),Z(b("promptEnhancer.copy.copied"));}catch{Q("failed"),Z(b("promptEnhancer.copy.failed"));}}},[W,b]),ec=(0,t.useCallback)(()=>{var _et$current3,_ee$current;(_et$current3=et.current)!==null&&_et$current3!==void 0&&_et$current3.abort(),et.current=null,D(""),B(null),V(null),q(!1),G(null),Q("idle"),Z(null),(_ee$current=ee.current)===null||_ee$current===void 0?void 0:_ee$current.focus();},[]),ed=[{options:[{value:v,label:b("promptEnhancer.model.deterministicOnly")},...z.map(e=>({value:e.id,label:e.id}))]}],ep=$.trim().length,eu=b(O?"promptEnhancer.status.enhancing":0===ep?"promptEnhancer.status.waitingForDraft":"promptEnhancer.status.ready"),eh=ep>0||null!==W||O||null!==Y||"idle"!==J||null!==X,em=null!==W&&null!==U&&U!==es.signature;return(0,n.jsxs)("div",{className:"pe-panel","data-testid":"prompt-enhancer-panel",children:[(0,n.jsxs)("div",{className:"pe-header","data-testid":"pe-header",children:[(0,n.jsx)("span",{className:"pe-header-icon","aria-hidden":"true",children:(0,n.jsx)(m,{size:18})}),(0,n.jsxs)("div",{className:"pe-header-copy",children:[(0,n.jsx)("p",{className:"pe-eyebrow",children:b("promptEnhancer.header.eyebrow")}),(0,n.jsx)("h3",{className:"pe-title",children:b("promptEnhancer.header.title")})]}),(0,n.jsx)("span",{className:"pe-header-chip",children:b("promptEnhancer.header.reviewBeforeUse")})]}),(0,n.jsxs)("form",{className:"pe-form",onSubmit:e=>{e.preventDefault(),el();},children:[(0,n.jsxs)("div",{className:"pe-draft-card",children:[(0,n.jsxs)("div",{className:"pe-field-head",children:[(0,n.jsx)("label",{className:"pe-label",htmlFor:er,children:b("promptEnhancer.field.rawPrompt")}),(0,n.jsx)("span",{className:"pe-counter",id:ea,children:b("promptEnhancer.analysis.chars",{count:ep})})]}),(0,n.jsx)("textarea",{ref:ee,id:er,className:"pe-draft",value:$,onChange:e=>{D(e.target.value);},rows:8,placeholder:b("promptEnhancer.field.draftPlaceholder"),"aria-describedby":null===Y?ea:`${ea} ${ei}`})]}),(0,n.jsxs)("aside",{className:"pe-controls-card","aria-label":b("promptEnhancer.controls.ariaLabel"),children:[(0,n.jsxs)("div",{className:"pe-controls",children:[(0,n.jsxs)("div",{className:"pe-control",children:[(0,n.jsx)("span",{className:"pe-label","aria-hidden":"true",children:b("promptEnhancer.analysis.profile")}),(0,n.jsx)(o.default,{value:_,ariaLabel:b("promptEnhancer.analysis.profile"),onValueChange:R,sections:[{options:j.map(e=>({value:e,label:b(`promptEnhancer.profile.${e}`)}))}],triggerClassName:"pe-select",menuClassName:"pe-select-menu"})]}),(0,n.jsxs)("div",{className:"pe-control",children:[(0,n.jsx)("span",{className:"pe-label","aria-hidden":"true",children:b("promptEnhancer.controls.missingInformation")}),(0,n.jsx)(o.default,{value:F,ariaLabel:b("promptEnhancer.controls.missingInformation"),onValueChange:P,sections:[{options:y.map(e=>({value:e,label:b(`promptEnhancer.strategy.${e}`)}))}],triggerClassName:"pe-select",menuClassName:"pe-select-menu"})]}),(0,n.jsxs)("div",{className:"pe-control",children:[(0,n.jsx)("span",{className:"pe-label","aria-hidden":"true",children:b("promptEnhancer.controls.model")}),(0,n.jsx)(o.default,{value:H,ariaLabel:b("promptEnhancer.controls.model"),onValueChange:A,sections:ed,triggerClassName:"pe-select",menuClassName:"pe-select-menu"})]})]}),(0,n.jsxs)("div",{className:"pe-grounding-context","data-connected":es.hasConnectedContext?"true":"false","data-testid":"pe-grounding-context",children:[(0,n.jsx)("span",{className:"pe-routing-icon","aria-hidden":"true",children:(0,n.jsx)(f,{size:14})}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"pe-context-label",children:b("promptEnhancer.context.title")}),(0,n.jsx)("strong",{children:es.label})]})]}),em?(0,n.jsx)("p",{className:"pe-context-stale",role:"status","aria-live":"polite",children:b("promptEnhancer.context.changed")}):null,(0,n.jsxs)("div",{className:"pe-command-row",children:[(0,n.jsxs)("button",{type:"submit",className:"pe-button pe-button-primary pe-enhance",disabled:O||0===ep,children:[(0,n.jsx)(m,{size:15}),(0,n.jsx)("span",{children:O?b("promptEnhancer.action.enhancing"):b("promptEnhancer.action.enhance")})]}),(0,n.jsxs)("button",{type:"button",className:"pe-button pe-button-secondary pe-clear",onClick:ec,disabled:!eh,"aria-label":b("promptEnhancer.action.clearAriaLabel"),children:[(0,n.jsx)(g,{size:15}),(0,n.jsx)("span",{children:b("promptEnhancer.action.clear")})]})]}),(0,n.jsx)("p",{className:"pe-status",role:"status","aria-live":"polite",children:eu})]})]}),null!==Y?(0,n.jsx)("p",{className:"pe-error",role:"alert",id:ei,children:Y}):null,null!==W?(0,n.jsxs)("div",{className:"pe-result","data-testid":"pe-result",children:[(0,n.jsxs)("div",{className:"pe-result-head",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"pe-eyebrow",children:b("promptEnhancer.result.eyebrow")}),(0,n.jsx)("h4",{className:"pe-result-title",ref:en,tabIndex:-1,children:b("promptEnhancer.result.title")})]}),(0,n.jsx)(N,{routing:W.modelRouting,t:b})]}),(0,n.jsx)(w,{result:W,t:b}),(0,n.jsxs)(E,{title:b("promptEnhancer.rendered.title"),children:[(0,n.jsx)("pre",{className:"pe-rendered","aria-label":b("promptEnhancer.rendered.ariaLabel"),"data-text-selectable":"true",children:W.renderedPrompt}),(0,n.jsxs)("div",{className:"pe-actions",children:[null!==X?(0,n.jsx)("output",{className:`pe-copy-status pe-copy-status-${J}`,style:c.NATIVE_BLOCK_STYLE,role:"failed"===J?"alert":void 0,"aria-live":"polite",children:X}):null,(0,n.jsxs)("button",{type:"button",className:"pe-button pe-button-secondary pe-copy",disabled:"copying"===J,onClick:()=>{eo();},children:[(0,n.jsx)(x,{size:15}),(0,n.jsx)("span",{children:"copying"===J?b("promptEnhancer.action.copying"):b("promptEnhancer.action.copy")})]})]})]}),(0,n.jsxs)("div",{className:"pe-review-grid",children:[(0,n.jsx)(k,{safety:W.safety,t:b}),(0,n.jsx)(S,{plan:W.enhancedPrompt.groundingPlan,readiness:W.groundingReadiness,t:b})]}),(0,n.jsx)(I,{routing:W.modelRouting,t:b}),(0,n.jsx)(T,{result:W,t:b}),(0,n.jsx)(L,{candidates:W.candidates,t:b}),(0,n.jsx)(M,{rejected:W.candidates.rejected,t:b}),(0,n.jsx)(C,{evidence:W.evidence,fingerprint:W.inputFingerprintSha256,t:b})]}):(0,n.jsxs)("div",{className:"pe-empty-state","aria-label":b("promptEnhancer.empty.ariaLabel"),children:[(0,n.jsx)(f,{size:18}),(0,n.jsx)("span",{children:b("promptEnhancer.empty.message")})]})]});}]);},38661,function(e){e.n(e.i(7568));},56049,e=>{"use strict";async function n(e,n,t){let r=n&&document.activeElement instanceof HTMLElement?document.activeElement:null,a=document.createElement("textarea");a.value=e,a.setAttribute("readonly","true"),a.style.position="fixed",a.style.inset="0 auto auto -9999px",a.style.width="1px",a.style.height="1px",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a);try{if(a.focus(),a.select(),!("function"==typeof document.execCommand&&document.execCommand("copy")))throw Error("clipboard-fallback-failed",{cause:t});}finally{a.remove(),n&&(r===null||r===void 0?void 0:r.focus());}}async function t(e,t){var _t$restoreFocus,_navigator$clipboard;let r,a=(_t$restoreFocus=t===null||t===void 0?void 0:t.restoreFocus)!==null&&_t$restoreFocus!==void 0?_t$restoreFocus:!0,i="u"<typeof navigator?void 0:(_navigator$clipboard=navigator.clipboard)===null||_navigator$clipboard===void 0?void 0:_navigator$clipboard.writeText;if(void 0!==i&&void 0!==navigator.clipboard)try{await i.call(navigator.clipboard,e);return;}catch(e){r=e;}if("u"<typeof document||null===document.body)throw Error("clipboard-unavailable",{cause:r});await n(e,a,r);}e.s(["copyTextToClipboard",0,t]);},83449,e=>{"use strict";let n=new Map();function t(e,t){let r=e!==null&&e!==void 0?e:"en",a=`${r}:${t}`,i=n.get(a);return void 0===i&&(i=new Intl.NumberFormat(r,{minimumFractionDigits:t,maximumFractionDigits:t,useGrouping:!1}),n.set(a,i)),i;}function r(e,n){return t(n,1).format(e);}function a(e,n){return t(n,0).format(e);}e.s(["costClassLabel",0,function(e){switch(e){case"low":return"Low cost";case"medium":return"Medium cost";case"high":return"High cost";case"unknown":return"Unknown cost";}},"formatBytes",0,function(e,n){return!Number.isFinite(e)||e<=0?"0 B":e<1024?`${e.toString()} B`:e<1048576?`${r(e/1024,n)} KB`:e<0x40000000?`${r(e/1048576,n)} MB`:`${r(e/0x40000000,n)} GB`;},"formatBytesPrecise",0,function(e){var n;if(!Number.isFinite(e)||e<=0)return"0 B";let t=["B","KB","MB","GB"],r=e,a=0;for(;r>=1024&&a<t.length-1;)r/=1024,a+=1;let i=(n=r,0===a?n.toFixed(0):n>=10?n.toFixed(1):n.toFixed(2));return`${i} ${t[a]}`;},"formatDate",0,function(e){try{return new Date(e).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});}catch{return"string"==typeof e?e:e.toString();}},"formatDurationCompact",0,function(e){if(!Number.isFinite(e)||e<=0)return"0s";let n=Math.round(e/1e3),t=Math.floor(n/60),r=n%60;return 0===t?`${r.toString()}s`:`${t.toString()}m ${r.toString().padStart(2,"0")}s`;},"formatMs",0,function(e,n){let r=Math.round(e);if(r<1e3)return`${a(r,n)} ms`;let i=Math.round(e/100)/10;if(i<60)return`${t(n,1).format(i)} s`;let s=Math.floor(i/60),l=Math.floor(i%60);return`${a(s,n)}m ${a(l,n)}s`;},"formatTokens",0,function(e){return e<1e3?e.toString():`${(e/1e3).toFixed(1)}k`;},"outcomeLabel",0,function(e){switch(e){case"fix-applied":return"Fix applied";case"fix-proposed":return"Fix proposed (dry-run)";case"investigation-only":return"Investigation only";case"limit-exceeded":return"Limit exceeded";case"dry-run":return"Dry-run";default:return e.charAt(0).toUpperCase()+e.slice(1);}},"runStatusLabel",0,function(e){var _running$completed$dr;return(_running$completed$dr={running:"Running",completed:"Completed","dry-run":"Dry run",rejected:"Rejected",cancelled:"Cancelled",failed:"Failed","fix-applied":"Fix applied","fix-proposed":"Fix proposed","investigation-only":"Investigation only"}[e])!==null&&_running$completed$dr!==void 0?_running$completed$dr:e;},"toSafeIsoString",0,function(e){let n=new Date(e);return Number.isNaN(n.getTime())?void 0:n.toISOString();}]);}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,48805,e=>{e.v({cmpMenuEmpty:"KeikoSelect-module__cg1rHa__cmpMenuEmpty",cmpMenuSearch:"KeikoSelect-module__cg1rHa__cmpMenuSearch",cmpSearchControl:"KeikoSelect-module__cg1rHa__cmpSearchControl",cmpViewportMenu:"KeikoSelect-module__cg1rHa__cmpViewportMenu",cmpViewportMenuScroll:"KeikoSelect-module__cg1rHa__cmpViewportMenuScroll"});},67914,30644,e=>{"use strict";var n=e.i(43476),t=e.i(71645),r=e.i(74080),a=e.i(24541),i=e.i(50850),s=e.i(48805),l=e.i(17161);function o(e){let n=Math.max(0,Math.min(e.width,e.viewportWidth-32)),t=Math.max(0,e.anchor.top-16-e.gap),r=Math.max(0,e.viewportHeight-e.anchor.bottom-16-e.gap),a=e.preferUp?t>=Math.min(e.height,96)||t>=r:r<e.height&&t>r,i=Math.max(0,Math.min(e.height,a?t:r,e.viewportHeight-32));return{left:Math.max(16,Math.min(e.anchor.left,e.viewportWidth-n-16)),top:Math.max(16,Math.min(a?e.anchor.top-e.gap-i:e.anchor.bottom+e.gap,e.viewportHeight-16-i)),width:n,maxHeight:i,openUp:a};}e.s(["viewportOverlayPosition",0,o],30644);let c=l.Icons.search,d="keiko:select-open";function u(e){var _e$closest;return(_e$closest=e===null||e===void 0?void 0:e.closest("dialog[open]"))!==null&&_e$closest!==void 0?_e$closest:document.body;}function p(e){return e.findIndex(e=>!0!==e.disabled);}function h(e,n,t){if(0===e.length)return-1;for(let r of e.keys()){var _e$a;let a=(n+(r+1)*t+e.length)%e.length;if(((_e$a=e[a])===null||_e$a===void 0?void 0:_e$a.disabled)!==!0)return a;}return-1;}function m(e,n){let t=e.toLocaleLowerCase();return t===n?0:t.startsWith(n)?1:2;}function f(e,n){let t=n.trim().toLocaleLowerCase();return""===t?e:e.map(e=>({...e,options:e.options.filter(e=>e.label.toLocaleLowerCase().includes(t)).sort((e,n)=>m(e.label,t)-m(n.label,t))}));}function g({active:e,index:a,onCommit:i,onOptionKeyDown:s,option:l,selected:o,setOptionRef:c}){let d=(0,t.useRef)(null),p=(0,t.useRef)(null),h=(0,t.useRef)(null),[m,f]=(0,t.useState)(null),x=()=>{null!==h.current&&(clearTimeout(h.current),h.current=null),f(null);},j=()=>{null!==h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{let e=p.current,n=d.current;if(null===e||null===n||e.scrollWidth<=e.clientWidth)return;let t=n.getBoundingClientRect(),r=Math.min(520,window.innerWidth-32),a=t.right+8+r<=window.innerWidth-16?"top-left":"top-right";f({left:"top-left"===a?t.right+8:t.left-8,placement:a,top:t.top-6});},1500);};return(0,t.useEffect)(()=>x,[]),(0,n.jsxs)("button",{ref:e=>{d.current=e,c(a,e);},"aria-label":[l.label,l.description,l.badge].filter(e=>void 0!==e&&e.trim().length>0).join(", "),"aria-selected":o,className:`ksel-option${e?" ksel-option-active":""}`,"data-disabled":!0===l.disabled?"true":void 0,disabled:l.disabled,onBlur:x,onClick:()=>i(l),onFocus:j,onKeyDown:e=>s(e,a),onPointerEnter:j,onPointerLeave:x,role:"option",type:"button",children:[(0,n.jsxs)("span",{className:"ksel-option-copy",children:[(0,n.jsx)("span",{className:"ksel-option-label",ref:p,children:l.label}),void 0!==l.description?(0,n.jsx)("span",{className:"ksel-option-desc",children:l.description}):null]}),void 0!==l.badge?(0,n.jsx)("span",{className:"ksel-option-badge",children:l.badge}):null,null!==m?(0,r.createPortal)((0,n.jsx)("div",{className:"ksel-overflow-tooltip","data-placement":m.placement,role:"tooltip",style:{left:`${m.left.toString()}px`,top:`${m.top.toString()}px`},children:l.label}),u(d.current)):null]});}function x({activeIndex:e,flatOptions:t,menuId:r,onCommit:a,onOptionKeyDown:i,section:s,sectionIndex:l,selectedIndex:o,setOptionRef:c}){let d=void 0!==s.label?`${r}-section-${l.toString()}`:void 0;return(0,n.jsxs)("div",{className:"ksel-section",role:void 0!==s.label?"group":"presentation","aria-labelledby":d,children:[void 0!==s.label?(0,n.jsx)("div",{className:"ksel-section-label",id:d,children:s.label}):null,s.options.map(r=>{var _s$label;let l=t.findIndex(e=>e.value===r.value&&e.sectionLabel===s.label),d=t[l];return void 0===d?null:(0,n.jsx)(g,{active:l===e,index:l,onCommit:a,onOptionKeyDown:i,option:d,selected:l===o,setOptionRef:c},`${(_s$label=s.label)!==null&&_s$label!==void 0?_s$label:"section"}-${r.value}`);})]});}function j({search:e}){return void 0===e?null:(0,n.jsx)("div",{className:s.default.cmpMenuSearch,children:(0,n.jsxs)("div",{className:`c-combo-input ${s.default.cmpSearchControl}`,children:[(0,n.jsx)(c,{size:15}),(0,n.jsx)("input",{ref:e.inputRef,type:"search","aria-label":e.placeholder,placeholder:e.placeholder,value:e.query,onChange:n=>{e.onChange(n.currentTarget.value);},onKeyDown:e.onKeyDown})]})});}function y({search:e,visible:t}){return t&&(e===null||e===void 0?void 0:e.emptyLabel)!==void 0?(0,n.jsx)("p",{className:s.default.cmpMenuEmpty,children:e.emptyLabel}):null;}function v({activeIndex:e,ariaLabel:t,flatOptions:a,menuClassName:i,menuCountLabel:l,menuId:o,menuLabel:c,menuRef:d,menuTitle:u,onCommit:p,onKeyDownCapture:h,onOptionKeyDown:m,placeholder:f,portalRoot:g,position:b,selectedIndex:E,sections:w,search:N,setOptionRef:S,showMenuHeader:k}){var _ref;return(0,r.createPortal)((0,n.jsxs)("div",{ref:d,onKeyDownCapture:h,className:["ksel-menu",s.default.cmpViewportMenu,b.attached?"ksel-menu-attached":"",b.openUp?"ksel-menu-open-up":"ksel-menu-open-down",i!==null&&i!==void 0?i:""].filter(e=>void 0!==e&&e.length>0).join(" "),style:{left:`${b.left.toString()}px`,top:`${b.top.toString()}px`,width:`${b.width.toString()}px`,"--ksel-option-height":`${b.optionHeight.toString()}px`,fontFamily:b.fontFamily,fontSize:b.fontSize,fontWeight:b.fontWeight,letterSpacing:b.letterSpacing,lineHeight:b.lineHeight,maxHeight:Math.max(0,window.innerHeight-b.top-16)},children:[k?(0,n.jsxs)("div",{className:"ksel-menu-head",children:[(0,n.jsx)("div",{className:"ksel-menu-title",children:(_ref=u!==null&&u!==void 0?u:t)!==null&&_ref!==void 0?_ref:f}),(0,n.jsx)("div",{className:"ksel-menu-note",children:l!==null&&l!==void 0?l:`${a.length.toString()} options`})]}):null,(0,n.jsx)(j,{search:N}),(0,n.jsxs)("div",{className:`ksel-menu-scroll ${s.default.cmpViewportMenuScroll}`,role:"listbox",id:o,"aria-label":c,style:{maxHeight:`${b.maxHeight.toString()}px`},children:[w.map((t,r)=>{var _t$label;return(0,n.jsx)(x,{activeIndex:e,flatOptions:a,menuId:o,onCommit:p,onOptionKeyDown:m,section:t,sectionIndex:r,selectedIndex:E,setOptionRef:S},`${(_t$label=t.label)!==null&&_t$label!==void 0?_t$label:"section"}-${r.toString()}`);}),(0,n.jsx)(y,{search:N,visible:0===a.length})]})]}),g);}e.s(["default",0,function({value:e,sections:r,onValueChange:s,onOpen:l,disabled:c=!1,placeholder:m,ariaLabel:g,ariaDescribedBy:x,ariaLabelledBy:j,triggerClassName:y,triggerTitle:b,menuClassName:E,menuTitle:w,menuCountLabel:N,showMenuHeader:S=!0,leadingVisual:k,mono:C=!1,showChevron:I=!0,menuMinWidth:L,menuPopoverMinWidth:$,menuPopoverMaxHeight:M,menuPlacement:T="auto",searchPlaceholder:R,searchEmptyLabel:F,attached:_=!0,triggerStyle:D,autoFocus:A=!1}){var _ea$label,_ea$description,_ref2,_P$triggerClassName,_P$position;var P;let H=(0,i.useTranslate)(),W=(0,t.useRef)(null),z=(0,t.useRef)(null),K=(0,t.useRef)(null),B=(0,t.useRef)([]),O=(0,t.useId)(),[U,V]=(0,t.useState)(!1),[q,Y]=(0,t.useState)(-1),[G,J]=(0,t.useState)(null),[X,Z]=(0,t.useState)(!1),[Q,ee]=(0,t.useState)(""),en=(0,t.useMemo)(()=>f(r,Q),[Q,r]),et=(0,t.useMemo)(()=>en.flatMap((e,n)=>e.options.map((t,r)=>{var _e$label;return{...t,key:`${(_e$label=e.label)!==null&&_e$label!==void 0?_e$label:"section"}-${n.toString()}-${t.value}-${r.toString()}`,sectionLabel:e.label};})),[en]),er=et.findIndex(n=>n.value===e),ea=r.flatMap(e=>e.options).find(n=>n.value===e),ei=m!==null&&m!==void 0?m:H("select.placeholder"),es=(_ea$label=ea===null||ea===void 0?void 0:ea.label)!==null&&_ea$label!==void 0?_ea$label:ei,el=(_ea$description=ea===null||ea===void 0?void 0:ea.description)!==null&&_ea$description!==void 0?_ea$description:null,eo=(_ref2=w!==null&&w!==void 0?w:g)!==null&&_ref2!==void 0?_ref2:ei,ec=(0,t.useCallback)(()=>{V(!1),Y(-1),ee("");},[]),ed=e=>{var _et$e,_et$er;if(c||0===et.length)return;let n=void 0!==e&&((_et$e=et[e])===null||_et$e===void 0?void 0:_et$e.disabled)!==!0?e:er>=0&&((_et$er=et[er])===null||_et$er===void 0?void 0:_et$er.disabled)!==!0?er:p(et);window.dispatchEvent(new Event(d)),V(!0),Y(n),ee(""),l===null||l===void 0?void 0:l();};(0,t.useEffect)(()=>(window.addEventListener(d,ec),()=>{window.removeEventListener(d,ec);}),[ec]),(0,t.useEffect)(()=>{if(!U)return;let e=e=>{let n=e.target;null!==W.current&&n instanceof Node&&W.current.contains(n)||null!==z.current&&n instanceof Node&&z.current.contains(n)||ec();},n=()=>ec();return window.addEventListener("pointerdown",e,!0),window.addEventListener("blur",n),()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("blur",n);};},[ec,U]),(0,t.useLayoutEffect)(()=>{if(!U||null===W.current)return;let e={menuMinWidth:L,menuPopoverMinWidth:$,menuPopoverMaxHeight:M,chromeReserve:50*!!S+46*(void 0!==R)+2},n=()=>{var _e$menuPopoverMinWidt,_e$menuPopoverMaxHeig;let n=W.current;if(null===n)return;let t=n.getBoundingClientRect(),r=Math.min(Math.max(void 0!==e.menuMinWidth&&t.width<Math.min(e.menuMinWidth,96)?e.menuMinWidth:t.width,(_e$menuPopoverMinWidt=e.menuPopoverMinWidth)!==null&&_e$menuPopoverMinWidt!==void 0?_e$menuPopoverMinWidt:0),window.innerWidth-32),a=_&&1>Math.abs(r-t.width),i=o({anchor:t,width:r,height:((_e$menuPopoverMaxHeig=e.menuPopoverMaxHeight)!==null&&_e$menuPopoverMaxHeig!==void 0?_e$menuPopoverMaxHeig:380)+e.chromeReserve,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,gap:a?-1:6,preferUp:"up"===T});Z(i.openUp);let s=Math.max(0,i.maxHeight-e.chromeReserve),l=window.getComputedStyle(n);J({left:i.left,width:r,top:i.top,optionHeight:Math.max(28,Math.min(t.height,30)),maxHeight:s,openUp:i.openUp,attached:a,fontFamily:l.fontFamily,fontSize:l.fontSize,fontWeight:l.fontWeight,letterSpacing:l.letterSpacing,lineHeight:l.lineHeight});};return n(),window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("resize",n),window.removeEventListener("scroll",n,!0);};},[U,_,L,$,M,T,R,S]),(0,t.useLayoutEffect)(()=>{if(!U||null===G||!G.openUp||null===W.current||null===z.current)return;let e=W.current.getBoundingClientRect(),n=z.current.getBoundingClientRect();if(n.height<=0)return;let t=G.attached?-1:6,r=Math.max(16,e.top-n.height-t);.5>Math.abs(r-G.top)||J(e=>null===e?e:{...e,top:r});},[U,G,et.length]);let eu=U&&null!==G;function ep(e){var _W$current;e.disabled||(s(e.value),ec(),(_W$current=W.current)===null||_W$current===void 0?void 0:_W$current.focus());}function eh(e,n){var _W$current2;n.preventDefault(),n.stopPropagation(),ec(),(_W$current2=W.current)!==null&&_W$current2!==void 0&&_W$current2.focus(),(0,a.reportClientDiagnostic)(`[keiko] select menu dismissed by Escape (focus=${e})`,{kind:"other",selectDismissal:{reason:"escape",focus:e}});}(0,t.useEffect)(()=>{var _K$current;eu&&void 0!==R&&((_K$current=K.current)===null||_K$current===void 0?void 0:_K$current.focus());},[eu,R]),(0,t.useEffect)(()=>{var _B$current$q,_B$current$q2;!eu||q<0||(void 0===R||document.activeElement!==K.current)&&((_B$current$q=B.current[q])!==null&&_B$current$q!==void 0&&_B$current$q.focus(),(_B$current$q2=B.current[q])===null||_B$current$q2===void 0?void 0:_B$current$q2.scrollIntoView({block:"nearest"}));},[eu,q,R]),(0,t.useEffect)(()=>{if(!U)return;let e=e=>{if("Escape"===e.key){var _W$current3;ec(),(_W$current3=W.current)===null||_W$current3===void 0?void 0:_W$current3.focus();return;}if(1===e.key.length&&!e.metaKey&&!e.ctrlKey&&!e.altKey){var n;if((n=e.target)instanceof HTMLElement&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SELECT"===n.tagName||n.isContentEditable))return;let t=function(e,n,t){for(let r=1;r<=e.length;r+=1){let a=(n+r)%e.length,i=e[a];if(void 0!==i&&!0!==i.disabled&&i.label.toLowerCase().startsWith(t))return a;}return-1;}(et,q>=0?q:Math.max(er,0),e.key.toLowerCase());-1!==t&&Y(t);}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);},[U,q,ec,et,er]);let em=["ksel-trigger",(P={disabled:c,mono:C,open:U,openUp:X,position:G,triggerClassName:y}).mono?"mono":"",(_P$triggerClassName=P.triggerClassName)!==null&&_P$triggerClassName!==void 0?_P$triggerClassName:"",P.open?"ksel-trigger-open":"",P.open&&((_P$position=P.position)===null||_P$position===void 0?void 0:_P$position.attached)===!0?P.openUp?"ksel-trigger-open-up":"ksel-trigger-open-down":"",P.disabled?"ksel-trigger-disabled":""].filter(e=>void 0!==e&&e.length>0).join(" "),ef=U&&null!==G?(0,n.jsx)(v,{activeIndex:q,ariaLabel:g,flatOptions:et,menuClassName:E,menuCountLabel:N,menuId:O,menuLabel:eo,menuRef:z,menuTitle:w,onCommit:ep,onKeyDownCapture:function(e){if("Escape"!==e.key)return;let n=e.target;n===K.current?eh("search",e):n instanceof Element&&null!==n.closest('[role="option"]')?eh("option",e):eh("menu",e);},onOptionKeyDown:function(e,n){if("Tab"===e.key){var _W$current4;e.preventDefault(),ec(),(_W$current4=W.current)===null||_W$current4===void 0?void 0:_W$current4.focus();return;}if("ArrowDown"===e.key){e.preventDefault(),Y(h(et,n,1));return;}if("ArrowUp"===e.key){e.preventDefault(),Y(h(et,n,-1));return;}if("Home"===e.key){e.preventDefault(),Y(p(et));return;}if("End"===e.key){e.preventDefault(),Y(h(et,0,-1));return;}if("Enter"===e.key||" "===e.key){e.preventDefault();let t=et[n];void 0!==t&&ep(t);}},placeholder:m,portalRoot:u(W.current),position:G,selectedIndex:er,sections:en,search:void 0===R?void 0:{placeholder:R,query:Q,emptyLabel:F,inputRef:K,onChange:e=>{ee(e),Y(f(r,e).flatMap(e=>e.options).findIndex(e=>!0!==e.disabled));},onKeyDown:function(e){if("ArrowDown"===e.key){var _B$current$n;e.preventDefault();let n=p(et);Y(n),(_B$current$n=B.current[n])===null||_B$current$n===void 0?void 0:_B$current$n.focus();}else if("Enter"===e.key){e.preventDefault();let n=et[p(et)];void 0!==n&&ep(n);}}},setOptionRef:(e,n)=>{B.current[e]=n;},showMenuHeader:S}):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{ref:W,"aria-controls":O,"aria-describedby":x,"aria-expanded":U,"aria-haspopup":"listbox","aria-label":g,"aria-labelledby":j,autoFocus:A,className:em,disabled:c,onClick:()=>{U?ec():ed();},onKeyDown:function(e){if(!c){if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault(),ed(er>=0?er:p(et));return;}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),U?ec():ed());}},onKeyDownCapture:e=>{U&&"Escape"===e.key&&eh("trigger",e);},role:"combobox",style:D,title:b,type:"button",children:[void 0!==k?(0,n.jsx)("span",{className:"ksel-trigger-leading",children:k}):null,(0,n.jsxs)("span",{className:"ksel-trigger-copy",children:[(0,n.jsx)("span",{className:"ksel-trigger-label",children:es}),null!==el?(0,n.jsx)("span",{className:"ksel-trigger-desc",children:el}):null]}),I?(0,n.jsx)("span",{"aria-hidden":"true",className:`ksel-trigger-caret${U?" ksel-trigger-caret-open":""}`,children:(0,n.jsx)("svg",{fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",children:(0,n.jsx)("path",{d:"M2.25 4.5 6 8.25 9.75 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}):null]}),ef]});}],67914);},60865,e=>{"use strict";e.s(["NATIVE_BLOCK_STYLE",0,{display:"block"},"NATIVE_DIALOG_STYLE",0,{margin:0,position:"static"},"NATIVE_FIELDSET_RESET_STYLE",0,{margin:0,minWidth:0,padding:0,border:0},"NATIVE_FIELDSET_STYLE",0,{margin:0,minWidth:0},"NATIVE_HEADING_STYLE",0,{margin:0,fontWeight:"inherit"},"NATIVE_LIST_KEEP_PADDING_STYLE",0,{listStyle:"none",margin:0},"NATIVE_LIST_STYLE",0,{listStyle:"none",margin:0,padding:0}]);},7568,e=>{"use strict";var n=e.i(43476),t=e.i(71645),r=e.i(95508),a=e.i(18829),i=e.i(56049),s=e.i(85912),l=e.i(17161),o=e.i(67914),c=e.i(60865),d=e.i(54523),u=e.i(56782);let p=l.Icons.check,h=l.Icons.info,m=l.Icons.spark,f=l.Icons.layers,g=l.Icons.reset,x=l.Icons.file,j=["auto","fast","precise","research","creative","technical","safety-critical","agentic"],y=["clarify","assume"],v="__none__";function b({items:e,empty:t}){return 0===e.length?void 0===t?null:(0,n.jsx)("p",{className:"pe-empty",children:t}):(0,n.jsx)("ul",{className:"pe-list",children:e.map((e,t)=>(0,n.jsx)("li",{children:e},`${String(t)}:${e.slice(0,24)}`))});}function E({title:e,children:t}){return(0,n.jsxs)("section",{className:"pe-section","aria-label":e,children:[(0,n.jsx)("h4",{className:"pe-section-title",children:e}),t]});}function w({result:e,t}){var _e$candidates$scoreca;let r=(_e$candidates$scoreca=e.candidates.scorecards.find(n=>n.candidateId===e.candidates.winnerCandidateId))===null||_e$candidates$scoreca===void 0?void 0:_e$candidates$scoreca.profile,a=e.renderedPromptEstimatedTokens,i=[[t("promptEnhancer.analysis.task"),(0,d.humanizeToken)(e.analysis.taskClass)],[t("promptEnhancer.analysis.domain"),(0,d.humanizeToken)(e.analysis.domain)],[t("promptEnhancer.analysis.criticality"),(0,d.humanizeToken)(e.analysis.criticality)],[t("promptEnhancer.analysis.profile"),void 0===r?"-":(0,d.humanizeToken)(r)],[t("promptEnhancer.analysis.input"),t("promptEnhancer.analysis.chars",{count:e.analysis.normalizedInputLength})],...(Number.isFinite(a)?[[t("promptEnhancer.analysis.promptTokens"),t("promptEnhancer.analysis.tokenEstimate",{count:a})]]:[])];return(0,n.jsx)("dl",{className:"pe-analysis","aria-label":t("promptEnhancer.analysis.ariaLabel"),children:i.map(([e,t])=>(0,n.jsxs)("div",{className:"pe-analysis-item",children:[(0,n.jsx)("dt",{children:e}),(0,n.jsx)("dd",{children:t})]},e))});}function N({routing:e,t}){var _ref3,_e$resolvedModelId,_e$fallbackReason;let r="model-applied"===e.executionStatus?"ok":"unavailable"===e.availability||"model-fallback"===e.executionStatus?"warn":"muted",a=t("promptEnhancer.routing.deterministic");return"model-applied"===e.executionStatus?a=t("promptEnhancer.routing.modelEnhanced",{model:(_ref3=(_e$resolvedModelId=e.resolvedModelId)!==null&&_e$resolvedModelId!==void 0?_e$resolvedModelId:e.requestedModelId)!==null&&_ref3!==void 0?_ref3:""}):"model-fallback"===e.executionStatus?a=t("promptEnhancer.routing.modelFallback",{reason:(_e$fallbackReason=e.fallbackReason)!==null&&_e$fallbackReason!==void 0?_e$fallbackReason:e.reason}):"unavailable"===e.availability&&(a=t("promptEnhancer.routing.modelUnavailable")),(0,n.jsxs)("div",{className:`pe-routing pe-routing-${r}`,"data-testid":"pe-model-routing",role:"status","aria-live":"polite",children:[(0,n.jsx)("span",{className:"pe-routing-icon","aria-hidden":"true",children:"ok"===r?(0,n.jsx)(p,{size:14}):(0,n.jsx)(h,{size:14})}),(0,n.jsx)("span",{children:a})]});}function S({safety:e,t}){let r=e.requiresHumanReview,a="rejected"===e.decision;return(0,n.jsxs)(E,{title:t("promptEnhancer.safety.title"),children:[(0,n.jsxs)("dl",{className:"pe-safety-summary","data-testid":"pe-safety-decision",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:t("promptEnhancer.safety.decision")}),(0,n.jsx)("dd",{children:(0,d.humanizeToken)(e.decision)})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:t("promptEnhancer.safety.verification")}),(0,n.jsx)("dd",{children:(0,d.humanizeToken)(e.verificationStatus)})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:t("promptEnhancer.safety.humanReview")}),(0,n.jsx)("dd",{children:t(r?"promptEnhancer.common.required":"promptEnhancer.common.notRequired")})]})]}),a?(0,n.jsx)("p",{className:"pe-safety-warning pe-safety-rejected",role:"alert",children:t("promptEnhancer.safety.rejectedWarning")}):null,r?(0,n.jsx)("p",{className:"pe-safety-warning",role:"alert",children:t("promptEnhancer.safety.reviewWarning")}):null,e.findings.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h5",{className:"pe-subhead",children:t("promptEnhancer.safety.findings")}),(0,n.jsx)("ul",{className:"pe-list","data-testid":"pe-safety-findings",children:e.findings.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("span",{className:`pe-sev pe-sev-${e.severity}`,children:e.severity})," ",e.detail]},`${e.ruleId}:${e.code}`))})]}):null,e.leastPrivilege.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h5",{className:"pe-subhead",children:t("promptEnhancer.safety.leastPrivilege")}),(0,n.jsx)(b,{items:[...e.leastPrivilege]})]}):null]});}function k({plan:e,readiness:t,t:r}){let a;return a="ready"===t.status?r("promptEnhancer.grounding.ready"):"unavailable"===t.status?r("promptEnhancer.grounding.unavailable"):r("promptEnhancer.grounding.notRequired"),(0,n.jsxs)(E,{title:r("promptEnhancer.grounding.title"),children:[(0,n.jsxs)("div",{className:`pe-grounding-readiness pe-grounding-readiness-${t.status}`,"data-testid":"pe-grounding-readiness",role:"status","aria-live":"polite",children:[(0,n.jsx)("span",{className:"pe-routing-icon","aria-hidden":"true",children:(0,n.jsx)(h,{size:14})}),(0,n.jsx)("span",{children:a})]}),(0,n.jsx)("p",{className:"pe-grounding-meta",children:r("promptEnhancer.grounding.meta",{strategy:(0,d.humanizeToken)(e.strategy),requirement:e.required?r("promptEnhancer.common.required"):r("promptEnhancer.common.optional"),discipline:(0,d.humanizeToken)(e.citation.discipline),granularity:(0,d.humanizeToken)(e.citation.granularity)})}),e.sourcePriority.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h5",{className:"pe-subhead",children:r("promptEnhancer.grounding.sourcePriority")}),(0,n.jsx)("ol",{className:"pe-list",children:e.sourcePriority.map(e=>(0,n.jsxs)("li",{children:[e.source,e.required?r("promptEnhancer.grounding.requiredSuffix"):""]},e.source))})]}):null,(0,n.jsx)(b,{items:[...e.directives]})]});}function C({evidence:e,fingerprint:t,t:r}){var _e$manifestUrl;return(0,n.jsxs)("p",{className:"pe-evidence","data-testid":"pe-evidence",children:[r("promptEnhancer.evidence.fingerprint")," ",t.slice(0,16),"...","recorded"===e.status&&void 0!==e.runId?(0,n.jsxs)(n.Fragment,{children:[" ",r("promptEnhancer.evidence.manifest")," ",(0,n.jsx)("a",{href:(_e$manifestUrl=e.manifestUrl)!==null&&_e$manifestUrl!==void 0?_e$manifestUrl:"#",target:"_blank",rel:"noreferrer","aria-label":r("promptEnhancer.evidence.manifestAriaLabel",{id:e.runId}),children:e.runId})]}):r("promptEnhancer.evidence.notRecorded")]});}function I({candidates:e,t}){return(0,n.jsx)(E,{title:t("promptEnhancer.scorecards.title"),children:(0,n.jsx)("div",{className:"c-tablewrap",children:(0,n.jsx)("div",{className:"c-tablescroll",children:(0,n.jsxs)("table",{className:"c-table responsive pe-scorecards","data-testid":"pe-scorecards",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"col",children:t("promptEnhancer.analysis.profile")}),(0,n.jsx)("th",{scope:"col",className:"num",children:t("promptEnhancer.scorecards.score")}),(0,n.jsx)("th",{scope:"col",className:"num",children:t("promptEnhancer.scorecards.tokens")}),(0,n.jsx)("th",{scope:"col",children:t("promptEnhancer.scorecards.winner")})]})}),(0,n.jsx)("tbody",{children:e.scorecards.map(r=>{let a=r.candidateId===e.winnerCandidateId;return(0,n.jsxs)("tr",{className:a?"pe-winner":void 0,"aria-selected":a?"true":void 0,children:[(0,n.jsx)("th",{scope:"row",children:r.profile}),(0,n.jsx)("td",{className:"num","data-label":t("promptEnhancer.scorecards.score"),children:r.aggregateScore.toFixed(3)}),(0,n.jsx)("td",{className:"num","data-label":t("promptEnhancer.scorecards.tokens"),children:r.estimatedTokens.toLocaleString("en-US")}),(0,n.jsx)("td",{"data-label":t("promptEnhancer.scorecards.winner"),children:a?(0,n.jsx)("span",{className:"pe-winner-mark","aria-label":t("promptEnhancer.scorecards.winner"),children:"★"}):(0,n.jsx)("span",{"aria-hidden":"true",children:"-"})})]},r.candidateId);})})]})})})});}function L({rejected:e,t}){return 0===e.length?null:(0,n.jsx)(E,{title:t("promptEnhancer.rejections.title"),children:(0,n.jsx)("div",{className:"c-tablewrap",children:(0,n.jsx)("div",{className:"c-tablescroll",children:(0,n.jsxs)("table",{className:"c-table responsive","data-testid":"pe-rejections",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"col",children:t("promptEnhancer.rejections.candidate")}),(0,n.jsx)("th",{scope:"col",children:t("promptEnhancer.analysis.profile")}),(0,n.jsx)("th",{scope:"col",className:"num",children:t("promptEnhancer.scorecards.score")}),(0,n.jsx)("th",{scope:"col",children:t("promptEnhancer.rejections.reason")})]})}),(0,n.jsx)("tbody",{children:e.map(e=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"row",children:(0,n.jsx)("code",{children:e.candidateId})}),(0,n.jsx)("td",{children:e.profile}),(0,n.jsx)("td",{className:"num","data-label":t("promptEnhancer.scorecards.score"),children:null===e.aggregateScore?t("promptEnhancer.rejections.notScored"):e.aggregateScore.toFixed(3)}),(0,n.jsx)("td",{"data-label":t("promptEnhancer.rejections.reason"),children:function(e,n){switch(e){case"lower-aggregate-score":return n("promptEnhancer.rejections.reason.lowerAggregateScore");case"lower-tie-break-rank":return n("promptEnhancer.rejections.reason.lowerTieBreakRank");case"exceeded-token-budget":return n("promptEnhancer.rejections.reason.exceededTokenBudget");case"duplicate-candidate":return n("promptEnhancer.rejections.reason.duplicateCandidate");case"safety-floor-not-preserved":return n("promptEnhancer.rejections.reason.safetyFloorNotPreserved");case"safety-validation-failed":return n("promptEnhancer.rejections.reason.safetyValidationFailed");case"profile-preference-not-matched":return n("promptEnhancer.rejections.reason.profilePreferenceNotMatched");}}(e.reason,t)})]},e.candidateId))})]})})})});}function $({routing:e,t}){return"model-applied"!==e.executionStatus?null:(0,n.jsx)("p",{className:"pe-evidence","data-testid":"pe-baseline-note",children:t("promptEnhancer.result.baselineNote")});}function M({result:e,t}){let r=e.enhancedPrompt,a=e.analysis.missingContext.map(e=>"assumption"===e.kind?e.statement:e.question);return(0,n.jsxs)("div",{className:"pe-section-grid",children:[(0,n.jsx)(E,{title:t("promptEnhancer.section.role"),children:(0,n.jsx)("p",{children:r.role})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.objective"),children:(0,n.jsx)("p",{children:r.goal})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.context"),children:(0,n.jsx)(b,{items:[...r.context],empty:t("promptEnhancer.section.noAdditionalContext")})}),(0,n.jsx)(E,{title:t(e.analysis.missingContext.some(e=>"assumption"===e.kind)?"promptEnhancer.section.assumptions":"promptEnhancer.section.clarificationQuestions"),children:(0,n.jsx)(b,{items:a,empty:t("promptEnhancer.section.noClarifications")})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.steps"),children:(0,n.jsx)(b,{items:[...r.taskDecomposition]})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.constraints"),children:(0,n.jsx)(b,{items:[...r.constraints]})}),(0,n.jsxs)(E,{title:t("promptEnhancer.section.outputSchema"),children:[(0,n.jsxs)("p",{children:[t("promptEnhancer.section.format")," ",(0,n.jsx)("strong",{children:r.outputSchema.format}),r.outputSchema.structured?t("promptEnhancer.section.structuredSuffix"):""]}),(0,n.jsx)(b,{items:[...r.outputSchema.hints]})]}),(0,n.jsx)(E,{title:t("promptEnhancer.section.qualityCriteria"),children:(0,n.jsx)(b,{items:[...r.qualityCriteria]})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.uncertaintyHandling"),children:(0,n.jsx)(b,{items:[...r.uncertaintyHandling]})}),(0,n.jsx)(E,{title:t("promptEnhancer.section.safetyRules"),children:(0,n.jsx)(b,{items:[...r.safetyRules]})})]});}e.s(["PromptEnhancerPanel",0,function({connectedRoot:e=null,connectedFilePath:l=null,connectedRoots:d,enhanceImpl:p=r.enhancePrompt,fetchModelsImpl:h=r.fetchModels}={}){let b=(0,s.useOptionalWidgetTranslate)(),[T,R]=(0,t.useState)(""),[F,_]=(0,t.useState)("auto"),[D,A]=(0,t.useState)("clarify"),[P,H]=(0,t.useState)(v),[W,z]=(0,t.useState)([]),[K,B]=(0,t.useState)(null),[O,U]=(0,t.useState)(null),[V,q]=(0,t.useState)(!1),[Y,G]=(0,t.useState)(null),[J,X]=(0,t.useState)("idle"),[Z,Q]=(0,t.useState)(null),ee=(0,t.useRef)(null),en=(0,t.useRef)(null),et=(0,t.useRef)(null),er=(0,t.useId)(),ea=(0,t.useId)(),ei=(0,t.useId)();(0,t.useEffect)(()=>{let e=!1;return h().then(n=>{e||z(n.models.filter(e=>"chat"===e.kind));}).catch(()=>{}),()=>{e=!0;};},[h]),(0,t.useEffect)(()=>()=>{var _et$current;(_et$current=et.current)===null||_et$current===void 0||_et$current.abort();},[]);let es=function({connectedRoot:e,connectedFilePath:n,connectedRoots:t},r,_i$){let a=(0,u.buildConnectedRunSources)({connectedRoot:e!==null&&e!==void 0?e:null,connectedFilePath:n!==null&&n!==void 0?n:null,connectedRoots:t});if(0===a.length)return{hasConnectedContext:!1,attachmentCount:0,label:r("promptEnhancer.context.noFilesSource"),signature:"none"};let i=a.map(e=>e.label),s=1===i.length?(_i$=i[0])!==null&&_i$!==void 0?_i$:r("promptEnhancer.context.connectedSource"):r("promptEnhancer.context.connectedSources",{count:i.length});return{hasConnectedContext:!0,attachmentCount:a.length,label:s,signature:JSON.stringify(a)};}({connectedRoot:e,connectedFilePath:l,connectedRoots:d},b);(0,t.useEffect)(()=>{if("copied"!==J)return;let e=window.setTimeout(()=>{X("idle"),Q(null);},3e3);return()=>{window.clearTimeout(e);};},[J]),(0,t.useEffect)(()=>{var _en$current;null!==K&&((_en$current=en.current)===null||_en$current===void 0?void 0:_en$current.focus());},[K]);let el=(0,t.useCallback)(async()=>{var _et$current2;let e=T.trim();if(0===e.length)return void G(b("promptEnhancer.error.enterDraft"));(_et$current2=et.current)===null||_et$current2===void 0||_et$current2.abort();let n=new AbortController();et.current=n,q(!0),G(null),X("idle"),Q(null);let t={text:e,missingInformationStrategy:"assume"===D?"assume":"clarify",...(es.hasConnectedContext?{hasConnectedContext:!0,attachmentCount:es.attachmentCount}:{}),...("auto"===F?{}:{profilePreference:F}),...(P===v?{}:{modelId:P})};try{let e=await p(t,n.signal);n.signal.aborted||(B(e),U(es.signature));}catch(e){n.signal.aborted||G(e instanceof a.ApiError?`${e.message} (${e.code})`:e instanceof Error&&"AbortError"===e.name?b("promptEnhancer.error.cancelled"):b("promptEnhancer.error.failed"));}finally{n.signal.aborted||q(!1);}},[T,D,es,F,P,p,b]),eo=(0,t.useCallback)(async()=>{if(null!==K){G(null),X("copying"),Q(b("promptEnhancer.copy.copyingStatus"));try{await(0,i.copyTextToClipboard)(K.renderedPrompt),X("copied"),Q(b("promptEnhancer.copy.copied"));}catch{X("failed"),Q(b("promptEnhancer.copy.failed"));}}},[K,b]),ec=(0,t.useCallback)(()=>{var _et$current3,_ee$current;(_et$current3=et.current)!==null&&_et$current3!==void 0&&_et$current3.abort(),et.current=null,R(""),B(null),U(null),q(!1),G(null),X("idle"),Q(null),(_ee$current=ee.current)===null||_ee$current===void 0?void 0:_ee$current.focus();},[]),ed=[{options:[{value:v,label:b("promptEnhancer.model.deterministicOnly")},...W.map(e=>({value:e.id,label:e.id}))]}],eu=T.trim().length,ep=b(V?"promptEnhancer.status.enhancing":0===eu?"promptEnhancer.status.waitingForDraft":"promptEnhancer.status.ready"),eh=eu>0||null!==K||V||null!==Y||"idle"!==J||null!==Z,em=null!==K&&null!==O&&O!==es.signature;return(0,n.jsxs)("div",{className:"pe-panel","data-testid":"prompt-enhancer-panel",children:[(0,n.jsxs)("div",{className:"pe-header","data-testid":"pe-header",children:[(0,n.jsx)("span",{className:"pe-header-icon","aria-hidden":"true",children:(0,n.jsx)(m,{size:18})}),(0,n.jsxs)("div",{className:"pe-header-copy",children:[(0,n.jsx)("p",{className:"pe-eyebrow",children:b("promptEnhancer.header.eyebrow")}),(0,n.jsx)("h3",{className:"pe-title",children:b("promptEnhancer.header.title")})]}),(0,n.jsx)("span",{className:"pe-header-chip",children:b("promptEnhancer.header.reviewBeforeUse")})]}),(0,n.jsxs)("form",{className:"pe-form",onSubmit:e=>{e.preventDefault(),el();},children:[(0,n.jsxs)("div",{className:"pe-draft-card",children:[(0,n.jsxs)("div",{className:"pe-field-head",children:[(0,n.jsx)("label",{className:"pe-label",htmlFor:er,children:b("promptEnhancer.field.rawPrompt")}),(0,n.jsx)("span",{className:"pe-counter",id:ea,children:b("promptEnhancer.analysis.chars",{count:eu})})]}),(0,n.jsx)("textarea",{ref:ee,id:er,className:"pe-draft",value:T,onChange:e=>{R(e.target.value);},rows:8,placeholder:b("promptEnhancer.field.draftPlaceholder"),"aria-describedby":null===Y?ea:`${ea} ${ei}`})]}),(0,n.jsxs)("aside",{className:"pe-controls-card","aria-label":b("promptEnhancer.controls.ariaLabel"),children:[(0,n.jsxs)("div",{className:"pe-controls",children:[(0,n.jsxs)("div",{className:"pe-control",children:[(0,n.jsx)("span",{className:"pe-label","aria-hidden":"true",children:b("promptEnhancer.analysis.profile")}),(0,n.jsx)(o.default,{value:F,ariaLabel:b("promptEnhancer.analysis.profile"),onValueChange:_,sections:[{options:j.map(e=>({value:e,label:b(`promptEnhancer.profile.${e}`)}))}],triggerClassName:"pe-select",menuClassName:"pe-select-menu"})]}),(0,n.jsxs)("div",{className:"pe-control",children:[(0,n.jsx)("span",{className:"pe-label","aria-hidden":"true",children:b("promptEnhancer.controls.missingInformation")}),(0,n.jsx)(o.default,{value:D,ariaLabel:b("promptEnhancer.controls.missingInformation"),onValueChange:A,sections:[{options:y.map(e=>({value:e,label:b(`promptEnhancer.strategy.${e}`)}))}],triggerClassName:"pe-select",menuClassName:"pe-select-menu"})]}),(0,n.jsxs)("div",{className:"pe-control",children:[(0,n.jsx)("span",{className:"pe-label","aria-hidden":"true",children:b("promptEnhancer.controls.model")}),(0,n.jsx)(o.default,{value:P,ariaLabel:b("promptEnhancer.controls.model"),onValueChange:H,sections:ed,triggerClassName:"pe-select",menuClassName:"pe-select-menu"})]})]}),(0,n.jsxs)("div",{className:"pe-grounding-context","data-connected":es.hasConnectedContext?"true":"false","data-testid":"pe-grounding-context",children:[(0,n.jsx)("span",{className:"pe-routing-icon","aria-hidden":"true",children:(0,n.jsx)(f,{size:14})}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"pe-context-label",children:b("promptEnhancer.context.title")}),(0,n.jsx)("strong",{children:es.label})]})]}),em?(0,n.jsx)("p",{className:"pe-context-stale",role:"status","aria-live":"polite",children:b("promptEnhancer.context.changed")}):null,(0,n.jsxs)("div",{className:"pe-command-row",children:[(0,n.jsxs)("button",{type:"submit",className:"pe-button pe-button-primary pe-enhance",disabled:V||0===eu,children:[(0,n.jsx)(m,{size:15}),(0,n.jsx)("span",{children:V?b("promptEnhancer.action.enhancing"):b("promptEnhancer.action.enhance")})]}),(0,n.jsxs)("button",{type:"button",className:"pe-button pe-button-secondary pe-clear",onClick:ec,disabled:!eh,"aria-label":b("promptEnhancer.action.clearAriaLabel"),children:[(0,n.jsx)(g,{size:15}),(0,n.jsx)("span",{children:b("promptEnhancer.action.clear")})]})]}),(0,n.jsx)("p",{className:"pe-status",role:"status","aria-live":"polite",children:ep})]})]}),null!==Y?(0,n.jsx)("p",{className:"pe-error",role:"alert",id:ei,children:Y}):null,null!==K?(0,n.jsxs)("div",{className:"pe-result","data-testid":"pe-result",children:[(0,n.jsxs)("div",{className:"pe-result-head",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"pe-eyebrow",children:b("promptEnhancer.result.eyebrow")}),(0,n.jsx)("h4",{className:"pe-result-title",ref:en,tabIndex:-1,children:b("promptEnhancer.result.title")})]}),(0,n.jsx)(N,{routing:K.modelRouting,t:b})]}),(0,n.jsx)(w,{result:K,t:b}),(0,n.jsxs)(E,{title:b("promptEnhancer.rendered.title"),children:[(0,n.jsx)("pre",{className:"pe-rendered","aria-label":b("promptEnhancer.rendered.ariaLabel"),"data-text-selectable":"true",children:K.renderedPrompt}),(0,n.jsxs)("div",{className:"pe-actions",children:[null!==Z?(0,n.jsx)("output",{className:`pe-copy-status pe-copy-status-${J}`,style:c.NATIVE_BLOCK_STYLE,role:"failed"===J?"alert":void 0,"aria-live":"polite",children:Z}):null,(0,n.jsxs)("button",{type:"button",className:"pe-button pe-button-secondary pe-copy",disabled:"copying"===J,onClick:()=>{eo();},children:[(0,n.jsx)(x,{size:15}),(0,n.jsx)("span",{children:"copying"===J?b("promptEnhancer.action.copying"):b("promptEnhancer.action.copy")})]})]})]}),(0,n.jsxs)("div",{className:"pe-review-grid",children:[(0,n.jsx)(S,{safety:K.safety,t:b}),(0,n.jsx)(k,{plan:K.enhancedPrompt.groundingPlan,readiness:K.groundingReadiness,t:b})]}),(0,n.jsx)($,{routing:K.modelRouting,t:b}),(0,n.jsx)(M,{result:K,t:b}),(0,n.jsx)(I,{candidates:K.candidates,t:b}),(0,n.jsx)(L,{rejected:K.candidates.rejected,t:b}),(0,n.jsx)(C,{evidence:K.evidence,fingerprint:K.inputFingerprintSha256,t:b})]}):(0,n.jsxs)("div",{className:"pe-empty-state","aria-label":b("promptEnhancer.empty.ariaLabel"),children:[(0,n.jsx)(f,{size:18}),(0,n.jsx)("span",{children:b("promptEnhancer.empty.message")})]})]});}]);},38661,function(e){e.n(e.i(7568));},56782,e=>{"use strict";var n=e.i(68611);let t="connectedSourcesJson";function r(e,n){let t=e[n];return"string"==typeof t?t:void 0;}function a(e,n){return"string"==typeof e[n];}function i(e){if(!("object"==typeof e&&null!==e&&!Array.isArray(e))||!a(e,"label"))return!1;switch(e.kind){case"file":case"workspace":return a(e,"path");case"capsule":return a(e,"capsuleId");case"capsule-set":return a(e,"capsuleSetId");case"figma-snapshot":let n;return a(e,"snapshotRunId")&&(void 0===(n=e.screenIds)||Array.isArray(n)&&n.length>0&&n.every(e=>"string"==typeof e&&e.trim().length>0));case"image":return"figma-snapshot-screen"===e.sourceKind&&a(e,"snapshotRunId")&&a(e,"screenId");default:return!1;}}function s(e){var _n;let n=e.split(/[\\/]/u).filter(e=>e.length>0);return n.length>0?(_n=n[n.length-1])!==null&&_n!==void 0?_n:e:e;}function l(e){return e.replaceAll("\\","/");}function o(e){if(/^[A-Za-z]:[/\\]?$/u.test(e))return e.replaceAll("\\","/");if(/^\/\/[^/]+\/[^/]+$/u.test(l(e)))return l(e);let n=function(e){let n=e.length;for(;n>0&&"/"===e[n-1];)n--;return e.slice(0,n);}(l(e));return 0===n.length&&e.length>0?"/":n;}function c(e){var _e$connectedRoot,_e$connectedFilePath;let t,r,a,i,c,{connectedFile:d,folderRoots:u}=(r=function(e,n,_n$trim,_e$trim){let t=(_n$trim=n===null||n===void 0?void 0:n.trim())!==null&&_n$trim!==void 0?_n$trim:"";if(0===t.length)return null;if(t.startsWith("/")||/^[A-Za-z]:[/\\]/u.test(t)||t.startsWith("\\\\")||t.startsWith("//"))return t;let r=(_e$trim=e===null||e===void 0?void 0:e.trim())!==null&&_e$trim!==void 0?_e$trim:"";if(0===r.length)return null;let a=o(r),i=l(t).replace(/^\/+/u,""),s=a.endsWith("/")?"":"/";return`${a}${s}${i}`;}(t=(_e$connectedRoot=e.connectedRoot)!==null&&_e$connectedRoot!==void 0?_e$connectedRoot:null,(_e$connectedFilePath=e.connectedFilePath)!==null&&_e$connectedFilePath!==void 0?_e$connectedFilePath:null),a=null!==t?o(t):null,i=(void 0!==e.connectedRoots&&null!==e.connectedRoots&&e.connectedRoots.length>0?e.connectedRoots:null!==t?[t]:[]).map(o),c=null!==r?i.filter(e=>e!==a):i,{connectedFile:r,folderRoots:c});var p=function(e,n,t){let r=[];for(let e of(null!==n&&r.push({kind:"file",label:s(n),path:n}),t))r.push({kind:"workspace",label:s(e),path:e});for(let n of(_e$connectedCapsuleId=e.connectedCapsuleIds)!==null&&_e$connectedCapsuleId!==void 0?_e$connectedCapsuleId:[]){var _e$connectedCapsuleId;r.push({kind:"capsule",label:n,capsuleId:n});}for(let n of(_e$connectedCapsuleSe=e.connectedCapsuleSetIds)!==null&&_e$connectedCapsuleSe!==void 0?_e$connectedCapsuleSe:[]){var _e$connectedCapsuleSe;r.push({kind:"capsule-set",label:n,capsuleSetId:n});}for(let n of void 0!==e.connectedFigmaSnapshotSources?e.connectedFigmaSnapshotSources:((_e$connectedFigmaSnap=e.connectedFigmaSnapshotRunIds)!==null&&_e$connectedFigmaSnap!==void 0?_e$connectedFigmaSnap:[]).map(e=>({kind:"figma-snapshot",label:e,snapshotRunId:e}))){var _e$connectedFigmaSnap;r.push(n);}for(let n of(_e$connectedImageSour=e.connectedImageSources)!==null&&_e$connectedImageSour!==void 0?_e$connectedImageSour:[]){var _e$connectedImageSour;r.push(n);}return r;}(e,d,u);let h=new Set(),m=[];for(let e of p){if(m.length>=n.MAX_SCOPES)break;let t=function(e){switch(e.kind){case"file":case"workspace":return`${e.kind}:${e.path}`;case"capsule":return`capsule:${e.capsuleId}`;case"capsule-set":return`capsule-set:${e.capsuleSetId}`;case"figma-snapshot":{let n=e.screenIds,t=void 0===n||0===n.length?"*":[...new Set(n.map(e=>e.trim()).filter(e=>e.length>0))].sort((e,n)=>e.localeCompare(n)).join(",");return`figma-snapshot:${e.snapshotRunId}:${t}`;}case"image":return`image:${e.sourceKind}:${e.snapshotRunId}:${e.screenId}`;}}(e);h.has(t)||(h.add(t),m.push(e));}return m;}e.s(["buildConnectedRunSources",0,c,"connectedRunSourcesCfgFromInlineSources",0,function(e){return{[t]:JSON.stringify(e.filter(i))};},"connectedRunSourcesCfgFromSources",0,function(e){return e.length>0?{[t]:JSON.stringify(e)}:{};},"connectedRunSourcesFromWindowCfg",0,function(e){var _r,_r2;let n=r(e,t);if(void 0!==n&&n.length>0){let e=function(e){try{let n=JSON.parse(e);if(!Array.isArray(n)||!n.every(i))return null;return n;}catch{return null;}}(n);if(null!==e)return e;}return c({connectedFilePath:(_r=r(e,"connectedFilePath"))!==null&&_r!==void 0?_r:null,connectedRoot:(_r2=r(e,"connectedRoot"))!==null&&_r2!==void 0?_r2:null});}]);},56049,e=>{"use strict";async function n(e,n,t){let r=n&&document.activeElement instanceof HTMLElement?document.activeElement:null,a=document.createElement("textarea");a.value=e,a.setAttribute("readonly","true"),a.style.position="fixed",a.style.inset="0 auto auto -9999px",a.style.width="1px",a.style.height="1px",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a);try{if(a.focus(),a.select(),!("function"==typeof document.execCommand&&document.execCommand("copy")))throw Error("clipboard-fallback-failed",{cause:t});}finally{a.remove(),n&&(r===null||r===void 0?void 0:r.focus());}}async function t(e,t){var _t$restoreFocus,_navigator$clipboard;let r,a=(_t$restoreFocus=t===null||t===void 0?void 0:t.restoreFocus)!==null&&_t$restoreFocus!==void 0?_t$restoreFocus:!0,i="u"<typeof navigator?void 0:(_navigator$clipboard=navigator.clipboard)===null||_navigator$clipboard===void 0?void 0:_navigator$clipboard.writeText;if(void 0!==i&&void 0!==navigator.clipboard)try{await i.call(navigator.clipboard,e);return;}catch(e){r=e;}if("u"<typeof document||null===document.body)throw Error("clipboard-unavailable",{cause:r});await n(e,a,r);}e.s(["copyTextToClipboard",0,t]);},83449,e=>{"use strict";let n=new Map();function t(e,t){let r=e!==null&&e!==void 0?e:"en",a=`${r}:${t}`,i=n.get(a);return void 0===i&&(i=new Intl.NumberFormat(r,{minimumFractionDigits:t,maximumFractionDigits:t,useGrouping:!1}),n.set(a,i)),i;}function r(e,n){return t(n,1).format(e);}function a(e,n){return t(n,0).format(e);}e.s(["costClassLabel",0,function(e){switch(e){case"low":return"Low cost";case"medium":return"Medium cost";case"high":return"High cost";case"unknown":return"Unknown cost";}},"formatBytes",0,function(e,n){return!Number.isFinite(e)||e<=0?"0 B":e<1024?`${e.toString()} B`:e<1048576?`${r(e/1024,n)} KB`:e<0x40000000?`${r(e/1048576,n)} MB`:`${r(e/0x40000000,n)} GB`;},"formatBytesPrecise",0,function(e){var n;if(!Number.isFinite(e)||e<=0)return"0 B";let t=["B","KB","MB","GB"],r=e,a=0;for(;r>=1024&&a<t.length-1;)r/=1024,a+=1;let i=(n=r,0===a?n.toFixed(0):n>=10?n.toFixed(1):n.toFixed(2));return`${i} ${t[a]}`;},"formatDate",0,function(e){try{return new Date(e).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});}catch{return"string"==typeof e?e:e.toString();}},"formatDurationCompact",0,function(e){if(!Number.isFinite(e)||e<=0)return"0s";let n=Math.round(e/1e3),t=Math.floor(n/60),r=n%60;return 0===t?`${r.toString()}s`:`${t.toString()}m ${r.toString().padStart(2,"0")}s`;},"formatMs",0,function(e,n){let r=Math.round(e);if(r<1e3)return`${a(r,n)} ms`;let i=Math.round(e/100)/10;if(i<60)return`${t(n,1).format(i)} s`;let s=Math.floor(i/60),l=Math.floor(i%60);return`${a(s,n)}m ${a(l,n)}s`;},"formatTokens",0,function(e){return e<1e3?e.toString():`${(e/1e3).toFixed(1)}k`;},"outcomeLabel",0,function(e){switch(e){case"fix-applied":return"Fix applied";case"fix-proposed":return"Fix proposed (dry-run)";case"investigation-only":return"Investigation only";case"limit-exceeded":return"Limit exceeded";case"dry-run":return"Dry-run";default:return e.charAt(0).toUpperCase()+e.slice(1);}},"runStatusLabel",0,function(e){var _running$completed$dr;return(_running$completed$dr={running:"Running",completed:"Completed","dry-run":"Dry run",rejected:"Rejected",cancelled:"Cancelled",failed:"Failed","fix-applied":"Fix applied","fix-proposed":"Fix proposed","investigation-only":"Investigation only"}[e])!==null&&_running$completed$dr!==void 0?_running$completed$dr:e;},"toSafeIsoString",0,function(e){let n=new Date(e);return Number.isNaN(n.getTime())?void 0:n.toISOString();}]);}]);