@oscharko-dev/keiko 1.3.1 → 1.3.2

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 (356) hide show
  1. package/README.md +14 -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 +4 -4
  5. package/dist/ui/static/__next._full.txt +4 -4
  6. package/dist/ui/static/__next._tree.txt +1 -1
  7. package/dist/ui/static/_next/static/chunks/01f2r2l4gzscm.css +4 -0
  8. package/dist/ui/static/_next/static/chunks/{3_10vm9g45_8y.js → 06j35fs_cota7.js} +1 -1
  9. package/dist/ui/static/_next/static/chunks/0egrai9cigb1t.js +1 -0
  10. package/dist/ui/static/_next/static/chunks/0gzualdhleagc.js +1 -0
  11. package/dist/ui/static/_next/static/chunks/{3_qhvykv4ncye.js → 0wsxu0g-c4dbf.js} +1 -1
  12. package/dist/ui/static/_next/static/chunks/{1jh83l6i471hs.js → 1axubnnxhxh-s.js} +1 -1
  13. package/dist/ui/static/_next/static/chunks/1gnjh00dyjkye.js +1 -0
  14. package/dist/ui/static/_next/static/chunks/{21yx7habl0roe.js → 1jgm4793jm1pv.js} +1 -1
  15. package/dist/ui/static/_next/static/chunks/1livbv_zx95bb.js +1 -0
  16. package/dist/ui/static/_next/static/chunks/1lpdde9w2vl93.js +1 -0
  17. package/dist/ui/static/_next/static/chunks/2muaa_i0plkwf.js +1 -0
  18. package/dist/ui/static/_next/static/chunks/{3dgn8o9f1kc8m.js → 3_2d222-16b9x.js} +1 -1
  19. package/dist/ui/static/_next/static/chunks/{3jgowfcbukuu6.js → 3__pdxfo3bpc1.js} +1 -1
  20. package/dist/ui/static/_next/static/chunks/{3tl76hukh2-pb.js → 3hw8-lgs3prjc.js} +1 -1
  21. package/dist/ui/static/_next/static/chunks/{26dysjhfplkru.js → 3pe5ji2-axln6.js} +1 -1
  22. package/dist/ui/static/_next/static/chunks/{1nz7wziy2b21i.js → 3qgbq3-b3p7a3.js} +1 -1
  23. package/dist/ui/static/_next/static/chunks/{3e-3pvlfnqvhc.js → 3ts6g_psw2r__.js} +1 -1
  24. package/dist/ui/static/_next/static/chunks/3ulj-p08q5sh1.js +1 -0
  25. package/dist/ui/static/_next/static/chunks/3yaa0g7ymbq5e.js +1 -0
  26. package/dist/ui/static/_not-found/__next._full.txt +1 -1
  27. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  28. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  29. package/dist/ui/static/_not-found.html +1 -1
  30. package/dist/ui/static/_not-found.txt +1 -1
  31. package/dist/ui/static/atlassian-connectors/__next._full.txt +1 -1
  32. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  33. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +1 -1
  34. package/dist/ui/static/atlassian-connectors.html +1 -1
  35. package/dist/ui/static/atlassian-connectors.txt +1 -1
  36. package/dist/ui/static/index.html +1 -1
  37. package/dist/ui/static/index.txt +4 -4
  38. package/dist/ui/static/launch/__next._full.txt +4 -4
  39. package/dist/ui/static/launch/__next._tree.txt +1 -1
  40. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +4 -4
  41. package/dist/ui/static/launch.html +1 -1
  42. package/dist/ui/static/launch.txt +4 -4
  43. package/dist/ui/static/local-knowledge/__next._full.txt +4 -4
  44. package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
  45. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +4 -4
  46. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +1 -1
  47. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  48. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +1 -1
  49. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  50. package/dist/ui/static/local-knowledge/capsule.txt +1 -1
  51. package/dist/ui/static/local-knowledge.html +1 -1
  52. package/dist/ui/static/local-knowledge.txt +4 -4
  53. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory-data.generated.json +14 -1
  54. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +5 -0
  55. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
  56. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +6 -0
  57. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +7 -0
  58. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
  59. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +9 -1
  60. package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
  61. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts +2 -0
  62. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts.map +1 -1
  63. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.js +38 -2
  64. package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
  65. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
  66. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
  67. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  68. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +24 -4
  69. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
  70. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +29 -1
  71. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-coverage.generated.json +128 -3
  72. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.d.ts +1 -1
  73. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.js +1 -1
  74. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operation-surfaces.generated.json +2 -0
  75. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +103 -3
  76. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -1
  77. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +107 -1
  78. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +5 -1
  79. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
  80. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +8 -0
  81. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +48 -1
  82. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts.map +1 -1
  83. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.js +85 -6
  84. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.d.ts +14 -1
  85. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.d.ts.map +1 -1
  86. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.js +23 -0
  87. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts +23 -0
  88. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts.map +1 -1
  89. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.js +29 -0
  90. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
  91. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
  92. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  93. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  94. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  95. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  96. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  97. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
  98. package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
  99. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  100. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  101. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  102. package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
  103. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  104. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  105. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  106. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  107. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  108. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  109. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  110. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  111. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  112. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  113. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  114. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  115. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  116. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  117. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  118. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  119. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  120. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  121. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +10 -7
  122. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
  123. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
  124. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +20 -4
  125. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +1 -1
  126. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
  127. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +1 -1
  128. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts +1 -1
  129. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts.map +1 -1
  130. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.js +24 -3
  131. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts.map +1 -1
  132. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.js +8 -0
  133. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +7 -1
  134. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
  135. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +70 -12
  136. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts.map +1 -1
  137. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.js +24 -6
  138. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  139. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  140. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
  141. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  142. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  143. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  144. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-code.d.ts +6 -0
  145. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-code.d.ts.map +1 -1
  146. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-diff.d.ts.map +1 -1
  147. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-diff.js +77 -9
  148. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts +12 -3
  149. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
  150. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +32 -5
  151. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  152. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  153. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  154. package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.d.ts.map +1 -1
  155. package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.js +4 -1
  156. package/node_modules/@oscharko-dev/keiko-server/dist/browser.d.ts.map +1 -1
  157. package/node_modules/@oscharko-dev/keiko-server/dist/browser.js +5 -5
  158. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +4 -4
  159. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingRunSessionLease.d.ts +13 -2
  160. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingRunSessionLease.d.ts.map +1 -1
  161. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingRunSessionLease.js +8 -2
  162. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionStreamWriter.d.ts +3 -2
  163. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionStreamWriter.d.ts.map +1 -1
  164. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionStreamWriter.js +4 -3
  165. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +5 -0
  166. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts.map +1 -1
  167. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.js +9 -0
  168. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +25 -0
  169. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
  170. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +127 -28
  171. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts.map +1 -1
  172. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +3 -7
  173. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +25 -6
  174. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +2 -2
  175. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts +12 -1
  176. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts.map +1 -1
  177. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.js +14 -2
  178. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +8 -0
  179. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
  180. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +14 -2
  181. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.d.ts.map +1 -1
  182. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.js +6 -1
  183. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts +3 -3
  184. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts.map +1 -1
  185. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.js +28 -13
  186. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessTree.d.ts +4 -0
  187. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessTree.d.ts.map +1 -1
  188. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessTree.js +53 -6
  189. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeHttpClient.js +3 -0
  190. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +7 -1
  191. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
  192. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +8 -1
  193. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts +3 -3
  194. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts.map +1 -1
  195. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.js +4 -1
  196. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts +17 -7
  197. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts.map +1 -1
  198. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.js +36 -16
  199. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.d.ts +9 -7
  200. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.d.ts.map +1 -1
  201. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.js +53 -12
  202. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRunStateSweep.d.ts +27 -0
  203. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRunStateSweep.d.ts.map +1 -0
  204. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRunStateSweep.js +114 -0
  205. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +12 -0
  206. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts.map +1 -1
  207. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +62 -2
  208. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +8 -0
  209. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
  210. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +52 -8
  211. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +7 -7
  212. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts.map +1 -1
  213. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.js +7 -2
  214. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +23 -2
  215. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -1
  216. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +145 -55
  217. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +11 -0
  218. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
  219. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +35 -11
  220. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts +5 -0
  221. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts.map +1 -1
  222. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.js +7 -0
  223. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.js +1 -0
  224. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +5 -0
  225. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts.map +1 -1
  226. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +10 -2
  227. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
  228. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +13 -2
  229. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts.map +1 -1
  230. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.js +3 -1
  231. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts +3 -0
  232. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts.map +1 -1
  233. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.js +21 -3
  234. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
  235. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +96 -23
  236. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.js +2 -2
  237. package/node_modules/@oscharko-dev/keiko-server/dist/command-runner-routes.d.ts.map +1 -1
  238. package/node_modules/@oscharko-dev/keiko-server/dist/command-runner-routes.js +4 -4
  239. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +1 -3
  240. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  241. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +2 -80
  242. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +1 -1
  243. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
  244. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +8 -2
  245. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts.map +1 -1
  246. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +12 -6
  247. package/node_modules/@oscharko-dev/keiko-server/dist/editor/dap/dapDebugRoutes.js +5 -5
  248. package/node_modules/@oscharko-dev/keiko-server/dist/editor/settings/editorSettingsEvents.js +2 -2
  249. package/node_modules/@oscharko-dev/keiko-server/dist/editor/snippets/workspaceSnippetsRoutes.js +3 -3
  250. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRoutes.d.ts.map +1 -1
  251. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRoutes.js +9 -8
  252. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.js +6 -6
  253. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  254. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +89 -5
  255. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffTruncation.d.ts +2 -0
  256. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffTruncation.d.ts.map +1 -0
  257. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffTruncation.js +78 -0
  258. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffView.d.ts +9 -0
  259. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffView.d.ts.map +1 -0
  260. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffView.js +54 -0
  261. package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts.map +1 -1
  262. package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.js +27 -3
  263. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +3 -3
  264. package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.d.ts +13 -0
  265. package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.d.ts.map +1 -0
  266. package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.js +85 -0
  267. package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.d.ts +1 -1
  268. package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.d.ts.map +1 -1
  269. package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.js +4 -4
  270. package/node_modules/@oscharko-dev/keiko-server/dist/relationship-handlers.js +3 -3
  271. package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.d.ts.map +1 -1
  272. package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.js +4 -14
  273. package/node_modules/@oscharko-dev/keiko-server/dist/runtime/containerRoutes.d.ts.map +1 -1
  274. package/node_modules/@oscharko-dev/keiko-server/dist/runtime/containerRoutes.js +4 -4
  275. package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.d.ts +42 -18
  276. package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.d.ts.map +1 -1
  277. package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.js +122 -35
  278. package/node_modules/@oscharko-dev/keiko-server/dist/sse.d.ts +6 -4
  279. package/node_modules/@oscharko-dev/keiko-server/dist/sse.d.ts.map +1 -1
  280. package/node_modules/@oscharko-dev/keiko-server/dist/sse.js +13 -29
  281. package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.d.ts.map +1 -1
  282. package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.js +5 -5
  283. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts.map +1 -1
  284. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.js +4 -3
  285. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolLifecycle.d.ts.map +1 -1
  286. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolLifecycle.js +15 -1
  287. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts +1 -1
  288. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts.map +1 -1
  289. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.js +19 -5
  290. package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
  291. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/arguments.d.ts +1 -1
  292. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/arguments.d.ts.map +1 -1
  293. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/arguments.js +2 -1
  294. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.d.ts +2 -2
  295. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.d.ts.map +1 -1
  296. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.js +6 -5
  297. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.d.ts +9 -3
  298. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.d.ts.map +1 -1
  299. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.js +19 -8
  300. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
  301. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +6 -4
  302. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  303. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  304. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  305. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  306. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  307. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  308. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  309. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  310. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  311. package/package.json +27 -27
  312. package/release-impact.catalog.json +70 -0
  313. package/vendor/oscharko-dev-keiko-activity-log-1.3.2.tgz +0 -0
  314. package/vendor/oscharko-dev-keiko-cli-1.3.2.tgz +0 -0
  315. package/vendor/{oscharko-dev-keiko-connectors-1.3.1.tgz → oscharko-dev-keiko-connectors-1.3.2.tgz} +0 -0
  316. package/vendor/oscharko-dev-keiko-contracts-1.3.2.tgz +0 -0
  317. package/vendor/{oscharko-dev-keiko-evaluations-1.3.1.tgz → oscharko-dev-keiko-evaluations-1.3.2.tgz} +0 -0
  318. package/vendor/{oscharko-dev-keiko-evidence-1.3.1.tgz → oscharko-dev-keiko-evidence-1.3.2.tgz} +0 -0
  319. package/vendor/{oscharko-dev-keiko-git-1.3.1.tgz → oscharko-dev-keiko-git-1.3.2.tgz} +0 -0
  320. package/vendor/{oscharko-dev-keiko-harness-1.3.1.tgz → oscharko-dev-keiko-harness-1.3.2.tgz} +0 -0
  321. package/vendor/{oscharko-dev-keiko-local-knowledge-1.3.1.tgz → oscharko-dev-keiko-local-knowledge-1.3.2.tgz} +0 -0
  322. package/vendor/{oscharko-dev-keiko-memory-capture-1.3.1.tgz → oscharko-dev-keiko-memory-capture-1.3.2.tgz} +0 -0
  323. package/vendor/{oscharko-dev-keiko-memory-consolidation-1.3.1.tgz → oscharko-dev-keiko-memory-consolidation-1.3.2.tgz} +0 -0
  324. package/vendor/{oscharko-dev-keiko-memory-governance-1.3.1.tgz → oscharko-dev-keiko-memory-governance-1.3.2.tgz} +0 -0
  325. package/vendor/{oscharko-dev-keiko-memory-retrieval-1.3.1.tgz → oscharko-dev-keiko-memory-retrieval-1.3.2.tgz} +0 -0
  326. package/vendor/{oscharko-dev-keiko-memory-vault-1.3.1.tgz → oscharko-dev-keiko-memory-vault-1.3.2.tgz} +0 -0
  327. package/vendor/oscharko-dev-keiko-model-gateway-1.3.2.tgz +0 -0
  328. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.3.1.tgz → oscharko-dev-keiko-quality-intelligence-1.3.2.tgz} +0 -0
  329. package/vendor/{oscharko-dev-keiko-sandbox-1.3.1.tgz → oscharko-dev-keiko-sandbox-1.3.2.tgz} +0 -0
  330. package/vendor/{oscharko-dev-keiko-sdk-1.3.1.tgz → oscharko-dev-keiko-sdk-1.3.2.tgz} +0 -0
  331. package/vendor/oscharko-dev-keiko-security-1.3.2.tgz +0 -0
  332. package/vendor/oscharko-dev-keiko-server-1.3.2.tgz +0 -0
  333. package/vendor/oscharko-dev-keiko-tool-catalog-1.3.2.tgz +0 -0
  334. package/vendor/{oscharko-dev-keiko-tools-1.3.1.tgz → oscharko-dev-keiko-tools-1.3.2.tgz} +0 -0
  335. package/vendor/{oscharko-dev-keiko-verification-1.3.1.tgz → oscharko-dev-keiko-verification-1.3.2.tgz} +0 -0
  336. package/vendor/{oscharko-dev-keiko-workflows-1.3.1.tgz → oscharko-dev-keiko-workflows-1.3.2.tgz} +0 -0
  337. package/vendor/{oscharko-dev-keiko-workspace-1.3.1.tgz → oscharko-dev-keiko-workspace-1.3.2.tgz} +0 -0
  338. package/dist/ui/static/_next/static/chunks/0dq9bimpknhi-.js +0 -1
  339. package/dist/ui/static/_next/static/chunks/1cirwobl5ywpw.js +0 -1
  340. package/dist/ui/static/_next/static/chunks/1ufe9d586c16n.js +0 -1
  341. package/dist/ui/static/_next/static/chunks/1xyltb603pg9u.css +0 -4
  342. package/dist/ui/static/_next/static/chunks/2ajat_rv2v0wp.js +0 -1
  343. package/dist/ui/static/_next/static/chunks/2bm_bps837c8s.js +0 -1
  344. package/dist/ui/static/_next/static/chunks/2l0_e_qyhvve_.js +0 -1
  345. package/dist/ui/static/_next/static/chunks/3-ejbbkmhwal-.js +0 -1
  346. package/dist/ui/static/_next/static/chunks/4598s2z_w_1la.js +0 -1
  347. package/vendor/oscharko-dev-keiko-activity-log-1.3.1.tgz +0 -0
  348. package/vendor/oscharko-dev-keiko-cli-1.3.1.tgz +0 -0
  349. package/vendor/oscharko-dev-keiko-contracts-1.3.1.tgz +0 -0
  350. package/vendor/oscharko-dev-keiko-model-gateway-1.3.1.tgz +0 -0
  351. package/vendor/oscharko-dev-keiko-security-1.3.1.tgz +0 -0
  352. package/vendor/oscharko-dev-keiko-server-1.3.1.tgz +0 -0
  353. package/vendor/oscharko-dev-keiko-tool-catalog-1.3.1.tgz +0 -0
  354. /package/dist/ui/static/_next/static/{UsrqVgAeCxovpV7C_di1N → xKDN0SO4oRp9dU6qR6ood}/_buildManifest.js +0 -0
  355. /package/dist/ui/static/_next/static/{UsrqVgAeCxovpV7C_di1N → xKDN0SO4oRp9dU6qR6ood}/_clientMiddlewareManifest.js +0 -0
  356. /package/dist/ui/static/_next/static/{UsrqVgAeCxovpV7C_di1N → xKDN0SO4oRp9dU6qR6ood}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[67914,30644,e=>{var t=e.i(43476),n=e.i(71645),a=e.i(74080),r=e.i(24541),o=e.i(50850),i=e.i(48805),l=e.i(17161);function c(e){let t=Math.max(0,Math.min(e.width,e.viewportWidth-32)),n=Math.max(0,e.anchor.top-16-e.gap),a=Math.max(0,e.viewportHeight-e.anchor.bottom-16-e.gap),r=e.preferUp?n>=Math.min(e.height,96)||n>=a:a<e.height&&n>a,o=Math.max(0,Math.min(e.height,r?n:a,e.viewportHeight-32));return{left:Math.max(16,Math.min(e.anchor.left,e.viewportWidth-t-16)),top:Math.max(16,Math.min(r?e.anchor.top-e.gap-o:e.anchor.bottom+e.gap,e.viewportHeight-16-o)),width:t,maxHeight:o,openUp:r};}e.s(["f",0,c],30644);let s=l.f.search,u="keiko:select-open";function d(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 m(e){return e.findIndex(e=>!0!==e.disabled);}function p(e,t,n){if(0===e.length)return-1;for(let a of e.keys()){var _e$r;let r=(t+(a+1)*n+e.length)%e.length;if(((_e$r=e[r])===null||_e$r===void 0?void 0:_e$r.disabled)!==!0)return r;}return-1;}function h(e,t){let n=e.toLocaleLowerCase();return n===t?0:n.startsWith(t)?1:2;}function g(e,t){let n=t.trim().toLocaleLowerCase();return""===n?e:e.map(e=>({...e,options:e.options.filter(e=>e.label.toLocaleLowerCase().includes(n)).sort((e,t)=>h(e.label,n)-h(t.label,n))}));}function f({active:e,index:r,onCommit:o,onOptionKeyDown:i,option:l,selected:c,setOptionRef:s}){let u=(0,n.useRef)(null),m=(0,n.useRef)(null),p=(0,n.useRef)(null),[h,g]=(0,n.useState)(null),b=()=>{null!==p.current&&(clearTimeout(p.current),p.current=null),g(null);},K=()=>{null!==p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{let e=m.current,t=u.current;if(null===e||null===t||e.scrollWidth<=e.clientWidth)return;let n=t.getBoundingClientRect(),a=Math.min(520,window.innerWidth-32),r=n.right+8+a<=window.innerWidth-16?"top-left":"top-right";g({left:"top-left"===r?n.right+8:n.left-8,placement:r,top:n.top-6});},1500);};return(0,n.useEffect)(()=>b,[]),(0,t.jsxs)("button",{ref:e=>{u.current=e,s(r,e);},"aria-label":[l.label,l.description,l.badge].filter(e=>void 0!==e&&e.trim().length>0).join(", "),"aria-selected":c,className:`ksel-option${e?" ksel-option-active":""}`,"data-disabled":!0===l.disabled?"true":void 0,disabled:l.disabled,onBlur:b,onClick:()=>o(l),onFocus:K,onKeyDown:e=>i(e,r),onPointerEnter:K,onPointerLeave:b,role:"option",type:"button",children:[(0,t.jsxs)("span",{className:"ksel-option-copy",children:[(0,t.jsx)("span",{className:"ksel-option-label",ref:m,children:l.label}),void 0!==l.description?(0,t.jsx)("span",{className:"ksel-option-desc",children:l.description}):null]}),void 0!==l.badge?(0,t.jsx)("span",{className:"ksel-option-badge",children:l.badge}):null,null!==h?(0,a.createPortal)((0,t.jsx)("div",{className:"ksel-overflow-tooltip","data-placement":h.placement,role:"tooltip",style:{left:`${h.left.toString()}px`,top:`${h.top.toString()}px`},children:l.label}),d(u.current)):null]});}function b({activeIndex:e,flatOptions:n,menuId:a,onCommit:r,onOptionKeyDown:o,section:i,sectionIndex:l,selectedIndex:c,setOptionRef:s}){let u=void 0!==i.label?`${a}-section-${l.toString()}`:void 0;return(0,t.jsxs)("div",{className:"ksel-section",role:void 0!==i.label?"group":"presentation","aria-labelledby":u,children:[void 0!==i.label?(0,t.jsx)("div",{className:"ksel-section-label",id:u,children:i.label}):null,i.options.map(a=>{var _i$label;let l=n.findIndex(e=>e.value===a.value&&e.sectionLabel===i.label),u=n[l];return void 0===u?null:(0,t.jsx)(f,{active:l===e,index:l,onCommit:r,onOptionKeyDown:o,option:u,selected:l===c,setOptionRef:s},`${(_i$label=i.label)!==null&&_i$label!==void 0?_i$label:"section"}-${a.value}`);})]});}function K({search:e}){return void 0===e?null:(0,t.jsx)("div",{className:i.default.cmpMenuSearch,children:(0,t.jsxs)("div",{className:`c-combo-input ${i.default.cmpSearchControl}`,children:[(0,t.jsx)(s,{size:15}),(0,t.jsx)("input",{ref:e.inputRef,type:"search","aria-label":e.placeholder,placeholder:e.placeholder,value:e.query,onChange:t=>{e.onChange(t.currentTarget.value);},onKeyDown:e.onKeyDown})]})});}function v({search:e,visible:n}){return n&&(e===null||e===void 0?void 0:e.emptyLabel)!==void 0?(0,t.jsx)("p",{className:i.default.cmpMenuEmpty,children:e.emptyLabel}):null;}function k({activeIndex:e,ariaLabel:n,flatOptions:r,menuClassName:o,menuCountLabel:l,menuId:c,menuLabel:s,menuRef:u,menuTitle:d,onCommit:m,onKeyDownCapture:p,onOptionKeyDown:h,placeholder:g,portalRoot:f,position:y,selectedIndex:x,sections:W,search:w,setOptionRef:_,showMenuHeader:S}){var _ref;return(0,a.createPortal)((0,t.jsxs)("div",{ref:u,onKeyDownCapture:p,className:["ksel-menu",i.default.cmpViewportMenu,y.attached?"ksel-menu-attached":"",y.openUp?"ksel-menu-open-up":"ksel-menu-open-down",o!==null&&o!==void 0?o:""].filter(e=>void 0!==e&&e.length>0).join(" "),style:{left:`${y.left.toString()}px`,top:`${y.top.toString()}px`,width:`${y.width.toString()}px`,"--ksel-option-height":`${y.optionHeight.toString()}px`,fontFamily:y.fontFamily,fontSize:y.fontSize,fontWeight:y.fontWeight,letterSpacing:y.letterSpacing,lineHeight:y.lineHeight,maxHeight:Math.max(0,window.innerHeight-y.top-16)},children:[S?(0,t.jsxs)("div",{className:"ksel-menu-head",children:[(0,t.jsx)("div",{className:"ksel-menu-title",children:(_ref=d!==null&&d!==void 0?d:n)!==null&&_ref!==void 0?_ref:g}),(0,t.jsx)("div",{className:"ksel-menu-note",children:l!==null&&l!==void 0?l:`${r.length.toString()} options`})]}):null,(0,t.jsx)(K,{search:w}),(0,t.jsxs)("div",{className:`ksel-menu-scroll ${i.default.cmpViewportMenuScroll}`,role:"listbox",id:c,"aria-label":s,style:{maxHeight:`${y.maxHeight.toString()}px`},children:[W.map((n,a)=>{var _n$label;return(0,t.jsx)(b,{activeIndex:e,flatOptions:r,menuId:c,onCommit:m,onOptionKeyDown:h,section:n,sectionIndex:a,selectedIndex:x,setOptionRef:_},`${(_n$label=n.label)!==null&&_n$label!==void 0?_n$label:"section"}-${a.toString()}`);}),(0,t.jsx)(v,{search:w,visible:0===r.length})]})]}),f);}e.s(["f",0,function({value:e,sections:a,onValueChange:i,onOpen:l,disabled:s=!1,placeholder:h,ariaLabel:f,ariaDescribedBy:b,ariaLabelledBy:K,triggerClassName:v,triggerTitle:y,menuClassName:x,menuTitle:W,menuCountLabel:w,showMenuHeader:_=!0,leadingVisual:S,mono:j=!1,showChevron:C=!0,showTriggerDescription:N=!0,menuMinWidth:R,menuPopoverMinWidth:M,menuPopoverMaxHeight:L,menuPlacement:I="auto",searchPlaceholder:T,searchEmptyLabel:E,attached:D=!0,triggerStyle:P,autoFocus:H=!1}){var _eo$label,_eo$description,_ref2,_$$triggerClassName,_$$position;var $;let A=(0,o.t)(),F=(0,n.useRef)(null),B=(0,n.useRef)(null),q=(0,n.useRef)(null),U=(0,n.useRef)([]),O=(0,n.useId)(),[G,V]=(0,n.useState)(!1),[z,J]=(0,n.useState)(-1),[Z,X]=(0,n.useState)(null),[Y,Q]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(""),en=(0,n.useMemo)(()=>g(a,ee),[ee,a]),ea=(0,n.useMemo)(()=>en.flatMap((e,t)=>e.options.map((n,a)=>{var _e$label;return{...n,key:`${(_e$label=e.label)!==null&&_e$label!==void 0?_e$label:"section"}-${t.toString()}-${n.value}-${a.toString()}`,sectionLabel:e.label};})),[en]),er=ea.findIndex(t=>t.value===e),eo=a.flatMap(e=>e.options).find(t=>t.value===e),ei=h!==null&&h!==void 0?h:A("select.placeholder"),el=(_eo$label=eo===null||eo===void 0?void 0:eo.label)!==null&&_eo$label!==void 0?_eo$label:ei,ec=N?(_eo$description=eo===null||eo===void 0?void 0:eo.description)!==null&&_eo$description!==void 0?_eo$description:null:null,es=(_ref2=W!==null&&W!==void 0?W:f)!==null&&_ref2!==void 0?_ref2:ei,eu=(0,n.useCallback)(()=>{V(!1),J(-1),et("");},[]),ed=e=>{var _ea$e,_ea$er;if(s||0===ea.length)return;let t=void 0!==e&&((_ea$e=ea[e])===null||_ea$e===void 0?void 0:_ea$e.disabled)!==!0?e:er>=0&&((_ea$er=ea[er])===null||_ea$er===void 0?void 0:_ea$er.disabled)!==!0?er:m(ea);window.dispatchEvent(new Event(u)),V(!0),J(t),et(""),l===null||l===void 0?void 0:l();};(0,n.useEffect)(()=>(window.addEventListener(u,eu),()=>{window.removeEventListener(u,eu);}),[eu]),(0,n.useEffect)(()=>{if(!G)return;let e=e=>{let t=e.target;null!==F.current&&t instanceof Node&&F.current.contains(t)||null!==B.current&&t instanceof Node&&B.current.contains(t)||eu();},t=()=>eu();return window.addEventListener("pointerdown",e,!0),window.addEventListener("blur",t),()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("blur",t);};},[eu,G]),(0,n.useLayoutEffect)(()=>{if(!G||null===F.current)return;let e={menuMinWidth:R,menuPopoverMinWidth:M,menuPopoverMaxHeight:L,chromeReserve:50*!!_+46*(void 0!==T)+2},t=()=>{var _e$menuPopoverMinWidt,_e$menuPopoverMaxHeig;let t=F.current;if(null===t)return;let n=t.getBoundingClientRect(),a=Math.min(Math.max(void 0!==e.menuMinWidth&&n.width<Math.min(e.menuMinWidth,96)?e.menuMinWidth:n.width,(_e$menuPopoverMinWidt=e.menuPopoverMinWidth)!==null&&_e$menuPopoverMinWidt!==void 0?_e$menuPopoverMinWidt:0),window.innerWidth-32),r=D&&1>Math.abs(a-n.width),o=c({anchor:n,width:a,height:((_e$menuPopoverMaxHeig=e.menuPopoverMaxHeight)!==null&&_e$menuPopoverMaxHeig!==void 0?_e$menuPopoverMaxHeig:380)+e.chromeReserve,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,gap:r?-1:6,preferUp:"up"===I});Q(o.openUp);let i=Math.max(0,o.maxHeight-e.chromeReserve),l=window.getComputedStyle(t);X({left:o.left,width:a,top:o.top,optionHeight:Math.max(28,Math.min(n.height,30)),maxHeight:i,openUp:o.openUp,attached:r,fontFamily:l.fontFamily,fontSize:l.fontSize,fontWeight:l.fontWeight,letterSpacing:l.letterSpacing,lineHeight:l.lineHeight});};return t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0);};},[G,D,R,M,L,I,T,_]),(0,n.useLayoutEffect)(()=>{if(!G||null===Z||!Z.openUp||null===F.current||null===B.current)return;let e=F.current.getBoundingClientRect(),t=B.current.getBoundingClientRect();if(t.height<=0)return;let n=Z.attached?-1:6,a=Math.max(16,e.top-t.height-n);.5>Math.abs(a-Z.top)||X(e=>null===e?e:{...e,top:a});},[G,Z,ea.length]);let em=G&&null!==Z;function ep(e){var _F$current;e.disabled||(i(e.value),eu(),(_F$current=F.current)===null||_F$current===void 0?void 0:_F$current.focus());}function eh(e,t){var _F$current2;t.preventDefault(),t.stopPropagation(),eu(),(_F$current2=F.current)!==null&&_F$current2!==void 0&&_F$current2.focus(),(0,r.v)(`[keiko] select menu dismissed by Escape (focus=${e})`,{kind:"other",selectDismissal:{reason:"escape",focus:e}});}(0,n.useEffect)(()=>{var _q$current;em&&void 0!==T&&((_q$current=q.current)===null||_q$current===void 0?void 0:_q$current.focus());},[em,T]),(0,n.useEffect)(()=>{var _U$current$z,_U$current$z2;!em||z<0||(void 0===T||document.activeElement!==q.current)&&((_U$current$z=U.current[z])!==null&&_U$current$z!==void 0&&_U$current$z.focus(),(_U$current$z2=U.current[z])===null||_U$current$z2===void 0?void 0:_U$current$z2.scrollIntoView({block:"nearest"}));},[em,z,T]),(0,n.useEffect)(()=>{if(!G)return;let e=e=>{if("Escape"===e.key){var _F$current3;eu(),(_F$current3=F.current)===null||_F$current3===void 0?void 0:_F$current3.focus();return;}if(1===e.key.length&&!e.metaKey&&!e.ctrlKey&&!e.altKey){var t;if((t=e.target)instanceof HTMLElement&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||t.isContentEditable))return;let n=function(e,t,n){for(let a=1;a<=e.length;a+=1){let r=(t+a)%e.length,o=e[r];if(void 0!==o&&!0!==o.disabled&&o.label.toLowerCase().startsWith(n))return r;}return-1;}(ea,z>=0?z:Math.max(er,0),e.key.toLowerCase());-1!==n&&J(n);}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);},[G,z,eu,ea,er]);let eg=["ksel-trigger",($={disabled:s,mono:j,open:G,openUp:Y,position:Z,triggerClassName:v}).mono?"mono":"",(_$$triggerClassName=$.triggerClassName)!==null&&_$$triggerClassName!==void 0?_$$triggerClassName:"",$.open?"ksel-trigger-open":"",$.open&&((_$$position=$.position)===null||_$$position===void 0?void 0:_$$position.attached)===!0?$.openUp?"ksel-trigger-open-up":"ksel-trigger-open-down":"",$.disabled?"ksel-trigger-disabled":""].filter(e=>void 0!==e&&e.length>0).join(" "),ef=G&&null!==Z?(0,t.jsx)(k,{activeIndex:z,ariaLabel:f,flatOptions:ea,menuClassName:x,menuCountLabel:w,menuId:O,menuLabel:es,menuRef:B,menuTitle:W,onCommit:ep,onKeyDownCapture:function(e){if("Escape"!==e.key)return;let t=e.target;t===q.current?eh("search",e):t instanceof Element&&null!==t.closest('[role="option"]')?eh("option",e):eh("menu",e);},onOptionKeyDown:function(e,t){if("Tab"===e.key){var _F$current4;e.preventDefault(),eu(),(_F$current4=F.current)===null||_F$current4===void 0?void 0:_F$current4.focus();return;}if("ArrowDown"===e.key){e.preventDefault(),J(p(ea,t,1));return;}if("ArrowUp"===e.key){e.preventDefault(),J(p(ea,t,-1));return;}if("Home"===e.key){e.preventDefault(),J(m(ea));return;}if("End"===e.key){e.preventDefault(),J(p(ea,0,-1));return;}if("Enter"===e.key||" "===e.key){e.preventDefault();let n=ea[t];void 0!==n&&ep(n);}},placeholder:h,portalRoot:d(F.current),position:Z,selectedIndex:er,sections:en,search:void 0===T?void 0:{placeholder:T,query:ee,emptyLabel:E,inputRef:q,onChange:e=>{et(e),J(g(a,e).flatMap(e=>e.options).findIndex(e=>!0!==e.disabled));},onKeyDown:function(e){if("ArrowDown"===e.key){var _U$current$t;e.preventDefault();let t=m(ea);J(t),(_U$current$t=U.current[t])===null||_U$current$t===void 0?void 0:_U$current$t.focus();}else if("Enter"===e.key){e.preventDefault();let t=ea[m(ea)];void 0!==t&&ep(t);}}},setOptionRef:(e,t)=>{U.current[e]=t;},showMenuHeader:_}):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{ref:F,"aria-controls":O,"aria-describedby":b,"aria-expanded":G,"aria-haspopup":"listbox","aria-label":f,"aria-labelledby":K,autoFocus:H,className:eg,disabled:s,onClick:()=>{G?eu():ed();},onKeyDown:function(e){if(!s){if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault(),ed(er>=0?er:m(ea));return;}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),G?eu():ed());}},onKeyDownCapture:e=>{G&&"Escape"===e.key&&eh("trigger",e);},role:"combobox",style:P,title:y,type:"button",children:[void 0!==S?(0,t.jsx)("span",{className:"ksel-trigger-leading",children:S}):null,(0,t.jsxs)("span",{className:"ksel-trigger-copy",children:[(0,t.jsx)("span",{className:"ksel-trigger-label",children:el}),null!==ec?(0,t.jsx)("span",{className:"ksel-trigger-desc",children:ec}):null]}),C?(0,t.jsx)("span",{"aria-hidden":"true",className:`ksel-trigger-caret${G?" ksel-trigger-caret-open":""}`,children:(0,t.jsx)("svg",{fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",children:(0,t.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=>{e.s(["u",0,{display:"block"},"z",0,{margin:0,position:"static"},"k",0,{margin:0,minWidth:0,padding:0,border:0},"w",0,{margin:0,minWidth:0},"Z",0,{margin:0,fontWeight:"inherit"},"d",0,{listStyle:"none",margin:0},"$",0,{listStyle:"none",margin:0,padding:0}]);},6675,e=>{var t=e.i(71645),n=e.i(95508),a=e.i(18829),r=e.i(58773),o=e.i(13464);function i(e){return async(...t)=>(await(0,r.codingAppSessionPairingSettled)(),e(...t));}let l={listRepositories:i(n.bF),registerRepository:n.CW,reconnectRepository:n.kD,cloneRepository:n.S6,listBranches:i(n.e_),getSummary:i(n.Xk),getHistory:i(n.fg),getRemotes:i(n.Ws),getStatus:i(n.Tu),getDiff:i(n.Pu),getStructuredDiff:i(n.C_),branchCreate:n.AT,branchSwitch:n.RU,stage:n.M3,unstage:n.zf,commitPreview:n.GG,commitDraft:n.FV,commitExecute:n.Sk,commitPropose:n.JZ,syncPreview:n.Wu,syncExecute:n.Mz,pushPreview:n.ET,pushExecute:n.eN,pushPropose:n.RB,prPreview:n.h_,prApprove:n.oU,prExecute:n.Fr,prDescriptionPreview:n.Sl,prDescriptionApprove:n.vJ,prDescriptionApply:n.EJ,prDescriptionStatus:n.Mc,mergePreview:n.N1,mergeApprove:n.P4,mergeExecute:n.EH},c={"empty-subject":"The subject line is empty","missing-conventional-prefix":"Missing a conventional-commit type prefix","disallowed-type":"The commit type is not allowed","subject-too-long":"The subject line is too long","missing-issue-key":"Missing the required issue key","missing-signoff":"Missing the Signed-off-by trailer"};function s(e){return e instanceof a.a?`${e.message} (${e.code})`:e instanceof Error?e.message:"An unexpected error occurred.";}e.s(["F",0,l,"y",0,{succeeded:"Succeeded",blocked:"Blocked","approval-required":"Approval required",failed:"Failed","recovery-required":"Recovery required"},"g",0,s,"I",0,function(e,n,a){let r=function(e,n){let[a,r]=(0,t.useState)({busy:!1,outcome:null,error:null}),i=(0,t.useRef)(0);return{flow:a,runMutation:(0,t.useCallback)(t=>{let a=i.current+1;i.current=a,r({busy:!0,outcome:null,error:null}),t().then(t=>{("succeeded"===t.status||"failed"===t.status||"recovery-required"===t.status)&&(0,o.h)(e,n),i.current===a&&r({busy:!1,outcome:t,error:null});},e=>{i.current===a&&r({busy:!1,outcome:null,error:s(e)});});},[e,n]),resetFlow:(0,t.useCallback)(()=>{i.current+=1,r({busy:!1,outcome:null,error:null});},[])};}(n,a),i=function(e,n){let[a,r]=(0,t.useState)(null),[o,i]=(0,t.useState)(null),[l,c]=(0,t.useState)(null),[u,d]=(0,t.useState)(null),m=(0,t.useRef)(0);return{preview:a,previewDraft:o,previewRequestRevision:l,previewError:u,runPreview:(0,t.useCallback)((t,a)=>{let o=m.current+1;m.current=o,r(null),i(null),c(null),d(null),e.commitPreview({projectId:n,messageDraft:t}).then(e=>{m.current===o&&(r(e),i(t),c(a!==null&&a!==void 0?a:null));},e=>{m.current===o&&(r(null),i(null),c(null),d(s(e)));});},[e,n]),resetPreview:(0,t.useCallback)(()=>{m.current+=1,r(null),i(null),c(null),d(null);},[])};}(e,n),{resetFlow:l}=r,{resetPreview:c}=i,u=(0,t.useCallback)(()=>{l(),c();},[l,c]);return{flow:r.flow,preview:i.preview,previewDraft:i.previewDraft,previewRequestRevision:i.previewRequestRevision,previewError:i.previewError,runMutation:r.runMutation,runPreview:i.runPreview,reset:u};},"_",0,function(e){return c[e];}]);},13464,e=>{let t="keiko:git-repository-state-invalidated";e.s(["A",0,t,"n",0,function(e){let t=function(e){if(!(e instanceof CustomEvent)||"object"!=typeof e.detail||null===e.detail)return null;let t=e.detail.root;return"string"==typeof t&&t.length>0?t:null;}(e);if(null===t)return[];let n=e.detail.repositoryRoot;return"string"!=typeof n||0===n.length||n===t?[t]:[t,n];},"h",0,function(e,n){0!==e.length&&window.dispatchEvent(new CustomEvent(t,{detail:{root:e,...(void 0!==n&&n.length>0&&n!==e?{repositoryRoot:n}:{})}}));}]);},11257,e=>{var _o$default$cmpSelect;var t=e.i(43476),n=e.i(24541),a=e.i(60865),r=e.i(26222),o=e.i(98391);let i=(_o$default$cmpSelect=o.default["cmp-selectable-text-chrome"])!==null&&_o$default$cmpSelect!==void 0?_o$default$cmpSelect:"";function l({tokens:e}){let n=new Map();return(0,t.jsx)(t.Fragment,{children:e.map(e=>{var _n$get;let a=`${e[0]}:${e[1]}`,r=(_n$get=n.get(a))!==null&&_n$get!==void 0?_n$get:0;return n.set(a,r+1),(0,t.jsx)("span",{className:`hl-${e[0]}`,children:e[1]},`${a}:${String(r)}`);})});}function c({line:e,lang:n,kindLabel:a,labels:o}){var _o$addedLine,_o$deletedLine,_o$contextLine,_o$metadataLine,_e$oldLine,_e$newLine;var s,u;let d,m="add"===(s=e.kind)?"+":"del"===s?"−":"ctx"===s?"·":"",p="ctx"===e.kind?"":` rv-${e.kind}`;if("meta"!==e.kind&&"code"!==n){var _2;let a=(_2=(0,r.v)(e.text,(0,r.H)(n))[0])!==null&&_2!==void 0?_2:[];d=(0,t.jsx)(l,{tokens:a});}else d=e.text;return(0,t.jsxs)("div",{className:`rv-line${p}`,children:[(0,t.jsx)("span",{className:`rv-sr-only ${i}`,children:a!==null&&a!==void 0?a:(u=e.kind,"add"===u?(_o$addedLine=o===null||o===void 0?void 0:o.addedLine)!==null&&_o$addedLine!==void 0?_o$addedLine:"Added line":"del"===u?(_o$deletedLine=o===null||o===void 0?void 0:o.deletedLine)!==null&&_o$deletedLine!==void 0?_o$deletedLine:"Deleted line":"ctx"===u?(_o$contextLine=o===null||o===void 0?void 0:o.contextLine)!==null&&_o$contextLine!==void 0?_o$contextLine:"Context line":(_o$metadataLine=o===null||o===void 0?void 0:o.metadataLine)!==null&&_o$metadataLine!==void 0?_o$metadataLine:"Diff metadata")}),(0,t.jsx)("span",{className:`rv-num-old rv-num ${i}`,children:(_e$oldLine=e.oldLine)!==null&&_e$oldLine!==void 0?_e$oldLine:""}),(0,t.jsx)("span",{className:`rv-num-new rv-num ${i}`,children:(_e$newLine=e.newLine)!==null&&_e$newLine!==void 0?_e$newLine:""}),(0,t.jsx)("span",{className:`rv-gutter ${i}`,"aria-hidden":"true",children:m}),(0,t.jsx)("code",{className:"rv-src",children:d})]});}function s({hunk:e,lang:n,labels:r,viewLabels:o}){var _o$hunkHeader,_ref3,_r$header,_o$hunkTruncated;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rv-hunk mono","aria-label":`${(_o$hunkHeader=o===null||o===void 0?void 0:o.hunkHeader)!==null&&_o$hunkHeader!==void 0?_o$hunkHeader:"Hunk header"} ${e.header}`,children:[(0,t.jsx)("span",{className:`rv-sr-only ${i}`,children:(_ref3=(_r$header=r===null||r===void 0?void 0:r.header)!==null&&_r$header!==void 0?_r$header:o===null||o===void 0?void 0:o.hunkHeader)!==null&&_ref3!==void 0?_ref3:"Hunk header"}),e.header]}),e.lines.map((e,a)=>{var _e$oldLine2,_e$newLine2;return(0,t.jsx)(c,{line:e,lang:n,kindLabel:r===null||r===void 0?void 0:r[e.kind],labels:o},`${String((_e$oldLine2=e.oldLine)!==null&&_e$oldLine2!==void 0?_e$oldLine2:"-")}:${String((_e$newLine2=e.newLine)!==null&&_e$newLine2!==void 0?_e$newLine2:"-")}:${e.kind}:${String(a)}`);}),e.truncated?(0,t.jsx)("output",{className:"rv-truncated",style:a.u,children:(_o$hunkTruncated=o===null||o===void 0?void 0:o.hunkTruncated)!==null&&_o$hunkTruncated!==void 0?_o$hunkTruncated:"This hunk is incomplete because the bounded diff was truncated."}):null]});}e.s(["b",0,function({file:e,index:r,changedFiles:i=[],sectionRef:l,translate:c,labels:u,idPrefix:d="rv-file"}){var _c,_e$path$split$pop,_u$previousPath,_u$elevatedReview,_u$binaryFile,_u$fileTruncated;let m=(_c=c===null||c===void 0?void 0:c("chat.repository.role.file"))!==null&&_c!==void 0?_c:"file",p=i.find(t=>t.path===e.path),h=e.path.includes(".")?(_e$path$split$pop=e.path.split(".").pop())!==null&&_e$path$split$pop!==void 0?_e$path$split$pop:"code":"code";return(0,t.jsxs)("section",{id:`${d}-${r}`,"aria-labelledby":`${d}-${r}-h`,ref:l,children:[(0,t.jsxs)("h3",{id:`${d}-${r}-h`,className:"rv-file mono",children:[(0,t.jsx)("span",{className:"rv-path",children:e.path}),void 0!==e.oldPath&&(0,t.jsx)("span",{className:"rv-oldpath",children:(_u$previousPath=u===null||u===void 0?void 0:u.previousPath(e.oldPath))!==null&&_u$previousPath!==void 0?_u$previousPath:` (was ${e.oldPath})`}),(0,t.jsxs)("span",{className:"rv-sr-only",children:[e.status," ",m]}),(0,t.jsx)("span",{className:"spacer"}),(0,t.jsxs)("span",{className:"rv-stat add",children:["+",e.addedLines]}),(0,t.jsxs)("span",{className:"rv-stat del",children:["−",e.removedLines]}),(p===null||p===void 0?void 0:p.elevatedReview)===!0&&(0,t.jsx)("span",{className:"rv-elevated","aria-label":(_u$elevatedReview=u===null||u===void 0?void 0:u.elevatedReview)!==null&&_u$elevatedReview!==void 0?_u$elevatedReview:"Elevated review",children:"!"})]}),(0,t.jsxs)("div",{className:`rv-code mono ${o.default["cmp-selectable-text"]}`,"data-text-selectable":"true",tabIndex:0,onFocusCapture:()=>(0,n.v)("[keiko] shared diff viewport focused"),children:[e.binary?(0,t.jsx)("p",{className:"rv-empty-p",children:(_u$binaryFile=u===null||u===void 0?void 0:u.binaryFile)!==null&&_u$binaryFile!==void 0?_u$binaryFile:"Binary file — no text diff to display."}):e.hunks.map(e=>(0,t.jsx)(s,{hunk:e,lang:h,viewLabels:u},e.header)),e.truncated&&!e.hunks.some(e=>e.truncated)?(0,t.jsx)("output",{className:"rv-truncated",style:a.u,children:(_u$fileTruncated=u===null||u===void 0?void 0:u.fileTruncated)!==null&&_u$fileTruncated!==void 0?_u$fileTruncated:"This file diff is incomplete because the bounded diff was truncated."}):null]})]});},"I",0,s]);},26222,e=>{let t={jsx:"js",js:"js",mjs:"js",ts:"ts",tsx:"ts",java:"java",kt:"kotlin",kts:"kotlin",py:"py",rb:"py",go:"go",rs:"rust",json:"json",yml:"yaml",yaml:"yaml",md:"md",markdown:"md",html:"html",xml:"html",css:"css",sql:"sql",sh:"sh",bash:"sh",cob:"cobol",cbl:"cobol",gradle:"js",graphql:"graphql",gql:"graphql",properties:"props",toml:"props",env:"props",dockerfile:"docker"},n=new Set("const let var function return if else for while do switch case break continue import from export default class extends implements interface enum new async await yield of in typeof instanceof this super public private protected static final readonly void int long double float boolean char byte short val fun object data override companion package def pass lambda try catch except finally throw throws raise with as not and or is null nil None True False true false undefined struct impl trait pub use mod match where select insert update delete create table from join on group by order limit FROM RUN CMD ENV COPY WORKDIR EXPOSE ENTRYPOINT AS".split(" "));function a(e){let t=[];return e.split(/(`[^`]+`|\*\*[^*]+\*\*)/).forEach(e=>{""!==e&&(e.startsWith("`")?t.push(["str",e]):e.startsWith("**")?t.push(["type",e]):t.push(["id",e]));}),t.length>0?t:[["id",e]];}let r=[function(e){return null!==e.cs.line&&e.rest.startsWith(e.cs.line)?{token:["com",e.rest],length:e.rest.length,stop:!0}:null;},function(e){let{cs:t,rest:n,line:a,i:r,state:o}=e;if(null===t.block||!n.startsWith(t.block[0]))return null;let i=a.indexOf(t.block[1],r+t.block[0].length);if(-1===i)return o.inBlock=!0,{token:["com",n],length:n.length,stop:!0};let l=i+t.block[1].length;return{token:["com",a.slice(r,l)],length:l-r,stop:!1};},function(e){let t=/^(?:"(?:[^"\\]|\\.)*"?|'(?:[^'\\]|\\.)*'?)/.exec(e.rest);return null===t||t[0].length<=1?null:{token:["str",t[0]],length:t[0].length,stop:!1};},function(e){var _t$;if(!/^\d/.test(e.rest))return null;let t=/^\d[\w.]*/.exec(e.rest),n=(_t$=t===null||t===void 0?void 0:t[0])!==null&&_t$!==void 0?_t$:e.rest.charAt(0);return{token:["num",n],length:n.length,stop:!1};},function(e){var t,a;let r=/^[@A-Za-z_$][\w$]*/.exec(e.rest);if(null===r)return null;let o=r[0];return{token:[(t=e.line,a=e.i,n.has(o)||n.has(o.toLowerCase())?"key":o.startsWith("@")||/^[A-Z]/.test(o)?"type":"("===t.charAt(a+o.length)?"fn":"id"),o],length:o.length,stop:!1};},function(e){let t=/^\s+/.exec(e.rest);return null===t?null:{token:["ws",t[0]],length:t[0].length,stop:!1};},function(e){let t=/^[^\w\s$@"']+/.exec(e.rest);return null===t?null:{token:["punct",t[0]],length:t[0].length,stop:!1};}];e.s(["v",0,function(e,t){if("md"===t)return e.split("\n").map(e=>{var _t$2,_t$3,_t$4;if(/^#{1,6}\s/.test(e))return[["head",e]];if(/^\s*```/.test(e))return[["com",e]];let t=/^(\s*)([-*+]|\d+\.)(\s)/.exec(e);return null!==t?[["ws",(_t$2=t[1])!==null&&_t$2!==void 0?_t$2:""],["key",(_t$3=t[2])!==null&&_t$3!==void 0?_t$3:""],["ws",(_t$4=t[3])!==null&&_t$4!==void 0?_t$4:""],...a(e.slice(t[0].length))]:a(e);});if("json"===t)return e.split("\n").map(e=>{let t=[],n=0;for(;n<e.length;){let a=e.slice(n),r=/^"(?:[^"\\]|\\.)*"/.exec(a);if(null!==r){let a=e.slice(n+r[0].length),o=/^\s*:/.test(a);t.push([o?"key2":"str",r[0]]),n+=r[0].length;continue;}let o=/^-?\d[\d.eE+-]*/.exec(a);if(null!==o){t.push(["num",o[0]]),n+=o[0].length;continue;}let i=/^(true|false|null)\b/.exec(a);if(null!==i){t.push(["lit",i[0]]),n+=i[0].length;continue;}let l=/^\s+/.exec(a);if(null!==l){t.push(["ws",l[0]]),n+=l[0].length;continue;}t.push(["punct",a.charAt(0)]),n+=1;}return t;});let n="py"===t||"sh"===t||"yaml"===t||"props"===t||"docker"===t?{line:"#",block:null}:"sql"===t?{line:"--",block:["/*","*/"]}:"cobol"===t?{line:"*>",block:null}:"html"===t?{line:null,block:["<!--","-->"]}:{line:"//",block:["/*","*/"]},o={inBlock:!1},i=[];for(let t of e.split("\n"))i.push(function(e,t,n){let a=[],o=0,i=function(e,t,n){if(!t.inBlock||null===n.block)return null;let a=e.indexOf(n.block[1]);if(-1===a)return{token:["com",e],length:e.length};let r=a+n.block[1].length;return t.inBlock=!1,{token:["com",e.slice(0,r)],length:r};}(e,t,n);for(null!==i&&(a.push(i.token),o=i.length);o<e.length;){let i=function(e){for(let t of r){let n=t(e);if(null!==n)return n;}return{token:["id",e.rest.charAt(0)],length:1,stop:!1};}({line:e,i:o,rest:e.slice(o),cs:n,state:t});if(a.push(i.token),o+=i.length,i.stop)break;}return a;}(t,o,n));return i;},"H",0,function(e){var _t$r;let n=e.toLowerCase();if(".env"===n||n.startsWith(".env."))return"props";if("dockerfile"===n||n.startsWith("dockerfile"))return"docker";if(n.includes("docker-compose"))return"yaml";let a=n.split("."),r=a.length>1?a.at(-1):void 0;return void 0===r?"code":(_t$r=t[r])!==null&&_t$r!==void 0?_t$r:"code";}]);},69653,63096,70855,97880,e=>{var t=e.i(43476),n=e.i(71645),a=e.i(24541),r=e.i(74952),o=e.i(29835),i=e.i(92215),l=e.i(17161),c=e.i(67914),s=e.i(6675),u=e.i(13464);let d=[];function m(e){var _p$response$branches,_p$response,_t,_t$branches$find$name,_t$branches$find;var t;let[r,l]=(0,n.useState)({root:null,response:null,loading:null!==e,error:null,denied:!1}),c=(0,n.useRef)(0),m=(0,n.useCallback)(async()=>{let t=c.current+=1;if(null===e)return void l({root:null,response:null,loading:!1,error:null,denied:!1});l(e=>({...e,loading:!0,error:null,denied:!1}));try{let n=await s.F.listBranches(e);c.current===t&&l({root:e,response:n,loading:!1,error:null,denied:!1});}catch(n){c.current===t&&(l({root:e,response:null,loading:!1,error:"Git status could not be loaded.",denied:(0,i.L)(n)}),(0,a.v)(`[keiko] repository branch status failed: ${(0,o.R)(n)}`,{correlationId:(0,o.E)(n),errorKind:(0,i.J)(n)}));}},[e]);(0,n.useEffect)(()=>(m(),()=>{c.current+=1;}),[m]),(0,n.useEffect)(()=>{if(null===e)return;let t=t=>{(0,u.n)(t).includes(e)&&m();};return window.addEventListener(u.A,t),()=>window.removeEventListener(u.A,t);},[m,e]);let p=r.root===e?r:{...r,response:null,loading:null!==e,error:null,denied:!1};return{...p,branches:(_p$response$branches=(_p$response=p.response)===null||_p$response===void 0?void 0:_p$response.branches)!==null&&_p$response$branches!==void 0?_p$response$branches:d,currentBranch:(t=p.response,((_t=t)===null||_t===void 0?void 0:_t.available)!==!0?null:(_t$branches$find$name=(_t$branches$find=t.branches.find(e=>e.current))===null||_t$branches$find===void 0?void 0:_t$branches$find.name)!==null&&_t$branches$find$name!==void 0?_t$branches$find$name:null),refresh:m};}e.s(["f",0,m],63096);var p=e.i(95508);async function h(e){let t=await(0,p.Xk)(e);return t.available&&"available"===t.state;}async function g(){let{projects:e}=await(0,p.bF)();return e;}async function f(e){let{projects:t}=await(0,p.bF)(),n=t.find(t=>t.path===e);return void 0!==n&&!!(n.available&&!0===n.workspaceAvailable)&&h(e);}e.s(["n",0,f,"O",0,g],70855);var b=e.i(18568),K=e.i(11257),v=e.i(14471);function k(e,t){return 1===e?t("codingWorkbench.changes.changedFiles.one"):t("codingWorkbench.changes.changedFiles",{count:e});}function y({changes:e,pairing:n,t:a}){if("idle"===e.status)return(0,t.jsx)(x,{text:a("codingWorkbench.changes.idle")});if("loading"===e.status)return(0,t.jsx)(x,{role:"status",text:a("codingWorkbench.changes.loading")});if("binding-lost"===e.status)return(0,t.jsx)(x,{role:"alert",text:a("codingWorkbench.changes.bindingLost")});if("unavailable"===e.status&&"unpaired"===n)return(0,t.jsx)(x,{role:"status",text:a("codingWorkbench.changes.unpaired")});if("unavailable"===e.status||"error"===e.status){let n=a("unavailable"===e.status?"codingWorkbench.changes.unavailable":"codingWorkbench.changes.error");return(0,t.jsx)(W,{text:n,className:v.default.changesMessage,role:"alert",retry:{label:a("codingWorkbench.changes.retry"),onRetry:e.retry}});}return(0,t.jsx)(w,{changes:e,t:a});}function x({text:e,role:n}){return(0,t.jsx)("p",{className:v.default.changesMessage,role:n,children:e});}function W({text:e,className:n,role:a,retry:r}){return void 0===r?(0,t.jsx)("p",{className:n,children:e}):(0,t.jsxs)("div",{className:n,role:a,children:[(0,t.jsx)("p",{children:e}),(0,t.jsx)("button",{className:v.default.button,type:"button",disabled:!0===r.disabled,onClick:r.onRetry,children:r.label})]});}function w({changes:e,t:n}){var _e$head;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:v.default.changesRevision,role:"status","aria-live":"polite",children:n("codingWorkbench.changes.asOf",{head:(_e$head=e.head)!==null&&_e$head!==void 0?_e$head:"HEAD"})}),0===e.files.length?(0,t.jsx)(x,{text:n("codingWorkbench.changes.empty")}):(0,t.jsxs)("div",{className:v.default.changesLayout,children:[(0,t.jsx)(_,{changes:e,t:n}),(0,t.jsx)(N,{changes:e,t:n})]}),e.truncated?(0,t.jsx)("output",{className:v.default.changesNotice,children:n("codingWorkbench.changes.filesTruncated")}):null]});}function _({changes:e,t:a}){let r=function(e){let[t,a]=(0,n.useState)(0),r=e.length>80,o=Math.max(0,e.length-24),i=r?Math.min(Math.max(0,Math.floor(t/54)-6),o):0,l=r?e.slice(i,i+24):e;return{virtual:r,start:i,visible:l,end:i+l.length,onScroll:e=>a(e.currentTarget.scrollTop)};}(e.files);return(0,t.jsxs)("div",{className:v.default.changesFiles,children:[(0,t.jsx)("p",{className:v.default.changesPaneTitle,id:"coding-workbench-changed-files-title",children:k(e.files.length,a)}),r.virtual?(0,t.jsx)("p",{className:v.default.helpText,id:"coding-workbench-changes-list-help",children:a("codingWorkbench.changes.virtualInstructions")}):null,(0,t.jsxs)("ul",{className:v.default.changesFileList,"aria-labelledby":"coding-workbench-changed-files-title","aria-describedby":r.virtual?"coding-workbench-changes-list-help":void 0,tabIndex:r.virtual?0:void 0,onScroll:r.onScroll,children:[r.virtual&&r.start>0?(0,t.jsx)(S,{size:54*r.start}):null,r.visible.map(n=>(0,t.jsx)(j,{file:n,changes:e,t:a},n.path)),r.virtual&&r.end<e.files.length?(0,t.jsx)(S,{size:(e.files.length-r.end)*54}):null]})]});}function S({size:e}){return(0,t.jsx)("li",{className:v.default.changesSpacer,style:{blockSize:e},"aria-hidden":"true"});}function j({file:e,changes:n,t:a}){var r;let o=n.selectedPath===e.path;return(0,t.jsx)("li",{className:v.default.changesFileItem,children:(0,t.jsxs)("button",{className:v.default.changesFileButton,type:"button","aria-pressed":o,onClick:()=>n.selectPath(e.path),children:[(0,t.jsx)("span",{className:v.default.changesPath,title:e.path,children:e.path}),(0,t.jsx)("span",{className:v.default.changesFileState,children:(r=e,a(r.conflicted?"codingWorkbench.changes.fileState.conflicted":r.untracked?"codingWorkbench.changes.fileState.untracked":r.staged&&r.unstaged?"codingWorkbench.changes.fileState.stagedAndUnstaged":r.staged?"codingWorkbench.changes.fileState.staged":"codingWorkbench.changes.fileState.unstaged"))})]})});}function C(e){return{addedLine:e("codingWorkbench.changes.diff.addedLine"),deletedLine:e("codingWorkbench.changes.diff.deletedLine"),contextLine:e("codingWorkbench.changes.diff.contextLine"),metadataLine:e("codingWorkbench.changes.diff.metadataLine"),hunkHeader:e("codingWorkbench.changes.diff.hunkHeader"),hunkTruncated:e("codingWorkbench.changes.diff.hunkTruncated"),fileTruncated:e("codingWorkbench.changes.diff.fileTruncated"),binaryFile:e("codingWorkbench.changes.diff.binaryFile"),previousPath:t=>e("codingWorkbench.changes.diff.previousPath",{path:t}),elevatedReview:e("codingWorkbench.changes.diff.elevatedReview")};}function N({changes:e,t:a}){let r=(0,n.useMemo)(()=>C(a),[a]);return(0,t.jsxs)("div",{className:v.default.changesDiffPane,children:[(0,t.jsx)("p",{className:v.default.changesPaneTitle,children:a("codingWorkbench.changes.diff.title")}),(0,t.jsx)("section",{className:`${v.default.changesDiff} review`,"aria-label":a("codingWorkbench.changes.diff.region"),tabIndex:0,children:(0,t.jsx)(R,{changes:e,labels:r,t:a})})]});}function R({changes:e,labels:n,t:a}){return"loading"===e.diffStatus?(0,t.jsx)(x,{role:"status",text:a("codingWorkbench.changes.diff.loading")}):"error"===e.diffStatus?(0,t.jsx)(W,{text:a("codingWorkbench.changes.diff.error"),className:v.default.changesMessage,role:"alert",retry:{label:a("codingWorkbench.changes.diff.retry"),onRetry:e.retryDiff}}):"empty"===e.diffStatus||null===e.diff?(0,t.jsx)(x,{text:a("codingWorkbench.changes.diff.empty")}):(0,t.jsxs)("div",{className:"rv-body",children:[e.diffTruncated?(0,t.jsx)("output",{className:"rv-truncated",children:a("codingWorkbench.changes.diff.truncated")}):null,e.diff.files.map((e,a)=>(0,t.jsx)(K.b,{file:e,index:a,idPrefix:"coding-workbench-change-file",sectionRef:()=>void 0,labels:n},`${e.path}:${String(a)}`))]});}function M(e){let t=e.split(/[\\/]/u);for(let e=t.length-1;e>=0;e-=1){let n=t[e];if(void 0!==n&&n.length>0)return n;}return e;}e.s(["y",0,function({changes:e,pairing:n}){let r=(0,b.f)();return"idle"===e.status||"loading"===e.status?null:(0,t.jsxs)("details",{className:v.default.cmpChangesDisclosure,onToggle:()=>(0,a.v)("[keiko] coding workbench changes disclosure toggled"),children:[(0,t.jsx)("summary",{className:v.default.cmpActivitySummary,children:"ready"===e.status?k(e.files.length,r):r("codingWorkbench.changes.title")}),(0,t.jsx)("div",{className:v.default.cmpChangesContent,children:(0,t.jsx)(y,{changes:e,pairing:n,t:r})})]});},"Y",0,W,"q",0,C],97880);let L=l.f.folder,I=l.f.branch;function T(e){return e.available&&!0===e.workspaceAvailable;}function E(e,t,n){return"setup"===e?{triggerClassName:v.default.cmpSetupSelectorTrigger,triggerStyle:void 0}:{triggerClassName:v.default.cmpRepositorySelectorTrigger,triggerStyle:{width:`${Math.min(Math.max(t.length+4,13),n)}ch`}};}function D({root:e,locked:n,catalog:a,onSelect:r,t:o,placement:i}){var _u$label;let l,s=(l=a.repositories.map(e=>({value:e.path,label:e.name||M(e.path),disabled:!T(e),...(!T(e)?{badge:o("codingWorkbench.repository.unavailable")}:{})})),null===e||l.some(t=>t.value===e)?l:[{value:e,label:M(e),disabled:!0,badge:o("codingWorkbench.repository.unavailable")},...l]),u=s.find(t=>t.value===e),d=(_u$label=u===null||u===void 0?void 0:u.label)!==null&&_u$label!==void 0?_u$label:o(a.loading?"codingWorkbench.repository.loading":"codingWorkbench.repository.none");return(0,t.jsx)(c.f,{value:e!==null&&e!==void 0?e:"",sections:[{options:s}],onValueChange:r,onOpen:a.reload,disabled:n||a.loading&&0===s.length||a.error,placeholder:d,ariaLabel:o("codingWorkbench.repository.choose"),leadingVisual:(0,t.jsx)(L,{size:15,"aria-hidden":"true"}),...E(i,d,22),showMenuHeader:!1,menuPopoverMinWidth:280,menuPlacement:"up",searchPlaceholder:o("codingWorkbench.repository.search"),searchEmptyLabel:o("codingWorkbench.repository.noMatches")});}function P(e){var _e$response;return null!==e.error||((_e$response=e.response)===null||_e$response===void 0?void 0:_e$response.available)===!1;}function H({root:e,branch:n,locked:a,branchState:r,onSelect:o,t:i,placement:l}){var _ref4;let s=(_ref4=n!==null&&n!==void 0?n:r.currentBranch)!==null&&_ref4!==void 0?_ref4:"",u=r.loading||P(r),d=function(e,t,n,a){let r=t.filter(t=>t.name!==e).map(e=>({value:e.name,label:e.name}));if(""===e)return r;let o=n&&!t.some(t=>t.name===e);return[{value:e,label:e,...(o?{disabled:!0,badge:a}:{})},...r];}(s,r.branches,!u,i("codingWorkbench.repository.unavailable")),m=s||i("codingWorkbench.repository.noBranch");return(0,t.jsx)(c.f,{value:s,sections:[{options:d}],onValueChange:o,disabled:a||null===e||u||0===d.length,placeholder:m,ariaLabel:i("codingWorkbench.repository.chooseBranch"),leadingVisual:(0,t.jsx)(I,{size:15,"aria-hidden":"true"}),...E(l,m,26),showMenuHeader:!1,menuPopoverMinWidth:340,menuPopoverMaxHeight:280,menuPlacement:"up",searchPlaceholder:i("codingWorkbench.repository.searchBranch"),searchEmptyLabel:i("codingWorkbench.repository.noBranchMatches"),mono:!0});}function $({location:e,locked:n,onSelect:a,t:r,placement:o}){let i=r("codingWorkbench.repository.locationLocal"),s=r("codingWorkbench.repository.locationWorktree"),u="local"===e?i:s,d=l.f.terminal;return(0,t.jsx)(c.f,{value:e,sections:[{options:[{value:"local",label:i},{value:"worktree",label:s}]}],onValueChange:e=>a("worktree"===e?"worktree":"local"),disabled:n,ariaLabel:r("codingWorkbench.repository.locationLabel"),leadingVisual:(0,t.jsx)(d,{size:15,"aria-hidden":"true"}),...E(o,u,22),menuPopoverMinWidth:260,showMenuHeader:!1,menuPlacement:"up"});}function A({placement:e,label:n,children:a}){return(0,t.jsxs)("div",{className:"setup"===e?v.default.cmpSetupSelectorField:v.default.cmpRepositorySelectorChip,children:["setup"===e?(0,t.jsx)("span",{children:n}):null,a]});}function F({unavailable:e,branchUnavailable:n,branchDenied:a,catalogError:r,onRetryCatalog:o,t:i}){if(r)return(0,t.jsx)(W,{text:i("codingWorkbench.repository.loadError"),className:v.default.cmpRepositorySelectorNotice,role:"alert",retry:{label:i("codingWorkbench.repository.retryLoad"),onRetry:o}});let l=e?"codingWorkbench.repository.unavailableHelp":a?"codingWorkbench.repository.deniedHelp":n?"codingWorkbench.repository.gitUnavailableHelp":void 0;return void 0===l?null:(0,t.jsx)("p",{className:v.default.cmpRepositorySelectorNotice,role:"alert",children:i(l)});}function B({placement:e,root:n,unavailable:a,branchUnavailable:r,branchDenied:o,catalogError:i,onOpenGit:l,onRetryCatalog:c,t:s}){let u="setup"===e&&(null===n||a||r||i);return(0,t.jsxs)(t.Fragment,{children:[u?(0,t.jsx)("button",{type:"button",className:v.default.cmpRepositorySelectorGit,onClick:l,children:s("codingWorkbench.repository.manage")}):null,(0,t.jsx)(F,{unavailable:a,branchUnavailable:r,branchDenied:o,catalogError:i,onRetryCatalog:c,t:s})]});}function q({location:e,locked:n,onSelect:a,placement:r,t:o}){return(0,t.jsx)(A,{placement:r,label:o("codingWorkbench.repository.locationLabel"),children:(0,t.jsx)($,{location:e,locked:n,onSelect:a,t:o,placement:r})});}function U({root:e,branch:n,locked:a,state:r,onSelect:o,placement:i,t:l}){return(0,t.jsx)(A,{placement:i,label:l("codingWorkbench.repository.branchLabel"),children:(0,t.jsx)(H,{root:e,branch:n,locked:a,branchState:r,onSelect:o,t:l,placement:i})});}function O({root:e,state:n,placement:a,onOpenGit:r,t:o}){return(0,t.jsx)(B,{placement:a,root:e,unavailable:n.unavailable,branchUnavailable:n.branchUnavailable,branchDenied:n.branchDenied,catalogError:n.catalog.error,onOpenGit:r,onRetryCatalog:n.catalog.reload,t:o});}function G({root:e,locked:n,catalog:a,onSelect:r,placement:o,t:i}){return(0,t.jsx)(A,{placement:o,label:i("codingWorkbench.repository.label"),children:(0,t.jsx)(D,{root:e,locked:n,catalog:a,onSelect:r,t:i,placement:o})});}e.s(["C",0,function({root:e,branch:l,locked:c,onSelect:s,onSelectBranch:u,location:d,onSelectLocation:p,onOpenGit:h,placement:f="composer"}){let K,k,y,x,W,w,_=(0,b.f)(),S=(k=function(e,t){if(null===e||t.loading||t.error)return!1;let n=t.repositories.find(t=>t.path===e);return void 0===n||!T(n);}(e,K=function(){let[e,t]=(0,n.useState)([]),[l,c]=(0,n.useState)(!0),[s,u]=(0,n.useState)(!1),d=(0,n.useRef)(0),m=(0,n.useCallback)(()=>{let e=++d.current;c(!0),g().then(n=>{d.current===e&&(t(n),u(!1),c(!1));},t=>{if(d.current===e){let e;u(!0),c(!1),e=(0,o.E)(t),(0,a.v)("[keiko] coding workbench repository catalog unavailable",{kind:"other",errorKind:(0,i.J)(t),errorEvidence:(0,r.f)(t),...(void 0===e?{}:{correlationId:e})});}});},[]);return(0,n.useEffect)(()=>(m(),()=>{d.current+=1;}),[m]),{repositories:e,loading:l,error:s,reload:m};}()),x=m((y=c||k)?null:e),w=(W=null!==e&&!k&&!K.loading&&!K.error&&!x.loading&&P(x))&&x.denied,{catalog:K,unavailable:k,branchLocked:y,branchState:x,branchUnavailable:W,branchDenied:w});return(0,t.jsxs)("div",{className:"setup"===f?v.default.cmpSetupSelector:v.default.cmpRepositorySelector,children:[(0,t.jsx)(G,{root:e,locked:c,catalog:S.catalog,onSelect:s,t:_,placement:f}),(0,t.jsx)(q,{location:d,locked:c||null===e,onSelect:p,t:_,placement:f}),(0,t.jsx)(U,{root:e,branch:l,locked:S.branchLocked,state:S.branchState,onSelect:u,t:_,placement:f}),(0,t.jsx)(O,{placement:f,root:e,state:S,onOpenGit:h,t:_})]});},"r",0,M],69653);},54821,e=>{var t=e.i(26428);e.i(95508);var n=e.i(18829),a=e.i(92215),r=e.i(58773);let o="/api/coding-workbench/history",i="keiko:coding-history-changed";async function l(){return await(0,r.codingAppSessionPairingSettled)(),(await(0,a.N)(o,{signal:AbortSignal.timeout(15e3)})).tasks;}async function c(e,t){return await(0,r.codingAppSessionPairingSettled)(),(0,a.N)(`${o}/${encodeURIComponent(e)}`,{signal:AbortSignal.timeout(15e3)},void 0===t?void 0:{correlationId:t});}async function s(e,t){await(0,r.codingAppSessionPairingSettled)();let n=await(0,a.N)(`${o}/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)});return window.dispatchEvent(new Event(i)),n.task;}let u=/^keiko-coding-task-[A-Za-z0-9._-]{1,48}\.(?:json|md)$/u,d={json:"application/json",markdown:"text/markdown"};function m(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=0;}async function p(e,i,l){return await(0,r.codingAppSessionPairingSettled)(),(0,a.N)(`${o}/${encodeURIComponent(e)}/export?format=${i}`,{signal:AbortSignal.timeout(3e4)},{validator:(e,a)=>{if(!function(e,n){var a;if("object"!=typeof e||null===e)return!1;let r=Object.fromEntries(Object.entries(e));return r.format===n&&r.mediaType===d[n]&&"string"==typeof r.fileName&&u.test(r.fileName)&&"string"==typeof(a=r).content&&m(a.messageCount)&&m(a.byteCount)&&a.byteCount<=t.w&&new TextEncoder().encode(a.content).byteLength===a.byteCount&&"boolean"==typeof a.truncated;}(a,i))throw new n.a("CONTRACT_VALIDATION_FAILED","Invalid coding task export",502);return a;},...(void 0===l?{}:{correlationId:l})});}let h=new Set(t.i);async function g(e,l){if(e.size>t.d)throw new n.a("CODING_HISTORY_IMPORT_TOO_LARGE","The file is too large to import",413);let c=await e.text();await(0,r.codingAppSessionPairingSettled)();let s=await(0,a.N)(`${o}/import`,{method:"POST",body:c,signal:AbortSignal.timeout(6e4)},{validator:(e,t)=>{if(!function(e){if("object"!=typeof e||null===e)return!1;let t=Object.fromEntries(Object.entries(e));return function(e){if("object"!=typeof e||null===e)return!1;let t=Object.fromEntries(Object.entries(e));return"string"==typeof t.id&&t.id.length>0&&"string"==typeof t.title&&"imported"===t.origin;}(t.task)&&h.has(t.source)&&m(t.messageCount)&&t.messageCount>0&&m(t.omittedMessageCount)&&m(t.skippedMessageCount);}(t))throw new n.a("CONTRACT_VALIDATION_FAILED","Invalid coding task import",502);return t;},...(void 0===l?{}:{correlationId:l})});return window.dispatchEvent(new Event(i)),s;}e.s(["r",0,i,"L",0,p,"S",0,l,"x",0,c,"O",0,g,"z",0,function(e){let t=URL.createObjectURL(new Blob([e.content],{type:`${e.mediaType};charset=utf-8`})),n=document.createElement("a");n.href=t,n.download=e.fileName,document.body.appendChild(n),n.click(),n.remove(),window.setTimeout(()=>URL.revokeObjectURL(t),250);},"_",0,s]);}],48805,e=>{e.v({cmpMenuEmpty:"cg1rHa_cmpMenuEmpty",cmpMenuSearch:"cg1rHa_cmpMenuSearch",cmpSearchControl:"cg1rHa_cmpSearchControl",cmpViewportMenu:"cg1rHa_cmpViewportMenu",cmpViewportMenuScroll:"cg1rHa_cmpViewportMenuScroll"});},98391,e=>{e.v({"cmp-selectable-text":"DkDMvG_cmp-selectable-text","cmp-selectable-text-chrome":"DkDMvG_cmp-selectable-text-chrome"});},15169,e=>{e.v({cmpEmpty:"UeIBHq_cmpEmpty",cmpExport:"UeIBHq_cmpExport",cmpForkNotice:"UeIBHq_cmpForkNotice",cmpForkNoticeCancel:"UeIBHq_cmpForkNoticeCancel",cmpForkNoticeText:"UeIBHq_cmpForkNoticeText",cmpHeader:"UeIBHq_cmpHeader",cmpHeaderActions:"UeIBHq_cmpHeaderActions",cmpInput:"UeIBHq_cmpInput",cmpItem:"UeIBHq_cmpItem",cmpList:"UeIBHq_cmpList",cmpMessage:"UeIBHq_cmpMessage",cmpMessageFork:"UeIBHq_cmpMessageFork",cmpOpen:"UeIBHq_cmpOpen",cmpPanel:"UeIBHq_cmpPanel",cmpPrimary:"UeIBHq_cmpPrimary",cmpRename:"UeIBHq_cmpRename",cmpSecondary:"UeIBHq_cmpSecondary",cmpSessionAction:"UeIBHq_cmpSessionAction",cmpSessionActions:"UeIBHq_cmpSessionActions",cmpSessionBar:"UeIBHq_cmpSessionBar",cmpSessionIdentity:"UeIBHq_cmpSessionIdentity",cmpTabs:"UeIBHq_cmpTabs",cmpTranscript:"UeIBHq_cmpTranscript"});},14471,e=>{e.v({activityBadge:"WcKmKa_activityBadge",activityStatus:"WcKmKa_activityStatus",alert:"WcKmKa_alert",approvalChangedFile:"WcKmKa_approvalChangedFile",approvalChangedFiles:"WcKmKa_approvalChangedFiles",approvalFact:"WcKmKa_approvalFact",approvalFacts:"WcKmKa_approvalFacts",approvalResearch:"WcKmKa_approvalResearch",approvalResearchDetail:"WcKmKa_approvalResearchDetail",approvalResearchTitle:"WcKmKa_approvalResearchTitle",authorityControl:"WcKmKa_authorityControl",body:"WcKmKa_body",boundaryNote:"WcKmKa_boundaryNote",button:"WcKmKa_button",buttonDanger:"WcKmKa_buttonDanger",buttonPrimary:"WcKmKa_buttonPrimary",card:"WcKmKa_card",cardTitle:"WcKmKa_cardTitle",changesDiff:"WcKmKa_changesDiff",changesDiffPane:"WcKmKa_changesDiffPane",changesFileButton:"WcKmKa_changesFileButton",changesFileItem:"WcKmKa_changesFileItem",changesFileList:"WcKmKa_changesFileList",changesFileState:"WcKmKa_changesFileState",changesFiles:"WcKmKa_changesFiles",changesLayout:"WcKmKa_changesLayout",changesMessage:"WcKmKa_changesMessage",changesNotice:"WcKmKa_changesNotice",changesPaneTitle:"WcKmKa_changesPaneTitle",changesPath:"WcKmKa_changesPath",changesRevision:"WcKmKa_changesRevision",changesSpacer:"WcKmKa_changesSpacer","cmp-approval-commit-message":"WcKmKa_cmp-approval-commit-message","cmp-approval-commit-summary":"WcKmKa_cmp-approval-commit-summary","cmp-approval-native-resource":"WcKmKa_cmp-approval-native-resource","cmp-draft-delivery-link":"WcKmKa_cmp-draft-delivery-link","cmp-skill-category":"WcKmKa_cmp-skill-category","cmp-skill-id":"WcKmKa_cmp-skill-id","cmp-skill-readiness":"WcKmKa_cmp-skill-readiness","cmp-skill-row":"WcKmKa_cmp-skill-row","cmp-skills-disclosure":"WcKmKa_cmp-skills-disclosure","cmp-skills-list":"WcKmKa_cmp-skills-list","cmp-skills-summary":"WcKmKa_cmp-skills-summary","cmp-skills-unavailable":"WcKmKa_cmp-skills-unavailable","cmp-trust-notice":"WcKmKa_cmp-trust-notice","cmp-trust-notice-text":"WcKmKa_cmp-trust-notice-text","cmp-workbench-header":"WcKmKa_cmp-workbench-header",cmpActivityRetry:"WcKmKa_cmpActivityRetry",cmpActivitySummary:"WcKmKa_cmpActivitySummary",cmpChangesContent:"WcKmKa_cmpChangesContent",cmpChangesDisclosure:"WcKmKa_cmpChangesDisclosure",cmpContextLegend:"WcKmKa_cmpContextLegend",cmpContextMeter:"WcKmKa_cmpContextMeter",cmpContextSummary:"WcKmKa_cmpContextSummary",cmpContextSwatch:"WcKmKa_cmpContextSwatch",cmpContextUnavailable:"WcKmKa_cmpContextUnavailable",cmpContextUsage:"WcKmKa_cmpContextUsage",cmpContextUsageHeading:"WcKmKa_cmpContextUsageHeading",cmpConversation:"WcKmKa_cmpConversation",cmpDescriptionDraft:"WcKmKa_cmpDescriptionDraft",cmpGroupedTools:"WcKmKa_cmpGroupedTools",cmpHeaderRow:"WcKmKa_cmpHeaderRow",cmpInfoBar:"WcKmKa_cmpInfoBar",cmpInfoDetails:"WcKmKa_cmpInfoDetails",cmpInfoGrid:"WcKmKa_cmpInfoGrid",cmpInfoHeader:"WcKmKa_cmpInfoHeader",cmpInfoPopover:"WcKmKa_cmpInfoPopover",cmpInfoRow:"WcKmKa_cmpInfoRow",cmpInfoTrigger:"WcKmKa_cmpInfoTrigger",cmpPathFieldRow:"WcKmKa_cmpPathFieldRow",cmpReasoning:"WcKmKa_cmpReasoning",cmpReasoningNote:"WcKmKa_cmpReasoningNote",cmpReasoningText:"WcKmKa_cmpReasoningText",cmpRepositorySelector:"WcKmKa_cmpRepositorySelector",cmpRepositorySelectorChip:"WcKmKa_cmpRepositorySelectorChip",cmpRepositorySelectorGit:"WcKmKa_cmpRepositorySelectorGit",cmpRepositorySelectorNotice:"WcKmKa_cmpRepositorySelectorNotice",cmpRepositorySelectorTrigger:"WcKmKa_cmpRepositorySelectorTrigger",cmpRunActions:"WcKmKa_cmpRunActions",cmpRunDetails:"WcKmKa_cmpRunDetails",cmpRunStop:"WcKmKa_cmpRunStop",cmpSessionContent:"WcKmKa_cmpSessionContent",cmpSetupSelector:"WcKmKa_cmpSetupSelector",cmpSetupSelectorField:"WcKmKa_cmpSetupSelectorField",cmpSetupSelectorTrigger:"WcKmKa_cmpSetupSelectorTrigger",cmpToolOutcome:"WcKmKa_cmpToolOutcome",cmpWorkspaceLocation:"WcKmKa_cmpWorkspaceLocation",composerConfiguration:"WcKmKa_composerConfiguration",composerContext:"WcKmKa_composerContext",composerContextButton:"WcKmKa_composerContextButton",composerContextChip:"WcKmKa_composerContextChip",composerDock:"WcKmKa_composerDock",composerMemoryChip:"WcKmKa_composerMemoryChip",composerSubmitNotice:"WcKmKa_composerSubmitNotice",contextBar:"WcKmKa_contextBar",contextItem:"WcKmKa_contextItem",contextLabel:"WcKmKa_contextLabel",contextValue:"WcKmKa_contextValue",controls:"WcKmKa_controls",emptySession:"WcKmKa_emptySession",emptyText:"WcKmKa_emptyText",eventCard:"WcKmKa_eventCard",eyebrow:"WcKmKa_eyebrow",fieldLabel:"WcKmKa_fieldLabel",helpText:"WcKmKa_helpText",inlineActions:"WcKmKa_inlineActions",label:"WcKmKa_label",messageText:"WcKmKa_messageText",modelControl:"WcKmKa_modelControl",permission:"WcKmKa_permission",planCard:"WcKmKa_planCard",planSteps:"WcKmKa_planSteps",questionFieldset:"WcKmKa_questionFieldset",questionInline:"WcKmKa_questionInline",questionInput:"WcKmKa_questionInput",questionOption:"WcKmKa_questionOption",questionOptionText:"WcKmKa_questionOptionText",questionOptions:"WcKmKa_questionOptions",questionPrompt:"WcKmKa_questionPrompt",questionRequest:"WcKmKa_questionRequest",questionRequests:"WcKmKa_questionRequests",questionStatus:"WcKmKa_questionStatus",reasoningControl:"WcKmKa_reasoningControl",recovery:"WcKmKa_recovery",researchGrant:"WcKmKa_researchGrant",resourceCard:"WcKmKa_resourceCard",resourceDetail:"WcKmKa_resourceDetail",resourceGrid:"WcKmKa_resourceGrid",resourceHeading:"WcKmKa_resourceHeading",resourceName:"WcKmKa_resourceName",resourceState:"WcKmKa_resourceState",resumeModeControl:"WcKmKa_resumeModeControl",resumeModeLabel:"WcKmKa_resumeModeLabel",resumeModeSelect:"WcKmKa_resumeModeSelect",runtimeControls:"WcKmKa_runtimeControls",session:"WcKmKa_session",sessionStream:"WcKmKa_sessionStream",setupActions:"WcKmKa_setupActions",setupInput:"WcKmKa_setupInput",setupPanel:"WcKmKa_setupPanel",setupPlan:"WcKmKa_setupPlan",setupStatus:"WcKmKa_setupStatus",shell:"WcKmKa_shell",sourceCard:"WcKmKa_sourceCard",sourceControl:"WcKmKa_sourceControl",sourceDetail:"WcKmKa_sourceDetail",sourceGrid:"WcKmKa_sourceGrid",sourceName:"WcKmKa_sourceName",sourceText:"WcKmKa_sourceText",statusBadge:"WcKmKa_statusBadge",statusSymbol:"WcKmKa_statusSymbol",summary:"WcKmKa_summary",timeline:"WcKmKa_timeline",timelineBody:"WcKmKa_timelineBody",timelineDetail:"WcKmKa_timelineDetail",timelineItem:"WcKmKa_timelineItem",timelineSpacer:"WcKmKa_timelineSpacer",timelineTitle:"WcKmKa_timelineTitle",toolCard:"WcKmKa_toolCard",toolCount:"WcKmKa_toolCount",toolIcon:"WcKmKa_toolIcon",toolMeta:"WcKmKa_toolMeta",toolName:"WcKmKa_toolName",truncationMark:"WcKmKa_truncationMark",truthLabel:"WcKmKa_truthLabel",truthRow:"WcKmKa_truthRow",truthValue:"WcKmKa_truthValue",welcome:"WcKmKa_welcome",welcomeBubble:"WcKmKa_welcomeBubble","workbench-tool-spin":"WcKmKa_workbench-tool-spin"});}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[67914,30644,e=>{var t=e.i(43476),n=e.i(71645),a=e.i(74080),r=e.i(24541),o=e.i(50850),i=e.i(48805),l=e.i(17161);function c(e){let t=Math.max(0,Math.min(e.width,e.viewportWidth-32)),n=Math.max(0,e.anchor.top-16-e.gap),a=Math.max(0,e.viewportHeight-e.anchor.bottom-16-e.gap),r=e.preferUp?n>=Math.min(e.height,96)||n>=a:a<e.height&&n>a,o=Math.max(0,Math.min(e.height,r?n:a,e.viewportHeight-32));return{left:Math.max(16,Math.min(e.anchor.left,e.viewportWidth-t-16)),top:Math.max(16,Math.min(r?e.anchor.top-e.gap-o:e.anchor.bottom+e.gap,e.viewportHeight-16-o)),width:t,maxHeight:o,openUp:r};}e.s(["f",0,c],30644);let s=l.f.search,u="keiko:select-open";function d(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 m(e){return e.findIndex(e=>!0!==e.disabled);}function p(e,t,n){if(0===e.length)return-1;for(let a of e.keys()){var _e$r;let r=(t+(a+1)*n+e.length)%e.length;if(((_e$r=e[r])===null||_e$r===void 0?void 0:_e$r.disabled)!==!0)return r;}return-1;}function h(e,t){let n=e.toLocaleLowerCase();return n===t?0:n.startsWith(t)?1:2;}function g(e,t){let n=t.trim().toLocaleLowerCase();return""===n?e:e.map(e=>({...e,options:e.options.filter(e=>e.label.toLocaleLowerCase().includes(n)).sort((e,t)=>h(e.label,n)-h(t.label,n))}));}function f({active:e,index:r,onCommit:o,onOptionKeyDown:i,option:l,selected:c,setOptionRef:s}){let u=(0,n.useRef)(null),m=(0,n.useRef)(null),p=(0,n.useRef)(null),[h,g]=(0,n.useState)(null),b=()=>{null!==p.current&&(clearTimeout(p.current),p.current=null),g(null);},K=()=>{null!==p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{let e=m.current,t=u.current;if(null===e||null===t||e.scrollWidth<=e.clientWidth)return;let n=t.getBoundingClientRect(),a=Math.min(520,window.innerWidth-32),r=n.right+8+a<=window.innerWidth-16?"top-left":"top-right";g({left:"top-left"===r?n.right+8:n.left-8,placement:r,top:n.top-6});},1500);};return(0,n.useEffect)(()=>b,[]),(0,t.jsxs)("button",{ref:e=>{u.current=e,s(r,e);},"aria-label":[l.label,l.description,l.badge].filter(e=>void 0!==e&&e.trim().length>0).join(", "),"aria-selected":c,className:`ksel-option${e?" ksel-option-active":""}`,"data-disabled":!0===l.disabled?"true":void 0,disabled:l.disabled,onBlur:b,onClick:()=>o(l),onFocus:K,onKeyDown:e=>i(e,r),onPointerEnter:K,onPointerLeave:b,role:"option",type:"button",children:[(0,t.jsxs)("span",{className:"ksel-option-copy",children:[(0,t.jsx)("span",{className:"ksel-option-label",ref:m,children:l.label}),void 0!==l.description?(0,t.jsx)("span",{className:"ksel-option-desc",children:l.description}):null]}),void 0!==l.badge?(0,t.jsx)("span",{className:"ksel-option-badge",children:l.badge}):null,null!==h?(0,a.createPortal)((0,t.jsx)("div",{className:"ksel-overflow-tooltip","data-placement":h.placement,role:"tooltip",style:{left:`${h.left.toString()}px`,top:`${h.top.toString()}px`},children:l.label}),d(u.current)):null]});}function b({activeIndex:e,flatOptions:n,menuId:a,onCommit:r,onOptionKeyDown:o,section:i,sectionIndex:l,selectedIndex:c,setOptionRef:s}){let u=void 0!==i.label?`${a}-section-${l.toString()}`:void 0;return(0,t.jsxs)("div",{className:"ksel-section",role:void 0!==i.label?"group":"presentation","aria-labelledby":u,children:[void 0!==i.label?(0,t.jsx)("div",{className:"ksel-section-label",id:u,children:i.label}):null,i.options.map(a=>{var _i$label;let l=n.findIndex(e=>e.value===a.value&&e.sectionLabel===i.label),u=n[l];return void 0===u?null:(0,t.jsx)(f,{active:l===e,index:l,onCommit:r,onOptionKeyDown:o,option:u,selected:l===c,setOptionRef:s},`${(_i$label=i.label)!==null&&_i$label!==void 0?_i$label:"section"}-${a.value}`);})]});}function K({search:e}){return void 0===e?null:(0,t.jsx)("div",{className:i.default.cmpMenuSearch,children:(0,t.jsxs)("div",{className:`c-combo-input ${i.default.cmpSearchControl}`,children:[(0,t.jsx)(s,{size:15}),(0,t.jsx)("input",{ref:e.inputRef,type:"search","aria-label":e.placeholder,placeholder:e.placeholder,value:e.query,onChange:t=>{e.onChange(t.currentTarget.value);},onKeyDown:e.onKeyDown})]})});}function v({search:e,visible:n}){return n&&(e===null||e===void 0?void 0:e.emptyLabel)!==void 0?(0,t.jsx)("p",{className:i.default.cmpMenuEmpty,children:e.emptyLabel}):null;}function k({activeIndex:e,ariaLabel:n,flatOptions:r,menuClassName:o,menuCountLabel:l,menuId:c,menuLabel:s,menuRef:u,menuTitle:d,onCommit:m,onKeyDownCapture:p,onOptionKeyDown:h,placeholder:g,portalRoot:f,position:y,selectedIndex:x,sections:W,search:w,setOptionRef:_,showMenuHeader:S}){var _ref;return(0,a.createPortal)((0,t.jsxs)("div",{ref:u,onKeyDownCapture:p,className:["ksel-menu",i.default.cmpViewportMenu,y.attached?"ksel-menu-attached":"",y.openUp?"ksel-menu-open-up":"ksel-menu-open-down",o!==null&&o!==void 0?o:""].filter(e=>void 0!==e&&e.length>0).join(" "),style:{left:`${y.left.toString()}px`,top:`${y.top.toString()}px`,width:`${y.width.toString()}px`,"--ksel-option-height":`${y.optionHeight.toString()}px`,fontFamily:y.fontFamily,fontSize:y.fontSize,fontWeight:y.fontWeight,letterSpacing:y.letterSpacing,lineHeight:y.lineHeight,maxHeight:Math.max(0,window.innerHeight-y.top-16)},children:[S?(0,t.jsxs)("div",{className:"ksel-menu-head",children:[(0,t.jsx)("div",{className:"ksel-menu-title",children:(_ref=d!==null&&d!==void 0?d:n)!==null&&_ref!==void 0?_ref:g}),(0,t.jsx)("div",{className:"ksel-menu-note",children:l!==null&&l!==void 0?l:`${r.length.toString()} options`})]}):null,(0,t.jsx)(K,{search:w}),(0,t.jsxs)("div",{className:`ksel-menu-scroll ${i.default.cmpViewportMenuScroll}`,role:"listbox",id:c,"aria-label":s,style:{maxHeight:`${y.maxHeight.toString()}px`},children:[W.map((n,a)=>{var _n$label;return(0,t.jsx)(b,{activeIndex:e,flatOptions:r,menuId:c,onCommit:m,onOptionKeyDown:h,section:n,sectionIndex:a,selectedIndex:x,setOptionRef:_},`${(_n$label=n.label)!==null&&_n$label!==void 0?_n$label:"section"}-${a.toString()}`);}),(0,t.jsx)(v,{search:w,visible:0===r.length})]})]}),f);}e.s(["f",0,function({value:e,sections:a,onValueChange:i,onOpen:l,disabled:s=!1,placeholder:h,ariaLabel:f,ariaDescribedBy:b,ariaLabelledBy:K,triggerClassName:v,triggerTitle:y,menuClassName:x,menuTitle:W,menuCountLabel:w,showMenuHeader:_=!0,leadingVisual:S,mono:j=!1,showChevron:C=!0,showTriggerDescription:N=!0,menuMinWidth:R,menuPopoverMinWidth:M,menuPopoverMaxHeight:L,menuPlacement:I="auto",searchPlaceholder:T,searchEmptyLabel:E,attached:D=!0,triggerStyle:P,autoFocus:H=!1}){var _eo$label,_eo$description,_ref2,_$$triggerClassName,_$$position;var $;let A=(0,o.t)(),F=(0,n.useRef)(null),B=(0,n.useRef)(null),q=(0,n.useRef)(null),U=(0,n.useRef)([]),O=(0,n.useId)(),[G,V]=(0,n.useState)(!1),[z,J]=(0,n.useState)(-1),[Z,X]=(0,n.useState)(null),[Y,Q]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(""),en=(0,n.useMemo)(()=>g(a,ee),[ee,a]),ea=(0,n.useMemo)(()=>en.flatMap((e,t)=>e.options.map((n,a)=>{var _e$label;return{...n,key:`${(_e$label=e.label)!==null&&_e$label!==void 0?_e$label:"section"}-${t.toString()}-${n.value}-${a.toString()}`,sectionLabel:e.label};})),[en]),er=ea.findIndex(t=>t.value===e),eo=a.flatMap(e=>e.options).find(t=>t.value===e),ei=h!==null&&h!==void 0?h:A("select.placeholder"),el=(_eo$label=eo===null||eo===void 0?void 0:eo.label)!==null&&_eo$label!==void 0?_eo$label:ei,ec=N?(_eo$description=eo===null||eo===void 0?void 0:eo.description)!==null&&_eo$description!==void 0?_eo$description:null:null,es=(_ref2=W!==null&&W!==void 0?W:f)!==null&&_ref2!==void 0?_ref2:ei,eu=(0,n.useCallback)(()=>{V(!1),J(-1),et("");},[]),ed=e=>{var _ea$e,_ea$er;if(s||0===ea.length)return;let t=void 0!==e&&((_ea$e=ea[e])===null||_ea$e===void 0?void 0:_ea$e.disabled)!==!0?e:er>=0&&((_ea$er=ea[er])===null||_ea$er===void 0?void 0:_ea$er.disabled)!==!0?er:m(ea);window.dispatchEvent(new Event(u)),V(!0),J(t),et(""),l===null||l===void 0?void 0:l();};(0,n.useEffect)(()=>(window.addEventListener(u,eu),()=>{window.removeEventListener(u,eu);}),[eu]),(0,n.useEffect)(()=>{if(!G)return;let e=e=>{let t=e.target;null!==F.current&&t instanceof Node&&F.current.contains(t)||null!==B.current&&t instanceof Node&&B.current.contains(t)||eu();},t=()=>eu();return window.addEventListener("pointerdown",e,!0),window.addEventListener("blur",t),()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("blur",t);};},[eu,G]),(0,n.useLayoutEffect)(()=>{if(!G||null===F.current)return;let e={menuMinWidth:R,menuPopoverMinWidth:M,menuPopoverMaxHeight:L,chromeReserve:50*!!_+46*(void 0!==T)+2},t=()=>{var _e$menuPopoverMinWidt,_e$menuPopoverMaxHeig;let t=F.current;if(null===t)return;let n=t.getBoundingClientRect(),a=Math.min(Math.max(void 0!==e.menuMinWidth&&n.width<Math.min(e.menuMinWidth,96)?e.menuMinWidth:n.width,(_e$menuPopoverMinWidt=e.menuPopoverMinWidth)!==null&&_e$menuPopoverMinWidt!==void 0?_e$menuPopoverMinWidt:0),window.innerWidth-32),r=D&&1>Math.abs(a-n.width),o=c({anchor:n,width:a,height:((_e$menuPopoverMaxHeig=e.menuPopoverMaxHeight)!==null&&_e$menuPopoverMaxHeig!==void 0?_e$menuPopoverMaxHeig:380)+e.chromeReserve,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,gap:r?-1:6,preferUp:"up"===I});Q(o.openUp);let i=Math.max(0,o.maxHeight-e.chromeReserve),l=window.getComputedStyle(t);X({left:o.left,width:a,top:o.top,optionHeight:Math.max(28,Math.min(n.height,30)),maxHeight:i,openUp:o.openUp,attached:r,fontFamily:l.fontFamily,fontSize:l.fontSize,fontWeight:l.fontWeight,letterSpacing:l.letterSpacing,lineHeight:l.lineHeight});};return t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0);};},[G,D,R,M,L,I,T,_]),(0,n.useLayoutEffect)(()=>{if(!G||null===Z||!Z.openUp||null===F.current||null===B.current)return;let e=F.current.getBoundingClientRect(),t=B.current.getBoundingClientRect();if(t.height<=0)return;let n=Z.attached?-1:6,a=Math.max(16,e.top-t.height-n);.5>Math.abs(a-Z.top)||X(e=>null===e?e:{...e,top:a});},[G,Z,ea.length]);let em=G&&null!==Z;function ep(e){var _F$current;e.disabled||(i(e.value),eu(),(_F$current=F.current)===null||_F$current===void 0?void 0:_F$current.focus());}function eh(e,t){var _F$current2;t.preventDefault(),t.stopPropagation(),eu(),(_F$current2=F.current)!==null&&_F$current2!==void 0&&_F$current2.focus(),(0,r.v)(`[keiko] select menu dismissed by Escape (focus=${e})`,{kind:"other",selectDismissal:{reason:"escape",focus:e}});}(0,n.useEffect)(()=>{var _q$current;em&&void 0!==T&&((_q$current=q.current)===null||_q$current===void 0?void 0:_q$current.focus());},[em,T]),(0,n.useEffect)(()=>{var _U$current$z,_U$current$z2;!em||z<0||(void 0===T||document.activeElement!==q.current)&&((_U$current$z=U.current[z])!==null&&_U$current$z!==void 0&&_U$current$z.focus(),(_U$current$z2=U.current[z])===null||_U$current$z2===void 0?void 0:_U$current$z2.scrollIntoView({block:"nearest"}));},[em,z,T]),(0,n.useEffect)(()=>{if(!G)return;let e=e=>{if("Escape"===e.key){var _F$current3;eu(),(_F$current3=F.current)===null||_F$current3===void 0?void 0:_F$current3.focus();return;}if(1===e.key.length&&!e.metaKey&&!e.ctrlKey&&!e.altKey){var t;if((t=e.target)instanceof HTMLElement&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||t.isContentEditable))return;let n=function(e,t,n){for(let a=1;a<=e.length;a+=1){let r=(t+a)%e.length,o=e[r];if(void 0!==o&&!0!==o.disabled&&o.label.toLowerCase().startsWith(n))return r;}return-1;}(ea,z>=0?z:Math.max(er,0),e.key.toLowerCase());-1!==n&&J(n);}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);},[G,z,eu,ea,er]);let eg=["ksel-trigger",($={disabled:s,mono:j,open:G,openUp:Y,position:Z,triggerClassName:v}).mono?"mono":"",(_$$triggerClassName=$.triggerClassName)!==null&&_$$triggerClassName!==void 0?_$$triggerClassName:"",$.open?"ksel-trigger-open":"",$.open&&((_$$position=$.position)===null||_$$position===void 0?void 0:_$$position.attached)===!0?$.openUp?"ksel-trigger-open-up":"ksel-trigger-open-down":"",$.disabled?"ksel-trigger-disabled":""].filter(e=>void 0!==e&&e.length>0).join(" "),ef=G&&null!==Z?(0,t.jsx)(k,{activeIndex:z,ariaLabel:f,flatOptions:ea,menuClassName:x,menuCountLabel:w,menuId:O,menuLabel:es,menuRef:B,menuTitle:W,onCommit:ep,onKeyDownCapture:function(e){if("Escape"!==e.key)return;let t=e.target;t===q.current?eh("search",e):t instanceof Element&&null!==t.closest('[role="option"]')?eh("option",e):eh("menu",e);},onOptionKeyDown:function(e,t){if("Tab"===e.key){var _F$current4;e.preventDefault(),eu(),(_F$current4=F.current)===null||_F$current4===void 0?void 0:_F$current4.focus();return;}if("ArrowDown"===e.key){e.preventDefault(),J(p(ea,t,1));return;}if("ArrowUp"===e.key){e.preventDefault(),J(p(ea,t,-1));return;}if("Home"===e.key){e.preventDefault(),J(m(ea));return;}if("End"===e.key){e.preventDefault(),J(p(ea,0,-1));return;}if("Enter"===e.key||" "===e.key){e.preventDefault();let n=ea[t];void 0!==n&&ep(n);}},placeholder:h,portalRoot:d(F.current),position:Z,selectedIndex:er,sections:en,search:void 0===T?void 0:{placeholder:T,query:ee,emptyLabel:E,inputRef:q,onChange:e=>{et(e),J(g(a,e).flatMap(e=>e.options).findIndex(e=>!0!==e.disabled));},onKeyDown:function(e){if("ArrowDown"===e.key){var _U$current$t;e.preventDefault();let t=m(ea);J(t),(_U$current$t=U.current[t])===null||_U$current$t===void 0?void 0:_U$current$t.focus();}else if("Enter"===e.key){e.preventDefault();let t=ea[m(ea)];void 0!==t&&ep(t);}}},setOptionRef:(e,t)=>{U.current[e]=t;},showMenuHeader:_}):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{ref:F,"aria-controls":O,"aria-describedby":b,"aria-expanded":G,"aria-haspopup":"listbox","aria-label":f,"aria-labelledby":K,autoFocus:H,className:eg,disabled:s,onClick:()=>{G?eu():ed();},onKeyDown:function(e){if(!s){if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault(),ed(er>=0?er:m(ea));return;}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),G?eu():ed());}},onKeyDownCapture:e=>{G&&"Escape"===e.key&&eh("trigger",e);},role:"combobox",style:P,title:y,type:"button",children:[void 0!==S?(0,t.jsx)("span",{className:"ksel-trigger-leading",children:S}):null,(0,t.jsxs)("span",{className:"ksel-trigger-copy",children:[(0,t.jsx)("span",{className:"ksel-trigger-label",children:el}),null!==ec?(0,t.jsx)("span",{className:"ksel-trigger-desc",children:ec}):null]}),C?(0,t.jsx)("span",{"aria-hidden":"true",className:`ksel-trigger-caret${G?" ksel-trigger-caret-open":""}`,children:(0,t.jsx)("svg",{fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",children:(0,t.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=>{e.s(["u",0,{display:"block"},"z",0,{margin:0,position:"static"},"k",0,{margin:0,minWidth:0,padding:0,border:0},"w",0,{margin:0,minWidth:0},"Z",0,{margin:0,fontWeight:"inherit"},"d",0,{listStyle:"none",margin:0},"$",0,{listStyle:"none",margin:0,padding:0}]);},6675,e=>{var t=e.i(71645),n=e.i(95508),a=e.i(18829),r=e.i(58773),o=e.i(13464);function i(e){return async(...t)=>(await(0,r.codingAppSessionPairingSettled)(),e(...t));}let l={listRepositories:i(n.bF),registerRepository:n.CW,reconnectRepository:n.kD,cloneRepository:n.S6,listBranches:i(n.e_),getSummary:i(n.Xk),getHistory:i(n.fg),getRemotes:i(n.Ws),getStatus:i(n.Tu),getDiff:i(n.Pu),getStructuredDiff:i(n.C_),branchCreate:n.AT,branchSwitch:n.RU,stage:n.M3,unstage:n.zf,commitPreview:n.GG,commitDraft:n.FV,commitExecute:n.Sk,commitPropose:n.JZ,syncPreview:n.Wu,syncExecute:n.Mz,pushPreview:n.ET,pushExecute:n.eN,pushPropose:n.RB,prPreview:n.h_,prApprove:n.oU,prExecute:n.Fr,prDescriptionPreview:n.Sl,prDescriptionApprove:n.vJ,prDescriptionApply:n.EJ,prDescriptionStatus:n.Mc,mergePreview:n.N1,mergeApprove:n.P4,mergeExecute:n.EH},c={"empty-subject":"The subject line is empty","missing-conventional-prefix":"Missing a conventional-commit type prefix","disallowed-type":"The commit type is not allowed","subject-too-long":"The subject line is too long","missing-issue-key":"Missing the required issue key","missing-signoff":"Missing the Signed-off-by trailer"};function s(e){return e instanceof a.a?`${e.message} (${e.code})`:e instanceof Error?e.message:"An unexpected error occurred.";}e.s(["F",0,l,"y",0,{succeeded:"Succeeded",blocked:"Blocked","approval-required":"Approval required",failed:"Failed","recovery-required":"Recovery required"},"g",0,s,"I",0,function(e,n,a){let r=function(e,n){let[a,r]=(0,t.useState)({busy:!1,outcome:null,error:null}),i=(0,t.useRef)(0);return{flow:a,runMutation:(0,t.useCallback)(t=>{let a=i.current+1;i.current=a,r({busy:!0,outcome:null,error:null}),t().then(t=>{("succeeded"===t.status||"failed"===t.status||"recovery-required"===t.status)&&(0,o.h)(e,n),i.current===a&&r({busy:!1,outcome:t,error:null});},e=>{i.current===a&&r({busy:!1,outcome:null,error:s(e)});});},[e,n]),resetFlow:(0,t.useCallback)(()=>{i.current+=1,r({busy:!1,outcome:null,error:null});},[])};}(n,a),i=function(e,n){let[a,r]=(0,t.useState)(null),[o,i]=(0,t.useState)(null),[l,c]=(0,t.useState)(null),[u,d]=(0,t.useState)(null),m=(0,t.useRef)(0);return{preview:a,previewDraft:o,previewRequestRevision:l,previewError:u,runPreview:(0,t.useCallback)((t,a)=>{let o=m.current+1;m.current=o,r(null),i(null),c(null),d(null),e.commitPreview({projectId:n,messageDraft:t}).then(e=>{m.current===o&&(r(e),i(t),c(a!==null&&a!==void 0?a:null));},e=>{m.current===o&&(r(null),i(null),c(null),d(s(e)));});},[e,n]),resetPreview:(0,t.useCallback)(()=>{m.current+=1,r(null),i(null),c(null),d(null);},[])};}(e,n),{resetFlow:l}=r,{resetPreview:c}=i,u=(0,t.useCallback)(()=>{l(),c();},[l,c]);return{flow:r.flow,preview:i.preview,previewDraft:i.previewDraft,previewRequestRevision:i.previewRequestRevision,previewError:i.previewError,runMutation:r.runMutation,runPreview:i.runPreview,reset:u};},"_",0,function(e){return c[e];}]);},13464,e=>{let t="keiko:git-repository-state-invalidated";e.s(["A",0,t,"n",0,function(e){let t=function(e){if(!(e instanceof CustomEvent)||"object"!=typeof e.detail||null===e.detail)return null;let t=e.detail.root;return"string"==typeof t&&t.length>0?t:null;}(e);if(null===t)return[];let n=e.detail.repositoryRoot;return"string"!=typeof n||0===n.length||n===t?[t]:[t,n];},"h",0,function(e,n){0!==e.length&&window.dispatchEvent(new CustomEvent(t,{detail:{root:e,...(void 0!==n&&n.length>0&&n!==e?{repositoryRoot:n}:{})}}));}]);},11257,e=>{var _o$default$cmpSelect;var t=e.i(43476),n=e.i(24541),a=e.i(60865),r=e.i(26222),o=e.i(98391);let i=(_o$default$cmpSelect=o.default["cmp-selectable-text-chrome"])!==null&&_o$default$cmpSelect!==void 0?_o$default$cmpSelect:"";function l({tokens:e}){let n=new Map();return(0,t.jsx)(t.Fragment,{children:e.map(e=>{var _n$get;let a=`${e[0]}:${e[1]}`,r=(_n$get=n.get(a))!==null&&_n$get!==void 0?_n$get:0;return n.set(a,r+1),(0,t.jsx)("span",{className:`hl-${e[0]}`,children:e[1]},`${a}:${String(r)}`);})});}function c({line:e,lang:n,kindLabel:a,labels:o}){var _o$addedLine,_o$deletedLine,_o$contextLine,_o$metadataLine,_e$oldLine,_e$newLine;var s,u;let d,m="add"===(s=e.kind)?"+":"del"===s?"−":"ctx"===s?"·":"",p="ctx"===e.kind?"":` rv-${e.kind}`;if("meta"!==e.kind&&"code"!==n){var _2;let a=(_2=(0,r.v)(e.text,(0,r.H)(n))[0])!==null&&_2!==void 0?_2:[];d=(0,t.jsx)(l,{tokens:a});}else d=e.text;return(0,t.jsxs)("div",{className:`rv-line${p}`,children:[(0,t.jsx)("span",{className:`rv-sr-only ${i}`,children:a!==null&&a!==void 0?a:(u=e.kind,"add"===u?(_o$addedLine=o===null||o===void 0?void 0:o.addedLine)!==null&&_o$addedLine!==void 0?_o$addedLine:"Added line":"del"===u?(_o$deletedLine=o===null||o===void 0?void 0:o.deletedLine)!==null&&_o$deletedLine!==void 0?_o$deletedLine:"Deleted line":"ctx"===u?(_o$contextLine=o===null||o===void 0?void 0:o.contextLine)!==null&&_o$contextLine!==void 0?_o$contextLine:"Context line":(_o$metadataLine=o===null||o===void 0?void 0:o.metadataLine)!==null&&_o$metadataLine!==void 0?_o$metadataLine:"Diff metadata")}),(0,t.jsx)("span",{className:`rv-num-old rv-num ${i}`,children:(_e$oldLine=e.oldLine)!==null&&_e$oldLine!==void 0?_e$oldLine:""}),(0,t.jsx)("span",{className:`rv-num-new rv-num ${i}`,children:(_e$newLine=e.newLine)!==null&&_e$newLine!==void 0?_e$newLine:""}),(0,t.jsx)("span",{className:`rv-gutter ${i}`,"aria-hidden":"true",children:m}),(0,t.jsx)("code",{className:"rv-src",children:d})]});}function s({hunk:e,lang:n,labels:r,viewLabels:o}){var _o$hunkHeader,_ref3,_r$header,_o$hunkTruncated;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rv-hunk mono","aria-label":`${(_o$hunkHeader=o===null||o===void 0?void 0:o.hunkHeader)!==null&&_o$hunkHeader!==void 0?_o$hunkHeader:"Hunk header"} ${e.header}`,children:[(0,t.jsx)("span",{className:`rv-sr-only ${i}`,children:(_ref3=(_r$header=r===null||r===void 0?void 0:r.header)!==null&&_r$header!==void 0?_r$header:o===null||o===void 0?void 0:o.hunkHeader)!==null&&_ref3!==void 0?_ref3:"Hunk header"}),e.header]}),e.lines.map((e,a)=>{var _e$oldLine2,_e$newLine2;return(0,t.jsx)(c,{line:e,lang:n,kindLabel:r===null||r===void 0?void 0:r[e.kind],labels:o},`${String((_e$oldLine2=e.oldLine)!==null&&_e$oldLine2!==void 0?_e$oldLine2:"-")}:${String((_e$newLine2=e.newLine)!==null&&_e$newLine2!==void 0?_e$newLine2:"-")}:${e.kind}:${String(a)}`);}),e.truncated?(0,t.jsx)("output",{className:"rv-truncated",style:a.u,children:(_o$hunkTruncated=o===null||o===void 0?void 0:o.hunkTruncated)!==null&&_o$hunkTruncated!==void 0?_o$hunkTruncated:"This hunk is incomplete because the bounded diff was truncated."}):null]});}e.s(["b",0,function({file:e,index:r,changedFiles:i=[],sectionRef:l,translate:c,labels:u,idPrefix:d="rv-file"}){var _c,_e$path$split$pop,_u$previousPath,_u$elevatedReview,_u$binaryFile,_u$fileTruncated;let m=(_c=c===null||c===void 0?void 0:c("chat.repository.role.file"))!==null&&_c!==void 0?_c:"file",p=i.find(t=>t.path===e.path),h=e.path.includes(".")?(_e$path$split$pop=e.path.split(".").pop())!==null&&_e$path$split$pop!==void 0?_e$path$split$pop:"code":"code";return(0,t.jsxs)("section",{id:`${d}-${r}`,"aria-labelledby":`${d}-${r}-h`,ref:l,children:[(0,t.jsxs)("h3",{id:`${d}-${r}-h`,className:"rv-file mono",children:[(0,t.jsx)("span",{className:"rv-path",children:e.path}),void 0!==e.oldPath&&(0,t.jsx)("span",{className:"rv-oldpath",children:(_u$previousPath=u===null||u===void 0?void 0:u.previousPath(e.oldPath))!==null&&_u$previousPath!==void 0?_u$previousPath:` (was ${e.oldPath})`}),(0,t.jsxs)("span",{className:"rv-sr-only",children:[e.status," ",m]}),(0,t.jsx)("span",{className:"spacer"}),(0,t.jsxs)("span",{className:"rv-stat add",children:["+",e.addedLines]}),(0,t.jsxs)("span",{className:"rv-stat del",children:["−",e.removedLines]}),(p===null||p===void 0?void 0:p.elevatedReview)===!0&&(0,t.jsx)("span",{className:"rv-elevated","aria-label":(_u$elevatedReview=u===null||u===void 0?void 0:u.elevatedReview)!==null&&_u$elevatedReview!==void 0?_u$elevatedReview:"Elevated review",children:"!"})]}),(0,t.jsxs)("div",{className:`rv-code mono ${o.default["cmp-selectable-text"]}`,"data-text-selectable":"true",tabIndex:0,onFocusCapture:()=>(0,n.v)("[keiko] shared diff viewport focused"),children:[e.binary?(0,t.jsx)("p",{className:"rv-empty-p",children:(_u$binaryFile=u===null||u===void 0?void 0:u.binaryFile)!==null&&_u$binaryFile!==void 0?_u$binaryFile:"Binary file — no text diff to display."}):e.hunks.map(e=>(0,t.jsx)(s,{hunk:e,lang:h,viewLabels:u},e.header)),e.truncated&&!e.hunks.some(e=>e.truncated)?(0,t.jsx)("output",{className:"rv-truncated",style:a.u,children:(_u$fileTruncated=u===null||u===void 0?void 0:u.fileTruncated)!==null&&_u$fileTruncated!==void 0?_u$fileTruncated:"This file diff is incomplete because the bounded diff was truncated."}):null]})]});},"I",0,s]);},26222,e=>{let t={jsx:"js",js:"js",mjs:"js",ts:"ts",tsx:"ts",java:"java",kt:"kotlin",kts:"kotlin",py:"py",rb:"py",go:"go",rs:"rust",json:"json",yml:"yaml",yaml:"yaml",md:"md",markdown:"md",html:"html",xml:"html",css:"css",sql:"sql",sh:"sh",bash:"sh",cob:"cobol",cbl:"cobol",gradle:"js",graphql:"graphql",gql:"graphql",properties:"props",toml:"props",env:"props",dockerfile:"docker"},n=new Set("const let var function return if else for while do switch case break continue import from export default class extends implements interface enum new async await yield of in typeof instanceof this super public private protected static final readonly void int long double float boolean char byte short val fun object data override companion package def pass lambda try catch except finally throw throws raise with as not and or is null nil None True False true false undefined struct impl trait pub use mod match where select insert update delete create table from join on group by order limit FROM RUN CMD ENV COPY WORKDIR EXPOSE ENTRYPOINT AS".split(" "));function a(e){let t=[];return e.split(/(`[^`]+`|\*\*[^*]+\*\*)/).forEach(e=>{""!==e&&(e.startsWith("`")?t.push(["str",e]):e.startsWith("**")?t.push(["type",e]):t.push(["id",e]));}),t.length>0?t:[["id",e]];}let r=[function(e){return null!==e.cs.line&&e.rest.startsWith(e.cs.line)?{token:["com",e.rest],length:e.rest.length,stop:!0}:null;},function(e){let{cs:t,rest:n,line:a,i:r,state:o}=e;if(null===t.block||!n.startsWith(t.block[0]))return null;let i=a.indexOf(t.block[1],r+t.block[0].length);if(-1===i)return o.inBlock=!0,{token:["com",n],length:n.length,stop:!0};let l=i+t.block[1].length;return{token:["com",a.slice(r,l)],length:l-r,stop:!1};},function(e){let t=/^(?:"(?:[^"\\]|\\.)*"?|'(?:[^'\\]|\\.)*'?)/.exec(e.rest);return null===t||t[0].length<=1?null:{token:["str",t[0]],length:t[0].length,stop:!1};},function(e){var _t$;if(!/^\d/.test(e.rest))return null;let t=/^\d[\w.]*/.exec(e.rest),n=(_t$=t===null||t===void 0?void 0:t[0])!==null&&_t$!==void 0?_t$:e.rest.charAt(0);return{token:["num",n],length:n.length,stop:!1};},function(e){var t,a;let r=/^[@A-Za-z_$][\w$]*/.exec(e.rest);if(null===r)return null;let o=r[0];return{token:[(t=e.line,a=e.i,n.has(o)||n.has(o.toLowerCase())?"key":o.startsWith("@")||/^[A-Z]/.test(o)?"type":"("===t.charAt(a+o.length)?"fn":"id"),o],length:o.length,stop:!1};},function(e){let t=/^\s+/.exec(e.rest);return null===t?null:{token:["ws",t[0]],length:t[0].length,stop:!1};},function(e){let t=/^[^\w\s$@"']+/.exec(e.rest);return null===t?null:{token:["punct",t[0]],length:t[0].length,stop:!1};}];e.s(["v",0,function(e,t){if("md"===t)return e.split("\n").map(e=>{var _t$2,_t$3,_t$4;if(/^#{1,6}\s/.test(e))return[["head",e]];if(/^\s*```/.test(e))return[["com",e]];let t=/^(\s*)([-*+]|\d+\.)(\s)/.exec(e);return null!==t?[["ws",(_t$2=t[1])!==null&&_t$2!==void 0?_t$2:""],["key",(_t$3=t[2])!==null&&_t$3!==void 0?_t$3:""],["ws",(_t$4=t[3])!==null&&_t$4!==void 0?_t$4:""],...a(e.slice(t[0].length))]:a(e);});if("json"===t)return e.split("\n").map(e=>{let t=[],n=0;for(;n<e.length;){let a=e.slice(n),r=/^"(?:[^"\\]|\\.)*"/.exec(a);if(null!==r){let a=e.slice(n+r[0].length),o=/^\s*:/.test(a);t.push([o?"key2":"str",r[0]]),n+=r[0].length;continue;}let o=/^-?\d[\d.eE+-]*/.exec(a);if(null!==o){t.push(["num",o[0]]),n+=o[0].length;continue;}let i=/^(true|false|null)\b/.exec(a);if(null!==i){t.push(["lit",i[0]]),n+=i[0].length;continue;}let l=/^\s+/.exec(a);if(null!==l){t.push(["ws",l[0]]),n+=l[0].length;continue;}t.push(["punct",a.charAt(0)]),n+=1;}return t;});let n="py"===t||"sh"===t||"yaml"===t||"props"===t||"docker"===t?{line:"#",block:null}:"sql"===t?{line:"--",block:["/*","*/"]}:"cobol"===t?{line:"*>",block:null}:"html"===t?{line:null,block:["<!--","-->"]}:{line:"//",block:["/*","*/"]},o={inBlock:!1},i=[];for(let t of e.split("\n"))i.push(function(e,t,n){let a=[],o=0,i=function(e,t,n){if(!t.inBlock||null===n.block)return null;let a=e.indexOf(n.block[1]);if(-1===a)return{token:["com",e],length:e.length};let r=a+n.block[1].length;return t.inBlock=!1,{token:["com",e.slice(0,r)],length:r};}(e,t,n);for(null!==i&&(a.push(i.token),o=i.length);o<e.length;){let i=function(e){for(let t of r){let n=t(e);if(null!==n)return n;}return{token:["id",e.rest.charAt(0)],length:1,stop:!1};}({line:e,i:o,rest:e.slice(o),cs:n,state:t});if(a.push(i.token),o+=i.length,i.stop)break;}return a;}(t,o,n));return i;},"H",0,function(e){var _t$r;let n=e.toLowerCase();if(".env"===n||n.startsWith(".env."))return"props";if("dockerfile"===n||n.startsWith("dockerfile"))return"docker";if(n.includes("docker-compose"))return"yaml";let a=n.split("."),r=a.length>1?a.at(-1):void 0;return void 0===r?"code":(_t$r=t[r])!==null&&_t$r!==void 0?_t$r:"code";}]);},69653,63096,70855,97880,e=>{var t=e.i(43476),n=e.i(71645),a=e.i(24541),r=e.i(74952),o=e.i(29835),i=e.i(92215),l=e.i(17161),c=e.i(67914),s=e.i(6675),u=e.i(13464);let d=[];function m(e){var _p$response$branches,_p$response,_t,_t$branches$find$name,_t$branches$find;var t;let[r,l]=(0,n.useState)({root:null,response:null,loading:null!==e,error:null,denied:!1}),c=(0,n.useRef)(0),m=(0,n.useCallback)(async()=>{let t=c.current+=1;if(null===e)return void l({root:null,response:null,loading:!1,error:null,denied:!1});l(e=>({...e,loading:!0,error:null,denied:!1}));try{let n=await s.F.listBranches(e);c.current===t&&l({root:e,response:n,loading:!1,error:null,denied:!1});}catch(n){c.current===t&&(l({root:e,response:null,loading:!1,error:"Git status could not be loaded.",denied:(0,i.L)(n)}),(0,a.v)(`[keiko] repository branch status failed: ${(0,o.R)(n)}`,{correlationId:(0,o.E)(n),errorKind:(0,i.J)(n)}));}},[e]);(0,n.useEffect)(()=>(m(),()=>{c.current+=1;}),[m]),(0,n.useEffect)(()=>{if(null===e)return;let t=t=>{(0,u.n)(t).includes(e)&&m();};return window.addEventListener(u.A,t),()=>window.removeEventListener(u.A,t);},[m,e]);let p=r.root===e?r:{...r,response:null,loading:null!==e,error:null,denied:!1};return{...p,branches:(_p$response$branches=(_p$response=p.response)===null||_p$response===void 0?void 0:_p$response.branches)!==null&&_p$response$branches!==void 0?_p$response$branches:d,currentBranch:(t=p.response,((_t=t)===null||_t===void 0?void 0:_t.available)!==!0?null:(_t$branches$find$name=(_t$branches$find=t.branches.find(e=>e.current))===null||_t$branches$find===void 0?void 0:_t$branches$find.name)!==null&&_t$branches$find$name!==void 0?_t$branches$find$name:null),refresh:m};}e.s(["f",0,m],63096);var p=e.i(95508);async function h(e){let t=await(0,p.Xk)(e);return t.available&&"available"===t.state;}async function g(){let{projects:e}=await(0,p.bF)();return e;}async function f(e){let{projects:t}=await(0,p.bF)(),n=t.find(t=>t.path===e);return void 0!==n&&!!(n.available&&!0===n.workspaceAvailable)&&h(e);}e.s(["n",0,f,"O",0,g],70855);var b=e.i(18568),K=e.i(11257),v=e.i(14471);function k(e,t){return 1===e?t("codingWorkbench.changes.changedFiles.one"):t("codingWorkbench.changes.changedFiles",{count:e});}function y({changes:e,pairing:n,t:a}){if("idle"===e.status)return(0,t.jsx)(x,{text:a("codingWorkbench.changes.idle")});if("loading"===e.status)return(0,t.jsx)(x,{role:"status",text:a("codingWorkbench.changes.loading")});if("binding-lost"===e.status)return(0,t.jsx)(x,{role:"alert",text:a("codingWorkbench.changes.bindingLost")});if("unavailable"===e.status&&"unpaired"===n)return(0,t.jsx)(x,{role:"status",text:a("codingWorkbench.changes.unpaired")});if("unavailable"===e.status||"error"===e.status){let n=a("unavailable"===e.status?"codingWorkbench.changes.unavailable":"codingWorkbench.changes.error");return(0,t.jsx)(W,{text:n,className:v.default.changesMessage,role:"alert",retry:{label:a("codingWorkbench.changes.retry"),onRetry:e.retry}});}return(0,t.jsx)(w,{changes:e,t:a});}function x({text:e,role:n}){return(0,t.jsx)("p",{className:v.default.changesMessage,role:n,children:e});}function W({text:e,className:n,role:a,retry:r}){return void 0===r?(0,t.jsx)("p",{className:n,children:e}):(0,t.jsxs)("div",{className:n,role:a,children:[(0,t.jsx)("p",{children:e}),(0,t.jsx)("button",{className:v.default.button,type:"button",disabled:!0===r.disabled,onClick:r.onRetry,children:r.label})]});}function w({changes:e,t:n}){var _e$head;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:v.default.changesRevision,role:"status","aria-live":"polite",children:n("codingWorkbench.changes.asOf",{head:(_e$head=e.head)!==null&&_e$head!==void 0?_e$head:"HEAD"})}),0===e.files.length?(0,t.jsx)(x,{text:n("codingWorkbench.changes.empty")}):(0,t.jsxs)("div",{className:v.default.changesLayout,children:[(0,t.jsx)(_,{changes:e,t:n}),(0,t.jsx)(N,{changes:e,t:n})]}),e.truncated?(0,t.jsx)("output",{className:v.default.changesNotice,children:n("codingWorkbench.changes.filesTruncated")}):null]});}function _({changes:e,t:a}){let r=function(e){let[t,a]=(0,n.useState)(0),r=e.length>80,o=Math.max(0,e.length-24),i=r?Math.min(Math.max(0,Math.floor(t/54)-6),o):0,l=r?e.slice(i,i+24):e;return{virtual:r,start:i,visible:l,end:i+l.length,onScroll:e=>a(e.currentTarget.scrollTop)};}(e.files);return(0,t.jsxs)("div",{className:v.default.changesFiles,children:[(0,t.jsx)("p",{className:v.default.changesPaneTitle,id:"coding-workbench-changed-files-title",children:k(e.files.length,a)}),r.virtual?(0,t.jsx)("p",{className:v.default.helpText,id:"coding-workbench-changes-list-help",children:a("codingWorkbench.changes.virtualInstructions")}):null,(0,t.jsxs)("ul",{className:v.default.changesFileList,"aria-labelledby":"coding-workbench-changed-files-title","aria-describedby":r.virtual?"coding-workbench-changes-list-help":void 0,tabIndex:r.virtual?0:void 0,onScroll:r.onScroll,children:[r.virtual&&r.start>0?(0,t.jsx)(S,{size:54*r.start}):null,r.visible.map(n=>(0,t.jsx)(j,{file:n,changes:e,t:a},n.path)),r.virtual&&r.end<e.files.length?(0,t.jsx)(S,{size:(e.files.length-r.end)*54}):null]})]});}function S({size:e}){return(0,t.jsx)("li",{className:v.default.changesSpacer,style:{blockSize:e},"aria-hidden":"true"});}function j({file:e,changes:n,t:a}){var r;let o=n.selectedPath===e.path;return(0,t.jsx)("li",{className:v.default.changesFileItem,children:(0,t.jsxs)("button",{className:v.default.changesFileButton,type:"button","aria-pressed":o,onClick:()=>n.selectPath(e.path),children:[(0,t.jsx)("span",{className:v.default.changesPath,title:e.path,children:e.path}),(0,t.jsx)("span",{className:v.default.changesFileState,children:(r=e,a(r.conflicted?"codingWorkbench.changes.fileState.conflicted":r.untracked?"codingWorkbench.changes.fileState.untracked":r.staged&&r.unstaged?"codingWorkbench.changes.fileState.stagedAndUnstaged":r.staged?"codingWorkbench.changes.fileState.staged":"codingWorkbench.changes.fileState.unstaged"))})]})});}function C(e){return{addedLine:e("codingWorkbench.changes.diff.addedLine"),deletedLine:e("codingWorkbench.changes.diff.deletedLine"),contextLine:e("codingWorkbench.changes.diff.contextLine"),metadataLine:e("codingWorkbench.changes.diff.metadataLine"),hunkHeader:e("codingWorkbench.changes.diff.hunkHeader"),hunkTruncated:e("codingWorkbench.changes.diff.hunkTruncated"),fileTruncated:e("codingWorkbench.changes.diff.fileTruncated"),binaryFile:e("codingWorkbench.changes.diff.binaryFile"),previousPath:t=>e("codingWorkbench.changes.diff.previousPath",{path:t}),elevatedReview:e("codingWorkbench.changes.diff.elevatedReview")};}function N({changes:e,t:a}){let r=(0,n.useMemo)(()=>C(a),[a]);return(0,t.jsxs)("div",{className:v.default.changesDiffPane,children:[(0,t.jsx)("p",{className:v.default.changesPaneTitle,children:a("codingWorkbench.changes.diff.title")}),(0,t.jsx)("section",{className:`${v.default.changesDiff} review`,"aria-label":a("codingWorkbench.changes.diff.region"),tabIndex:0,children:(0,t.jsx)(R,{changes:e,labels:r,t:a})})]});}function R({changes:e,labels:n,t:a}){return"loading"===e.diffStatus?(0,t.jsx)(x,{role:"status",text:a("codingWorkbench.changes.diff.loading")}):"error"===e.diffStatus?(0,t.jsx)(W,{text:a("codingWorkbench.changes.diff.error"),className:v.default.changesMessage,role:"alert",retry:{label:a("codingWorkbench.changes.diff.retry"),onRetry:e.retryDiff}}):"empty"===e.diffStatus||null===e.diff?(0,t.jsx)(x,{text:a("codingWorkbench.changes.diff.empty")}):(0,t.jsxs)("div",{className:"rv-body",children:[e.diffTruncated?(0,t.jsx)("output",{className:"rv-truncated",children:a("codingWorkbench.changes.diff.truncated")}):null,e.diff.files.map((e,a)=>(0,t.jsx)(K.b,{file:e,index:a,idPrefix:"coding-workbench-change-file",sectionRef:()=>void 0,labels:n},`${e.path}:${String(a)}`))]});}function M(e){let t=e.split(/[\\/]/u);for(let e=t.length-1;e>=0;e-=1){let n=t[e];if(void 0!==n&&n.length>0)return n;}return e;}e.s(["y",0,function({changes:e,pairing:n}){let r=(0,b.f)();return"idle"===e.status||"loading"===e.status?null:(0,t.jsxs)("details",{className:v.default.cmpChangesDisclosure,onToggle:()=>(0,a.v)("[keiko] coding workbench changes disclosure toggled"),children:[(0,t.jsx)("summary",{className:v.default.cmpActivitySummary,children:"ready"===e.status?k(e.files.length,r):r("codingWorkbench.changes.title")}),(0,t.jsx)("div",{className:v.default.cmpChangesContent,children:(0,t.jsx)(y,{changes:e,pairing:n,t:r})})]});},"Y",0,W,"q",0,C],97880);let L=l.f.folder,I=l.f.branch;function T(e){return e.available&&!0===e.workspaceAvailable;}function E(e,t,n){return"setup"===e?{triggerClassName:v.default.cmpSetupSelectorTrigger,triggerStyle:void 0}:{triggerClassName:v.default.cmpRepositorySelectorTrigger,triggerStyle:{width:`${Math.min(Math.max(t.length+4,13),n)}ch`}};}function D({root:e,locked:n,catalog:a,onSelect:r,t:o,placement:i}){var _u$label;let l,s=(l=a.repositories.map(e=>({value:e.path,label:e.name||M(e.path),disabled:!T(e),...(!T(e)?{badge:o("codingWorkbench.repository.unavailable")}:{})})),null===e||l.some(t=>t.value===e)?l:[{value:e,label:M(e),disabled:!0,badge:o("codingWorkbench.repository.unavailable")},...l]),u=s.find(t=>t.value===e),d=(_u$label=u===null||u===void 0?void 0:u.label)!==null&&_u$label!==void 0?_u$label:o(a.loading?"codingWorkbench.repository.loading":"codingWorkbench.repository.none");return(0,t.jsx)(c.f,{value:e!==null&&e!==void 0?e:"",sections:[{options:s}],onValueChange:r,onOpen:a.reload,disabled:n||a.loading&&0===s.length||a.error,placeholder:d,ariaLabel:o("codingWorkbench.repository.choose"),leadingVisual:(0,t.jsx)(L,{size:15,"aria-hidden":"true"}),...E(i,d,22),showMenuHeader:!1,menuPopoverMinWidth:280,menuPlacement:"up",searchPlaceholder:o("codingWorkbench.repository.search"),searchEmptyLabel:o("codingWorkbench.repository.noMatches")});}function P(e){var _e$response;return null!==e.error||((_e$response=e.response)===null||_e$response===void 0?void 0:_e$response.available)===!1;}function H({root:e,branch:n,locked:a,branchState:r,onSelect:o,t:i,placement:l}){var _ref4;let s=(_ref4=n!==null&&n!==void 0?n:r.currentBranch)!==null&&_ref4!==void 0?_ref4:"",u=r.loading||P(r),d=function(e,t,n,a){let r=t.filter(t=>t.name!==e).map(e=>({value:e.name,label:e.name}));if(""===e)return r;let o=n&&!t.some(t=>t.name===e);return[{value:e,label:e,...(o?{disabled:!0,badge:a}:{})},...r];}(s,r.branches,!u,i("codingWorkbench.repository.unavailable")),m=s||i("codingWorkbench.repository.noBranch");return(0,t.jsx)(c.f,{value:s,sections:[{options:d}],onValueChange:o,disabled:a||null===e||u||0===d.length,placeholder:m,ariaLabel:i("codingWorkbench.repository.chooseBranch"),leadingVisual:(0,t.jsx)(I,{size:15,"aria-hidden":"true"}),...E(l,m,26),showMenuHeader:!1,menuPopoverMinWidth:340,menuPopoverMaxHeight:280,menuPlacement:"up",searchPlaceholder:i("codingWorkbench.repository.searchBranch"),searchEmptyLabel:i("codingWorkbench.repository.noBranchMatches"),mono:!0});}function $({location:e,locked:n,onSelect:a,t:r,placement:o}){let i=r("codingWorkbench.repository.locationLocal"),s=r("codingWorkbench.repository.locationWorktree"),u="local"===e?i:s,d=l.f.terminal;return(0,t.jsx)(c.f,{value:e,sections:[{options:[{value:"local",label:i},{value:"worktree",label:s}]}],onValueChange:e=>a("worktree"===e?"worktree":"local"),disabled:n,ariaLabel:r("codingWorkbench.repository.locationLabel"),leadingVisual:(0,t.jsx)(d,{size:15,"aria-hidden":"true"}),...E(o,u,22),menuPopoverMinWidth:260,showMenuHeader:!1,menuPlacement:"up"});}function A({placement:e,label:n,children:a}){return(0,t.jsxs)("div",{className:"setup"===e?v.default.cmpSetupSelectorField:v.default.cmpRepositorySelectorChip,children:["setup"===e?(0,t.jsx)("span",{children:n}):null,a]});}function F({unavailable:e,branchUnavailable:n,branchDenied:a,catalogError:r,onRetryCatalog:o,t:i}){if(r)return(0,t.jsx)(W,{text:i("codingWorkbench.repository.loadError"),className:v.default.cmpRepositorySelectorNotice,role:"alert",retry:{label:i("codingWorkbench.repository.retryLoad"),onRetry:o}});let l=e?"codingWorkbench.repository.unavailableHelp":a?"codingWorkbench.repository.deniedHelp":n?"codingWorkbench.repository.gitUnavailableHelp":void 0;return void 0===l?null:(0,t.jsx)("p",{className:v.default.cmpRepositorySelectorNotice,role:"alert",children:i(l)});}function B({placement:e,root:n,unavailable:a,branchUnavailable:r,branchDenied:o,catalogError:i,onOpenGit:l,onRetryCatalog:c,t:s}){let u="setup"===e&&(null===n||a||r||i);return(0,t.jsxs)(t.Fragment,{children:[u?(0,t.jsx)("button",{type:"button",className:v.default.cmpRepositorySelectorGit,onClick:l,children:s("codingWorkbench.repository.manage")}):null,(0,t.jsx)(F,{unavailable:a,branchUnavailable:r,branchDenied:o,catalogError:i,onRetryCatalog:c,t:s})]});}function q({location:e,locked:n,onSelect:a,placement:r,t:o}){return(0,t.jsx)(A,{placement:r,label:o("codingWorkbench.repository.locationLabel"),children:(0,t.jsx)($,{location:e,locked:n,onSelect:a,t:o,placement:r})});}function U({root:e,branch:n,locked:a,state:r,onSelect:o,placement:i,t:l}){return(0,t.jsx)(A,{placement:i,label:l("codingWorkbench.repository.branchLabel"),children:(0,t.jsx)(H,{root:e,branch:n,locked:a,branchState:r,onSelect:o,t:l,placement:i})});}function O({root:e,state:n,placement:a,onOpenGit:r,t:o}){return(0,t.jsx)(B,{placement:a,root:e,unavailable:n.unavailable,branchUnavailable:n.branchUnavailable,branchDenied:n.branchDenied,catalogError:n.catalog.error,onOpenGit:r,onRetryCatalog:n.catalog.reload,t:o});}function G({root:e,locked:n,catalog:a,onSelect:r,placement:o,t:i}){return(0,t.jsx)(A,{placement:o,label:i("codingWorkbench.repository.label"),children:(0,t.jsx)(D,{root:e,locked:n,catalog:a,onSelect:r,t:i,placement:o})});}e.s(["C",0,function({root:e,branch:l,locked:c,onSelect:s,onSelectBranch:u,location:d,onSelectLocation:p,onOpenGit:h,placement:f="composer"}){let K,k,y,x,W,w,_=(0,b.f)(),S=(k=function(e,t){if(null===e||t.loading||t.error)return!1;let n=t.repositories.find(t=>t.path===e);return void 0===n||!T(n);}(e,K=function(){let[e,t]=(0,n.useState)([]),[l,c]=(0,n.useState)(!0),[s,u]=(0,n.useState)(!1),d=(0,n.useRef)(0),m=(0,n.useCallback)(()=>{let e=++d.current;c(!0),g().then(n=>{d.current===e&&(t(n),u(!1),c(!1));},t=>{if(d.current===e){let e;u(!0),c(!1),e=(0,o.E)(t),(0,a.v)("[keiko] coding workbench repository catalog unavailable",{kind:"other",errorKind:(0,i.J)(t),errorEvidence:(0,r.f)(t),...(void 0===e?{}:{correlationId:e})});}});},[]);return(0,n.useEffect)(()=>(m(),()=>{d.current+=1;}),[m]),{repositories:e,loading:l,error:s,reload:m};}()),x=m((y=c||k)?null:e),w=(W=null!==e&&!k&&!K.loading&&!K.error&&!x.loading&&P(x))&&x.denied,{catalog:K,unavailable:k,branchLocked:y,branchState:x,branchUnavailable:W,branchDenied:w});return(0,t.jsxs)("div",{className:"setup"===f?v.default.cmpSetupSelector:v.default.cmpRepositorySelector,children:[(0,t.jsx)(G,{root:e,locked:c,catalog:S.catalog,onSelect:s,t:_,placement:f}),(0,t.jsx)(q,{location:d,locked:c||null===e,onSelect:p,t:_,placement:f}),(0,t.jsx)(U,{root:e,branch:l,locked:S.branchLocked,state:S.branchState,onSelect:u,t:_,placement:f}),(0,t.jsx)(O,{placement:f,root:e,state:S,onOpenGit:h,t:_})]});},"r",0,M],69653);},54821,e=>{var t=e.i(26428);e.i(95508);var n=e.i(18829),a=e.i(92215),r=e.i(58773);let o="/api/coding-workbench/history",i="keiko:coding-history-changed";async function l(){return await(0,r.codingAppSessionPairingSettled)(),(await(0,a.N)(o,{signal:AbortSignal.timeout(15e3)})).tasks;}async function c(e,t){return await(0,r.codingAppSessionPairingSettled)(),(0,a.N)(`${o}/${encodeURIComponent(e)}`,{signal:AbortSignal.timeout(15e3)},void 0===t?void 0:{correlationId:t});}async function s(e,t){await(0,r.codingAppSessionPairingSettled)();let n=await(0,a.N)(`${o}/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)});return window.dispatchEvent(new Event(i)),n.task;}let u=/^keiko-coding-task-[A-Za-z0-9._-]{1,48}\.(?:json|md)$/u,d={json:"application/json",markdown:"text/markdown"};function m(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=0;}async function p(e,i,l){return await(0,r.codingAppSessionPairingSettled)(),(0,a.N)(`${o}/${encodeURIComponent(e)}/export?format=${i}`,{signal:AbortSignal.timeout(3e4)},{validator:(e,a)=>{if(!function(e,n){var a;if("object"!=typeof e||null===e)return!1;let r=Object.fromEntries(Object.entries(e));return r.format===n&&r.mediaType===d[n]&&"string"==typeof r.fileName&&u.test(r.fileName)&&"string"==typeof(a=r).content&&m(a.messageCount)&&m(a.byteCount)&&a.byteCount<=t.w&&new TextEncoder().encode(a.content).byteLength===a.byteCount&&"boolean"==typeof a.truncated;}(a,i))throw new n.a("CONTRACT_VALIDATION_FAILED","Invalid coding task export",502);return a;},...(void 0===l?{}:{correlationId:l})});}let h=new Set(t.i);async function g(e,l){if(e.size>t.d)throw new n.a("CODING_HISTORY_IMPORT_TOO_LARGE","The file is too large to import",413);let c=await e.text();await(0,r.codingAppSessionPairingSettled)();let s=await(0,a.N)(`${o}/import`,{method:"POST",body:c,signal:AbortSignal.timeout(6e4)},{validator:(e,t)=>{if(!function(e){if("object"!=typeof e||null===e)return!1;let t=Object.fromEntries(Object.entries(e));return function(e){if("object"!=typeof e||null===e)return!1;let t=Object.fromEntries(Object.entries(e));return"string"==typeof t.id&&t.id.length>0&&"string"==typeof t.title&&"imported"===t.origin;}(t.task)&&h.has(t.source)&&m(t.messageCount)&&t.messageCount>0&&m(t.omittedMessageCount)&&m(t.skippedMessageCount);}(t))throw new n.a("CONTRACT_VALIDATION_FAILED","Invalid coding task import",502);return t;},...(void 0===l?{}:{correlationId:l})});return window.dispatchEvent(new Event(i)),s;}e.s(["r",0,i,"L",0,p,"S",0,l,"x",0,c,"O",0,g,"z",0,function(e){let t=URL.createObjectURL(new Blob([e.content],{type:`${e.mediaType};charset=utf-8`})),n=document.createElement("a");n.href=t,n.download=e.fileName,document.body.appendChild(n),n.click(),n.remove(),window.setTimeout(()=>URL.revokeObjectURL(t),250);},"_",0,s]);}],48805,e=>{e.v({cmpMenuEmpty:"cg1rHa_cmpMenuEmpty",cmpMenuSearch:"cg1rHa_cmpMenuSearch",cmpSearchControl:"cg1rHa_cmpSearchControl",cmpViewportMenu:"cg1rHa_cmpViewportMenu",cmpViewportMenuScroll:"cg1rHa_cmpViewportMenuScroll"});},98391,e=>{e.v({"cmp-selectable-text":"DkDMvG_cmp-selectable-text","cmp-selectable-text-chrome":"DkDMvG_cmp-selectable-text-chrome"});},15169,e=>{e.v({cmpEmpty:"UeIBHq_cmpEmpty",cmpExport:"UeIBHq_cmpExport",cmpForkNotice:"UeIBHq_cmpForkNotice",cmpForkNoticeCancel:"UeIBHq_cmpForkNoticeCancel",cmpForkNoticeText:"UeIBHq_cmpForkNoticeText",cmpHeader:"UeIBHq_cmpHeader",cmpHeaderActions:"UeIBHq_cmpHeaderActions",cmpInput:"UeIBHq_cmpInput",cmpItem:"UeIBHq_cmpItem",cmpList:"UeIBHq_cmpList",cmpMessage:"UeIBHq_cmpMessage",cmpMessageFork:"UeIBHq_cmpMessageFork",cmpOpen:"UeIBHq_cmpOpen",cmpPanel:"UeIBHq_cmpPanel",cmpPrimary:"UeIBHq_cmpPrimary",cmpRename:"UeIBHq_cmpRename",cmpSecondary:"UeIBHq_cmpSecondary",cmpSessionAction:"UeIBHq_cmpSessionAction",cmpSessionActions:"UeIBHq_cmpSessionActions",cmpSessionBar:"UeIBHq_cmpSessionBar",cmpSessionIdentity:"UeIBHq_cmpSessionIdentity",cmpTabs:"UeIBHq_cmpTabs",cmpTranscript:"UeIBHq_cmpTranscript"});},14471,e=>{e.v({activityBadge:"WcKmKa_activityBadge",activityStatus:"WcKmKa_activityStatus",alert:"WcKmKa_alert",approvalChangedFile:"WcKmKa_approvalChangedFile",approvalChangedFiles:"WcKmKa_approvalChangedFiles",approvalFact:"WcKmKa_approvalFact",approvalFacts:"WcKmKa_approvalFacts",approvalResearch:"WcKmKa_approvalResearch",approvalResearchDetail:"WcKmKa_approvalResearchDetail",approvalResearchTitle:"WcKmKa_approvalResearchTitle",authorityControl:"WcKmKa_authorityControl",body:"WcKmKa_body",boundaryNote:"WcKmKa_boundaryNote",button:"WcKmKa_button",buttonDanger:"WcKmKa_buttonDanger",buttonPrimary:"WcKmKa_buttonPrimary",card:"WcKmKa_card",cardTitle:"WcKmKa_cardTitle",changesDiff:"WcKmKa_changesDiff",changesDiffPane:"WcKmKa_changesDiffPane",changesFileButton:"WcKmKa_changesFileButton",changesFileItem:"WcKmKa_changesFileItem",changesFileList:"WcKmKa_changesFileList",changesFileState:"WcKmKa_changesFileState",changesFiles:"WcKmKa_changesFiles",changesLayout:"WcKmKa_changesLayout",changesMessage:"WcKmKa_changesMessage",changesNotice:"WcKmKa_changesNotice",changesPaneTitle:"WcKmKa_changesPaneTitle",changesPath:"WcKmKa_changesPath",changesRevision:"WcKmKa_changesRevision",changesSpacer:"WcKmKa_changesSpacer","cmp-approval-commit-message":"WcKmKa_cmp-approval-commit-message","cmp-approval-commit-summary":"WcKmKa_cmp-approval-commit-summary","cmp-approval-native-resource":"WcKmKa_cmp-approval-native-resource","cmp-draft-delivery-link":"WcKmKa_cmp-draft-delivery-link","cmp-skill-category":"WcKmKa_cmp-skill-category","cmp-skill-id":"WcKmKa_cmp-skill-id","cmp-skill-readiness":"WcKmKa_cmp-skill-readiness","cmp-skill-row":"WcKmKa_cmp-skill-row","cmp-skills-disclosure":"WcKmKa_cmp-skills-disclosure","cmp-skills-list":"WcKmKa_cmp-skills-list","cmp-skills-summary":"WcKmKa_cmp-skills-summary","cmp-skills-unavailable":"WcKmKa_cmp-skills-unavailable","cmp-trust-notice":"WcKmKa_cmp-trust-notice","cmp-trust-notice-text":"WcKmKa_cmp-trust-notice-text","cmp-workbench-header":"WcKmKa_cmp-workbench-header",cmpActivityRetry:"WcKmKa_cmpActivityRetry",cmpActivitySummary:"WcKmKa_cmpActivitySummary",cmpChangesContent:"WcKmKa_cmpChangesContent",cmpChangesDisclosure:"WcKmKa_cmpChangesDisclosure",cmpContextLegend:"WcKmKa_cmpContextLegend",cmpContextMeter:"WcKmKa_cmpContextMeter",cmpContextSummary:"WcKmKa_cmpContextSummary",cmpContextSwatch:"WcKmKa_cmpContextSwatch",cmpContextUnavailable:"WcKmKa_cmpContextUnavailable",cmpContextUsage:"WcKmKa_cmpContextUsage",cmpContextUsageHeading:"WcKmKa_cmpContextUsageHeading",cmpConversation:"WcKmKa_cmpConversation",cmpDescriptionDraft:"WcKmKa_cmpDescriptionDraft",cmpGroupedTools:"WcKmKa_cmpGroupedTools",cmpHeaderRow:"WcKmKa_cmpHeaderRow",cmpInfoBar:"WcKmKa_cmpInfoBar",cmpInfoDetails:"WcKmKa_cmpInfoDetails",cmpInfoGrid:"WcKmKa_cmpInfoGrid",cmpInfoHeader:"WcKmKa_cmpInfoHeader",cmpInfoPopover:"WcKmKa_cmpInfoPopover",cmpInfoRow:"WcKmKa_cmpInfoRow",cmpInfoTrigger:"WcKmKa_cmpInfoTrigger",cmpPathFieldRow:"WcKmKa_cmpPathFieldRow",cmpReasoning:"WcKmKa_cmpReasoning",cmpReasoningNote:"WcKmKa_cmpReasoningNote",cmpReasoningText:"WcKmKa_cmpReasoningText",cmpRepositorySelector:"WcKmKa_cmpRepositorySelector",cmpRepositorySelectorChip:"WcKmKa_cmpRepositorySelectorChip",cmpRepositorySelectorGit:"WcKmKa_cmpRepositorySelectorGit",cmpRepositorySelectorNotice:"WcKmKa_cmpRepositorySelectorNotice",cmpRepositorySelectorTrigger:"WcKmKa_cmpRepositorySelectorTrigger",cmpRunActions:"WcKmKa_cmpRunActions",cmpRunDetails:"WcKmKa_cmpRunDetails",cmpRunStop:"WcKmKa_cmpRunStop",cmpSessionContent:"WcKmKa_cmpSessionContent",cmpSetupSelector:"WcKmKa_cmpSetupSelector",cmpSetupSelectorField:"WcKmKa_cmpSetupSelectorField",cmpSetupSelectorTrigger:"WcKmKa_cmpSetupSelectorTrigger",cmpStreamNotice:"WcKmKa_cmpStreamNotice",cmpToolOutcome:"WcKmKa_cmpToolOutcome",cmpWorkspaceLocation:"WcKmKa_cmpWorkspaceLocation",composerConfiguration:"WcKmKa_composerConfiguration",composerContext:"WcKmKa_composerContext",composerContextButton:"WcKmKa_composerContextButton",composerContextChip:"WcKmKa_composerContextChip",composerDock:"WcKmKa_composerDock",composerMemoryChip:"WcKmKa_composerMemoryChip",composerSubmitNotice:"WcKmKa_composerSubmitNotice",contextBar:"WcKmKa_contextBar",contextItem:"WcKmKa_contextItem",contextLabel:"WcKmKa_contextLabel",contextValue:"WcKmKa_contextValue",controls:"WcKmKa_controls",emptySession:"WcKmKa_emptySession",emptyText:"WcKmKa_emptyText",eventCard:"WcKmKa_eventCard",eyebrow:"WcKmKa_eyebrow",fieldLabel:"WcKmKa_fieldLabel",helpText:"WcKmKa_helpText",inlineActions:"WcKmKa_inlineActions",label:"WcKmKa_label",messageText:"WcKmKa_messageText",modelControl:"WcKmKa_modelControl",permission:"WcKmKa_permission",planCard:"WcKmKa_planCard",planSteps:"WcKmKa_planSteps",questionFieldset:"WcKmKa_questionFieldset",questionInline:"WcKmKa_questionInline",questionInput:"WcKmKa_questionInput",questionOption:"WcKmKa_questionOption",questionOptionText:"WcKmKa_questionOptionText",questionOptions:"WcKmKa_questionOptions",questionPrompt:"WcKmKa_questionPrompt",questionRequest:"WcKmKa_questionRequest",questionRequests:"WcKmKa_questionRequests",questionStatus:"WcKmKa_questionStatus",reasoningControl:"WcKmKa_reasoningControl",recovery:"WcKmKa_recovery",researchGrant:"WcKmKa_researchGrant",resourceCard:"WcKmKa_resourceCard",resourceDetail:"WcKmKa_resourceDetail",resourceGrid:"WcKmKa_resourceGrid",resourceHeading:"WcKmKa_resourceHeading",resourceName:"WcKmKa_resourceName",resourceState:"WcKmKa_resourceState",resumeModeControl:"WcKmKa_resumeModeControl",resumeModeLabel:"WcKmKa_resumeModeLabel",resumeModeSelect:"WcKmKa_resumeModeSelect",runtimeControls:"WcKmKa_runtimeControls",session:"WcKmKa_session",sessionStream:"WcKmKa_sessionStream",setupActions:"WcKmKa_setupActions",setupInput:"WcKmKa_setupInput",setupPanel:"WcKmKa_setupPanel",setupPlan:"WcKmKa_setupPlan",setupStatus:"WcKmKa_setupStatus",shell:"WcKmKa_shell",sourceCard:"WcKmKa_sourceCard",sourceControl:"WcKmKa_sourceControl",sourceDetail:"WcKmKa_sourceDetail",sourceGrid:"WcKmKa_sourceGrid",sourceName:"WcKmKa_sourceName",sourceText:"WcKmKa_sourceText",statusBadge:"WcKmKa_statusBadge",statusSymbol:"WcKmKa_statusSymbol",summary:"WcKmKa_summary",timeline:"WcKmKa_timeline",timelineBody:"WcKmKa_timelineBody",timelineDetail:"WcKmKa_timelineDetail",timelineItem:"WcKmKa_timelineItem",timelineSpacer:"WcKmKa_timelineSpacer",timelineTitle:"WcKmKa_timelineTitle",toolCard:"WcKmKa_toolCard",toolCount:"WcKmKa_toolCount",toolIcon:"WcKmKa_toolIcon",toolMeta:"WcKmKa_toolMeta",toolName:"WcKmKa_toolName",truncationMark:"WcKmKa_truncationMark",truthLabel:"WcKmKa_truthLabel",truthRow:"WcKmKa_truthRow",truthValue:"WcKmKa_truthValue",welcome:"WcKmKa_welcome",welcomeBubble:"WcKmKa_welcomeBubble","workbench-tool-spin":"WcKmKa_workbench-tool-spin"});}]);